@weavy/uikit-react 27.1.0 → 27.1.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/changelog.md +9 -0
- package/dist/weavy.bundle.js +10 -10
- package/dist/weavy.cjs +10 -10
- package/dist/weavy.es5.esm.js +1 -1
- package/dist/weavy.es5.umd.cjs +1 -1
- package/dist/weavy.mjs +51 -26
- package/dist/weavy.umd.cjs +10 -10
- package/package.json +2 -2
package/dist/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"})],WD=oT.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"})]),N4=new $8,lT=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function cc(s){return(t,i)=>{let n=t.node.getChild("VariableDefinition");return n&&i(n,s),!0}}d(cc,"lr$1");m(cc,"defID");const VD=["FunctionDeclaration"],DD={FunctionDeclaration:cc("function"),ClassDeclaration:cc("class"),ClassExpression:m(()=>!0,"ClassExpression"),EnumDeclaration:cc("constant"),TypeAliasDeclaration:cc("type"),NamespaceDeclaration:cc("namespace"),VariableDefinition(s,t){s.matchContext(VD)||t(s,"variable")},TypeDefinition(s,t){t(s,"type")},__proto__:null};function $5(s,t){let i=N4.get(t);if(i)return i;let n=[],r=!0;function a(o,l){let c=s.sliceString(o.from,o.to);n.push({label:c,type:l})}return d(a,"s"),m(a,"def"),t.cursor(Ye.IncludeAnonymous).iterate(o=>{if(r)r=!1;else if(o.name){let l=DD[o.name];if(l&&l(o,a)||lT.has(o.name))return!1}else if(o.to-o.from>8192){for(let l of $5(s,o.node))n.push(l);return!1}}),N4.set(t,n),n}d($5,"om$1");m($5,"getScope");const z1=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,x5=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function cT(s){let t=dt(s.state).resolveInner(s.pos,-1);if(x5.indexOf(t.name)>-1)return null;let i=t.name=="VariableName"||t.to-t.from<20&&z1.test(s.state.sliceDoc(t.from,t.to));if(!i&&!s.explicit)return null;let n=[];for(let r=t;r;r=r.parent)lT.has(r.name)&&(n=n.concat($5(s.state.doc,r)));return{options:n,from:i?t.from:s.pos,validFor:z1}}d(cT,"lm$1");m(cT,"localCompletionSource");function Rg(s,t,i){var n;let r=[];for(;;){let a=t.firstChild,o;if((a==null?void 0:a.name)=="VariableName")return r.push(s(a)),{path:r.reverse(),name:i};if((a==null?void 0:a.name)=="MemberExpression"&&((n=o=a.lastChild)===null||n===void 0?void 0:n.name)=="PropertyName")r.push(s(o)),t=a;else return null}}d(Rg,"Bo$1");m(Rg,"pathFor");function hT(s){let t=m(n=>s.state.doc.sliceString(n.from,n.to),"read"),i=dt(s.state).resolveInner(s.pos,-1);return i.name=="PropertyName"?Rg(t,i.parent,t(i)):(i.name=="."||i.name=="?.")&&i.parent.name=="MemberExpression"?Rg(t,i.parent,""):x5.indexOf(i.name)>-1?null:i.name=="VariableName"||i.to-i.from<20&&z1.test(t(i))?{path:[],name:t(i)}:i.name=="MemberExpression"?Rg(t,i,""):s.explicit?{path:[],name:""}:null}d(hT,"am$1");m(hT,"completionPath");function dT(s,t){let i=[],n=new Set;for(let r=0;;r++){for(let o of(Object.getOwnPropertyNames||Object.keys)(s)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(o)||n.has(o))continue;n.add(o);let l;try{l=s[o]}catch{continue}i.push({label:o,type:typeof l=="function"?/^[A-Z]/.test(o)?"class":t?"function":"method":t?"variable":"property",boost:-r})}let a=Object.getPrototypeOf(s);if(!a)return i;s=a}}d(dT,"DS");m(dT,"enumeratePropertyCompletions");function qD(s){let t=new Map;return i=>{let n=hT(i);if(!n)return null;let r=s;for(let o of n.path)if(r=r[o],!r)return null;let a=t.get(r);return a||t.set(r,a=dT(r,!n.path.length)),{from:i.pos-n.name.length,options:a,validFor:z1}}}d(qD,"BS");m(qD,"scopeCompletionSource");const On=Vk.define({name:"javascript",parser:ZD.configure({props:[oy.add({IfStatement:Om({except:/^\s*({|else\b)/}),TryStatement:Om({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:LZ,SwitchBody:m(s=>{let t=s.textAfter,i=/^\s*\}/.test(t),n=/^\s*(case|default)\b/.test(t);return s.baseIndent+(i?0:n?1:2)*s.unit},"SwitchBody"),Block:r6({closing:"}"}),ArrowFunction:m(s=>s.baseIndent+s.unit,"ArrowFunction"),"TemplateString BlockComment":m(()=>null,"TemplateString BlockComment"),"Statement Property":Om({except:/^{/}),JSXElement(s){let t=/^\s*<\//.test(s.textAfter);return s.lineIndent(s.node.from)+(t?0:s.unit)},JSXEscape(s){let t=/\s*\}/.test(s.textAfter);return s.lineIndent(s.node.from)+(t?0:s.unit)},"JSXOpenTag JSXSelfClosingTag"(s){return s.column(s.node.from)+s.unit}}),$w.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":jk,BlockComment(s){return{from:s.from+2,to:s.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),uT={test:m(s=>/^JSX/.test(s.name),"test"),facet:Ow({commentTokens:{block:{open:"{/*",close:"*/}"}}})},pT=On.configure({dialect:"ts"},"typescript"),fT=On.configure({dialect:"jsx",props:[Wk.add(s=>s.isTop?[uT]:void 0)]}),yT=On.configure({dialect:"jsx ts",props:[Wk.add(s=>s.isTop?[uT]:void 0)]},"typescript");let mT=m(s=>({label:s,type:"keyword"}),"kwCompletion");const wT="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(mT),UD=wT.concat(["declare","implements","private","protected","public"].map(mT));function gT(s={}){let t=s.jsx?s.typescript?yT:fT:s.typescript?pT:On,i=s.typescript?WD.concat(UD):oT.concat(wT);return new If(t,[On.data.of({autocomplete:S6(x5,Yk(i))}),On.data.of({autocomplete:cT}),s.jsx?BD:[]])}d(gT,"um$1");m(gT,"javascript");function vT(s){for(;;){if(s.name=="JSXOpenTag"||s.name=="JSXSelfClosingTag"||s.name=="JSXFragmentTag")return s;if(s.name=="JSXEscape"||!s.parent)return null;s=s.parent}}d(vT,"NS");m(vT,"findOpenTag");function B$(s,t,i=s.length){for(let n=t==null?void 0:t.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return s.sliceString(n.from,Math.min(n.to,i));return""}d(B$,"gd");m(B$,"elementName$1");const jD=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),BD=Pe.inputHandler.of((s,t,i,n,r)=>{if((jD?s.composing:s.compositionStarted)||s.state.readOnly||t!=i||n!=">"&&n!="/"||!On.isActiveAt(s.state,t,-1))return!1;let a=r(),{state:o}=a,l=o.changeByRange(c=>{var h;let{head:u}=c,f=dt(o).resolveInner(u-1,-1),y;if(f.name=="JSXStartTag"&&(f=f.parent),!(o.doc.sliceString(u-1,u)!=n||f.name=="JSXAttributeValue"&&f.to>u)){if(n==">"&&f.name=="JSXFragmentTag")return{range:c,changes:{from:u,insert:"</>"}};if(n=="/"&&f.name=="JSXStartCloseTag"){let w=f.parent,g=w.parent;if(g&&w.from==u-2&&((y=B$(o.doc,g.firstChild,u))||((h=g.firstChild)===null||h===void 0?void 0:h.name)=="JSXFragmentTag")){let O=`${y}>`;return{range:ie.cursor(u+O.length,-1),changes:{from:u,insert:O}}}}else if(n==">"){let w=vT(f);if(w&&w.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(u,u+2))&&(y=B$(o.doc,w,u)))return{range:c,changes:{from:u,insert:`</${y}>`}}}}return{range:c}});return l.changes.empty?!1:(s.dispatch([a,o.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function FD(s,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},s.getRules().forEach((i,n)=>{i.meta.docs.recommended&&(t.rules[n]=2)})),i=>{let{state:n}=i,r=[];for(let{from:a,to:o}of On.findRegions(n)){let l=n.doc.lineAt(a),c={line:l.number-1,col:a-l.from,pos:a};for(let h of s.verify(n.sliceDoc(a,o),t))r.push(bT(h,n.doc,c))}return r}}d(FD,"HS");m(FD,"esLint");function F$(s,t,i,n){return i.line(s+n.line).from+t+(s==1?n.col-1:-1)}d(F$,"yd");m(F$,"mapPos");function bT(s,t,i){let n=F$(s.line,s.column,t,i),r={from:n,to:s.endLine!=null&&s.endColumn!=1?F$(s.endLine,s.endColumn,t,i):n,message:s.message,source:s.ruleId?"eslint:"+s.ruleId:"eslint",severity:s.severity==1?"warning":"error"};if(s.fix){let{range:a,text:o}=s.fix,l=a[0]+i.pos-n,c=a[1]+i.pos-n;r.actions=[{name:"fix",apply(h,u){h.dispatch({changes:{from:u+l,to:u+c,insert:o},scrollIntoView:!0})}}]}return r}d(bT,"FS");m(bT,"translateDiagnostic");const $y=["_blank","_self","_top","_parent"],Bb=["ascii","utf-8","utf-16","latin1","latin1"],Fb=["get","post","put","delete"],Xb=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],zi=["true","false"],pe={},XD={a:{attrs:{href:null,ping:null,type:null,media:null,target:$y,hreflang:null}},abbr:pe,address:pe,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:pe,aside:pe,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:pe,base:{attrs:{href:null,target:$y}},bdi:pe,bdo:pe,blockquote:{attrs:{cite:null}},body:pe,br:pe,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Xb,formmethod:Fb,formnovalidate:["novalidate"],formtarget:$y,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:pe,center:pe,cite:pe,code:pe,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:pe,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:pe,div:pe,dl:pe,dt:pe,em:pe,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:pe,figure:pe,footer:pe,form:{attrs:{action:null,name:null,"accept-charset":Bb,autocomplete:["on","off"],enctype:Xb,method:Fb,novalidate:["novalidate"],target:$y}},h1:pe,h2:pe,h3:pe,h4:pe,h5:pe,h6:pe,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:pe,hgroup:pe,hr:pe,html:{attrs:{manifest:null}},i:pe,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:Xb,formmethod:Fb,formnovalidate:["novalidate"],formtarget:$y,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:pe,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:pe,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:pe,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Bb,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:pe,noscript:pe,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:pe,param:{attrs:{name:null,value:null}},pre:pe,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:pe,rt:pe,ruby:pe,samp:pe,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Bb}},section:pe,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:pe,source:{attrs:{src:null,type:null,media:null}},span:pe,strong:pe,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:pe,summary:pe,sup:pe,table:pe,tbody:pe,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:pe,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:pe,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:pe,time:{attrs:{datetime:null}},title:pe,tr:pe,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:pe,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:pe},OT={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},$T="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(s=>"on"+s);for(let s of $T)OT[s]=null;var Id;const xT=(Id=class{constructor(t,i){this.tags=Object.assign(Object.assign({},XD),t),this.globalAttrs=Object.assign(Object.assign({},OT),i),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}},d(Id,"xc"),Id);m(xT,"Schema");let qm=xT;qm.default=new qm;function Zo(s,t,i=s.length){if(!t)return"";let n=t.firstChild,r=n&&n.getChild("TagName");return r?s.sliceString(r.from,Math.min(r.to,i)):""}d(Zo,"Hi$1");m(Zo,"elementName");function Wo(s,t=!1){for(;s;s=s.parent)if(s.name=="Element")if(t)t=!1;else return s;return null}d(Wo,"Fi$1");m(Wo,"findParentElement");function k5(s,t,i){let n=i.tags[Zo(s,Wo(t))];return(n==null?void 0:n.children)||i.allTags}d(k5,"mm$1");m(k5,"allowedChildren");function Vv(s,t){let i=[];for(let n=Wo(t);n&&!n.type.isTop;n=Wo(n.parent)){let r=Zo(s,n);if(r&&n.lastChild.name=="CloseTag")break;r&&i.indexOf(r)<0&&(t.name=="EndTag"||t.from>=n.firstChild.to)&&i.push(r)}return i}d(Vv,"Rh$1");m(Vv,"openTags");const kT=/^[:\-\.\w\u00b7-\uffff]*$/;function X$(s,t,i,n,r){let a=/\s*>/.test(s.sliceDoc(r,r+5))?"":">",o=Wo(i,!0);return{from:n,to:r,options:k5(s.doc,o,t).map(l=>({label:l,type:"type"})).concat(Vv(s.doc,i).map((l,c)=>({label:"/"+l,apply:"/"+l+a,type:"type",boost:99-c}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}d(X$,"bd");m(X$,"completeTag");function N$(s,t,i,n){let r=/\s*>/.test(s.sliceDoc(n,n+5))?"":">";return{from:i,to:n,options:Vv(s.doc,t).map((a,o)=>({label:a,apply:a+r,type:"type",boost:99-o})),validFor:kT}}d(N$,"Sd");m(N$,"completeCloseTag");function ST(s,t,i,n){let r=[],a=0;for(let o of k5(s.doc,i,t))r.push({label:"<"+o,type:"type"});for(let o of Vv(s.doc,i))r.push({label:"</"+o+">",type:"type",boost:99-a++});return{from:n,to:n,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}d(ST,"JS");m(ST,"completeStartTag");function PT(s,t,i,n,r){let a=Wo(i),o=a?t.tags[Zo(s.doc,a)]:null,l=o&&o.attrs?Object.keys(o.attrs):[],c=o&&o.globalAttrs===!1?l:l.length?l.concat(t.globalAttrNames):t.globalAttrNames;return{from:n,to:r,options:c.map(h=>({label:h,type:"property"})),validFor:kT}}d(PT,"eQ");m(PT,"completeAttrName");function CT(s,t,i,n,r){var a;let o=(a=i.parent)===null||a===void 0?void 0:a.getChild("AttributeName"),l=[],c;if(o){let h=s.sliceDoc(o.from,o.to),u=t.globalAttrs[h];if(!u){let f=Wo(i),y=f?t.tags[Zo(s.doc,f)]:null;u=(y==null?void 0:y.attrs)&&y.attrs[h]}if(u){let f=s.sliceDoc(n,r).toLowerCase(),y='"',w='"';/^['"]/.test(f)?(c=f[0]=='"'?/^[^"]*$/:/^[^']*$/,y="",w=s.sliceDoc(r,r+1)==f[0]?"":f[0],f=f.slice(1),n++):c=/^[^\s<>='"]*$/;for(let g of u)l.push({label:g,apply:y+g+w,type:"constant"})}}return{from:n,to:r,options:l,validFor:c}}d(CT,"tQ");m(CT,"completeAttrValue");function S5(s,t){let{state:i,pos:n}=t,r=dt(i).resolveInner(n,-1),a=r.resolve(n);for(let o=n,l;a==r&&(l=r.childBefore(o));){let c=l.lastChild;if(!c||!c.type.isError||c.from<c.to)break;a=r=l,o=c.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?N$(i,r,r.from,n):X$(i,s,r,r.from,n):r.name=="StartTag"?X$(i,s,r,n,n):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?N$(i,r,n,n):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?PT(i,s,r,r.name=="AttributeName"?r.from:n,n):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?CT(i,s,r,r.name=="Is"?n:r.from,n):t.explicit&&(a.name=="Element"||a.name=="Text"||a.name=="Document")?ST(i,s,r,n):null}d(S5,"ym$1");m(S5,"htmlCompletionFor");function QT(s){return S5(qm.default,s)}d(QT,"bm$1");m(QT,"htmlCompletionSource");function MT(s){let{extraTags:t,extraGlobalAttributes:i}=s,n=i||t?new qm(t,i):qm.default;return r=>S5(n,r)}d(MT,"Sm$1");m(MT,"htmlCompletionSourceWith");const ND=On.parser.configure({top:"SingleExpression"}),TT=[{tag:"script",attrs:m(s=>s.type=="text/typescript"||s.lang=="ts","attrs"),parser:pT.parser},{tag:"script",attrs:m(s=>s.type=="text/babel"||s.type=="text/jsx","attrs"),parser:fT.parser},{tag:"script",attrs:m(s=>s.type=="text/typescript-jsx","attrs"),parser:yT.parser},{tag:"script",attrs(s){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(s.type)},parser:ND},{tag:"script",attrs(s){return!s.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(s.type)},parser:On.parser},{tag:"style",attrs(s){return(!s.lang||s.lang=="css")&&(!s.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(s.type))},parser:L1.parser}],RT=[{name:"style",parser:L1.parser.configure({top:"Styles"})}].concat($T.map(s=>({name:s,parser:On.parser}))),AT=Vk.define({name:"html",parser:zV.configure({props:[oy.add({Element(s){let t=/^(\s*)(<\/)?/.exec(s.textAfter);return s.node.to<=s.pos+t[0].length?s.continue():s.lineIndent(s.node.from)+(t[2]?0:s.unit)},"OpenTag CloseTag SelfClosingTag"(s){return s.column(s.node.from)+s.unit},Document(s){if(s.pos+/\s*/.exec(s.textAfter)[0].length<s.node.to)return s.continue();let t=null,i;for(let n=s.node;;){let r=n.lastChild;if(!r||r.name!="Element"||r.to!=n.to)break;t=n=r}return t&&!((i=t.lastChild)&&(i.name=="CloseTag"||i.name=="SelfClosingTag"))?s.lineIndent(t.from)+s.unit:null}}),$w.add({Element(s){let t=s.firstChild,i=s.lastChild;return!t||t.name!="OpenTag"?null:{from:t.to,to:i.name=="CloseTag"?i.from:s.to}}}),h6.add({"OpenTag CloseTag":m(s=>s.getChild("TagName"),"OpenTag CloseTag")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),Ag=AT.configure({wrap:v5(TT,RT)});function ET(s={}){let t="",i;s.matchClosingTags===!1&&(t="noMatch"),s.selfClosingTags===!0&&(t=(t?t+" ":"")+"selfClosing"),(s.nestedLanguages&&s.nestedLanguages.length||s.nestedAttributes&&s.nestedAttributes.length)&&(i=v5((s.nestedLanguages||[]).concat(TT),(s.nestedAttributes||[]).concat(RT)));let n=i?AT.configure({wrap:i,dialect:t}):t?Ag.configure({dialect:t}):Ag;return new If(n,[Ag.data.of({autocomplete:MT(s)}),s.autoCloseTags!==!1?HD:[],gT().support,rT().support])}d(ET,"xm$1");m(ET,"html");const H4=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),HD=Pe.inputHandler.of((s,t,i,n,r)=>{if(s.composing||s.state.readOnly||t!=i||n!=">"&&n!="/"||!Ag.isActiveAt(s.state,t,-1))return!1;let a=r(),{state:o}=a,l=o.changeByRange(c=>{var h,u,f;let y=o.doc.sliceString(c.from-1,c.to)==n,{head:w}=c,g=dt(o).resolveInner(w,-1),O;if(y&&n==">"&&g.name=="EndTag"){let x=g.parent;if(((u=(h=x.parent)===null||h===void 0?void 0:h.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(O=Zo(o.doc,x.parent,w))&&!H4.has(O)){let $=w+(o.doc.sliceString(w,w+1)===">"?1:0),C=`</${O}>`;return{range:c,changes:{from:w,to:$,insert:C}}}}else if(y&&n=="/"&&g.name=="IncompleteCloseTag"){let x=g.parent;if(g.from==w-2&&((f=x.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(O=Zo(o.doc,x,w))&&!H4.has(O)){let $=w+(o.doc.sliceString(w,w+1)===">"?1:0),C=`${O}>`;return{range:ie.cursor(w+C.length,-1),changes:{from:w,to:$,insert:C}}}}return{range:c}});return l.changes.empty?!1:(s.dispatch([a,o.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),LT=Ow({commentTokens:{block:{open:"<!--",close:"-->"}}}),zT=new Oe,_T=zW.configure({props:[$w.add(s=>!s.is("Block")||s.is("Document")||_1(s)!=null||IT(s)?void 0:(t,i)=>({from:i.doc.lineAt(t.from).to,to:t.to})),zT.add(_1),oy.add({Document:m(()=>null,"Document")}),yr.add({Document:LT})]});function _1(s){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(s.name);return t?+t[1]:void 0}d(_1,"Da$1");m(_1,"isHeading");function IT(s){return s.name=="OrderedList"||s.name=="BulletList"}d(IT,"nQ");m(IT,"isList");function ZT(s,t){let i=s;for(;;){let n=i.nextSibling,r;if(!n||(r=_1(n.type))!=null&&r<=t)break;i=n}return i.to}d(ZT,"sQ");m(ZT,"findSectionEnd");const YD=zZ.of((s,t,i)=>{for(let n=dt(s).resolveInner(i,-1);n&&!(n.from<t);n=n.parent){let r=n.type.prop(zT);if(r==null)continue;let a=ZT(n,r);if(a>i)return{from:i,to:a}}return null});function Dv(s){return new Ui(LT,s,[YD],"markdown")}d(Dv,"vh$1");m(Dv,"mkLang");const GD=Dv(_T),KD=_T.configure([UW,BW,jW,FW,{props:[$w.add({Table:m((s,t)=>({from:t.doc.lineAt(s.from).to,to:s.to}),"Table")})]}]),WT=Dv(KD);function VT(s,t){return i=>{if(i&&s){let n=null;if(i=/\S*/.exec(i)[0],typeof s=="function"?n=s(i):n=v4.matchLanguageName(s,i,!0),n instanceof v4)return n.support?n.support.language.parser:k1.getSkippingParser(n.load());if(n)return n.parser}return t?t.parser:null}}d(VT,"aQ");m(VT,"getCodeParser");var Zd;const DT=(Zd=class{constructor(t,i,n,r,a,o,l){this.node=t,this.from=i,this.to=n,this.spaceBefore=r,this.spaceAfter=a,this.type=o,this.item=l}blank(t,i=!0){let n=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;n.length<t;)n+=" ";return n}else{for(let r=this.to-this.from-n.length-this.spaceAfter.length;r>0;r--)n+=" ";return n+(i?this.spaceAfter:"")}}marker(t,i){let n=this.node.name=="OrderedList"?String(+C5(this.item,t)[2]+i):"";return this.spaceBefore+n+this.type+this.spaceAfter}},d(Zd,"Pc"),Zd);m(DT,"Context");let Nb=DT;function P5(s,t){let i=[],n=[];for(let r=s;r;r=r.parent){if(r.name=="FencedCode")return n;(r.name=="ListItem"||r.name=="Blockquote")&&i.push(r)}for(let r=i.length-1;r>=0;r--){let a=i[r],o,l=t.lineAt(a.from),c=a.from-l.from;if(a.name=="Blockquote"&&(o=/^ *>( ?)/.exec(l.text.slice(c))))n.push(new Nb(a,c,c+o[0].length,"",o[1],">",null));else if(a.name=="ListItem"&&a.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(l.text.slice(c)))){let h=o[3],u=o[0].length;h.length>=4&&(h=h.slice(0,h.length-4),u-=4),n.push(new Nb(a.parent,c,c+u,o[1],h,o[2],a))}else if(a.name=="ListItem"&&a.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(l.text.slice(c)))){let h=o[4],u=o[0].length;h.length>4&&(h=h.slice(0,h.length-4),u-=4);let f=o[2];o[3]&&(f+=o[3].replace(/[xX]/," ")),n.push(new Nb(a.parent,c,c+u,o[1],h,f,a))}}return n}d(P5,"Tm$1");m(P5,"getContext");function C5(s,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(s.from,s.from+10))}d(C5,"Am$1");m(C5,"itemNumber");function Eg(s,t,i,n=0){for(let r=-1,a=s;;){if(a.name=="ListItem"){let l=C5(a,t),c=+l[2];if(r>=0){if(c!=r+1)return;i.push({from:a.from+l[1].length,to:a.from+l[0].length,insert:String(r+2+n)})}r=c}let o=a.nextSibling;if(!o)break;a=o}}d(Eg,"Ho$1");m(Eg,"renumberList");function qv(s,t){let i=/^[ \t]*/.exec(s)[0].length;if(!i||t.facet(Rv)!=" ")return s;let n=Dr(s,4,i),r="";for(let a=n;a>0;)a>=4?(r+=" ",a-=4):(r+=" ",a--);return r+s.slice(i)}d(qv,"Ah$1");m(qv,"normalizeIndent");const JD=m(({state:s,dispatch:t})=>{let i=dt(s),{doc:n}=s,r=null,a=s.changeByRange(o=>{if(!o.empty||!WT.isActiveAt(s,o.from,0))return r={range:o};let l=o.from,c=n.lineAt(l),h=P5(i.resolveInner(l,-1),n);for(;h.length&&h[h.length-1].from>l-c.from;)h.pop();if(!h.length)return r={range:o};let u=h[h.length-1];if(u.to-u.spaceAfter.length>l-c.from)return r={range:o};let f=l>=u.to-u.spaceAfter.length&&!/\S/.test(c.text.slice(u.to));if(u.item&&f){let x=u.node.firstChild,$=u.node.getChild("ListItem","ListItem");if(x.to>=l||$&&$.to<l||c.from>0&&!/[^\s>]/.test(n.lineAt(c.from-1).text)){let C=h.length>1?h[h.length-2]:null,A,E="";C&&C.item?(A=c.from+C.from,E=C.marker(n,1)):A=c.from+(C?C.to:0);let R=[{from:A,to:l,insert:E}];return u.node.name=="OrderedList"&&Eg(u.item,n,R,-2),C&&C.node.name=="OrderedList"&&Eg(C.item,n,R),{range:ie.cursor(A+E.length),changes:R}}else{let C=Y$(h,s,c);return{range:ie.cursor(l+C.length+1),changes:{from:c.from,insert:C+s.lineBreak}}}}if(u.node.name=="Blockquote"&&f&&c.from){let x=n.lineAt(c.from-1),$=/>\s*$/.exec(x.text);if($&&$.index==u.from){let C=s.changes([{from:x.from+$.index,to:x.to},{from:c.from+u.from,to:c.to}]);return{range:o.map(C),changes:C}}}let y=[];u.node.name=="OrderedList"&&Eg(u.item,n,y);let w=u.item&&u.item.from<c.from,g="";if(!w||/^[\s\d.)\-+*>]*/.exec(c.text)[0].length>=u.to)for(let x=0,$=h.length-1;x<=$;x++)g+=x==$&&!w?h[x].marker(n,1):h[x].blank(x<$?Dr(c.text,4,h[x+1].from)-g.length:null);let O=l;for(;O>c.from&&/\s/.test(c.text.charAt(O-c.from-1));)O--;return g=qv(g,s),qT(u.node,s.doc)&&(g=Y$(h,s,c)+s.lineBreak+g),y.push({from:O,to:l,insert:s.lineBreak+g}),{range:ie.cursor(O+g.length+1),changes:y}});return r?!1:(t(s.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)},"insertNewlineContinueMarkup");function H$(s){return s.name=="QuoteMark"||s.name=="ListMark"}d(H$,"wd");m(H$,"isMark");function qT(s,t){if(s.name!="OrderedList"&&s.name!="BulletList")return!1;let i=s.firstChild,n=s.getChild("ListItem","ListItem");if(!n)return!1;let r=t.lineAt(i.to),a=t.lineAt(n.from),o=/^[\s>]*$/.test(r.text);return r.number+(o?0:1)<a.number}d(qT,"hQ");m(qT,"nonTightList");function Y$(s,t,i){let n="";for(let r=0,a=s.length-2;r<=a;r++)n+=s[r].blank(r<a?Dr(i.text,4,Math.min(i.text.length,s[r+1].from))-n.length:null,r<a);return qv(n,t)}d(Y$,"xd");m(Y$,"blankLine");function UT(s,t){let i=s.resolveInner(t,-1),n=t;H$(i)&&(n=i.from,i=i.parent);for(let r;r=i.childBefore(n);)if(H$(r))n=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")i=r.lastChild,n=i.to;else break;return i}d(UT,"fQ");m(UT,"contextNodeForDelete");const eq=m(({state:s,dispatch:t})=>{let i=dt(s),n=null,r=s.changeByRange(a=>{let o=a.from,{doc:l}=s;if(a.empty&&WT.isActiveAt(s,a.from)){let c=l.lineAt(o),h=P5(UT(i,o),l);if(h.length){let u=h[h.length-1],f=u.to-u.spaceAfter.length+(u.spaceAfter?1:0);if(o-c.from>f&&!/\S/.test(c.text.slice(f,o-c.from)))return{range:ie.cursor(c.from+f),changes:{from:c.from+f,to:o}};if(o-c.from==f&&(!u.item||c.from<=u.item.from||!/\S/.test(c.text.slice(0,u.to)))){let y=c.from+u.from;if(u.item&&u.node.from<u.item.from&&/\S/.test(c.text.slice(u.from,u.to))){let w=u.blank(Dr(c.text,4,u.to)-Dr(c.text,4,u.from));return y==c.from&&(w=qv(w,s)),{range:ie.cursor(y+w.length),changes:{from:y,to:c.from+u.to,insert:w}}}if(y<o)return{range:ie.cursor(y),changes:{from:y,to:o}}}}}return n={range:a}});return n?!1:(t(s.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)},"deleteMarkupBackward"),tq=[{key:"Enter",run:JD},{key:"Backspace",run:eq}],jT=ET({matchClosingTags:!1});function iq(s={}){let{codeLanguages:t,defaultCodeLanguage:i,addKeymap:n=!0,base:{parser:r}=GD,completeHTMLTags:a=!0,htmlTagLanguage:o=jT}=s;if(!(r instanceof hM))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let l=s.extensions?[s.extensions]:[],c=[o.support],h;i instanceof If?(c.push(i.support),h=i.language):i&&(h=i);let u=t||h?VT(t,h):void 0;l.push($M({codeParser:u,htmlParser:o.language.parser})),n&&c.push(il.high(Pv.of(tq)));let f=Dv(r.configure(l));return a&&c.push(f.data.of({autocomplete:BT})),new If(f,c)}d(iq,"Cm$1");m(iq,"markdown");function BT(s){let{state:t,pos:i}=s,n=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(i-25,i));if(!n)return null;let r=dt(t).resolveInner(i,-1);for(;r&&!r.type.isTop;){if(r.name=="CodeBlock"||r.name=="FencedCode"||r.name=="ProcessingInstructionBlock"||r.name=="CommentBlock"||r.name=="Link"||r.name=="Image")return null;r=r.parent}return{from:i-n[0].length,to:i,options:FT(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}d(BT,"cQ");m(BT,"htmlTagCompletion");let Hb=null;function FT(){if(Hb)return Hb;let s=QT(new Hk(Et.create({extensions:jT}),0,!0));return Hb=s?s.options:[]}d(FT,"uQ");m(FT,"htmlTagCompletions");function nq(s){return new If(DZ.define(s))}d(nq,"w$1");m(nq,"legacy");function sq(s){return import(new URL("./@codemirror/lang-sql/dist/index.js",typeof WEAVY_IMPORT_URL=="string"&&(!(typeof document>"u"?require("url").pathToFileURL(__filename).href:we&&we.tagName.toUpperCase()==="SCRIPT"&&we.src||new URL("weavy.cjs",document.baseURI).href)||!new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:we&&we.tagName.toUpperCase()==="SCRIPT"&&we.src||new URL("weavy.cjs",document.baseURI).href).href.startsWith(WEAVY_IMPORT_URL))?WEAVY_IMPORT_URL:typeof document>"u"?require("url").pathToFileURL(__filename).href:we&&we.tagName.toUpperCase()==="SCRIPT"&&we.src||new URL("weavy.cjs",document.baseURI).href).href).then(t=>t.sql({dialect:t[s]}))}d(sq,"pt$2");m(sq,"sql");function rq(s){const t=new Event("Weavy-SoftSubmit");return s.dom.dispatchEvent(t),!0}d(rq,"Em$1");m(rq,"softSubmit");const Y4=new uZ({regexp:/(\[(.+?)\])(\(@u(\d+)\))/g,decoration:m(s=>et.replace({inclusive:!0,widget:new aq(s)}),"decoration")});var Wd;const XT=(Wd=class extends ay{constructor(t){super(),this.match=t}eq(t){return t.match[1]===this.match[1]}toDOM(){ii();const t=document.createElement("span");return t.className="wy-mention",t.innerHTML=typeof this.match[5]<"u"?this.match[5]:this.match[2],t}ignoreEvent(){return!1}},d(Wd,"kc"),Wd);m(XT,"MentionWidget");let aq=XT;Ds.fromClass(class{constructor(s){this.mentions=Y4.createDeco(s)}update(s){this.mentions=Y4.updateDeco(s,this.mentions)}},{decorations:m(s=>s.mentions,"decorations"),provide:m(s=>Pe.atomicRanges.of(t=>{var i;return((i=t.plugin(s))==null?void 0:i.mentions)||et.none}),"provide")});function oq(s,t){return({state:i,dispatch:n})=>{if(i.readOnly)return!1;let r=s(t,i);return r?(n(i.update(r)),!0):!1}}d(oq,"Zh$1");m(oq,"command");function Q5(s,t){let i=s.languageDataAt("commentTokens",t,1);return i.length?i[0]:{}}d(Q5,"Lh$1");m(Q5,"getConfig");const xy=50;function NT(s,{open:t,close:i},n,r){let a=s.sliceDoc(n-xy,n),o=s.sliceDoc(r,r+xy),l=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(o)[0].length,h=a.length-l;if(a.slice(h-t.length,h)==t&&o.slice(c,c+i.length)==i)return{open:{pos:n-l,margin:l&&1},close:{pos:r+c,margin:c&&1}};let u,f;r-n<=2*xy?u=f=s.sliceDoc(n,r):(u=s.sliceDoc(n,n+xy),f=s.sliceDoc(r-xy,r));let y=/^\s*/.exec(u)[0].length,w=/\s*$/.exec(f)[0].length,g=f.length-w-i.length;return u.slice(y,y+t.length)==t&&f.slice(g,g+i.length)==i?{open:{pos:n+y+t.length,margin:/\s/.test(u.charAt(y+t.length))?1:0},close:{pos:r-w-i.length,margin:/\s/.test(f.charAt(g-1))?1:0}}:null}d(NT,"wQ");m(NT,"findBlockComment");function lq(s){let t=[];for(let i of s.selection.ranges){let n=s.doc.lineAt(i.from),r=i.to<=n.to?n:s.doc.lineAt(i.to);r.from>n.from&&r.from==i.to&&(r=i.to==n.to+1?n:s.doc.lineAt(i.to-1));let a=t.length-1;a>=0&&t[a].to>n.from?t[a].to=r.to:t.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:r.to})}return t}d(lq,"xQ");m(lq,"selectedLineRanges");function cq(s,t,i=t.selection.ranges){let n=i.map(a=>Q5(t,a.from).block);if(!n.every(a=>a))return null;let r=i.map((a,o)=>NT(t,n[o],a.from,a.to));if(s!=2&&!r.every(a=>a))return{changes:t.changes(i.map((a,o)=>r[o]?[]:[{from:a.from,insert:n[o].open+" "},{from:a.to,insert:" "+n[o].close}]))};if(s!=1&&r.some(a=>a)){let a=[];for(let o=0,l;o<r.length;o++)if(l=r[o]){let c=n[o],{open:h,close:u}=l;a.push({from:h.pos-c.open.length,to:h.pos+h.margin},{from:u.pos-u.margin,to:u.pos+c.close.length})}return{changes:a}}return null}d(cq,"Vm$1");m(cq,"changeBlockComment");function hq(s,t,i=t.selection.ranges){let n=[],r=-1;for(let{from:a,to:o}of i){let l=n.length,c=1e9,h=Q5(t,a).line;if(h){for(let u=a;u<=o;){let f=t.doc.lineAt(u);if(f.from>r&&(a==o||o>f.from)){r=f.from;let y=/^\s*/.exec(f.text)[0].length,w=y==f.length,g=f.text.slice(y,y+h.length)==h?y:-1;y<f.text.length&&y<c&&(c=y),n.push({line:f,comment:g,token:h,indent:y,empty:w,single:!1})}u=f.to+1}if(c<1e9)for(let u=l;u<n.length;u++)n[u].indent<n[u].line.text.length&&(n[u].indent=c);n.length==l+1&&(n[l].single=!0)}}if(s!=2&&n.some(a=>a.comment<0&&(!a.empty||a.single))){let a=[];for(let{line:l,token:c,indent:h,empty:u,single:f}of n)(f||!u)&&a.push({from:l.from+h,insert:c+" "});let o=t.changes(a);return{changes:o,selection:t.selection.map(o,1)}}else if(s!=1&&n.some(a=>a.comment>=0)){let a=[];for(let{line:o,comment:l,token:c}of n)if(l>=0){let h=o.from+l,u=h+c.length;o.text[u-o.from]==" "&&u++,a.push({from:h,to:u})}return{changes:a}}return null}d(hq,"PQ");m(hq,"changeLineComment");const G$=Ns.define(),dq=Ns.define(),uq=ve.define(),HT=ve.define({combine(s){return ik(s,{minDepth:100,newGroupDelay:500,joinToEvent:m((t,i)=>i,"joinToEvent")},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:m((t,i)=>(n,r)=>t(n,r)||i(n,r),"joinToEvent")})}}),YT=Xs.define({create(){return $m.empty},update(s,t){let i=t.state.facet(HT),n=t.annotation(G$);if(n){let c=Rs.fromTransaction(t,n.selection),h=n.side,u=h==0?s.undone:s.done;return c?u=Um(u,u.length,i.minDepth,c):u=R5(u,t.startState.selection),new $m(h==0?n.rest:u,h==0?u:n.rest)}let r=t.annotation(dq);if((r=="full"||r=="before")&&(s=s.isolate()),t.annotation(wi.addToHistory)===!1)return t.changes.empty?s:s.addMapping(t.changes.desc);let a=Rs.fromTransaction(t),o=t.annotation(wi.time),l=t.annotation(wi.userEvent);return a?s=s.addChanges(a,o,l,i,t):t.selection&&(s=s.addSelection(t.startState.selection,o,l,i.newGroupDelay)),(r=="full"||r=="after")&&(s=s.isolate()),s},toJSON(s){return{done:s.done.map(t=>t.toJSON()),undone:s.undone.map(t=>t.toJSON())}},fromJSON(s){return new $m(s.done.map(Rs.fromJSON),s.undone.map(Rs.fromJSON))}});function pq(s={}){return[YT,HT.of(s),Pe.domEventHandlers({beforeinput(t,i){let n=t.inputType=="historyUndo"?fq:t.inputType=="historyRedo"?yq:null;return n?(t.preventDefault(),n(i)):!1}})]}d(pq,"$Q");m(pq,"history");function M5(s,t){return function({state:i,dispatch:n}){if(!t&&i.readOnly)return!1;let r=i.field(YT,!1);if(!r)return!1;let a=r.pop(s,i,t);return a?(n(a),!0):!1}}d(M5,"bo$1");m(M5,"cmd");const fq=M5(0,!1),yq=M5(1,!1);var es;const GT=(es=class{constructor(t,i,n,r,a){this.changes=t,this.effects=i,this.mapped=n,this.startSelection=r,this.selectionsAfter=a}setSelAfter(t){return new es(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,i,n;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(i=this.mapped)===null||i===void 0?void 0:i.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(t){return new es(t.changes&&xn.fromJSON(t.changes),[],t.mapped&&Mc.fromJSON(t.mapped),t.startSelection&&ie.fromJSON(t.startSelection),t.selectionsAfter.map(ie.fromJSON))}static fromTransaction(t,i){let n=tn;for(let r of t.startState.facet(uq)){let a=r(t);a.length&&(n=n.concat(a))}return!n.length&&t.changes.empty?null:new es(t.changes.invert(t.startState.doc),n,void 0,i||t.startState.selection,tn)}static selection(t){return new es(void 0,tn,void 0,void 0,t)}},d(es,"Nt"),es);m(GT,"HistEvent");let Rs=GT;function Um(s,t,i,n){let r=t+1>i+20?t-i-1:0,a=s.slice(r,t);return a.push(n),a}d(Um,"Es$2");m(Um,"updateBranch");function KT(s,t){let i=[],n=!1;return s.iterChangedRanges((r,a)=>i.push(r,a)),t.iterChangedRanges((r,a,o,l)=>{for(let c=0;c<i.length;){let h=i[c++],u=i[c++];l>=h&&o<=u&&(n=!0)}}),n}d(KT,"AQ");m(KT,"isAdjacent");function JT(s,t){return s.ranges.length==t.ranges.length&&s.ranges.filter((i,n)=>i.empty!=t.ranges[n].empty).length===0}d(JT,"ZQ");m(JT,"eqSelectionShape");function T5(s,t){return s.length?t.length?s.concat(t):s:t}d(T5,"Ym$1");m(T5,"conc");const tn=[],mq=200;function R5(s,t){if(s.length){let i=s[s.length-1],n=i.selectionsAfter.slice(Math.max(0,i.selectionsAfter.length-mq));return n.length&&n[n.length-1].eq(t)?s:(n.push(t),Um(s,s.length-1,1e9,i.setSelAfter(n)))}else return[Rs.selection([t])]}d(R5,"Im$1");m(R5,"addSelection");function eR(s){let t=s[s.length-1],i=s.slice();return i[s.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),i}d(eR,"MQ");m(eR,"popSelection");function Lg(s,t){if(!s.length)return s;let i=s.length,n=tn;for(;i;){let r=tR(s[i-1],t,n);if(r.changes&&!r.changes.empty||r.effects.length){let a=s.slice(0,i);return a[i-1]=r,a}else t=r.mapped,i--,n=r.selectionsAfter}return n.length?[Rs.selection(n)]:tn}d(Lg,"Ko$1");m(Lg,"addMappingToBranch");function tR(s,t,i){let n=T5(s.selectionsAfter.length?s.selectionsAfter.map(l=>l.map(t)):tn,i);if(!s.changes)return Rs.selection(n);let r=s.changes.map(t),a=t.mapDesc(s.changes,!0),o=s.mapped?s.mapped.composeDesc(a):a;return new Rs(r,Fe.mapEffects(s.effects,t),o,s.startSelection.map(a),n)}d(tR,"_Q");m(tR,"mapEvent");const wq=/^(input\.type|delete)($|\.)/;var ts;const iR=(ts=class{constructor(t,i,n=0,r=void 0){this.done=t,this.undone=i,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new ts(this.done,this.undone):this}addChanges(t,i,n,r,a){let o=this.done,l=o[o.length-1];return l&&l.changes&&!l.changes.empty&&t.changes&&(!n||wq.test(n))&&(!l.selectionsAfter.length&&i-this.prevTime<r.newGroupDelay&&r.joinToEvent(a,KT(l.changes,t.changes))||n=="input.type.compose")?o=Um(o,o.length-1,r.minDepth,new Rs(t.changes.compose(l.changes),T5(Fe.mapEffects(t.effects,l.changes),l.effects),l.mapped,l.startSelection,tn)):o=Um(o,o.length,r.minDepth,t),new ts(o,tn,i,n)}addSelection(t,i,n,r){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:tn;return a.length>0&&i-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&JT(a[a.length-1],t)?this:new ts(R5(this.done,t),this.undone,i,n)}addMapping(t){return new ts(Lg(this.done,t),Lg(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,i,n){let r=t==0?this.done:this.undone;if(r.length==0)return null;let a=r[r.length-1],o=a.selectionsAfter[0]||i.selection;if(n&&a.selectionsAfter.length)return i.update({selection:a.selectionsAfter[a.selectionsAfter.length-1],annotations:G$.of({side:t,rest:eR(r),selection:o}),userEvent:t==0?"select.undo":"select.redo",scrollIntoView:!0});if(a.changes){let l=r.length==1?tn:r.slice(0,r.length-1);return a.mapped&&(l=Lg(l,a.mapped)),i.update({changes:a.changes,selection:a.startSelection,effects:a.effects,annotations:G$.of({side:t,rest:l,selection:o}),filter:!1,userEvent:t==0?"undo":"redo",scrollIntoView:!0})}else return null}},d(ts,"Gt"),ts);m(iR,"HistoryState");let $m=iR;$m.empty=new $m(tn,tn);function kw(s,t){return ie.create(s.ranges.map(t),s.mainIndex)}d(kw,"er$1");m(kw,"updateSel");function Sw(s,t){return s.update({selection:t,scrollIntoView:!0,userEvent:"select"})}d(Sw,"st$2");m(Sw,"setSel");function Uv({state:s,dispatch:t},i){let n=kw(s.selection,i);return n.eq(s.selection,!0)?!1:(t(Sw(s,n)),!0)}d(Uv,"De$2");m(Uv,"moveSel");function Pw(s,t){return ie.cursor(t?s.to:s.from)}d(Pw,"So$1");m(Pw,"rangeEnd");function gq(s,t){return Uv(s,i=>i.empty?s.moveByChar(i,t):Pw(i,t))}d(gq,"jm$1");m(gq,"cursorByChar");function vq(s){return s.textDirectionAt(s.state.selection.main.head)==Pt.LTR}d(vq,"he$2");m(vq,"ltrAtCursor");function bq(s,t){return Uv(s,i=>i.empty?s.moveByGroup(i,t):Pw(i,t))}d(bq,"Bm$1");m(bq,"cursorByGroup");function nR(s,t,i){if(t.type.prop(i))return!0;let n=t.to-t.from;return n&&(n>2||/[^\s,.;:]/.test(s.sliceDoc(t.from,t.to)))||t.firstChild}d(nR,"WQ");m(nR,"interestingNode");function Oq(s,t,i){let n=dt(s).resolveInner(t.head),r=i?Oe.closedBy:Oe.openedBy;for(let c=t.head;;){let h=i?n.childAfter(c):n.childBefore(c);if(!h)break;nR(s,h,r)?n=h:c=i?h.to:h.from}let a=n.type.prop(r),o,l;return a&&(o=i?Va(s,n.from,1):Va(s,n.to,-1))&&o.matched?l=i?o.end.to:o.end.from:l=i?n.to:n.from,ie.cursor(l,i?-1:1)}d(Oq,"Qo$1");m(Oq,"moveBySyntax");function $q(s,t){return Uv(s,i=>{if(!i.empty)return Pw(i,t);let n=s.moveVertically(i,t);return n.head!=i.head?n:s.moveToLineBoundary(i,t)})}d($q,"zm$1");m($q,"cursorByLine");function A5(s){let t=s.scrollDOM.clientHeight<s.scrollDOM.scrollHeight-2,i=0,n=0,r;if(t){for(let a of s.state.facet(Pe.scrollMargins)){let o=a(s);o!=null&&o.top&&(i=Math.max(o==null?void 0:o.top,i)),o!=null&&o.bottom&&(n=Math.max(o==null?void 0:o.bottom,n))}r=s.scrollDOM.clientHeight-i-n}else r=(s.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:i,marginBottom:n,selfScroll:t,height:Math.max(s.defaultLineHeight,r-5)}}d(A5,"Hm$1");m(A5,"pageInfo");function xq(s,t){let i=A5(s),{state:n}=s,r=kw(n.selection,o=>o.empty?s.moveVertically(o,t,i.height):Pw(o,t));if(r.eq(n.selection))return!1;let a;if(i.selfScroll){let o=s.coordsAtPos(n.selection.main.head),l=s.scrollDOM.getBoundingClientRect(),c=l.top+i.marginTop,h=l.bottom-i.marginBottom;o&&o.top>c&&o.bottom<h&&(a=Pe.scrollIntoView(r.main.head,{y:"start",yMargin:o.top-c}))}return s.dispatch(Sw(n,r),{effects:a}),!0}d(xq,"Fm$1");m(xq,"cursorByPage");function kq(s,t,i){let n=s.lineBlockAt(t.head),r=s.moveToLineBoundary(t,i);if(r.head==t.head&&r.head!=(i?n.to:n.from)&&(r=s.moveToLineBoundary(t,i,!1)),!i&&r.head==n.from&&n.length){let a=/^\s*/.exec(s.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;a&&t.head!=n.from+a&&(r=ie.cursor(n.from+a))}return r}d(kq,"_t$1");m(kq,"moveByLineBoundary");function Sq(s,t,i){let n=!1,r=kw(s.selection,a=>{let o=Va(s,a.head,-1)||Va(s,a.head,1)||a.head>0&&Va(s,a.head-1,1)||a.head<s.doc.length&&Va(s,a.head+1,-1);if(!o||!o.end)return a;n=!0;let l=o.start.from==a.head?o.end.to:o.end.from;return ie.cursor(l)});return n?(t(Sw(s,r)),!0):!1}d(Sq,"NQ");m(Sq,"toMatchingBracket");function Cw(s,t){let i=kw(s.state.selection,n=>{let r=t(n);return ie.range(n.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return i.eq(s.state.selection)?!1:(s.dispatch(Sw(s.state,i)),!0)}d(Cw,"Ue$2");m(Cw,"extendSel");function Pq(s,t){return Cw(s,i=>s.moveByChar(i,t))}d(Pq,"Km$1");m(Pq,"selectByChar");function Cq(s,t){return Cw(s,i=>s.moveByGroup(i,t))}d(Cq,"tg$1");m(Cq,"selectByGroup");function Qq(s,t){return Cw(s,i=>s.moveVertically(i,t))}d(Qq,"ig$1");m(Qq,"selectByLine");function Mq(s,t){return Cw(s,i=>s.moveVertically(i,t,A5(s).height))}d(Mq,"sg$1");m(Mq,"selectByPage");function Tq(s,t){if(s.state.readOnly)return!1;let i="delete.selection",{state:n}=s,r=n.changeByRange(a=>{let{from:o,to:l}=a;if(o==l){let c=t(a);c<o?(i="delete.backward",c=nm(s,c,!1)):c>o&&(i="delete.forward",c=nm(s,c,!0)),o=Math.min(o,c),l=Math.max(l,c)}else o=nm(s,o,!1),l=nm(s,l,!0);return o==l?{range:a}:{changes:{from:o,to:l},range:ie.cursor(o,o<a.head?-1:1)}});return r.changes.empty?!1:(s.dispatch(n.update(r,{scrollIntoView:!0,userEvent:i,effects:i=="delete.selection"?Pe.announce.of(n.phrase("Selection deleted")):void 0})),!0)}d(Tq,"Sn$1");m(Tq,"deleteBy");function nm(s,t,i){if(s instanceof Pe)for(let n of s.state.facet(Pe.atomicRanges).map(r=>r(s)))n.between(t,t,(r,a)=>{r<t&&a>t&&(t=i?a:r)});return t}d(nm,"In$1");m(nm,"skipAtomic");function E5(s){let t=[],i=-1;for(let n of s.selection.ranges){let r=s.doc.lineAt(n.from),a=s.doc.lineAt(n.to);if(!n.empty&&n.to==a.from&&(a=s.doc.lineAt(n.to-1)),i>=r.number){let o=t[t.length-1];o.to=a.to,o.ranges.push(n)}else t.push({from:r.from,to:a.to,ranges:[n]});i=a.number+1}return t}d(E5,"wo$1");m(E5,"selectedLineBlocks");function Rq(s,t,i){if(s.readOnly)return!1;let n=[],r=[];for(let a of E5(s)){if(i?a.to==s.doc.length:a.from==0)continue;let o=s.doc.lineAt(i?a.to+1:a.from-1),l=o.length+1;if(i){n.push({from:a.to,to:o.to},{from:a.from,insert:o.text+s.lineBreak});for(let c of a.ranges)r.push(ie.range(Math.min(s.doc.length,c.anchor+l),Math.min(s.doc.length,c.head+l)))}else{n.push({from:o.from,to:a.from},{from:a.to,insert:s.lineBreak+o.text});for(let c of a.ranges)r.push(ie.range(c.anchor-l,c.head-l))}}return n.length?(t(s.update({changes:n,scrollIntoView:!0,selection:ie.create(r,s.selection.mainIndex),userEvent:"move.line"})),!0):!1}d(Rq,"fg$1");m(Rq,"moveLine");function Aq(s,t,i){if(s.readOnly)return!1;let n=[];for(let r of E5(s))i?n.push({from:r.from,insert:s.doc.slice(r.from,r.to)+s.lineBreak}):n.push({from:r.to,insert:s.lineBreak+s.doc.slice(r.from,r.to)});return t(s.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}d(Aq,"cg$1");m(Aq,"copyLine");function sR(s,t){if(/\(\)|\[\]|\{\}/.test(s.sliceDoc(t-1,t+1)))return{from:t,to:t};let i=dt(s).resolveInner(t),n=i.childBefore(t),r=i.childAfter(t),a;return n&&r&&n.to<=t&&r.from>=t&&(a=n.type.prop(Oe.closedBy))&&a.indexOf(r.name)>-1&&s.doc.lineAt(n.to).from==s.doc.lineAt(r.from).from&&!/\S/.test(s.sliceDoc(n.to,r.from))?{from:n.to,to:r.from}:null}d(sR,"Qw$1");m(sR,"isBetweenBrackets");function Eq(s){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>{let{from:a,to:o}=r,l=t.doc.lineAt(a),c=!s&&a==o&&sR(t,a);s&&(a=o=(o<=l.to?l:t.doc.lineAt(o)).to);let h=new Dk(t,{simulateBreak:a,simulateDoubleBreak:!!c}),u=Y8(h,a);for(u==null&&(u=Dr(/^\s*/.exec(t.doc.lineAt(a).text)[0],t.tabSize));o<l.to&&/\s/.test(l.text[o-l.from]);)o++;c?{from:a,to:o}=c:a>l.from&&a<l.from+100&&!/\S/.test(l.text.slice(0,a))&&(a=l.from);let f=["",b$(t,u)];return c&&f.push(b$(t,h.lineIndent(l.from,-1))),{changes:{from:a,to:o,insert:Ie.of(f)},range:ie.cursor(a+1+f[1].length)}});return i(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}d(Eq,"ug$1");m(Eq,"newlineAndIndent");function Lq(s,t){let i=-1;return s.changeByRange(n=>{let r=[];for(let o=n.from;o<=n.to;){let l=s.doc.lineAt(o);l.number>i&&(n.empty||n.to>l.from)&&(t(l,r,n),i=l.number),o=l.to+1}let a=s.changes(r);return{changes:r,range:ie.range(a.mapPos(n.anchor,1),a.mapPos(n.head,1))}})}d(Lq,"Mh$1");m(Lq,"changeBySelectedLine");o6.define([{tag:T.meta,class:"code"},{tag:T.link,class:"wy-link"},{tag:T.heading,textDecoration:"underline",fontWeight:"bold"},{tag:T.emphasis,fontStyle:"italic"},{tag:T.strong,fontWeight:"bold"},{tag:T.strikethrough,textDecoration:"line-through"},{tag:T.keyword,class:"code token keyword"},{tag:[T.atom,T.bool],class:"code token builtin"},{tag:[T.url,T.contentSeparator,T.labelName],class:"code token prolog"},{tag:T.literal,class:"code token char"},{tag:T.inserted,class:"code token inserted"},{tag:T.deleted,class:"code token deleted"},{tag:T.string,class:"code token string"},{tag:[T.regexp,T.escape,T.special(T.string)],class:"code token regex"},{tag:T.definition(T.variableName),class:"code token constant"},{tag:T.local(T.variableName),class:"code token variable"},{tag:[T.typeName,T.namespace],class:"code token keyword"},{tag:T.className,class:"code token class-name"},{tag:[T.special(T.variableName),T.macroName],class:"code token function"},{tag:T.propertyName,class:"code token property"},{tag:T.comment,class:"code token comment"},{tag:T.invalid,color:"#f00",class:"code token"}]);function zq(s){L5(s,"start");var t={},i=s.languageData||{},n=!1;for(var r in s)if(r!=i&&s.hasOwnProperty(r))for(var a=t[r]=[],o=s[r],l=0;l<o.length;l++){var c=o[l];a.push(new oR(c,s)),(c.indent||c.dedent)&&(n=!0)}return{name:i.name,startState:m(function(){return{state:"start",pending:null,indent:n?[]:null}},"startState"),copyState:m(function(h){var u={state:h.state,pending:h.pending,indent:h.indent&&h.indent.slice(0)};return h.stack&&(u.stack=h.stack.slice(0)),u},"copyState"),token:lR(t),indent:cR(t,i),mergeTokens:i.mergeTokens,languageData:i}}d(zq,"Bw$1");m(zq,"simpleMode");function L5(s,t){if(!s.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}d(L5,"dg$1");m(L5,"ensureState");function rR(s,t){if(!s)return/(?:)/;var i="";return s instanceof RegExp?(s.ignoreCase&&(i="i"),s=s.source):s=String(s),new RegExp("^(?:"+s+")",i)}d(rR,"Zw$1");m(rR,"toRegex");function aR(s){if(!s)return null;if(s.apply)return s;if(typeof s=="string")return s.replace(/\./g," ");for(var t=[],i=0;i<s.length;i++)t.push(s[i]&&s[i].replace(/\./g," "));return t}d(aR,"Lw$1");m(aR,"asToken");function oR(s,t){(s.next||s.push)&&L5(t,s.next||s.push),this.regex=rR(s.regex),this.token=aR(s.token),this.data=s}d(oR,"Mw$1");m(oR,"Rule");function lR(s){return function(t,i){if(i.pending){var n=i.pending.shift();return i.pending.length==0&&(i.pending=null),t.pos+=n.text.length,n.token}for(var r=s[i.state],a=0;a<r.length;a++){var o=r[a],l=(!o.data.sol||t.sol())&&t.match(o.regex);if(l){o.data.next?i.state=o.data.next:o.data.push?((i.stack||(i.stack=[])).push(i.state),i.state=o.data.push):o.data.pop&&i.stack&&i.stack.length&&(i.state=i.stack.pop()),o.data.indent&&i.indent.push(t.indentation()+t.indentUnit),o.data.dedent&&i.indent.pop();var c=o.token;if(c&&c.apply&&(c=c(l)),l.length>2&&o.token&&typeof o.token!="string"){i.pending=[];for(var h=2;h<l.length;h++)l[h]&&i.pending.push({text:l[h],token:o.token[h-1]});return t.backUp(l[0].length-(l[1]?l[1].length:0)),c[0]}else return c&&c.join?c[0]:c}}return t.next(),null}}d(lR,"_w$1");m(lR,"tokenFunction");function cR(s,t){return function(i,n){if(i.indent==null||t.dontIndentStates&&t.dontIndentStates.indexOf(i.state)>-1)return null;var r=i.indent.length-1,a=s[i.state];e:for(;;){for(var o=0;o<a.length;o++){var l=a[o];if(l.data.dedent&&l.data.dedentIfLineStart!==!1){var c=l.regex.exec(n);if(c&&c[0]){r--,(l.next||l.push)&&(a=s[l.next||l.push]),n=n.slice(c[0].length);continue e}}}break}return r<0?0:i.indent[r]}}d(cR,"Cw$1");m(cR,"indentFunction");var _q=Object.defineProperty,ye=d((s,t)=>_q(s,"name",{value:t,configurable:!0}),"o$1");const K$="lit-localize-status",Iq=ye((s,...t)=>({strTag:!0,strings:s,values:t}),"_str"),oe=Iq,Zq=ye(s=>typeof s!="string"&&"strTag"in s,"isStrTagged"),hR=ye((s,t,i)=>{let n=s[0];for(let r=1;r<s.length;r++)n+=t[i?i[r-1]:r-1],n+=s[r];return n},"joinStringsAndValues"),dR=ye(s=>Zq(s)?hR(s.strings,s.values):s,"defaultMsg");let Q=dR,G4=!1;function uR(s){if(G4)throw new Error("lit-localize can only be configured once");Q=s,G4=!0}d(uR,"Nt$1");ye(uR,"_installMsgImplementation");var Vd;const pR=(Vd=class{constructor(t){this.__litLocalizeEventHandler=i=>{i.detail.status==="ready"&&this.host.requestUpdate()},this.host=t}hostConnected(){window.addEventListener(K$,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(K$,this.__litLocalizeEventHandler)}},d(Vd,"ze"),Vd);ye(pR,"LocalizeController");let Wq=pR;const Vq=ye(s=>s.addController(new Wq(s)),"_updateWhenLocaleChanges"),Dq=Vq,ke=ye(()=>(s,t)=>(s.addInitializer(Dq),s),"localized");var Dd;const fR=(Dd=class{constructor(){this.settled=!1,this.promise=new Promise((t,i)=>{this._resolve=t,this._reject=i})}resolve(t){this.settled=!0,this._resolve(t)}reject(t){this.settled=!0,this._reject(t)}},d(Dd,"Fe"),Dd);ye(fR,"Deferred");let yR=fR;const ks=[];for(let s=0;s<256;s++)ks[s]=(s>>4&15).toString(16)+(s&15).toString(16);function mR(s){let t=0,i=8997,n=0,r=33826,a=0,o=40164,l=0,c=52210;for(let h=0;h<s.length;h++)i^=s.charCodeAt(h),t=i*435,n=r*435,a=o*435,l=c*435,a+=i<<8,l+=r<<8,n+=t>>>16,i=t&65535,a+=n>>>16,r=n&65535,c=l+(a>>>16)&65535,o=a&65535;return ks[c>>8]+ks[c&255]+ks[o>>8]+ks[o&255]+ks[r>>8]+ks[r&255]+ks[i>>8]+ks[i&255]}d(mR,"Ht$1");ye(mR,"fnv1a64");const qq="",Uq="h",jq="s";function wR(s,t){return(t?Uq:jq)+mR(typeof s=="string"?s:s.join(qq))}d(wR,"Wt$1");ye(wR,"generateMsgId");const K4=new WeakMap,J4=new Map;function gR(s,t,i){if(s){const n=(i==null?void 0:i.id)??vR(t),r=s[n];if(r){if(typeof r=="string")return r;if("strTag"in r)return hR(r.strings,t.values,r.values);{let a=K4.get(r);return a===void 0&&(a=r.values,K4.set(r,a)),{...r,values:a.map(o=>t.values[o])}}}}return dR(t)}d(gR,"Vt$1");ye(gR,"runtimeMsg");function vR(s){const t=typeof s=="string"?s:s.strings;let i=J4.get(t);return i===void 0&&(i=wR(t,typeof s!="string"&&!("strTag"in s)),J4.set(t,i)),i}d(vR,"Dt$1");ye(vR,"generateId");function zg(s){window.dispatchEvent(new CustomEvent(K$,{detail:s}))}d(zg,"ye$1");ye(zg,"dispatchStatusEvent");let I1="",Yb,bR,Z1,J$,OR,La=new yR;La.resolve();let ng=0;const Bq=ye(s=>(uR((t,i)=>gR(OR,t,i)),I1=bR=s.sourceLocale,Z1=new Set(s.targetLocales),Z1.add(s.sourceLocale),J$=s.loadLocale,{getLocale:Fq,setLocale:Xq}),"configureLocalization"),Fq=ye(()=>I1,"getLocale"),Xq=ye(s=>{if(s===(Yb??I1))return La.promise;if(!Z1||!J$)throw new Error("Internal error");if(!Z1.has(s))throw new Error("Invalid locale code");ng++;const t=ng;return Yb=s,La.settled&&(La=new yR),zg({status:"loading",loadingLocale:s}),(s===bR?Promise.resolve({templates:void 0}):J$(s)).then(i=>{ng===t&&(I1=s,Yb=void 0,OR=i.templates,zg({status:"ready",readyLocale:s}),La.resolve())},i=>{ng===t&&(zg({status:"error",errorLocale:s,errorMessage:i.toString()}),La.reject(i))}),La.promise},"setLocale");var Gb,qd;const Nq=(Gb=(qd=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(){}},d(qd,"H"),qd),ye(Gb,"ElementInternals"),Gb);var qn=d(function(s,t,i,n,r){if(typeof t=="function"?s!==t||!0:!t.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(s,i),i},"y"),Ht=d(function(s,t,i,n){if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?s!==t||!n:!t.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?n:i==="a"?n.call(s):n?n.value:t.get(s)},"$"),Gl,sg,rg,ky,Kb,Sy,ag,ba,Py,er,og,eC;const tC=ye(s=>typeof s=="boolean"?s:(s==null?void 0:s.capture)??!1,"isCaptureEventListener"),W1=0,ex=1,V1=2,tx=3;var Jb,Ud;const Hq=(Jb=(Ud=class{constructor(){this.__eventListeners=new Map,this.__captureEventListeners=new Map}addEventListener(t,i,n){var r;if(i==null)return;const a=tC(n)?this.__captureEventListeners:this.__eventListeners;let o=a.get(t);if(o===void 0)o=new Map,a.set(t,o);else if(o.has(i))return;const l=typeof n=="object"&&n?n:{};(r=l.signal)==null||r.addEventListener("abort",()=>this.removeEventListener(t,i,n)),o.set(i,l??{})}removeEventListener(t,i,n){if(i==null)return;const r=tC(n)?this.__captureEventListeners:this.__eventListeners,a=r.get(t);a!==void 0&&(a.delete(i),a.size||r.delete(t))}dispatchEvent(t){const i=[this];let n=this.__eventTargetParent;if(t.composed)for(;n;)i.push(n),n=n.__eventTargetParent;else for(;n&&n!==this.__host;)i.push(n),n=n.__eventTargetParent;let r=!1,a=!1,o=W1,l=null,c=null,h=null;const u=t.stopPropagation,f=t.stopImmediatePropagation;Object.defineProperties(t,{target:{get(){return l??c},...je},srcElement:{get(){return t.target},...je},currentTarget:{get(){return h},...je},eventPhase:{get(){return o},...je},composedPath:{value:ye(()=>i,"value"),...je},stopPropagation:{value:ye(()=>{r=!0,u.call(t)},"value"),...je},stopImmediatePropagation:{value:ye(()=>{a=!0,f.call(t)},"value"),...je}});const y=ye(($,C,A)=>{typeof $=="function"?$(t):typeof($==null?void 0:$.handleEvent)=="function"&&$.handleEvent(t),C.once&&A.delete($)},"invokeEventListener"),w=ye(()=>(h=null,o=W1,!t.defaultPrevented),"finishDispatch"),g=i.slice().reverse();l=!this.__host||!t.composed?this:null;const O=ye($=>{for(c=this;c.__host&&$.includes(c.__host);)c=c.__host},"retarget");for(const $ of g){!l&&(!c||c===$.__host)&&O(g.slice(g.indexOf($))),h=$,o=$===t.target?V1:ex;const C=$.__captureEventListeners.get(t.type);if(C){for(const[A,E]of C)if(y(A,E,C),a)return w()}if(r)return w()}const x=t.bubbles?i:[this];c=null;for(const $ of x){!l&&(!c||$===c.__host)&&O(x.slice(0,x.indexOf($)+1)),h=$,o=$===t.target?V1:tx;const C=$.__eventListeners.get(t.type);if(C){for(const[A,E]of C)if(y(A,E,C),a)return w()}if(r)return w()}return w()}},d(Ud,"I$1"),Ud),ye(Jb,"EventTarget"),Jb),Yq=Hq,je={__proto__:null};je.enumerable=!0;Object.freeze(je);var eO,jd;const z5=(er=(eO=(jd=class{constructor(t,i={}){if(Gl.set(this,!1),sg.set(this,!1),rg.set(this,!1),ky.set(this,!1),Kb.set(this,Date.now()),Sy.set(this,!1),ag.set(this,void 0),ba.set(this,void 0),Py.set(this,void 0),this.NONE=W1,this.CAPTURING_PHASE=ex,this.AT_TARGET=V1,this.BUBBLING_PHASE=tx,arguments.length===0)throw new Error("The type argument must be specified");if(typeof i!="object"||!i)throw new Error('The "options" argument must be an object');const{bubbles:n,cancelable:r,composed:a}=i;qn(this,Gl,!!r),qn(this,sg,!!n),qn(this,rg,!!a),qn(this,ag,`${t}`),qn(this,ba,null),qn(this,Py,!1)}initEvent(t,i,n){throw new Error("Method not implemented.")}stopImmediatePropagation(){this.stopPropagation()}preventDefault(){qn(this,ky,!0)}get target(){return Ht(this,ba,"f")}get currentTarget(){return Ht(this,ba,"f")}get srcElement(){return Ht(this,ba,"f")}get type(){return Ht(this,ag,"f")}get cancelable(){return Ht(this,Gl,"f")}get defaultPrevented(){return Ht(this,Gl,"f")&&Ht(this,ky,"f")}get timeStamp(){return Ht(this,Kb,"f")}composedPath(){return Ht(this,Py,"f")?[Ht(this,ba,"f")]:[]}get returnValue(){return!Ht(this,Gl,"f")||!Ht(this,ky,"f")}get bubbles(){return Ht(this,sg,"f")}get composed(){return Ht(this,rg,"f")}get eventPhase(){return Ht(this,Py,"f")?er.AT_TARGET:er.NONE}get cancelBubble(){return Ht(this,Sy,"f")}set cancelBubble(t){t&&qn(this,Sy,!0)}stopPropagation(){qn(this,Sy,!0)}get isTrusted(){return!1}},d(jd,"j"),jd),ye(eO,"Event"),eO),Gl=new WeakMap,sg=new WeakMap,rg=new WeakMap,ky=new WeakMap,Kb=new WeakMap,Sy=new WeakMap,ag=new WeakMap,ba=new WeakMap,Py=new WeakMap,er.NONE=W1,er.CAPTURING_PHASE=ex,er.AT_TARGET=V1,er.BUBBLING_PHASE=tx,er);Object.defineProperties(z5.prototype,{initEvent:je,stopImmediatePropagation:je,preventDefault:je,target:je,currentTarget:je,srcElement:je,type:je,cancelable:je,defaultPrevented:je,timeStamp:je,composedPath:je,returnValue:je,bubbles:je,composed:je,eventPhase:je,cancelBubble:je,stopPropagation:je,isTrusted:je});var tO,Bd;const $R=(eC=(tO=(Bd=class extends z5{constructor(t,i={}){super(t,i),og.set(this,void 0),qn(this,og,(i==null?void 0:i.detail)??null)}initCustomEvent(t,i,n,r){throw new Error("Method not implemented.")}get detail(){return Ht(this,og,"f")}},d(Bd,"B$1"),Bd),ye(tO,"CustomEvent"),tO),og=new WeakMap,eC);Object.defineProperties($R.prototype,{detail:je});const Gq=z5,Kq=$R;globalThis.Event??(globalThis.Event=Gq);globalThis.CustomEvent??(globalThis.CustomEvent=Kq);const iC=new WeakMap,Cy=ye(s=>{let t=iC.get(s);return t===void 0&&iC.set(s,t=new Map),t},"attributesForElement");var iO,Fd;const Jq=(iO=(Fd=class extends Yq{constructor(){super(...arguments),this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(Cy(this)).map(([t,i])=>({name:t,value:i}))}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,i){Cy(this).set(t,String(i))}removeAttribute(t){Cy(this).delete(t)}toggleAttribute(t,i){if(this.hasAttribute(t)){if(i===void 0||!i)return this.removeAttribute(t),!1}else return i===void 0||i?(this.setAttribute(t,""),!0):!1;return!0}hasAttribute(t){return Cy(this).has(t)}attachShadow(t){const i={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=i),i}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 Nq(this);return this.__internals=t,t}getAttribute(t){return Cy(this).get(t)??null}},d(Fd,"W"),Fd),ye(iO,"Element"),iO);var nO,Xd;const eU=(nO=(Xd=class extends Jq{},d(Xd,"V"),Xd),ye(nO,"HTMLElement"),nO),xR=eU;globalThis.litServerRoot??(globalThis.litServerRoot=Object.defineProperty(new xR,"localName",{get(){return"lit-server-root"}}));var sO,Nd;const tU=(sO=(Nd=class{constructor(){this.__definitions=new Map}define(t,i){if(this.__definitions.has(t))throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);i.__localName=t,this.__definitions.set(t,{ctor:i,observedAttributes:i.observedAttributes??[]})}get(t){const i=this.__definitions.get(t);return i==null?void 0:i.ctor}},d(Nd,"D"),Nd),ye(sO,"CustomElementRegistry"),sO),iU=tU,nU=new iU,xm=globalThis,jv=xm.ShadowRoot&&(xm.ShadyCSS===void 0||xm.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_5=Symbol(),nC=new WeakMap;var rO,Hd;let kR=(rO=(Hd=class{constructor(t,i,n){if(this._$cssResult$=!0,n!==_5)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(jv&&t===void 0){const n=i!==void 0&&i.length===1;n&&(t=nC.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&nC.set(i,t))}return t}toString(){return this.cssText}},d(Hd,"z"),Hd),ye(rO,"n"),rO);const SR=ye(s=>new kR(typeof s=="string"?s:s+"",void 0,_5),"r$3"),Re=ye((s,...t)=>{const i=s.length===1?s[0]:t.reduce((n,r,a)=>n+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[a+1],s[0]);return new kR(i,s,_5)},"i$2"),PR=ye((s,t)=>{if(jv)s.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of t){const n=document.createElement("style"),r=xm.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=i.cssText,s.appendChild(n)}},"S$1"),sC=jv||xm.CSSStyleSheet===void 0?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let i="";for(const n of t.cssRules)i+=n.cssText;return SR(i)})(s):s,{is:sU,defineProperty:rU,getOwnPropertyDescriptor:aU,getOwnPropertyNames:oU,getOwnPropertySymbols:lU,getPrototypeOf:cU}=Object,Xr=globalThis;Xr.customElements??(Xr.customElements=nU);const rC=Xr.trustedTypes,hU=rC?rC.emptyScript:"",aC=Xr.reactiveElementPolyfillSupport,km=ye((s,t)=>s,"f$1"),D1={toAttribute(s,t){switch(t){case Boolean:s=s?hU:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let i=s;switch(t){case Boolean:i=s!==null;break;case Number:i=s===null?null:Number(s);break;case Object:case Array:try{i=JSON.parse(s)}catch{i=null}}return i}},I5=ye((s,t)=>!sU(s,t),"y$1"),oC={attribute:!0,type:String,converter:D1,reflect:!1,hasChanged:I5};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Xr.litPropertyMetadata??(Xr.litPropertyMetadata=new WeakMap);var aO,Yd;let hc=(aO=(Yd=class extends(globalThis.HTMLElement??xR){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,i=oC){if(i.state&&(i.attribute=!1),this._$Ei(),this.elementProperties.set(t,i),!i.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(t,n,i);r!==void 0&&rU(this.prototype,t,r)}}static getPropertyDescriptor(t,i,n){const{get:r,set:a}=aU(this.prototype,t)??{get(){return this[i]},set(o){this[i]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const l=r==null?void 0:r.call(this);a.call(this,o),this.requestUpdate(t,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??oC}static _$Ei(){if(this.hasOwnProperty(km("elementProperties")))return;const t=cU(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(km("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(km("properties"))){const i=this.properties,n=[...oU(i),...lU(i)];for(const r of n)this.createProperty(r,i[r])}const t=this[Symbol.metadata];if(t!==null){const i=litPropertyMetadata.get(t);if(i!==void 0)for(const[n,r]of i)this.elementProperties.set(n,r)}this._$Eh=new Map;for(const[i,n]of this.elementProperties){const r=this._$Eu(i,n);r!==void 0&&this._$Eh.set(r,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const r of n)i.unshift(sC(r))}else t!==void 0&&i.push(sC(t));return i}static _$Eu(t,i){const n=i.attribute;return n===!1?void 0:typeof n=="string"?n: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(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(i=>i(this))}addController(t){var i;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var i;(i=this._$EO)==null||i.delete(t)}_$E_(){const t=new Map,i=this.constructor.elementProperties;for(const n of i.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return PR(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(i=>{var n;return(n=i.hostConnected)==null?void 0:n.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(i=>{var n;return(n=i.hostDisconnected)==null?void 0:n.call(i)})}attributeChangedCallback(t,i,n){this._$AK(t,n)}_$EC(t,i){var n;const r=this.constructor.elementProperties.get(t),a=this.constructor._$Eu(t,r);if(a!==void 0&&r.reflect===!0){const o=(((n=r.converter)==null?void 0:n.toAttribute)!==void 0?r.converter:D1).toAttribute(i,r.type);this._$Em=t,o==null?this.removeAttribute(a):this.setAttribute(a,o),this._$Em=null}}_$AK(t,i){var n;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}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:D1;this._$Em=a,this[a]=l.fromAttribute(i,o.type),this._$Em=null}}requestUpdate(t,i,n){if(t!==void 0){if(n??(n=this.constructor.getPropertyOptions(t)),!(n.hasChanged??I5)(this[t],i))return;this.P(t,i,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,i,n){this._$AL.has(t)||this._$AL.set(t,i),n.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}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[a,o]of this._$Ep)this[a]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[a,o]of r)o.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],o)}let i=!1;const n=this._$AL;try{i=this.shouldUpdate(n),i?(this.willUpdate(n),(t=this._$EO)==null||t.forEach(r=>{var a;return(a=r.hostUpdate)==null?void 0:a.call(r)}),this.update(n)):this._$EU()}catch(r){throw i=!1,this._$EU(),r}i&&this._$AE(n)}willUpdate(t){}_$AE(t){var i;(i=this._$EO)==null||i.forEach(n=>{var r;return(r=n.hostUpdated)==null?void 0:r.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(i=>this._$EC(i,this[i]))),this._$EU()}updated(t){}firstUpdated(t){}},d(Yd,"F$1"),Yd),ye(aO,"g"),aO);hc.elementStyles=[],hc.shadowRootOptions={mode:"open"},hc[km("elementProperties")]=new Map,hc[km("finalized")]=new Map,aC==null||aC({ReactiveElement:hc}),(Xr.reactiveElementVersions??(Xr.reactiveElementVersions=[])).push("2.0.4");const jm=globalThis,q1=jm.trustedTypes,lC=q1?q1.createPolicy("lit-html",{createHTML:ye(s=>s,"createHTML")}):void 0,CR="$lit$",pr=`lit$${Math.random().toFixed(9).slice(2)}$`,QR="?"+pr,dU=`<${QR}>`,Vo=jm.document===void 0?{createTreeWalker:ye(()=>({}),"createTreeWalker")}:document,Bm=ye(()=>Vo.createComment(""),"l"),Fm=ye(s=>s===null||typeof s!="object"&&typeof s!="function","c"),Z5=Array.isArray,uU=ye(s=>Z5(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function","u"),oO=`[
|
|
30
30
|
\f\r]`,Qy=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,cC=/-->/g,hC=/>/g,Oa=RegExp(`>|${oO}(?:([^\\s"'>=/]+)(${oO}*=${oO}*(?:[^
|
|
31
31
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),dC=/'/g,uC=/"/g,MR=/^(?:script|style|textarea|title)$/i,TR=ye(s=>(t,...i)=>({_$litType$:s,strings:t,values:i}),"y"),b=TR(1),pC=TR(2),Pn=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),fC=new WeakMap,qa=Vo.createTreeWalker(Vo,129);function W5(s,t){if(!Z5(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return lC!==void 0?lC.createHTML(t):t}d(W5,"Mt");ye(W5,"P");const pU=ye((s,t)=>{const i=s.length-1,n=[];let r,a=t===2?"<svg>":t===3?"<math>":"",o=Qy;for(let l=0;l<i;l++){const c=s[l];let h,u,f=-1,y=0;for(;y<c.length&&(o.lastIndex=y,u=o.exec(c),u!==null);)y=o.lastIndex,o===Qy?u[1]==="!--"?o=cC:u[1]!==void 0?o=hC:u[2]!==void 0?(MR.test(u[2])&&(r=RegExp("</"+u[2],"g")),o=Oa):u[3]!==void 0&&(o=Oa):o===Oa?u[0]===">"?(o=r??Qy,f=-1):u[1]===void 0?f=-2:(f=o.lastIndex-u[2].length,h=u[1],o=u[3]===void 0?Oa:u[3]==='"'?uC:dC):o===uC||o===dC?o=Oa:o===cC||o===hC?o=Qy:(o=Oa,r=void 0);const w=o===Oa&&s[l+1].startsWith("/>")?" ":"";a+=o===Qy?c+dU:f>=0?(n.push(h),c.slice(0,f)+CR+c.slice(f)+pr+w):c+pr+(f===-2?l:w)}return[W5(s,a+(s[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},"V");var Qo;const RR=(Qo=class{constructor({strings:t,_$litType$:i},n){let r;this.parts=[];let a=0,o=0;const l=t.length-1,c=this.parts,[h,u]=pU(t,i);if(this.el=Qo.createElement(h,n),qa.currentNode=this.el.content,i===2||i===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(r=qa.nextNode())!==null&&c.length<l;){if(r.nodeType===1){if(r.hasAttributes())for(const f of r.getAttributeNames())if(f.endsWith(CR)){const y=u[o++],w=r.getAttribute(f).split(pr),g=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:g[2],strings:w,ctor:g[1]==="."?yU:g[1]==="?"?mU:g[1]==="@"?wU:Fv}),r.removeAttribute(f)}else f.startsWith(pr)&&(c.push({type:6,index:a}),r.removeAttribute(f));if(MR.test(r.tagName)){const f=r.textContent.split(pr),y=f.length-1;if(y>0){r.textContent=q1?q1.emptyScript:"";for(let w=0;w<y;w++)r.append(f[w],Bm()),qa.nextNode(),c.push({type:2,index:++a});r.append(f[y],Bm())}}}else if(r.nodeType===8)if(r.data===QR)c.push({type:2,index:a});else{let f=-1;for(;(f=r.data.indexOf(pr,f+1))!==-1;)c.push({type:7,index:a}),f+=pr.length-1}a++}}static createElement(t,i){const n=Vo.createElement("template");return n.innerHTML=t,n}},d(Qo,"$e"),Qo);ye(RR,"N");let ix=RR;function Do(s,t,i=s,n){var r,a;if(t===Pn)return t;let o=n!==void 0?(r=i._$Co)==null?void 0:r[n]:i._$Cl;const l=Fm(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==l&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),l===void 0?o=void 0:(o=new l(s),o._$AT(s,i,n)),n!==void 0?(i._$Co??(i._$Co=[]))[n]=o:i._$Cl=o),o!==void 0&&(t=Do(s,o._$AS(s,t.values),o,n)),t}d(Do,"q");ye(Do,"S");var Gd;const AR=(Gd=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:n}=this._$AD,r=((t==null?void 0:t.creationScope)??Vo).importNode(i,!0);qa.currentNode=r;let a=qa.nextNode(),o=0,l=0,c=n[0];for(;c!==void 0;){if(o===c.index){let h;c.type===2?h=new Bv(a,a.nextSibling,this,t):c.type===1?h=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(h=new gU(a,this,t)),this._$AV.push(h),c=n[++l]}o!==(c==null?void 0:c.index)&&(a=qa.nextNode(),o++)}return qa.currentNode=Vo,r}p(t){let i=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,i),i+=n.strings.length-2):n._$AI(t[i])),i++}},d(Gd,"Ge"),Gd);ye(AR,"M");let fU=AR;var Mo;const ER=(Mo=class{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,i,n,r){this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=n,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Do(this,t,i),Fm(t)?t===M||t==null||t===""?(this._$AH!==M&&this._$AR(),this._$AH=M):t!==this._$AH&&t!==Pn&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):uU(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!==M&&Fm(this._$AH)?this._$AA.nextSibling.data=t:this.T(Vo.createTextNode(t)),this._$AH=t}$(t){var i;const{values:n,_$litType$:r}=t,a=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=ix.createElement(W5(r.h,r.h[0]),this.options)),r);if(((i=this._$AH)==null?void 0:i._$AD)===a)this._$AH.p(n);else{const o=new fU(a,this),l=o.u(this.options);o.p(n),this.T(l),this._$AH=o}}_$AC(t){let i=fC.get(t.strings);return i===void 0&&fC.set(t.strings,i=new ix(t)),i}k(t){Z5(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,r=0;for(const a of t)r===i.length?i.push(n=new Mo(this.O(Bm()),this.O(Bm()),this,this.options)):n=i[r],n._$AI(a),r++;r<i.length&&(this._$AR(n&&n._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,i);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var i;this._$AM===void 0&&(this._$Cv=t,(i=this._$AP)==null||i.call(this,t))}},d(Mo,"_e"),Mo);ye(ER,"k");let Bv=ER;var Kd;const LR=(Kd=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,n,r,a){this.type=1,this._$AH=M,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=M}_$AI(t,i=this,n,r){const a=this.strings;let o=!1;if(a===void 0)t=Do(this,t,i,0),o=!Fm(t)||t!==this._$AH&&t!==Pn,o&&(this._$AH=t);else{const l=t;let c,h;for(t=a[0],c=0;c<a.length-1;c++)h=Do(this,l[n+c],i,c),h===Pn&&(h=this._$AH[c]),o||(o=!Fm(h)||h!==this._$AH[c]),h===M?t=M:t!==M&&(t+=(h??"")+a[c+1]),this._$AH[c]=h}o&&!r&&this.j(t)}j(t){t===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},d(Kd,"qe"),Kd);ye(LR,"R");let Fv=LR;var Jd;const zR=(Jd=class extends Fv{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===M?void 0:t}},d(Jd,"Ke"),Jd);ye(zR,"H");let yU=zR;var eu;const _R=(eu=class extends Fv{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==M)}},d(eu,"Ze"),eu);ye(_R,"I");let mU=_R;var tu;const IR=(tu=class extends Fv{constructor(t,i,n,r,a){super(t,i,n,r,a),this.type=5}_$AI(t,i=this){if((t=Do(this,t,i,0)??M)===Pn)return;const n=this._$AH,r=t===M&&n!==M||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,a=t!==M&&(n===M||r);r&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i;typeof this._$AH=="function"?this._$AH.call(((i=this.options)==null?void 0:i.host)??this.element,t):this._$AH.handleEvent(t)}},d(tu,"Je"),tu);ye(IR,"L");let wU=IR;var iu;const ZR=(iu=class{constructor(t,i,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Do(this,t)}},d(iu,"Xe"),iu);ye(ZR,"z");let gU=ZR;const vU={I:Bv},yC=jm.litHtmlPolyfillSupport;yC==null||yC(ix,Bv),(jm.litHtmlVersions??(jm.litHtmlVersions=[])).push("3.2.1");const WR=ye((s,t,i)=>{const n=(i==null?void 0:i.renderBefore)??t;let r=n._$litPart$;if(r===void 0){const a=(i==null?void 0:i.renderBefore)??null;n._$litPart$=r=new Bv(t.insertBefore(Bm(),a),a,void 0,i??{})}return r._$AI(s),r},"j");var nu;const VR=(nu=class extends hc{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const i=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=i.firstChild),i}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=WR(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Pn}},d(nu,"Qe"),nu);ye(VR,"r");let J=VR;var mC;J._$litElement$=!0,J.finalized=!0,(mC=globalThis.litElementHydrateSupport)==null||mC.call(globalThis,{LitElement:J});const wC=globalThis.litElementPolyfillSupport;wC==null||wC({LitElement:J});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");b`<strong>${0}</strong> redigerade <em>${1}</em>`,b`<strong>${0}</strong> nämnde dig i ett inlägg`,b`<strong>${0}</strong> kommenterade på <strong>${1}</strong>`,b`<strong>${0}</strong> reagerade med ${1} på <em>${2}</em>`,b`<strong>${0}</strong> svarade på ett inlägg`,b`<strong>${0}</strong> redigerade ett inlägg`,b`<strong>${0}</strong> nämnde dig i ett meddelande`,b`<strong>${0}</strong> nämnde dig i en kommentar`,b`<strong>${0}</strong> och <strong>${1}</strong> röstade i din omröstning`,b`<strong>${0}</strong> reagerade med ${1} på ditt inlägg`,b`<strong>${0}</strong> reagerade med ${1} på din kommentar`,b`Nytt meddelande från <strong>${0}</strong>`,b`<strong>${0}</strong> svarade på ditt inlägg`,b`<strong>${0}</strong> röstade i din omröstning`,b`<strong>${0}</strong> publicerade ett inlägg i <strong>${1}</strong>`,b`<strong>${0}</strong> gillade ditt meddelande`,b`<strong>${0}</strong>, <strong>${1}</strong> och <strong>${2}</strong> röstade i din omröstning`,b`<strong>${0}</strong> lade till <em>${1}</em> till <strong>${2}</strong>`,b`<strong>${0}</strong> skickade ett meddelande i <strong>${1}</strong>`,b`<strong>${0}</strong> reagerade med ${1} på ditt meddelande`,b`<strong>${0}</strong> gillade <em>${1}</em>`,b`<strong>${0}</strong> gillade ditt inlägg`,b`<strong>${0}</strong> gillade din kommentar`,b`<strong>${0}</strong> och ${1} andra röstade i din omröstning`,b`<strong>${0}</strong> kommenterade på <em>${1}</em>`,oe`${0} svarade på ditt inlägg`,oe`${0} röstade i din omröstning`,oe`Öppna i ${0}?`,oe`${0} skriver${1}`,oe`${0} och ${1} röstade i din omröstning`,oe`${0} kommenterade på ${1}`,oe`${0} gillade ${1}`,oe`${0} skickade ett meddelande i ${1}`,oe`${0} redigerade ett inlägg`,oe`Röster på ${0}`,oe`${0} kommentarer`,oe`Sedd av ${0} vid ${1}`,oe`${0} och ${1} andra röstade i din omröstning`,oe`Nytt meddelande från ${0}`,oe`${0} reagerade med ${1} på ditt inlägg`,oe`${0} nämnde dig i ett inlägg`,oe`${0} nämnde dig i en kommentar`,oe`${0} publicerade ett inlägg i ${1}`,oe`${0} gillade ditt inlägg`,oe`${0} nämnde dig i ett meddelande`,oe`${0} reagerade med ${1} på din kommentar`,oe` Öppna i ${0}
|
|
32
|
-
`,oe`${0} svarade på ett inlägg`,oe`${0} lade till ${1} till ${2}`,oe`${0} redigerade ${1}`,oe`${0} gillade ditt meddelande`,oe`${0}, ${1} och ${2} röstade i din omröstning`,oe`${0} reagerade med ${1} på ${2}`,oe`${0} reagerade med ${1} på ditt meddelande`,oe`${0} gillade din kommentar`,oe`${0} skriver${1}`;var bU=Object.defineProperty,DR=d(s=>{throw TypeError(s)},"hp"),p=d((s,t)=>bU(s,"name",{value:t,configurable:!0}),"c"),V5=d((s,t,i)=>t.has(s)||DR("Cannot "+i),"Dd"),S=d((s,t,i)=>(V5(s,t,"read from private field"),i?i.call(s):t.get(s)),"f"),j=d((s,t,i)=>t.has(s)?DR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,i),"F"),D=d((s,t,i,n)=>(V5(s,t,"write to private field"),t.set(s,i),i),"I"),ge=d((s,t,i)=>(V5(s,t,"access private method"),i),"et"),nx=d((s,t,i,n)=>({set _(r){D(s,t,r)},get _(){return S(s,t,n)}}),"Wc");function Xm(s){return Object.prototype.toString.call(s)==="[object Object]"}d(Xm,"Jc");p(Xm,"isObject");function Nm(s){if(Xm(s)===!1)return!1;const t=s.constructor;if(t===void 0)return!0;const i=t.prototype;return!(Xm(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}d(Nm,"tl");p(Nm,"isPlainObject$1");function Sm(s,t,i=!1){s=s||{},t=t||{};const n={};for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r]);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i&&n[r]&&Nm(n[r])&&Nm(t[r])?n[r]=Sm(n[r],t[r],i):n[r]=t[r]);return n}d(Sm,"Zc");p(Sm,"assign");function qR(s){return s&&(Array.isArray(s)?s:[s])||[]}d(qR,"nm");p(qR,"asArray");async function UR(s,t){for(const i of s)if(await t(i))return i}d(UR,"am");p(UR,"findAsyncSequential");function Ic(s,t,i=!1,n=!1){if(!n&&(!Nm(s)||!Nm(t))||n&&(!Xm(s)||!Xm(t)))return!1;const r=Object.getOwnPropertyNames(s),a=Object.getOwnPropertyNames(t);if(!i&&r.length!==a.length)return!1;for(let o=0;o<r.length;o++){const l=r[o],c=s[l],h=t[l];if(c!==h&&!Ic(c,h,i))return!1}return!0}d(Ic,"Ho");p(Ic,"eqObjects");function D5(s){return Object.entries(s)}d(D5,"Ey");p(D5,"objectAsIterable");function q5(s){return s.charAt(0).toUpperCase()+s.substring(1).toLowerCase()}d(q5,"Ay");p(q5,"toUpperCaseFirst");const OU='\\s,.:;"',$U=new RegExp(`^|[${OU}]|$`,"g"),xU=".!?",kU=new RegExp(`^|[${xU}]|$`);function U5(s){return s.length>0?s.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").replace(/_|\s+/g,"-").toLowerCase():s}d(U5,"Oy");p(U5,"toKebabCase");function jR(s,t=2){if(!s)return null;let i="";const n=s.split($U).filter(r=>r);return n.length==1?i=n[0]:n.forEach(r=>{i+=r.charAt(0)}),i.substring(0,t).toUpperCase()}d(jR,"hm");p(jR,"getInitials");function j5(s){let t;const i=s.split(kU).filter(n=>n);return i.length?t=i[0]:t=s,t}d(j5,"Ry");p(j5,"getTitleFromText");function B5(s,t=256){return s.length>t&&(s=s.substring(0,t-1)+"…"),s}d(B5,"Ly");p(B5,"truncateText");const SU={credentials:"omit",headers:{"X-Requested-With":"XMLHttpRequest"},redirect:"manual"};function Vf(){return((1+Math.random())*65536|0).toString(16).substring(1)}d(Vf,"No");p(Vf,"S4");function BR(s){if(s&&s.ok&&s.body){const t=s.body.getReader();return new ReadableStream({start(i){const n=p(()=>t.read().then(({done:r,value:a})=>{if(r){i.close();return}return i.enqueue(a),n()}),"pump");return n()}})}else throw new Error("Could not parse text stream")}d(BR,"pm");p(BR,"getTextStreamFromResponse");function FR(s){let t;try{if(t=window[s],t){const i="__storage_test__";t.setItem(i,i),t.removeItem(i)}}catch(i){i instanceof DOMException&&i.name==="QuotaExceededError"&&t&&t.length!==0&&console.error("Storage not available:",s)}return t}d(FR,"ym");p(FR,"getStorage");var su;const XR=(su=class extends Error{constructor(){super("Instance destroyed"),this.name="DestroyError"}},d(su,"Tu"),su);p(XR,"DestroyError");let kt=XR;var lO,ru,ly=(lO=(ru=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(){}},d(ru,"Ur"),ru),p(lO,"Subscribable"),lO),Df=typeof window>"u"||"Deno"in globalThis;function Wi(){}d(Wi,"Ke");p(Wi,"noop$1");function NR(s,t){return typeof s=="function"?s(t):s}d(NR,"wm");p(NR,"functionalUpdate");function U1(s){return typeof s=="number"&&s>=0&&s!==1/0}d(U1,"Jd");p(U1,"isValidTimeout");function F5(s,t){return Math.max(s+(t||0)-Date.now(),0)}d(F5,"Iy");p(F5,"timeUntilStale");function Ba(s,t){return typeof s=="function"?s(t):s}d(Ba,"Hr");p(Ba,"resolveStaleTime");function Ki(s,t){return typeof s=="function"?s(t):s}d(Ki,"si");p(Ki,"resolveEnabled");function sx(s,t){const{type:i="all",exact:n,fetchStatus:r,predicate:a,queryKey:o,stale:l}=s;if(o){if(n){if(t.queryHash!==Xv(o,t.options))return!1}else if(!qf(t.queryKey,o))return!1}if(i!=="all"){const c=t.isActive();if(i==="active"&&!c||i==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||r&&r!==t.state.fetchStatus||a&&!a(t))}d(sx,"yp");p(sx,"matchQuery");function rx(s,t){const{exact:i,status:n,predicate:r,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(i){if(Nr(t.options.mutationKey)!==Nr(a))return!1}else if(!qf(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||r&&!r(t))}d(rx,"wp");p(rx,"matchMutation");function Xv(s,t){return((t==null?void 0:t.queryKeyHashFn)||Nr)(s)}d(Xv,"Jh");p(Xv,"hashQueryKeyByOptions");function Nr(s){return JSON.stringify(s,(t,i)=>j1(i)?Object.keys(i).sort().reduce((n,r)=>(n[r]=i[r],n),{}):i)}d(Nr,"Ys");p(Nr,"hashKey");function qf(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?Object.keys(t).every(i=>qf(s[i],t[i])):!1}d(qf,"jo");p(qf,"partialMatchKey");function cy(s,t){if(s===t)return s;const i=ax(s)&&ax(t);if(i||j1(s)&&j1(t)){const n=i?s:Object.keys(s),r=n.length,a=i?t:Object.keys(t),o=a.length,l=i?[]:{};let c=0;for(let h=0;h<o;h++){const u=i?h:a[h];(!i&&n.includes(u)||i)&&s[u]===void 0&&t[u]===void 0?(l[u]=void 0,c++):(l[u]=cy(s[u],t[u]),l[u]===s[u]&&s[u]!==void 0&&c++)}return r===o&&c===r?s:l}return t}d(cy,"Oc");p(cy,"replaceEqualDeep");function Hm(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const i in s)if(s[i]!==t[i])return!1;return!0}d(Hm,"el");p(Hm,"shallowEqualObjects");function ax(s){return Array.isArray(s)&&s.length===Object.keys(s).length}d(ax,"fp");p(ax,"isPlainArray");function j1(s){if(!ox(s))return!1;const t=s.constructor;if(t===void 0)return!0;const i=t.prototype;return!(!ox(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}d(j1,"th");p(j1,"isPlainObject");function ox(s){return Object.prototype.toString.call(s)==="[object Object]"}d(ox,"mp");p(ox,"hasObjectPrototype");function HR(s){return new Promise(t=>{setTimeout(t,s)})}d(HR,"fm");p(HR,"sleep");function B1(s,t,i){return typeof i.structuralSharing=="function"?i.structuralSharing(s,t):i.structuralSharing!==!1?cy(s,t):t}d(B1,"eh");p(B1,"replaceData");function YR(s,t,i=0){const n=[...s,t];return i&&n.length>i?n.slice(1):n}d(YR,"mm");p(YR,"addToEnd");function GR(s,t,i=0){const n=[t,...s];return i&&n.length>i?n.slice(0,-1):n}d(GR,"vm");p(GR,"addToStart");var X5=Symbol();function N5(s,t){return!s.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!s.queryFn||s.queryFn===X5?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}d(N5,"Ty");p(N5,"ensureQueryFn");var Kl,$a,My,cO,au,PU=(cO=(au=class extends ly{constructor(){super(),j(this,Kl),j(this,$a),j(this,My),D(this,My,t=>{if(!Df&&window.addEventListener){const i=p(()=>t(),"listener");return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){S(this,$a)||this.setEventListener(S(this,My))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,$a))==null||t.call(this),D(this,$a,void 0))}setEventListener(t){var i;D(this,My,t),(i=S(this,$a))==null||i.call(this),D(this,$a,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){S(this,Kl)!==t&&(D(this,Kl,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(i=>{i(t)})}isFocused(){var t;return typeof S(this,Kl)=="boolean"?S(this,Kl):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},d(au,"Nr"),au),Kl=new WeakMap,$a=new WeakMap,My=new WeakMap,p(cO,"FocusManager"),cO),H5=new PU,Ty,xa,Ry,hO,ou,CU=(hO=(ou=class extends ly{constructor(){super(),j(this,Ty,!0),j(this,xa),j(this,Ry),D(this,Ry,t=>{if(!Df&&window.addEventListener){const i=p(()=>t(!0),"onlineListener"),n=p(()=>t(!1),"offlineListener");return window.addEventListener("online",i,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",n)}}})}onSubscribe(){S(this,xa)||this.setEventListener(S(this,Ry))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,xa))==null||t.call(this),D(this,xa,void 0))}setEventListener(t){var i;D(this,Ry,t),(i=S(this,xa))==null||i.call(this),D(this,xa,t(this.setOnline.bind(this)))}setOnline(t){S(this,Ty)!==t&&(D(this,Ty,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return S(this,Ty)}},d(ou,"Qr"),ou),Ty=new WeakMap,xa=new WeakMap,Ry=new WeakMap,p(hO,"OnlineManager"),hO),F1=new CU;function X1(){let s,t;const i=new Promise((r,a)=>{s=r,t=a});i.status="pending",i.catch(()=>{});function n(r){Object.assign(i,r),delete i.resolve,delete i.reject}return d(n,"r"),p(n,"finalize"),i.resolve=r=>{n({status:"fulfilled",value:r}),s(r)},i.reject=r=>{n({status:"rejected",reason:r}),t(r)},i}d(X1,"ih");p(X1,"pendingThenable");function KR(s){return Math.min(1e3*2**s,3e4)}d(KR,"xm");p(KR,"defaultRetryDelay");function Y5(s){return(s??"online")==="online"?F1.isOnline():!0}d(Y5,"Fy");p(Y5,"canFetch");var dO,lu,JR=(dO=(lu=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}},d(lu,"Kr"),lu),p(dO,"CancelledError"),dO);function _g(s){return s instanceof JR}d(_g,"Hd");p(_g,"isCancelledError");function G5(s){let t=!1,i=0,n=!1,r;const a=X1(),o=p(O=>{var x;n||(y(new JR(O)),(x=s.abort)==null||x.call(s))},"cancel"),l=p(()=>{t=!0},"cancelRetry"),c=p(()=>{t=!1},"continueRetry"),h=p(()=>H5.isFocused()&&(s.networkMode==="always"||F1.isOnline())&&s.canRun(),"canContinue"),u=p(()=>Y5(s.networkMode)&&s.canRun(),"canStart"),f=p(O=>{var x;n||(n=!0,(x=s.onSuccess)==null||x.call(s,O),r==null||r(),a.resolve(O))},"resolve"),y=p(O=>{var x;n||(n=!0,(x=s.onError)==null||x.call(s,O),r==null||r(),a.reject(O))},"reject"),w=p(()=>new Promise(O=>{var x;r=p($=>{(n||h())&&O($)},"continueFn"),(x=s.onPause)==null||x.call(s)}).then(()=>{var O;r=void 0,n||(O=s.onContinue)==null||O.call(s)}),"pause"),g=p(()=>{if(n)return;let O;const x=i===0?s.initialPromise:void 0;try{O=x??s.fn()}catch($){O=Promise.reject($)}Promise.resolve(O).then(f).catch($=>{var C;if(n)return;const A=s.retry??(Df?0:3),E=s.retryDelay??KR,R=typeof E=="function"?E(i,$):E,z=A===!0||typeof A=="number"&&i<A||typeof A=="function"&&A(i,$);if(t||!z){y($);return}i++,(C=s.onFail)==null||C.call(s,i,$),HR(R).then(()=>h()?void 0:w()).then(()=>{t?y($):g()})})},"run");return{promise:a,cancel:o,continue:p(()=>(r==null||r(),a),"continue"),cancelRetry:l,continueRetry:c,canStart:u,start:p(()=>(u()?g():w().then(g),a),"start")}}d(G5,"Hy");p(G5,"createRetryer");var QU=p(s=>setTimeout(s,0),"defaultScheduler");function eA(){let s=[],t=0,i=p(l=>{l()},"notifyFn"),n=p(l=>{l()},"batchNotifyFn"),r=QU;const a=p(l=>{t?s.push(l):r(()=>{i(l)})},"schedule"),o=p(()=>{const l=s;s=[],l.length&&r(()=>{n(()=>{l.forEach(c=>{i(c)})})})},"flush");return{batch:p(l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},"batch"),batchCalls:p(l=>(...c)=>{a(()=>{l(...c)})},"batchCalls"),schedule:a,setNotifyFunction:p(l=>{i=l},"setNotifyFunction"),setBatchNotifyFunction:p(l=>{n=l},"setBatchNotifyFunction"),setScheduler:p(l=>{r=l},"setScheduler")}}d(eA,"Cm");p(eA,"createNotifyManager");var ti=eA(),Jl,uO,cu,tA=(uO=(cu=class{constructor(){j(this,Jl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),U1(this.gcTime)&&D(this,Jl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Df?1/0:5*60*1e3))}clearGcTimeout(){S(this,Jl)&&(clearTimeout(S(this,Jl)),D(this,Jl,void 0))}},d(cu,"Gr"),cu),Jl=new WeakMap,p(uO,"Removable"),uO),Ay,Ey,fn,ec,hi,lg,tc,Zn,vs,pO,hu,MU=(pO=(hu=class extends tA{constructor(t){super(),j(this,Zn),j(this,Ay),j(this,Ey),j(this,fn),j(this,ec),j(this,hi),j(this,lg),j(this,tc),D(this,tc,!1),D(this,lg,t.defaultOptions),this.setOptions(t.options),this.observers=[],D(this,ec,t.client),D(this,fn,S(this,ec).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,D(this,Ay,iA(this.options)),this.state=t.state??S(this,Ay),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=S(this,hi))==null?void 0:t.promise}setOptions(t){this.options={...S(this,lg),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,fn).remove(this)}setData(t,i){const n=B1(this.state.data,t,this.options);return ge(this,Zn,vs).call(this,{data:n,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),n}setState(t,i){ge(this,Zn,vs).call(this,{type:"setState",state:t,setStateOptions:i})}cancel(t){var i,n;const r=(i=S(this,hi))==null?void 0:i.promise;return(n=S(this,hi))==null||n.cancel(t),r?r.then(Wi).catch(Wi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Ay))}isActive(){return this.observers.some(t=>Ki(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===X5||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!F5(this.state.dataUpdatedAt,t)}onFocus(){var t;const i=this.observers.find(n=>n.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(t=S(this,hi))==null||t.continue()}onOnline(){var t;const i=this.observers.find(n=>n.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(t=S(this,hi))==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),S(this,fn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(i=>i!==t),this.observers.length||(S(this,hi)&&(S(this,tc)?S(this,hi).cancel({revert:!0}):S(this,hi).cancelRetry()),this.scheduleGc()),S(this,fn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ge(this,Zn,vs).call(this,{type:"invalidate"})}fetch(t,i){var n,r,a;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&i!=null&&i.cancelRefetch)this.cancel({silent:!0});else if(S(this,hi))return S(this,hi).continueRetry(),S(this,hi).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(y=>y.options.queryFn);f&&this.setOptions(f.options)}const o=new AbortController,l=p(f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:p(()=>(D(this,tc,!0),o.signal),"get")})},"addSignalProperty"),c=p(()=>{const f=N5(this.options,i),y={client:S(this,ec),queryKey:this.queryKey,meta:this.meta};return l(y),D(this,tc,!1),this.options.persister?this.options.persister(f,y,this):f(y)},"fetchFn"),h={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:S(this,ec),state:this.state,fetchFn:c};l(h),(n=this.options.behavior)==null||n.onFetch(h,this),D(this,Ey,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((r=h.fetchOptions)==null?void 0:r.meta))&&ge(this,Zn,vs).call(this,{type:"fetch",meta:(a=h.fetchOptions)==null?void 0:a.meta});const u=p(f=>{var y,w,g,O;_g(f)&&f.silent||ge(this,Zn,vs).call(this,{type:"error",error:f}),_g(f)||((w=(y=S(this,fn).config).onError)==null||w.call(y,f,this),(O=(g=S(this,fn).config).onSettled)==null||O.call(g,this.state.data,f,this)),this.scheduleGc()},"onError");return D(this,hi,G5({initialPromise:i==null?void 0:i.initialPromise,fn:h.fetchFn,abort:o.abort.bind(o),onSuccess:p(f=>{var y,w,g,O;if(f===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(x){u(x);return}(w=(y=S(this,fn).config).onSuccess)==null||w.call(y,f,this),(O=(g=S(this,fn).config).onSettled)==null||O.call(g,f,this.state.error,this),this.scheduleGc()},"onSuccess"),onError:u,onFail:p((f,y)=>{ge(this,Zn,vs).call(this,{type:"failed",failureCount:f,error:y})},"onFail"),onPause:p(()=>{ge(this,Zn,vs).call(this,{type:"pause"})},"onPause"),onContinue:p(()=>{ge(this,Zn,vs).call(this,{type:"continue"})},"onContinue"),retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:p(()=>!0,"canRun")})),S(this,hi).start()}},d(hu,"Xr"),hu),Ay=new WeakMap,Ey=new WeakMap,fn=new WeakMap,ec=new WeakMap,hi=new WeakMap,lg=new WeakMap,tc=new WeakMap,Zn=new WeakSet,vs=p(function(s){const t=p(i=>{switch(s.type){case"failed":return{...i,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...K5(i.data,this.options),fetchMeta:s.meta??null};case"success":return{...i,data:s.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:s.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=s.error;return _g(n)&&n.revert&&S(this,Ey)?{...S(this,Ey),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...s.state}}},"reducer");this.state=t(this.state),ti.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),S(this,fn).notify({query:this,type:"updated",action:s})})},"#dispatch"),p(pO,"Query"),pO);function K5(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Y5(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}d(K5,"By");p(K5,"fetchState");function iA(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,i=t!==void 0,n=i?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}d(iA,"_m");p(iA,"getDefaultState$1");var bs,fO,du,TU=(fO=(du=class extends ly{constructor(t={}){super(),j(this,bs),this.config=t,D(this,bs,new Map)}build(t,i,n){const r=i.queryKey,a=i.queryHash??Xv(r,i);let o=this.get(a);return o||(o=new MU({client:t,queryKey:r,queryHash:a,options:t.defaultQueryOptions(i),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){S(this,bs).has(t.queryHash)||(S(this,bs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const i=S(this,bs).get(t.queryHash);i&&(t.destroy(),i===t&&S(this,bs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ti.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return S(this,bs).get(t)}getAll(){return[...S(this,bs).values()]}find(t){const i={exact:!0,...t};return this.getAll().find(n=>sx(i,n))}findAll(t={}){const i=this.getAll();return Object.keys(t).length>0?i.filter(n=>sx(t,n)):i}notify(t){ti.batch(()=>{this.listeners.forEach(i=>{i(t)})})}onFocus(){ti.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ti.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},d(du,"Jr"),du),bs=new WeakMap,p(fO,"QueryCache"),fO),Os,$i,ic,$s,tr,yO,uu,RU=(yO=(uu=class extends tA{constructor(t){super(),j(this,$s),j(this,Os),j(this,$i),j(this,ic),this.mutationId=t.mutationId,D(this,$i,t.mutationCache),D(this,Os,[]),this.state=t.state||J5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,Os).includes(t)||(S(this,Os).push(t),this.clearGcTimeout(),S(this,$i).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){D(this,Os,S(this,Os).filter(i=>i!==t)),this.scheduleGc(),S(this,$i).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,Os).length||(this.state.status==="pending"?this.scheduleGc():S(this,$i).remove(this))}continue(){var t;return((t=S(this,ic))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,n,r,a,o,l,c,h,u,f,y,w,g,O,x,$,C,A,E,R;D(this,ic,G5({fn:p(()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),"fn"),onFail:p((q,B)=>{ge(this,$s,tr).call(this,{type:"failed",failureCount:q,error:B})},"onFail"),onPause:p(()=>{ge(this,$s,tr).call(this,{type:"pause"})},"onPause"),onContinue:p(()=>{ge(this,$s,tr).call(this,{type:"continue"})},"onContinue"),retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:p(()=>S(this,$i).canRun(this),"canRun")}));const z=this.state.status==="pending",I=!S(this,ic).canStart();try{if(!z){ge(this,$s,tr).call(this,{type:"pending",variables:t,isPaused:I}),await((n=(i=S(this,$i).config).onMutate)==null?void 0:n.call(i,t,this));const B=await((a=(r=this.options).onMutate)==null?void 0:a.call(r,t));B!==this.state.context&&ge(this,$s,tr).call(this,{type:"pending",context:B,variables:t,isPaused:I})}const q=await S(this,ic).start();return await((l=(o=S(this,$i).config).onSuccess)==null?void 0:l.call(o,q,t,this.state.context,this)),await((h=(c=this.options).onSuccess)==null?void 0:h.call(c,q,t,this.state.context)),await((f=(u=S(this,$i).config).onSettled)==null?void 0:f.call(u,q,null,this.state.variables,this.state.context,this)),await((w=(y=this.options).onSettled)==null?void 0:w.call(y,q,null,t,this.state.context)),ge(this,$s,tr).call(this,{type:"success",data:q}),q}catch(q){try{throw await((O=(g=S(this,$i).config).onError)==null?void 0:O.call(g,q,t,this.state.context,this)),await(($=(x=this.options).onError)==null?void 0:$.call(x,q,t,this.state.context)),await((A=(C=S(this,$i).config).onSettled)==null?void 0:A.call(C,void 0,q,this.state.variables,this.state.context,this)),await((R=(E=this.options).onSettled)==null?void 0:R.call(E,void 0,q,t,this.state.context)),q}finally{ge(this,$s,tr).call(this,{type:"error",error:q})}}finally{S(this,$i).runNext(this)}}},d(uu,"tn"),uu),Os=new WeakMap,$i=new WeakMap,ic=new WeakMap,$s=new WeakSet,tr=p(function(s){const t=p(i=>{switch(s.type){case"failed":return{...i,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...i,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:s.error,failureCount:i.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}},"reducer");this.state=t(this.state),ti.batch(()=>{S(this,Os).forEach(i=>{i.onMutationUpdate(s)}),S(this,$i).notify({mutation:this,type:"updated",action:s})})},"#dispatch"),p(yO,"Mutation"),yO);function J5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}d(J5,"Uy");p(J5,"getDefaultState");var ir,Wn,cg,mO,pu,AU=(mO=(pu=class extends ly{constructor(t={}){super(),j(this,ir),j(this,Wn),j(this,cg),this.config=t,D(this,ir,new Set),D(this,Wn,new Map),D(this,cg,0)}build(t,i,n){const r=new RU({mutationCache:this,mutationId:++nx(this,cg)._,options:t.defaultMutationOptions(i),state:n});return this.add(r),r}add(t){S(this,ir).add(t);const i=sm(t);if(typeof i=="string"){const n=S(this,Wn).get(i);n?n.push(t):S(this,Wn).set(i,[t])}this.notify({type:"added",mutation:t})}remove(t){if(S(this,ir).delete(t)){const i=sm(t);if(typeof i=="string"){const n=S(this,Wn).get(i);if(n)if(n.length>1){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}else n[0]===t&&S(this,Wn).delete(i)}}this.notify({type:"removed",mutation:t})}canRun(t){const i=sm(t);if(typeof i=="string"){const n=S(this,Wn).get(i),r=n==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===t}else return!0}runNext(t){var i;const n=sm(t);if(typeof n=="string"){const r=(i=S(this,Wn).get(n))==null?void 0:i.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ti.batch(()=>{S(this,ir).forEach(t=>{this.notify({type:"removed",mutation:t})}),S(this,ir).clear(),S(this,Wn).clear()})}getAll(){return Array.from(S(this,ir))}find(t){const i={exact:!0,...t};return this.getAll().find(n=>rx(i,n))}findAll(t={}){return this.getAll().filter(i=>rx(t,i))}notify(t){ti.batch(()=>{this.listeners.forEach(i=>{i(t)})})}resumePausedMutations(){const t=this.getAll().filter(i=>i.state.isPaused);return ti.batch(()=>Promise.all(t.map(i=>i.continue().catch(Wi))))}},d(pu,"en"),pu),ir=new WeakMap,Wn=new WeakMap,cg=new WeakMap,p(mO,"MutationCache"),mO);function sm(s){var t;return(t=s.options.scope)==null?void 0:t.id}d(sm,"Qc");p(sm,"scopeFor");function Ym(s){return{onFetch:p((t,i)=>{var n,r,a,o,l;const c=t.options,h=(a=(r=(n=t.fetchOptions)==null?void 0:n.meta)==null?void 0:r.fetchMore)==null?void 0:a.direction,u=((o=t.state.data)==null?void 0:o.pages)||[],f=((l=t.state.data)==null?void 0:l.pageParams)||[];let y={pages:[],pageParams:[]},w=0;const g=p(async()=>{let O=!1;const x=p(A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:p(()=>(t.signal.aborted?O=!0:t.signal.addEventListener("abort",()=>{O=!0}),t.signal),"get")})},"addSignalProperty"),$=N5(t.options,t.fetchOptions),C=p(async(A,E,R)=>{if(O)return Promise.reject();if(E==null&&A.pages.length)return Promise.resolve(A);const z={client:t.client,queryKey:t.queryKey,pageParam:E,direction:R?"backward":"forward",meta:t.options.meta};x(z);const I=await $(z),{maxPages:q}=t.options,B=R?GR:YR;return{pages:B(A.pages,I,q),pageParams:B(A.pageParams,E,q)}},"fetchPage");if(h&&u.length){const A=h==="backward",E=A?eS:N1,R={pages:u,pageParams:f},z=E(c,R);y=await C(R,z,A)}else{const A=s??u.length;do{const E=w===0?f[0]??c.initialPageParam:N1(c,y);if(w>0&&E==null)break;y=await C(y,E),w++}while(w<A)}return y},"fetchFn");t.options.persister?t.fetchFn=()=>{var O,x;return(x=(O=t.options).persister)==null?void 0:x.call(O,g,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i)}:t.fetchFn=g},"onFetch")}}d(Ym,"sl");p(Ym,"infiniteQueryBehavior");function N1(s,{pages:t,pageParams:i}){const n=t.length-1;return t.length>0?s.getNextPageParam(t[n],t,i[n],i):void 0}d(N1,"sh");p(N1,"getNextPageParam");function eS(s,{pages:t,pageParams:i}){var n;return t.length>0?(n=s.getPreviousPageParam)==null?void 0:n.call(s,t[0],t,i[0],i):void 0}d(eS,"qy");p(eS,"getPreviousPageParam");function nA(s,t){return t?N1(s,t)!=null:!1}d(nA,"Sm");p(nA,"hasNextPage");function sA(s,t){return!t||!s.getPreviousPageParam?!1:eS(s,t)!=null}d(sA,"Em");p(sA,"hasPreviousPage");var yt,ka,Sa,Ly,zy,Pa,_y,Iy,wO,fu,EU=(wO=(fu=class{constructor(t={}){j(this,yt),j(this,ka),j(this,Sa),j(this,Ly),j(this,zy),j(this,Pa),j(this,_y),j(this,Iy),D(this,yt,t.queryCache||new TU),D(this,ka,t.mutationCache||new AU),D(this,Sa,t.defaultOptions||{}),D(this,Ly,new Map),D(this,zy,new Map),D(this,Pa,0)}mount(){nx(this,Pa)._++,S(this,Pa)===1&&(D(this,_y,H5.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,yt).onFocus())})),D(this,Iy,F1.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,yt).onOnline())})))}unmount(){var t,i;nx(this,Pa)._--,S(this,Pa)===0&&((t=S(this,_y))==null||t.call(this),D(this,_y,void 0),(i=S(this,Iy))==null||i.call(this),D(this,Iy,void 0))}isFetching(t){return S(this,yt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return S(this,ka).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const n=this.defaultQueryOptions({queryKey:t});return(i=S(this,yt).get(n.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const i=this.defaultQueryOptions(t),n=S(this,yt).build(this,i),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Ba(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(t){return S(this,yt).findAll(t).map(({queryKey:i,state:n})=>{const r=n.data;return[i,r]})}setQueryData(t,i,n){const r=this.defaultQueryOptions({queryKey:t}),a=S(this,yt).get(r.queryHash),o=a==null?void 0:a.state.data,l=NR(i,o);if(l!==void 0)return S(this,yt).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(t,i,n){return ti.batch(()=>S(this,yt).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,i,n)]))}getQueryState(t){var i;const n=this.defaultQueryOptions({queryKey:t});return(i=S(this,yt).get(n.queryHash))==null?void 0:i.state}removeQueries(t){const i=S(this,yt);ti.batch(()=>{i.findAll(t).forEach(n=>{i.remove(n)})})}resetQueries(t,i){const n=S(this,yt);return ti.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},i)))}cancelQueries(t,i={}){const n={revert:!0,...i},r=ti.batch(()=>S(this,yt).findAll(t).map(a=>a.cancel(n)));return Promise.all(r).then(Wi).catch(Wi)}invalidateQueries(t,i={}){return ti.batch(()=>(S(this,yt).findAll(t).forEach(n=>{n.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"},i)))}refetchQueries(t,i={}){const n={...i,cancelRefetch:i.cancelRefetch??!0},r=ti.batch(()=>S(this,yt).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Wi)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Wi)}fetchQuery(t){const i=this.defaultQueryOptions(t);i.retry===void 0&&(i.retry=!1);const n=S(this,yt).build(this,i);return n.isStaleByTime(Ba(i.staleTime,n))?n.fetch(i):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Wi).catch(Wi)}fetchInfiniteQuery(t){return t.behavior=Ym(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Wi).catch(Wi)}ensureInfiniteQueryData(t){return t.behavior=Ym(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return F1.isOnline()?S(this,ka).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,yt)}getMutationCache(){return S(this,ka)}getDefaultOptions(){return S(this,Sa)}setDefaultOptions(t){D(this,Sa,t)}setQueryDefaults(t,i){S(this,Ly).set(Nr(t),{queryKey:t,defaultOptions:i})}getQueryDefaults(t){const i=[...S(this,Ly).values()],n={};return i.forEach(r=>{qf(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,i){S(this,zy).set(Nr(t),{mutationKey:t,defaultOptions:i})}getMutationDefaults(t){const i=[...S(this,zy).values()],n={};return i.forEach(r=>{qf(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const i={...S(this,Sa).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return i.queryHash||(i.queryHash=Xv(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===X5&&(i.enabled=!1),i}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...S(this,Sa).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){S(this,yt).clear(),S(this,ka).clear()}},d(fu,"on"),fu),yt=new WeakMap,ka=new WeakMap,Sa=new WeakMap,Ly=new WeakMap,zy=new WeakMap,Pa=new WeakMap,_y=new WeakMap,Iy=new WeakMap,p(wO,"QueryClient"),wO),_i,ze,hg,xi,nc,Zy,Ca,xs,dg,Wy,Vy,sc,rc,Qa,Dy,mt,qy,gO,vO,bO,OO,$O,xO,kO,gC,SO,yu,rA=(SO=(yu=class extends ly{constructor(t,i){super(),j(this,mt),j(this,_i),j(this,ze),j(this,hg),j(this,xi),j(this,nc),j(this,Zy),j(this,Ca),j(this,xs),j(this,dg),j(this,Wy),j(this,Vy),j(this,sc),j(this,rc),j(this,Qa),j(this,Dy,new Set),this.options=i,D(this,_i,t),D(this,xs,null),D(this,Ca,X1()),this.options.experimental_prefetchInRender||S(this,Ca).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,ze).addObserver(this),lx(S(this,ze),this.options)?ge(this,mt,qy).call(this):this.updateResult(),ge(this,mt,OO).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return H1(S(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return H1(S(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ge(this,mt,$O).call(this),ge(this,mt,xO).call(this),S(this,ze).removeObserver(this)}setOptions(t){const i=this.options,n=S(this,ze);if(this.options=S(this,_i).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ki(this.options.enabled,S(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ge(this,mt,kO).call(this),S(this,ze).setOptions(this.options),i._defaulted&&!Hm(this.options,i)&&S(this,_i).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,ze),observer:this});const r=this.hasListeners();r&&cx(S(this,ze),n,this.options,i)&&ge(this,mt,qy).call(this),this.updateResult(),r&&(S(this,ze)!==n||Ki(this.options.enabled,S(this,ze))!==Ki(i.enabled,S(this,ze))||Ba(this.options.staleTime,S(this,ze))!==Ba(i.staleTime,S(this,ze)))&&ge(this,mt,gO).call(this);const a=ge(this,mt,vO).call(this);r&&(S(this,ze)!==n||Ki(this.options.enabled,S(this,ze))!==Ki(i.enabled,S(this,ze))||a!==S(this,Qa))&&ge(this,mt,bO).call(this,a)}getOptimisticResult(t){const i=S(this,_i).getQueryCache().build(S(this,_i),t),n=this.createResult(i,t);return oA(this,n)&&(D(this,xi,n),D(this,Zy,this.options),D(this,nc,S(this,ze).state)),n}getCurrentResult(){return S(this,xi)}trackResult(t,i){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:p(()=>(this.trackProp(r),i==null||i(r),t[r]),"get")})}),n}trackProp(t){S(this,Dy).add(t)}getCurrentQuery(){return S(this,ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const i=S(this,_i).defaultQueryOptions(t),n=S(this,_i).getQueryCache().build(S(this,_i),i);return n.fetch().then(()=>this.createResult(n,i))}fetch(t){return ge(this,mt,qy).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,xi)))}createResult(t,i){var n;const r=S(this,ze),a=this.options,o=S(this,xi),l=S(this,nc),c=S(this,Zy),h=t!==r?t.state:S(this,hg),{state:u}=t;let f={...u},y=!1,w;if(i._optimisticResults){const I=this.hasListeners(),q=!I&&lx(t,i),B=I&&cx(t,r,i,a);(q||B)&&(f={...f,...K5(u.data,t.options)}),i._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:O,status:x}=f;if(i.select&&f.data!==void 0)if(o&&f.data===(l==null?void 0:l.data)&&i.select===S(this,dg))w=S(this,Wy);else try{D(this,dg,i.select),w=i.select(f.data),w=B1(o==null?void 0:o.data,w,i),D(this,Wy,w),D(this,xs,null)}catch(I){D(this,xs,I)}else w=f.data;if(i.placeholderData!==void 0&&w===void 0&&x==="pending"){let I;if(o!=null&&o.isPlaceholderData&&i.placeholderData===(c==null?void 0:c.placeholderData))I=o.data;else if(I=typeof i.placeholderData=="function"?i.placeholderData((n=S(this,Vy))==null?void 0:n.state.data,S(this,Vy)):i.placeholderData,i.select&&I!==void 0)try{I=i.select(I),D(this,xs,null)}catch(q){D(this,xs,q)}I!==void 0&&(x="success",w=B1(o==null?void 0:o.data,I,i),y=!0)}S(this,xs)&&(g=S(this,xs),w=S(this,Wy),O=Date.now(),x="error");const $=f.fetchStatus==="fetching",C=x==="pending",A=x==="error",E=C&&$,R=w!==void 0,z={status:x,fetchStatus:f.fetchStatus,isPending:C,isSuccess:x==="success",isError:A,isInitialLoading:E,isLoading:E,data:w,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:O,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>h.dataUpdateCount||f.errorUpdateCount>h.errorUpdateCount,isFetching:$,isRefetching:$&&!C,isLoadingError:A&&!R,isPaused:f.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:A&&R,isStale:Nv(t,i),refetch:this.refetch,promise:S(this,Ca)};if(this.options.experimental_prefetchInRender){const I=p(ne=>{z.status==="error"?ne.reject(z.error):z.data!==void 0&&ne.resolve(z.data)},"finalizeThenableIfPossible"),q=p(()=>{const ne=D(this,Ca,z.promise=X1());I(ne)},"recreateThenable"),B=S(this,Ca);switch(B.status){case"pending":t.queryHash===r.queryHash&&I(B);break;case"fulfilled":(z.status==="error"||z.data!==B.value)&&q();break;case"rejected":(z.status!=="error"||z.error!==B.reason)&&q();break}}return z}updateResult(){const t=S(this,xi),i=this.createResult(S(this,ze),this.options);if(D(this,nc,S(this,ze).state),D(this,Zy,this.options),S(this,nc).data!==void 0&&D(this,Vy,S(this,ze)),Hm(i,t))return;D(this,xi,i);const n=p(()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!S(this,Dy).size)return!0;const o=new Set(a??S(this,Dy));return this.options.throwOnError&&o.add("error"),Object.keys(S(this,xi)).some(l=>{const c=l;return S(this,xi)[c]!==t[c]&&o.has(c)})},"shouldNotifyListeners");ge(this,mt,gC).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ge(this,mt,OO).call(this)}},d(yu,"un"),yu),_i=new WeakMap,ze=new WeakMap,hg=new WeakMap,xi=new WeakMap,nc=new WeakMap,Zy=new WeakMap,Ca=new WeakMap,xs=new WeakMap,dg=new WeakMap,Wy=new WeakMap,Vy=new WeakMap,sc=new WeakMap,rc=new WeakMap,Qa=new WeakMap,Dy=new WeakMap,mt=new WeakSet,qy=p(function(s){ge(this,mt,kO).call(this);let t=S(this,ze).fetch(this.options,s);return s!=null&&s.throwOnError||(t=t.catch(Wi)),t},"#executeFetch"),gO=p(function(){ge(this,mt,$O).call(this);const s=Ba(this.options.staleTime,S(this,ze));if(Df||S(this,xi).isStale||!U1(s))return;const t=F5(S(this,xi).dataUpdatedAt,s)+1;D(this,sc,setTimeout(()=>{S(this,xi).isStale||this.updateResult()},t))},"#updateStaleTimeout"),vO=p(function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,ze)):this.options.refetchInterval)??!1},"#computeRefetchInterval"),bO=p(function(s){ge(this,mt,xO).call(this),D(this,Qa,s),!(Df||Ki(this.options.enabled,S(this,ze))===!1||!U1(S(this,Qa))||S(this,Qa)===0)&&D(this,rc,setInterval(()=>{(this.options.refetchIntervalInBackground||H5.isFocused())&&ge(this,mt,qy).call(this)},S(this,Qa)))},"#updateRefetchInterval"),OO=p(function(){ge(this,mt,gO).call(this),ge(this,mt,bO).call(this,ge(this,mt,vO).call(this))},"#updateTimers"),$O=p(function(){S(this,sc)&&(clearTimeout(S(this,sc)),D(this,sc,void 0))},"#clearStaleTimeout"),xO=p(function(){S(this,rc)&&(clearInterval(S(this,rc)),D(this,rc,void 0))},"#clearRefetchInterval"),kO=p(function(){const s=S(this,_i).getQueryCache().build(S(this,_i),this.options);if(s===S(this,ze))return;const t=S(this,ze);D(this,ze,s),D(this,hg,s.state),this.hasListeners()&&(t==null||t.removeObserver(this),s.addObserver(this))},"#updateQuery"),gC=p(function(s){ti.batch(()=>{s.listeners&&this.listeners.forEach(t=>{t(S(this,xi))}),S(this,_i).getQueryCache().notify({query:S(this,ze),type:"observerResultsUpdated"})})},"#notify"),p(SO,"QueryObserver"),SO);function aA(s,t){return Ki(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}d(aA,"Om");p(aA,"shouldLoadOnMount");function lx(s,t){return aA(s,t)||s.state.data!==void 0&&H1(s,t,t.refetchOnMount)}d(lx,"vp");p(lx,"shouldFetchOnMount");function H1(s,t,i){if(Ki(t.enabled,s)!==!1){const n=typeof i=="function"?i(s):i;return n==="always"||n!==!1&&Nv(s,t)}return!1}d(H1,"hh");p(H1,"shouldFetchOn");function cx(s,t,i,n){return(s!==t||Ki(n.enabled,s)===!1)&&(!i.suspense||s.state.status!=="error")&&Nv(s,i)}d(cx,"gp");p(cx,"shouldFetchOptionally");function Nv(s,t){return Ki(t.enabled,s)!==!1&&s.isStaleByTime(Ba(t.staleTime,s))}d(Nv,"iu");p(Nv,"isStale");function oA(s,t){return!Hm(s.getCurrentResult(),t)}d(oA,"Rm");p(oA,"shouldAssignObserverCurrentProperties");var PO,mu,LU=(PO=(mu=class extends rA{constructor(t,i){super(t,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:Ym()})}getOptimisticResult(t){return t.behavior=Ym(),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,i){var n,r;const{state:a}=t,o=super.createResult(t,i),{isFetching:l,isRefetching:c,isError:h,isRefetchError:u}=o,f=(r=(n=a.fetchMeta)==null?void 0:n.fetchMore)==null?void 0:r.direction,y=h&&f==="forward",w=l&&f==="forward",g=h&&f==="backward",O=l&&f==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:nA(i,a.data),hasPreviousPage:sA(i,a.data),isFetchNextPageError:y,isFetchingNextPage:w,isFetchPreviousPageError:g,isFetchingPreviousPage:O,isRefetchError:u&&!y&&!g,isRefetching:c&&!w&&!O}}},d(mu,"pn"),mu),p(PO,"InfiniteQueryObserver"),PO),Ma,Ta,Ii,nr,Ra,ug,CO,QO,wu,qe=(QO=(wu=class extends ly{constructor(t,i){super(),j(this,Ra),j(this,Ma),j(this,Ta),j(this,Ii),j(this,nr),D(this,Ma,t),this.setOptions(i),this.bindMethods(),ge(this,Ra,ug).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const n=this.options;this.options=S(this,Ma).defaultMutationOptions(t),Hm(this.options,n)||S(this,Ma).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,Ii),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Nr(n.mutationKey)!==Nr(this.options.mutationKey)?this.reset():((i=S(this,Ii))==null?void 0:i.state.status)==="pending"&&S(this,Ii).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=S(this,Ii))==null||t.removeObserver(this)}onMutationUpdate(t){ge(this,Ra,ug).call(this),ge(this,Ra,CO).call(this,t)}getCurrentResult(){return S(this,Ta)}reset(){var t;(t=S(this,Ii))==null||t.removeObserver(this),D(this,Ii,void 0),ge(this,Ra,ug).call(this),ge(this,Ra,CO).call(this)}mutate(t,i){var n;return D(this,nr,i),(n=S(this,Ii))==null||n.removeObserver(this),D(this,Ii,S(this,Ma).getMutationCache().build(S(this,Ma),this.options)),S(this,Ii).addObserver(this),S(this,Ii).execute(t)}},d(wu,"yn"),wu),Ma=new WeakMap,Ta=new WeakMap,Ii=new WeakMap,nr=new WeakMap,Ra=new WeakSet,ug=p(function(){var s;const t=((s=S(this,Ii))==null?void 0:s.state)??J5();D(this,Ta,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},"#updateResult"),CO=p(function(s){ti.batch(()=>{var t,i,n,r,a,o,l,c;if(S(this,nr)&&this.hasListeners()){const h=S(this,Ta).variables,u=S(this,Ta).context;(s==null?void 0:s.type)==="success"?((i=(t=S(this,nr)).onSuccess)==null||i.call(t,s.data,h,u),(r=(n=S(this,nr)).onSettled)==null||r.call(n,s.data,null,h,u)):(s==null?void 0:s.type)==="error"&&((o=(a=S(this,nr)).onError)==null||o.call(a,s.error,h,u),(c=(l=S(this,nr)).onSettled)==null||c.call(l,void 0,s.error,h,u))}this.listeners.forEach(h=>{h(S(this,Ta))})})},"#notify"),p(QO,"MutationObserver"),QO);function tS(s){return s}d(tS,"Wy");p(tS,"defaultTransformerFn");function lA(s){return{mutationKey:s.options.mutationKey,state:s.state,...s.options.scope&&{scope:s.options.scope},...s.meta&&{meta:s.meta}}}d(lA,"Im");p(lA,"dehydrateMutation");function cA(s,t,i){var n;return{state:{...s.state,...s.state.data!==void 0&&{data:t(s.state.data)}},queryKey:s.queryKey,queryHash:s.queryHash,...s.state.status==="pending"&&{promise:(n=s.promise)==null?void 0:n.then(t).catch(r=>i(r)?Promise.reject(new Error("redacted")):Promise.reject(r))},...s.meta&&{meta:s.meta}}}d(cA,"Tm");p(cA,"dehydrateQuery");function hA(s){return s.state.isPaused}d(hA,"Fm");p(hA,"defaultShouldDehydrateMutation");function dA(s){return s.state.status==="success"}d(dA,"Dm");p(dA,"defaultShouldDehydrateQuery");function uA(s){return!0}d(uA,"Hm");p(uA,"defaultShouldRedactErrors");function pA(s,t={}){var i,n,r,a;const o=t.shouldDehydrateMutation??((i=s.getDefaultOptions().dehydrate)==null?void 0:i.shouldDehydrateMutation)??hA,l=s.getMutationCache().getAll().flatMap(y=>o(y)?[lA(y)]:[]),c=t.shouldDehydrateQuery??((n=s.getDefaultOptions().dehydrate)==null?void 0:n.shouldDehydrateQuery)??dA,h=t.shouldRedactErrors??((r=s.getDefaultOptions().dehydrate)==null?void 0:r.shouldRedactErrors)??uA,u=t.serializeData??((a=s.getDefaultOptions().dehydrate)==null?void 0:a.serializeData)??tS,f=s.getQueryCache().getAll().flatMap(y=>c(y)?[cA(y,u,h)]:[]);return{mutations:l,queries:f}}d(pA,"Vm");p(pA,"dehydrate");function fA(s,t,i){var n;if(typeof t!="object"||t===null)return;const r=s.getMutationCache(),a=s.getQueryCache(),o=((n=s.getDefaultOptions().hydrate)==null?void 0:n.deserializeData)??tS,l=t.mutations||[],c=t.queries||[];l.forEach(({state:h,...u})=>{var f,y;r.build(s,{...(f=s.getDefaultOptions().hydrate)==null?void 0:f.mutations,...(y=i==null?void 0:i.defaultOptions)==null?void 0:y.mutations,...u},h)}),c.forEach(({queryKey:h,state:u,queryHash:f,meta:y,promise:w})=>{var g,O;let x=a.get(f);const $=u.data===void 0?u.data:o(u.data);if(x){if(x.state.dataUpdatedAt<u.dataUpdatedAt){const{fetchStatus:C,...A}=u;x.setState({...A,data:$})}}else x=a.build(s,{...(g=s.getDefaultOptions().hydrate)==null?void 0:g.queries,...(O=i==null?void 0:i.defaultOptions)==null?void 0:O.queries,queryKey:h,queryHash:f,meta:y},{...u,data:$,fetchStatus:"idle"});if(w){const C=Promise.resolve(w).then(o);x.fetch(void 0,{initialPromise:C})}})}d(fA,"Bm");p(fA,"hydrate");var Se=(s=>(s.Chat="d65dd4bc-418e-403c-9f56-f9cf4da931ed",s.Comments="88f96a08-c6c1-4eac-a0bd-5bf8fba1a3fd",s.Files="523edd88-4bbf-4547-b60f-2859a6d2ddc1",s.Posts="5ebfa152-de85-48da-82dd-30a1b560c313",s.ChatRoom="edb400ac-839b-45a7-b2a8-6a01820d1c44",s.PrivateChat="7e14f418-8f15-46f4-b182-f619b671e470",s.BotChat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",s))(Se||{}),vn=(s=>(s.Chat="chat",s.Comments="comments",s.Files="files",s.Posts="posts",s.ChatRoom="chat_room",s.PrivateChat="private_chat",s.BotChat="bot_chat",s))(vn||{}),yA=(s=>(s["d65dd4bc-418e-403c-9f56-f9cf4da931ed"]="chat",s["88f96a08-c6c1-4eac-a0bd-5bf8fba1a3fd"]="comments",s["523edd88-4bbf-4547-b60f-2859a6d2ddc1"]="files",s["5ebfa152-de85-48da-82dd-30a1b560c313"]="posts",s["edb400ac-839b-45a7-b2a8-6a01820d1c44"]="chat_room",s["7e14f418-8f15-46f4-b182-f619b671e470"]="private_chat",s["2352a1c6-abc6-420e-8b85-ca7d5aed8779"]="bot_chat",s))(yA||{}),mA=(s=>(s.chat="d65dd4bc-418e-403c-9f56-f9cf4da931ed",s.comments="88f96a08-c6c1-4eac-a0bd-5bf8fba1a3fd",s.files="523edd88-4bbf-4547-b60f-2859a6d2ddc1",s.posts="5ebfa152-de85-48da-82dd-30a1b560c313",s.chat_room="edb400ac-839b-45a7-b2a8-6a01820d1c44",s.private_chat="7e14f418-8f15-46f4-b182-f619b671e470",s.bot_chat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",s))(mA||{}),wA=(s=>(s["2352a1c6-abc6-420e-8b85-ca7d5aed8779"]="bot_chat",s))(wA||{}),gA=(s=>(s.bot_chat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",s))(gA||{}),nn=(s=>(s.Unknown="unknown",s))(nn||{}),hr=(s=>(s.None="none",s.Read="read",s.Write="write",s.Admin="admin",s))(hr||{}),qo=(s=>(s.List="list",s.Read="read",s.Create="create",s.Update="update",s.Delete="delete",s.Admin="admin",s))(qo||{}),sn=(s=>(s.App="app",s.File="file",s.Message="message",s.User="user",s.Comment="comment",s.Post="post",s))(sn||{});function Hr(s,t,i,n,r,a="GET"){return{queryKey:t,queryFn:p(async()=>{const o=await s.fetch(i||"/api/"+t.join("/"),{method:a,body:r});if(o.ok)return await o.json();throw new Error(`Error calling ${i||"/api/"+t.join("/")}`)},"queryFn"),...n}}d(Hr,"Js");p(Hr,"getApiOptions");async function Y1(s,t,i,n,r,a="GET",o=!1){const l=s.queryClient,c=Hr(s,t,i,n,r,a);return o?(c.staleTime=1,await l.fetchQuery(c)):await l.ensureQueryData(c)}d(Y1,"ph");p(Y1,"getApi");function vA(s,t,i=nn.Unknown,n){return i===nn.Unknown?Y1(s,["apps",t]):Y1(s,["apps",t],void 0,void 0,JSON.stringify({type:i,...n}),"PUT")}d(vA,"Um");p(vA,"getApp");function bA(s,t,i=nn.Unknown,n,r){return{queryKey:["apps",t],queryFn:p(async()=>{const a=[s.fetch(`/api/apps/${t}`)];i!==nn.Unknown&&(r!=null&&r.name&&a.push(s.fetch(`/api/apps/${t}`,{method:"PATCH",body:JSON.stringify({name:r.name})})),a.push(s.fetch("/api/apps",{method:"POST",body:JSON.stringify({uid:t,type:i,members:n,...r})})));const o=(await Promise.allSettled(a)).findLast(c=>{var h;return c.status==="fulfilled"&&((h=c.value)==null?void 0:h.ok)}),l=(o==null?void 0:o.status)==="fulfilled"&&o.value;if(l)return await l.json();throw new Error(`Error getting or creating app ${t}`)},"queryFn")}}d(bA,"qm");p(bA,"getOrCreateAppOptions");function OA(s){return{mutationFn:p(async({name:t,members:i,type:n,uid:r})=>await(await s.fetch("/api/apps",{method:"POST",body:JSON.stringify({name:t,members:i,type:n,uid:r})})).json(),"mutationFn"),onSettled:p(async()=>{await s.queryClient.invalidateQueries({queryKey:["apps"]})},"onSettled")}}d(OA,"Nm");p(OA,"getCreateAppMutationOptions");function iS(s){return new qe(s.queryClient,OA(s))}d(iS,"Yy");p(iS,"getCreateAppMutation");function nS(s,t){const i=s.queryClient,n=["apps",t.uid];return{mutationFn:p(async({subscribe:r})=>{if(t.id>=1){const a=await s.fetch(`/api/apps/${t.id}/${r?"subscribe":"unsubscribe"}`,{method:"POST"});if(!a.ok)throw await a.json()}else throw new Error(`Could not subscribe to app ${t.uid}.`)},"mutationFn"),onMutate:p(async r=>{let a;return i.setQueryData(n,o=>(a=o.is_subscribed,{...o,is_subscribed:r.subscribe})),{previousSubscribe:a,subscribe:r.subscribe}},"onMutate"),onError(r,a,o){o&&o.previousSubscribe!==void 0&&i.setQueryData(n,l=>({...l,is_subscribed:o==null?void 0:o.previousSubscribe}))}}}d(nS,"Xy");p(nS,"getAppSubscribeMutationOptions");function $A(s,t=[Se.ChatRoom,Se.PrivateChat],i,n={}){const r=new URLSearchParams({count_only:"true",unread:"true"});i&&r.append("member",i),t==null||t.forEach(o=>r.append("type",o));const a=`/api/apps?${r.toString()}`;return Hr(s,["apps","badge",t],a,n)}d($A,"jm");p($A,"getBadgeOptions$1");function xA(s,t={},i,n,r,a,o){return{...t,initialPageParam:0,queryKey:["apps","list",i,n,a,o],queryFn:p(async l=>{var c;const h=new URLSearchParams;n&&h.append("member",n),l.pageParam&&h.append("skip",(c=l.pageParam)==null?void 0:c.toString()),i==null||i.forEach(w=>h.append("type",w)),h.append("order_by",a);const u=r==null?void 0:r();u&&h.append("q",u),h.append("uid","false");const f=`/api/apps?${h.toString()}`,y=await(await s.fetch(f)).json();return y.data=y.data||[],y},"queryFn"),getNextPageParam:p(l=>{if(l.end&&(l==null?void 0:l.end)<(l==null?void 0:l.count))return l.end},"getNextPageParam")}}d(xA,"Wm");p(xA,"getAppListOptions");const zU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r);const a=this;this.api={apps:{async getApp(o){return await vA(a,o)}}}}},d(i,"t"),i),p(t,"WeavyApi"),t},"WeavyApiMixin"),_U=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this._whenTokenFactory=new Promise(a=>{this._resolveTokenFactory=a}),this._whenUrlAndTokenFactory=new Promise(a=>{this._resolveUrlAndTokenFactory=a}),this._whenTokenIsValid=new Promise(a=>{this._resolveTokenIsValid=a}),this._tokenPromise=null,this._token="",this._validTokenFromFactory=async(a=!1)=>{var o,l;const c=[this.whenTokenFactory()];this.tokenFactoryRetryDelay!==1/0&&c.push(new Promise(u=>setTimeout(u,this.tokenFactoryRetryDelay))),await Promise.race(c);const h=await((o=this.tokenFactory)==null?void 0:o.call(this,a))??"";if(this._validateToken(h)){if(a&&h===this._token&&this.tokenFactoryRetryDelay!==1/0)return await new Promise(u=>setTimeout(u,this.tokenFactoryRetryDelay)),await this._validTokenFromFactory(!0)}else if(this._whenTokenFactory=new Promise(u=>{this._resolveTokenFactory=u}),!a)return await this._validTokenFromFactory(!1);if(!h)throw new TypeError("Could not get a valid token from tokenFactory.");return(l=this._resolveTokenFactory)==null||l.call(this,!0),this.whenUrl().then(this._resolveUrlAndTokenFactory),h},Promise.all([this.whenUrl(),this.whenTokenFactory()]).then(()=>{var a;this.url&&this.tokenFactory&&((a=this._resolveUrlAndTokenFactory)==null||a.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(r){if(this.isDestroyed)throw new kt;this._tokenFactory&&this._tokenFactory!==r&&this.whenTokenFactory().then(()=>{this.queryClient.refetchQueries({stale:!0})}),this._tokenFactory=r??void 0,this._tokenFactory&&queueMicrotask(()=>{var a;(a=this._resolveTokenFactory)==null||a.call(this,!0)})}get tokenUrl(){return this._tokenUrl}set tokenUrl(r){if(this.isDestroyed)throw new kt;try{if(typeof r=="string")r&&(this._tokenUrl=new URL(r,window.location.toString()));else if(r instanceof URL)this._tokenUrl=r;else if(r==null)this._tokenUrl=void 0;else throw-1}catch(a){throw new Error("Invalid url",a)}this._tokenUrl&&!this.tokenFactory&&(this.tokenFactory=async a=>{if(!this.tokenUrl)throw new Error("tokenURL property is not valid");const o=new URL(this.tokenUrl);a?o.searchParams.set("refresh","true"):o.searchParams.delete("refresh");const l=await fetch(o);if(l.ok){const c=await l.json();if(c.access_token===void 0)throw new Error("Token response does not contain required property: access_token");return c.access_token}else throw new Error("Could not get access token from server!")})}_validateToken(r){var a;if(!r)return!1;if(typeof r!="string")throw new TypeError(`You have provided an invalid string access token of type ${typeof r}.`);if(typeof r=="string"&&!r.startsWith("wyu_"))throw r.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(a=this._resolveTokenIsValid)==null||a.call(this,r),!0}async getToken(r=!1){if(this.isDestroyed)throw new kt;if(this._token&&!r)return this._token;if(this._tokenPromise)return await this._tokenPromise;this._tokenPromise=new Promise((a,o)=>{this._validTokenFromFactory(r).then(a).catch(o),this.tokenFactoryTimeout!==1/0&&setTimeout(()=>o(new Error("Token factory timeout.")),this.tokenFactoryTimeout),window.addEventListener("offline",()=>o(new Error("Network changed.")),{once:!0}),window.addEventListener("online",()=>o(new Error("Network changed.")),{once:!0})});try{const a=await this._tokenPromise;return this._tokenPromise=null,this._token=a,this._token}catch(a){throw this._tokenPromise=null,a}}},d(i,"t"),i),p(t,"WeavyAuthentication"),t},"WeavyAuthenticationMixin");var pg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kA(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}d(kA,"Gm");p(kA,"getDefaultExportFromCjs");function Ig(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}d(Ig,"Vd");p(Ig,"commonjsRequire");var vC={exports:{}},bC;function SA(){return bC||(bC=1,function(s,t){var i;i=p(()=>(()=>{var wl,gl,vl,bl,Ol,$l,xl,kl,Sl,Pl,Cl,Ql,ms,Ml,Tl,Rl,Al,El,ws,Ll,zl,_l,Il,wa,Zl,Wl,Vl,Dl,ql,Ul,jl,Bl,ga,Fl,Xl,Nl;var n={d:p((F,v)=>{for(var P in v)n.o(v,P)&&!n.o(F,P)&&Object.defineProperty(F,P,{enumerable:!0,get:v[P]})},"d")};n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(F,v)=>Object.prototype.hasOwnProperty.call(F,v),n.r=F=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(F,"t",{value:!0})};var r,a={};n.r(a),n.d(a,{AbortError:p(()=>f,"AbortError"),DefaultHttpClient:p(()=>wP,"DefaultHttpClient"),HttpClient:p(()=>B,"HttpClient"),HttpError:p(()=>l,"HttpError"),HttpResponse:p(()=>I,"HttpResponse"),HttpTransportType:p(()=>xt,"HttpTransportType"),HubConnection:p(()=>SP,"HubConnection"),HubConnectionBuilder:p(()=>OI,"HubConnectionBuilder"),HubConnectionState:p(()=>Ke,"HubConnectionState"),JsonHubProtocol:p(()=>WP,"JsonHubProtocol"),LogLevel:p(()=>r,"LogLevel"),MessageType:p(()=>Ce,"MessageType"),NullLogger:p(()=>se,"NullLogger"),Subject:p(()=>OP,"Subject"),TimeoutError:p(()=>h,"TimeoutError"),TransferFormat:p(()=>Nt,"TransferFormat"),VERSION:p(()=>G,"VERSION")});const o=(wl=class extends Error{constructor(v,P){const L=new.target.prototype;super(`${v}: Status code '${P}'`),this.statusCode=P,this.__proto__=L}},d(wl,"ad"),wl);p(o,"i");let l=o;const c=(gl=class extends Error{constructor(v="A timeout occurred."){const P=new.target.prototype;super(v),this.__proto__=P}},d(gl,"od"),gl);p(c,"n");let h=c;const u=(vl=class extends Error{constructor(v="An abort occurred."){const P=new.target.prototype;super(v),this.__proto__=P}},d(vl,"cd"),vl);p(u,"r");let f=u;const y=(bl=class extends Error{constructor(v,P){const L=new.target.prototype;super(v),this.transport=P,this.errorType="UnsupportedTransportError",this.__proto__=L}},d(bl,"ld"),bl);p(y,"o");let w=y;const g=(Ol=class extends Error{constructor(v,P){const L=new.target.prototype;super(v),this.transport=P,this.errorType="DisabledTransportError",this.__proto__=L}},d(Ol,"dd"),Ol);p(g,"h");let O=g;const x=($l=class extends Error{constructor(v,P){const L=new.target.prototype;super(v),this.transport=P,this.errorType="FailedToStartTransportError",this.__proto__=L}},d($l,"hd"),$l);p(x,"c");let $=x;const C=(xl=class extends Error{constructor(v){const P=new.target.prototype;super(v),this.errorType="FailedToNegotiateWithServerError",this.__proto__=P}},d(xl,"ud"),xl);p(C,"a");let A=C;const E=(kl=class extends Error{constructor(v,P){const L=new.target.prototype;super(v),this.innerErrors=P,this.__proto__=L}},d(kl,"pd"),kl);p(E,"l");let R=E;const z=(Sl=class{constructor(v,P,L){this.statusCode=v,this.statusText=P,this.content=L}},d(Sl,"yd"),Sl);p(z,"u");let I=z;const q=(Pl=class{get(v,P){return this.send({...P,method:"GET",url:v})}post(v,P){return this.send({...P,method:"POST",url:v})}delete(v,P){return this.send({...P,method:"DELETE",url:v})}getCookieString(v){return""}},d(Pl,"wd"),Pl);p(q,"d");let B=q;(function(F){F[F.Trace=0]="Trace",F[F.Debug=1]="Debug",F[F.Information=2]="Information",F[F.Warning=3]="Warning",F[F.Error=4]="Error",F[F.Critical=5]="Critical",F[F.None=6]="None"})(r||(r={}));const ne=(Cl=class{constructor(){}log(v,P){}},d(Cl,"fd"),Cl);p(ne,"f");let se=ne;se.instance=new se;const G="8.0.7",ce=(Ql=class{static isRequired(v,P){if(v==null)throw new Error(`The '${P}' argument is required.`)}static isNotEmpty(v,P){if(!v||v.match(/^\s*$/))throw new Error(`The '${P}' argument should not be empty.`)}static isIn(v,P,L){if(!(v in P))throw new Error(`Unknown ${L} value: ${v}.`)}},d(Ql,"md"),Ql);p(ce,"w");let te=ce;const Me=(ms=class{static get isBrowser(){return!ms.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!ms.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!ms.isNode&&typeof window=="object"&&window.document===void 0}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}},d(ms,"$r"),ms);p(Me,"g");let $e=Me;function Ue(F,v){let P="";return Ve(F)?(P=`Binary data of length ${F.byteLength}`,v&&(P+=`. Content: '${function(L){const _=new Uint8Array(L);let W="";return _.forEach(U=>{W+=`0x${U<16?"0":""}${U.toString(16)} `}),W.substr(0,W.length-1)}(F)}'`)):typeof F=="string"&&(P=`String data of length ${F.length}`,v&&(P+=`. Content: '${F}'`)),P}d(Ue,"j"),p(Ue,"m");function Ve(F){return F&&typeof ArrayBuffer<"u"&&(F instanceof ArrayBuffer||F.constructor&&F.constructor.name==="ArrayBuffer")}d(Ve,"O"),p(Ve,"y");async function De(F,v,P,L,_,W){const U={},[he,de]=ft();U[he]=de,F.log(r.Trace,`(${v} transport) sending data. ${Ue(_,W.logMessageContent)}.`);const Te=Ve(_)?"arraybuffer":"text",He=await P.post(L,{content:_,headers:{...U,...W.headers},responseType:Te,timeout:W.timeout,withCredentials:W.withCredentials});F.log(r.Trace,`(${v} transport) request complete. Response status: ${He.statusCode}.`)}d(De,"D"),p(De,"b");const bi=(Ml=class{constructor(v,P){this.i=v,this.h=P}dispose(){const v=this.i.observers.indexOf(this.h);v>-1&&this.i.observers.splice(v,1),this.i.observers.length===0&&this.i.cancelCallback&&this.i.cancelCallback().catch(P=>{})}},d(Ml,"vd"),Ml);p(bi,"v");let At=bi;const ht=(Tl=class{constructor(v){this.l=v,this.out=console}log(v,P){if(v>=this.l){const L=`[${new Date().toISOString()}] ${r[v]}: ${P}`;switch(v){case r.Critical:case r.Error:this.out.error(L);break;case r.Warning:this.out.warn(L);break;case r.Information:this.out.info(L);break;default:this.out.log(L)}}}},d(Tl,"gd"),Tl);p(ht,"E");let it=ht;function ft(){let F="X-SignalR-User-Agent";return $e.isNode&&(F="User-Agent"),[F,Oi(G,Ei(),$e.isNode?"NodeJS":"Browser",Hi())]}d(ft,"U"),p(ft,"$");function Oi(F,v,P,L){let _="Microsoft SignalR/";const W=F.split(".");return _+=`${W[0]}.${W[1]}`,_+=` (${F}; `,_+=v&&v!==""?`${v}; `:"Unknown OS; ",_+=`${P}`,_+=L?`; ${L}`:"; Unknown Runtime Version",_+=")",_}d(Oi,"W"),p(Oi,"C");function Ei(){if(!$e.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}d(Ei,"wt"),p(Ei,"S");function Hi(){if($e.isNode)return process.versions.node}d(Hi,"ft"),p(Hi,"k");function Ne(F){return F.stack?F.stack:F.message?F.message:`${F}`}d(Ne,"ot"),p(Ne,"P");const pn=(Rl=class extends B{constructor(v){if(super(),this.u=v,typeof fetch>"u"||$e.isNode){const P=Ig;this.p=new(P("tough-cookie")).CookieJar,typeof fetch>"u"?this.m=P("node-fetch"):this.m=fetch,this.m=P("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(n.g!==void 0)return n.g;throw new Error("could not find global")}());if(typeof AbortController>"u"){const P=Ig;this.v=P("abort-controller")}else this.v=AbortController}async send(v){if(v.abortSignal&&v.abortSignal.aborted)throw new f;if(!v.method)throw new Error("No method defined.");if(!v.url)throw new Error("No url defined.");const P=new this.v;let L;v.abortSignal&&(v.abortSignal.onabort=()=>{P.abort(),L=new f});let _,W=null;if(v.timeout){const de=v.timeout;W=setTimeout(()=>{P.abort(),this.u.log(r.Warning,"Timeout from HTTP request."),L=new h},de)}v.content===""&&(v.content=void 0),v.content&&(v.headers=v.headers||{},Ve(v.content)?v.headers["Content-Type"]="application/octet-stream":v.headers["Content-Type"]="text/plain;charset=UTF-8");try{_=await this.m(v.url,{body:v.content,cache:"no-cache",credentials:v.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...v.headers},method:v.method,mode:"cors",redirect:"follow",signal:P.signal})}catch(de){throw L||(this.u.log(r.Warning,`Error from HTTP request. ${de}.`),de)}finally{W&&clearTimeout(W),v.abortSignal&&(v.abortSignal.onabort=null)}if(!_.ok){const de=await ml(_,"text");throw new l(de||_.statusText,_.status)}const U=ml(_,v.responseType),he=await U;return new I(_.status,_.statusText,he)}getCookieString(v){let P="";return $e.isNode&&this.p&&this.p.getCookies(v,(L,_)=>P=_.join("; ")),P}},d(Rl,"bd"),Rl);p(pn,"T");let ya=pn;function ml(F,v){let P;switch(v){case"arraybuffer":P=F.arrayBuffer();break;case"text":default:P=F.text();break;case"blob":case"document":case"json":throw new Error(`${v} is not supported.`)}return P}d(ml,"It"),p(ml,"I");const yP=(Al=class extends B{constructor(v){super(),this.u=v}send(v){return v.abortSignal&&v.abortSignal.aborted?Promise.reject(new f):v.method?v.url?new Promise((P,L)=>{const _=new XMLHttpRequest;_.open(v.method,v.url,!0),_.withCredentials=v.withCredentials===void 0||v.withCredentials,_.setRequestHeader("X-Requested-With","XMLHttpRequest"),v.content===""&&(v.content=void 0),v.content&&(Ve(v.content)?_.setRequestHeader("Content-Type","application/octet-stream"):_.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const W=v.headers;W&&Object.keys(W).forEach(U=>{_.setRequestHeader(U,W[U])}),v.responseType&&(_.responseType=v.responseType),v.abortSignal&&(v.abortSignal.onabort=()=>{_.abort(),L(new f)}),v.timeout&&(_.timeout=v.timeout),_.onload=()=>{v.abortSignal&&(v.abortSignal.onabort=null),_.status>=200&&_.status<300?P(new I(_.status,_.statusText,_.response||_.responseText)):L(new l(_.response||_.responseText||_.statusText,_.status))},_.onerror=()=>{this.u.log(r.Warning,`Error from HTTP request. ${_.status}: ${_.statusText}.`),L(new l(_.statusText,_.status))},_.ontimeout=()=>{this.u.log(r.Warning,"Timeout from HTTP request."),L(new h)},_.send(v.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}},d(Al,"xd"),Al);p(yP,"_");let cI=yP;const mP=(El=class extends B{constructor(v){if(super(),typeof fetch<"u"||$e.isNode)this.$=new ya(v);else{if(typeof XMLHttpRequest>"u")throw new Error("No usable HttpClient found.");this.$=new cI(v)}}send(v){return v.abortSignal&&v.abortSignal.aborted?Promise.reject(new f):v.method?v.url?this.$.send(v):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(v){return this.$.getCookieString(v)}},d(El,"$d"),El);p(mP,"H");let wP=mP;const gP=(ws=class{static write(v){return`${v}${ws.RecordSeparator}`}static parse(v){if(v[v.length-1]!==ws.RecordSeparator)throw new Error("Message is incomplete.");const P=v.split(ws.RecordSeparator);return P.pop(),P}},d(ws,"Cr"),ws);p(gP,"D");let ys=gP;ys.RecordSeparatorCode=30,ys.RecordSeparator=String.fromCharCode(ys.RecordSeparatorCode);const vP=(Ll=class{writeHandshakeRequest(v){return ys.write(JSON.stringify(v))}parseHandshakeResponse(v){let P,L;if(Ve(v)){const U=new Uint8Array(v),he=U.indexOf(ys.RecordSeparatorCode);if(he===-1)throw new Error("Message is incomplete.");const de=he+1;P=String.fromCharCode.apply(null,Array.prototype.slice.call(U.slice(0,de))),L=U.byteLength>de?U.slice(de).buffer:null}else{const U=v,he=U.indexOf(ys.RecordSeparator);if(he===-1)throw new Error("Message is incomplete.");const de=he+1;P=U.substring(0,de),L=U.length>de?U.substring(de):null}const _=ys.parse(P),W=JSON.parse(_[0]);if(W.type)throw new Error("Expected a handshake response from the server.");return[L,W]}},d(Ll,"Cd"),Ll);p(vP,"R");let hI=vP;var Ce,Ke;(function(F){F[F.Invocation=1]="Invocation",F[F.StreamItem=2]="StreamItem",F[F.Completion=3]="Completion",F[F.StreamInvocation=4]="StreamInvocation",F[F.CancelInvocation=5]="CancelInvocation",F[F.Ping=6]="Ping",F[F.Close=7]="Close",F[F.Ack=8]="Ack",F[F.Sequence=9]="Sequence"})(Ce||(Ce={}));const bP=(zl=class{constructor(){this.observers=[]}next(v){for(const P of this.observers)P.next(v)}error(v){for(const P of this.observers)P.error&&P.error(v)}complete(){for(const v of this.observers)v.complete&&v.complete()}subscribe(v){return this.observers.push(v),new At(this,v)}},d(zl,"kd"),zl);p(bP,"U");let OP=bP;const $P=(_l=class{constructor(v,P,L){this.C=1e5,this.S=[],this.k=0,this.P=!1,this.T=1,this.I=0,this._=0,this.H=!1,this.D=v,this.R=P,this.C=L}async A(v){const P=this.D.writeMessage(v);let L=Promise.resolve();if(this.U(v)){this.k++;let _=p(()=>{},"t"),W=p(()=>{},"i");Ve(P)?this._+=P.byteLength:this._+=P.length,this._>=this.C&&(L=new Promise((U,he)=>{_=U,W=he})),this.S.push(new uI(P,this.k,_,W))}try{this.H||await this.R.send(P)}catch{this.L()}await L}N(v){let P=-1;for(let L=0;L<this.S.length;L++){const _=this.S[L];if(_.q<=v.sequenceId)P=L,Ve(_.M)?this._-=_.M.byteLength:this._-=_.M.length,_.j();else{if(!(this._<this.C))break;_.j()}}P!==-1&&(this.S=this.S.slice(P+1))}W(v){if(this.P)return v.type===Ce.Sequence&&(this.P=!1,!0);if(!this.U(v))return!0;const P=this.T;return this.T++,P<=this.I?(P===this.I&&this.O(),!1):(this.I=P,this.O(),!0)}F(v){v.sequenceId>this.T?this.R.stop(new Error("Sequence ID greater than amount of messages we've received.")):this.T=v.sequenceId}L(){this.H=!0,this.P=!0}async B(){const v=this.S.length!==0?this.S[0].q:this.k+1;await this.R.send(this.D.writeMessage({type:Ce.Sequence,sequenceId:v}));const P=this.S;for(const L of P)await this.R.send(L.M);this.H=!1}X(v){v!=null||(v=new Error("Unable to reconnect to server."));for(const P of this.S)P.J(v)}U(v){switch(v.type){case Ce.Invocation:case Ce.StreamItem:case Ce.Completion:case Ce.StreamInvocation:case Ce.CancelInvocation:return!0;case Ce.Close:case Ce.Sequence:case Ce.Ping:case Ce.Ack:return!1}}O(){this.V===void 0&&(this.V=setTimeout(async()=>{try{this.H||await this.R.send(this.D.writeMessage({type:Ce.Ack,sequenceId:this.I}))}catch{}clearTimeout(this.V),this.V=void 0},1e3))}},d(_l,"_d"),_l);p($P,"L");let dI=$P;const xP=(Il=class{constructor(v,P,L,_){this.M=v,this.q=P,this.j=L,this.J=_}},d(Il,"Md"),Il);p(xP,"N");let uI=xP;(function(F){F.Disconnected="Disconnected",F.Connecting="Connecting",F.Connected="Connected",F.Disconnecting="Disconnecting",F.Reconnecting="Reconnecting"})(Ke||(Ke={}));const kP=(wa=class{static create(v,P,L,_,W,U,he){return new wa(v,P,L,_,W,U,he)}constructor(v,P,L,_,W,U,he){this.K=0,this.G=()=>{this.u.log(r.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")},te.isRequired(v,"connection"),te.isRequired(P,"logger"),te.isRequired(L,"protocol"),this.serverTimeoutInMilliseconds=W??3e4,this.keepAliveIntervalInMilliseconds=U??15e3,this.Y=he??1e5,this.u=P,this.D=L,this.connection=v,this.Z=_,this.tt=new hI,this.connection.onreceive=de=>this.et(de),this.connection.onclose=de=>this.st(de),this.it={},this.nt={},this.rt=[],this.ot=[],this.ht=[],this.ct=0,this.lt=!1,this.ut=Ke.Disconnected,this.dt=!1,this.ft=this.D.writeMessage({type:Ce.Ping})}get state(){return this.ut}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(v){if(this.ut!==Ke.Disconnected&&this.ut!==Ke.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!v)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=v}start(){return this.wt=this.gt(),this.wt}async gt(){if(this.ut!==Ke.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this.ut=Ke.Connecting,this.u.log(r.Debug,"Starting HubConnection.");try{await this.yt(),$e.isBrowser&&window.document.addEventListener("freeze",this.G),this.ut=Ke.Connected,this.dt=!0,this.u.log(r.Debug,"HubConnection connected successfully.")}catch(v){return this.ut=Ke.Disconnected,this.u.log(r.Debug,`HubConnection failed to start successfully because of error '${v}'.`),Promise.reject(v)}}async yt(){this.bt=void 0,this.lt=!1;const v=new Promise((P,L)=>{this.vt=P,this.Et=L});await this.connection.start(this.D.transferFormat);try{let P=this.D.version;this.connection.features.reconnect||(P=1);const L={protocol:this.D.name,version:P};if(this.u.log(r.Debug,"Sending handshake request."),await this.$t(this.tt.writeHandshakeRequest(L)),this.u.log(r.Information,`Using HubProtocol '${this.D.name}'.`),this.Ct(),this.St(),this.kt(),await v,this.bt)throw this.bt;this.connection.features.reconnect&&(this.Pt=new dI(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(P){throw this.u.log(r.Debug,`Hub handshake failed with error '${P}' during start(). Stopping HubConnection.`),this.Ct(),this.Tt(),await this.connection.stop(P),P}}async stop(){const v=this.wt;this.connection.features.reconnect=!1,this.It=this._t(),await this.It;try{await v}catch{}}_t(v){if(this.ut===Ke.Disconnected)return this.u.log(r.Debug,`Call to HubConnection.stop(${v}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this.ut===Ke.Disconnecting)return this.u.log(r.Debug,`Call to HttpConnection.stop(${v}) ignored because the connection is already in the disconnecting state.`),this.It;const P=this.ut;return this.ut=Ke.Disconnecting,this.u.log(r.Debug,"Stopping HubConnection."),this.Ht?(this.u.log(r.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.Ht),this.Ht=void 0,this.Dt(),Promise.resolve()):(P===Ke.Connected&&this.Rt(),this.Ct(),this.Tt(),this.bt=v||new f("The connection was stopped before the hub handshake could complete."),this.connection.stop(v))}async Rt(){try{await this.xt(this.At())}catch{}}stream(v,...P){const[L,_]=this.Ut(P),W=this.Lt(v,P,_);let U;const he=new OP;return he.cancelCallback=()=>{const de=this.Nt(W.invocationId);return delete this.it[W.invocationId],U.then(()=>this.xt(de))},this.it[W.invocationId]=(de,Te)=>{Te?he.error(Te):de&&(de.type===Ce.Completion?de.error?he.error(new Error(de.error)):he.complete():he.next(de.item))},U=this.xt(W).catch(de=>{he.error(de),delete this.it[W.invocationId]}),this.qt(L,U),he}$t(v){return this.kt(),this.connection.send(v)}xt(v){return this.Pt?this.Pt.A(v):this.$t(this.D.writeMessage(v))}send(v,...P){const[L,_]=this.Ut(P),W=this.xt(this.Mt(v,P,!0,_));return this.qt(L,W),W}invoke(v,...P){const[L,_]=this.Ut(P),W=this.Mt(v,P,!1,_);return new Promise((U,he)=>{this.it[W.invocationId]=(Te,He)=>{He?he(He):Te&&(Te.type===Ce.Completion?Te.error?he(new Error(Te.error)):U(Te.result):he(new Error(`Unexpected message type: ${Te.type}`)))};const de=this.xt(W).catch(Te=>{he(Te),delete this.it[W.invocationId]});this.qt(L,de)})}on(v,P){v&&P&&(v=v.toLowerCase(),this.nt[v]||(this.nt[v]=[]),this.nt[v].indexOf(P)===-1&&this.nt[v].push(P))}off(v,P){if(!v)return;v=v.toLowerCase();const L=this.nt[v];if(L)if(P){const _=L.indexOf(P);_!==-1&&(L.splice(_,1),L.length===0&&delete this.nt[v])}else delete this.nt[v]}onclose(v){v&&this.rt.push(v)}onreconnecting(v){v&&this.ot.push(v)}onreconnected(v){v&&this.ht.push(v)}et(v){if(this.Ct(),this.lt||(v=this.jt(v),this.lt=!0),v){const P=this.D.parseMessages(v,this.u);for(const L of P)if(!this.Pt||this.Pt.W(L))switch(L.type){case Ce.Invocation:this.Wt(L).catch(_=>{this.u.log(r.Error,`Invoke client method threw error: ${Ne(_)}`)});break;case Ce.StreamItem:case Ce.Completion:{const _=this.it[L.invocationId];if(_){L.type===Ce.Completion&&delete this.it[L.invocationId];try{_(L)}catch(W){this.u.log(r.Error,`Stream callback threw error: ${Ne(W)}`)}}break}case Ce.Ping:break;case Ce.Close:{this.u.log(r.Information,"Close message received from server.");const _=L.error?new Error("Server returned an error on close: "+L.error):void 0;L.allowReconnect===!0?this.connection.stop(_):this.It=this._t(_);break}case Ce.Ack:this.Pt&&this.Pt.N(L);break;case Ce.Sequence:this.Pt&&this.Pt.F(L);break;default:this.u.log(r.Warning,`Invalid message type: ${L.type}.`)}}this.St()}jt(v){let P,L;try{[L,P]=this.tt.parseHandshakeResponse(v)}catch(_){const W="Error parsing handshake response: "+_;this.u.log(r.Error,W);const U=new Error(W);throw this.Et(U),U}if(P.error){const _="Server returned handshake error: "+P.error;this.u.log(r.Error,_);const W=new Error(_);throw this.Et(W),W}return this.u.log(r.Debug,"Server handshake complete."),this.vt(),L}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 v=this.K-new Date().getTime();v<0&&(v=0),this.Ft=setTimeout(async()=>{if(this.ut===Ke.Connected)try{await this.$t(this.ft)}catch{this.Tt()}},v)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async Wt(v){const P=v.target.toLowerCase(),L=this.nt[P];if(!L)return this.u.log(r.Warning,`No client method with the name '${P}' found.`),void(v.invocationId&&(this.u.log(r.Warning,`No result given for '${P}' method and invocation ID '${v.invocationId}'.`),await this.xt(this.Bt(v.invocationId,"Client didn't provide a result.",null))));const _=L.slice(),W=!!v.invocationId;let U,he,de;for(const Te of _)try{const He=U;U=await Te.apply(this,v.arguments),W&&U&&He&&(this.u.log(r.Error,`Multiple results provided for '${P}'. Sending error to server.`),de=this.Bt(v.invocationId,"Client provided multiple results.",null)),he=void 0}catch(He){he=He,this.u.log(r.Error,`A callback for the method '${P}' threw error '${He}'.`)}de?await this.xt(de):W?(he?de=this.Bt(v.invocationId,`${he}`,null):U!==void 0?de=this.Bt(v.invocationId,null,U):(this.u.log(r.Warning,`No result given for '${P}' method and invocation ID '${v.invocationId}'.`),de=this.Bt(v.invocationId,"Client didn't provide a result.",null)),await this.xt(de)):U&&this.u.log(r.Error,`Result given for '${P}' method but server is not expecting a result.`)}st(v){this.u.log(r.Debug,`HubConnection.connectionClosed(${v}) called while in state ${this.ut}.`),this.bt=this.bt||v||new f("The underlying connection was closed before the hub handshake could complete."),this.vt&&this.vt(),this.Xt(v||new Error("Invocation canceled due to the underlying connection being closed.")),this.Ct(),this.Tt(),this.ut===Ke.Disconnecting?this.Dt(v):this.ut===Ke.Connected&&this.Z?this.Jt(v):this.ut===Ke.Connected&&this.Dt(v)}Dt(v){if(this.dt){this.ut=Ke.Disconnected,this.dt=!1,this.Pt&&(this.Pt.X(v??new Error("Connection closed.")),this.Pt=void 0),$e.isBrowser&&window.document.removeEventListener("freeze",this.G);try{this.rt.forEach(P=>P.apply(this,[v]))}catch(P){this.u.log(r.Error,`An onclose callback called with error '${v}' threw error '${P}'.`)}}}async Jt(v){const P=Date.now();let L=0,_=v!==void 0?v:new Error("Attempting to reconnect due to a unknown error."),W=this.zt(L++,0,_);if(W===null)return this.u.log(r.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this.Dt(v);if(this.ut=Ke.Reconnecting,v?this.u.log(r.Information,`Connection reconnecting because of error '${v}'.`):this.u.log(r.Information,"Connection reconnecting."),this.ot.length!==0){try{this.ot.forEach(U=>U.apply(this,[v]))}catch(U){this.u.log(r.Error,`An onreconnecting callback called with error '${v}' threw error '${U}'.`)}if(this.ut!==Ke.Reconnecting)return void this.u.log(r.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;W!==null;){if(this.u.log(r.Information,`Reconnect attempt number ${L} will start in ${W} ms.`),await new Promise(U=>{this.Ht=setTimeout(U,W)}),this.Ht=void 0,this.ut!==Ke.Reconnecting)return void this.u.log(r.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(await this.yt(),this.ut=Ke.Connected,this.u.log(r.Information,"HubConnection reconnected successfully."),this.ht.length!==0)try{this.ht.forEach(U=>U.apply(this,[this.connection.connectionId]))}catch(U){this.u.log(r.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${U}'.`)}return}catch(U){if(this.u.log(r.Information,`Reconnect attempt failed because of error '${U}'.`),this.ut!==Ke.Reconnecting)return this.u.log(r.Debug,`Connection moved to the '${this.ut}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this.ut===Ke.Disconnecting&&this.Dt());_=U instanceof Error?U:new Error(U.toString()),W=this.zt(L++,Date.now()-P,_)}}this.u.log(r.Information,`Reconnect retries have been exhausted after ${Date.now()-P} ms and ${L} failed attempts. Connection disconnecting.`),this.Dt()}zt(v,P,L){try{return this.Z.nextRetryDelayInMilliseconds({elapsedMilliseconds:P,previousRetryCount:v,retryReason:L})}catch(_){return this.u.log(r.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${v}, ${P}) threw error '${_}'.`),null}}Xt(v){const P=this.it;this.it={},Object.keys(P).forEach(L=>{const _=P[L];try{_(null,v)}catch(W){this.u.log(r.Error,`Stream 'error' callback called with '${v}' threw error: ${Ne(W)}`)}})}Tt(){this.Ft&&(clearTimeout(this.Ft),this.Ft=void 0)}Ct(){this.Ot&&clearTimeout(this.Ot)}Mt(v,P,L,_){if(L)return _.length!==0?{arguments:P,streamIds:_,target:v,type:Ce.Invocation}:{arguments:P,target:v,type:Ce.Invocation};{const W=this.ct;return this.ct++,_.length!==0?{arguments:P,invocationId:W.toString(),streamIds:_,target:v,type:Ce.Invocation}:{arguments:P,invocationId:W.toString(),target:v,type:Ce.Invocation}}}qt(v,P){if(v.length!==0){P||(P=Promise.resolve());for(const L in v)v[L].subscribe({complete:p(()=>{P=P.then(()=>this.xt(this.Bt(L)))},"complete"),error:p(_=>{let W;W=_ instanceof Error?_.message:_&&_.toString?_.toString():"Unknown error",P=P.then(()=>this.xt(this.Bt(L,W)))},"error"),next:p(_=>{P=P.then(()=>this.xt(this.Vt(L,_)))},"next")})}}Ut(v){const P=[],L=[];for(let _=0;_<v.length;_++){const W=v[_];if(this.Kt(W)){const U=this.ct;this.ct++,P[U]=W,L.push(U.toString()),v.splice(_,1)}}return[P,L]}Kt(v){return v&&v.subscribe&&typeof v.subscribe=="function"}Lt(v,P,L){const _=this.ct;return this.ct++,L.length!==0?{arguments:P,invocationId:_.toString(),streamIds:L,target:v,type:Ce.StreamInvocation}:{arguments:P,invocationId:_.toString(),target:v,type:Ce.StreamInvocation}}Nt(v){return{invocationId:v,type:Ce.CancelInvocation}}Vt(v,P){return{invocationId:v,item:P,type:Ce.StreamItem}}Bt(v,P,L){return P?{error:P,invocationId:v,type:Ce.Completion}:{invocationId:v,result:L,type:Ce.Completion}}At(){return{type:Ce.Close}}},d(wa,"Nc"),wa);p(kP,"q");let SP=kP;const pI=[0,2e3,1e4,3e4,null],PP=(Zl=class{constructor(v){this.Gt=v!==void 0?[...v,null]:pI}nextRetryDelayInMilliseconds(v){return this.Gt[v.previousRetryCount]}},d(Zl,"zd"),Zl);p(PP,"j");let CP=PP;const QP=(Wl=class{},d(Wl,"Pd"),Wl);p(QP,"W");let ma=QP;ma.Authorization="Authorization",ma.Cookie="Cookie";const MP=(Vl=class extends B{constructor(v,P){super(),this.Qt=v,this.Yt=P}async send(v){let P=!0;this.Yt&&(!this.Zt||v.url&&v.url.indexOf("/negotiate?")>0)&&(P=!1,this.Zt=await this.Yt()),this.te(v);const L=await this.Qt.send(v);return P&&L.statusCode===401&&this.Yt?(this.Zt=await this.Yt(),this.te(v),await this.Qt.send(v)):L}te(v){v.headers||(v.headers={}),this.Zt?v.headers[ma.Authorization]=`Bearer ${this.Zt}`:this.Yt&&v.headers[ma.Authorization]&&delete v.headers[ma.Authorization]}getCookieString(v){return this.Qt.getCookieString(v)}},d(Vl,"Sd"),Vl);p(MP,"O");let fI=MP;var xt,Nt;(function(F){F[F.None=0]="None",F[F.WebSockets=1]="WebSockets",F[F.ServerSentEvents=2]="ServerSentEvents",F[F.LongPolling=4]="LongPolling"})(xt||(xt={})),function(F){F[F.Text=1]="Text",F[F.Binary=2]="Binary"}(Nt||(Nt={}));const TP=(Dl=class{constructor(){this.ee=!1,this.onabort=null}abort(){this.ee||(this.ee=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this.ee}},d(Dl,"Ed"),Dl);p(TP,"X");let yI=TP;const RP=(ql=class{get pollAborted(){return this.se.aborted}constructor(v,P,L){this.$=v,this.u=P,this.se=new yI,this.ie=L,this.ne=!1,this.onreceive=null,this.onclose=null}async connect(v,P){if(te.isRequired(v,"url"),te.isRequired(P,"transferFormat"),te.isIn(P,Nt,"transferFormat"),this.re=v,this.u.log(r.Trace,"(LongPolling transport) Connecting."),P===Nt.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[L,_]=ft(),W={[L]:_,...this.ie.headers},U={abortSignal:this.se.signal,headers:W,timeout:1e5,withCredentials:this.ie.withCredentials};P===Nt.Binary&&(U.responseType="arraybuffer");const he=`${v}&_=${Date.now()}`;this.u.log(r.Trace,`(LongPolling transport) polling: ${he}.`);const de=await this.$.get(he,U);de.statusCode!==200?(this.u.log(r.Error,`(LongPolling transport) Unexpected response code: ${de.statusCode}.`),this.oe=new l(de.statusText||"",de.statusCode),this.ne=!1):this.ne=!0,this.he=this.ce(this.re,U)}async ce(v,P){try{for(;this.ne;)try{const L=`${v}&_=${Date.now()}`;this.u.log(r.Trace,`(LongPolling transport) polling: ${L}.`);const _=await this.$.get(L,P);_.statusCode===204?(this.u.log(r.Information,"(LongPolling transport) Poll terminated by server."),this.ne=!1):_.statusCode!==200?(this.u.log(r.Error,`(LongPolling transport) Unexpected response code: ${_.statusCode}.`),this.oe=new l(_.statusText||"",_.statusCode),this.ne=!1):_.content?(this.u.log(r.Trace,`(LongPolling transport) data received. ${Ue(_.content,this.ie.logMessageContent)}.`),this.onreceive&&this.onreceive(_.content)):this.u.log(r.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(L){this.ne?L instanceof h?this.u.log(r.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.oe=L,this.ne=!1):this.u.log(r.Trace,`(LongPolling transport) Poll errored after shutdown: ${L.message}`)}}finally{this.u.log(r.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.ae()}}async send(v){return this.ne?De(this.u,"LongPolling",this.$,this.re,v,this.ie):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this.u.log(r.Trace,"(LongPolling transport) Stopping polling."),this.ne=!1,this.se.abort();try{await this.he,this.u.log(r.Trace,`(LongPolling transport) sending DELETE request to ${this.re}.`);const v={},[P,L]=ft();v[P]=L;const _={headers:{...v,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials};let W;try{await this.$.delete(this.re,_)}catch(U){W=U}W?W instanceof l&&(W.statusCode===404?this.u.log(r.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this.u.log(r.Trace,`(LongPolling transport) Error sending a DELETE request: ${W}`)):this.u.log(r.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this.u.log(r.Trace,"(LongPolling transport) Stop finished."),this.ae()}}ae(){if(this.onclose){let v="(LongPolling transport) Firing onclose event.";this.oe&&(v+=" Error: "+this.oe),this.u.log(r.Trace,v),this.onclose(this.oe)}}},d(ql,"Ad"),ql);p(RP,"J");let AP=RP;const EP=(Ul=class{constructor(v,P,L,_){this.$=v,this.Zt=P,this.u=L,this.ie=_,this.onreceive=null,this.onclose=null}async connect(v,P){return te.isRequired(v,"url"),te.isRequired(P,"transferFormat"),te.isIn(P,Nt,"transferFormat"),this.u.log(r.Trace,"(SSE transport) Connecting."),this.re=v,this.Zt&&(v+=(v.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this.Zt)}`),new Promise((L,_)=>{let W,U=!1;if(P===Nt.Text){if($e.isBrowser||$e.isWebWorker)W=new this.ie.EventSource(v,{withCredentials:this.ie.withCredentials});else{const he=this.$.getCookieString(v),de={};de.Cookie=he;const[Te,He]=ft();de[Te]=He,W=new this.ie.EventSource(v,{withCredentials:this.ie.withCredentials,headers:{...de,...this.ie.headers}})}try{W.onmessage=he=>{if(this.onreceive)try{this.u.log(r.Trace,`(SSE transport) data received. ${Ue(he.data,this.ie.logMessageContent)}.`),this.onreceive(he.data)}catch(de){return void this.le(de)}},W.onerror=he=>{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."))},W.onopen=()=>{this.u.log(r.Information,`SSE connected to ${this.re}`),this.ue=W,U=!0,L()}}catch(he){return void _(he)}}else _(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})}async send(v){return this.ue?De(this.u,"SSE",this.$,this.re,v,this.ie):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this.le(),Promise.resolve()}le(v){this.ue&&(this.ue.close(),this.ue=void 0,this.onclose&&this.onclose(v))}},d(Ul,"Od"),Ul);p(EP,"z");let mI=EP;const LP=(jl=class{constructor(v,P,L,_,W,U){this.u=L,this.Yt=P,this.de=_,this.fe=W,this.$=v,this.onreceive=null,this.onclose=null,this.pe=U}async connect(v,P){let L;return te.isRequired(v,"url"),te.isRequired(P,"transferFormat"),te.isIn(P,Nt,"transferFormat"),this.u.log(r.Trace,"(WebSockets transport) Connecting."),this.Yt&&(L=await this.Yt()),new Promise((_,W)=>{let U;v=v.replace(/^http/,"ws");const he=this.$.getCookieString(v);let de=!1;if($e.isNode||$e.isReactNative){const Te={},[He,Hl]=ft();Te[He]=Hl,L&&(Te[ma.Authorization]=`Bearer ${L}`),he&&(Te[ma.Cookie]=he),U=new this.fe(v,void 0,{headers:{...Te,...this.pe}})}else L&&(v+=(v.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(L)}`);U||(U=new this.fe(v)),P===Nt.Binary&&(U.binaryType="arraybuffer"),U.onopen=Te=>{this.u.log(r.Information,`WebSocket connected to ${v}.`),this.we=U,de=!0,_()},U.onerror=Te=>{let He=null;He=typeof ErrorEvent<"u"&&Te instanceof ErrorEvent?Te.error:"There was an error with the transport",this.u.log(r.Information,`(WebSockets transport) ${He}.`)},U.onmessage=Te=>{if(this.u.log(r.Trace,`(WebSockets transport) data received. ${Ue(Te.data,this.de)}.`),this.onreceive)try{this.onreceive(Te.data)}catch(He){return void this.le(He)}},U.onclose=Te=>{if(de)this.le(Te);else{let He=null;He=typeof ErrorEvent<"u"&&Te instanceof ErrorEvent?Te.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.",W(new Error(He))}}})}send(v){return this.we&&this.we.readyState===this.fe.OPEN?(this.u.log(r.Trace,`(WebSockets transport) sending data. ${Ue(v,this.de)}.`),this.we.send(v),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this.we&&this.le(void 0),Promise.resolve()}le(v){this.we&&(this.we.onclose=()=>{},this.we.onmessage=()=>{},this.we.onerror=()=>{},this.we.close(),this.we=void 0),this.u.log(r.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this.ge(v)||v.wasClean!==!1&&v.code===1e3?v instanceof Error?this.onclose(v):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${v.code} (${v.reason||"no reason given"}).`)))}ge(v){return v&&typeof v.wasClean=="boolean"&&typeof v.code=="number"}},d(jl,"Rd"),jl);p(LP,"V");let wI=LP;const zP=(Bl=class{constructor(v,P={}){var L;if(this.me=()=>{},this.features={},this.ye=1,te.isRequired(v,"url"),this.u=(L=P.logger)===void 0?new it(r.Information):L===null?se.instance:L.log!==void 0?L:new it(L),this.baseUrl=this.be(v),(P=P||{}).logMessageContent=P.logMessageContent!==void 0&&P.logMessageContent,typeof P.withCredentials!="boolean"&&P.withCredentials!==void 0)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");P.withCredentials=P.withCredentials===void 0||P.withCredentials,P.timeout=P.timeout===void 0?1e5:P.timeout;let _=null,W=null;if($e.isNode){const U=Ig;_=U("ws"),W=U("eventsource")}$e.isNode||typeof WebSocket>"u"||P.WebSocket?$e.isNode&&!P.WebSocket&&_&&(P.WebSocket=_):P.WebSocket=WebSocket,$e.isNode||typeof EventSource>"u"||P.EventSource?$e.isNode&&!P.EventSource&&W!==void 0&&(P.EventSource=W):P.EventSource=EventSource,this.$=new fI(P.httpClient||new wP(this.u),P.accessTokenFactory),this.ut="Disconnected",this.dt=!1,this.ie=P,this.onreceive=null,this.onclose=null}async start(v){if(v=v||Nt.Binary,te.isIn(v,Nt,"transferFormat"),this.u.log(r.Debug,`Starting connection with transfer format '${Nt[v]}'.`),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(v),await this.ve,this.ut==="Disconnecting"){const P="Failed to start the HttpConnection before stop() was called.";return this.u.log(r.Error,P),await this.It,Promise.reject(new f(P))}if(this.ut!=="Connected"){const P="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this.u.log(r.Error,P),Promise.reject(new f(P))}this.dt=!0}send(v){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 vI(this.transport)),this.Ee.send(v))}async stop(v){return this.ut==="Disconnected"?(this.u.log(r.Debug,`Call to HttpConnection.stop(${v}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):this.ut==="Disconnecting"?(this.u.log(r.Debug,`Call to HttpConnection.stop(${v}) ignored because the connection is already in the disconnecting state.`),this.It):(this.ut="Disconnecting",this.It=new Promise(P=>{this.me=P}),await this._t(v),void await this.It)}async _t(v){this.$e=v;try{await this.ve}catch{}if(this.transport){try{await this.transport.stop()}catch(P){this.u.log(r.Error,`HttpConnection.transport.stop() threw error '${P}'.`),this.Ce()}this.transport=void 0}else this.u.log(r.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async yt(v){let P=this.baseUrl;this.Yt=this.ie.accessTokenFactory,this.$.Yt=this.Yt;try{if(this.ie.skipNegotiation){if(this.ie.transport!==xt.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this.Se(xt.WebSockets),await this.ke(P,v)}else{let L=null,_=0;do{if(L=await this.Pe(P),this.ut==="Disconnecting"||this.ut==="Disconnected")throw new f("The connection was stopped during negotiation.");if(L.error)throw new Error(L.error);if(L.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(L.url&&(P=L.url),L.accessToken){const W=L.accessToken;this.Yt=()=>W,this.$.Zt=W,this.$.Yt=void 0}_++}while(L.url&&_<100);if(_===100&&L.url)throw new Error("Negotiate redirection limit exceeded.");await this.Te(P,this.ie.transport,L,v)}this.transport instanceof AP&&(this.features.inherentKeepAlive=!0),this.ut==="Connecting"&&(this.u.log(r.Debug,"The HttpConnection connected successfully."),this.ut="Connected")}catch(L){return this.u.log(r.Error,"Failed to start the connection: "+L),this.ut="Disconnected",this.transport=void 0,this.me(),Promise.reject(L)}}async Pe(v){const P={},[L,_]=ft();P[L]=_;const W=this.Ie(v);this.u.log(r.Debug,`Sending negotiation request: ${W}.`);try{const U=await this.$.post(W,{content:"",headers:{...P,...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 he=JSON.parse(U.content);return(!he.negotiateVersion||he.negotiateVersion<1)&&(he.connectionToken=he.connectionId),he.useStatefulReconnect&&this.ie._e!==!0?Promise.reject(new A("Client didn't negotiate Stateful Reconnect but the server did.")):he}catch(U){let he="Failed to complete negotiation with the server: "+U;return U instanceof l&&U.statusCode===404&&(he+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this.u.log(r.Error,he),Promise.reject(new A(he))}}He(v,P){return P?v+(v.indexOf("?")===-1?"?":"&")+`id=${P}`:v}async Te(v,P,L,_){let W=this.He(v,L.connectionToken);if(this.De(P))return this.u.log(r.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=P,await this.ke(W,_),void(this.connectionId=L.connectionId);const U=[],he=L.availableTransports||[];let de=L;for(const Te of he){const He=this.Re(Te,P,_,(de==null?void 0:de.useStatefulReconnect)===!0);if(He instanceof Error)U.push(`${Te.transport} failed:`),U.push(He);else if(this.De(He)){if(this.transport=He,!de){try{de=await this.Pe(v)}catch(Hl){return Promise.reject(Hl)}W=this.He(v,de.connectionToken)}try{return await this.ke(W,_),void(this.connectionId=de.connectionId)}catch(Hl){if(this.u.log(r.Error,`Failed to start the transport '${Te.transport}': ${Hl}`),de=void 0,U.push(new $(`${Te.transport} failed: ${Hl}`,xt[Te.transport])),this.ut!=="Connecting"){const DP="Failed to select transport before stop() was called.";return this.u.log(r.Debug,DP),Promise.reject(new f(DP))}}}}return U.length>0?Promise.reject(new R(`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(v){switch(v){case xt.WebSockets:if(!this.ie.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new wI(this.$,this.Yt,this.u,this.ie.logMessageContent,this.ie.WebSocket,this.ie.headers||{});case xt.ServerSentEvents:if(!this.ie.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new mI(this.$,this.$.Zt,this.u,this.ie);case xt.LongPolling:return new AP(this.$,this.u,this.ie);default:throw new Error(`Unknown transport: ${v}.`)}}ke(v,P){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async L=>{let _=!1;if(this.features.reconnect){try{this.features.disconnected(),await this.transport.connect(v,P),await this.features.resend()}catch{_=!0}_&&this.Ce(L)}else this.Ce(L)}:this.transport.onclose=L=>this.Ce(L),this.transport.connect(v,P)}Re(v,P,L,_){const W=xt[v.transport];if(W==null)return this.u.log(r.Debug,`Skipping transport '${v.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${v.transport}' because it is not supported by this client.`);if(!function(U,he){return!U||(he&U)!=0}(P,W))return this.u.log(r.Debug,`Skipping transport '${xt[W]}' because it was disabled by the client.`),new O(`'${xt[W]}' is disabled by the client.`,W);if(!(v.transferFormats.map(U=>Nt[U]).indexOf(L)>=0))return this.u.log(r.Debug,`Skipping transport '${xt[W]}' because it does not support the requested transfer format '${Nt[L]}'.`),new Error(`'${xt[W]}' does not support ${Nt[L]}.`);if(W===xt.WebSockets&&!this.ie.WebSocket||W===xt.ServerSentEvents&&!this.ie.EventSource)return this.u.log(r.Debug,`Skipping transport '${xt[W]}' because it is not supported in your environment.'`),new w(`'${xt[W]}' is not supported in your environment.`,W);this.u.log(r.Debug,`Selecting transport '${xt[W]}'.`);try{return this.features.reconnect=W===xt.WebSockets?_:void 0,this.Se(W)}catch(U){return U}}De(v){return v&&typeof v=="object"&&"connect"in v}Ce(v){if(this.u.log(r.Debug,`HttpConnection.stopConnection(${v}) called while in state ${this.ut}.`),this.transport=void 0,v=this.$e||v,this.$e=void 0,this.ut!=="Disconnected"){if(this.ut==="Connecting")throw this.u.log(r.Warning,`Call to HttpConnection.stopConnection(${v}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${v}) was called while the connection is still in the connecting state.`);if(this.ut==="Disconnecting"&&this.me(),v?this.u.log(r.Error,`Connection disconnected with error '${v}'.`):this.u.log(r.Information,"Connection disconnected."),this.Ee&&(this.Ee.stop().catch(P=>{this.u.log(r.Error,`TransportSendQueue.stop() threw error '${P}'.`)}),this.Ee=void 0),this.connectionId=void 0,this.ut="Disconnected",this.dt){this.dt=!1;try{this.onclose&&this.onclose(v)}catch(P){this.u.log(r.Error,`HttpConnection.onclose(${v}) threw error '${P}'.`)}}}else this.u.log(r.Debug,`Call to HttpConnection.stopConnection(${v}) was ignored because the connection is already in the disconnected state.`)}be(v){if(v.lastIndexOf("https://",0)===0||v.lastIndexOf("http://",0)===0)return v;if(!$e.isBrowser)throw new Error(`Cannot resolve '${v}'.`);const P=window.document.createElement("a");return P.href=v,this.u.log(r.Information,`Normalizing '${v}' to '${P.href}'.`),P.href}Ie(v){const P=new URL(v);P.pathname.endsWith("/")?P.pathname+="negotiate":P.pathname+="/negotiate";const L=new URLSearchParams(P.searchParams);return L.has("negotiateVersion")||L.append("negotiateVersion",this.ye.toString()),L.has("useStatefulReconnect")?L.get("useStatefulReconnect")==="true"&&(this.ie._e=!0):this.ie._e===!0&&L.append("useStatefulReconnect","true"),P.search=L.toString(),P.toString()}},d(Bl,"Ld"),Bl);p(zP,"K");let gI=zP;const _P=(ga=class{constructor(v){this.xe=v,this.Ae=[],this.Ue=!0,this.Le=new jw,this.Ne=new jw,this.qe=this.Me()}send(v){return this.je(v),this.Ne||(this.Ne=new jw),this.Ne.promise}stop(){return this.Ue=!1,this.Le.resolve(),this.qe}je(v){if(this.Ae.length&&typeof this.Ae[0]!=typeof v)throw new Error(`Expected data to be of type ${typeof this.Ae} but was of type ${typeof v}`);this.Ae.push(v),this.Le.resolve()}async Me(){for(;;){if(await this.Le.promise,!this.Ue){this.Ne&&this.Ne.reject("Connection stopped.");break}this.Le=new jw;const v=this.Ne;this.Ne=void 0;const P=typeof this.Ae[0]=="string"?this.Ae.join(""):ga.We(this.Ae);this.Ae.length=0;try{await this.xe.send(P),v.resolve()}catch(L){v.reject(L)}}}static We(v){const P=v.map(W=>W.byteLength).reduce((W,U)=>W+U),L=new Uint8Array(P);let _=0;for(const W of v)L.set(new Uint8Array(W),_),_+=W.byteLength;return L.buffer}},d(ga,"jc"),ga);p(_P,"G");let vI=_P;const IP=(Fl=class{constructor(){this.promise=new Promise((v,P)=>[this.j,this.Oe]=[v,P])}resolve(){this.j()}reject(v){this.Oe(v)}},d(Fl,"Id"),Fl);p(IP,"Q");let jw=IP;const ZP=(Xl=class{constructor(){this.name="json",this.version=2,this.transferFormat=Nt.Text}parseMessages(v,P){if(typeof v!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!v)return[];P===null&&(P=se.instance);const L=ys.parse(v),_=[];for(const W of L){const U=JSON.parse(W);if(typeof U.type!="number")throw new Error("Invalid payload.");switch(U.type){case Ce.Invocation:this.U(U);break;case Ce.StreamItem:this.Fe(U);break;case Ce.Completion:this.Be(U);break;case Ce.Ping:case Ce.Close:break;case Ce.Ack:this.Xe(U);break;case Ce.Sequence:this.Je(U);break;default:P.log(r.Information,"Unknown message type '"+U.type+"' ignored.");continue}_.push(U)}return _}writeMessage(v){return ys.write(JSON.stringify(v))}U(v){this.ze(v.target,"Invalid payload for Invocation message."),v.invocationId!==void 0&&this.ze(v.invocationId,"Invalid payload for Invocation message.")}Fe(v){if(this.ze(v.invocationId,"Invalid payload for StreamItem message."),v.item===void 0)throw new Error("Invalid payload for StreamItem message.")}Be(v){if(v.result&&v.error)throw new Error("Invalid payload for Completion message.");!v.result&&v.error&&this.ze(v.error,"Invalid payload for Completion message."),this.ze(v.invocationId,"Invalid payload for Completion message.")}Xe(v){if(typeof v.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}Je(v){if(typeof v.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}ze(v,P){if(typeof v!="string"||v==="")throw new Error(P)}},d(Xl,"Td"),Xl);p(ZP,"Y");let WP=ZP;const bI={trace:r.Trace,debug:r.Debug,info:r.Information,information:r.Information,warn:r.Warning,warning:r.Warning,error:r.Error,critical:r.Critical,none:r.None},VP=(Nl=class{configureLogging(v){if(te.isRequired(v,"logging"),v.log!==void 0)this.logger=v;else if(typeof v=="string"){const P=function(L){const _=bI[L.toLowerCase()];if(_!==void 0)return _;throw new Error(`Unknown log level: ${L}`)}(v);this.logger=new it(P)}else this.logger=new it(v);return this}withUrl(v,P){return te.isRequired(v,"url"),te.isNotEmpty(v,"url"),this.url=v,this.httpConnectionOptions=typeof P=="object"?{...this.httpConnectionOptions,...P}:{...this.httpConnectionOptions,transport:P},this}withHubProtocol(v){return te.isRequired(v,"protocol"),this.protocol=v,this}withAutomaticReconnect(v){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return v?Array.isArray(v)?this.reconnectPolicy=new CP(v):this.reconnectPolicy=v:this.reconnectPolicy=new CP,this}withServerTimeout(v){return te.isRequired(v,"milliseconds"),this.Ve=v,this}withKeepAliveInterval(v){return te.isRequired(v,"milliseconds"),this.Ke=v,this}withStatefulReconnect(v){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._e=!0,this.Y=v==null?void 0:v.bufferSize,this}build(){const v=this.httpConnectionOptions||{};if(v.logger===void 0&&(v.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const P=new gI(this.url,v);return SP.create(P,this.logger||se.instance,this.protocol||new WP,this.reconnectPolicy,this.Ve,this.Ke,this.Y)}},d(Nl,"Fd"),Nl);p(VP,"tt");let OI=VP;return Uint8Array.prototype.indexOf||Object.defineProperty(Uint8Array.prototype,"indexOf",{value:Array.prototype.indexOf,writable:!0}),Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:p(function(F,v){return new Uint8Array(Array.prototype.slice.call(this,F,v))},"value"),writable:!0}),Uint8Array.prototype.forEach||Object.defineProperty(Uint8Array.prototype,"forEach",{value:Array.prototype.forEach,writable:!0}),a})(),"e"),s.exports=i()}(vC)),vC.exports}d(SA,"Zm");p(SA,"requireSignalr_min");var OC=SA();const IU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this._whenConnectionRequested=new Promise(a=>{this._resolveConnectionRequested=a}),this._whenConnectionCreated=new Promise(a=>{this._resolveConnectionCreated=a}),this._connectionEventListeners=[],this.signalRAccessTokenRefresh=!1,this._whenConnectionStarted=new Promise((a,o)=>{this._whenConnectionStartedResolve=a,this._whenConnectionStartedReject=o}),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 r;if(this.isDestroyed)throw new kt;if(this.networkStateIsPending=!0,await this.whenUrlAndTokenFactory(),this._connection){const a=new URL("/hubs/rtm",this.url);this._connection.baseUrl!==a.toString()&&(this.connectionState="reconnecting",console.info(this.weavyId,"Reconnecting due to changed url.",this._connection.baseUrl,"=>",a.toString()),await this.disconnect(),this._connection.baseUrl=a.toString(),this.connect())}else{this.connectionState="connecting";const a=new URL("/hubs/rtm",this.url);this._connection=new OC.HubConnectionBuilder().configureLogging(OC.LogLevel.None).withUrl(a.toString(),{accessTokenFactory:p(async()=>{try{if(this.signalRAccessTokenRefresh){const o=await this.getToken(!0);return this.signalRAccessTokenRefresh=!1,o}else return await this.getToken()}catch(o){throw console.error(o),o}},"accessTokenFactory")}).withAutomaticReconnect({nextRetryDelayInMilliseconds:p(o=>!this.isDestroyed&&window.navigator.onLine&&(document==null?void 0:document.visibilityState)!=="hidden"&&o.elapsedMilliseconds<6e4?[0,2e3,1e4][o.previousRetryCount]||1e4:null,"nextRetryDelayInMilliseconds")}).build(),this._connection.onclose(async()=>{console.info(this.weavyId,"SignalR closed."),this.connectionState="disconnected",!this.isDestroyed&&(this.networkStateIsPending=!0,this._whenConnectionStarted=new Promise((o,l)=>{this._whenConnectionStartedResolve=o,this._whenConnectionStartedReject=l}),this.connect())}),this._connection.onreconnecting(()=>{console.info(this.weavyId,"SignalR reconnecting..."),this.connectionState="reconnecting"}),this._connection.onreconnected(()=>{var o;console.info(this.weavyId,"SignalR reconnected."),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)}),(r=this._resolveConnectionCreated)==null||r.call(this,this._connection),this.connect()}return this._connection}async disconnect(){this._connection&&(await this._connection.stop(),this.connectionState="disconnected")}async connect(){var r;if(this.isDestroyed)throw new kt;let a;this._connection?a=this._connection:a=await this.whenConnectionCreated(),console.info(this.weavyId,"Connecting SignalR...");try{if(!window.navigator.onLine)throw new Error;await Promise.race([a.start(),this.whenConnectionStarted()]),this.signalRAccessTokenRefresh=!1,this.networkStateIsPending=!1,this.connectionState="connected",(r=this._whenConnectionStartedResolve)==null||r.call(this,a),console.info(this.weavyId,"SignalR connected.")}catch(o){if(o instanceof kt)return console.warn(this.weavyId,"SignalR connection aborted."),a;window.navigator.onLine?!this.signalRAccessTokenRefresh&&window.document.visibilityState!=="hidden"&&o.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(l=>{setTimeout(l,5e3),window.addEventListener("visibilitychange",l,{once:!0}),window.addEventListener("offline",l,{once:!0}),window.addEventListener("online",l,{once:!0})})):(this.networkStateIsPending=!1,console.info(this.weavyId,"Offline, reconnecting SignalR when online."),await new Promise(l=>{window.addEventListener("online",l,{once:!0})})),window.navigator.onLine&&(document==null?void 0:document.visibilityState)!=="hidden"&&await new Promise(l=>setTimeout(l,1e3)),this.checkVersion(),this.networkStateIsPending=!0,await this.connect()}return a}async subscribe(r,a,o){var l;if(this.isDestroyed)throw new kt;(l=this._resolveConnectionRequested)==null||l.call(this,!0);try{const c=r?r+":"+a:a;if(this._connectionEventListeners||await new Promise(h=>queueMicrotask(()=>h(!0))),this._connectionEventListeners.some(h=>h.name===c&&h.callback===o))throw new Error("Duplicate subscribe: "+c);if(this._connectionEventListeners.push({name:c,callback:o}),await this.whenConnectionStarted(),!this._connection)throw new Error("Connection not created");this._connection.on(c,o),await this._connection.invoke("Subscribe",c)}catch(c){c instanceof kt||console.error(this.weavyId,"Error in Subscribe:",c)}}async unsubscribe(r,a,o){var l;if(this.isDestroyed)throw new kt;try{const c=r?r+":"+a:a,h=this._connectionEventListeners.findIndex(u=>u.name===c&&u.callback===o);if(h!==-1){if(this._connectionEventListeners.splice(h,1),await this.whenConnectionStarted(),!this._connection)throw new Error("Connection not created");(l=this._connection)==null||l.off(c,o),this._connectionEventListeners.some(u=>u.name===c)||await this._connection.invoke("Unsubscribe",c)}}catch(c){c instanceof kt||console.error(this.weavyId,"Error in Unsubscribe:",c)}}destroy(){super.destroy(),this.disconnect(),this._whenConnectionStartedReject&&(this._whenConnectionStarted.catch(()=>{}),this._whenConnectionStartedReject(new kt))}},d(i,"t"),i),p(t,"WeavyConnection"),t},"WeavyConnectionMixin");var G1=(s=>(s.JSON="application/json;charset=utf-8",s.FormData="multipart/form-data;charset=utf-8",s.URLEncoded="application/x-www-form-urlencoded;charset=utf-8",s.Text="text/plain;charset=utf-8",s.Auto="",s))(G1||{});const ZU=p(s=>{var i;var t;return t=(i=class extends s{async fetchOptions(r={},a=!0){if(this.isDestroyed)throw new kt;const o={headers:{"X-Weavy-Source":`${Ct.sourceName}@${Ct.version}`,"Content-Type":G1.JSON},method:"GET"},l=Sm(Sm(SU,o,!0),r,!0);return a?Sm(l,{headers:{Authorization:"Bearer "+await this.getToken()}},!0):l}async fetch(r,a,o=!0){if(this.isDestroyed)throw new kt;const l=await this.fetchOptions(a);this.networkStateIsPending=!0;const c=await fetch(new URL(r,this.url),l);if(c.ok)this.networkStateIsPending=!1,this.serverState="ok";else if(c.status===401||c.status===403){if(o)return await this.getToken(!0),await this.fetch(r,a,!1);this.networkStateIsPending=!1,this.serverState="unauthorized"}else this.networkStateIsPending=!1;return c}async upload(r,a,o,l=G1.JSON,c,h=!0){if(this.isDestroyed)throw new kt;const u=await this.getToken();return await new Promise((f,y)=>{const w=new XMLHttpRequest;w.open(a,new URL(r,this.url),!0),w.setRequestHeader("Authorization","Bearer "+u),w.setRequestHeader("X-Weavy-Source",`${Ct.sourceName}@${Ct.version}`),l&&w.setRequestHeader("Content-Type",l),c&&w.upload.addEventListener("progress",g=>{c(g.loaded/g.total*100||100)}),w.onload=g=>{h&&(w.status===401||w.status===401)?this.getToken(!0).then(()=>this.upload(r,a,o,l,c,!1)).then(f).catch(y):f(new Response(w.response,{status:w.status,statusText:w.statusText}))},w.onerror=y,w.send(o)})}async get(r){return console.warn(`weavy.get() is deprecated, use weavy.fetch("${r}") instead.`),this.fetch(r)}async post(r,a,o,l){console.warn(`weavy.post() is deprecated, use weavy.fetch("${r}", { method: "${a}"}) instead.`);const c=l?{"Content-Type":l}:void 0;return this.fetch(r,{method:a,body:o,headers:c})}},d(i,"t"),i),p(t,"WeavyFetch"),t},"WeavyFetchMixin"),PA="en",WU=p(s=>{var i;var t;return t=(i=class extends s{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:we&&we.tagName.toUpperCase()==="SCRIPT"&&we.src||new URL("weavy.cjs",document.baseURI).href)||!new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:we&&we.tagName.toUpperCase()==="SCRIPT"&&we.src||new URL("weavy.cjs",document.baseURI).href).href.startsWith(WEAVY_IMPORT_URL))?WEAVY_IMPORT_URL:typeof document>"u"?require("url").pathToFileURL(__filename).href:we&&we.tagName.toUpperCase()==="SCRIPT"&&we.src||new URL("weavy.cjs",document.baseURI).href).href).then(r=>r.svSE)]]),this._locale=t.sourceLocale}static get sourceLocale(){try{return PA}catch{return""}}get locales(){return Array.from(this._locales.entries())}set locales(r){if(this.isDestroyed)throw new kt;if(this.localization)throw new Error("Locales may only be configured once");if(r){if(!Array.isArray(r))throw new TypeError("Provided locales have invalid format.");r.forEach(a=>{if(!Array.isArray(a)||a.length!==2||typeof a[0]!="string")throw new TypeError("Invalid locale provided: "+a[0]);this._locales.set(...a)}),this.configureLocalization()}}get localization(){return this._localization}get locale(){return this._locale}set locale(r){if(this.isDestroyed)throw new kt;!this._locale&&!r||(r||(r=t.sourceLocale),this._locale=r,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 '${r}'.`))}))}async loadLocale(r){var a;if(this.isDestroyed)throw new kt;if((a=this._locales)!=null&&a.has(r)){const o=this._locales.get(r);return console.info(this.weavyId,typeof o=="function"?"loading locale":"preloaded locale",r),await(typeof o=="function"?o():o)}else throw new Error("The requested locale is not configured")}configureLocalization(){var r;if(this.isDestroyed)throw new kt;if((r=this._locales)!=null&&r.size&&!this.localization){const a=this._locales.keys();console.info(this.weavyId,"Configuring locales",a);const{getLocale:o,setLocale:l}=Bq({sourceLocale:t.sourceLocale,targetLocales:a,loadLocale:p(c=>this.loadLocale(c),"loadLocale")});this._localization={getLocale:o,setLocale:l}}}},d(i,"t"),i),p(t,"WeavyLocalization"),t},"WeavyLocalizationMixin"),VU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),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(r){this._networkState=r,this.triggerNetworkChange()}get serverState(){return this._serverState}set serverState(r){this._serverState=r,this.triggerNetworkChange()}get connectionState(){return this._connectionState}set connectionState(r){this._connectionState=r,this.triggerNetworkChange()}get networkStateIsPending(){return this._networkStateIsPending}set networkStateIsPending(r){this._networkStateIsPending=r,this.triggerNetworkChange()}get network(){return{state:this._networkState==="online"?this._connectionState==="connected"||this._serverState==="ok"?"online":"unreachable":"offline",isPending:this._networkStateIsPending}}triggerNetworkChange(){const r=this.network;this._networkEvents.forEach(a=>{a(r)})}addNetworkListener(r){this._networkEvents.add(r)}removeNetworkListener(r){this._networkEvents.delete(r)}},d(i,"t"),i),p(t,"WeavyNetwork"),t},"WeavyNetworkMixin");function Zg(){}d(Zg,"Ud");p(Zg,"noop");function CA({storage:s,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:i=1e3,serialize:n=JSON.stringify,deserialize:r=JSON.parse,retry:a}){if(s){const o=p(l=>{try{s.setItem(t,n(l));return}catch(c){return c}},"trySave");return{persistClient:QA(l=>{let c=l,h=o(c),u=0;for(;h&&c;)u++,c=a==null?void 0:a({persistedClient:c,error:h,errorCount:u}),c&&(h=o(c))},i),restoreClient:p(()=>{const l=s.getItem(t);if(l)return r(l)},"restoreClient"),removeClient:p(()=>{s.removeItem(t)},"removeClient")}}return{persistClient:Zg,restoreClient:Zg,removeClient:Zg}}d(CA,"e1");p(CA,"createSyncStoragePersister");function QA(s,t=100){let i=null,n;return function(...r){n=r,i===null&&(i=setTimeout(()=>{s(...n),i=null},t))}}d(QA,"i1");p(QA,"throttle$1");var DU=["added","removed","updated"];function hx(s){return DU.includes(s)}d(hx,"$p");p(hx,"isCacheEventType");async function MA({queryClient:s,persister:t,maxAge:i=1e3*60*60*24,buster:n="",hydrateOptions:r}){try{const a=await t.restoreClient();if(a)if(a.timestamp){const o=Date.now()-a.timestamp>i,l=a.buster!==n;o||l?t.removeClient():fA(s,a.clientState,r)}else t.removeClient()}catch{t.removeClient()}}d(MA,"r1");p(MA,"persistQueryClientRestore");async function dx({queryClient:s,persister:t,buster:i="",dehydrateOptions:n}){const r={buster:i,timestamp:Date.now(),clientState:pA(s,n)};await t.persistClient(r)}d(dx,"Cp");p(dx,"persistQueryClientSave");function TA(s){const t=s.queryClient.getQueryCache().subscribe(n=>{hx(n.type)&&dx(s)}),i=s.queryClient.getMutationCache().subscribe(n=>{hx(n.type)&&dx(s)});return()=>{t(),i()}}d(TA,"n1");p(TA,"persistQueryClientSubscribe");const qU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this._queryClient=new EU({defaultOptions:{queries:{staleTime:this.staleTime,gcTime:this.gcTime}}}),this.initQueryClient()}get queryClient(){return this._queryClient}async initQueryClient(){if(this.isDestroyed)throw new kt;await this.whenUrl();try{this._sessionStoragePersister=CA({key:"WEAVY_QUERY_OFFLINE_CACHE",storage:window.sessionStorage,throttleTime:this.staleTime});const r={queryClient:this._queryClient,persister:this._sessionStoragePersister,maxAge:this.gcTime,buster:this.cachePrefix,hydrateOptions:void 0,dehydrateOptions:{shouldDehydrateMutation:p(a=>{var o,l;const c=((l=(o=a.state.context)==null?void 0:o.status)==null?void 0:l.state)==="pending";return!!(a.state.context&&!c||a.state.isPaused)},"shouldDehydrateMutation")}};await MA(r),this._unsubscribeQueryClient=TA(r)}catch{console.warn(this.weavyId,"Query cache persister not available.")}this.host.isConnected&&this._queryClient.mount(),this._hostIsConnectedObserver=d3(this.host,r=>{this.isDestroyed||(r?(console.info(this.weavyId,"Query client mounted"),this._queryClient.mount()):(console.info(this.weavyId,"Query client unmounted"),this._queryClient.unmount()))})}async disconnectQueryClient(){var r,a;console.info(this.weavyId,"Query client disconnected"),await this._queryClient.cancelQueries(),this.queryClient.setQueriesData({},void 0),this.queryClient.resetQueries(),(r=this._sessionStoragePersister)==null||r.removeClient(),(a=this._unsubscribeQueryClient)==null||a.call(this),this._queryClient.unmount(),this._queryClient.clear()}destroy(){var r;super.destroy(),(r=this._hostIsConnectedObserver)==null||r.disconnect(),this.disconnectQueryClient()}},d(i,"t"),i),p(t,"WeavyQuery"),t},"WeavyQueryMixin"),UU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this._notificationEvents=Ct.defaults.notificationEvents??!1,this.dispatchRealtimeEvent=a=>{ii();const o=this.host!==document.documentElement?{composed:!0}:{bubbles:!0};switch(a.action){case"notification_created":case"notification_updated":case"notification_deleted":case"notifications_marked":{const l=new CustomEvent("wy-notifications",{...o,detail:a});this.host.dispatchEvent(l)}}}}get notificationEvents(){return this._notificationEvents}set notificationEvents(r){this.realtimeUnsubscribe(),this._notificationEvents=r??!1,this.realtimeSubscribe()}async realtimeSubscribe(){const r=this;this.notificationEvents&&(r.subscribe(null,"notification_created",this.dispatchRealtimeEvent),r.subscribe(null,"notification_updated",this.dispatchRealtimeEvent),r.subscribe(null,"notifications_marked",this.dispatchRealtimeEvent))}realtimeUnsubscribe(){const r=this;this.notificationEvents&&(r.unsubscribe(null,"notification_created",this.dispatchRealtimeEvent),r.unsubscribe(null,"notification_updated",this.dispatchRealtimeEvent),r.unsubscribe(null,"notifications_marked",this.dispatchRealtimeEvent))}destroy(){this.realtimeUnsubscribe(),super.destroy()}},d(i,"t"),i),p(t,"WeavyRealtime"),t},"WeavyRealtimeMixin"),jU=p(s=>{var i;var t;return t=(i=class extends s{set notifications(r){this._notifications=r,this.updateContext()}get notifications(){return this._notifications??Ct.defaults.notifications}set notificationsBadge(r){this._notificationsBadge=r,this.updateContext()}get notificationsBadge(){return this._notificationsBadge??Ct.defaults.notificationsBadge}set reactions(r){this._reactions=r,this.updateContext()}get reactions(){return this._reactions??Ct.defaults.reactions}constructor(...r){super(...r)}},d(i,"t"),i),p(t,"WeavySettings"),t},"WeavySettingsMixin");function di(s){return s<0?-1:s===0?0:1}d(di,"Ee");p(di,"signum");function Zc(s,t,i){return(1-i)*s+i*t}d(Zc,"Vo");p(Zc,"lerp");function RA(s,t,i){return i<s?s:i>t?t:i}d(RA,"l1");p(RA,"clampInt");function Gm(s,t,i){return i<s?s:i>t?t:i}d(Gm,"nl");p(Gm,"clampDouble");function Hv(s){return s=s%360,s<0&&(s=s+360),s}d(Hv,"su");p(Hv,"sanitizeDegreesDouble");function AA(s,t){return Hv(t-s)<=180?1:-1}d(AA,"d1");p(AA,"rotationDirection");function EA(s,t){return 180-Math.abs(Math.abs(s-t)-180)}d(EA,"h1");p(EA,"differenceDegrees");function K1(s,t){const i=s[0]*t[0][0]+s[1]*t[0][1]+s[2]*t[0][2],n=s[0]*t[1][0]+s[1]*t[1][1]+s[2]*t[1][2],r=s[0]*t[2][0]+s[1]*t[2][1]+s[2]*t[2][2];return[i,n,r]}d(K1,"yh");p(K1,"matrixMultiply");const BU=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],FU=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],XU=[95.047,100,108.883];function Yv(s,t,i){return(255<<24|(s&255)<<16|(t&255)<<8|i&255)>>>0}d(Yv,"ru");p(Yv,"argbFromRgb");function ux(s){const t=vr(s[0]),i=vr(s[1]),n=vr(s[2]);return Yv(t,i,n)}d(ux,"kp");p(ux,"argbFromLinrgb");function sS(s){return s>>16&255}d(sS,"tw");p(sS,"redFromArgb");function rS(s){return s>>8&255}d(rS,"ew");p(rS,"greenFromArgb");function aS(s){return s&255}d(aS,"iw");p(aS,"blueFromArgb");function LA(s,t,i){const n=FU,r=n[0][0]*s+n[0][1]*t+n[0][2]*i,a=n[1][0]*s+n[1][1]*t+n[1][2]*i,o=n[2][0]*s+n[2][1]*t+n[2][2]*i,l=vr(r),c=vr(a),h=vr(o);return Yv(l,c,h)}d(LA,"w1");p(LA,"argbFromXyz");function zA(s){const t=Fa(sS(s)),i=Fa(rS(s)),n=Fa(aS(s));return K1([t,i,n],BU)}d(zA,"f1");p(zA,"xyzFromArgb");function _A(s){const t=As(s),i=vr(t);return Yv(i,i,i)}d(_A,"m1");p(_A,"argbFromLstar");function J1(s){const t=zA(s)[1];return 116*oS(t/100)-16}d(J1,"wh");p(J1,"lstarFromArgb");function As(s){return 100*ZA((s+16)/116)}d(As,"ms");p(As,"yFromLstar");function ev(s){return oS(s/100)*116-16}d(ev,"fh");p(ev,"lstarFromY");function Fa(s){const t=s/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}d(Fa,"Vr");p(Fa,"linearized");function vr(s){const t=s/100;let i=0;return t<=.0031308?i=t*12.92:i=1.055*Math.pow(t,1/2.4)-.055,RA(0,255,Math.round(i*255))}d(vr,"Gs");p(vr,"delinearized");function IA(){return XU}d(IA,"v1");p(IA,"whitePointD65");function oS(s){const t=.008856451679035631,i=24389/27;return s>t?Math.pow(s,1/3):(i*s+16)/116}d(oS,"sw");p(oS,"labF");function ZA(s){const t=.008856451679035631,i=24389/27,n=s*s*s;return n>t?n:(116*s-16)/i}d(ZA,"g1");p(ZA,"labInvf");var To;const WA=(To=class{static make(t=IA(),i=200/Math.PI*As(50)/100,n=50,r=2,a=!1){const o=t,l=o[0]*.401288+o[1]*.650173+o[2]*-.051461,c=o[0]*-.250268+o[1]*1.204414+o[2]*.045854,h=o[0]*-.002079+o[1]*.048952+o[2]*.953127,u=.8+r/10,f=u>=.9?Zc(.59,.69,(u-.9)*10):Zc(.525,.59,(u-.8)*10);let y=a?1:u*(1-1/3.6*Math.exp((-i-42)/92));y=y>1?1:y<0?0:y;const w=u,g=[y*(100/l)+1-y,y*(100/c)+1-y,y*(100/h)+1-y],O=1/(5*i+1),x=O*O*O*O,$=1-x,C=x*i+.1*$*$*Math.cbrt(5*i),A=As(n)/t[1],E=1.48+Math.sqrt(A),R=.725/Math.pow(A,.2),z=R,I=[Math.pow(C*g[0]*l/100,.42),Math.pow(C*g[1]*c/100,.42),Math.pow(C*g[2]*h/100,.42)],q=[400*I[0]/(I[0]+27.13),400*I[1]/(I[1]+27.13),400*I[2]/(I[2]+27.13)],B=(2*q[0]+q[1]+.05*q[2])*R;return new To(A,B,R,z,f,w,g,C,Math.pow(C,.25),E)}constructor(t,i,n,r,a,o,l,c,h,u){this.n=t,this.aw=i,this.nbb=n,this.ncb=r,this.c=a,this.nc=o,this.rgbD=l,this.fl=c,this.fLRoot=h,this.z=u}},d(To,"Sl"),To);p(WA,"ViewingConditions");let Es=WA;Es.DEFAULT=Es.make();var Di;const VA=(Di=class{constructor(t,i,n,r,a,o,l,c,h){this.hue=t,this.chroma=i,this.j=n,this.q=r,this.m=a,this.s=o,this.jstar=l,this.astar=c,this.bstar=h}distance(t){const i=this.jstar-t.jstar,n=this.astar-t.astar,r=this.bstar-t.bstar,a=Math.sqrt(i*i+n*n+r*r);return 1.41*Math.pow(a,.63)}static fromInt(t){return Di.fromIntInViewingConditions(t,Es.DEFAULT)}static fromIntInViewingConditions(t,i){const n=(t&16711680)>>16,r=(t&65280)>>8,a=t&255,o=Fa(n),l=Fa(r),c=Fa(a),h=.41233895*o+.35762064*l+.18051042*c,u=.2126*o+.7152*l+.0722*c,f=.01932141*o+.11916382*l+.95034478*c,y=.401288*h+.650173*u-.051461*f,w=-.250268*h+1.204414*u+.045854*f,g=-.002079*h+.048952*u+.953127*f,O=i.rgbD[0]*y,x=i.rgbD[1]*w,$=i.rgbD[2]*g,C=Math.pow(i.fl*Math.abs(O)/100,.42),A=Math.pow(i.fl*Math.abs(x)/100,.42),E=Math.pow(i.fl*Math.abs($)/100,.42),R=di(O)*400*C/(C+27.13),z=di(x)*400*A/(A+27.13),I=di($)*400*E/(E+27.13),q=(11*R+-12*z+I)/11,B=(R+z-2*I)/9,ne=(20*R+20*z+21*I)/20,se=(40*R+20*z+I)/20,G=Math.atan2(B,q)*180/Math.PI,ce=G<0?G+360:G>=360?G-360:G,te=ce*Math.PI/180,Me=se*i.nbb,$e=100*Math.pow(Me/i.aw,i.c*i.z),Ue=4/i.c*Math.sqrt($e/100)*(i.aw+4)*i.fLRoot,Ve=ce<20.14?ce+360:ce,De=.25*(Math.cos(Ve*Math.PI/180+2)+3.8),bi=5e4/13*De*i.nc*i.ncb*Math.sqrt(q*q+B*B)/(ne+.305),At=Math.pow(bi,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),ht=At*Math.sqrt($e/100),it=ht*i.fLRoot,ft=50*Math.sqrt(At*i.c/(i.aw+4)),Oi=(1+100*.007)*$e/(1+.007*$e),Ei=1/.0228*Math.log(1+.0228*it),Hi=Ei*Math.cos(te),Ne=Ei*Math.sin(te);return new Di(ce,ht,$e,Ue,it,ft,Oi,Hi,Ne)}static fromJch(t,i,n){return Di.fromJchInViewingConditions(t,i,n,Es.DEFAULT)}static fromJchInViewingConditions(t,i,n,r){const a=4/r.c*Math.sqrt(t/100)*(r.aw+4)*r.fLRoot,o=i*r.fLRoot,l=i/Math.sqrt(t/100),c=50*Math.sqrt(l*r.c/(r.aw+4)),h=n*Math.PI/180,u=(1+100*.007)*t/(1+.007*t),f=1/.0228*Math.log(1+.0228*o),y=f*Math.cos(h),w=f*Math.sin(h);return new Di(n,i,t,a,o,c,u,y,w)}static fromUcs(t,i,n){return Di.fromUcsInViewingConditions(t,i,n,Es.DEFAULT)}static fromUcsInViewingConditions(t,i,n,r){const a=i,o=n,l=Math.sqrt(a*a+o*o),c=(Math.exp(l*.0228)-1)/.0228/r.fLRoot;let h=Math.atan2(o,a)*(180/Math.PI);h<0&&(h+=360);const u=t/(1-(t-100)*.007);return Di.fromJchInViewingConditions(u,c,h,r)}toInt(){return this.viewed(Es.DEFAULT)}viewed(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),r=this.hue*Math.PI/180,a=.25*(Math.cos(r+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),l=a*(5e4/13)*t.nc*t.ncb,c=o/t.nbb,h=Math.sin(r),u=Math.cos(r),f=23*(c+.305)*n/(23*l+11*n*u+108*n*h),y=f*u,w=f*h,g=(460*c+451*y+288*w)/1403,O=(460*c-891*y-261*w)/1403,x=(460*c-220*y-6300*w)/1403,$=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),C=di(g)*(100/t.fl)*Math.pow($,1/.42),A=Math.max(0,27.13*Math.abs(O)/(400-Math.abs(O))),E=di(O)*(100/t.fl)*Math.pow(A,1/.42),R=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),z=di(x)*(100/t.fl)*Math.pow(R,1/.42),I=C/t.rgbD[0],q=E/t.rgbD[1],B=z/t.rgbD[2],ne=1.86206786*I-1.01125463*q+.14918677*B,se=.38752654*I+.62144744*q-.00897398*B,G=-.0158415*I-.03412294*q+1.04996444*B;return LA(ne,se,G)}static fromXyzInViewingConditions(t,i,n,r){const a=.401288*t+.650173*i-.051461*n,o=-.250268*t+1.204414*i+.045854*n,l=-.002079*t+.048952*i+.953127*n,c=r.rgbD[0]*a,h=r.rgbD[1]*o,u=r.rgbD[2]*l,f=Math.pow(r.fl*Math.abs(c)/100,.42),y=Math.pow(r.fl*Math.abs(h)/100,.42),w=Math.pow(r.fl*Math.abs(u)/100,.42),g=di(c)*400*f/(f+27.13),O=di(h)*400*y/(y+27.13),x=di(u)*400*w/(w+27.13),$=(11*g+-12*O+x)/11,C=(g+O-2*x)/9,A=(20*g+20*O+21*x)/20,E=(40*g+20*O+x)/20,R=Math.atan2(C,$)*180/Math.PI,z=R<0?R+360:R>=360?R-360:R,I=z*Math.PI/180,q=E*r.nbb,B=100*Math.pow(q/r.aw,r.c*r.z),ne=4/r.c*Math.sqrt(B/100)*(r.aw+4)*r.fLRoot,se=z<20.14?z+360:z,G=1/4*(Math.cos(se*Math.PI/180+2)+3.8),ce=5e4/13*G*r.nc*r.ncb*Math.sqrt($*$+C*C)/(A+.305),te=Math.pow(ce,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),Me=te*Math.sqrt(B/100),$e=Me*r.fLRoot,Ue=50*Math.sqrt(te*r.c/(r.aw+4)),Ve=(1+100*.007)*B/(1+.007*B),De=Math.log(1+.0228*$e)/.0228,bi=De*Math.cos(I),At=De*Math.sin(I);return new Di(z,Me,B,ne,$e,Ue,Ve,bi,At)}xyzInViewingConditions(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),r=this.hue*Math.PI/180,a=.25*(Math.cos(r+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),l=a*(5e4/13)*t.nc*t.ncb,c=o/t.nbb,h=Math.sin(r),u=Math.cos(r),f=23*(c+.305)*n/(23*l+11*n*u+108*n*h),y=f*u,w=f*h,g=(460*c+451*y+288*w)/1403,O=(460*c-891*y-261*w)/1403,x=(460*c-220*y-6300*w)/1403,$=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),C=di(g)*(100/t.fl)*Math.pow($,1/.42),A=Math.max(0,27.13*Math.abs(O)/(400-Math.abs(O))),E=di(O)*(100/t.fl)*Math.pow(A,1/.42),R=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),z=di(x)*(100/t.fl)*Math.pow(R,1/.42),I=C/t.rgbD[0],q=E/t.rgbD[1],B=z/t.rgbD[2],ne=1.86206786*I-1.01125463*q+.14918677*B,se=.38752654*I+.62144744*q-.00897398*B,G=-.0158415*I-.03412294*q+1.04996444*B;return[ne,se,G]}},d(Di,"mi"),Di);p(VA,"Cam16");let Xn=VA;var be;const DA=(be=class{static sanitizeRadians(t){return(t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){const i=t/100;let n=0;return i<=.0031308?n=i*12.92:n=1.055*Math.pow(i,1/2.4)-.055,n*255}static chromaticAdaptation(t){const i=Math.pow(Math.abs(t),.42);return di(t)*400*i/(i+27.13)}static hueOf(t){const i=K1(t,be.SCALED_DISCOUNT_FROM_LINRGB),n=be.chromaticAdaptation(i[0]),r=be.chromaticAdaptation(i[1]),a=be.chromaticAdaptation(i[2]),o=(11*n+-12*r+a)/11,l=(n+r-2*a)/9;return Math.atan2(l,o)}static areInCyclicOrder(t,i,n){const r=be.sanitizeRadians(i-t),a=be.sanitizeRadians(n-t);return r<a}static intercept(t,i,n){return(i-t)/(n-t)}static lerpPoint(t,i,n){return[t[0]+(n[0]-t[0])*i,t[1]+(n[1]-t[1])*i,t[2]+(n[2]-t[2])*i]}static setCoordinate(t,i,n,r){const a=be.intercept(t[r],i,n[r]);return be.lerpPoint(t,a,n)}static isBounded(t){return 0<=t&&t<=100}static nthVertex(t,i){const n=be.Y_FROM_LINRGB[0],r=be.Y_FROM_LINRGB[1],a=be.Y_FROM_LINRGB[2],o=i%4<=1?0:100,l=i%2===0?0:100;if(i<4){const c=o,h=l,u=(t-c*r-h*a)/n;return be.isBounded(u)?[u,c,h]:[-1,-1,-1]}else if(i<8){const c=o,h=l,u=(t-h*n-c*a)/r;return be.isBounded(u)?[h,u,c]:[-1,-1,-1]}else{const c=o,h=l,u=(t-c*n-h*r)/a;return be.isBounded(u)?[c,h,u]:[-1,-1,-1]}}static bisectToSegment(t,i){let n=[-1,-1,-1],r=n,a=0,o=0,l=!1,c=!0;for(let h=0;h<12;h++){const u=be.nthVertex(t,h);if(u[0]<0)continue;const f=be.hueOf(u);if(!l){n=u,r=u,a=f,o=f,l=!0;continue}(c||be.areInCyclicOrder(a,f,o))&&(c=!1,be.areInCyclicOrder(a,i,f)?(r=u,o=f):(n=u,a=f))}return[n,r]}static midpoint(t,i){return[(t[0]+i[0])/2,(t[1]+i[1])/2,(t[2]+i[2])/2]}static criticalPlaneBelow(t){return Math.floor(t-.5)}static criticalPlaneAbove(t){return Math.ceil(t-.5)}static bisectToLimit(t,i){const n=be.bisectToSegment(t,i);let r=n[0],a=be.hueOf(r),o=n[1];for(let l=0;l<3;l++)if(r[l]!==o[l]){let c=-1,h=255;r[l]<o[l]?(c=be.criticalPlaneBelow(be.trueDelinearized(r[l])),h=be.criticalPlaneAbove(be.trueDelinearized(o[l]))):(c=be.criticalPlaneAbove(be.trueDelinearized(r[l])),h=be.criticalPlaneBelow(be.trueDelinearized(o[l])));for(let u=0;u<8&&!(Math.abs(h-c)<=1);u++){const f=Math.floor((c+h)/2),y=be.CRITICAL_PLANES[f],w=be.setCoordinate(r,y,o,l),g=be.hueOf(w);be.areInCyclicOrder(a,i,g)?(o=w,h=f):(r=w,a=g,c=f)}}return be.midpoint(r,o)}static inverseChromaticAdaptation(t){const i=Math.abs(t),n=Math.max(0,27.13*i/(400-i));return di(t)*Math.pow(n,1/.42)}static findResultByJ(t,i,n){let r=Math.sqrt(n)*11;const a=Es.DEFAULT,o=1/Math.pow(1.64-Math.pow(.29,a.n),.73),l=.25*(Math.cos(t+2)+3.8)*(5e4/13)*a.nc*a.ncb,c=Math.sin(t),h=Math.cos(t);for(let u=0;u<5;u++){const f=r/100,y=i===0||r===0?0:i/Math.sqrt(f),w=Math.pow(y*o,1/.9),g=a.aw*Math.pow(f,1/a.c/a.z)/a.nbb,O=23*(g+.305)*w/(23*l+11*w*h+108*w*c),x=O*h,$=O*c,C=(460*g+451*x+288*$)/1403,A=(460*g-891*x-261*$)/1403,E=(460*g-220*x-6300*$)/1403,R=be.inverseChromaticAdaptation(C),z=be.inverseChromaticAdaptation(A),I=be.inverseChromaticAdaptation(E),q=K1([R,z,I],be.LINRGB_FROM_SCALED_DISCOUNT);if(q[0]<0||q[1]<0||q[2]<0)return 0;const B=be.Y_FROM_LINRGB[0],ne=be.Y_FROM_LINRGB[1],se=be.Y_FROM_LINRGB[2],G=B*q[0]+ne*q[1]+se*q[2];if(G<=0)return 0;if(u===4||Math.abs(G-n)<.002)return q[0]>100.01||q[1]>100.01||q[2]>100.01?0:ux(q);r=r-(G-n)*r/(2*G)}return 0}static solveToInt(t,i,n){if(i<1e-4||n<1e-4||n>99.9999)return _A(n);t=Hv(t);const r=t/180*Math.PI,a=As(n),o=be.findResultByJ(r,i,a);if(o!==0)return o;const l=be.bisectToLimit(a,r);return ux(l)}static solveToCam(t,i,n){return Xn.fromInt(be.solveToInt(t,i,n))}},d(be,"it"),be);p(DA,"HctSolver");let mr=DA;mr.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];mr.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];mr.Y_FROM_LINRGB=[.2126,.7152,.0722];mr.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 Vs;const qA=(Vs=class{static from(t,i,n){return new Vs(mr.solveToInt(t,i,n))}static fromInt(t){return new Vs(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(mr.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(mr.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(mr.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const i=Xn.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=J1(t),this.argb=t}setInternalState(t){const i=Xn.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=J1(t),this.argb=t}inViewingConditions(t){const i=Xn.fromInt(this.toInt()).xyzInViewingConditions(t),n=Xn.fromXyzInViewingConditions(i[0],i[1],i[2],Es.make());return Vs.from(n.hue,n.chroma,ev(i[1]))}},d(Vs,"Dr"),Vs);p(qA,"Hct");let Pi=qA;var Ro;const UA=(Ro=class{static harmonize(t,i){const n=Pi.fromInt(t),r=Pi.fromInt(i),a=EA(n.hue,r.hue),o=Math.min(a*.5,15),l=Hv(n.hue+o*AA(n.hue,r.hue));return Pi.from(l,n.chroma,n.tone).toInt()}static hctHue(t,i,n){const r=Ro.cam16Ucs(t,i,n),a=Xn.fromInt(r),o=Xn.fromInt(t);return Pi.from(a.hue,o.chroma,J1(t)).toInt()}static cam16Ucs(t,i,n){const r=Xn.fromInt(t),a=Xn.fromInt(i),o=r.jstar,l=r.astar,c=r.bstar,h=a.jstar,u=a.astar,f=a.bstar,y=o+(h-o)*n,w=l+(u-l)*n,g=c+(f-c)*n;return Xn.fromUcs(y,w,g).toInt()}},d(Ro,"El"),Ro);p(UA,"Blend");let Vn=UA;var mn;const jA=(mn=class{static ratioOfTones(t,i){return t=Gm(0,100,t),i=Gm(0,100,i),mn.ratioOfYs(As(t),As(i))}static ratioOfYs(t,i){const n=t>i?t:i,r=n===i?t:i;return(n+5)/(r+5)}static lighter(t,i){if(t<0||t>100)return-1;const n=As(t),r=i*(n+5)-5,a=mn.ratioOfYs(r,n),o=Math.abs(a-i);if(a<i&&o>.04)return-1;const l=ev(r)+.4;return l<0||l>100?-1:l}static darker(t,i){if(t<0||t>100)return-1;const n=As(t),r=(n+5)/i-5,a=mn.ratioOfYs(n,r),o=Math.abs(a-i);if(a<i&&o>.04)return-1;const l=ev(r)-.4;return l<0||l>100?-1:l}static lighterUnsafe(t,i){const n=mn.lighter(t,i);return n<0?100:n}static darkerUnsafe(t,i){const n=mn.darker(t,i);return n<0?0:n}},d(mn,"ns"),mn);p(jA,"Contrast");let Yi=jA;var Ao;const BA=(Ao=class{static isDisliked(t){const i=Math.round(t.hue)>=90&&Math.round(t.hue)<=111,n=Math.round(t.chroma)>16,r=Math.round(t.tone)<65;return i&&n&&r}static fixIfDisliked(t){return Ao.isDisliked(t)?Pi.from(t.hue,t.chroma,70):t}},d(Ao,"Al"),Ao);p(BA,"DislikeAnalyzer");let NU=BA;var Wt;const FA=(Wt=class{static fromPalette(t){return new Wt(t.name??"",t.palette,t.tone,t.isBackground??!1,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}constructor(t,i,n,r,a,o,l,c){if(this.name=t,this.palette=i,this.tone=n,this.isBackground=r,this.background=a,this.secondBackground=o,this.contrastCurve=l,this.toneDeltaPair=c,this.hctCache=new Map,!a&&o)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!a&&l)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(a&&!l)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(t){return this.getHct(t).toInt()}getHct(t){const i=this.hctCache.get(t);if(i!=null)return i;const n=this.getTone(t),r=this.palette(t).getHct(n);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,r),r}getTone(t){const i=t.contrastLevel<0;if(this.toneDeltaPair){const n=this.toneDeltaPair(t),r=n.roleA,a=n.roleB,o=n.delta,l=n.polarity,c=n.stayTogether,h=this.background(t).getTone(t),u=l==="nearer"||l==="lighter"&&!t.isDark||l==="darker"&&t.isDark,f=u?r:a,y=u?a:r,w=this.name===f.name,g=t.isDark?1:-1,O=f.contrastCurve.getContrast(t.contrastLevel),x=y.contrastCurve.getContrast(t.contrastLevel),$=f.tone(t);let C=Yi.ratioOfTones(h,$)>=O?$:Wt.foregroundTone(h,O);const A=y.tone(t);let E=Yi.ratioOfTones(h,A)>=x?A:Wt.foregroundTone(h,x);return i&&(C=Wt.foregroundTone(h,O),E=Wt.foregroundTone(h,x)),(E-C)*g>=o||(E=Gm(0,100,C+o*g),(E-C)*g>=o||(C=Gm(0,100,E-o*g))),50<=C&&C<60?g>0?(C=60,E=Math.max(E,C+o*g)):(C=49,E=Math.min(E,C+o*g)):50<=E&&E<60&&(c?g>0?(C=60,E=Math.max(E,C+o*g)):(C=49,E=Math.min(E,C+o*g)):g>0?E=60:E=49),w?C:E}else{let n=this.tone(t);if(this.background==null)return n;const r=this.background(t).getTone(t),a=this.contrastCurve.getContrast(t.contrastLevel);if(Yi.ratioOfTones(r,n)>=a||(n=Wt.foregroundTone(r,a)),i&&(n=Wt.foregroundTone(r,a)),this.isBackground&&50<=n&&n<60&&(Yi.ratioOfTones(49,r)>=a?n=49:n=60),this.secondBackground){const[o,l]=[this.background,this.secondBackground],[c,h]=[o(t).getTone(t),l(t).getTone(t)],[u,f]=[Math.max(c,h),Math.min(c,h)];if(Yi.ratioOfTones(u,n)>=a&&Yi.ratioOfTones(f,n)>=a)return n;const y=Yi.lighter(u,a),w=Yi.darker(f,a),g=[];return y!==-1&&g.push(y),w!==-1&&g.push(w),Wt.tonePrefersLightForeground(c)||Wt.tonePrefersLightForeground(h)?y<0?100:y:g.length===1?g[0]:w<0?0:w}return n}}static foregroundTone(t,i){const n=Yi.lighterUnsafe(t,i),r=Yi.darkerUnsafe(t,i),a=Yi.ratioOfTones(n,t),o=Yi.ratioOfTones(r,t);if(Wt.tonePrefersLightForeground(t)){const l=Math.abs(a-o)<.1&&a<i&&o<i;return a>=i||a>=o||l?n:r}else return o>=i||o>=a?r:n}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return Wt.tonePrefersLightForeground(t)&&!Wt.toneAllowsLightForeground(t)?49:t}},d(Wt,"ke"),Wt);p(FA,"DynamicColor");let ue=FA;var Km;(function(s){s[s.MONOCHROME=0]="MONOCHROME",s[s.NEUTRAL=1]="NEUTRAL",s[s.TONAL_SPOT=2]="TONAL_SPOT",s[s.VIBRANT=3]="VIBRANT",s[s.EXPRESSIVE=4]="EXPRESSIVE",s[s.FIDELITY=5]="FIDELITY",s[s.CONTENT=6]="CONTENT",s[s.RAINBOW=7]="RAINBOW",s[s.FRUIT_SALAD=8]="FRUIT_SALAD"})(Km||(Km={}));var gu;const XA=(gu=class{constructor(t,i,n,r){this.low=t,this.normal=i,this.medium=n,this.high=r}getContrast(t){return t<=-1?this.low:t<0?Zc(this.low,this.normal,(t- -1)/1):t<.5?Zc(this.normal,this.medium,(t-0)/.5):t<1?Zc(this.medium,this.high,(t-.5)/.5):this.high}},d(gu,"Fu"),gu);p(XA,"ContrastCurve");let Le=XA;var vu;const NA=(vu=class{constructor(t,i,n,r,a){this.roleA=t,this.roleB=i,this.delta=n,this.polarity=r,this.stayTogether=a}},d(vu,"Du"),vu);p(NA,"ToneDeltaPair");let Ri=NA;function sl(s){return s.variant===Km.FIDELITY||s.variant===Km.CONTENT}d(sl,"zo");p(sl,"isFidelity");function pt(s){return s.variant===Km.MONOCHROME}d(pt,"jt");p(pt,"isMonochrome");function HA(s,t,i,n){let r=i,a=Pi.from(s,t,i);if(a.chroma<t){let o=a.chroma;for(;a.chroma<t;){r+=n?-1:1;const l=Pi.from(s,t,r);if(o>l.chroma||Math.abs(l.chroma-t)<.4)break;const c=Math.abs(l.chroma-t),h=Math.abs(a.chroma-t);c<h&&(a=l),o=Math.max(o,l.chroma)}}return r}d(HA,"b1");p(HA,"findDesiredChromaByTone");function YA(s){return Es.make(void 0,void 0,s.isDark?30:80,void 0,void 0)}d(YA,"x1");p(YA,"viewingConditionsForAlbers");function Gv(s,t){const i=s.inViewingConditions(YA(t));return ue.tonePrefersLightForeground(s.tone)&&!ue.toneAllowsLightForeground(i.tone)?ue.enableLightForeground(s.tone):ue.enableLightForeground(i.tone)}d(Gv,"nu");p(Gv,"performAlbers");var Vr;const GA=(Vr=class{static highestSurface(t){return t.isDark?Vr.surfaceBright:Vr.surfaceDim}},d(Vr,"qo"),Vr);p(GA,"MaterialDynamicColors");let V=GA;V.contentAccentToneDelta=15;V.primaryPaletteKeyColor=ue.fromPalette({name:"primary_palette_key_color",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>s.primaryPalette.keyColor.tone,"tone")});V.secondaryPaletteKeyColor=ue.fromPalette({name:"secondary_palette_key_color",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>s.secondaryPalette.keyColor.tone,"tone")});V.tertiaryPaletteKeyColor=ue.fromPalette({name:"tertiary_palette_key_color",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>s.tertiaryPalette.keyColor.tone,"tone")});V.neutralPaletteKeyColor=ue.fromPalette({name:"neutral_palette_key_color",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.neutralPalette.keyColor.tone,"tone")});V.neutralVariantPaletteKeyColor=ue.fromPalette({name:"neutral_variant_palette_key_color",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.neutralVariantPalette.keyColor.tone,"tone")});V.background=ue.fromPalette({name:"background",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?6:98,"tone"),isBackground:!0});V.onBackground=ue.fromPalette({name:"on_background",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?90:10,"tone"),background:p(s=>V.background,"background"),contrastCurve:new Le(3,3,4.5,7)});V.surface=ue.fromPalette({name:"surface",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?6:98,"tone"),isBackground:!0});V.surfaceDim=ue.fromPalette({name:"surface_dim",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?6:87,"tone"),isBackground:!0});V.surfaceBright=ue.fromPalette({name:"surface_bright",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?24:98,"tone"),isBackground:!0});V.surfaceContainerLowest=ue.fromPalette({name:"surface_container_lowest",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?4:100,"tone"),isBackground:!0});V.surfaceContainerLow=ue.fromPalette({name:"surface_container_low",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?10:96,"tone"),isBackground:!0});V.surfaceContainer=ue.fromPalette({name:"surface_container",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?12:94,"tone"),isBackground:!0});V.surfaceContainerHigh=ue.fromPalette({name:"surface_container_high",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?17:92,"tone"),isBackground:!0});V.surfaceContainerHighest=ue.fromPalette({name:"surface_container_highest",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?22:90,"tone"),isBackground:!0});V.onSurface=ue.fromPalette({name:"on_surface",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?90:10,"tone"),background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(4.5,7,11,21)});V.surfaceVariant=ue.fromPalette({name:"surface_variant",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.isDark?30:90,"tone"),isBackground:!0});V.onSurfaceVariant=ue.fromPalette({name:"on_surface_variant",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.isDark?80:30,"tone"),background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(3,4.5,7,11)});V.inverseSurface=ue.fromPalette({name:"inverse_surface",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?90:20,"tone")});V.inverseOnSurface=ue.fromPalette({name:"inverse_on_surface",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?20:95,"tone"),background:p(s=>V.inverseSurface,"background"),contrastCurve:new Le(4.5,7,11,21)});V.outline=ue.fromPalette({name:"outline",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.isDark?60:50,"tone"),background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1.5,3,4.5,7)});V.outlineVariant=ue.fromPalette({name:"outline_variant",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.isDark?30:80,"tone"),background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7)});V.shadow=ue.fromPalette({name:"shadow",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>0,"tone")});V.scrim=ue.fromPalette({name:"scrim",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>0,"tone")});V.surfaceTint=ue.fromPalette({name:"surface_tint",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>s.isDark?80:40,"tone"),isBackground:!0});V.primary=ue.fromPalette({name:"primary",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>pt(s)?s.isDark?100:0:s.isDark?80:40,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(3,4.5,7,11),toneDeltaPair:p(s=>new Ri(V.primaryContainer,V.primary,15,"nearer",!1),"toneDeltaPair")});V.onPrimary=ue.fromPalette({name:"on_primary",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>pt(s)?s.isDark?10:90:s.isDark?20:100,"tone"),background:p(s=>V.primary,"background"),contrastCurve:new Le(4.5,7,11,21)});V.primaryContainer=ue.fromPalette({name:"primary_container",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>sl(s)?Gv(s.sourceColorHct,s):pt(s)?s.isDark?85:25:s.isDark?30:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.primaryContainer,V.primary,15,"nearer",!1),"toneDeltaPair")});V.onPrimaryContainer=ue.fromPalette({name:"on_primary_container",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>sl(s)?ue.foregroundTone(V.primaryContainer.tone(s),4.5):pt(s)?s.isDark?0:100:s.isDark?90:10,"tone"),background:p(s=>V.primaryContainer,"background"),contrastCurve:new Le(4.5,7,11,21)});V.inversePrimary=ue.fromPalette({name:"inverse_primary",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>s.isDark?40:80,"tone"),background:p(s=>V.inverseSurface,"background"),contrastCurve:new Le(3,4.5,7,11)});V.secondary=ue.fromPalette({name:"secondary",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>s.isDark?80:40,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(3,4.5,7,11),toneDeltaPair:p(s=>new Ri(V.secondaryContainer,V.secondary,15,"nearer",!1),"toneDeltaPair")});V.onSecondary=ue.fromPalette({name:"on_secondary",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>pt(s)?s.isDark?10:100:s.isDark?20:100,"tone"),background:p(s=>V.secondary,"background"),contrastCurve:new Le(4.5,7,11,21)});V.secondaryContainer=ue.fromPalette({name:"secondary_container",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>{const t=s.isDark?30:90;if(pt(s))return s.isDark?30:85;if(!sl(s))return t;let i=HA(s.secondaryPalette.hue,s.secondaryPalette.chroma,t,!s.isDark);return i=Gv(s.secondaryPalette.getHct(i),s),i},"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.secondaryContainer,V.secondary,15,"nearer",!1),"toneDeltaPair")});V.onSecondaryContainer=ue.fromPalette({name:"on_secondary_container",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>sl(s)?ue.foregroundTone(V.secondaryContainer.tone(s),4.5):s.isDark?90:10,"tone"),background:p(s=>V.secondaryContainer,"background"),contrastCurve:new Le(4.5,7,11,21)});V.tertiary=ue.fromPalette({name:"tertiary",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?s.isDark?90:25:s.isDark?80:40,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(3,4.5,7,11),toneDeltaPair:p(s=>new Ri(V.tertiaryContainer,V.tertiary,15,"nearer",!1),"toneDeltaPair")});V.onTertiary=ue.fromPalette({name:"on_tertiary",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?s.isDark?10:90:s.isDark?20:100,"tone"),background:p(s=>V.tertiary,"background"),contrastCurve:new Le(4.5,7,11,21)});V.tertiaryContainer=ue.fromPalette({name:"tertiary_container",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>{if(pt(s))return s.isDark?60:49;if(!sl(s))return s.isDark?30:90;const t=Gv(s.tertiaryPalette.getHct(s.sourceColorHct.tone),s),i=s.tertiaryPalette.getHct(t);return NU.fixIfDisliked(i).tone},"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.tertiaryContainer,V.tertiary,15,"nearer",!1),"toneDeltaPair")});V.onTertiaryContainer=ue.fromPalette({name:"on_tertiary_container",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?s.isDark?0:100:sl(s)?ue.foregroundTone(V.tertiaryContainer.tone(s),4.5):s.isDark?90:10,"tone"),background:p(s=>V.tertiaryContainer,"background"),contrastCurve:new Le(4.5,7,11,21)});V.error=ue.fromPalette({name:"error",palette:p(s=>s.errorPalette,"palette"),tone:p(s=>s.isDark?80:40,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(3,4.5,7,11),toneDeltaPair:p(s=>new Ri(V.errorContainer,V.error,15,"nearer",!1),"toneDeltaPair")});V.onError=ue.fromPalette({name:"on_error",palette:p(s=>s.errorPalette,"palette"),tone:p(s=>s.isDark?20:100,"tone"),background:p(s=>V.error,"background"),contrastCurve:new Le(4.5,7,11,21)});V.errorContainer=ue.fromPalette({name:"error_container",palette:p(s=>s.errorPalette,"palette"),tone:p(s=>s.isDark?30:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.errorContainer,V.error,15,"nearer",!1),"toneDeltaPair")});V.onErrorContainer=ue.fromPalette({name:"on_error_container",palette:p(s=>s.errorPalette,"palette"),tone:p(s=>s.isDark?90:10,"tone"),background:p(s=>V.errorContainer,"background"),contrastCurve:new Le(4.5,7,11,21)});V.primaryFixed=ue.fromPalette({name:"primary_fixed",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>pt(s)?40:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.primaryFixed,V.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.primaryFixedDim=ue.fromPalette({name:"primary_fixed_dim",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>pt(s)?30:80,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.primaryFixed,V.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.onPrimaryFixed=ue.fromPalette({name:"on_primary_fixed",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>pt(s)?100:10,"tone"),background:p(s=>V.primaryFixedDim,"background"),secondBackground:p(s=>V.primaryFixed,"secondBackground"),contrastCurve:new Le(4.5,7,11,21)});V.onPrimaryFixedVariant=ue.fromPalette({name:"on_primary_fixed_variant",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>pt(s)?90:30,"tone"),background:p(s=>V.primaryFixedDim,"background"),secondBackground:p(s=>V.primaryFixed,"secondBackground"),contrastCurve:new Le(3,4.5,7,11)});V.secondaryFixed=ue.fromPalette({name:"secondary_fixed",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>pt(s)?80:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.secondaryFixed,V.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.secondaryFixedDim=ue.fromPalette({name:"secondary_fixed_dim",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>pt(s)?70:80,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.secondaryFixed,V.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.onSecondaryFixed=ue.fromPalette({name:"on_secondary_fixed",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>10,"tone"),background:p(s=>V.secondaryFixedDim,"background"),secondBackground:p(s=>V.secondaryFixed,"secondBackground"),contrastCurve:new Le(4.5,7,11,21)});V.onSecondaryFixedVariant=ue.fromPalette({name:"on_secondary_fixed_variant",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>pt(s)?25:30,"tone"),background:p(s=>V.secondaryFixedDim,"background"),secondBackground:p(s=>V.secondaryFixed,"secondBackground"),contrastCurve:new Le(3,4.5,7,11)});V.tertiaryFixed=ue.fromPalette({name:"tertiary_fixed",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?40:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.tertiaryFixed,V.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.tertiaryFixedDim=ue.fromPalette({name:"tertiary_fixed_dim",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?30:80,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.tertiaryFixed,V.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.onTertiaryFixed=ue.fromPalette({name:"on_tertiary_fixed",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?100:10,"tone"),background:p(s=>V.tertiaryFixedDim,"background"),secondBackground:p(s=>V.tertiaryFixed,"secondBackground"),contrastCurve:new Le(4.5,7,11,21)});V.onTertiaryFixedVariant=ue.fromPalette({name:"on_tertiary_fixed_variant",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?90:30,"tone"),background:p(s=>V.tertiaryFixedDim,"background"),secondBackground:p(s=>V.tertiaryFixed,"secondBackground"),contrastCurve:new Le(3,4.5,7,11)});var is;const KA=(is=class{static fromInt(t){const i=Pi.fromInt(t);return is.fromHct(i)}static fromHct(t){return new is(t.hue,t.chroma,t)}static fromHueAndChroma(t,i){return new is(t,i,is.createKeyColor(t,i))}constructor(t,i,n){this.hue=t,this.chroma=i,this.keyColor=n,this.cache=new Map}static createKeyColor(t,i){let n=Pi.from(t,i,50),r=Math.abs(n.chroma-i);for(let a=1;a<50;a+=1){if(Math.round(i)===Math.round(n.chroma))return n;const o=Pi.from(t,i,50+a),l=Math.abs(o.chroma-i);l<r&&(r=l,n=o);const c=Pi.from(t,i,50-a),h=Math.abs(c.chroma-i);h<r&&(r=h,n=c)}return n}tone(t){let i=this.cache.get(t);return i===void 0&&(i=Pi.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,i)),i}getHct(t){return Pi.fromInt(this.tone(t))}},d(is,"Ts"),is);p(KA,"TonalPalette");let nt=KA;function px(s){const t=sS(s),i=rS(s),n=aS(s),r=[t.toString(16),i.toString(16),n.toString(16)];for(const[a,o]of r.entries())o.length===1&&(r[a]="0"+o);return"#"+r.join("")}d(px,"_p");p(px,"hexFromArgb");function JA(s){s=s.replace("#","");const t=s.length===3,i=s.length===6,n=s.length===8;if(!t&&!i&&!n)throw new Error("unexpected hex "+s);let r=0,a=0,o=0;return t?(r=Un(s.slice(0,1).repeat(2)),a=Un(s.slice(1,2).repeat(2)),o=Un(s.slice(2,3).repeat(2))):i?(r=Un(s.slice(0,2)),a=Un(s.slice(2,4)),o=Un(s.slice(4,6))):n&&(r=Un(s.slice(2,4)),a=Un(s.slice(4,6)),o=Un(s.slice(6,8))),(255<<24|(r&255)<<16|(a&255)<<8|o&255)>>>0}d(JA,"$1");p(JA,"argbFromHex");function Un(s){return parseInt(s,16)}d(Un,"Fi");p(Un,"parseIntHex");function eE(s,t=!1){var i;const n=(i=s.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+\.{0,1}\d*))?\)$/))==null?void 0:i.slice(1).map((c,h)=>h===3?Math.round(parseFloat(c)*255):parseFloat(c));if(!n)throw new Error("Could not parse rgba color.");const[r,a,o,l]=n;return((t?255:l&255)<<24|(r&255)<<16|(a&255)<<8|o&255)>>>0}d(eE,"C1");p(eE,"argbFromRgba");function tE(s){ii();const t=document.createElement("wy-compute-styles");t.setAttribute("style",`color: ${s} !important;`),document.documentElement.append(t);const i=window.getComputedStyle(t).color;return t.remove(),i}d(tE,"k1");p(tE,"getComputedColor");function tv(s){return getComputedStyle(s).getPropertyValue("--wy-theme-color")||void 0}d(tv,"vh");p(tv,"getCSSThemeColor");function iE(s,t){let i=tv(s);const n=new MutationObserver(()=>{const o=tv(s);o!==i&&(i=o,t(o))}),r={attributes:!0,attributeFilter:["class","style"]};let a=s;for(;a&&a!==document;)n.observe(a,r),a=a.parentNode;return()=>n.disconnect()}d(iE,"_1");p(iE,"observeCSSThemeColor");function iv(){var s;return ii(),((s=Array.from(document.head.querySelectorAll("meta[name='theme-color']")).filter(t=>{var i;const n=t.getAttribute("media");return!n||((i=window.matchMedia(n))==null?void 0:i.matches)}).pop())==null?void 0:s.getAttribute("content"))||void 0}d(iv,"gh");p(iv,"getMetaThemeColor");function nE(s){ii();const t=Array.from(document.head.querySelectorAll("meta[name='theme-color']"));if(!t)return()=>{};let i=iv();const n=p(()=>{const l=iv();l!==i&&(i=l,s(l))},"checkChangedColor"),r=new MutationObserver(n),a={attributes:!0,attributeFilter:["content"]},o=[];return t.forEach(l=>{r.observe(l,a);const c=l.getAttribute("media");if(c){const h=window.matchMedia(c);h.addEventListener("change",n),o.push(h)}}),()=>{r.disconnect(),o.forEach(l=>l.removeEventListener("change",n))}}d(nE,"M1");p(nE,"observeMetaThemeColor");const Uy=[],HU=16;function sE(s,t=!1){var i;if(Uy.some(R=>R.seedColor===s)){const R=(i=Uy.find(z=>z.seedColor===s))==null?void 0:i.colors;if(R)return R}const n=[];t&&n.push(`--wy-theme-color:${s};`);let r=s;!s.startsWith("#")&&!s.startsWith("rgb")&&(r=tE(s));const a=s.startsWith("#")?JA(r):eE(r),o=Pi.fromInt(a),l=o.hue,c=o.chroma,h=Math.max(48,c),u=Math.min(h,84),f=360/16,y=27.4,w=-8,g=(l+360-y-w+f/2)%f+y+w-f/2,O={primary:nt.fromHueAndChroma(l,h),secondary:nt.fromHueAndChroma(l,h/3),tertiary:nt.fromHueAndChroma(l+60,h/2),neutral:nt.fromHueAndChroma(l,Math.min(c/12,4)),"neutral-variant":nt.fromHueAndChroma(l,Math.min(c/6,8)),error:nt.fromHueAndChroma(g,84),warning:nt.fromHueAndChroma(g+4*f,u),red:nt.fromHueAndChroma(g,u),"deep-orange":nt.fromHueAndChroma(g+1*f,u),orange:nt.fromHueAndChroma(g+2*f,u),amber:nt.fromHueAndChroma(g+3*f,u),yellow:nt.fromHueAndChroma(g+4*f,u),lime:nt.fromHueAndChroma(g+5*f,u),"light-green":nt.fromHueAndChroma(g+6*f,u),green:nt.fromHueAndChroma(g+7*f,u),teal:nt.fromHueAndChroma(g+8*f,u),cyan:nt.fromHueAndChroma(g+9*f,u),"light-blue":nt.fromHueAndChroma(g+10*f,u),blue:nt.fromHueAndChroma(g+11*f,u),indigo:nt.fromHueAndChroma(g+12*f,u),"deep-purple":nt.fromHueAndChroma(g+13*f,u),purple:nt.fromHueAndChroma(g+14*f,u),pink:nt.fromHueAndChroma(g+15*f,u),gray:nt.fromHueAndChroma(l,4)},x={99:99,95:95,90:90,80:80,70:70,60:60,50:50,40:40,30:30,20:20,10:10},$={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 R in $){const z=$[R];for(const I in z){const q=px(O[R].tone(z[I]));n.push(`--wy-${R}-${I}:${q};`)}}const C={light:O.primary.tone(40),dark:O.primary.tone(80)},A={light:O.neutral.tone(99),dark:O.neutral.tone(10)},E={"surface-1":{light:Vn.cam16Ucs(A.light,C.light,.05),dark:Vn.cam16Ucs(A.dark,C.dark,.05)},"surface-2":{light:Vn.cam16Ucs(A.light,C.light,.08),dark:Vn.cam16Ucs(A.dark,C.dark,.08)},"surface-3":{light:Vn.cam16Ucs(A.light,C.light,.11),dark:Vn.cam16Ucs(A.dark,C.dark,.11)},"surface-4":{light:Vn.cam16Ucs(A.light,C.light,.12),dark:Vn.cam16Ucs(A.dark,C.dark,.12)},"surface-5":{light:Vn.cam16Ucs(A.light,C.light,.14),dark:Vn.cam16Ucs(A.dark,C.dark,.14)}};for(const R in E){const z=E[R];for(const I in z){const q=px(z[I]);n.push(`--wy-${R}-${I}:${q};`)}}return Uy.unshift({seedColor:s,colors:n}),Uy.length=Math.min(Uy.length,HU),n}d(sE,"P1");p(sE,"generateThemeColors");const YU=p(s=>{if(ii(),jv)document.adoptedStyleSheets=s.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of s){const i=document.createElement("style"),n=global.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=t.cssText,(document.head||document.documentElement).appendChild(i)}},"adoptGlobalStyles"),Ni=Re`.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)}`,GU=Re`@property --wy-component-color{syntax: \"<color>\"; inherits: true; initial-value: currentColor;}@property --wy-component-background-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}`,KU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),YU([GU,Ni])}},d(i,"t"),i),p(t,"WeavyStyles"),t},"WeavyStylesMixin"),JU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this.version=Ct.version,this.whenUrl().then(()=>{this.isDestroyed||this.checkVersion()})}async checkVersion(r=this.version){var a,o;await this.whenUrl(),this.networkStateIsPending=!0;let l;try{if(l=await fetch(new URL("/version",this.url),await this.fetchOptions({},!1)),!l.ok)throw new Error("Could not verify environment version.");this.networkStateIsPending=!1,this.serverState="ok"}catch(h){this.networkStateIsPending=!1,this.serverState="unreachable",console.warn("Could not check version: "+h.toString());return}const c=await l.text();if(c.startsWith("v")&&(!r||!c||r!==c))try{const h=r.split(".").slice(0,2),u=c.split(".").slice(0,2);if(h[0]!==u[0])throw new Error;h[1]!==u[1]&&console.warn(`Version inconsistency: ${Ct.sourceName}@${this.version} ≠ ${(a=this.url)==null?void 0:a.hostname}@${c}`)}catch{throw new Error(`Version mismatch! ${Ct.sourceName}@${this.version} ≠ ${(o=this.url)==null?void 0:o.hostname}@${c}`)}}},d(i,"t"),i),p(t,"WeavyVersion"),t},"WeavyVersionMixin");var MO,bu;let rE=(MO=(bu=class extends Event{constructor(t,i,n,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=i,this.callback=n,this.subscribe=r??!1}},d(bu,"wn"),bu),p(MO,"s"),MO);var TO,Ou;let Yr=(TO=(Ou=class{constructor(t,i,n,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(a,o)=>{this.unsubscribe&&(this.unsubscribe!==o&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=a,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(a,o)),this.unsubscribe=o},this.host=t,i.context!==void 0){const a=i;this.context=a.context,this.callback=a.callback,this.subscribe=a.subscribe??!1}else this.context=i,this.callback=n,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new rE(this.context,this.host,this.t,this.subscribe))}},d(Ou,"fn"),Ou),p(TO,"s"),TO);var RO,$u;let ej=(RO=($u=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,i=!1){const n=i||!Object.is(t,this.o);this.o=t,n&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[i,{disposer:n}]of this.subscriptions)i(this.o,n)},t!==void 0&&(this.value=t)}addCallback(t,i,n){if(!n)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:p(()=>{this.subscriptions.delete(t)},"disposer"),consumerHost:i});const{disposer:r}=this.subscriptions.get(t);t(this.value,r)}clearCallbacks(){this.subscriptions.clear()}},d($u,"mn"),$u),p(RO,"s"),RO);var AO,xu;let tj=(AO=(xu=class extends Event{constructor(t,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=i}},d(xu,"vn"),xu),p(AO,"e"),AO);var EO,ku;let fx=(EO=(ku=class extends ej{constructor(t,i,n){var r,a;super(i.context!==void 0?i.initialValue:n),this.onContextRequest=o=>{if(o.context!==this.context)return;const l=o.contextTarget??o.composedPath()[0];l!==this.host&&(o.stopPropagation(),this.addCallback(o.callback,l,o.subscribe))},this.onProviderRequest=o=>{if(o.context!==this.context||(o.contextTarget??o.composedPath()[0])===this.host)return;const l=new Set;for(const[c,{consumerHost:h}]of this.subscriptions)l.has(c)||(l.add(c),h.dispatchEvent(new rE(this.context,h,c,!0)));o.stopPropagation()},this.host=t,i.context!==void 0?this.context=i.context:this.context=i,this.attachListeners(),(a=(r=this.host).addController)==null||a.call(r,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new tj(this.context,this.host))}},d(ku,"gn"),ku),p(EO,"i"),EO);function ha({context:s}){return(t,i)=>{const n=new WeakMap;if(typeof i=="object")return i.addInitializer(function(){n.set(this,new fx(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var a;return(a=n.get(this))==null||a.setValue(r),t.set.call(this,r)},init(r){var a;return(a=n.get(this))==null||a.setValue(r),r}};{t.constructor.addInitializer(o=>{n.set(o,new fx(o,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,i);let a;if(r===void 0){const o=new WeakMap;a={get(){return o.get(this)},set(l){n.get(this).setValue(l),o.set(this,l)},configurable:!0,enumerable:!0}}else{const o=r.set;a={...r,set(l){n.get(this).setValue(l),o==null||o.call(this,l)}}}return void Object.defineProperty(t,i,a)}}}d(ha,"pr");p(ha,"e$7");function St({context:s,subscribe:t}){return(i,n)=>{typeof n=="object"?n.addInitializer(function(){new Yr(this,{context:s,callback:p(r=>{i.set.call(this,r)},"callback"),subscribe:t})}):i.constructor.addInitializer(r=>{new Yr(r,{context:s,callback:p(a=>{r[n]=a},"callback"),subscribe:t})})}}d(St,"te");p(St,"c$2");var Su;const aE=(Su=class extends Event{constructor(t,i,n,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=i,this.callback=n,this.subscribe=r??!1}},d(Su,"Hu"),Su);p(aE,"ContextRequestEvent");let ij=aE;var Pu;const oE=(Pu=class extends Event{constructor(t,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=i}},d(Pu,"Vu"),Pu);p(oE,"ContextProviderEvent");let nj=oE;var Cu;const lE=(Cu=class extends fx{constructor(t,i,n){i.context!==void 0?super(t,i):super(t,i,n),i.context!==void 0?this._context=i.context:this._context=i,this.isAttached=!0,this.host instanceof J||this.dispatchWhenConnected()}dispatchWhenConnected(){this.isAttached&&(this.host.isConnected?this.host.dispatchEvent(new nj(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)}},d(Cu,"Bu"),Cu);p(lE,"WyContextProvider");let cE=lE;const zt=Symbol.for("weavy-client");function hE(s,t){return ii(),new cE(s,{context:zt,initialValue:t})}d(hE,"I1");p(hE,"createWeavyContextProvider");const Zi=Ov()?hE(document.documentElement):void 0,sj=p(s=>{var n;var t,i;return i=(n=class extends s{constructor(...a){super(...a),j(this,t),this.host!==document.documentElement?(Zi==null||Zi.detachListeners(),D(this,t,new cE(this.host,{context:zt,initialValue:this}))):Zi==null||Zi.setValue(this)}updateContext(){var a;this.host!==document.documentElement?(a=S(this,t))==null||a.updateObservers():Zi==null||Zi.updateObservers()}destroy(){var a;super.destroy(),this.host!==document.documentElement?(a=S(this,t))==null||a.detachListeners():(Zi==null?void 0:Zi.value)===this&&(Zi==null||Zi.setValue(void 0))}},d(n,"i"),n),t=new WeakMap,p(i,"WeavyContextProvider"),i},"WeavyContextProviderMixin");var Wg,Vg,rr,rm,Gt;const am=(Gt=class{constructor(t){j(this,Wg),j(this,Vg),j(this,rr),j(this,rm),this.weavySid=Vf(),this.weavyId=`${Gt.sourceName}#${this.weavySid}`,this.cloudFilePickerUrl=Gt.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=Gt.defaults.disableEnvironmentImports,this.gcTime=Gt.defaults.gcTime,this.scrollBehavior=Gt.defaults.scrollBehavior,this.staleTime=Gt.defaults.staleTime,this.tokenFactoryRetryDelay=Gt.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=Gt.defaults.tokenFactoryTimeout,D(this,Vg,new Promise(n=>{D(this,Wg,n)})),D(this,rm,!1),console.info(`${Gt.sourceName}@${Gt.version} #${this.weavySid}`),ii(),this.host=document.documentElement;const i={};for(const n in t){const r=n;t[r]!==void 0&&Object.assign(i,{[r]:t[r]})}i!=null&&i.host&&(this.host=i.host,delete i.host),Object.assign(this,i)}async whenUrl(){await S(this,Vg)}get url(){return S(this,rr)}set url(t){var i;if(this.isDestroyed)throw new kt;try{if(typeof t=="string")t&&D(this,rr,new URL(t,window.location.toString()));else if(t instanceof URL)D(this,rr,t||void 0);else if(t==null)D(this,rr,void 0);else throw-1}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),S(this,rr)&&((i=S(this,Wg))==null||i.call(this,S(this,rr)))}get cachePrefix(){return`${Gt.version}:${this.url}`}get isDestroyed(){return S(this,rm)}destroy(){D(this,rm,!0),console.info(this.weavyId,"was destroyed")}},d(Gt,"ue"),Gt);Wg=new WeakMap,Vg=new WeakMap,rr=new WeakMap,rm=new WeakMap,p(am,"WeavyClient"),am.version="27.1.0",am.sourceName="@weavy/uikit-web",am.defaults={cloudFilePickerUrl:"https://filebrowser.weavy.io/v14/",disableEnvironmentImports:!1,gcTime:1e3*60*60*24,locale:PA,notificationEvents:!1,scrollBehavior:"auto",staleTime:1e3*1,tokenFactoryRetryDelay:2e3,tokenFactoryTimeout:2e4,notifications:"button-list",notificationsBadge:"count",reactions:"😍 😎 😉 😜 👍"};let Ct=am;var Qu;const dE=(Qu=class extends sj(zU(UU(WU(IU(VU(_U(qU(JU(ZU(KU(jU(Ct)))))))))))){},d(Qu,"Uu"),Qu);p(dE,"Weavy");let wt=dE;var Mu;const uE=(Mu=class{constructor(t,i,n,r,a){var o,l;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this._callback=(c,h)=>{this.unsubscribe&&(this.unsubscribe!==h&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=c,this.host.requestUpdate(),(!this.provided||this.subscribe)&&(this.provided=!0,this.callback&&this.callback(c,h)),this.unsubscribe=h},this.host=t,i.context!==void 0){const c=i;this.context=c.context,this.callback=c.callback,this.subscribe=c.subscribe??!1,this.ref=c.ref??t}else this.context=i,this.callback=n,this.subscribe=r??!1,this.ref=a??t;(l=(o=this.host).addController)==null||l.call(o,this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.ref.dispatchEvent(new ij(this.context,this.host,this._callback,this.subscribe))}},d(Mu,"qu"),Mu);p(uE,"ContextConsumer");let rj=uE;var Tu;const pE=(Tu=class{constructor(t,i,n){this.whenRef=new Promise(r=>this.resolveRef=r),t.addController(this),this.host=t,this.ref=n,this.setContext(i)}get ref(){return this._ref}set ref(t){var i;this._ref=t,t&&((i=this.resolveRef)==null||i.call(this,t))}async setContext(t){this.whenContext=new Promise(n=>this.resolveContext=n);const i=await this.whenRef;this.context=new rj(this.host,{context:t,subscribe:!0,callback:p((n,r)=>{var a;(a=this.resolveContext)==null||a.call(this,n),this.host.requestUpdate()},"callback"),ref:i}),await Bx(i),this.context.dispatchRequest()}hostUpdate(){var t,i;(t=this.context)!=null&&t.value&&((i=this.resolveContext)==null||i.call(this,this.context.value))}},d(Tu,"Nu"),Tu);p(pE,"ContextController");let aj=pE;const oj={attribute:!0,type:String,converter:D1,reflect:!1,hasChanged:I5},lj=p((s=oj,t,i)=>{const{kind:n,metadata:r}=i;let a=globalThis.litPropertyMetadata.get(r);if(a===void 0&&globalThis.litPropertyMetadata.set(r,a=new Map),a.set(i.name,s),n==="accessor"){const{name:o}=i;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(o,c,s)},init(l){return l!==void 0&&this.P(o,void 0,s),l}}}if(n==="setter"){const{name:o}=i;return function(l){const c=this[o];t.call(this,l),this.requestUpdate(o,c,s)}}throw Error("Unsupported decorator location: "+n)},"r$3");function k(s){return(t,i)=>typeof i=="object"?lj(s,t,i):((n,r,a)=>{const o=r.hasOwnProperty(a);return r.constructor.createProperty(a,o?{...n,wrapped:!0}:n),o?Object.getOwnPropertyDescriptor(r,a):void 0})(s,t,i)}d(k,"w");p(k,"n$3");function X(s){return k({...s,state:!0,attribute:!1})}d(X,"B");p(X,"r$2");const cj=p((s,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(s,t,i),i),"e$6");function fE(s){return(t,i)=>{const{slot:n,selector:r}=s??{},a="slot"+(n?`[name=${n}]`:":not([name])");return cj(t,i,{get(){var o;const l=(o=this.renderRoot)==null?void 0:o.querySelector(a),c=(l==null?void 0:l.assignedElements(s))??[];return r===void 0?c:c.filter(h=>h.matches(r))}})}}d(fE,"V1");p(fE,"o$6");var Dg,Ru;const yE=(Ru=class{constructor(t){j(this,Dg),this.notifications=Ct.defaults.notifications,this.notificationsBadge=Ct.defaults.notificationsBadge,this.reactions=Ct.defaults.reactions,D(this,Dg,t),Object.keys(this).forEach(i=>{i in t&&Object.assign(this,{[i]:t[i]})})}get component(){return S(this,Dg)}},d(Ru,"ju"),Ru);Dg=new WeakMap,p(yE,"WeavyComponentSettings");let $C=yE;const mE=Symbol.for("weavy-component-settings");var Au;const wE=(Au=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(i=>this.resolveContext=i),this.whenQueryClient=new Promise(i=>this.resolveQueryClient=i),this.setContext()}async setContext(){await tl(this.host),this.context=new Yr(this.host,{context:zt,subscribe:!0,callback:p(t=>{var i,n;t&&((i=this.resolveContext)==null||i.call(this,t),this.queryClient=t.queryClient,(n=this.resolveQueryClient)==null||n.call(this,t.queryClient))},"callback")})}async trackQuery(t,i=!0){var n;const r=await this.whenQueryClient;if(!r)throw new Error("No QueryClient provided");(n=this.observerUnsubscribe)==null||n.call(this);const a=new rA(r,t);this.observer=a,this.observerSubscribe(i)}observerSubscribe(t=!0){var i;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 r=cy(this.result,this.observer.getCurrentResult());r!==this._result&&(this._result=r,this.host.requestUpdate())}}),this.observer.updateResult(),this.host.requestUpdate();let n;t?n=this.observer.fetchOptimistic(this.observer.options):n=(i=this.queryClient.getQueryCache().get(this.observer.options.queryHash))==null?void 0:i.promise,n==null||n.catch(()=>{}).finally(()=>{var r;(r=this.observer)==null||r.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)}},d(Au,"Wu"),Au);p(wE,"QueryController");let ji=wE;const lS=Symbol.for("weavy-app"),Kv=Symbol.for("weavy-user");var Z=(s=>(s.Attachments="attachments",s.Bots="bots",s.CloudFiles="cloud_files",s.ContextData="context_data",s.Comments="comments",s.Embeds="embeds",s.GoogleMeet="google_meet",s.Meetings="meetings",s.Mentions="mentions",s.MicrosoftTeams="microsoft_teams",s.Polls="polls",s.Previews="previews",s.Reactions="reactions",s.Receipts="receipts",s.Thumbnails="thumbnails",s.Typing="typing",s.Versions="versions",s.WebDAV="web_dav",s.ZoomMeetings="zoom_meetings",s))(Z||{});const cS=Symbol.for("weavy-features");var za,dc,Ss,Eo;const gE=(Eo=class{constructor(t,i){j(this,za),j(this,dc),j(this,Ss),D(this,za,Object.keys(t)),D(this,dc,Object.entries(t).reduce((n,[r,a])=>(a&&n.push(r),n),[])),D(this,Ss,i??S(this,dc))}features(){return S(this,za)}supportedFeature(...t){return t.every(i=>S(this,za).includes(i))}allowedFeatures(){return S(this,Ss)}allowsFeature(...t){return t.every(i=>this.supportedFeature(i)?S(this,Ss).includes(i):!1)}allowsAnyFeature(...t){return t.some(i=>this.supportedFeature(i)?S(this,Ss).includes(i):!1)}setAllowedFeatures(t){return D(this,Ss,typeof t=="string"?hS(t,S(this,za)):S(this,dc)),S(this,Ss)}immutable(){const t=Jv(S(this,za),S(this,dc));return new Eo(t,S(this,Ss))}},d(Eo,"Ol"),Eo);za=new WeakMap,dc=new WeakMap,Ss=new WeakMap,p(gE,"ComponentFeatures");let $n=gE;function hS(s,t){return s.split(" ").filter(i=>{if(i){if(t.includes(i))return!0;console.warn("Unknown feature provided:",i)}return!1})}d(hS,"aw");p(hS,"featureListFromString");function Jv(s,t){return t??(t=s),Object.fromEntries(s.map(i=>[i,t.includes(i)]))}d(Jv,"cu");p(Jv,"featureConfigFromList");const yx=Object.values(Z),vE=Symbol.for("weavy-link"),bE=Symbol.for("weavy-bot-user");var hj=Object.defineProperty,dj=Object.getOwnPropertyDescriptor,jt=p((s,t,i,n)=>{for(var r=n>1?void 0:n?dj(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&hj(t,i,r),r},"__decorateClass$19"),qg,Ug,jg,om,lm,Bg,Fg,Xg,Ng,cm,hm,Hg,Yg,Gg,Kg,Jg,e1,_a,uc,Ps,Eu;const OE=(Eu=class extends J{constructor(){super(),j(this,qg),j(this,Ug),j(this,jg),j(this,om),j(this,lm),j(this,Bg),j(this,Fg),j(this,Xg),j(this,Ng),j(this,cm),j(this,hm),j(this,Hg),j(this,Yg),j(this,Gg),j(this,Kg),j(this,Jg),j(this,e1),j(this,_a),j(this,uc),j(this,Ps),this.storage=FR("localStorage"),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(Fx)&&this.matchesLink(t.detail.link)&&t.preventDefault()},D(this,lm,new Promise(t=>{D(this,om,t)})),D(this,Fg,new Promise(t=>{D(this,Bg,t)})),D(this,Ng,new Promise(t=>{D(this,Xg,t)})),D(this,hm,new Promise(t=>{D(this,cm,t)})),D(this,Yg,new Promise(t=>{D(this,Hg,t)})),D(this,Kg,new Promise(t=>{D(this,Gg,t)})),D(this,e1,new Promise(t=>{D(this,Jg,t)})),D(this,_a,new ji(this)),D(this,uc,new ji(this)),D(this,Ps,new ji(this)),this.settings=new $C(this)}reset(){this.app=void 0,this.name=this._initialAppName}matchesLink(t){var i,n,r;return(i=t==null?void 0:t.app)!=null&&i.type&&!this.componentType&&(n=this.appTypes)!=null&&n.includes(t.app.type)?t.bot?t.bot===this.bot:!0:!!(t&&t.app&&this.componentType!==nn.Unknown&&(this.uid&&((r=t.app)==null?void 0:r.uid)===this.uid||this.bot&&t.app.type===this.componentType&&t.bot===this.bot))}get link(){return this._link}set link(t){const i=this._link;!this.uid&&this.componentType&&this.componentType!==nn.Unknown?this.whenApp().then(()=>{this._link=this.matchesLink(t)?t:void 0,this.requestUpdate("link",i)}):(this._link=this.matchesLink(t)?t:void 0,this.requestUpdate("link",i))}clearLink(){this.link&&(D(this,hm,new Promise(t=>{D(this,cm,t)})),this.link=void 0)}provideStorageLink(t){var i;(i=this.storage)==null||i.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 i=JSON.parse(atob(t));i&&(this.link=i)}catch(i){console.error("Error parsing link",i)}}consumeStorageLink(){var t;(t=this.storage)==null||t.removeItem("wy-link")}get bot(){return this._bot}set bot(t){this._bot=t||void 0}set name(t){this._initialAppName??(this._initialAppName=t),this._appName=t}get name(){return this._appName}set notifications(t){D(this,qg,t)}get notifications(){var t;return S(this,qg)??((t=this.weavy)==null?void 0:t.notifications)??Ct.defaults.notifications}set notificationsBadge(t){D(this,Ug,t)}get notificationsBadge(){var t;return S(this,Ug)??((t=this.weavy)==null?void 0:t.notificationsBadge)??Ct.defaults.notificationsBadge}set reactions(t){D(this,jg,t)}get reactions(){var t;return S(this,jg)??((t=this.weavy)==null?void 0:t.reactions)??Ct.defaults.reactions}async whenApp(){return await S(this,lm)}async whenBotUser(){return await S(this,Fg)}async whenComponentFeatures(){return await S(this,Ng)}async whenLink(){return await S(this,hm)}async whenSettings(){return await S(this,Yg)}async whenUser(){return await S(this,Kg)}async whenWeavy(){return await S(this,e1)}connectedCallback(){super.connectedCallback(),document.addEventListener("wy-link",this.linkEventHandler),window.addEventListener("storage",this.storageLinkHandler),this.app&&this.requestUpdate("app"),this.botUser&&this.requestUpdate("botUser"),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")}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 tl(this),super.scheduleUpdate()}willUpdate(t){var i,n,r,a,o,l,c,h,u,f,y,w,g,O,x,$,C,A,E;super.willUpdate(t),this.weavyContextConsumer??(this.weavyContextConsumer=new Yr(this,{context:zt,subscribe:!0})),(i=this.weavyContextConsumer)!=null&&i.value&&this.weavy!==((n=this.weavyContextConsumer)==null?void 0:n.value)&&(this.weavy=(r=this.weavyContextConsumer)==null?void 0:r.value);const R=Object.keys(this.settings);if((t.has("weavy")||R.find(z=>t.has(z)))&&(this.settings=new $C(this)),t.has("weavy")&&this.weavy&&S(this,Ps).trackQuery(Hr(this.weavy,["user"])),(a=S(this,Ps).result)!=null&&a.isPending||this.user&&S(this,Ps).result.data&&this.user.id!==S(this,Ps).result.data.id&&(console.warn("User changed, invalidating cache"),(o=this.weavy)==null||o.queryClient.invalidateQueries()),(l=S(this,Ps).result)!=null&&l.isPending||(this.user=(c=S(this,Ps).result)==null?void 0:c.data),t.has("features")&&this.componentFeatures&&(this.componentFeatures.setAllowedFeatures(this.features),this.componentFeatures instanceof $n&&(this.componentFeatures=this.componentFeatures.immutable())),(t.has("autoUid")||t.has("user")||t.has("bot"))&&this.autoUid&&this.user&&(this.componentType&&mx.has(this.componentType)&&this.bot||this.componentType&&!mx.has(this.componentType))){const z=[this.autoUid];this.bot&&z.push(this.bot),this.user&&z.push(this.user.uid||this.user.id),this.uid=z.join("-")}if(t.has("componentType")||t.has("uid")||t.has("bot")||t.has("name")||t.has("weavy"))if(D(this,lm,new Promise(z=>{D(this,om,z)})),this.componentType&&this.uid&&this.weavy){const z=this.name?{name:this.name}:void 0,I=this.bot?[this.bot]:void 0;S(this,_a).trackQuery(bA(this.weavy,this.uid,this.componentType,I,z))}else S(this,_a).untrackQuery(),this.reset();if(!((h=S(this,_a).result)!=null&&h.isPending)&&(this.app=(u=S(this,_a).result)==null?void 0:u.data,(f=this.app)!=null&&f.name)){const z=this.name;this._appName=this.app.name,this.requestUpdate("name",z)}if((t.has("weavy")||t.has("bot"))&&this.weavy&&this.bot&&S(this,uc).trackQuery(Hr(this.weavy,["users",this.bot])),(y=S(this,uc).result)!=null&&y.isPending||(this.botUser=(w=S(this,uc).result)==null?void 0:w.data),t.has("uid")&&(this.uid||t.get("uid"))&&this.uid!==t.get("uid")&&this.clearLink(),(!this.link&&(t.has("uid")&&this.uid||t.has("app")&&this.app)&&this.componentType&&this.componentType!==nn.Unknown||(t.has("appTypes")||t.has("bot"))&&this.appTypes)&&this.readStorageLink(),t.has("link")&&this.link&&(console.info(`Opening notification link in ${this.uid??dS.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&&((g=S(this,om))==null||g.call(this,this.app)),t.has("botUser")&&this.botUser&&((O=S(this,Bg))==null||O.call(this,this.botUser)),t.has("componentFeatures")&&this.componentFeatures&&((x=S(this,Xg))==null||x.call(this,this.componentFeatures)),t.has("link")&&this.link&&(($=S(this,cm))==null||$.call(this,this.link)),t.has("settings")&&this.settings&&((C=S(this,Hg))==null||C.call(this,this.settings)),t.has("user")&&this.user&&((A=S(this,Gg))==null||A.call(this,this.user)),t.has("weavy")&&this.weavy&&(this.weavy.host.addEventListener("wy-notification",this.notificationEventHandler,{capture:!0}),(E=S(this,Jg))==null||E.call(this,this.weavy))}},d(Eu,"Qu"),Eu);qg=new WeakMap,Ug=new WeakMap,jg=new WeakMap,om=new WeakMap,lm=new WeakMap,Bg=new WeakMap,Fg=new WeakMap,Xg=new WeakMap,Ng=new WeakMap,cm=new WeakMap,hm=new WeakMap,Hg=new WeakMap,Yg=new WeakMap,Gg=new WeakMap,Kg=new WeakMap,Jg=new WeakMap,e1=new WeakMap,_a=new WeakMap,uc=new WeakMap,Ps=new WeakMap,p(OE,"WeavyComponent");let Xe=OE;jt([X()],Xe.prototype,"weavy",2);jt([ha({context:lS}),X()],Xe.prototype,"app",2);jt([ha({context:bE}),X()],Xe.prototype,"botUser",2);jt([ha({context:cS}),X()],Xe.prototype,"componentFeatures",2);jt([ha({context:mE}),X()],Xe.prototype,"settings",2);jt([ha({context:Kv}),X()],Xe.prototype,"user",2);jt([k({attribute:!0})],Xe.prototype,"autoUid",2);jt([ha({context:vE})],Xe.prototype,"_link",2);jt([k({type:Object})],Xe.prototype,"link",1);jt([X()],Xe.prototype,"componentType",2);jt([X()],Xe.prototype,"appTypes",2);jt([k()],Xe.prototype,"features",2);jt([k({type:String})],Xe.prototype,"bot",1);jt([k({type:String})],Xe.prototype,"uid",2);jt([k({type:String})],Xe.prototype,"name",1);jt([k({type:String})],Xe.prototype,"notifications",1);jt([k({type:String})],Xe.prototype,"notificationsBadge",1);jt([k({type:String})],Xe.prototype,"reactions",1);const dS=new Map(D5(yA)),$E=new Map(D5(mA)),mx=new Map(Object.entries(wA));new Map(Object.entries(gA));var uj=Object.defineProperty,Aa=p((s,t,i,n)=>{for(var r=void 0,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=o(t,i,r)||r);return r&&uj(t,i,r),r},"__decorateClass$18");const ct=p(s=>{var $;var t,i,n,r,a,o,l,c,h,u,f,y,w,g;const O=($=class extends s{constructor(...A){super(...A),j(this,t),j(this,i,new Promise(E=>{D(this,t,E)})),j(this,n),j(this,r,new Promise(E=>{D(this,n,E)})),j(this,a),j(this,o,new Promise(E=>{D(this,a,E)})),j(this,l),j(this,c,new Promise(E=>{D(this,l,E)})),j(this,h),j(this,u,new Promise(E=>{D(this,h,E)})),j(this,f),j(this,y,new Promise(E=>{D(this,f,E)})),j(this,w),j(this,g,new Promise(E=>{D(this,w,E)}))}async whenApp(){return await S(this,i)}async whenBotUser(){return await S(this,r)}async whenComponentFeatures(){return await S(this,o)}async whenLink(){return await S(this,c)}async whenSettings(){return await S(this,u)}async whenUser(){return await S(this,y)}async whenWeavy(){return await S(this,g)}willUpdate(A){var E,R,z,I,q,B,ne;super.willUpdate(A),A.has("app")&&this.app&&((E=S(this,t))==null||E.call(this,this.app)),A.has("botUser")&&this.botUser&&((R=S(this,n))==null||R.call(this,this.botUser)),A.has("componentFeatures")&&this.componentFeatures&&((z=S(this,a))==null||z.call(this,this.componentFeatures)),A.has("link")&&this.link&&((I=S(this,l))==null||I.call(this,this.link)),A.has("settings")&&this.settings&&((q=S(this,h))==null||q.call(this,this.settings)),A.has("user")&&this.user&&((B=S(this,f))==null||B.call(this,this.user)),A.has("weavy")&&this.weavy&&((ne=S(this,w))==null||ne.call(this,this.weavy))}connectedCallback(){super.connectedCallback(),this.app&&this.requestUpdate("app"),this.botUser&&this.requestUpdate("botUser"),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")}},d($,"z"),$);t=new WeakMap,i=new WeakMap,n=new WeakMap,r=new WeakMap,a=new WeakMap,o=new WeakMap,l=new WeakMap,c=new WeakMap,h=new WeakMap,u=new WeakMap,f=new WeakMap,y=new WeakMap,w=new WeakMap,g=new WeakMap,p(O,"WeavyComponentConsumer");let x=O;return Aa([St({context:lS,subscribe:!0}),X()],x.prototype,"app"),Aa([St({context:bE,subscribe:!0}),X()],x.prototype,"botUser"),Aa([St({context:cS,subscribe:!0}),X()],x.prototype,"componentFeatures"),Aa([St({context:vE,subscribe:!0}),X()],x.prototype,"link"),Aa([St({context:mE,subscribe:!0}),X()],x.prototype,"settings"),Aa([St({context:Kv,subscribe:!0}),X()],x.prototype,"user"),Aa([St({context:zt,subscribe:!0}),X()],x.prototype,"weavy"),x},"WeavyComponentConsumerMixin");function xE(s){return typeof s=="string"&&s?s=eval==null?void 0:(0,eval)(`"use strict";(${s})`):s=void 0,s}d(xE,"j1");p(xE,"indirectEvalObject");function Qw(s){if(s)try{return new URL(s,window.location.toString())}catch{console.warn("Invalid url: ",s)}}d(Qw,"Ll");p(Qw,"toUrl");const Y=p(s=>(t,i)=>{i!==void 0?i.addInitializer(()=>{!customElements.get(s)&&customElements.define(s,t)}):!customElements.get(s)&&customElements.define(s,t)},"customElement"),me=Re`@charset \"UTF-8\";:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]){box-sizing:border-box;text-align:initial;font-size:var(--wy-font-size, var(--wy-size, 1em))}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:before,:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:after{box-sizing:inherit}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a){text-decoration:var(--wy-link-decoration, none);color:var(--wy-link, var(--wy-primary-40, #006399))}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a):hover,:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a):hover{text-decoration:var(--wy-link-hover-decoration, unset)}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a):where(:not([href]):not([class])),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a):where(:not([href]):not([class])):hover,:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a):where(:not([href]):not([class])),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a):where(:not([href]):not([class])):hover{text-decoration:none}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(p),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(p){margin-top:0;margin-bottom:calc(1 * var(--wy-size, 1rem))}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(label),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(label){cursor:inherit}:where(:host([hidden])),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"])[hidden],:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *[hidden]{display:none!important}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where([role=button]),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where([role=button]){cursor:pointer}.wy-scroll-y{scroll-padding-top:var(--wy-scrollbar-adjust-top, 0);scroll-padding-bottom:var(--wy-scrollbar-adjust-bottom, 0)}.wy-scroll-y{overflow-y:auto;max-height:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}.wy-scroll-y:not(body){-webkit-overflow-scrolling:touch}.wy-scroll-y:not(.wy-scroll-x){overflow-x:hidden;touch-action:pan-y}.wy-scroll-x{overflow-x:auto;max-width:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}.wy-scroll-x:not(.wy-scroll-y){overflow-y:hidden;touch-action:pan-x}.wy-appbars{--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));background-color:var(--wy-component-background-color);box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 calc(-1 * var(--wy-border, 1px)) 0 0 inset}@supports (position: sticky){.wy-appbars{position:sticky;top:0;z-index:1020}}.wy-appbars>.wy-appbar,.wy-appbars>.wy-toolbar{background-color:transparent;box-shadow:none}.wy-appbar{--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));display:grid;align-items:center;justify-content:space-between;justify-items:center;height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));padding:calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));flex:0 0 var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));grid-template-columns:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) minmax(0,max-content) var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));column-gap:calc(2 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))) + var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));line-height:var(--wy-line-height, 1.5);background-color:var(--wy-component-background-color);color:var(--wy-component-color);box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 calc(-1 * var(--wy-border, 1px)) 0 0 inset}.wy-appbar .wy-badge{align-self:center}.wy-appbar-buttons,.wy-toolbar-buttons,.wy-appbar-section{display:flex;flex:0 0 auto;align-items:center;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));max-width:100%}.wy-appbar-buttons-first{justify-content:flex-start}.wy-appbar-buttons-last{justify-content:flex-end}.wy-toolbar-buttons-last{margin-inline-start:auto}.wy-appbar-text{max-width:100%;display:block;color:inherit!important;-webkit-user-select:none;user-select:none}.wy-appbar-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-appbar-text a,.wy-appbar-text a:hover{color:inherit}.wy-appbar-text-trashed{text-decoration:line-through}.wy-toolbars-bottom{position:absolute;z-index:1030;bottom:calc(var(--wy-footerbar-height, calc(4 * var(--wy-size, 1rem))) / 2);left:0;right:0;min-height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));display:flex;flex-direction:column;justify-content:center;justify-items:center}.wy-toolbar{--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;justify-items:center;min-height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));padding:calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));flex:1 0 var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));column-gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));line-height:var(--wy-line-height, 1.5);background-color:var(--wy-component-background-color);color:var(--wy-component-color);box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 calc(-1 * var(--wy-border, 1px)) 0 0 inset}.wy-toolbar-center{margin:0 auto;border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)))}.wy-toolbar-center .wy-input{text-align:center}.wy-toolbar-text{margin-left:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}[part~=wy-button]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399));color:var(--wy-component-color);background:var(--wy-component-background-color, transparent);height:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));font-family:var(--wy-button-font-family, var(--wy-font-family, unset)),inherit;font-size:var(--wy-button-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-button-font-weight, var(--wy-font-weight, unset));line-height:var(--wy-button-line-height, var(--wy-line-height, 1.5));text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;border:var(--wy-button-border-width, var(--wy-border-outline, 0)) solid var(--wy-outline, var(--wy-neutral-variant-50, #72777e));border-radius:var(--wy-button-border-radius, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));display:inline-flex;align-items:center;justify-content:center;gap:var(--wy-button-gap, var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))));position:relative}[part~=wy-button][part~=wy-button-sm]{height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .8);padding:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .25) calc(var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .5)}[part~=wy-button]:disabled{opacity:var(--wy-opacity-disabled, 38%);cursor:unset;pointer-events:none}[part~=wy-button-state-layer]>*{z-index:3}[part~=wy-button-state-layer]:before{content:\"\";z-index:2;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;background:var(--wy-component-color);opacity:0%}[part~=wy-button-state-layer]:hover:before{opacity:8%}[part~=wy-button-state-layer]:focus:before,[part~=wy-button-state-layer]:active:before,[part~=wy-button-state-layer][part~=wy-active]:before{opacity:12%}[part~=wy-button-icon]{--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));width:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));height:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));line-height:1;align-items:center;justify-content:center}[part~=wy-button-icon][part~=wy-button-sm]{height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);width:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);padding:0;margin:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .5)}[part~=wy-button-icon][part~=wy-button-sm][part~=wy-button-state-layer]:before{margin:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * -.1)}[part~=wy-button-icon][part~=wy-active]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399))}[part~=wy-button-icon-inline]{height:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));width:auto;min-width:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));background:var(--wy-component-background-color);color:currentColor;display:flex;padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))}[part~=wy-button-icon-inline][part~=wy-button-sm]{height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);min-width:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);padding:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .25);margin:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .5)}[part~=wy-button-icon-inline][part~=wy-button-sm][part~=wy-button-state-layer]:before{margin:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * -.1)}[part~=wy-button-inline]{border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));padding:calc(.5 * var(--wy-size, 1rem)) calc(.75 * var(--wy-size, 1rem));margin-inline:calc(-.25 * var(--wy-size, 1rem))}[part~=wy-button-primary]{--wy-component-background-color: var(--wy-primary, var(--wy-primary-40, #006399));--wy-component-color: var(--wy-on-primary, var(--wy-white, #ffffff))}[part~=wy-button-variant]{--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}[part~=wy-button-primary-text]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399))}[part~=wy-button-inherit-color]{--wy-component-color: currentColor}[part~=wy-button-no-color]{--wy-component-color: unset}[part=wy-button-link]{padding:0;color:var(--wy-link-color, var(--wy-primary, var(--wy-primary-40, #006399)));text-decoration:var(--wy-link-decoration, none)}[part=wy-button-link]:hover,[part=wy-button-link]:focus{text-decoration:var(--wy-link-hover-decoration, unset)}[part~=wy-buttons]{display:flex;align-items:center;flex-wrap:wrap;gap:calc(.5 * var(--wy-size, 1rem))}[part~=wy-buttons-reverse]{flex-direction:row-reverse}[part~=wy-buttons-floating]{position:sticky;padding:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) 0;top:0;height:0;margin-bottom:calc(-1 * var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));z-index:1030;--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}.wy-code pre,.wy-editor .cm-content pre,.wy-content pre{text-wrap:pretty}.wy-code .code,.wy-code code[class*=language-],.wy-code pre[class*=language-],.wy-editor .cm-content .code,.wy-content .code,.wy-editor .cm-content code[class*=language-],.wy-content code[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{color:var(--wy-code-text, var(--wy-code-text-light, #3b3b3b));font-family:var(--wy-font-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);text-align:left;white-space:pre-wrap;word-spacing:normal;word-break:normal;word-wrap:break-word;line-height:1.25;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}@media print{.wy-code code[class*=language-],.wy-code pre[class*=language-],.wy-editor .cm-content code[class*=language-],.wy-content code[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{text-shadow:none}}.wy-code pre[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}.wy-code :not(pre)>code[class*=language-],.wy-code pre[class*=language-],.wy-editor .cm-content :not(pre)>code[class*=language-],.wy-content :not(pre)>code[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{color:var(--wy-code-text, var(--wy-code-text-light, #3b3b3b));background:var(--wy-background, var(--wy-neutral-99, #fcfcff))}.wy-code :not(pre)>code[class*=language-],.wy-editor .cm-content :not(pre)>code[class*=language-],.wy-content :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.wy-code .token.variable,.wy-editor .cm-content .token.variable,.wy-content .token.variable{color:var(--wy-code-variable, var(--wy-code-variable-light, #001080))}.wy-code .token.operator,.wy-editor .cm-content .token.operator,.wy-content .token.operator{color:var(--wy-code-operator, var(--wy-code-operator-light, #000000))}.wy-code .token.prolog,.wy-editor .cm-content .token.prolog,.wy-content .token.prolog{color:var(--wy-code-prolog, var(--wy-code-prolog-light, #000080))}.wy-code .token.comment,.wy-editor .cm-content .token.comment,.wy-content .token.comment{color:var(--wy-code-comment, var(--wy-code-comment-light, #008000))}.wy-code .token.builtin,.wy-editor .cm-content .token.builtin,.wy-content .token.builtin{color:var(--wy-code-builtin, var(--wy-code-builtin-light, #0070C1))}.wy-code .token.number,.wy-editor .cm-content .token.number,.wy-content .token.number{color:var(--wy-code-number, var(--wy-code-number-light, #098658))}.wy-code .token.inserted,.wy-editor .cm-content .token.inserted,.wy-content .token.inserted{color:var(--wy-code-inserted, var(--wy-code-inserted-light, #098658))}.wy-code .token.constant,.wy-editor .cm-content .token.constant,.wy-content .token.constant{color:var(--wy-code-constant, var(--wy-code-constant-light, #811F3F))}.wy-code .token.hexcode,.wy-editor .cm-content .token.hexcode,.wy-content .token.hexcode{color:var(--wy-code-hexcode, var(--wy-code-hexcode-light, #811F3F))}.wy-code .token.regex,.wy-editor .cm-content .token.regex,.wy-content .token.regex{color:var(--wy-code-regex, var(--wy-code-regex-light, #811F3F))}.wy-code .token.char,.wy-editor .cm-content .token.char,.wy-content .token.char{color:var(--wy-code-char, var(--wy-code-char-light, #811F3F))}.wy-code .token.tag,.wy-editor .cm-content .token.tag,.wy-content .token.tag{color:var(--wy-code-tag, var(--wy-code-tag-light, #800000))}.wy-code .token.attr-name,.wy-editor .cm-content .token.attr-name,.wy-content .token.attr-name{color:var(--wy-code-attr-name, var(--wy-code-attr-name-light, #E50000))}.wy-code .token.selector,.wy-editor .cm-content .token.selector,.wy-content .token.selector{color:var(--wy-code-selector, var(--wy-code-selector-light, #E50000))}.wy-code .token.property,.wy-editor .cm-content .token.property,.wy-content .token.property{color:var(--wy-code-property, var(--wy-code-property-light, #E50000))}.wy-code .token.deleted,.wy-editor .cm-content .token.deleted,.wy-content .token.deleted{color:var(--wy-code-deleted, var(--wy-code-deleted-light, #A31515))}.wy-code .token.string,.wy-editor .cm-content .token.string,.wy-content .token.string{color:var(--wy-code-string, var(--wy-code-string-light, #A31515))}.wy-code .token.changed,.wy-editor .cm-content .token.changed,.wy-content .token.changed{color:var(--wy-code-changed, var(--wy-code-changed-light, #0451A5))}.wy-code .token.punctuation,.wy-editor .cm-content .token.punctuation,.wy-content .token.punctuation{color:var(--wy-code-punctuation, var(--wy-code-punctuation-light, #000000))}.wy-code .token.function,.wy-editor .cm-content .token.function,.wy-content .token.function{color:var(--wy-code-function, var(--wy-code-function-light, #0000FF))}.wy-code .token.keyword,.wy-editor .cm-content .token.keyword,.wy-content .token.keyword{color:var(--wy-code-keyword, var(--wy-code-keyword-light, #AF00DB))}.wy-code .token.class-name,.wy-editor .cm-content .token.class-name,.wy-content .token.class-name{color:var(--wy-code-class-name, var(--wy-code-class-name-light, #267F99))}.wy-code .token.important,.wy-code .token.bold,.wy-editor .cm-content .token.important,.wy-content .token.important,.wy-editor .cm-content .token.bold,.wy-content .token.bold{font-weight:700}.wy-code .token.italic,.wy-editor .cm-content .token.italic,.wy-content .token.italic{font-style:italic}.wy-content{overflow-wrap:break-word;min-width:0}.wy-content:empty{display:none}.wy-content>:first-child{margin-top:0}.wy-content>:last-child{margin-bottom:0}.wy-content b,.wy-content strong{font-weight:var(--wy-font-weight-bold, 600)}.wy-content blockquote{border-left:calc(2 * var(--wy-border, 1px)) solid var(--wy-neutral-80, #c6c6c9);margin:var(--wy-size, 1rem) 0;padding:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));padding-left:var(--wy-size, 1rem)}.wy-content blockquote>p{margin:0}.wy-content pre,.wy-content code{font-family:var(--wy-font-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-content :not(pre)>code{overflow-wrap:inherit}.wy-content pre>code{font-size:var(--wy-font-size, var(--wy-size, 1em));white-space:pre-wrap}.wy-content h1,.wy-content h2,.wy-content h3,.wy-content h4,.wy-content h5,.wy-content h6{font-family:var(--wy-headings-font-family, var(--wy-font-family, unset));font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600));line-height:var(--wy-headings-line-height, var(--wy-line-height, 1.2));margin:0 0 var(--wy-gap, calc(.5 * var(--wy-size, 1rem))) 0}.wy-content h1{font-size:calc(2 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h2{font-size:calc(1.8 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h3{font-size:calc(1.6 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h4{font-size:calc(1.4 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h5{font-size:calc(1.2 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h6{font-size:var(--wy-font-size, var(--wy-size, 1em))}.wy-content table{display:block;width:100%;max-width:-moz-max-content;max-width:max-content;margin:0 auto;overflow-x:auto;white-space:nowrap;border-collapse:separate;border-spacing:0 0;margin-bottom:var(--wy-size, 1rem)}.wy-content table th,.wy-content table td{padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));border-color:inherit;border-style:solid}.wy-content table th{text-align:inherit;text-align:-webkit-match-parent;border-width:var(--wy-border, 1px) 0 var(--wy-border, 1px) var(--wy-border, 1px);font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600))}.wy-content table th:first-child{border-top-left-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-content table th:last-child{border-top-right-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));border-right-width:var(--wy-border, 1px)}.wy-content table td{border-width:0 0 var(--wy-border, 1px) var(--wy-border, 1px)}.wy-content table td:last-child{border-right-width:var(--wy-border, 1px)}.wy-content table tr:last-child td:first-child{border-bottom-left-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-content table tr:last-child td:last-child{border-bottom-right-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-content table>tbody{vertical-align:inherit}.wy-content table>thead{vertical-align:bottom}.wy-content img{max-width:100%;border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));margin-block:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}ol{list-style-type:decimal}ul{list-style-type:disc}li{margin:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))) 0}ol,ul{margin:var(--wy-size, 1rem) 0;padding:0 0 0 1.625em}ol>li,ul>li{padding-left:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}ol>li>:first-child,ul>li>:first-child{margin-bottom:0;margin-top:0}ol>li>:last-child,ul>li>:last-child{margin-bottom:0}.wy-hashtag{color:var(--wy-primary, var(--wy-primary-40, #006399))}.wy-mention{font-weight:700}.wy-emoji-icon{display:inline-flex;justify-content:center;align-items:center;line-height:1;width:1em;height:1em;font-size:calc(1.25 * var(--wy-size, 1rem))}.wy-emoji-icon-sm{width:calc(1.125 * var(--wy-size, 1rem));height:calc(1.125 * var(--wy-size, 1rem));font-size:calc(1.125 * var(--wy-size, 1rem))}.wy-empty{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;position:relative;flex-direction:column;gap:var(--wy-gap-lg, calc(1.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}[part~=wy-icon]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;position:relative;width:var(--wy-component-icon-width);height:var(--wy-component-icon-height)}[part~=wy-icon][width=\"24\"]{width:var(--wy-component-icon-width, calc(1.5 * var(--wy-size, 1rem)))}[part~=wy-icon][height=\"24\"]{height:var(--wy-component-icon-height, calc(1.5 * var(--wy-size, 1rem)))}[part~=wy-icon-first]{margin-left:calc(-.5 * var(--wy-size, 1rem))}[part~=wy-icon-last]{margin-right:calc(-.5 * var(--wy-size, 1rem))}[part~=wy-icon-padded]{margin:16.66666667%}[part~=wy-icon-inline]{vertical-align:-.25em}[part~=wy-icon-overlay]{position:absolute;bottom:0;right:0;border-radius:50%}:host(wy-icon-stack),[part~=wy-icon-stack]{display:inline-flex;position:relative;line-height:1}[part~=wy-icon-stack-layer]{position:absolute}[part~=wy-icon-stack-overlay]{position:absolute;bottom:0;right:0;border-radius:50%;width:calc(var(--wy-component-icon-width) / 2);height:calc(var(--wy-component-icon-height) / 2)}[part~=wy-icon-current-color]{fill:currentColor}[part~=wy-icon-state]{transition:opacity var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));align-self:center;justify-self:center;margin:auto;opacity:0}[part~=wy-icon-state][part~=wy-active]{opacity:1}[part~=wy-icon-display]{color:var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));border-radius:var(--wy-component-border-radius, var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))));display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:calc(1 * var(--wy-size, 1rem)) calc(2 * var(--wy-size, 1rem));margin:auto}[part~=wy-icon-display-icon]{color:var(--wy-component-color);--wy-component-icon-width: calc(4 * var(--wy-size, 1rem));--wy-component-icon-height: calc(4 * var(--wy-size, 1rem));padding:calc(1 * var(--wy-size, 1rem)) calc(2 * var(--wy-size, 1rem))}[part~=wy-icon-display-text],[part~=wy-icon-display-meta]{color:var(--wy-component-color);padding:calc(1 * var(--wy-size, 1rem)) calc(2 * var(--wy-size, 1rem));text-align:center}[part~=wy-icon-color-primary]{fill:var(--wy-primary, var(--wy-primary-40, #006399))}[part~=wy-icon-color-secondary]{fill:var(--wy-secondary, var(--wy-secondary-40, #3b6a1c))}[part~=wy-icon-color-tertiary]{fill:var(--wy-tertiary, var(--wy-tertiary-40, #3b6a1c))}[part~=wy-icon-color-surface]{fill:var(--wy-surface, var(--wy-neutral-99, #fcfcff))}[part~=wy-icon-color-surface-variant]{fill:var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb))}[part~=wy-icon-color-error]{fill:var(--wy-error, var(--wy-error-40, #ba1824))}[part~=wy-icon-color-warning]{fill:var(--wy-warning, var(--wy-warning-70, #afb140))}[part~=wy-icon-color-blue]{fill:var(--wy-blue, var(--wy-blue-light, #89a9fc))}[part~=wy-icon-color-indigo]{fill:var(--wy-indigo, var(--wy-indigo-light, #9185de))}[part~=wy-icon-color-purple]{fill:var(--wy-purple, var(--wy-purple-light, #c675b7))}[part~=wy-icon-color-pink]{fill:var(--wy-pink, var(--wy-pink-light, #d57194))}[part~=wy-icon-color-red]{fill:var(--wy-red, var(--wy-red-light, #db726c))}[part~=wy-icon-color-orange]{fill:var(--wy-orange, var(--wy-orange-light, #e89a3a))}[part~=wy-icon-color-yellow]{fill:var(--wy-yellow, var(--wy-yellow-light, #afb140))}[part~=wy-icon-color-green]{fill:var(--wy-green, var(--wy-green-light, #00a38b))}[part~=wy-icon-color-teal]{fill:var(--wy-teal, var(--wy-teal-light, #00a0a8))}[part~=wy-icon-color-cyan]{fill:var(--wy-cyan, var(--wy-cyan-light, #0082a1))}[part~=wy-icon-color-gray]{fill:var(--wy-gray, var(--wy-gray-light, #76777a))}[part~=wy-icon-color-black]{fill:var(--wy-black, var(--wy-black, #000000))}[part~=wy-icon-color-white]{fill:var(--wy-white, var(--wy-white, #ffffff))}[part*=wy-kind-]{fill:var(--wy-gray, var(--wy-gray-light, #76777a))}[part~=wy-kind-archive]{fill:var(--wy-orange, var(--wy-orange-light, #e89a3a))}[part~=wy-kind-audio]{fill:var(--wy-teal, var(--wy-teal-light, #00a0a8))}[part~=wy-kind-code]{fill:var(--wy-green, var(--wy-green-light, #00a38b))}[part~=wy-kind-document]{fill:var(--wy-blue, var(--wy-blue-light, #89a9fc))}[part~=wy-kind-email]{fill:var(--wy-red, var(--wy-red-light, #db726c))}[part~=wy-kind-presentation]{fill:var(--wy-orange, var(--wy-orange-light, #e89a3a))}[part~=wy-kind-spreadsheet]{fill:var(--wy-green, var(--wy-green-light, #00a38b))}[part~=wy-kind-image]{fill:var(--wy-pink, var(--wy-pink-light, #d57194))}[part~=wy-kind-text]{fill:var(--wy-cyan, var(--wy-cyan-light, #0082a1))}[part~=wy-kind-video]{fill:var(--wy-purple, var(--wy-purple-light, #c675b7))}[part~=wy-ext-pdf]{fill:var(--wy-red, var(--wy-red-light, #db726c))}[part~=wy-kind-text-icon]{width:calc(1.25 * var(--wy-size, 1rem));height:calc(1.25 * var(--wy-size, 1rem));vertical-align:calc(-.3125 * var(--wy-size, 1rem))}.wy-title{font-family:var(--wy-headings-font-family, var(--wy-font-family, unset));font-size:var(--wy-headings-font-size, 1.25em);font-style:var(--wy-headings-font-style, unset);font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600));line-height:var(--wy-headings-line-height, var(--wy-line-height, 1.2));margin-block:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))}.wy-input{--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);border:var(--wy-input-border-width, var(--wy-border, 1px)) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));display:block;width:100%;min-height:calc(var(--wy-input-font-size, var(--wy-font-size, 1em)) * 1.5 * var(--wy-size, 1rem) + var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * 2 + var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) * 2);padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));font-family:var(--wy-input-font-family, var(--wy-font-family, inherit)),inherit;font-size:var(--wy-input-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-input-font-weight, var(--wy-font-weight, unset));line-height:var(--wy-input-line-height, var(--wy-line-height, calc(1.5 * var(--wy-size, 1rem))));background-clip:padding-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--wy-input-border-radius, var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))))}.wy-input:focus{--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));color:var(--wy-component-color);border-color:var(--wy-primary, var(--wy-primary-40, #006399));outline:0}.wy-input::placeholder{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));opacity:1}.wy-input:disabled{opacity:38%}.wy-input::file-selector-button,.wy-input::-webkit-file-upload-button{color:var(--wy-component-color);background-color:var(--wy-component-background-color);padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));margin:calc(-1 * var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) calc(-1 * var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));margin-inline-end:var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--wy-input-border-width, var(--wy-border, 1px));border-radius:0}.wy-input:hover:not(:disabled):not([readonly])::file-selector-button,.wy-input:hover:not(:disabled):not([readonly]) ::-webkit-file-upload-button{background-color:var(--wy-component-background-color)}.wy-input[type=file]{overflow:hidden}.wy-input[type=file]:not(:disabled):not([readonly]){cursor:pointer}.wy-input::-webkit-date-and-time-value{height:calc(var(--wy-input-line-height, var(--wy-line-height, calc(1.5 * var(--wy-size, 1rem)))) * 1em)}.wy-input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.wy-input-filled{--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);border-radius:var(--wy-input-filled-border-radius, var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem)))));border-color:var(--wy-component-background-color)}.wy-input-filled:focus{border-color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-label{display:inline-block;margin-bottom:calc(.5 * var(--wy-size, 1rem))}.wy-description{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)));margin-top:calc(.25 * var(--wy-size, 1rem))}.wy-is-invalid,.wy-is-invalid:focus{border-color:var(--wy-error, var(--wy-error-40, #ba1824))}.wy-invalid-feedback{margin-top:calc(.25 * var(--wy-size, 1rem));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)));color:var(--wy-error, var(--wy-error-40, #ba1824))}.wy-input-group{position:relative;display:flex;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));align-items:center}.wy-input-group-button-icon{position:absolute;top:0;right:0;z-index:4;border-radius:var(--wy-input-border-radius, var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))));--wy-component-background-color: transparent}.wy-input-group-input:placeholder-shown~.wy-input-group-button-icon[type=reset]{display:none}.wy-input-group-input:not(:placeholder-shown)~.wy-input-group-button-icon[type=reset]+.wy-input-group-button-icon{display:none}.wy-item{--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));position:relative;display:flex;align-items:center;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));text-decoration:none}.wy-list-item{min-height:calc(3 * var(--wy-size, 1rem))}.wy-list-item-lg{min-height:calc(4.5 * var(--wy-size, 1rem))}.wy-item-inner{display:flex;align-items:center;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));flex:1 1 100%}.wy-item-body{width:100%;min-width:0}.wy-item-rows{display:flex;flex-direction:column;width:100%;row-gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));min-width:0}.wy-item-rows:only-child{margin-inline-start:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-item-rows-compact{row-gap:0}.wy-item-rows-single{margin-inline-start:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-item-title{color:var(--wy-component-color);font-size:var(--wy-item-title-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-item-title-font-weight, var(--wy-font-weight, unset))}.wy-item-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-item-title-lg{color:var(--wy-component-color);font-size:var(--wy-item-title-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-item-title-font-weight, var(--wy-font-weight, unset))}.wy-item-title-lg{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.wy-item-text{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-item-text .wy-icon{width:calc(1.25 * var(--wy-size, 1rem));height:calc(1.25 * var(--wy-size, 1rem));vertical-align:calc(-.3125 * var(--wy-size, 1rem))}.wy-item-quote{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e))}.wy-item-quote:before,.wy-item-quote:after{content:'\"'}.wy-item-actions{--wy-component-background-color: transparent;display:flex;align-items:center;justify-items:flex-end;flex:0 0 auto;margin:calc(-.25 * var(--wy-size, 1rem))}.wy-item-top{align-self:flex-start}.wy-item-actions-bottom{align-self:flex-start;margin-block:calc(-.5 * var(--wy-size, 1rem))}.wy-item-row{display:flex;align-items:center;column-gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}.wy-item-row .wy-item-title,.wy-item-row .wy-item-text{margin-right:auto}.wy-item-row .wy-meta{white-space:nowrap}.wy-item-right{margin-left:auto}.wy-item-hover{-webkit-user-select:none;user-select:none;cursor:pointer}.wy-item-hover:hover,.wy-item-hover:focus{--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);text-decoration:none}.wy-item-hover:active{--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-item-hover.wy-disabled,.wy-item-hover:disabled{opacity:var(--wy-opacity-disabled, 38%);pointer-events:none}.wy-item-hover.wy-active{--wy-component-background-color: var(--wy-primary-container, var(--wy-primary-90, #cde5ff));--wy-component-color: var(--wy-on-primary-container, var(--wy-primary-10, #001d32));background-color:var(--wy-component-background-color);color:var(--wy-component-color);border-color:var(--wy-component-background-color)}.wy-item-trashed{text-decoration:line-through;opacity:var(--wy-opacity-disabled, 38%)}.wy-item-trashed.wy-item-hover:hover{opacity:1}.wy-list{border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));display:flex;flex-direction:column;gap:var(--wy-border);min-width:0}.wy-list .wy-item:not(.wy-item-hover){--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-list .wy-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.wy-list .wy-item:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.wy-list-bordered{border:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));gap:0}.wy-list-bordered .wy-item{border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));border-left:none;border-right:none}.wy-list-bordered .wy-item:first-child{border-top:none}.wy-list-bordered .wy-item:last-child{border-bottom:none}.wy-list-bordered .wy-item+.wy-list-bordered .wy-item{border-top-width:0}@keyframes wy-highlight{0%{--wy-component-background-color: var(--wy-highlight, var(--wy-primary-95, #e8f2ff));--wy-component-color: var(--wy-on-highlight, var(--wy-primary-10, #001d32))}}.wy-messages{padding:var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));flex:1 1 100%}.wy-message-placeholder{opacity:.5}.wy-date-separator{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));pointer-events:none;margin:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));text-align:center;position:sticky;top:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));z-index:10}.wy-date-separator time{background:var(--wy-surface-3, var(--wy-surface-3-light, #e3e7ee));color:var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));display:inline-block}.wy-message{display:flex;flex-direction:row;align-items:flex-start;margin-bottom:calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + .5 * var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));scroll-margin-block:6rem;--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}.wy-message[part~=wy-highlight]{animation:wy-highlight 3s 1.5s ease-in-out both}.wy-message-area{border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-message-meta{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));margin:0 0 calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))));color:var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}.wy-message-bubble{background-color:var(--wy-component-background-color);color:var(--wy-component-color);border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));display:flex;flex-direction:column;padding:var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));max-width:min(32 * var(--wy-size, 1rem),100% - 2 * var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))))}.wy-message-bubble>div{flex:1 1 100%}.wy-message-author{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));margin:calc(1lh + .5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) calc(.5 * var(--wy-size, 1rem)) 0 0}.wy-message-content{display:flex;flex-direction:column;width:100%;align-items:flex-start;flex-wrap:wrap;min-width:0;position:relative}.wy-message-content-row{display:flex;flex-direction:row;align-items:center;max-width:100%}.wy-message-bot{--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}.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}`,We=Re`:host{display:contents}`;var pj=Object.defineProperty,fj=Object.getOwnPropertyDescriptor,_t=p((s,t,i,n)=>{for(var r=n>1?void 0:n?fj(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&pj(t,i,r),r},"__decorateClass$17");function wx(s){return s!=null&&s!==!1}d(wx,"zp");p(wx,"acceptedValue");const kE="wy-context";var LO,Lu;let ut=(LO=(Lu=class extends J{constructor(){super(),this.provider=!1,this.cloudFilePickerUrl=wt.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=wt.defaults.disableEnvironmentImports,this.locale=wt.defaults.locale,this.locales=wt.defaults.locales,this.gcTime=wt.defaults.gcTime,this.notificationEvents=wt.defaults.notificationEvents,this.scrollBehavior=wt.defaults.scrollBehavior,this.staleTime=wt.defaults.staleTime,this.tokenFactory=wt.defaults.tokenFactory,this.tokenFactoryRetryDelay=wt.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=wt.defaults.tokenFactoryTimeout,this.tokenUrl=wt.defaults.tokenUrl,this.url=wt.defaults.url,this.notifications=wt.defaults.notifications,this.notificationsBadge=wt.defaults.notificationsBadge,this.reactions=wt.defaults.reactions,this.childElementCount&&(this.provider=!0),this.weavy??(this.weavy=new wt({host:this.provider?this:void 0}))}get version(){return wt.version}get sourceName(){return wt.sourceName}willUpdate(t){if(super.willUpdate(t),this.weavy){const i={};Array.from(t.keys()).forEach(n=>{n!=="weavy"&&(wx(this[n])||wx(t.get(n)))&&Object.assign(i,{[n]:this[n]})}),Object.assign(this.weavy,i)}}render(){return b` <slot></slot> `}},d(Lu,"_n"),Lu),p(LO,"WyContext"),LO);ut.styles=[me,Ni,We];_t([k({attribute:!0,type:Boolean})],ut.prototype,"provider",2);_t([k({attribute:!0,converter:{fromAttribute:p(s=>Qw(s),"fromAttribute")}})],ut.prototype,"cloudFilePickerUrl",2);_t([k({attribute:!0,converter:{fromAttribute:p(s=>Qw(s),"fromAttribute")}}),k({type:Boolean})],ut.prototype,"disableEnvironmentImports",2);_t([k({attribute:!0})],ut.prototype,"locale",2);_t([k({attribute:!0,type:Array})],ut.prototype,"locales",2);_t([k({attribute:!0,type:Number})],ut.prototype,"gcTime",2);_t([k({type:Boolean})],ut.prototype,"notificationEvents",2);_t([k({attribute:!0})],ut.prototype,"scrollBehavior",2);_t([k({attribute:!0,type:Number})],ut.prototype,"staleTime",2);_t([k({attribute:!0,converter:{fromAttribute:p(s=>xE(s),"fromAttribute")}})],ut.prototype,"tokenFactory",2);_t([k({attribute:!0,type:Number})],ut.prototype,"tokenFactoryRetryDelay",2);_t([k({attribute:!0,type:Number})],ut.prototype,"tokenFactoryTimeout",2);_t([k({attribute:!0,converter:{fromAttribute:p(s=>Qw(s),"fromAttribute")}})],ut.prototype,"tokenUrl",2);_t([k({attribute:!0,converter:{fromAttribute:p(s=>Qw(s),"fromAttribute")}})],ut.prototype,"url",2);_t([k({attribute:!0})],ut.prototype,"notifications",2);_t([k({attribute:!0})],ut.prototype,"notificationsBadge",2);_t([k({attribute:!0})],ut.prototype,"reactions",2);_t([X()],ut.prototype,"weavy",2);ut=_t([Y(kE)],ut);var dm,t1,zu;const SE=(zu=class{constructor(t,i){j(this,dm),j(this,t1),D(this,dm,!0),this.styles=[],t.addController(this),this.host=t,i&&(this.styles=i)}get themeColor(){return S(this,t1)}set themeColor(t){D(this,t1,t),this.checkThemeUpdate()}checkThemeUpdate(){const t=this.themeColor||tv(this.host)||iv();if(t&&t!==this._resolvedThemeColor){this._resolvedThemeColor=t,console.info("Configuring theme",this._resolvedThemeColor);const i=sE(this._resolvedThemeColor).join(""),n=Re`
|
|
32
|
+
`,oe`${0} svarade på ett inlägg`,oe`${0} lade till ${1} till ${2}`,oe`${0} redigerade ${1}`,oe`${0} gillade ditt meddelande`,oe`${0}, ${1} och ${2} röstade i din omröstning`,oe`${0} reagerade med ${1} på ${2}`,oe`${0} reagerade med ${1} på ditt meddelande`,oe`${0} gillade din kommentar`,oe`${0} skriver${1}`;var bU=Object.defineProperty,DR=d(s=>{throw TypeError(s)},"hp"),p=d((s,t)=>bU(s,"name",{value:t,configurable:!0}),"c"),V5=d((s,t,i)=>t.has(s)||DR("Cannot "+i),"Dd"),S=d((s,t,i)=>(V5(s,t,"read from private field"),i?i.call(s):t.get(s)),"f"),j=d((s,t,i)=>t.has(s)?DR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,i),"F"),D=d((s,t,i,n)=>(V5(s,t,"write to private field"),t.set(s,i),i),"I"),ge=d((s,t,i)=>(V5(s,t,"access private method"),i),"et"),nx=d((s,t,i,n)=>({set _(r){D(s,t,r)},get _(){return S(s,t,n)}}),"Wc");function Xm(s){return Object.prototype.toString.call(s)==="[object Object]"}d(Xm,"Jc");p(Xm,"isObject");function Nm(s){if(Xm(s)===!1)return!1;const t=s.constructor;if(t===void 0)return!0;const i=t.prototype;return!(Xm(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}d(Nm,"tl");p(Nm,"isPlainObject$1");function Sm(s,t,i=!1){s=s||{},t=t||{};const n={};for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r]);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i&&n[r]&&Nm(n[r])&&Nm(t[r])?n[r]=Sm(n[r],t[r],i):n[r]=t[r]);return n}d(Sm,"Zc");p(Sm,"assign");function qR(s){return s&&(Array.isArray(s)?s:[s])||[]}d(qR,"nm");p(qR,"asArray");async function UR(s,t){for(const i of s)if(await t(i))return i}d(UR,"am");p(UR,"findAsyncSequential");function Ic(s,t,i=!1,n=!1){if(!n&&(!Nm(s)||!Nm(t))||n&&(!Xm(s)||!Xm(t)))return!1;const r=Object.getOwnPropertyNames(s),a=Object.getOwnPropertyNames(t);if(!i&&r.length!==a.length)return!1;for(let o=0;o<r.length;o++){const l=r[o],c=s[l],h=t[l];if(c!==h&&!Ic(c,h,i))return!1}return!0}d(Ic,"Ho");p(Ic,"eqObjects");function D5(s){return Object.entries(s)}d(D5,"Ey");p(D5,"objectAsIterable");function q5(s){return s.charAt(0).toUpperCase()+s.substring(1).toLowerCase()}d(q5,"Ay");p(q5,"toUpperCaseFirst");const OU='\\s,.:;"',$U=new RegExp(`^|[${OU}]|$`,"g"),xU=".!?",kU=new RegExp(`^|[${xU}]|$`);function U5(s){return s.length>0?s.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").replace(/_|\s+/g,"-").toLowerCase():s}d(U5,"Oy");p(U5,"toKebabCase");function jR(s,t=2){if(!s)return null;let i="";const n=s.split($U).filter(r=>r);return n.length==1?i=n[0]:n.forEach(r=>{i+=r.charAt(0)}),i.substring(0,t).toUpperCase()}d(jR,"hm");p(jR,"getInitials");function j5(s){let t;const i=s.split(kU).filter(n=>n);return i.length?t=i[0]:t=s,t}d(j5,"Ry");p(j5,"getTitleFromText");function B5(s,t=256){return s.length>t&&(s=s.substring(0,t-1)+"…"),s}d(B5,"Ly");p(B5,"truncateText");const SU={credentials:"omit",headers:{"X-Requested-With":"XMLHttpRequest"},redirect:"manual"};function Vf(){return((1+Math.random())*65536|0).toString(16).substring(1)}d(Vf,"No");p(Vf,"S4");function BR(s){if(s&&s.ok&&s.body){const t=s.body.getReader();return new ReadableStream({start(i){const n=p(()=>t.read().then(({done:r,value:a})=>{if(r){i.close();return}return i.enqueue(a),n()}),"pump");return n()}})}else throw new Error("Could not parse text stream")}d(BR,"pm");p(BR,"getTextStreamFromResponse");function FR(s){let t;try{if(t=window[s],t){const i="__storage_test__";t.setItem(i,i),t.removeItem(i)}}catch(i){i instanceof DOMException&&i.name==="QuotaExceededError"&&t&&t.length!==0&&console.error("Storage not available:",s)}return t}d(FR,"ym");p(FR,"getStorage");var su;const XR=(su=class extends Error{constructor(){super("Instance destroyed"),this.name="DestroyError"}},d(su,"Tu"),su);p(XR,"DestroyError");let kt=XR;var lO,ru,ly=(lO=(ru=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(){}},d(ru,"Ur"),ru),p(lO,"Subscribable"),lO),Df=typeof window>"u"||"Deno"in globalThis;function Wi(){}d(Wi,"Ke");p(Wi,"noop$1");function NR(s,t){return typeof s=="function"?s(t):s}d(NR,"wm");p(NR,"functionalUpdate");function U1(s){return typeof s=="number"&&s>=0&&s!==1/0}d(U1,"Jd");p(U1,"isValidTimeout");function F5(s,t){return Math.max(s+(t||0)-Date.now(),0)}d(F5,"Iy");p(F5,"timeUntilStale");function Ba(s,t){return typeof s=="function"?s(t):s}d(Ba,"Hr");p(Ba,"resolveStaleTime");function Ki(s,t){return typeof s=="function"?s(t):s}d(Ki,"si");p(Ki,"resolveEnabled");function sx(s,t){const{type:i="all",exact:n,fetchStatus:r,predicate:a,queryKey:o,stale:l}=s;if(o){if(n){if(t.queryHash!==Xv(o,t.options))return!1}else if(!qf(t.queryKey,o))return!1}if(i!=="all"){const c=t.isActive();if(i==="active"&&!c||i==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||r&&r!==t.state.fetchStatus||a&&!a(t))}d(sx,"yp");p(sx,"matchQuery");function rx(s,t){const{exact:i,status:n,predicate:r,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(i){if(Nr(t.options.mutationKey)!==Nr(a))return!1}else if(!qf(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||r&&!r(t))}d(rx,"wp");p(rx,"matchMutation");function Xv(s,t){return((t==null?void 0:t.queryKeyHashFn)||Nr)(s)}d(Xv,"Jh");p(Xv,"hashQueryKeyByOptions");function Nr(s){return JSON.stringify(s,(t,i)=>j1(i)?Object.keys(i).sort().reduce((n,r)=>(n[r]=i[r],n),{}):i)}d(Nr,"Ys");p(Nr,"hashKey");function qf(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?Object.keys(t).every(i=>qf(s[i],t[i])):!1}d(qf,"jo");p(qf,"partialMatchKey");function cy(s,t){if(s===t)return s;const i=ax(s)&&ax(t);if(i||j1(s)&&j1(t)){const n=i?s:Object.keys(s),r=n.length,a=i?t:Object.keys(t),o=a.length,l=i?[]:{};let c=0;for(let h=0;h<o;h++){const u=i?h:a[h];(!i&&n.includes(u)||i)&&s[u]===void 0&&t[u]===void 0?(l[u]=void 0,c++):(l[u]=cy(s[u],t[u]),l[u]===s[u]&&s[u]!==void 0&&c++)}return r===o&&c===r?s:l}return t}d(cy,"Oc");p(cy,"replaceEqualDeep");function Hm(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const i in s)if(s[i]!==t[i])return!1;return!0}d(Hm,"el");p(Hm,"shallowEqualObjects");function ax(s){return Array.isArray(s)&&s.length===Object.keys(s).length}d(ax,"fp");p(ax,"isPlainArray");function j1(s){if(!ox(s))return!1;const t=s.constructor;if(t===void 0)return!0;const i=t.prototype;return!(!ox(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}d(j1,"th");p(j1,"isPlainObject");function ox(s){return Object.prototype.toString.call(s)==="[object Object]"}d(ox,"mp");p(ox,"hasObjectPrototype");function HR(s){return new Promise(t=>{setTimeout(t,s)})}d(HR,"fm");p(HR,"sleep");function B1(s,t,i){return typeof i.structuralSharing=="function"?i.structuralSharing(s,t):i.structuralSharing!==!1?cy(s,t):t}d(B1,"eh");p(B1,"replaceData");function YR(s,t,i=0){const n=[...s,t];return i&&n.length>i?n.slice(1):n}d(YR,"mm");p(YR,"addToEnd");function GR(s,t,i=0){const n=[t,...s];return i&&n.length>i?n.slice(0,-1):n}d(GR,"vm");p(GR,"addToStart");var X5=Symbol();function N5(s,t){return!s.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!s.queryFn||s.queryFn===X5?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}d(N5,"Ty");p(N5,"ensureQueryFn");var Kl,$a,My,cO,au,PU=(cO=(au=class extends ly{constructor(){super(),j(this,Kl),j(this,$a),j(this,My),D(this,My,t=>{if(!Df&&window.addEventListener){const i=p(()=>t(),"listener");return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){S(this,$a)||this.setEventListener(S(this,My))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,$a))==null||t.call(this),D(this,$a,void 0))}setEventListener(t){var i;D(this,My,t),(i=S(this,$a))==null||i.call(this),D(this,$a,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){S(this,Kl)!==t&&(D(this,Kl,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(i=>{i(t)})}isFocused(){var t;return typeof S(this,Kl)=="boolean"?S(this,Kl):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},d(au,"Nr"),au),Kl=new WeakMap,$a=new WeakMap,My=new WeakMap,p(cO,"FocusManager"),cO),H5=new PU,Ty,xa,Ry,hO,ou,CU=(hO=(ou=class extends ly{constructor(){super(),j(this,Ty,!0),j(this,xa),j(this,Ry),D(this,Ry,t=>{if(!Df&&window.addEventListener){const i=p(()=>t(!0),"onlineListener"),n=p(()=>t(!1),"offlineListener");return window.addEventListener("online",i,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",n)}}})}onSubscribe(){S(this,xa)||this.setEventListener(S(this,Ry))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,xa))==null||t.call(this),D(this,xa,void 0))}setEventListener(t){var i;D(this,Ry,t),(i=S(this,xa))==null||i.call(this),D(this,xa,t(this.setOnline.bind(this)))}setOnline(t){S(this,Ty)!==t&&(D(this,Ty,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return S(this,Ty)}},d(ou,"Qr"),ou),Ty=new WeakMap,xa=new WeakMap,Ry=new WeakMap,p(hO,"OnlineManager"),hO),F1=new CU;function X1(){let s,t;const i=new Promise((r,a)=>{s=r,t=a});i.status="pending",i.catch(()=>{});function n(r){Object.assign(i,r),delete i.resolve,delete i.reject}return d(n,"r"),p(n,"finalize"),i.resolve=r=>{n({status:"fulfilled",value:r}),s(r)},i.reject=r=>{n({status:"rejected",reason:r}),t(r)},i}d(X1,"ih");p(X1,"pendingThenable");function KR(s){return Math.min(1e3*2**s,3e4)}d(KR,"xm");p(KR,"defaultRetryDelay");function Y5(s){return(s??"online")==="online"?F1.isOnline():!0}d(Y5,"Fy");p(Y5,"canFetch");var dO,lu,JR=(dO=(lu=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}},d(lu,"Kr"),lu),p(dO,"CancelledError"),dO);function _g(s){return s instanceof JR}d(_g,"Hd");p(_g,"isCancelledError");function G5(s){let t=!1,i=0,n=!1,r;const a=X1(),o=p(O=>{var x;n||(y(new JR(O)),(x=s.abort)==null||x.call(s))},"cancel"),l=p(()=>{t=!0},"cancelRetry"),c=p(()=>{t=!1},"continueRetry"),h=p(()=>H5.isFocused()&&(s.networkMode==="always"||F1.isOnline())&&s.canRun(),"canContinue"),u=p(()=>Y5(s.networkMode)&&s.canRun(),"canStart"),f=p(O=>{var x;n||(n=!0,(x=s.onSuccess)==null||x.call(s,O),r==null||r(),a.resolve(O))},"resolve"),y=p(O=>{var x;n||(n=!0,(x=s.onError)==null||x.call(s,O),r==null||r(),a.reject(O))},"reject"),w=p(()=>new Promise(O=>{var x;r=p($=>{(n||h())&&O($)},"continueFn"),(x=s.onPause)==null||x.call(s)}).then(()=>{var O;r=void 0,n||(O=s.onContinue)==null||O.call(s)}),"pause"),g=p(()=>{if(n)return;let O;const x=i===0?s.initialPromise:void 0;try{O=x??s.fn()}catch($){O=Promise.reject($)}Promise.resolve(O).then(f).catch($=>{var C;if(n)return;const A=s.retry??(Df?0:3),E=s.retryDelay??KR,R=typeof E=="function"?E(i,$):E,z=A===!0||typeof A=="number"&&i<A||typeof A=="function"&&A(i,$);if(t||!z){y($);return}i++,(C=s.onFail)==null||C.call(s,i,$),HR(R).then(()=>h()?void 0:w()).then(()=>{t?y($):g()})})},"run");return{promise:a,cancel:o,continue:p(()=>(r==null||r(),a),"continue"),cancelRetry:l,continueRetry:c,canStart:u,start:p(()=>(u()?g():w().then(g),a),"start")}}d(G5,"Hy");p(G5,"createRetryer");var QU=p(s=>setTimeout(s,0),"defaultScheduler");function eA(){let s=[],t=0,i=p(l=>{l()},"notifyFn"),n=p(l=>{l()},"batchNotifyFn"),r=QU;const a=p(l=>{t?s.push(l):r(()=>{i(l)})},"schedule"),o=p(()=>{const l=s;s=[],l.length&&r(()=>{n(()=>{l.forEach(c=>{i(c)})})})},"flush");return{batch:p(l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},"batch"),batchCalls:p(l=>(...c)=>{a(()=>{l(...c)})},"batchCalls"),schedule:a,setNotifyFunction:p(l=>{i=l},"setNotifyFunction"),setBatchNotifyFunction:p(l=>{n=l},"setBatchNotifyFunction"),setScheduler:p(l=>{r=l},"setScheduler")}}d(eA,"Cm");p(eA,"createNotifyManager");var ti=eA(),Jl,uO,cu,tA=(uO=(cu=class{constructor(){j(this,Jl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),U1(this.gcTime)&&D(this,Jl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Df?1/0:5*60*1e3))}clearGcTimeout(){S(this,Jl)&&(clearTimeout(S(this,Jl)),D(this,Jl,void 0))}},d(cu,"Gr"),cu),Jl=new WeakMap,p(uO,"Removable"),uO),Ay,Ey,fn,ec,hi,lg,tc,Zn,vs,pO,hu,MU=(pO=(hu=class extends tA{constructor(t){super(),j(this,Zn),j(this,Ay),j(this,Ey),j(this,fn),j(this,ec),j(this,hi),j(this,lg),j(this,tc),D(this,tc,!1),D(this,lg,t.defaultOptions),this.setOptions(t.options),this.observers=[],D(this,ec,t.client),D(this,fn,S(this,ec).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,D(this,Ay,iA(this.options)),this.state=t.state??S(this,Ay),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=S(this,hi))==null?void 0:t.promise}setOptions(t){this.options={...S(this,lg),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,fn).remove(this)}setData(t,i){const n=B1(this.state.data,t,this.options);return ge(this,Zn,vs).call(this,{data:n,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),n}setState(t,i){ge(this,Zn,vs).call(this,{type:"setState",state:t,setStateOptions:i})}cancel(t){var i,n;const r=(i=S(this,hi))==null?void 0:i.promise;return(n=S(this,hi))==null||n.cancel(t),r?r.then(Wi).catch(Wi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Ay))}isActive(){return this.observers.some(t=>Ki(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===X5||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!F5(this.state.dataUpdatedAt,t)}onFocus(){var t;const i=this.observers.find(n=>n.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(t=S(this,hi))==null||t.continue()}onOnline(){var t;const i=this.observers.find(n=>n.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(t=S(this,hi))==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),S(this,fn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(i=>i!==t),this.observers.length||(S(this,hi)&&(S(this,tc)?S(this,hi).cancel({revert:!0}):S(this,hi).cancelRetry()),this.scheduleGc()),S(this,fn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ge(this,Zn,vs).call(this,{type:"invalidate"})}fetch(t,i){var n,r,a;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&i!=null&&i.cancelRefetch)this.cancel({silent:!0});else if(S(this,hi))return S(this,hi).continueRetry(),S(this,hi).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(y=>y.options.queryFn);f&&this.setOptions(f.options)}const o=new AbortController,l=p(f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:p(()=>(D(this,tc,!0),o.signal),"get")})},"addSignalProperty"),c=p(()=>{const f=N5(this.options,i),y={client:S(this,ec),queryKey:this.queryKey,meta:this.meta};return l(y),D(this,tc,!1),this.options.persister?this.options.persister(f,y,this):f(y)},"fetchFn"),h={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:S(this,ec),state:this.state,fetchFn:c};l(h),(n=this.options.behavior)==null||n.onFetch(h,this),D(this,Ey,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((r=h.fetchOptions)==null?void 0:r.meta))&&ge(this,Zn,vs).call(this,{type:"fetch",meta:(a=h.fetchOptions)==null?void 0:a.meta});const u=p(f=>{var y,w,g,O;_g(f)&&f.silent||ge(this,Zn,vs).call(this,{type:"error",error:f}),_g(f)||((w=(y=S(this,fn).config).onError)==null||w.call(y,f,this),(O=(g=S(this,fn).config).onSettled)==null||O.call(g,this.state.data,f,this)),this.scheduleGc()},"onError");return D(this,hi,G5({initialPromise:i==null?void 0:i.initialPromise,fn:h.fetchFn,abort:o.abort.bind(o),onSuccess:p(f=>{var y,w,g,O;if(f===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(x){u(x);return}(w=(y=S(this,fn).config).onSuccess)==null||w.call(y,f,this),(O=(g=S(this,fn).config).onSettled)==null||O.call(g,f,this.state.error,this),this.scheduleGc()},"onSuccess"),onError:u,onFail:p((f,y)=>{ge(this,Zn,vs).call(this,{type:"failed",failureCount:f,error:y})},"onFail"),onPause:p(()=>{ge(this,Zn,vs).call(this,{type:"pause"})},"onPause"),onContinue:p(()=>{ge(this,Zn,vs).call(this,{type:"continue"})},"onContinue"),retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:p(()=>!0,"canRun")})),S(this,hi).start()}},d(hu,"Xr"),hu),Ay=new WeakMap,Ey=new WeakMap,fn=new WeakMap,ec=new WeakMap,hi=new WeakMap,lg=new WeakMap,tc=new WeakMap,Zn=new WeakSet,vs=p(function(s){const t=p(i=>{switch(s.type){case"failed":return{...i,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...K5(i.data,this.options),fetchMeta:s.meta??null};case"success":return{...i,data:s.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:s.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=s.error;return _g(n)&&n.revert&&S(this,Ey)?{...S(this,Ey),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...s.state}}},"reducer");this.state=t(this.state),ti.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),S(this,fn).notify({query:this,type:"updated",action:s})})},"#dispatch"),p(pO,"Query"),pO);function K5(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Y5(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}d(K5,"By");p(K5,"fetchState");function iA(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,i=t!==void 0,n=i?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}d(iA,"_m");p(iA,"getDefaultState$1");var bs,fO,du,TU=(fO=(du=class extends ly{constructor(t={}){super(),j(this,bs),this.config=t,D(this,bs,new Map)}build(t,i,n){const r=i.queryKey,a=i.queryHash??Xv(r,i);let o=this.get(a);return o||(o=new MU({client:t,queryKey:r,queryHash:a,options:t.defaultQueryOptions(i),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){S(this,bs).has(t.queryHash)||(S(this,bs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const i=S(this,bs).get(t.queryHash);i&&(t.destroy(),i===t&&S(this,bs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ti.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return S(this,bs).get(t)}getAll(){return[...S(this,bs).values()]}find(t){const i={exact:!0,...t};return this.getAll().find(n=>sx(i,n))}findAll(t={}){const i=this.getAll();return Object.keys(t).length>0?i.filter(n=>sx(t,n)):i}notify(t){ti.batch(()=>{this.listeners.forEach(i=>{i(t)})})}onFocus(){ti.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ti.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},d(du,"Jr"),du),bs=new WeakMap,p(fO,"QueryCache"),fO),Os,$i,ic,$s,tr,yO,uu,RU=(yO=(uu=class extends tA{constructor(t){super(),j(this,$s),j(this,Os),j(this,$i),j(this,ic),this.mutationId=t.mutationId,D(this,$i,t.mutationCache),D(this,Os,[]),this.state=t.state||J5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,Os).includes(t)||(S(this,Os).push(t),this.clearGcTimeout(),S(this,$i).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){D(this,Os,S(this,Os).filter(i=>i!==t)),this.scheduleGc(),S(this,$i).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,Os).length||(this.state.status==="pending"?this.scheduleGc():S(this,$i).remove(this))}continue(){var t;return((t=S(this,ic))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,n,r,a,o,l,c,h,u,f,y,w,g,O,x,$,C,A,E,R;D(this,ic,G5({fn:p(()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),"fn"),onFail:p((q,B)=>{ge(this,$s,tr).call(this,{type:"failed",failureCount:q,error:B})},"onFail"),onPause:p(()=>{ge(this,$s,tr).call(this,{type:"pause"})},"onPause"),onContinue:p(()=>{ge(this,$s,tr).call(this,{type:"continue"})},"onContinue"),retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:p(()=>S(this,$i).canRun(this),"canRun")}));const z=this.state.status==="pending",I=!S(this,ic).canStart();try{if(!z){ge(this,$s,tr).call(this,{type:"pending",variables:t,isPaused:I}),await((n=(i=S(this,$i).config).onMutate)==null?void 0:n.call(i,t,this));const B=await((a=(r=this.options).onMutate)==null?void 0:a.call(r,t));B!==this.state.context&&ge(this,$s,tr).call(this,{type:"pending",context:B,variables:t,isPaused:I})}const q=await S(this,ic).start();return await((l=(o=S(this,$i).config).onSuccess)==null?void 0:l.call(o,q,t,this.state.context,this)),await((h=(c=this.options).onSuccess)==null?void 0:h.call(c,q,t,this.state.context)),await((f=(u=S(this,$i).config).onSettled)==null?void 0:f.call(u,q,null,this.state.variables,this.state.context,this)),await((w=(y=this.options).onSettled)==null?void 0:w.call(y,q,null,t,this.state.context)),ge(this,$s,tr).call(this,{type:"success",data:q}),q}catch(q){try{throw await((O=(g=S(this,$i).config).onError)==null?void 0:O.call(g,q,t,this.state.context,this)),await(($=(x=this.options).onError)==null?void 0:$.call(x,q,t,this.state.context)),await((A=(C=S(this,$i).config).onSettled)==null?void 0:A.call(C,void 0,q,this.state.variables,this.state.context,this)),await((R=(E=this.options).onSettled)==null?void 0:R.call(E,void 0,q,t,this.state.context)),q}finally{ge(this,$s,tr).call(this,{type:"error",error:q})}}finally{S(this,$i).runNext(this)}}},d(uu,"tn"),uu),Os=new WeakMap,$i=new WeakMap,ic=new WeakMap,$s=new WeakSet,tr=p(function(s){const t=p(i=>{switch(s.type){case"failed":return{...i,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...i,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:s.error,failureCount:i.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}},"reducer");this.state=t(this.state),ti.batch(()=>{S(this,Os).forEach(i=>{i.onMutationUpdate(s)}),S(this,$i).notify({mutation:this,type:"updated",action:s})})},"#dispatch"),p(yO,"Mutation"),yO);function J5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}d(J5,"Uy");p(J5,"getDefaultState");var ir,Wn,cg,mO,pu,AU=(mO=(pu=class extends ly{constructor(t={}){super(),j(this,ir),j(this,Wn),j(this,cg),this.config=t,D(this,ir,new Set),D(this,Wn,new Map),D(this,cg,0)}build(t,i,n){const r=new RU({mutationCache:this,mutationId:++nx(this,cg)._,options:t.defaultMutationOptions(i),state:n});return this.add(r),r}add(t){S(this,ir).add(t);const i=sm(t);if(typeof i=="string"){const n=S(this,Wn).get(i);n?n.push(t):S(this,Wn).set(i,[t])}this.notify({type:"added",mutation:t})}remove(t){if(S(this,ir).delete(t)){const i=sm(t);if(typeof i=="string"){const n=S(this,Wn).get(i);if(n)if(n.length>1){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}else n[0]===t&&S(this,Wn).delete(i)}}this.notify({type:"removed",mutation:t})}canRun(t){const i=sm(t);if(typeof i=="string"){const n=S(this,Wn).get(i),r=n==null?void 0:n.find(a=>a.state.status==="pending");return!r||r===t}else return!0}runNext(t){var i;const n=sm(t);if(typeof n=="string"){const r=(i=S(this,Wn).get(n))==null?void 0:i.find(a=>a!==t&&a.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ti.batch(()=>{S(this,ir).forEach(t=>{this.notify({type:"removed",mutation:t})}),S(this,ir).clear(),S(this,Wn).clear()})}getAll(){return Array.from(S(this,ir))}find(t){const i={exact:!0,...t};return this.getAll().find(n=>rx(i,n))}findAll(t={}){return this.getAll().filter(i=>rx(t,i))}notify(t){ti.batch(()=>{this.listeners.forEach(i=>{i(t)})})}resumePausedMutations(){const t=this.getAll().filter(i=>i.state.isPaused);return ti.batch(()=>Promise.all(t.map(i=>i.continue().catch(Wi))))}},d(pu,"en"),pu),ir=new WeakMap,Wn=new WeakMap,cg=new WeakMap,p(mO,"MutationCache"),mO);function sm(s){var t;return(t=s.options.scope)==null?void 0:t.id}d(sm,"Qc");p(sm,"scopeFor");function Ym(s){return{onFetch:p((t,i)=>{var n,r,a,o,l;const c=t.options,h=(a=(r=(n=t.fetchOptions)==null?void 0:n.meta)==null?void 0:r.fetchMore)==null?void 0:a.direction,u=((o=t.state.data)==null?void 0:o.pages)||[],f=((l=t.state.data)==null?void 0:l.pageParams)||[];let y={pages:[],pageParams:[]},w=0;const g=p(async()=>{let O=!1;const x=p(A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:p(()=>(t.signal.aborted?O=!0:t.signal.addEventListener("abort",()=>{O=!0}),t.signal),"get")})},"addSignalProperty"),$=N5(t.options,t.fetchOptions),C=p(async(A,E,R)=>{if(O)return Promise.reject();if(E==null&&A.pages.length)return Promise.resolve(A);const z={client:t.client,queryKey:t.queryKey,pageParam:E,direction:R?"backward":"forward",meta:t.options.meta};x(z);const I=await $(z),{maxPages:q}=t.options,B=R?GR:YR;return{pages:B(A.pages,I,q),pageParams:B(A.pageParams,E,q)}},"fetchPage");if(h&&u.length){const A=h==="backward",E=A?eS:N1,R={pages:u,pageParams:f},z=E(c,R);y=await C(R,z,A)}else{const A=s??u.length;do{const E=w===0?f[0]??c.initialPageParam:N1(c,y);if(w>0&&E==null)break;y=await C(y,E),w++}while(w<A)}return y},"fetchFn");t.options.persister?t.fetchFn=()=>{var O,x;return(x=(O=t.options).persister)==null?void 0:x.call(O,g,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i)}:t.fetchFn=g},"onFetch")}}d(Ym,"sl");p(Ym,"infiniteQueryBehavior");function N1(s,{pages:t,pageParams:i}){const n=t.length-1;return t.length>0?s.getNextPageParam(t[n],t,i[n],i):void 0}d(N1,"sh");p(N1,"getNextPageParam");function eS(s,{pages:t,pageParams:i}){var n;return t.length>0?(n=s.getPreviousPageParam)==null?void 0:n.call(s,t[0],t,i[0],i):void 0}d(eS,"qy");p(eS,"getPreviousPageParam");function nA(s,t){return t?N1(s,t)!=null:!1}d(nA,"Sm");p(nA,"hasNextPage");function sA(s,t){return!t||!s.getPreviousPageParam?!1:eS(s,t)!=null}d(sA,"Em");p(sA,"hasPreviousPage");var yt,ka,Sa,Ly,zy,Pa,_y,Iy,wO,fu,EU=(wO=(fu=class{constructor(t={}){j(this,yt),j(this,ka),j(this,Sa),j(this,Ly),j(this,zy),j(this,Pa),j(this,_y),j(this,Iy),D(this,yt,t.queryCache||new TU),D(this,ka,t.mutationCache||new AU),D(this,Sa,t.defaultOptions||{}),D(this,Ly,new Map),D(this,zy,new Map),D(this,Pa,0)}mount(){nx(this,Pa)._++,S(this,Pa)===1&&(D(this,_y,H5.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,yt).onFocus())})),D(this,Iy,F1.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,yt).onOnline())})))}unmount(){var t,i;nx(this,Pa)._--,S(this,Pa)===0&&((t=S(this,_y))==null||t.call(this),D(this,_y,void 0),(i=S(this,Iy))==null||i.call(this),D(this,Iy,void 0))}isFetching(t){return S(this,yt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return S(this,ka).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const n=this.defaultQueryOptions({queryKey:t});return(i=S(this,yt).get(n.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const i=this.defaultQueryOptions(t),n=S(this,yt).build(this,i),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Ba(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(t){return S(this,yt).findAll(t).map(({queryKey:i,state:n})=>{const r=n.data;return[i,r]})}setQueryData(t,i,n){const r=this.defaultQueryOptions({queryKey:t}),a=S(this,yt).get(r.queryHash),o=a==null?void 0:a.state.data,l=NR(i,o);if(l!==void 0)return S(this,yt).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(t,i,n){return ti.batch(()=>S(this,yt).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,i,n)]))}getQueryState(t){var i;const n=this.defaultQueryOptions({queryKey:t});return(i=S(this,yt).get(n.queryHash))==null?void 0:i.state}removeQueries(t){const i=S(this,yt);ti.batch(()=>{i.findAll(t).forEach(n=>{i.remove(n)})})}resetQueries(t,i){const n=S(this,yt);return ti.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},i)))}cancelQueries(t,i={}){const n={revert:!0,...i},r=ti.batch(()=>S(this,yt).findAll(t).map(a=>a.cancel(n)));return Promise.all(r).then(Wi).catch(Wi)}invalidateQueries(t,i={}){return ti.batch(()=>(S(this,yt).findAll(t).forEach(n=>{n.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"},i)))}refetchQueries(t,i={}){const n={...i,cancelRefetch:i.cancelRefetch??!0},r=ti.batch(()=>S(this,yt).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Wi)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Wi)}fetchQuery(t){const i=this.defaultQueryOptions(t);i.retry===void 0&&(i.retry=!1);const n=S(this,yt).build(this,i);return n.isStaleByTime(Ba(i.staleTime,n))?n.fetch(i):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Wi).catch(Wi)}fetchInfiniteQuery(t){return t.behavior=Ym(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Wi).catch(Wi)}ensureInfiniteQueryData(t){return t.behavior=Ym(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return F1.isOnline()?S(this,ka).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,yt)}getMutationCache(){return S(this,ka)}getDefaultOptions(){return S(this,Sa)}setDefaultOptions(t){D(this,Sa,t)}setQueryDefaults(t,i){S(this,Ly).set(Nr(t),{queryKey:t,defaultOptions:i})}getQueryDefaults(t){const i=[...S(this,Ly).values()],n={};return i.forEach(r=>{qf(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,i){S(this,zy).set(Nr(t),{mutationKey:t,defaultOptions:i})}getMutationDefaults(t){const i=[...S(this,zy).values()],n={};return i.forEach(r=>{qf(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const i={...S(this,Sa).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return i.queryHash||(i.queryHash=Xv(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===X5&&(i.enabled=!1),i}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...S(this,Sa).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){S(this,yt).clear(),S(this,ka).clear()}},d(fu,"on"),fu),yt=new WeakMap,ka=new WeakMap,Sa=new WeakMap,Ly=new WeakMap,zy=new WeakMap,Pa=new WeakMap,_y=new WeakMap,Iy=new WeakMap,p(wO,"QueryClient"),wO),_i,ze,hg,xi,nc,Zy,Ca,xs,dg,Wy,Vy,sc,rc,Qa,Dy,mt,qy,gO,vO,bO,OO,$O,xO,kO,gC,SO,yu,rA=(SO=(yu=class extends ly{constructor(t,i){super(),j(this,mt),j(this,_i),j(this,ze),j(this,hg),j(this,xi),j(this,nc),j(this,Zy),j(this,Ca),j(this,xs),j(this,dg),j(this,Wy),j(this,Vy),j(this,sc),j(this,rc),j(this,Qa),j(this,Dy,new Set),this.options=i,D(this,_i,t),D(this,xs,null),D(this,Ca,X1()),this.options.experimental_prefetchInRender||S(this,Ca).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,ze).addObserver(this),lx(S(this,ze),this.options)?ge(this,mt,qy).call(this):this.updateResult(),ge(this,mt,OO).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return H1(S(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return H1(S(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ge(this,mt,$O).call(this),ge(this,mt,xO).call(this),S(this,ze).removeObserver(this)}setOptions(t){const i=this.options,n=S(this,ze);if(this.options=S(this,_i).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ki(this.options.enabled,S(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ge(this,mt,kO).call(this),S(this,ze).setOptions(this.options),i._defaulted&&!Hm(this.options,i)&&S(this,_i).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,ze),observer:this});const r=this.hasListeners();r&&cx(S(this,ze),n,this.options,i)&&ge(this,mt,qy).call(this),this.updateResult(),r&&(S(this,ze)!==n||Ki(this.options.enabled,S(this,ze))!==Ki(i.enabled,S(this,ze))||Ba(this.options.staleTime,S(this,ze))!==Ba(i.staleTime,S(this,ze)))&&ge(this,mt,gO).call(this);const a=ge(this,mt,vO).call(this);r&&(S(this,ze)!==n||Ki(this.options.enabled,S(this,ze))!==Ki(i.enabled,S(this,ze))||a!==S(this,Qa))&&ge(this,mt,bO).call(this,a)}getOptimisticResult(t){const i=S(this,_i).getQueryCache().build(S(this,_i),t),n=this.createResult(i,t);return oA(this,n)&&(D(this,xi,n),D(this,Zy,this.options),D(this,nc,S(this,ze).state)),n}getCurrentResult(){return S(this,xi)}trackResult(t,i){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:p(()=>(this.trackProp(r),i==null||i(r),t[r]),"get")})}),n}trackProp(t){S(this,Dy).add(t)}getCurrentQuery(){return S(this,ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const i=S(this,_i).defaultQueryOptions(t),n=S(this,_i).getQueryCache().build(S(this,_i),i);return n.fetch().then(()=>this.createResult(n,i))}fetch(t){return ge(this,mt,qy).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,xi)))}createResult(t,i){var n;const r=S(this,ze),a=this.options,o=S(this,xi),l=S(this,nc),c=S(this,Zy),h=t!==r?t.state:S(this,hg),{state:u}=t;let f={...u},y=!1,w;if(i._optimisticResults){const I=this.hasListeners(),q=!I&&lx(t,i),B=I&&cx(t,r,i,a);(q||B)&&(f={...f,...K5(u.data,t.options)}),i._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:O,status:x}=f;if(i.select&&f.data!==void 0)if(o&&f.data===(l==null?void 0:l.data)&&i.select===S(this,dg))w=S(this,Wy);else try{D(this,dg,i.select),w=i.select(f.data),w=B1(o==null?void 0:o.data,w,i),D(this,Wy,w),D(this,xs,null)}catch(I){D(this,xs,I)}else w=f.data;if(i.placeholderData!==void 0&&w===void 0&&x==="pending"){let I;if(o!=null&&o.isPlaceholderData&&i.placeholderData===(c==null?void 0:c.placeholderData))I=o.data;else if(I=typeof i.placeholderData=="function"?i.placeholderData((n=S(this,Vy))==null?void 0:n.state.data,S(this,Vy)):i.placeholderData,i.select&&I!==void 0)try{I=i.select(I),D(this,xs,null)}catch(q){D(this,xs,q)}I!==void 0&&(x="success",w=B1(o==null?void 0:o.data,I,i),y=!0)}S(this,xs)&&(g=S(this,xs),w=S(this,Wy),O=Date.now(),x="error");const $=f.fetchStatus==="fetching",C=x==="pending",A=x==="error",E=C&&$,R=w!==void 0,z={status:x,fetchStatus:f.fetchStatus,isPending:C,isSuccess:x==="success",isError:A,isInitialLoading:E,isLoading:E,data:w,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:O,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>h.dataUpdateCount||f.errorUpdateCount>h.errorUpdateCount,isFetching:$,isRefetching:$&&!C,isLoadingError:A&&!R,isPaused:f.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:A&&R,isStale:Nv(t,i),refetch:this.refetch,promise:S(this,Ca)};if(this.options.experimental_prefetchInRender){const I=p(ne=>{z.status==="error"?ne.reject(z.error):z.data!==void 0&&ne.resolve(z.data)},"finalizeThenableIfPossible"),q=p(()=>{const ne=D(this,Ca,z.promise=X1());I(ne)},"recreateThenable"),B=S(this,Ca);switch(B.status){case"pending":t.queryHash===r.queryHash&&I(B);break;case"fulfilled":(z.status==="error"||z.data!==B.value)&&q();break;case"rejected":(z.status!=="error"||z.error!==B.reason)&&q();break}}return z}updateResult(){const t=S(this,xi),i=this.createResult(S(this,ze),this.options);if(D(this,nc,S(this,ze).state),D(this,Zy,this.options),S(this,nc).data!==void 0&&D(this,Vy,S(this,ze)),Hm(i,t))return;D(this,xi,i);const n=p(()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!S(this,Dy).size)return!0;const o=new Set(a??S(this,Dy));return this.options.throwOnError&&o.add("error"),Object.keys(S(this,xi)).some(l=>{const c=l;return S(this,xi)[c]!==t[c]&&o.has(c)})},"shouldNotifyListeners");ge(this,mt,gC).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ge(this,mt,OO).call(this)}},d(yu,"un"),yu),_i=new WeakMap,ze=new WeakMap,hg=new WeakMap,xi=new WeakMap,nc=new WeakMap,Zy=new WeakMap,Ca=new WeakMap,xs=new WeakMap,dg=new WeakMap,Wy=new WeakMap,Vy=new WeakMap,sc=new WeakMap,rc=new WeakMap,Qa=new WeakMap,Dy=new WeakMap,mt=new WeakSet,qy=p(function(s){ge(this,mt,kO).call(this);let t=S(this,ze).fetch(this.options,s);return s!=null&&s.throwOnError||(t=t.catch(Wi)),t},"#executeFetch"),gO=p(function(){ge(this,mt,$O).call(this);const s=Ba(this.options.staleTime,S(this,ze));if(Df||S(this,xi).isStale||!U1(s))return;const t=F5(S(this,xi).dataUpdatedAt,s)+1;D(this,sc,setTimeout(()=>{S(this,xi).isStale||this.updateResult()},t))},"#updateStaleTimeout"),vO=p(function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,ze)):this.options.refetchInterval)??!1},"#computeRefetchInterval"),bO=p(function(s){ge(this,mt,xO).call(this),D(this,Qa,s),!(Df||Ki(this.options.enabled,S(this,ze))===!1||!U1(S(this,Qa))||S(this,Qa)===0)&&D(this,rc,setInterval(()=>{(this.options.refetchIntervalInBackground||H5.isFocused())&&ge(this,mt,qy).call(this)},S(this,Qa)))},"#updateRefetchInterval"),OO=p(function(){ge(this,mt,gO).call(this),ge(this,mt,bO).call(this,ge(this,mt,vO).call(this))},"#updateTimers"),$O=p(function(){S(this,sc)&&(clearTimeout(S(this,sc)),D(this,sc,void 0))},"#clearStaleTimeout"),xO=p(function(){S(this,rc)&&(clearInterval(S(this,rc)),D(this,rc,void 0))},"#clearRefetchInterval"),kO=p(function(){const s=S(this,_i).getQueryCache().build(S(this,_i),this.options);if(s===S(this,ze))return;const t=S(this,ze);D(this,ze,s),D(this,hg,s.state),this.hasListeners()&&(t==null||t.removeObserver(this),s.addObserver(this))},"#updateQuery"),gC=p(function(s){ti.batch(()=>{s.listeners&&this.listeners.forEach(t=>{t(S(this,xi))}),S(this,_i).getQueryCache().notify({query:S(this,ze),type:"observerResultsUpdated"})})},"#notify"),p(SO,"QueryObserver"),SO);function aA(s,t){return Ki(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}d(aA,"Om");p(aA,"shouldLoadOnMount");function lx(s,t){return aA(s,t)||s.state.data!==void 0&&H1(s,t,t.refetchOnMount)}d(lx,"vp");p(lx,"shouldFetchOnMount");function H1(s,t,i){if(Ki(t.enabled,s)!==!1){const n=typeof i=="function"?i(s):i;return n==="always"||n!==!1&&Nv(s,t)}return!1}d(H1,"hh");p(H1,"shouldFetchOn");function cx(s,t,i,n){return(s!==t||Ki(n.enabled,s)===!1)&&(!i.suspense||s.state.status!=="error")&&Nv(s,i)}d(cx,"gp");p(cx,"shouldFetchOptionally");function Nv(s,t){return Ki(t.enabled,s)!==!1&&s.isStaleByTime(Ba(t.staleTime,s))}d(Nv,"iu");p(Nv,"isStale");function oA(s,t){return!Hm(s.getCurrentResult(),t)}d(oA,"Rm");p(oA,"shouldAssignObserverCurrentProperties");var PO,mu,LU=(PO=(mu=class extends rA{constructor(t,i){super(t,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:Ym()})}getOptimisticResult(t){return t.behavior=Ym(),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,i){var n,r;const{state:a}=t,o=super.createResult(t,i),{isFetching:l,isRefetching:c,isError:h,isRefetchError:u}=o,f=(r=(n=a.fetchMeta)==null?void 0:n.fetchMore)==null?void 0:r.direction,y=h&&f==="forward",w=l&&f==="forward",g=h&&f==="backward",O=l&&f==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:nA(i,a.data),hasPreviousPage:sA(i,a.data),isFetchNextPageError:y,isFetchingNextPage:w,isFetchPreviousPageError:g,isFetchingPreviousPage:O,isRefetchError:u&&!y&&!g,isRefetching:c&&!w&&!O}}},d(mu,"pn"),mu),p(PO,"InfiniteQueryObserver"),PO),Ma,Ta,Ii,nr,Ra,ug,CO,QO,wu,qe=(QO=(wu=class extends ly{constructor(t,i){super(),j(this,Ra),j(this,Ma),j(this,Ta),j(this,Ii),j(this,nr),D(this,Ma,t),this.setOptions(i),this.bindMethods(),ge(this,Ra,ug).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const n=this.options;this.options=S(this,Ma).defaultMutationOptions(t),Hm(this.options,n)||S(this,Ma).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,Ii),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Nr(n.mutationKey)!==Nr(this.options.mutationKey)?this.reset():((i=S(this,Ii))==null?void 0:i.state.status)==="pending"&&S(this,Ii).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=S(this,Ii))==null||t.removeObserver(this)}onMutationUpdate(t){ge(this,Ra,ug).call(this),ge(this,Ra,CO).call(this,t)}getCurrentResult(){return S(this,Ta)}reset(){var t;(t=S(this,Ii))==null||t.removeObserver(this),D(this,Ii,void 0),ge(this,Ra,ug).call(this),ge(this,Ra,CO).call(this)}mutate(t,i){var n;return D(this,nr,i),(n=S(this,Ii))==null||n.removeObserver(this),D(this,Ii,S(this,Ma).getMutationCache().build(S(this,Ma),this.options)),S(this,Ii).addObserver(this),S(this,Ii).execute(t)}},d(wu,"yn"),wu),Ma=new WeakMap,Ta=new WeakMap,Ii=new WeakMap,nr=new WeakMap,Ra=new WeakSet,ug=p(function(){var s;const t=((s=S(this,Ii))==null?void 0:s.state)??J5();D(this,Ta,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},"#updateResult"),CO=p(function(s){ti.batch(()=>{var t,i,n,r,a,o,l,c;if(S(this,nr)&&this.hasListeners()){const h=S(this,Ta).variables,u=S(this,Ta).context;(s==null?void 0:s.type)==="success"?((i=(t=S(this,nr)).onSuccess)==null||i.call(t,s.data,h,u),(r=(n=S(this,nr)).onSettled)==null||r.call(n,s.data,null,h,u)):(s==null?void 0:s.type)==="error"&&((o=(a=S(this,nr)).onError)==null||o.call(a,s.error,h,u),(c=(l=S(this,nr)).onSettled)==null||c.call(l,void 0,s.error,h,u))}this.listeners.forEach(h=>{h(S(this,Ta))})})},"#notify"),p(QO,"MutationObserver"),QO);function tS(s){return s}d(tS,"Wy");p(tS,"defaultTransformerFn");function lA(s){return{mutationKey:s.options.mutationKey,state:s.state,...s.options.scope&&{scope:s.options.scope},...s.meta&&{meta:s.meta}}}d(lA,"Im");p(lA,"dehydrateMutation");function cA(s,t,i){var n;return{state:{...s.state,...s.state.data!==void 0&&{data:t(s.state.data)}},queryKey:s.queryKey,queryHash:s.queryHash,...s.state.status==="pending"&&{promise:(n=s.promise)==null?void 0:n.then(t).catch(r=>i(r)?Promise.reject(new Error("redacted")):Promise.reject(r))},...s.meta&&{meta:s.meta}}}d(cA,"Tm");p(cA,"dehydrateQuery");function hA(s){return s.state.isPaused}d(hA,"Fm");p(hA,"defaultShouldDehydrateMutation");function dA(s){return s.state.status==="success"}d(dA,"Dm");p(dA,"defaultShouldDehydrateQuery");function uA(s){return!0}d(uA,"Hm");p(uA,"defaultShouldRedactErrors");function pA(s,t={}){var i,n,r,a;const o=t.shouldDehydrateMutation??((i=s.getDefaultOptions().dehydrate)==null?void 0:i.shouldDehydrateMutation)??hA,l=s.getMutationCache().getAll().flatMap(y=>o(y)?[lA(y)]:[]),c=t.shouldDehydrateQuery??((n=s.getDefaultOptions().dehydrate)==null?void 0:n.shouldDehydrateQuery)??dA,h=t.shouldRedactErrors??((r=s.getDefaultOptions().dehydrate)==null?void 0:r.shouldRedactErrors)??uA,u=t.serializeData??((a=s.getDefaultOptions().dehydrate)==null?void 0:a.serializeData)??tS,f=s.getQueryCache().getAll().flatMap(y=>c(y)?[cA(y,u,h)]:[]);return{mutations:l,queries:f}}d(pA,"Vm");p(pA,"dehydrate");function fA(s,t,i){var n;if(typeof t!="object"||t===null)return;const r=s.getMutationCache(),a=s.getQueryCache(),o=((n=s.getDefaultOptions().hydrate)==null?void 0:n.deserializeData)??tS,l=t.mutations||[],c=t.queries||[];l.forEach(({state:h,...u})=>{var f,y;r.build(s,{...(f=s.getDefaultOptions().hydrate)==null?void 0:f.mutations,...(y=i==null?void 0:i.defaultOptions)==null?void 0:y.mutations,...u},h)}),c.forEach(({queryKey:h,state:u,queryHash:f,meta:y,promise:w})=>{var g,O;let x=a.get(f);const $=u.data===void 0?u.data:o(u.data);if(x){if(x.state.dataUpdatedAt<u.dataUpdatedAt){const{fetchStatus:C,...A}=u;x.setState({...A,data:$})}}else x=a.build(s,{...(g=s.getDefaultOptions().hydrate)==null?void 0:g.queries,...(O=i==null?void 0:i.defaultOptions)==null?void 0:O.queries,queryKey:h,queryHash:f,meta:y},{...u,data:$,fetchStatus:"idle"});if(w){const C=Promise.resolve(w).then(o);x.fetch(void 0,{initialPromise:C})}})}d(fA,"Bm");p(fA,"hydrate");var Se=(s=>(s.Chat="d65dd4bc-418e-403c-9f56-f9cf4da931ed",s.Comments="88f96a08-c6c1-4eac-a0bd-5bf8fba1a3fd",s.Files="523edd88-4bbf-4547-b60f-2859a6d2ddc1",s.Posts="5ebfa152-de85-48da-82dd-30a1b560c313",s.ChatRoom="edb400ac-839b-45a7-b2a8-6a01820d1c44",s.PrivateChat="7e14f418-8f15-46f4-b182-f619b671e470",s.BotChat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",s))(Se||{}),vn=(s=>(s.Chat="chat",s.Comments="comments",s.Files="files",s.Posts="posts",s.ChatRoom="chat_room",s.PrivateChat="private_chat",s.BotChat="bot_chat",s))(vn||{}),yA=(s=>(s["d65dd4bc-418e-403c-9f56-f9cf4da931ed"]="chat",s["88f96a08-c6c1-4eac-a0bd-5bf8fba1a3fd"]="comments",s["523edd88-4bbf-4547-b60f-2859a6d2ddc1"]="files",s["5ebfa152-de85-48da-82dd-30a1b560c313"]="posts",s["edb400ac-839b-45a7-b2a8-6a01820d1c44"]="chat_room",s["7e14f418-8f15-46f4-b182-f619b671e470"]="private_chat",s["2352a1c6-abc6-420e-8b85-ca7d5aed8779"]="bot_chat",s))(yA||{}),mA=(s=>(s.chat="d65dd4bc-418e-403c-9f56-f9cf4da931ed",s.comments="88f96a08-c6c1-4eac-a0bd-5bf8fba1a3fd",s.files="523edd88-4bbf-4547-b60f-2859a6d2ddc1",s.posts="5ebfa152-de85-48da-82dd-30a1b560c313",s.chat_room="edb400ac-839b-45a7-b2a8-6a01820d1c44",s.private_chat="7e14f418-8f15-46f4-b182-f619b671e470",s.bot_chat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",s))(mA||{}),wA=(s=>(s["2352a1c6-abc6-420e-8b85-ca7d5aed8779"]="bot_chat",s))(wA||{}),gA=(s=>(s.bot_chat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",s))(gA||{}),nn=(s=>(s.Unknown="unknown",s))(nn||{}),hr=(s=>(s.None="none",s.Read="read",s.Write="write",s.Admin="admin",s))(hr||{}),qo=(s=>(s.List="list",s.Read="read",s.Create="create",s.Update="update",s.Delete="delete",s.Admin="admin",s))(qo||{}),sn=(s=>(s.App="app",s.File="file",s.Message="message",s.User="user",s.Comment="comment",s.Post="post",s))(sn||{});function Hr(s,t,i,n,r,a="GET"){return{queryKey:t,queryFn:p(async()=>{const o=await s.fetch(i||"/api/"+t.join("/"),{method:a,body:r});if(o.ok)return await o.json();throw new Error(`Error calling ${i||"/api/"+t.join("/")}`)},"queryFn"),...n}}d(Hr,"Js");p(Hr,"getApiOptions");async function Y1(s,t,i,n,r,a="GET",o=!1){const l=s.queryClient,c=Hr(s,t,i,n,r,a);return o?(c.staleTime=1,await l.fetchQuery(c)):await l.ensureQueryData(c)}d(Y1,"ph");p(Y1,"getApi");function vA(s,t,i=nn.Unknown,n){return i===nn.Unknown?Y1(s,["apps",t]):Y1(s,["apps",t],void 0,void 0,JSON.stringify({type:i,...n}),"PUT")}d(vA,"Um");p(vA,"getApp");function bA(s,t,i=nn.Unknown,n,r){return{queryKey:["apps",t],queryFn:p(async()=>{const a=[s.fetch(`/api/apps/${t}`)];i!==nn.Unknown&&(r!=null&&r.name&&a.push(s.fetch(`/api/apps/${t}`,{method:"PATCH",body:JSON.stringify({name:r.name})})),a.push(s.fetch("/api/apps",{method:"POST",body:JSON.stringify({uid:t,type:i,members:n,...r})})));const o=(await Promise.allSettled(a)).findLast(c=>{var h;return c.status==="fulfilled"&&((h=c.value)==null?void 0:h.ok)}),l=(o==null?void 0:o.status)==="fulfilled"&&o.value;if(l)return await l.json();throw new Error(`Error getting or creating app ${t}`)},"queryFn")}}d(bA,"qm");p(bA,"getOrCreateAppOptions");function OA(s){return{mutationFn:p(async({name:t,members:i,type:n,uid:r})=>await(await s.fetch("/api/apps",{method:"POST",body:JSON.stringify({name:t,members:i,type:n,uid:r})})).json(),"mutationFn"),onSettled:p(async()=>{await s.queryClient.invalidateQueries({queryKey:["apps"]})},"onSettled")}}d(OA,"Nm");p(OA,"getCreateAppMutationOptions");function iS(s){return new qe(s.queryClient,OA(s))}d(iS,"Yy");p(iS,"getCreateAppMutation");function nS(s,t){const i=s.queryClient,n=["apps",t.uid];return{mutationFn:p(async({subscribe:r})=>{if(t.id>=1){const a=await s.fetch(`/api/apps/${t.id}/${r?"subscribe":"unsubscribe"}`,{method:"POST"});if(!a.ok)throw await a.json()}else throw new Error(`Could not subscribe to app ${t.uid}.`)},"mutationFn"),onMutate:p(async r=>{let a;return i.setQueryData(n,o=>(a=o.is_subscribed,{...o,is_subscribed:r.subscribe})),{previousSubscribe:a,subscribe:r.subscribe}},"onMutate"),onError(r,a,o){o&&o.previousSubscribe!==void 0&&i.setQueryData(n,l=>({...l,is_subscribed:o==null?void 0:o.previousSubscribe}))}}}d(nS,"Xy");p(nS,"getAppSubscribeMutationOptions");function $A(s,t=[Se.ChatRoom,Se.PrivateChat],i,n={}){const r=new URLSearchParams({count_only:"true",unread:"true"});i&&r.append("member",i),t==null||t.forEach(o=>r.append("type",o));const a=`/api/apps?${r.toString()}`;return Hr(s,["apps","badge",t],a,n)}d($A,"jm");p($A,"getBadgeOptions$1");function xA(s,t={},i,n,r,a,o){return{...t,initialPageParam:0,queryKey:["apps","list",i,n,a,o],queryFn:p(async l=>{var c;const h=new URLSearchParams;n&&h.append("member",n),l.pageParam&&h.append("skip",(c=l.pageParam)==null?void 0:c.toString()),i==null||i.forEach(w=>h.append("type",w)),h.append("order_by",a);const u=r==null?void 0:r();u&&h.append("q",u),h.append("uid","false");const f=`/api/apps?${h.toString()}`,y=await(await s.fetch(f)).json();return y.data=y.data||[],y},"queryFn"),getNextPageParam:p(l=>{if(l.end&&(l==null?void 0:l.end)<(l==null?void 0:l.count))return l.end},"getNextPageParam")}}d(xA,"Wm");p(xA,"getAppListOptions");const zU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r);const a=this;this.api={apps:{async getApp(o){return await vA(a,o)}}}}},d(i,"t"),i),p(t,"WeavyApi"),t},"WeavyApiMixin"),_U=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this._whenTokenFactory=new Promise(a=>{this._resolveTokenFactory=a}),this._whenUrlAndTokenFactory=new Promise(a=>{this._resolveUrlAndTokenFactory=a}),this._whenTokenIsValid=new Promise(a=>{this._resolveTokenIsValid=a}),this._tokenPromise=null,this._token="",this._validTokenFromFactory=async(a=!1)=>{var o,l;const c=[this.whenTokenFactory()];this.tokenFactoryRetryDelay!==1/0&&c.push(new Promise(u=>setTimeout(u,this.tokenFactoryRetryDelay))),await Promise.race(c);const h=await((o=this.tokenFactory)==null?void 0:o.call(this,a))??"";if(this._validateToken(h)){if(a&&h===this._token&&this.tokenFactoryRetryDelay!==1/0)return await new Promise(u=>setTimeout(u,this.tokenFactoryRetryDelay)),await this._validTokenFromFactory(!0)}else if(this._whenTokenFactory=new Promise(u=>{this._resolveTokenFactory=u}),!a)return await this._validTokenFromFactory(!1);if(!h)throw new TypeError("Could not get a valid token from tokenFactory.");return(l=this._resolveTokenFactory)==null||l.call(this,!0),this.whenUrl().then(this._resolveUrlAndTokenFactory),h},Promise.all([this.whenUrl(),this.whenTokenFactory()]).then(()=>{var a;this.url&&this.tokenFactory&&((a=this._resolveUrlAndTokenFactory)==null||a.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(r){if(this.isDestroyed)throw new kt;this._tokenFactory&&this._tokenFactory!==r&&this.whenTokenFactory().then(()=>{this.queryClient.refetchQueries({stale:!0})}),this._tokenFactory=r??void 0,this._tokenFactory&&queueMicrotask(()=>{var a;(a=this._resolveTokenFactory)==null||a.call(this,!0)})}get tokenUrl(){return this._tokenUrl}set tokenUrl(r){if(this.isDestroyed)throw new kt;try{if(typeof r=="string")r&&(this._tokenUrl=new URL(r,window.location.toString()));else if(r instanceof URL)this._tokenUrl=r;else if(r==null)this._tokenUrl=void 0;else throw-1}catch(a){throw new Error("Invalid url",a)}this._tokenUrl&&!this.tokenFactory&&(this.tokenFactory=async a=>{if(!this.tokenUrl)throw new Error("tokenURL property is not valid");const o=new URL(this.tokenUrl);a?o.searchParams.set("refresh","true"):o.searchParams.delete("refresh");const l=await fetch(o);if(l.ok){const c=await l.json();if(c.access_token===void 0)throw new Error("Token response does not contain required property: access_token");return c.access_token}else throw new Error("Could not get access token from server!")})}_validateToken(r){var a;if(!r)return!1;if(typeof r!="string")throw new TypeError(`You have provided an invalid string access token of type ${typeof r}.`);if(typeof r=="string"&&!r.startsWith("wyu_"))throw r.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(a=this._resolveTokenIsValid)==null||a.call(this,r),!0}async getToken(r=!1){if(this.isDestroyed)throw new kt;if(this._token&&!r)return this._token;if(this._tokenPromise)return await this._tokenPromise;this._tokenPromise=new Promise((a,o)=>{this._validTokenFromFactory(r).then(a).catch(o),this.tokenFactoryTimeout!==1/0&&setTimeout(()=>o(new Error("Token factory timeout.")),this.tokenFactoryTimeout),window.addEventListener("offline",()=>o(new Error("Network changed.")),{once:!0}),window.addEventListener("online",()=>o(new Error("Network changed.")),{once:!0})});try{const a=await this._tokenPromise;return this._tokenPromise=null,this._token=a,this._token}catch(a){throw this._tokenPromise=null,a}}},d(i,"t"),i),p(t,"WeavyAuthentication"),t},"WeavyAuthenticationMixin");var pg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kA(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}d(kA,"Gm");p(kA,"getDefaultExportFromCjs");function Ig(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}d(Ig,"Vd");p(Ig,"commonjsRequire");var vC={exports:{}},bC;function SA(){return bC||(bC=1,function(s,t){var i;i=p(()=>(()=>{var wl,gl,vl,bl,Ol,$l,xl,kl,Sl,Pl,Cl,Ql,ms,Ml,Tl,Rl,Al,El,ws,Ll,zl,_l,Il,wa,Zl,Wl,Vl,Dl,ql,Ul,jl,Bl,ga,Fl,Xl,Nl;var n={d:p((F,v)=>{for(var P in v)n.o(v,P)&&!n.o(F,P)&&Object.defineProperty(F,P,{enumerable:!0,get:v[P]})},"d")};n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(F,v)=>Object.prototype.hasOwnProperty.call(F,v),n.r=F=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(F,"t",{value:!0})};var r,a={};n.r(a),n.d(a,{AbortError:p(()=>f,"AbortError"),DefaultHttpClient:p(()=>wP,"DefaultHttpClient"),HttpClient:p(()=>B,"HttpClient"),HttpError:p(()=>l,"HttpError"),HttpResponse:p(()=>I,"HttpResponse"),HttpTransportType:p(()=>xt,"HttpTransportType"),HubConnection:p(()=>SP,"HubConnection"),HubConnectionBuilder:p(()=>OI,"HubConnectionBuilder"),HubConnectionState:p(()=>Ke,"HubConnectionState"),JsonHubProtocol:p(()=>WP,"JsonHubProtocol"),LogLevel:p(()=>r,"LogLevel"),MessageType:p(()=>Ce,"MessageType"),NullLogger:p(()=>se,"NullLogger"),Subject:p(()=>OP,"Subject"),TimeoutError:p(()=>h,"TimeoutError"),TransferFormat:p(()=>Nt,"TransferFormat"),VERSION:p(()=>G,"VERSION")});const o=(wl=class extends Error{constructor(v,P){const L=new.target.prototype;super(`${v}: Status code '${P}'`),this.statusCode=P,this.__proto__=L}},d(wl,"ad"),wl);p(o,"i");let l=o;const c=(gl=class extends Error{constructor(v="A timeout occurred."){const P=new.target.prototype;super(v),this.__proto__=P}},d(gl,"od"),gl);p(c,"n");let h=c;const u=(vl=class extends Error{constructor(v="An abort occurred."){const P=new.target.prototype;super(v),this.__proto__=P}},d(vl,"cd"),vl);p(u,"r");let f=u;const y=(bl=class extends Error{constructor(v,P){const L=new.target.prototype;super(v),this.transport=P,this.errorType="UnsupportedTransportError",this.__proto__=L}},d(bl,"ld"),bl);p(y,"o");let w=y;const g=(Ol=class extends Error{constructor(v,P){const L=new.target.prototype;super(v),this.transport=P,this.errorType="DisabledTransportError",this.__proto__=L}},d(Ol,"dd"),Ol);p(g,"h");let O=g;const x=($l=class extends Error{constructor(v,P){const L=new.target.prototype;super(v),this.transport=P,this.errorType="FailedToStartTransportError",this.__proto__=L}},d($l,"hd"),$l);p(x,"c");let $=x;const C=(xl=class extends Error{constructor(v){const P=new.target.prototype;super(v),this.errorType="FailedToNegotiateWithServerError",this.__proto__=P}},d(xl,"ud"),xl);p(C,"a");let A=C;const E=(kl=class extends Error{constructor(v,P){const L=new.target.prototype;super(v),this.innerErrors=P,this.__proto__=L}},d(kl,"pd"),kl);p(E,"l");let R=E;const z=(Sl=class{constructor(v,P,L){this.statusCode=v,this.statusText=P,this.content=L}},d(Sl,"yd"),Sl);p(z,"u");let I=z;const q=(Pl=class{get(v,P){return this.send({...P,method:"GET",url:v})}post(v,P){return this.send({...P,method:"POST",url:v})}delete(v,P){return this.send({...P,method:"DELETE",url:v})}getCookieString(v){return""}},d(Pl,"wd"),Pl);p(q,"d");let B=q;(function(F){F[F.Trace=0]="Trace",F[F.Debug=1]="Debug",F[F.Information=2]="Information",F[F.Warning=3]="Warning",F[F.Error=4]="Error",F[F.Critical=5]="Critical",F[F.None=6]="None"})(r||(r={}));const ne=(Cl=class{constructor(){}log(v,P){}},d(Cl,"fd"),Cl);p(ne,"f");let se=ne;se.instance=new se;const G="8.0.7",ce=(Ql=class{static isRequired(v,P){if(v==null)throw new Error(`The '${P}' argument is required.`)}static isNotEmpty(v,P){if(!v||v.match(/^\s*$/))throw new Error(`The '${P}' argument should not be empty.`)}static isIn(v,P,L){if(!(v in P))throw new Error(`Unknown ${L} value: ${v}.`)}},d(Ql,"md"),Ql);p(ce,"w");let te=ce;const Me=(ms=class{static get isBrowser(){return!ms.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!ms.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!ms.isNode&&typeof window=="object"&&window.document===void 0}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}},d(ms,"$r"),ms);p(Me,"g");let $e=Me;function Ue(F,v){let P="";return Ve(F)?(P=`Binary data of length ${F.byteLength}`,v&&(P+=`. Content: '${function(L){const _=new Uint8Array(L);let W="";return _.forEach(U=>{W+=`0x${U<16?"0":""}${U.toString(16)} `}),W.substr(0,W.length-1)}(F)}'`)):typeof F=="string"&&(P=`String data of length ${F.length}`,v&&(P+=`. Content: '${F}'`)),P}d(Ue,"j"),p(Ue,"m");function Ve(F){return F&&typeof ArrayBuffer<"u"&&(F instanceof ArrayBuffer||F.constructor&&F.constructor.name==="ArrayBuffer")}d(Ve,"O"),p(Ve,"y");async function De(F,v,P,L,_,W){const U={},[he,de]=ft();U[he]=de,F.log(r.Trace,`(${v} transport) sending data. ${Ue(_,W.logMessageContent)}.`);const Te=Ve(_)?"arraybuffer":"text",He=await P.post(L,{content:_,headers:{...U,...W.headers},responseType:Te,timeout:W.timeout,withCredentials:W.withCredentials});F.log(r.Trace,`(${v} transport) request complete. Response status: ${He.statusCode}.`)}d(De,"D"),p(De,"b");const bi=(Ml=class{constructor(v,P){this.i=v,this.h=P}dispose(){const v=this.i.observers.indexOf(this.h);v>-1&&this.i.observers.splice(v,1),this.i.observers.length===0&&this.i.cancelCallback&&this.i.cancelCallback().catch(P=>{})}},d(Ml,"vd"),Ml);p(bi,"v");let At=bi;const ht=(Tl=class{constructor(v){this.l=v,this.out=console}log(v,P){if(v>=this.l){const L=`[${new Date().toISOString()}] ${r[v]}: ${P}`;switch(v){case r.Critical:case r.Error:this.out.error(L);break;case r.Warning:this.out.warn(L);break;case r.Information:this.out.info(L);break;default:this.out.log(L)}}}},d(Tl,"gd"),Tl);p(ht,"E");let it=ht;function ft(){let F="X-SignalR-User-Agent";return $e.isNode&&(F="User-Agent"),[F,Oi(G,Ei(),$e.isNode?"NodeJS":"Browser",Hi())]}d(ft,"U"),p(ft,"$");function Oi(F,v,P,L){let _="Microsoft SignalR/";const W=F.split(".");return _+=`${W[0]}.${W[1]}`,_+=` (${F}; `,_+=v&&v!==""?`${v}; `:"Unknown OS; ",_+=`${P}`,_+=L?`; ${L}`:"; Unknown Runtime Version",_+=")",_}d(Oi,"W"),p(Oi,"C");function Ei(){if(!$e.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}d(Ei,"wt"),p(Ei,"S");function Hi(){if($e.isNode)return process.versions.node}d(Hi,"ft"),p(Hi,"k");function Ne(F){return F.stack?F.stack:F.message?F.message:`${F}`}d(Ne,"ot"),p(Ne,"P");const pn=(Rl=class extends B{constructor(v){if(super(),this.u=v,typeof fetch>"u"||$e.isNode){const P=Ig;this.p=new(P("tough-cookie")).CookieJar,typeof fetch>"u"?this.m=P("node-fetch"):this.m=fetch,this.m=P("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(n.g!==void 0)return n.g;throw new Error("could not find global")}());if(typeof AbortController>"u"){const P=Ig;this.v=P("abort-controller")}else this.v=AbortController}async send(v){if(v.abortSignal&&v.abortSignal.aborted)throw new f;if(!v.method)throw new Error("No method defined.");if(!v.url)throw new Error("No url defined.");const P=new this.v;let L;v.abortSignal&&(v.abortSignal.onabort=()=>{P.abort(),L=new f});let _,W=null;if(v.timeout){const de=v.timeout;W=setTimeout(()=>{P.abort(),this.u.log(r.Warning,"Timeout from HTTP request."),L=new h},de)}v.content===""&&(v.content=void 0),v.content&&(v.headers=v.headers||{},Ve(v.content)?v.headers["Content-Type"]="application/octet-stream":v.headers["Content-Type"]="text/plain;charset=UTF-8");try{_=await this.m(v.url,{body:v.content,cache:"no-cache",credentials:v.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...v.headers},method:v.method,mode:"cors",redirect:"follow",signal:P.signal})}catch(de){throw L||(this.u.log(r.Warning,`Error from HTTP request. ${de}.`),de)}finally{W&&clearTimeout(W),v.abortSignal&&(v.abortSignal.onabort=null)}if(!_.ok){const de=await ml(_,"text");throw new l(de||_.statusText,_.status)}const U=ml(_,v.responseType),he=await U;return new I(_.status,_.statusText,he)}getCookieString(v){let P="";return $e.isNode&&this.p&&this.p.getCookies(v,(L,_)=>P=_.join("; ")),P}},d(Rl,"bd"),Rl);p(pn,"T");let ya=pn;function ml(F,v){let P;switch(v){case"arraybuffer":P=F.arrayBuffer();break;case"text":default:P=F.text();break;case"blob":case"document":case"json":throw new Error(`${v} is not supported.`)}return P}d(ml,"It"),p(ml,"I");const yP=(Al=class extends B{constructor(v){super(),this.u=v}send(v){return v.abortSignal&&v.abortSignal.aborted?Promise.reject(new f):v.method?v.url?new Promise((P,L)=>{const _=new XMLHttpRequest;_.open(v.method,v.url,!0),_.withCredentials=v.withCredentials===void 0||v.withCredentials,_.setRequestHeader("X-Requested-With","XMLHttpRequest"),v.content===""&&(v.content=void 0),v.content&&(Ve(v.content)?_.setRequestHeader("Content-Type","application/octet-stream"):_.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const W=v.headers;W&&Object.keys(W).forEach(U=>{_.setRequestHeader(U,W[U])}),v.responseType&&(_.responseType=v.responseType),v.abortSignal&&(v.abortSignal.onabort=()=>{_.abort(),L(new f)}),v.timeout&&(_.timeout=v.timeout),_.onload=()=>{v.abortSignal&&(v.abortSignal.onabort=null),_.status>=200&&_.status<300?P(new I(_.status,_.statusText,_.response||_.responseText)):L(new l(_.response||_.responseText||_.statusText,_.status))},_.onerror=()=>{this.u.log(r.Warning,`Error from HTTP request. ${_.status}: ${_.statusText}.`),L(new l(_.statusText,_.status))},_.ontimeout=()=>{this.u.log(r.Warning,"Timeout from HTTP request."),L(new h)},_.send(v.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}},d(Al,"xd"),Al);p(yP,"_");let cI=yP;const mP=(El=class extends B{constructor(v){if(super(),typeof fetch<"u"||$e.isNode)this.$=new ya(v);else{if(typeof XMLHttpRequest>"u")throw new Error("No usable HttpClient found.");this.$=new cI(v)}}send(v){return v.abortSignal&&v.abortSignal.aborted?Promise.reject(new f):v.method?v.url?this.$.send(v):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(v){return this.$.getCookieString(v)}},d(El,"$d"),El);p(mP,"H");let wP=mP;const gP=(ws=class{static write(v){return`${v}${ws.RecordSeparator}`}static parse(v){if(v[v.length-1]!==ws.RecordSeparator)throw new Error("Message is incomplete.");const P=v.split(ws.RecordSeparator);return P.pop(),P}},d(ws,"Cr"),ws);p(gP,"D");let ys=gP;ys.RecordSeparatorCode=30,ys.RecordSeparator=String.fromCharCode(ys.RecordSeparatorCode);const vP=(Ll=class{writeHandshakeRequest(v){return ys.write(JSON.stringify(v))}parseHandshakeResponse(v){let P,L;if(Ve(v)){const U=new Uint8Array(v),he=U.indexOf(ys.RecordSeparatorCode);if(he===-1)throw new Error("Message is incomplete.");const de=he+1;P=String.fromCharCode.apply(null,Array.prototype.slice.call(U.slice(0,de))),L=U.byteLength>de?U.slice(de).buffer:null}else{const U=v,he=U.indexOf(ys.RecordSeparator);if(he===-1)throw new Error("Message is incomplete.");const de=he+1;P=U.substring(0,de),L=U.length>de?U.substring(de):null}const _=ys.parse(P),W=JSON.parse(_[0]);if(W.type)throw new Error("Expected a handshake response from the server.");return[L,W]}},d(Ll,"Cd"),Ll);p(vP,"R");let hI=vP;var Ce,Ke;(function(F){F[F.Invocation=1]="Invocation",F[F.StreamItem=2]="StreamItem",F[F.Completion=3]="Completion",F[F.StreamInvocation=4]="StreamInvocation",F[F.CancelInvocation=5]="CancelInvocation",F[F.Ping=6]="Ping",F[F.Close=7]="Close",F[F.Ack=8]="Ack",F[F.Sequence=9]="Sequence"})(Ce||(Ce={}));const bP=(zl=class{constructor(){this.observers=[]}next(v){for(const P of this.observers)P.next(v)}error(v){for(const P of this.observers)P.error&&P.error(v)}complete(){for(const v of this.observers)v.complete&&v.complete()}subscribe(v){return this.observers.push(v),new At(this,v)}},d(zl,"kd"),zl);p(bP,"U");let OP=bP;const $P=(_l=class{constructor(v,P,L){this.C=1e5,this.S=[],this.k=0,this.P=!1,this.T=1,this.I=0,this._=0,this.H=!1,this.D=v,this.R=P,this.C=L}async A(v){const P=this.D.writeMessage(v);let L=Promise.resolve();if(this.U(v)){this.k++;let _=p(()=>{},"t"),W=p(()=>{},"i");Ve(P)?this._+=P.byteLength:this._+=P.length,this._>=this.C&&(L=new Promise((U,he)=>{_=U,W=he})),this.S.push(new uI(P,this.k,_,W))}try{this.H||await this.R.send(P)}catch{this.L()}await L}N(v){let P=-1;for(let L=0;L<this.S.length;L++){const _=this.S[L];if(_.q<=v.sequenceId)P=L,Ve(_.M)?this._-=_.M.byteLength:this._-=_.M.length,_.j();else{if(!(this._<this.C))break;_.j()}}P!==-1&&(this.S=this.S.slice(P+1))}W(v){if(this.P)return v.type===Ce.Sequence&&(this.P=!1,!0);if(!this.U(v))return!0;const P=this.T;return this.T++,P<=this.I?(P===this.I&&this.O(),!1):(this.I=P,this.O(),!0)}F(v){v.sequenceId>this.T?this.R.stop(new Error("Sequence ID greater than amount of messages we've received.")):this.T=v.sequenceId}L(){this.H=!0,this.P=!0}async B(){const v=this.S.length!==0?this.S[0].q:this.k+1;await this.R.send(this.D.writeMessage({type:Ce.Sequence,sequenceId:v}));const P=this.S;for(const L of P)await this.R.send(L.M);this.H=!1}X(v){v!=null||(v=new Error("Unable to reconnect to server."));for(const P of this.S)P.J(v)}U(v){switch(v.type){case Ce.Invocation:case Ce.StreamItem:case Ce.Completion:case Ce.StreamInvocation:case Ce.CancelInvocation:return!0;case Ce.Close:case Ce.Sequence:case Ce.Ping:case Ce.Ack:return!1}}O(){this.V===void 0&&(this.V=setTimeout(async()=>{try{this.H||await this.R.send(this.D.writeMessage({type:Ce.Ack,sequenceId:this.I}))}catch{}clearTimeout(this.V),this.V=void 0},1e3))}},d(_l,"_d"),_l);p($P,"L");let dI=$P;const xP=(Il=class{constructor(v,P,L,_){this.M=v,this.q=P,this.j=L,this.J=_}},d(Il,"Md"),Il);p(xP,"N");let uI=xP;(function(F){F.Disconnected="Disconnected",F.Connecting="Connecting",F.Connected="Connected",F.Disconnecting="Disconnecting",F.Reconnecting="Reconnecting"})(Ke||(Ke={}));const kP=(wa=class{static create(v,P,L,_,W,U,he){return new wa(v,P,L,_,W,U,he)}constructor(v,P,L,_,W,U,he){this.K=0,this.G=()=>{this.u.log(r.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")},te.isRequired(v,"connection"),te.isRequired(P,"logger"),te.isRequired(L,"protocol"),this.serverTimeoutInMilliseconds=W??3e4,this.keepAliveIntervalInMilliseconds=U??15e3,this.Y=he??1e5,this.u=P,this.D=L,this.connection=v,this.Z=_,this.tt=new hI,this.connection.onreceive=de=>this.et(de),this.connection.onclose=de=>this.st(de),this.it={},this.nt={},this.rt=[],this.ot=[],this.ht=[],this.ct=0,this.lt=!1,this.ut=Ke.Disconnected,this.dt=!1,this.ft=this.D.writeMessage({type:Ce.Ping})}get state(){return this.ut}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(v){if(this.ut!==Ke.Disconnected&&this.ut!==Ke.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!v)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=v}start(){return this.wt=this.gt(),this.wt}async gt(){if(this.ut!==Ke.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this.ut=Ke.Connecting,this.u.log(r.Debug,"Starting HubConnection.");try{await this.yt(),$e.isBrowser&&window.document.addEventListener("freeze",this.G),this.ut=Ke.Connected,this.dt=!0,this.u.log(r.Debug,"HubConnection connected successfully.")}catch(v){return this.ut=Ke.Disconnected,this.u.log(r.Debug,`HubConnection failed to start successfully because of error '${v}'.`),Promise.reject(v)}}async yt(){this.bt=void 0,this.lt=!1;const v=new Promise((P,L)=>{this.vt=P,this.Et=L});await this.connection.start(this.D.transferFormat);try{let P=this.D.version;this.connection.features.reconnect||(P=1);const L={protocol:this.D.name,version:P};if(this.u.log(r.Debug,"Sending handshake request."),await this.$t(this.tt.writeHandshakeRequest(L)),this.u.log(r.Information,`Using HubProtocol '${this.D.name}'.`),this.Ct(),this.St(),this.kt(),await v,this.bt)throw this.bt;this.connection.features.reconnect&&(this.Pt=new dI(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(P){throw this.u.log(r.Debug,`Hub handshake failed with error '${P}' during start(). Stopping HubConnection.`),this.Ct(),this.Tt(),await this.connection.stop(P),P}}async stop(){const v=this.wt;this.connection.features.reconnect=!1,this.It=this._t(),await this.It;try{await v}catch{}}_t(v){if(this.ut===Ke.Disconnected)return this.u.log(r.Debug,`Call to HubConnection.stop(${v}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this.ut===Ke.Disconnecting)return this.u.log(r.Debug,`Call to HttpConnection.stop(${v}) ignored because the connection is already in the disconnecting state.`),this.It;const P=this.ut;return this.ut=Ke.Disconnecting,this.u.log(r.Debug,"Stopping HubConnection."),this.Ht?(this.u.log(r.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.Ht),this.Ht=void 0,this.Dt(),Promise.resolve()):(P===Ke.Connected&&this.Rt(),this.Ct(),this.Tt(),this.bt=v||new f("The connection was stopped before the hub handshake could complete."),this.connection.stop(v))}async Rt(){try{await this.xt(this.At())}catch{}}stream(v,...P){const[L,_]=this.Ut(P),W=this.Lt(v,P,_);let U;const he=new OP;return he.cancelCallback=()=>{const de=this.Nt(W.invocationId);return delete this.it[W.invocationId],U.then(()=>this.xt(de))},this.it[W.invocationId]=(de,Te)=>{Te?he.error(Te):de&&(de.type===Ce.Completion?de.error?he.error(new Error(de.error)):he.complete():he.next(de.item))},U=this.xt(W).catch(de=>{he.error(de),delete this.it[W.invocationId]}),this.qt(L,U),he}$t(v){return this.kt(),this.connection.send(v)}xt(v){return this.Pt?this.Pt.A(v):this.$t(this.D.writeMessage(v))}send(v,...P){const[L,_]=this.Ut(P),W=this.xt(this.Mt(v,P,!0,_));return this.qt(L,W),W}invoke(v,...P){const[L,_]=this.Ut(P),W=this.Mt(v,P,!1,_);return new Promise((U,he)=>{this.it[W.invocationId]=(Te,He)=>{He?he(He):Te&&(Te.type===Ce.Completion?Te.error?he(new Error(Te.error)):U(Te.result):he(new Error(`Unexpected message type: ${Te.type}`)))};const de=this.xt(W).catch(Te=>{he(Te),delete this.it[W.invocationId]});this.qt(L,de)})}on(v,P){v&&P&&(v=v.toLowerCase(),this.nt[v]||(this.nt[v]=[]),this.nt[v].indexOf(P)===-1&&this.nt[v].push(P))}off(v,P){if(!v)return;v=v.toLowerCase();const L=this.nt[v];if(L)if(P){const _=L.indexOf(P);_!==-1&&(L.splice(_,1),L.length===0&&delete this.nt[v])}else delete this.nt[v]}onclose(v){v&&this.rt.push(v)}onreconnecting(v){v&&this.ot.push(v)}onreconnected(v){v&&this.ht.push(v)}et(v){if(this.Ct(),this.lt||(v=this.jt(v),this.lt=!0),v){const P=this.D.parseMessages(v,this.u);for(const L of P)if(!this.Pt||this.Pt.W(L))switch(L.type){case Ce.Invocation:this.Wt(L).catch(_=>{this.u.log(r.Error,`Invoke client method threw error: ${Ne(_)}`)});break;case Ce.StreamItem:case Ce.Completion:{const _=this.it[L.invocationId];if(_){L.type===Ce.Completion&&delete this.it[L.invocationId];try{_(L)}catch(W){this.u.log(r.Error,`Stream callback threw error: ${Ne(W)}`)}}break}case Ce.Ping:break;case Ce.Close:{this.u.log(r.Information,"Close message received from server.");const _=L.error?new Error("Server returned an error on close: "+L.error):void 0;L.allowReconnect===!0?this.connection.stop(_):this.It=this._t(_);break}case Ce.Ack:this.Pt&&this.Pt.N(L);break;case Ce.Sequence:this.Pt&&this.Pt.F(L);break;default:this.u.log(r.Warning,`Invalid message type: ${L.type}.`)}}this.St()}jt(v){let P,L;try{[L,P]=this.tt.parseHandshakeResponse(v)}catch(_){const W="Error parsing handshake response: "+_;this.u.log(r.Error,W);const U=new Error(W);throw this.Et(U),U}if(P.error){const _="Server returned handshake error: "+P.error;this.u.log(r.Error,_);const W=new Error(_);throw this.Et(W),W}return this.u.log(r.Debug,"Server handshake complete."),this.vt(),L}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 v=this.K-new Date().getTime();v<0&&(v=0),this.Ft=setTimeout(async()=>{if(this.ut===Ke.Connected)try{await this.$t(this.ft)}catch{this.Tt()}},v)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async Wt(v){const P=v.target.toLowerCase(),L=this.nt[P];if(!L)return this.u.log(r.Warning,`No client method with the name '${P}' found.`),void(v.invocationId&&(this.u.log(r.Warning,`No result given for '${P}' method and invocation ID '${v.invocationId}'.`),await this.xt(this.Bt(v.invocationId,"Client didn't provide a result.",null))));const _=L.slice(),W=!!v.invocationId;let U,he,de;for(const Te of _)try{const He=U;U=await Te.apply(this,v.arguments),W&&U&&He&&(this.u.log(r.Error,`Multiple results provided for '${P}'. Sending error to server.`),de=this.Bt(v.invocationId,"Client provided multiple results.",null)),he=void 0}catch(He){he=He,this.u.log(r.Error,`A callback for the method '${P}' threw error '${He}'.`)}de?await this.xt(de):W?(he?de=this.Bt(v.invocationId,`${he}`,null):U!==void 0?de=this.Bt(v.invocationId,null,U):(this.u.log(r.Warning,`No result given for '${P}' method and invocation ID '${v.invocationId}'.`),de=this.Bt(v.invocationId,"Client didn't provide a result.",null)),await this.xt(de)):U&&this.u.log(r.Error,`Result given for '${P}' method but server is not expecting a result.`)}st(v){this.u.log(r.Debug,`HubConnection.connectionClosed(${v}) called while in state ${this.ut}.`),this.bt=this.bt||v||new f("The underlying connection was closed before the hub handshake could complete."),this.vt&&this.vt(),this.Xt(v||new Error("Invocation canceled due to the underlying connection being closed.")),this.Ct(),this.Tt(),this.ut===Ke.Disconnecting?this.Dt(v):this.ut===Ke.Connected&&this.Z?this.Jt(v):this.ut===Ke.Connected&&this.Dt(v)}Dt(v){if(this.dt){this.ut=Ke.Disconnected,this.dt=!1,this.Pt&&(this.Pt.X(v??new Error("Connection closed.")),this.Pt=void 0),$e.isBrowser&&window.document.removeEventListener("freeze",this.G);try{this.rt.forEach(P=>P.apply(this,[v]))}catch(P){this.u.log(r.Error,`An onclose callback called with error '${v}' threw error '${P}'.`)}}}async Jt(v){const P=Date.now();let L=0,_=v!==void 0?v:new Error("Attempting to reconnect due to a unknown error."),W=this.zt(L++,0,_);if(W===null)return this.u.log(r.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this.Dt(v);if(this.ut=Ke.Reconnecting,v?this.u.log(r.Information,`Connection reconnecting because of error '${v}'.`):this.u.log(r.Information,"Connection reconnecting."),this.ot.length!==0){try{this.ot.forEach(U=>U.apply(this,[v]))}catch(U){this.u.log(r.Error,`An onreconnecting callback called with error '${v}' threw error '${U}'.`)}if(this.ut!==Ke.Reconnecting)return void this.u.log(r.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;W!==null;){if(this.u.log(r.Information,`Reconnect attempt number ${L} will start in ${W} ms.`),await new Promise(U=>{this.Ht=setTimeout(U,W)}),this.Ht=void 0,this.ut!==Ke.Reconnecting)return void this.u.log(r.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(await this.yt(),this.ut=Ke.Connected,this.u.log(r.Information,"HubConnection reconnected successfully."),this.ht.length!==0)try{this.ht.forEach(U=>U.apply(this,[this.connection.connectionId]))}catch(U){this.u.log(r.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${U}'.`)}return}catch(U){if(this.u.log(r.Information,`Reconnect attempt failed because of error '${U}'.`),this.ut!==Ke.Reconnecting)return this.u.log(r.Debug,`Connection moved to the '${this.ut}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this.ut===Ke.Disconnecting&&this.Dt());_=U instanceof Error?U:new Error(U.toString()),W=this.zt(L++,Date.now()-P,_)}}this.u.log(r.Information,`Reconnect retries have been exhausted after ${Date.now()-P} ms and ${L} failed attempts. Connection disconnecting.`),this.Dt()}zt(v,P,L){try{return this.Z.nextRetryDelayInMilliseconds({elapsedMilliseconds:P,previousRetryCount:v,retryReason:L})}catch(_){return this.u.log(r.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${v}, ${P}) threw error '${_}'.`),null}}Xt(v){const P=this.it;this.it={},Object.keys(P).forEach(L=>{const _=P[L];try{_(null,v)}catch(W){this.u.log(r.Error,`Stream 'error' callback called with '${v}' threw error: ${Ne(W)}`)}})}Tt(){this.Ft&&(clearTimeout(this.Ft),this.Ft=void 0)}Ct(){this.Ot&&clearTimeout(this.Ot)}Mt(v,P,L,_){if(L)return _.length!==0?{arguments:P,streamIds:_,target:v,type:Ce.Invocation}:{arguments:P,target:v,type:Ce.Invocation};{const W=this.ct;return this.ct++,_.length!==0?{arguments:P,invocationId:W.toString(),streamIds:_,target:v,type:Ce.Invocation}:{arguments:P,invocationId:W.toString(),target:v,type:Ce.Invocation}}}qt(v,P){if(v.length!==0){P||(P=Promise.resolve());for(const L in v)v[L].subscribe({complete:p(()=>{P=P.then(()=>this.xt(this.Bt(L)))},"complete"),error:p(_=>{let W;W=_ instanceof Error?_.message:_&&_.toString?_.toString():"Unknown error",P=P.then(()=>this.xt(this.Bt(L,W)))},"error"),next:p(_=>{P=P.then(()=>this.xt(this.Vt(L,_)))},"next")})}}Ut(v){const P=[],L=[];for(let _=0;_<v.length;_++){const W=v[_];if(this.Kt(W)){const U=this.ct;this.ct++,P[U]=W,L.push(U.toString()),v.splice(_,1)}}return[P,L]}Kt(v){return v&&v.subscribe&&typeof v.subscribe=="function"}Lt(v,P,L){const _=this.ct;return this.ct++,L.length!==0?{arguments:P,invocationId:_.toString(),streamIds:L,target:v,type:Ce.StreamInvocation}:{arguments:P,invocationId:_.toString(),target:v,type:Ce.StreamInvocation}}Nt(v){return{invocationId:v,type:Ce.CancelInvocation}}Vt(v,P){return{invocationId:v,item:P,type:Ce.StreamItem}}Bt(v,P,L){return P?{error:P,invocationId:v,type:Ce.Completion}:{invocationId:v,result:L,type:Ce.Completion}}At(){return{type:Ce.Close}}},d(wa,"Nc"),wa);p(kP,"q");let SP=kP;const pI=[0,2e3,1e4,3e4,null],PP=(Zl=class{constructor(v){this.Gt=v!==void 0?[...v,null]:pI}nextRetryDelayInMilliseconds(v){return this.Gt[v.previousRetryCount]}},d(Zl,"zd"),Zl);p(PP,"j");let CP=PP;const QP=(Wl=class{},d(Wl,"Pd"),Wl);p(QP,"W");let ma=QP;ma.Authorization="Authorization",ma.Cookie="Cookie";const MP=(Vl=class extends B{constructor(v,P){super(),this.Qt=v,this.Yt=P}async send(v){let P=!0;this.Yt&&(!this.Zt||v.url&&v.url.indexOf("/negotiate?")>0)&&(P=!1,this.Zt=await this.Yt()),this.te(v);const L=await this.Qt.send(v);return P&&L.statusCode===401&&this.Yt?(this.Zt=await this.Yt(),this.te(v),await this.Qt.send(v)):L}te(v){v.headers||(v.headers={}),this.Zt?v.headers[ma.Authorization]=`Bearer ${this.Zt}`:this.Yt&&v.headers[ma.Authorization]&&delete v.headers[ma.Authorization]}getCookieString(v){return this.Qt.getCookieString(v)}},d(Vl,"Sd"),Vl);p(MP,"O");let fI=MP;var xt,Nt;(function(F){F[F.None=0]="None",F[F.WebSockets=1]="WebSockets",F[F.ServerSentEvents=2]="ServerSentEvents",F[F.LongPolling=4]="LongPolling"})(xt||(xt={})),function(F){F[F.Text=1]="Text",F[F.Binary=2]="Binary"}(Nt||(Nt={}));const TP=(Dl=class{constructor(){this.ee=!1,this.onabort=null}abort(){this.ee||(this.ee=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this.ee}},d(Dl,"Ed"),Dl);p(TP,"X");let yI=TP;const RP=(ql=class{get pollAborted(){return this.se.aborted}constructor(v,P,L){this.$=v,this.u=P,this.se=new yI,this.ie=L,this.ne=!1,this.onreceive=null,this.onclose=null}async connect(v,P){if(te.isRequired(v,"url"),te.isRequired(P,"transferFormat"),te.isIn(P,Nt,"transferFormat"),this.re=v,this.u.log(r.Trace,"(LongPolling transport) Connecting."),P===Nt.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[L,_]=ft(),W={[L]:_,...this.ie.headers},U={abortSignal:this.se.signal,headers:W,timeout:1e5,withCredentials:this.ie.withCredentials};P===Nt.Binary&&(U.responseType="arraybuffer");const he=`${v}&_=${Date.now()}`;this.u.log(r.Trace,`(LongPolling transport) polling: ${he}.`);const de=await this.$.get(he,U);de.statusCode!==200?(this.u.log(r.Error,`(LongPolling transport) Unexpected response code: ${de.statusCode}.`),this.oe=new l(de.statusText||"",de.statusCode),this.ne=!1):this.ne=!0,this.he=this.ce(this.re,U)}async ce(v,P){try{for(;this.ne;)try{const L=`${v}&_=${Date.now()}`;this.u.log(r.Trace,`(LongPolling transport) polling: ${L}.`);const _=await this.$.get(L,P);_.statusCode===204?(this.u.log(r.Information,"(LongPolling transport) Poll terminated by server."),this.ne=!1):_.statusCode!==200?(this.u.log(r.Error,`(LongPolling transport) Unexpected response code: ${_.statusCode}.`),this.oe=new l(_.statusText||"",_.statusCode),this.ne=!1):_.content?(this.u.log(r.Trace,`(LongPolling transport) data received. ${Ue(_.content,this.ie.logMessageContent)}.`),this.onreceive&&this.onreceive(_.content)):this.u.log(r.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(L){this.ne?L instanceof h?this.u.log(r.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.oe=L,this.ne=!1):this.u.log(r.Trace,`(LongPolling transport) Poll errored after shutdown: ${L.message}`)}}finally{this.u.log(r.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.ae()}}async send(v){return this.ne?De(this.u,"LongPolling",this.$,this.re,v,this.ie):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this.u.log(r.Trace,"(LongPolling transport) Stopping polling."),this.ne=!1,this.se.abort();try{await this.he,this.u.log(r.Trace,`(LongPolling transport) sending DELETE request to ${this.re}.`);const v={},[P,L]=ft();v[P]=L;const _={headers:{...v,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials};let W;try{await this.$.delete(this.re,_)}catch(U){W=U}W?W instanceof l&&(W.statusCode===404?this.u.log(r.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this.u.log(r.Trace,`(LongPolling transport) Error sending a DELETE request: ${W}`)):this.u.log(r.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this.u.log(r.Trace,"(LongPolling transport) Stop finished."),this.ae()}}ae(){if(this.onclose){let v="(LongPolling transport) Firing onclose event.";this.oe&&(v+=" Error: "+this.oe),this.u.log(r.Trace,v),this.onclose(this.oe)}}},d(ql,"Ad"),ql);p(RP,"J");let AP=RP;const EP=(Ul=class{constructor(v,P,L,_){this.$=v,this.Zt=P,this.u=L,this.ie=_,this.onreceive=null,this.onclose=null}async connect(v,P){return te.isRequired(v,"url"),te.isRequired(P,"transferFormat"),te.isIn(P,Nt,"transferFormat"),this.u.log(r.Trace,"(SSE transport) Connecting."),this.re=v,this.Zt&&(v+=(v.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this.Zt)}`),new Promise((L,_)=>{let W,U=!1;if(P===Nt.Text){if($e.isBrowser||$e.isWebWorker)W=new this.ie.EventSource(v,{withCredentials:this.ie.withCredentials});else{const he=this.$.getCookieString(v),de={};de.Cookie=he;const[Te,He]=ft();de[Te]=He,W=new this.ie.EventSource(v,{withCredentials:this.ie.withCredentials,headers:{...de,...this.ie.headers}})}try{W.onmessage=he=>{if(this.onreceive)try{this.u.log(r.Trace,`(SSE transport) data received. ${Ue(he.data,this.ie.logMessageContent)}.`),this.onreceive(he.data)}catch(de){return void this.le(de)}},W.onerror=he=>{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."))},W.onopen=()=>{this.u.log(r.Information,`SSE connected to ${this.re}`),this.ue=W,U=!0,L()}}catch(he){return void _(he)}}else _(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})}async send(v){return this.ue?De(this.u,"SSE",this.$,this.re,v,this.ie):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this.le(),Promise.resolve()}le(v){this.ue&&(this.ue.close(),this.ue=void 0,this.onclose&&this.onclose(v))}},d(Ul,"Od"),Ul);p(EP,"z");let mI=EP;const LP=(jl=class{constructor(v,P,L,_,W,U){this.u=L,this.Yt=P,this.de=_,this.fe=W,this.$=v,this.onreceive=null,this.onclose=null,this.pe=U}async connect(v,P){let L;return te.isRequired(v,"url"),te.isRequired(P,"transferFormat"),te.isIn(P,Nt,"transferFormat"),this.u.log(r.Trace,"(WebSockets transport) Connecting."),this.Yt&&(L=await this.Yt()),new Promise((_,W)=>{let U;v=v.replace(/^http/,"ws");const he=this.$.getCookieString(v);let de=!1;if($e.isNode||$e.isReactNative){const Te={},[He,Hl]=ft();Te[He]=Hl,L&&(Te[ma.Authorization]=`Bearer ${L}`),he&&(Te[ma.Cookie]=he),U=new this.fe(v,void 0,{headers:{...Te,...this.pe}})}else L&&(v+=(v.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(L)}`);U||(U=new this.fe(v)),P===Nt.Binary&&(U.binaryType="arraybuffer"),U.onopen=Te=>{this.u.log(r.Information,`WebSocket connected to ${v}.`),this.we=U,de=!0,_()},U.onerror=Te=>{let He=null;He=typeof ErrorEvent<"u"&&Te instanceof ErrorEvent?Te.error:"There was an error with the transport",this.u.log(r.Information,`(WebSockets transport) ${He}.`)},U.onmessage=Te=>{if(this.u.log(r.Trace,`(WebSockets transport) data received. ${Ue(Te.data,this.de)}.`),this.onreceive)try{this.onreceive(Te.data)}catch(He){return void this.le(He)}},U.onclose=Te=>{if(de)this.le(Te);else{let He=null;He=typeof ErrorEvent<"u"&&Te instanceof ErrorEvent?Te.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.",W(new Error(He))}}})}send(v){return this.we&&this.we.readyState===this.fe.OPEN?(this.u.log(r.Trace,`(WebSockets transport) sending data. ${Ue(v,this.de)}.`),this.we.send(v),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this.we&&this.le(void 0),Promise.resolve()}le(v){this.we&&(this.we.onclose=()=>{},this.we.onmessage=()=>{},this.we.onerror=()=>{},this.we.close(),this.we=void 0),this.u.log(r.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this.ge(v)||v.wasClean!==!1&&v.code===1e3?v instanceof Error?this.onclose(v):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${v.code} (${v.reason||"no reason given"}).`)))}ge(v){return v&&typeof v.wasClean=="boolean"&&typeof v.code=="number"}},d(jl,"Rd"),jl);p(LP,"V");let wI=LP;const zP=(Bl=class{constructor(v,P={}){var L;if(this.me=()=>{},this.features={},this.ye=1,te.isRequired(v,"url"),this.u=(L=P.logger)===void 0?new it(r.Information):L===null?se.instance:L.log!==void 0?L:new it(L),this.baseUrl=this.be(v),(P=P||{}).logMessageContent=P.logMessageContent!==void 0&&P.logMessageContent,typeof P.withCredentials!="boolean"&&P.withCredentials!==void 0)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");P.withCredentials=P.withCredentials===void 0||P.withCredentials,P.timeout=P.timeout===void 0?1e5:P.timeout;let _=null,W=null;if($e.isNode){const U=Ig;_=U("ws"),W=U("eventsource")}$e.isNode||typeof WebSocket>"u"||P.WebSocket?$e.isNode&&!P.WebSocket&&_&&(P.WebSocket=_):P.WebSocket=WebSocket,$e.isNode||typeof EventSource>"u"||P.EventSource?$e.isNode&&!P.EventSource&&W!==void 0&&(P.EventSource=W):P.EventSource=EventSource,this.$=new fI(P.httpClient||new wP(this.u),P.accessTokenFactory),this.ut="Disconnected",this.dt=!1,this.ie=P,this.onreceive=null,this.onclose=null}async start(v){if(v=v||Nt.Binary,te.isIn(v,Nt,"transferFormat"),this.u.log(r.Debug,`Starting connection with transfer format '${Nt[v]}'.`),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(v),await this.ve,this.ut==="Disconnecting"){const P="Failed to start the HttpConnection before stop() was called.";return this.u.log(r.Error,P),await this.It,Promise.reject(new f(P))}if(this.ut!=="Connected"){const P="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this.u.log(r.Error,P),Promise.reject(new f(P))}this.dt=!0}send(v){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 vI(this.transport)),this.Ee.send(v))}async stop(v){return this.ut==="Disconnected"?(this.u.log(r.Debug,`Call to HttpConnection.stop(${v}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):this.ut==="Disconnecting"?(this.u.log(r.Debug,`Call to HttpConnection.stop(${v}) ignored because the connection is already in the disconnecting state.`),this.It):(this.ut="Disconnecting",this.It=new Promise(P=>{this.me=P}),await this._t(v),void await this.It)}async _t(v){this.$e=v;try{await this.ve}catch{}if(this.transport){try{await this.transport.stop()}catch(P){this.u.log(r.Error,`HttpConnection.transport.stop() threw error '${P}'.`),this.Ce()}this.transport=void 0}else this.u.log(r.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async yt(v){let P=this.baseUrl;this.Yt=this.ie.accessTokenFactory,this.$.Yt=this.Yt;try{if(this.ie.skipNegotiation){if(this.ie.transport!==xt.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this.Se(xt.WebSockets),await this.ke(P,v)}else{let L=null,_=0;do{if(L=await this.Pe(P),this.ut==="Disconnecting"||this.ut==="Disconnected")throw new f("The connection was stopped during negotiation.");if(L.error)throw new Error(L.error);if(L.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(L.url&&(P=L.url),L.accessToken){const W=L.accessToken;this.Yt=()=>W,this.$.Zt=W,this.$.Yt=void 0}_++}while(L.url&&_<100);if(_===100&&L.url)throw new Error("Negotiate redirection limit exceeded.");await this.Te(P,this.ie.transport,L,v)}this.transport instanceof AP&&(this.features.inherentKeepAlive=!0),this.ut==="Connecting"&&(this.u.log(r.Debug,"The HttpConnection connected successfully."),this.ut="Connected")}catch(L){return this.u.log(r.Error,"Failed to start the connection: "+L),this.ut="Disconnected",this.transport=void 0,this.me(),Promise.reject(L)}}async Pe(v){const P={},[L,_]=ft();P[L]=_;const W=this.Ie(v);this.u.log(r.Debug,`Sending negotiation request: ${W}.`);try{const U=await this.$.post(W,{content:"",headers:{...P,...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 he=JSON.parse(U.content);return(!he.negotiateVersion||he.negotiateVersion<1)&&(he.connectionToken=he.connectionId),he.useStatefulReconnect&&this.ie._e!==!0?Promise.reject(new A("Client didn't negotiate Stateful Reconnect but the server did.")):he}catch(U){let he="Failed to complete negotiation with the server: "+U;return U instanceof l&&U.statusCode===404&&(he+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this.u.log(r.Error,he),Promise.reject(new A(he))}}He(v,P){return P?v+(v.indexOf("?")===-1?"?":"&")+`id=${P}`:v}async Te(v,P,L,_){let W=this.He(v,L.connectionToken);if(this.De(P))return this.u.log(r.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=P,await this.ke(W,_),void(this.connectionId=L.connectionId);const U=[],he=L.availableTransports||[];let de=L;for(const Te of he){const He=this.Re(Te,P,_,(de==null?void 0:de.useStatefulReconnect)===!0);if(He instanceof Error)U.push(`${Te.transport} failed:`),U.push(He);else if(this.De(He)){if(this.transport=He,!de){try{de=await this.Pe(v)}catch(Hl){return Promise.reject(Hl)}W=this.He(v,de.connectionToken)}try{return await this.ke(W,_),void(this.connectionId=de.connectionId)}catch(Hl){if(this.u.log(r.Error,`Failed to start the transport '${Te.transport}': ${Hl}`),de=void 0,U.push(new $(`${Te.transport} failed: ${Hl}`,xt[Te.transport])),this.ut!=="Connecting"){const DP="Failed to select transport before stop() was called.";return this.u.log(r.Debug,DP),Promise.reject(new f(DP))}}}}return U.length>0?Promise.reject(new R(`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(v){switch(v){case xt.WebSockets:if(!this.ie.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new wI(this.$,this.Yt,this.u,this.ie.logMessageContent,this.ie.WebSocket,this.ie.headers||{});case xt.ServerSentEvents:if(!this.ie.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new mI(this.$,this.$.Zt,this.u,this.ie);case xt.LongPolling:return new AP(this.$,this.u,this.ie);default:throw new Error(`Unknown transport: ${v}.`)}}ke(v,P){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async L=>{let _=!1;if(this.features.reconnect){try{this.features.disconnected(),await this.transport.connect(v,P),await this.features.resend()}catch{_=!0}_&&this.Ce(L)}else this.Ce(L)}:this.transport.onclose=L=>this.Ce(L),this.transport.connect(v,P)}Re(v,P,L,_){const W=xt[v.transport];if(W==null)return this.u.log(r.Debug,`Skipping transport '${v.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${v.transport}' because it is not supported by this client.`);if(!function(U,he){return!U||(he&U)!=0}(P,W))return this.u.log(r.Debug,`Skipping transport '${xt[W]}' because it was disabled by the client.`),new O(`'${xt[W]}' is disabled by the client.`,W);if(!(v.transferFormats.map(U=>Nt[U]).indexOf(L)>=0))return this.u.log(r.Debug,`Skipping transport '${xt[W]}' because it does not support the requested transfer format '${Nt[L]}'.`),new Error(`'${xt[W]}' does not support ${Nt[L]}.`);if(W===xt.WebSockets&&!this.ie.WebSocket||W===xt.ServerSentEvents&&!this.ie.EventSource)return this.u.log(r.Debug,`Skipping transport '${xt[W]}' because it is not supported in your environment.'`),new w(`'${xt[W]}' is not supported in your environment.`,W);this.u.log(r.Debug,`Selecting transport '${xt[W]}'.`);try{return this.features.reconnect=W===xt.WebSockets?_:void 0,this.Se(W)}catch(U){return U}}De(v){return v&&typeof v=="object"&&"connect"in v}Ce(v){if(this.u.log(r.Debug,`HttpConnection.stopConnection(${v}) called while in state ${this.ut}.`),this.transport=void 0,v=this.$e||v,this.$e=void 0,this.ut!=="Disconnected"){if(this.ut==="Connecting")throw this.u.log(r.Warning,`Call to HttpConnection.stopConnection(${v}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${v}) was called while the connection is still in the connecting state.`);if(this.ut==="Disconnecting"&&this.me(),v?this.u.log(r.Error,`Connection disconnected with error '${v}'.`):this.u.log(r.Information,"Connection disconnected."),this.Ee&&(this.Ee.stop().catch(P=>{this.u.log(r.Error,`TransportSendQueue.stop() threw error '${P}'.`)}),this.Ee=void 0),this.connectionId=void 0,this.ut="Disconnected",this.dt){this.dt=!1;try{this.onclose&&this.onclose(v)}catch(P){this.u.log(r.Error,`HttpConnection.onclose(${v}) threw error '${P}'.`)}}}else this.u.log(r.Debug,`Call to HttpConnection.stopConnection(${v}) was ignored because the connection is already in the disconnected state.`)}be(v){if(v.lastIndexOf("https://",0)===0||v.lastIndexOf("http://",0)===0)return v;if(!$e.isBrowser)throw new Error(`Cannot resolve '${v}'.`);const P=window.document.createElement("a");return P.href=v,this.u.log(r.Information,`Normalizing '${v}' to '${P.href}'.`),P.href}Ie(v){const P=new URL(v);P.pathname.endsWith("/")?P.pathname+="negotiate":P.pathname+="/negotiate";const L=new URLSearchParams(P.searchParams);return L.has("negotiateVersion")||L.append("negotiateVersion",this.ye.toString()),L.has("useStatefulReconnect")?L.get("useStatefulReconnect")==="true"&&(this.ie._e=!0):this.ie._e===!0&&L.append("useStatefulReconnect","true"),P.search=L.toString(),P.toString()}},d(Bl,"Ld"),Bl);p(zP,"K");let gI=zP;const _P=(ga=class{constructor(v){this.xe=v,this.Ae=[],this.Ue=!0,this.Le=new jw,this.Ne=new jw,this.qe=this.Me()}send(v){return this.je(v),this.Ne||(this.Ne=new jw),this.Ne.promise}stop(){return this.Ue=!1,this.Le.resolve(),this.qe}je(v){if(this.Ae.length&&typeof this.Ae[0]!=typeof v)throw new Error(`Expected data to be of type ${typeof this.Ae} but was of type ${typeof v}`);this.Ae.push(v),this.Le.resolve()}async Me(){for(;;){if(await this.Le.promise,!this.Ue){this.Ne&&this.Ne.reject("Connection stopped.");break}this.Le=new jw;const v=this.Ne;this.Ne=void 0;const P=typeof this.Ae[0]=="string"?this.Ae.join(""):ga.We(this.Ae);this.Ae.length=0;try{await this.xe.send(P),v.resolve()}catch(L){v.reject(L)}}}static We(v){const P=v.map(W=>W.byteLength).reduce((W,U)=>W+U),L=new Uint8Array(P);let _=0;for(const W of v)L.set(new Uint8Array(W),_),_+=W.byteLength;return L.buffer}},d(ga,"jc"),ga);p(_P,"G");let vI=_P;const IP=(Fl=class{constructor(){this.promise=new Promise((v,P)=>[this.j,this.Oe]=[v,P])}resolve(){this.j()}reject(v){this.Oe(v)}},d(Fl,"Id"),Fl);p(IP,"Q");let jw=IP;const ZP=(Xl=class{constructor(){this.name="json",this.version=2,this.transferFormat=Nt.Text}parseMessages(v,P){if(typeof v!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!v)return[];P===null&&(P=se.instance);const L=ys.parse(v),_=[];for(const W of L){const U=JSON.parse(W);if(typeof U.type!="number")throw new Error("Invalid payload.");switch(U.type){case Ce.Invocation:this.U(U);break;case Ce.StreamItem:this.Fe(U);break;case Ce.Completion:this.Be(U);break;case Ce.Ping:case Ce.Close:break;case Ce.Ack:this.Xe(U);break;case Ce.Sequence:this.Je(U);break;default:P.log(r.Information,"Unknown message type '"+U.type+"' ignored.");continue}_.push(U)}return _}writeMessage(v){return ys.write(JSON.stringify(v))}U(v){this.ze(v.target,"Invalid payload for Invocation message."),v.invocationId!==void 0&&this.ze(v.invocationId,"Invalid payload for Invocation message.")}Fe(v){if(this.ze(v.invocationId,"Invalid payload for StreamItem message."),v.item===void 0)throw new Error("Invalid payload for StreamItem message.")}Be(v){if(v.result&&v.error)throw new Error("Invalid payload for Completion message.");!v.result&&v.error&&this.ze(v.error,"Invalid payload for Completion message."),this.ze(v.invocationId,"Invalid payload for Completion message.")}Xe(v){if(typeof v.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}Je(v){if(typeof v.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}ze(v,P){if(typeof v!="string"||v==="")throw new Error(P)}},d(Xl,"Td"),Xl);p(ZP,"Y");let WP=ZP;const bI={trace:r.Trace,debug:r.Debug,info:r.Information,information:r.Information,warn:r.Warning,warning:r.Warning,error:r.Error,critical:r.Critical,none:r.None},VP=(Nl=class{configureLogging(v){if(te.isRequired(v,"logging"),v.log!==void 0)this.logger=v;else if(typeof v=="string"){const P=function(L){const _=bI[L.toLowerCase()];if(_!==void 0)return _;throw new Error(`Unknown log level: ${L}`)}(v);this.logger=new it(P)}else this.logger=new it(v);return this}withUrl(v,P){return te.isRequired(v,"url"),te.isNotEmpty(v,"url"),this.url=v,this.httpConnectionOptions=typeof P=="object"?{...this.httpConnectionOptions,...P}:{...this.httpConnectionOptions,transport:P},this}withHubProtocol(v){return te.isRequired(v,"protocol"),this.protocol=v,this}withAutomaticReconnect(v){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return v?Array.isArray(v)?this.reconnectPolicy=new CP(v):this.reconnectPolicy=v:this.reconnectPolicy=new CP,this}withServerTimeout(v){return te.isRequired(v,"milliseconds"),this.Ve=v,this}withKeepAliveInterval(v){return te.isRequired(v,"milliseconds"),this.Ke=v,this}withStatefulReconnect(v){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._e=!0,this.Y=v==null?void 0:v.bufferSize,this}build(){const v=this.httpConnectionOptions||{};if(v.logger===void 0&&(v.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const P=new gI(this.url,v);return SP.create(P,this.logger||se.instance,this.protocol||new WP,this.reconnectPolicy,this.Ve,this.Ke,this.Y)}},d(Nl,"Fd"),Nl);p(VP,"tt");let OI=VP;return Uint8Array.prototype.indexOf||Object.defineProperty(Uint8Array.prototype,"indexOf",{value:Array.prototype.indexOf,writable:!0}),Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:p(function(F,v){return new Uint8Array(Array.prototype.slice.call(this,F,v))},"value"),writable:!0}),Uint8Array.prototype.forEach||Object.defineProperty(Uint8Array.prototype,"forEach",{value:Array.prototype.forEach,writable:!0}),a})(),"e"),s.exports=i()}(vC)),vC.exports}d(SA,"Zm");p(SA,"requireSignalr_min");var OC=SA();const IU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this._whenConnectionRequested=new Promise(a=>{this._resolveConnectionRequested=a}),this._whenConnectionCreated=new Promise(a=>{this._resolveConnectionCreated=a}),this._connectionEventListeners=[],this.signalRAccessTokenRefresh=!1,this._whenConnectionStarted=new Promise((a,o)=>{this._whenConnectionStartedResolve=a,this._whenConnectionStartedReject=o}),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 r;if(this.isDestroyed)throw new kt;if(this.networkStateIsPending=!0,await this.whenUrlAndTokenFactory(),this._connection){const a=new URL("/hubs/rtm",this.url);this._connection.baseUrl!==a.toString()&&(this.connectionState="reconnecting",console.info(this.weavyId,"Reconnecting due to changed url.",this._connection.baseUrl,"=>",a.toString()),await this.disconnect(),this._connection.baseUrl=a.toString(),this.connect())}else{this.connectionState="connecting";const a=new URL("/hubs/rtm",this.url);this._connection=new OC.HubConnectionBuilder().configureLogging(OC.LogLevel.None).withUrl(a.toString(),{accessTokenFactory:p(async()=>{try{if(this.signalRAccessTokenRefresh){const o=await this.getToken(!0);return this.signalRAccessTokenRefresh=!1,o}else return await this.getToken()}catch(o){throw console.error(o),o}},"accessTokenFactory")}).withAutomaticReconnect({nextRetryDelayInMilliseconds:p(o=>!this.isDestroyed&&window.navigator.onLine&&(document==null?void 0:document.visibilityState)!=="hidden"&&o.elapsedMilliseconds<6e4?[0,2e3,1e4][o.previousRetryCount]||1e4:null,"nextRetryDelayInMilliseconds")}).build(),this._connection.onclose(async()=>{console.info(this.weavyId,"SignalR closed."),this.connectionState="disconnected",!this.isDestroyed&&(this.networkStateIsPending=!0,this._whenConnectionStarted=new Promise((o,l)=>{this._whenConnectionStartedResolve=o,this._whenConnectionStartedReject=l}),this.connect())}),this._connection.onreconnecting(()=>{console.info(this.weavyId,"SignalR reconnecting..."),this.connectionState="reconnecting"}),this._connection.onreconnected(()=>{var o;console.info(this.weavyId,"SignalR reconnected."),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)}),(r=this._resolveConnectionCreated)==null||r.call(this,this._connection),this.connect()}return this._connection}async disconnect(){this._connection&&(await this._connection.stop(),this.connectionState="disconnected")}async connect(){var r;if(this.isDestroyed)throw new kt;let a;this._connection?a=this._connection:a=await this.whenConnectionCreated(),console.info(this.weavyId,"Connecting SignalR...");try{if(!window.navigator.onLine)throw new Error;await Promise.race([a.start(),this.whenConnectionStarted()]),this.signalRAccessTokenRefresh=!1,this.networkStateIsPending=!1,this.connectionState="connected",(r=this._whenConnectionStartedResolve)==null||r.call(this,a),console.info(this.weavyId,"SignalR connected.")}catch(o){if(o instanceof kt)return console.warn(this.weavyId,"SignalR connection aborted."),a;window.navigator.onLine?!this.signalRAccessTokenRefresh&&window.document.visibilityState!=="hidden"&&o.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(l=>{setTimeout(l,5e3),window.addEventListener("visibilitychange",l,{once:!0}),window.addEventListener("offline",l,{once:!0}),window.addEventListener("online",l,{once:!0})})):(this.networkStateIsPending=!1,console.info(this.weavyId,"Offline, reconnecting SignalR when online."),await new Promise(l=>{window.addEventListener("online",l,{once:!0})})),window.navigator.onLine&&(document==null?void 0:document.visibilityState)!=="hidden"&&await new Promise(l=>setTimeout(l,1e3)),this.checkVersion(),this.networkStateIsPending=!0,await this.connect()}return a}async subscribe(r,a,o){var l;if(this.isDestroyed)throw new kt;(l=this._resolveConnectionRequested)==null||l.call(this,!0);try{const c=r?r+":"+a:a;if(this._connectionEventListeners||await new Promise(h=>queueMicrotask(()=>h(!0))),this._connectionEventListeners.some(h=>h.name===c&&h.callback===o))throw new Error("Duplicate subscribe: "+c);if(this._connectionEventListeners.push({name:c,callback:o}),await this.whenConnectionStarted(),!this._connection)throw new Error("Connection not created");this._connection.on(c,o),await this._connection.invoke("Subscribe",c)}catch(c){c instanceof kt||console.error(this.weavyId,"Error in Subscribe:",c)}}async unsubscribe(r,a,o){var l;if(this.isDestroyed)throw new kt;try{const c=r?r+":"+a:a,h=this._connectionEventListeners.findIndex(u=>u.name===c&&u.callback===o);if(h!==-1){if(this._connectionEventListeners.splice(h,1),await this.whenConnectionStarted(),!this._connection)throw new Error("Connection not created");(l=this._connection)==null||l.off(c,o),this._connectionEventListeners.some(u=>u.name===c)||await this._connection.invoke("Unsubscribe",c)}}catch(c){c instanceof kt||console.error(this.weavyId,"Error in Unsubscribe:",c)}}destroy(){super.destroy(),this.disconnect(),this._whenConnectionStartedReject&&(this._whenConnectionStarted.catch(()=>{}),this._whenConnectionStartedReject(new kt))}},d(i,"t"),i),p(t,"WeavyConnection"),t},"WeavyConnectionMixin");var G1=(s=>(s.JSON="application/json;charset=utf-8",s.FormData="multipart/form-data;charset=utf-8",s.URLEncoded="application/x-www-form-urlencoded;charset=utf-8",s.Text="text/plain;charset=utf-8",s.Auto="",s))(G1||{});const ZU=p(s=>{var i;var t;return t=(i=class extends s{async fetchOptions(r={},a=!0){if(this.isDestroyed)throw new kt;const o={headers:{"X-Weavy-Source":`${Ct.sourceName}@${Ct.version}`,"Content-Type":G1.JSON},method:"GET"},l=Sm(Sm(SU,o,!0),r,!0);return a?Sm(l,{headers:{Authorization:"Bearer "+await this.getToken()}},!0):l}async fetch(r,a,o=!0){if(this.isDestroyed)throw new kt;const l=await this.fetchOptions(a);this.networkStateIsPending=!0;const c=await fetch(new URL(r,this.url),l);if(c.ok)this.networkStateIsPending=!1,this.serverState="ok";else if(c.status===401||c.status===403){if(o)return await this.getToken(!0),await this.fetch(r,a,!1);this.networkStateIsPending=!1,this.serverState="unauthorized"}else this.networkStateIsPending=!1;return c}async upload(r,a,o,l=G1.JSON,c,h=!0){if(this.isDestroyed)throw new kt;const u=await this.getToken();return await new Promise((f,y)=>{const w=new XMLHttpRequest;w.open(a,new URL(r,this.url),!0),w.setRequestHeader("Authorization","Bearer "+u),w.setRequestHeader("X-Weavy-Source",`${Ct.sourceName}@${Ct.version}`),l&&w.setRequestHeader("Content-Type",l),c&&w.upload.addEventListener("progress",g=>{c(g.loaded/g.total*100||100)}),w.onload=g=>{h&&(w.status===401||w.status===401)?this.getToken(!0).then(()=>this.upload(r,a,o,l,c,!1)).then(f).catch(y):f(new Response(w.response,{status:w.status,statusText:w.statusText}))},w.onerror=y,w.send(o)})}async get(r){return console.warn(`weavy.get() is deprecated, use weavy.fetch("${r}") instead.`),this.fetch(r)}async post(r,a,o,l){console.warn(`weavy.post() is deprecated, use weavy.fetch("${r}", { method: "${a}"}) instead.`);const c=l?{"Content-Type":l}:void 0;return this.fetch(r,{method:a,body:o,headers:c})}},d(i,"t"),i),p(t,"WeavyFetch"),t},"WeavyFetchMixin"),PA="en",WU=p(s=>{var i;var t;return t=(i=class extends s{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:we&&we.tagName.toUpperCase()==="SCRIPT"&&we.src||new URL("weavy.cjs",document.baseURI).href)||!new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:we&&we.tagName.toUpperCase()==="SCRIPT"&&we.src||new URL("weavy.cjs",document.baseURI).href).href.startsWith(WEAVY_IMPORT_URL))?WEAVY_IMPORT_URL:typeof document>"u"?require("url").pathToFileURL(__filename).href:we&&we.tagName.toUpperCase()==="SCRIPT"&&we.src||new URL("weavy.cjs",document.baseURI).href).href).then(r=>r.svSE)]]),this._locale=t.sourceLocale}static get sourceLocale(){try{return PA}catch{return""}}get locales(){return Array.from(this._locales.entries())}set locales(r){if(this.isDestroyed)throw new kt;if(this.localization)throw new Error("Locales may only be configured once");if(r){if(!Array.isArray(r))throw new TypeError("Provided locales have invalid format.");r.forEach(a=>{if(!Array.isArray(a)||a.length!==2||typeof a[0]!="string")throw new TypeError("Invalid locale provided: "+a[0]);this._locales.set(...a)}),this.configureLocalization()}}get localization(){return this._localization}get locale(){return this._locale}set locale(r){if(this.isDestroyed)throw new kt;!this._locale&&!r||(r||(r=t.sourceLocale),this._locale=r,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 '${r}'.`))}))}async loadLocale(r){var a;if(this.isDestroyed)throw new kt;if((a=this._locales)!=null&&a.has(r)){const o=this._locales.get(r);return console.info(this.weavyId,typeof o=="function"?"loading locale":"preloaded locale",r),await(typeof o=="function"?o():o)}else throw new Error("The requested locale is not configured")}configureLocalization(){var r;if(this.isDestroyed)throw new kt;if((r=this._locales)!=null&&r.size&&!this.localization){const a=this._locales.keys();console.info(this.weavyId,"Configuring locales",a);const{getLocale:o,setLocale:l}=Bq({sourceLocale:t.sourceLocale,targetLocales:a,loadLocale:p(c=>this.loadLocale(c),"loadLocale")});this._localization={getLocale:o,setLocale:l}}}},d(i,"t"),i),p(t,"WeavyLocalization"),t},"WeavyLocalizationMixin"),VU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),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(r){this._networkState=r,this.triggerNetworkChange()}get serverState(){return this._serverState}set serverState(r){this._serverState=r,this.triggerNetworkChange()}get connectionState(){return this._connectionState}set connectionState(r){this._connectionState=r,this.triggerNetworkChange()}get networkStateIsPending(){return this._networkStateIsPending}set networkStateIsPending(r){this._networkStateIsPending=r,this.triggerNetworkChange()}get network(){return{state:this._networkState==="online"?this._connectionState==="connected"||this._serverState==="ok"?"online":"unreachable":"offline",isPending:this._networkStateIsPending}}triggerNetworkChange(){const r=this.network;this._networkEvents.forEach(a=>{a(r)})}addNetworkListener(r){this._networkEvents.add(r)}removeNetworkListener(r){this._networkEvents.delete(r)}},d(i,"t"),i),p(t,"WeavyNetwork"),t},"WeavyNetworkMixin");function Zg(){}d(Zg,"Ud");p(Zg,"noop");function CA({storage:s,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:i=1e3,serialize:n=JSON.stringify,deserialize:r=JSON.parse,retry:a}){if(s){const o=p(l=>{try{s.setItem(t,n(l));return}catch(c){return c}},"trySave");return{persistClient:QA(l=>{let c=l,h=o(c),u=0;for(;h&&c;)u++,c=a==null?void 0:a({persistedClient:c,error:h,errorCount:u}),c&&(h=o(c))},i),restoreClient:p(()=>{const l=s.getItem(t);if(l)return r(l)},"restoreClient"),removeClient:p(()=>{s.removeItem(t)},"removeClient")}}return{persistClient:Zg,restoreClient:Zg,removeClient:Zg}}d(CA,"e1");p(CA,"createSyncStoragePersister");function QA(s,t=100){let i=null,n;return function(...r){n=r,i===null&&(i=setTimeout(()=>{s(...n),i=null},t))}}d(QA,"i1");p(QA,"throttle$1");var DU=["added","removed","updated"];function hx(s){return DU.includes(s)}d(hx,"$p");p(hx,"isCacheEventType");async function MA({queryClient:s,persister:t,maxAge:i=1e3*60*60*24,buster:n="",hydrateOptions:r}){try{const a=await t.restoreClient();if(a)if(a.timestamp){const o=Date.now()-a.timestamp>i,l=a.buster!==n;o||l?t.removeClient():fA(s,a.clientState,r)}else t.removeClient()}catch{t.removeClient()}}d(MA,"r1");p(MA,"persistQueryClientRestore");async function dx({queryClient:s,persister:t,buster:i="",dehydrateOptions:n}){const r={buster:i,timestamp:Date.now(),clientState:pA(s,n)};await t.persistClient(r)}d(dx,"Cp");p(dx,"persistQueryClientSave");function TA(s){const t=s.queryClient.getQueryCache().subscribe(n=>{hx(n.type)&&dx(s)}),i=s.queryClient.getMutationCache().subscribe(n=>{hx(n.type)&&dx(s)});return()=>{t(),i()}}d(TA,"n1");p(TA,"persistQueryClientSubscribe");const qU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this._queryClient=new EU({defaultOptions:{queries:{staleTime:this.staleTime,gcTime:this.gcTime}}}),this.initQueryClient()}get queryClient(){return this._queryClient}async initQueryClient(){if(this.isDestroyed)throw new kt;await this.whenUrl();try{this._sessionStoragePersister=CA({key:"WEAVY_QUERY_OFFLINE_CACHE",storage:window.sessionStorage,throttleTime:this.staleTime});const r={queryClient:this._queryClient,persister:this._sessionStoragePersister,maxAge:this.gcTime,buster:this.cachePrefix,hydrateOptions:void 0,dehydrateOptions:{shouldDehydrateMutation:p(a=>{var o,l;const c=((l=(o=a.state.context)==null?void 0:o.status)==null?void 0:l.state)==="pending";return!!(a.state.context&&!c||a.state.isPaused)},"shouldDehydrateMutation")}};await MA(r),this._unsubscribeQueryClient=TA(r)}catch{console.warn(this.weavyId,"Query cache persister not available.")}this.host.isConnected&&this._queryClient.mount(),this._hostIsConnectedObserver=d3(this.host,r=>{this.isDestroyed||(r?(console.info(this.weavyId,"Query client mounted"),this._queryClient.mount()):(console.info(this.weavyId,"Query client unmounted"),this._queryClient.unmount()))})}async disconnectQueryClient(){var r,a;console.info(this.weavyId,"Query client disconnected"),await this._queryClient.cancelQueries(),this.queryClient.setQueriesData({},void 0),this.queryClient.resetQueries(),(r=this._sessionStoragePersister)==null||r.removeClient(),(a=this._unsubscribeQueryClient)==null||a.call(this),this._queryClient.unmount(),this._queryClient.clear()}destroy(){var r;super.destroy(),(r=this._hostIsConnectedObserver)==null||r.disconnect(),this.disconnectQueryClient()}},d(i,"t"),i),p(t,"WeavyQuery"),t},"WeavyQueryMixin"),UU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this._notificationEvents=Ct.defaults.notificationEvents??!1,this.dispatchRealtimeEvent=a=>{ii();const o=this.host!==document.documentElement?{composed:!0}:{bubbles:!0};switch(a.action){case"notification_created":case"notification_updated":case"notification_deleted":case"notifications_marked":{const l=new CustomEvent("wy-notifications",{...o,detail:a});this.host.dispatchEvent(l)}}}}get notificationEvents(){return this._notificationEvents}set notificationEvents(r){this.realtimeUnsubscribe(),this._notificationEvents=r??!1,this.realtimeSubscribe()}async realtimeSubscribe(){const r=this;this.notificationEvents&&(r.subscribe(null,"notification_created",this.dispatchRealtimeEvent),r.subscribe(null,"notification_updated",this.dispatchRealtimeEvent),r.subscribe(null,"notifications_marked",this.dispatchRealtimeEvent))}realtimeUnsubscribe(){const r=this;this.notificationEvents&&(r.unsubscribe(null,"notification_created",this.dispatchRealtimeEvent),r.unsubscribe(null,"notification_updated",this.dispatchRealtimeEvent),r.unsubscribe(null,"notifications_marked",this.dispatchRealtimeEvent))}destroy(){this.realtimeUnsubscribe(),super.destroy()}},d(i,"t"),i),p(t,"WeavyRealtime"),t},"WeavyRealtimeMixin"),jU=p(s=>{var i;var t;return t=(i=class extends s{set notifications(r){this._notifications=r,this.updateContext()}get notifications(){return this._notifications??Ct.defaults.notifications}set notificationsBadge(r){this._notificationsBadge=r,this.updateContext()}get notificationsBadge(){return this._notificationsBadge??Ct.defaults.notificationsBadge}set reactions(r){this._reactions=r,this.updateContext()}get reactions(){return this._reactions??Ct.defaults.reactions}constructor(...r){super(...r)}},d(i,"t"),i),p(t,"WeavySettings"),t},"WeavySettingsMixin");function di(s){return s<0?-1:s===0?0:1}d(di,"Ee");p(di,"signum");function Zc(s,t,i){return(1-i)*s+i*t}d(Zc,"Vo");p(Zc,"lerp");function RA(s,t,i){return i<s?s:i>t?t:i}d(RA,"l1");p(RA,"clampInt");function Gm(s,t,i){return i<s?s:i>t?t:i}d(Gm,"nl");p(Gm,"clampDouble");function Hv(s){return s=s%360,s<0&&(s=s+360),s}d(Hv,"su");p(Hv,"sanitizeDegreesDouble");function AA(s,t){return Hv(t-s)<=180?1:-1}d(AA,"d1");p(AA,"rotationDirection");function EA(s,t){return 180-Math.abs(Math.abs(s-t)-180)}d(EA,"h1");p(EA,"differenceDegrees");function K1(s,t){const i=s[0]*t[0][0]+s[1]*t[0][1]+s[2]*t[0][2],n=s[0]*t[1][0]+s[1]*t[1][1]+s[2]*t[1][2],r=s[0]*t[2][0]+s[1]*t[2][1]+s[2]*t[2][2];return[i,n,r]}d(K1,"yh");p(K1,"matrixMultiply");const BU=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],FU=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],XU=[95.047,100,108.883];function Yv(s,t,i){return(255<<24|(s&255)<<16|(t&255)<<8|i&255)>>>0}d(Yv,"ru");p(Yv,"argbFromRgb");function ux(s){const t=vr(s[0]),i=vr(s[1]),n=vr(s[2]);return Yv(t,i,n)}d(ux,"kp");p(ux,"argbFromLinrgb");function sS(s){return s>>16&255}d(sS,"tw");p(sS,"redFromArgb");function rS(s){return s>>8&255}d(rS,"ew");p(rS,"greenFromArgb");function aS(s){return s&255}d(aS,"iw");p(aS,"blueFromArgb");function LA(s,t,i){const n=FU,r=n[0][0]*s+n[0][1]*t+n[0][2]*i,a=n[1][0]*s+n[1][1]*t+n[1][2]*i,o=n[2][0]*s+n[2][1]*t+n[2][2]*i,l=vr(r),c=vr(a),h=vr(o);return Yv(l,c,h)}d(LA,"w1");p(LA,"argbFromXyz");function zA(s){const t=Fa(sS(s)),i=Fa(rS(s)),n=Fa(aS(s));return K1([t,i,n],BU)}d(zA,"f1");p(zA,"xyzFromArgb");function _A(s){const t=As(s),i=vr(t);return Yv(i,i,i)}d(_A,"m1");p(_A,"argbFromLstar");function J1(s){const t=zA(s)[1];return 116*oS(t/100)-16}d(J1,"wh");p(J1,"lstarFromArgb");function As(s){return 100*ZA((s+16)/116)}d(As,"ms");p(As,"yFromLstar");function ev(s){return oS(s/100)*116-16}d(ev,"fh");p(ev,"lstarFromY");function Fa(s){const t=s/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}d(Fa,"Vr");p(Fa,"linearized");function vr(s){const t=s/100;let i=0;return t<=.0031308?i=t*12.92:i=1.055*Math.pow(t,1/2.4)-.055,RA(0,255,Math.round(i*255))}d(vr,"Gs");p(vr,"delinearized");function IA(){return XU}d(IA,"v1");p(IA,"whitePointD65");function oS(s){const t=.008856451679035631,i=24389/27;return s>t?Math.pow(s,1/3):(i*s+16)/116}d(oS,"sw");p(oS,"labF");function ZA(s){const t=.008856451679035631,i=24389/27,n=s*s*s;return n>t?n:(116*s-16)/i}d(ZA,"g1");p(ZA,"labInvf");var To;const WA=(To=class{static make(t=IA(),i=200/Math.PI*As(50)/100,n=50,r=2,a=!1){const o=t,l=o[0]*.401288+o[1]*.650173+o[2]*-.051461,c=o[0]*-.250268+o[1]*1.204414+o[2]*.045854,h=o[0]*-.002079+o[1]*.048952+o[2]*.953127,u=.8+r/10,f=u>=.9?Zc(.59,.69,(u-.9)*10):Zc(.525,.59,(u-.8)*10);let y=a?1:u*(1-1/3.6*Math.exp((-i-42)/92));y=y>1?1:y<0?0:y;const w=u,g=[y*(100/l)+1-y,y*(100/c)+1-y,y*(100/h)+1-y],O=1/(5*i+1),x=O*O*O*O,$=1-x,C=x*i+.1*$*$*Math.cbrt(5*i),A=As(n)/t[1],E=1.48+Math.sqrt(A),R=.725/Math.pow(A,.2),z=R,I=[Math.pow(C*g[0]*l/100,.42),Math.pow(C*g[1]*c/100,.42),Math.pow(C*g[2]*h/100,.42)],q=[400*I[0]/(I[0]+27.13),400*I[1]/(I[1]+27.13),400*I[2]/(I[2]+27.13)],B=(2*q[0]+q[1]+.05*q[2])*R;return new To(A,B,R,z,f,w,g,C,Math.pow(C,.25),E)}constructor(t,i,n,r,a,o,l,c,h,u){this.n=t,this.aw=i,this.nbb=n,this.ncb=r,this.c=a,this.nc=o,this.rgbD=l,this.fl=c,this.fLRoot=h,this.z=u}},d(To,"Sl"),To);p(WA,"ViewingConditions");let Es=WA;Es.DEFAULT=Es.make();var Di;const VA=(Di=class{constructor(t,i,n,r,a,o,l,c,h){this.hue=t,this.chroma=i,this.j=n,this.q=r,this.m=a,this.s=o,this.jstar=l,this.astar=c,this.bstar=h}distance(t){const i=this.jstar-t.jstar,n=this.astar-t.astar,r=this.bstar-t.bstar,a=Math.sqrt(i*i+n*n+r*r);return 1.41*Math.pow(a,.63)}static fromInt(t){return Di.fromIntInViewingConditions(t,Es.DEFAULT)}static fromIntInViewingConditions(t,i){const n=(t&16711680)>>16,r=(t&65280)>>8,a=t&255,o=Fa(n),l=Fa(r),c=Fa(a),h=.41233895*o+.35762064*l+.18051042*c,u=.2126*o+.7152*l+.0722*c,f=.01932141*o+.11916382*l+.95034478*c,y=.401288*h+.650173*u-.051461*f,w=-.250268*h+1.204414*u+.045854*f,g=-.002079*h+.048952*u+.953127*f,O=i.rgbD[0]*y,x=i.rgbD[1]*w,$=i.rgbD[2]*g,C=Math.pow(i.fl*Math.abs(O)/100,.42),A=Math.pow(i.fl*Math.abs(x)/100,.42),E=Math.pow(i.fl*Math.abs($)/100,.42),R=di(O)*400*C/(C+27.13),z=di(x)*400*A/(A+27.13),I=di($)*400*E/(E+27.13),q=(11*R+-12*z+I)/11,B=(R+z-2*I)/9,ne=(20*R+20*z+21*I)/20,se=(40*R+20*z+I)/20,G=Math.atan2(B,q)*180/Math.PI,ce=G<0?G+360:G>=360?G-360:G,te=ce*Math.PI/180,Me=se*i.nbb,$e=100*Math.pow(Me/i.aw,i.c*i.z),Ue=4/i.c*Math.sqrt($e/100)*(i.aw+4)*i.fLRoot,Ve=ce<20.14?ce+360:ce,De=.25*(Math.cos(Ve*Math.PI/180+2)+3.8),bi=5e4/13*De*i.nc*i.ncb*Math.sqrt(q*q+B*B)/(ne+.305),At=Math.pow(bi,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),ht=At*Math.sqrt($e/100),it=ht*i.fLRoot,ft=50*Math.sqrt(At*i.c/(i.aw+4)),Oi=(1+100*.007)*$e/(1+.007*$e),Ei=1/.0228*Math.log(1+.0228*it),Hi=Ei*Math.cos(te),Ne=Ei*Math.sin(te);return new Di(ce,ht,$e,Ue,it,ft,Oi,Hi,Ne)}static fromJch(t,i,n){return Di.fromJchInViewingConditions(t,i,n,Es.DEFAULT)}static fromJchInViewingConditions(t,i,n,r){const a=4/r.c*Math.sqrt(t/100)*(r.aw+4)*r.fLRoot,o=i*r.fLRoot,l=i/Math.sqrt(t/100),c=50*Math.sqrt(l*r.c/(r.aw+4)),h=n*Math.PI/180,u=(1+100*.007)*t/(1+.007*t),f=1/.0228*Math.log(1+.0228*o),y=f*Math.cos(h),w=f*Math.sin(h);return new Di(n,i,t,a,o,c,u,y,w)}static fromUcs(t,i,n){return Di.fromUcsInViewingConditions(t,i,n,Es.DEFAULT)}static fromUcsInViewingConditions(t,i,n,r){const a=i,o=n,l=Math.sqrt(a*a+o*o),c=(Math.exp(l*.0228)-1)/.0228/r.fLRoot;let h=Math.atan2(o,a)*(180/Math.PI);h<0&&(h+=360);const u=t/(1-(t-100)*.007);return Di.fromJchInViewingConditions(u,c,h,r)}toInt(){return this.viewed(Es.DEFAULT)}viewed(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),r=this.hue*Math.PI/180,a=.25*(Math.cos(r+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),l=a*(5e4/13)*t.nc*t.ncb,c=o/t.nbb,h=Math.sin(r),u=Math.cos(r),f=23*(c+.305)*n/(23*l+11*n*u+108*n*h),y=f*u,w=f*h,g=(460*c+451*y+288*w)/1403,O=(460*c-891*y-261*w)/1403,x=(460*c-220*y-6300*w)/1403,$=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),C=di(g)*(100/t.fl)*Math.pow($,1/.42),A=Math.max(0,27.13*Math.abs(O)/(400-Math.abs(O))),E=di(O)*(100/t.fl)*Math.pow(A,1/.42),R=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),z=di(x)*(100/t.fl)*Math.pow(R,1/.42),I=C/t.rgbD[0],q=E/t.rgbD[1],B=z/t.rgbD[2],ne=1.86206786*I-1.01125463*q+.14918677*B,se=.38752654*I+.62144744*q-.00897398*B,G=-.0158415*I-.03412294*q+1.04996444*B;return LA(ne,se,G)}static fromXyzInViewingConditions(t,i,n,r){const a=.401288*t+.650173*i-.051461*n,o=-.250268*t+1.204414*i+.045854*n,l=-.002079*t+.048952*i+.953127*n,c=r.rgbD[0]*a,h=r.rgbD[1]*o,u=r.rgbD[2]*l,f=Math.pow(r.fl*Math.abs(c)/100,.42),y=Math.pow(r.fl*Math.abs(h)/100,.42),w=Math.pow(r.fl*Math.abs(u)/100,.42),g=di(c)*400*f/(f+27.13),O=di(h)*400*y/(y+27.13),x=di(u)*400*w/(w+27.13),$=(11*g+-12*O+x)/11,C=(g+O-2*x)/9,A=(20*g+20*O+21*x)/20,E=(40*g+20*O+x)/20,R=Math.atan2(C,$)*180/Math.PI,z=R<0?R+360:R>=360?R-360:R,I=z*Math.PI/180,q=E*r.nbb,B=100*Math.pow(q/r.aw,r.c*r.z),ne=4/r.c*Math.sqrt(B/100)*(r.aw+4)*r.fLRoot,se=z<20.14?z+360:z,G=1/4*(Math.cos(se*Math.PI/180+2)+3.8),ce=5e4/13*G*r.nc*r.ncb*Math.sqrt($*$+C*C)/(A+.305),te=Math.pow(ce,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),Me=te*Math.sqrt(B/100),$e=Me*r.fLRoot,Ue=50*Math.sqrt(te*r.c/(r.aw+4)),Ve=(1+100*.007)*B/(1+.007*B),De=Math.log(1+.0228*$e)/.0228,bi=De*Math.cos(I),At=De*Math.sin(I);return new Di(z,Me,B,ne,$e,Ue,Ve,bi,At)}xyzInViewingConditions(t){const i=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(i/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),r=this.hue*Math.PI/180,a=.25*(Math.cos(r+2)+3.8),o=t.aw*Math.pow(this.j/100,1/t.c/t.z),l=a*(5e4/13)*t.nc*t.ncb,c=o/t.nbb,h=Math.sin(r),u=Math.cos(r),f=23*(c+.305)*n/(23*l+11*n*u+108*n*h),y=f*u,w=f*h,g=(460*c+451*y+288*w)/1403,O=(460*c-891*y-261*w)/1403,x=(460*c-220*y-6300*w)/1403,$=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),C=di(g)*(100/t.fl)*Math.pow($,1/.42),A=Math.max(0,27.13*Math.abs(O)/(400-Math.abs(O))),E=di(O)*(100/t.fl)*Math.pow(A,1/.42),R=Math.max(0,27.13*Math.abs(x)/(400-Math.abs(x))),z=di(x)*(100/t.fl)*Math.pow(R,1/.42),I=C/t.rgbD[0],q=E/t.rgbD[1],B=z/t.rgbD[2],ne=1.86206786*I-1.01125463*q+.14918677*B,se=.38752654*I+.62144744*q-.00897398*B,G=-.0158415*I-.03412294*q+1.04996444*B;return[ne,se,G]}},d(Di,"mi"),Di);p(VA,"Cam16");let Xn=VA;var be;const DA=(be=class{static sanitizeRadians(t){return(t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){const i=t/100;let n=0;return i<=.0031308?n=i*12.92:n=1.055*Math.pow(i,1/2.4)-.055,n*255}static chromaticAdaptation(t){const i=Math.pow(Math.abs(t),.42);return di(t)*400*i/(i+27.13)}static hueOf(t){const i=K1(t,be.SCALED_DISCOUNT_FROM_LINRGB),n=be.chromaticAdaptation(i[0]),r=be.chromaticAdaptation(i[1]),a=be.chromaticAdaptation(i[2]),o=(11*n+-12*r+a)/11,l=(n+r-2*a)/9;return Math.atan2(l,o)}static areInCyclicOrder(t,i,n){const r=be.sanitizeRadians(i-t),a=be.sanitizeRadians(n-t);return r<a}static intercept(t,i,n){return(i-t)/(n-t)}static lerpPoint(t,i,n){return[t[0]+(n[0]-t[0])*i,t[1]+(n[1]-t[1])*i,t[2]+(n[2]-t[2])*i]}static setCoordinate(t,i,n,r){const a=be.intercept(t[r],i,n[r]);return be.lerpPoint(t,a,n)}static isBounded(t){return 0<=t&&t<=100}static nthVertex(t,i){const n=be.Y_FROM_LINRGB[0],r=be.Y_FROM_LINRGB[1],a=be.Y_FROM_LINRGB[2],o=i%4<=1?0:100,l=i%2===0?0:100;if(i<4){const c=o,h=l,u=(t-c*r-h*a)/n;return be.isBounded(u)?[u,c,h]:[-1,-1,-1]}else if(i<8){const c=o,h=l,u=(t-h*n-c*a)/r;return be.isBounded(u)?[h,u,c]:[-1,-1,-1]}else{const c=o,h=l,u=(t-c*n-h*r)/a;return be.isBounded(u)?[c,h,u]:[-1,-1,-1]}}static bisectToSegment(t,i){let n=[-1,-1,-1],r=n,a=0,o=0,l=!1,c=!0;for(let h=0;h<12;h++){const u=be.nthVertex(t,h);if(u[0]<0)continue;const f=be.hueOf(u);if(!l){n=u,r=u,a=f,o=f,l=!0;continue}(c||be.areInCyclicOrder(a,f,o))&&(c=!1,be.areInCyclicOrder(a,i,f)?(r=u,o=f):(n=u,a=f))}return[n,r]}static midpoint(t,i){return[(t[0]+i[0])/2,(t[1]+i[1])/2,(t[2]+i[2])/2]}static criticalPlaneBelow(t){return Math.floor(t-.5)}static criticalPlaneAbove(t){return Math.ceil(t-.5)}static bisectToLimit(t,i){const n=be.bisectToSegment(t,i);let r=n[0],a=be.hueOf(r),o=n[1];for(let l=0;l<3;l++)if(r[l]!==o[l]){let c=-1,h=255;r[l]<o[l]?(c=be.criticalPlaneBelow(be.trueDelinearized(r[l])),h=be.criticalPlaneAbove(be.trueDelinearized(o[l]))):(c=be.criticalPlaneAbove(be.trueDelinearized(r[l])),h=be.criticalPlaneBelow(be.trueDelinearized(o[l])));for(let u=0;u<8&&!(Math.abs(h-c)<=1);u++){const f=Math.floor((c+h)/2),y=be.CRITICAL_PLANES[f],w=be.setCoordinate(r,y,o,l),g=be.hueOf(w);be.areInCyclicOrder(a,i,g)?(o=w,h=f):(r=w,a=g,c=f)}}return be.midpoint(r,o)}static inverseChromaticAdaptation(t){const i=Math.abs(t),n=Math.max(0,27.13*i/(400-i));return di(t)*Math.pow(n,1/.42)}static findResultByJ(t,i,n){let r=Math.sqrt(n)*11;const a=Es.DEFAULT,o=1/Math.pow(1.64-Math.pow(.29,a.n),.73),l=.25*(Math.cos(t+2)+3.8)*(5e4/13)*a.nc*a.ncb,c=Math.sin(t),h=Math.cos(t);for(let u=0;u<5;u++){const f=r/100,y=i===0||r===0?0:i/Math.sqrt(f),w=Math.pow(y*o,1/.9),g=a.aw*Math.pow(f,1/a.c/a.z)/a.nbb,O=23*(g+.305)*w/(23*l+11*w*h+108*w*c),x=O*h,$=O*c,C=(460*g+451*x+288*$)/1403,A=(460*g-891*x-261*$)/1403,E=(460*g-220*x-6300*$)/1403,R=be.inverseChromaticAdaptation(C),z=be.inverseChromaticAdaptation(A),I=be.inverseChromaticAdaptation(E),q=K1([R,z,I],be.LINRGB_FROM_SCALED_DISCOUNT);if(q[0]<0||q[1]<0||q[2]<0)return 0;const B=be.Y_FROM_LINRGB[0],ne=be.Y_FROM_LINRGB[1],se=be.Y_FROM_LINRGB[2],G=B*q[0]+ne*q[1]+se*q[2];if(G<=0)return 0;if(u===4||Math.abs(G-n)<.002)return q[0]>100.01||q[1]>100.01||q[2]>100.01?0:ux(q);r=r-(G-n)*r/(2*G)}return 0}static solveToInt(t,i,n){if(i<1e-4||n<1e-4||n>99.9999)return _A(n);t=Hv(t);const r=t/180*Math.PI,a=As(n),o=be.findResultByJ(r,i,a);if(o!==0)return o;const l=be.bisectToLimit(a,r);return ux(l)}static solveToCam(t,i,n){return Xn.fromInt(be.solveToInt(t,i,n))}},d(be,"it"),be);p(DA,"HctSolver");let mr=DA;mr.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];mr.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];mr.Y_FROM_LINRGB=[.2126,.7152,.0722];mr.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 Vs;const qA=(Vs=class{static from(t,i,n){return new Vs(mr.solveToInt(t,i,n))}static fromInt(t){return new Vs(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(mr.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(mr.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(mr.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const i=Xn.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=J1(t),this.argb=t}setInternalState(t){const i=Xn.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=J1(t),this.argb=t}inViewingConditions(t){const i=Xn.fromInt(this.toInt()).xyzInViewingConditions(t),n=Xn.fromXyzInViewingConditions(i[0],i[1],i[2],Es.make());return Vs.from(n.hue,n.chroma,ev(i[1]))}},d(Vs,"Dr"),Vs);p(qA,"Hct");let Pi=qA;var Ro;const UA=(Ro=class{static harmonize(t,i){const n=Pi.fromInt(t),r=Pi.fromInt(i),a=EA(n.hue,r.hue),o=Math.min(a*.5,15),l=Hv(n.hue+o*AA(n.hue,r.hue));return Pi.from(l,n.chroma,n.tone).toInt()}static hctHue(t,i,n){const r=Ro.cam16Ucs(t,i,n),a=Xn.fromInt(r),o=Xn.fromInt(t);return Pi.from(a.hue,o.chroma,J1(t)).toInt()}static cam16Ucs(t,i,n){const r=Xn.fromInt(t),a=Xn.fromInt(i),o=r.jstar,l=r.astar,c=r.bstar,h=a.jstar,u=a.astar,f=a.bstar,y=o+(h-o)*n,w=l+(u-l)*n,g=c+(f-c)*n;return Xn.fromUcs(y,w,g).toInt()}},d(Ro,"El"),Ro);p(UA,"Blend");let Vn=UA;var mn;const jA=(mn=class{static ratioOfTones(t,i){return t=Gm(0,100,t),i=Gm(0,100,i),mn.ratioOfYs(As(t),As(i))}static ratioOfYs(t,i){const n=t>i?t:i,r=n===i?t:i;return(n+5)/(r+5)}static lighter(t,i){if(t<0||t>100)return-1;const n=As(t),r=i*(n+5)-5,a=mn.ratioOfYs(r,n),o=Math.abs(a-i);if(a<i&&o>.04)return-1;const l=ev(r)+.4;return l<0||l>100?-1:l}static darker(t,i){if(t<0||t>100)return-1;const n=As(t),r=(n+5)/i-5,a=mn.ratioOfYs(n,r),o=Math.abs(a-i);if(a<i&&o>.04)return-1;const l=ev(r)-.4;return l<0||l>100?-1:l}static lighterUnsafe(t,i){const n=mn.lighter(t,i);return n<0?100:n}static darkerUnsafe(t,i){const n=mn.darker(t,i);return n<0?0:n}},d(mn,"ns"),mn);p(jA,"Contrast");let Yi=jA;var Ao;const BA=(Ao=class{static isDisliked(t){const i=Math.round(t.hue)>=90&&Math.round(t.hue)<=111,n=Math.round(t.chroma)>16,r=Math.round(t.tone)<65;return i&&n&&r}static fixIfDisliked(t){return Ao.isDisliked(t)?Pi.from(t.hue,t.chroma,70):t}},d(Ao,"Al"),Ao);p(BA,"DislikeAnalyzer");let NU=BA;var Wt;const FA=(Wt=class{static fromPalette(t){return new Wt(t.name??"",t.palette,t.tone,t.isBackground??!1,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}constructor(t,i,n,r,a,o,l,c){if(this.name=t,this.palette=i,this.tone=n,this.isBackground=r,this.background=a,this.secondBackground=o,this.contrastCurve=l,this.toneDeltaPair=c,this.hctCache=new Map,!a&&o)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!a&&l)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(a&&!l)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(t){return this.getHct(t).toInt()}getHct(t){const i=this.hctCache.get(t);if(i!=null)return i;const n=this.getTone(t),r=this.palette(t).getHct(n);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,r),r}getTone(t){const i=t.contrastLevel<0;if(this.toneDeltaPair){const n=this.toneDeltaPair(t),r=n.roleA,a=n.roleB,o=n.delta,l=n.polarity,c=n.stayTogether,h=this.background(t).getTone(t),u=l==="nearer"||l==="lighter"&&!t.isDark||l==="darker"&&t.isDark,f=u?r:a,y=u?a:r,w=this.name===f.name,g=t.isDark?1:-1,O=f.contrastCurve.getContrast(t.contrastLevel),x=y.contrastCurve.getContrast(t.contrastLevel),$=f.tone(t);let C=Yi.ratioOfTones(h,$)>=O?$:Wt.foregroundTone(h,O);const A=y.tone(t);let E=Yi.ratioOfTones(h,A)>=x?A:Wt.foregroundTone(h,x);return i&&(C=Wt.foregroundTone(h,O),E=Wt.foregroundTone(h,x)),(E-C)*g>=o||(E=Gm(0,100,C+o*g),(E-C)*g>=o||(C=Gm(0,100,E-o*g))),50<=C&&C<60?g>0?(C=60,E=Math.max(E,C+o*g)):(C=49,E=Math.min(E,C+o*g)):50<=E&&E<60&&(c?g>0?(C=60,E=Math.max(E,C+o*g)):(C=49,E=Math.min(E,C+o*g)):g>0?E=60:E=49),w?C:E}else{let n=this.tone(t);if(this.background==null)return n;const r=this.background(t).getTone(t),a=this.contrastCurve.getContrast(t.contrastLevel);if(Yi.ratioOfTones(r,n)>=a||(n=Wt.foregroundTone(r,a)),i&&(n=Wt.foregroundTone(r,a)),this.isBackground&&50<=n&&n<60&&(Yi.ratioOfTones(49,r)>=a?n=49:n=60),this.secondBackground){const[o,l]=[this.background,this.secondBackground],[c,h]=[o(t).getTone(t),l(t).getTone(t)],[u,f]=[Math.max(c,h),Math.min(c,h)];if(Yi.ratioOfTones(u,n)>=a&&Yi.ratioOfTones(f,n)>=a)return n;const y=Yi.lighter(u,a),w=Yi.darker(f,a),g=[];return y!==-1&&g.push(y),w!==-1&&g.push(w),Wt.tonePrefersLightForeground(c)||Wt.tonePrefersLightForeground(h)?y<0?100:y:g.length===1?g[0]:w<0?0:w}return n}}static foregroundTone(t,i){const n=Yi.lighterUnsafe(t,i),r=Yi.darkerUnsafe(t,i),a=Yi.ratioOfTones(n,t),o=Yi.ratioOfTones(r,t);if(Wt.tonePrefersLightForeground(t)){const l=Math.abs(a-o)<.1&&a<i&&o<i;return a>=i||a>=o||l?n:r}else return o>=i||o>=a?r:n}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return Wt.tonePrefersLightForeground(t)&&!Wt.toneAllowsLightForeground(t)?49:t}},d(Wt,"ke"),Wt);p(FA,"DynamicColor");let ue=FA;var Km;(function(s){s[s.MONOCHROME=0]="MONOCHROME",s[s.NEUTRAL=1]="NEUTRAL",s[s.TONAL_SPOT=2]="TONAL_SPOT",s[s.VIBRANT=3]="VIBRANT",s[s.EXPRESSIVE=4]="EXPRESSIVE",s[s.FIDELITY=5]="FIDELITY",s[s.CONTENT=6]="CONTENT",s[s.RAINBOW=7]="RAINBOW",s[s.FRUIT_SALAD=8]="FRUIT_SALAD"})(Km||(Km={}));var gu;const XA=(gu=class{constructor(t,i,n,r){this.low=t,this.normal=i,this.medium=n,this.high=r}getContrast(t){return t<=-1?this.low:t<0?Zc(this.low,this.normal,(t- -1)/1):t<.5?Zc(this.normal,this.medium,(t-0)/.5):t<1?Zc(this.medium,this.high,(t-.5)/.5):this.high}},d(gu,"Fu"),gu);p(XA,"ContrastCurve");let Le=XA;var vu;const NA=(vu=class{constructor(t,i,n,r,a){this.roleA=t,this.roleB=i,this.delta=n,this.polarity=r,this.stayTogether=a}},d(vu,"Du"),vu);p(NA,"ToneDeltaPair");let Ri=NA;function sl(s){return s.variant===Km.FIDELITY||s.variant===Km.CONTENT}d(sl,"zo");p(sl,"isFidelity");function pt(s){return s.variant===Km.MONOCHROME}d(pt,"jt");p(pt,"isMonochrome");function HA(s,t,i,n){let r=i,a=Pi.from(s,t,i);if(a.chroma<t){let o=a.chroma;for(;a.chroma<t;){r+=n?-1:1;const l=Pi.from(s,t,r);if(o>l.chroma||Math.abs(l.chroma-t)<.4)break;const c=Math.abs(l.chroma-t),h=Math.abs(a.chroma-t);c<h&&(a=l),o=Math.max(o,l.chroma)}}return r}d(HA,"b1");p(HA,"findDesiredChromaByTone");function YA(s){return Es.make(void 0,void 0,s.isDark?30:80,void 0,void 0)}d(YA,"x1");p(YA,"viewingConditionsForAlbers");function Gv(s,t){const i=s.inViewingConditions(YA(t));return ue.tonePrefersLightForeground(s.tone)&&!ue.toneAllowsLightForeground(i.tone)?ue.enableLightForeground(s.tone):ue.enableLightForeground(i.tone)}d(Gv,"nu");p(Gv,"performAlbers");var Vr;const GA=(Vr=class{static highestSurface(t){return t.isDark?Vr.surfaceBright:Vr.surfaceDim}},d(Vr,"qo"),Vr);p(GA,"MaterialDynamicColors");let V=GA;V.contentAccentToneDelta=15;V.primaryPaletteKeyColor=ue.fromPalette({name:"primary_palette_key_color",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>s.primaryPalette.keyColor.tone,"tone")});V.secondaryPaletteKeyColor=ue.fromPalette({name:"secondary_palette_key_color",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>s.secondaryPalette.keyColor.tone,"tone")});V.tertiaryPaletteKeyColor=ue.fromPalette({name:"tertiary_palette_key_color",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>s.tertiaryPalette.keyColor.tone,"tone")});V.neutralPaletteKeyColor=ue.fromPalette({name:"neutral_palette_key_color",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.neutralPalette.keyColor.tone,"tone")});V.neutralVariantPaletteKeyColor=ue.fromPalette({name:"neutral_variant_palette_key_color",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.neutralVariantPalette.keyColor.tone,"tone")});V.background=ue.fromPalette({name:"background",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?6:98,"tone"),isBackground:!0});V.onBackground=ue.fromPalette({name:"on_background",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?90:10,"tone"),background:p(s=>V.background,"background"),contrastCurve:new Le(3,3,4.5,7)});V.surface=ue.fromPalette({name:"surface",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?6:98,"tone"),isBackground:!0});V.surfaceDim=ue.fromPalette({name:"surface_dim",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?6:87,"tone"),isBackground:!0});V.surfaceBright=ue.fromPalette({name:"surface_bright",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?24:98,"tone"),isBackground:!0});V.surfaceContainerLowest=ue.fromPalette({name:"surface_container_lowest",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?4:100,"tone"),isBackground:!0});V.surfaceContainerLow=ue.fromPalette({name:"surface_container_low",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?10:96,"tone"),isBackground:!0});V.surfaceContainer=ue.fromPalette({name:"surface_container",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?12:94,"tone"),isBackground:!0});V.surfaceContainerHigh=ue.fromPalette({name:"surface_container_high",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?17:92,"tone"),isBackground:!0});V.surfaceContainerHighest=ue.fromPalette({name:"surface_container_highest",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?22:90,"tone"),isBackground:!0});V.onSurface=ue.fromPalette({name:"on_surface",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?90:10,"tone"),background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(4.5,7,11,21)});V.surfaceVariant=ue.fromPalette({name:"surface_variant",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.isDark?30:90,"tone"),isBackground:!0});V.onSurfaceVariant=ue.fromPalette({name:"on_surface_variant",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.isDark?80:30,"tone"),background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(3,4.5,7,11)});V.inverseSurface=ue.fromPalette({name:"inverse_surface",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?90:20,"tone")});V.inverseOnSurface=ue.fromPalette({name:"inverse_on_surface",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?20:95,"tone"),background:p(s=>V.inverseSurface,"background"),contrastCurve:new Le(4.5,7,11,21)});V.outline=ue.fromPalette({name:"outline",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.isDark?60:50,"tone"),background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1.5,3,4.5,7)});V.outlineVariant=ue.fromPalette({name:"outline_variant",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.isDark?30:80,"tone"),background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7)});V.shadow=ue.fromPalette({name:"shadow",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>0,"tone")});V.scrim=ue.fromPalette({name:"scrim",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>0,"tone")});V.surfaceTint=ue.fromPalette({name:"surface_tint",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>s.isDark?80:40,"tone"),isBackground:!0});V.primary=ue.fromPalette({name:"primary",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>pt(s)?s.isDark?100:0:s.isDark?80:40,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(3,4.5,7,11),toneDeltaPair:p(s=>new Ri(V.primaryContainer,V.primary,15,"nearer",!1),"toneDeltaPair")});V.onPrimary=ue.fromPalette({name:"on_primary",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>pt(s)?s.isDark?10:90:s.isDark?20:100,"tone"),background:p(s=>V.primary,"background"),contrastCurve:new Le(4.5,7,11,21)});V.primaryContainer=ue.fromPalette({name:"primary_container",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>sl(s)?Gv(s.sourceColorHct,s):pt(s)?s.isDark?85:25:s.isDark?30:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.primaryContainer,V.primary,15,"nearer",!1),"toneDeltaPair")});V.onPrimaryContainer=ue.fromPalette({name:"on_primary_container",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>sl(s)?ue.foregroundTone(V.primaryContainer.tone(s),4.5):pt(s)?s.isDark?0:100:s.isDark?90:10,"tone"),background:p(s=>V.primaryContainer,"background"),contrastCurve:new Le(4.5,7,11,21)});V.inversePrimary=ue.fromPalette({name:"inverse_primary",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>s.isDark?40:80,"tone"),background:p(s=>V.inverseSurface,"background"),contrastCurve:new Le(3,4.5,7,11)});V.secondary=ue.fromPalette({name:"secondary",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>s.isDark?80:40,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(3,4.5,7,11),toneDeltaPair:p(s=>new Ri(V.secondaryContainer,V.secondary,15,"nearer",!1),"toneDeltaPair")});V.onSecondary=ue.fromPalette({name:"on_secondary",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>pt(s)?s.isDark?10:100:s.isDark?20:100,"tone"),background:p(s=>V.secondary,"background"),contrastCurve:new Le(4.5,7,11,21)});V.secondaryContainer=ue.fromPalette({name:"secondary_container",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>{const t=s.isDark?30:90;if(pt(s))return s.isDark?30:85;if(!sl(s))return t;let i=HA(s.secondaryPalette.hue,s.secondaryPalette.chroma,t,!s.isDark);return i=Gv(s.secondaryPalette.getHct(i),s),i},"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.secondaryContainer,V.secondary,15,"nearer",!1),"toneDeltaPair")});V.onSecondaryContainer=ue.fromPalette({name:"on_secondary_container",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>sl(s)?ue.foregroundTone(V.secondaryContainer.tone(s),4.5):s.isDark?90:10,"tone"),background:p(s=>V.secondaryContainer,"background"),contrastCurve:new Le(4.5,7,11,21)});V.tertiary=ue.fromPalette({name:"tertiary",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?s.isDark?90:25:s.isDark?80:40,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(3,4.5,7,11),toneDeltaPair:p(s=>new Ri(V.tertiaryContainer,V.tertiary,15,"nearer",!1),"toneDeltaPair")});V.onTertiary=ue.fromPalette({name:"on_tertiary",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?s.isDark?10:90:s.isDark?20:100,"tone"),background:p(s=>V.tertiary,"background"),contrastCurve:new Le(4.5,7,11,21)});V.tertiaryContainer=ue.fromPalette({name:"tertiary_container",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>{if(pt(s))return s.isDark?60:49;if(!sl(s))return s.isDark?30:90;const t=Gv(s.tertiaryPalette.getHct(s.sourceColorHct.tone),s),i=s.tertiaryPalette.getHct(t);return NU.fixIfDisliked(i).tone},"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.tertiaryContainer,V.tertiary,15,"nearer",!1),"toneDeltaPair")});V.onTertiaryContainer=ue.fromPalette({name:"on_tertiary_container",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?s.isDark?0:100:sl(s)?ue.foregroundTone(V.tertiaryContainer.tone(s),4.5):s.isDark?90:10,"tone"),background:p(s=>V.tertiaryContainer,"background"),contrastCurve:new Le(4.5,7,11,21)});V.error=ue.fromPalette({name:"error",palette:p(s=>s.errorPalette,"palette"),tone:p(s=>s.isDark?80:40,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(3,4.5,7,11),toneDeltaPair:p(s=>new Ri(V.errorContainer,V.error,15,"nearer",!1),"toneDeltaPair")});V.onError=ue.fromPalette({name:"on_error",palette:p(s=>s.errorPalette,"palette"),tone:p(s=>s.isDark?20:100,"tone"),background:p(s=>V.error,"background"),contrastCurve:new Le(4.5,7,11,21)});V.errorContainer=ue.fromPalette({name:"error_container",palette:p(s=>s.errorPalette,"palette"),tone:p(s=>s.isDark?30:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.errorContainer,V.error,15,"nearer",!1),"toneDeltaPair")});V.onErrorContainer=ue.fromPalette({name:"on_error_container",palette:p(s=>s.errorPalette,"palette"),tone:p(s=>s.isDark?90:10,"tone"),background:p(s=>V.errorContainer,"background"),contrastCurve:new Le(4.5,7,11,21)});V.primaryFixed=ue.fromPalette({name:"primary_fixed",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>pt(s)?40:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.primaryFixed,V.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.primaryFixedDim=ue.fromPalette({name:"primary_fixed_dim",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>pt(s)?30:80,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.primaryFixed,V.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.onPrimaryFixed=ue.fromPalette({name:"on_primary_fixed",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>pt(s)?100:10,"tone"),background:p(s=>V.primaryFixedDim,"background"),secondBackground:p(s=>V.primaryFixed,"secondBackground"),contrastCurve:new Le(4.5,7,11,21)});V.onPrimaryFixedVariant=ue.fromPalette({name:"on_primary_fixed_variant",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>pt(s)?90:30,"tone"),background:p(s=>V.primaryFixedDim,"background"),secondBackground:p(s=>V.primaryFixed,"secondBackground"),contrastCurve:new Le(3,4.5,7,11)});V.secondaryFixed=ue.fromPalette({name:"secondary_fixed",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>pt(s)?80:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.secondaryFixed,V.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.secondaryFixedDim=ue.fromPalette({name:"secondary_fixed_dim",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>pt(s)?70:80,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.secondaryFixed,V.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.onSecondaryFixed=ue.fromPalette({name:"on_secondary_fixed",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>10,"tone"),background:p(s=>V.secondaryFixedDim,"background"),secondBackground:p(s=>V.secondaryFixed,"secondBackground"),contrastCurve:new Le(4.5,7,11,21)});V.onSecondaryFixedVariant=ue.fromPalette({name:"on_secondary_fixed_variant",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>pt(s)?25:30,"tone"),background:p(s=>V.secondaryFixedDim,"background"),secondBackground:p(s=>V.secondaryFixed,"secondBackground"),contrastCurve:new Le(3,4.5,7,11)});V.tertiaryFixed=ue.fromPalette({name:"tertiary_fixed",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?40:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.tertiaryFixed,V.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.tertiaryFixedDim=ue.fromPalette({name:"tertiary_fixed_dim",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?30:80,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Le(1,1,3,7),toneDeltaPair:p(s=>new Ri(V.tertiaryFixed,V.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.onTertiaryFixed=ue.fromPalette({name:"on_tertiary_fixed",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?100:10,"tone"),background:p(s=>V.tertiaryFixedDim,"background"),secondBackground:p(s=>V.tertiaryFixed,"secondBackground"),contrastCurve:new Le(4.5,7,11,21)});V.onTertiaryFixedVariant=ue.fromPalette({name:"on_tertiary_fixed_variant",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>pt(s)?90:30,"tone"),background:p(s=>V.tertiaryFixedDim,"background"),secondBackground:p(s=>V.tertiaryFixed,"secondBackground"),contrastCurve:new Le(3,4.5,7,11)});var is;const KA=(is=class{static fromInt(t){const i=Pi.fromInt(t);return is.fromHct(i)}static fromHct(t){return new is(t.hue,t.chroma,t)}static fromHueAndChroma(t,i){return new is(t,i,is.createKeyColor(t,i))}constructor(t,i,n){this.hue=t,this.chroma=i,this.keyColor=n,this.cache=new Map}static createKeyColor(t,i){let n=Pi.from(t,i,50),r=Math.abs(n.chroma-i);for(let a=1;a<50;a+=1){if(Math.round(i)===Math.round(n.chroma))return n;const o=Pi.from(t,i,50+a),l=Math.abs(o.chroma-i);l<r&&(r=l,n=o);const c=Pi.from(t,i,50-a),h=Math.abs(c.chroma-i);h<r&&(r=h,n=c)}return n}tone(t){let i=this.cache.get(t);return i===void 0&&(i=Pi.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,i)),i}getHct(t){return Pi.fromInt(this.tone(t))}},d(is,"Ts"),is);p(KA,"TonalPalette");let nt=KA;function px(s){const t=sS(s),i=rS(s),n=aS(s),r=[t.toString(16),i.toString(16),n.toString(16)];for(const[a,o]of r.entries())o.length===1&&(r[a]="0"+o);return"#"+r.join("")}d(px,"_p");p(px,"hexFromArgb");function JA(s){s=s.replace("#","");const t=s.length===3,i=s.length===6,n=s.length===8;if(!t&&!i&&!n)throw new Error("unexpected hex "+s);let r=0,a=0,o=0;return t?(r=Un(s.slice(0,1).repeat(2)),a=Un(s.slice(1,2).repeat(2)),o=Un(s.slice(2,3).repeat(2))):i?(r=Un(s.slice(0,2)),a=Un(s.slice(2,4)),o=Un(s.slice(4,6))):n&&(r=Un(s.slice(2,4)),a=Un(s.slice(4,6)),o=Un(s.slice(6,8))),(255<<24|(r&255)<<16|(a&255)<<8|o&255)>>>0}d(JA,"$1");p(JA,"argbFromHex");function Un(s){return parseInt(s,16)}d(Un,"Fi");p(Un,"parseIntHex");function eE(s,t=!1){var i;const n=(i=s.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+\.{0,1}\d*))?\)$/))==null?void 0:i.slice(1).map((c,h)=>h===3?Math.round(parseFloat(c)*255):parseFloat(c));if(!n)throw new Error("Could not parse rgba color.");const[r,a,o,l]=n;return((t?255:l&255)<<24|(r&255)<<16|(a&255)<<8|o&255)>>>0}d(eE,"C1");p(eE,"argbFromRgba");function tE(s){ii();const t=document.createElement("wy-compute-styles");t.setAttribute("style",`color: ${s} !important;`),document.documentElement.append(t);const i=window.getComputedStyle(t).color;return t.remove(),i}d(tE,"k1");p(tE,"getComputedColor");function tv(s){return getComputedStyle(s).getPropertyValue("--wy-theme-color")||void 0}d(tv,"vh");p(tv,"getCSSThemeColor");function iE(s,t){let i=tv(s);const n=new MutationObserver(()=>{const o=tv(s);o!==i&&(i=o,t(o))}),r={attributes:!0,attributeFilter:["class","style"]};let a=s;for(;a&&a!==document;)n.observe(a,r),a=a.parentNode;return()=>n.disconnect()}d(iE,"_1");p(iE,"observeCSSThemeColor");function iv(){var s;return ii(),((s=Array.from(document.head.querySelectorAll("meta[name='theme-color']")).filter(t=>{var i;const n=t.getAttribute("media");return!n||((i=window.matchMedia(n))==null?void 0:i.matches)}).pop())==null?void 0:s.getAttribute("content"))||void 0}d(iv,"gh");p(iv,"getMetaThemeColor");function nE(s){ii();const t=Array.from(document.head.querySelectorAll("meta[name='theme-color']"));if(!t)return()=>{};let i=iv();const n=p(()=>{const l=iv();l!==i&&(i=l,s(l))},"checkChangedColor"),r=new MutationObserver(n),a={attributes:!0,attributeFilter:["content"]},o=[];return t.forEach(l=>{r.observe(l,a);const c=l.getAttribute("media");if(c){const h=window.matchMedia(c);h.addEventListener("change",n),o.push(h)}}),()=>{r.disconnect(),o.forEach(l=>l.removeEventListener("change",n))}}d(nE,"M1");p(nE,"observeMetaThemeColor");const Uy=[],HU=16;function sE(s,t=!1){var i;if(Uy.some(R=>R.seedColor===s)){const R=(i=Uy.find(z=>z.seedColor===s))==null?void 0:i.colors;if(R)return R}const n=[];t&&n.push(`--wy-theme-color:${s};`);let r=s;!s.startsWith("#")&&!s.startsWith("rgb")&&(r=tE(s));const a=s.startsWith("#")?JA(r):eE(r),o=Pi.fromInt(a),l=o.hue,c=o.chroma,h=Math.max(48,c),u=Math.min(h,84),f=360/16,y=27.4,w=-8,g=(l+360-y-w+f/2)%f+y+w-f/2,O={primary:nt.fromHueAndChroma(l,h),secondary:nt.fromHueAndChroma(l,h/3),tertiary:nt.fromHueAndChroma(l+60,h/2),neutral:nt.fromHueAndChroma(l,Math.min(c/12,4)),"neutral-variant":nt.fromHueAndChroma(l,Math.min(c/6,8)),error:nt.fromHueAndChroma(g,84),warning:nt.fromHueAndChroma(g+4*f,u),red:nt.fromHueAndChroma(g,u),"deep-orange":nt.fromHueAndChroma(g+1*f,u),orange:nt.fromHueAndChroma(g+2*f,u),amber:nt.fromHueAndChroma(g+3*f,u),yellow:nt.fromHueAndChroma(g+4*f,u),lime:nt.fromHueAndChroma(g+5*f,u),"light-green":nt.fromHueAndChroma(g+6*f,u),green:nt.fromHueAndChroma(g+7*f,u),teal:nt.fromHueAndChroma(g+8*f,u),cyan:nt.fromHueAndChroma(g+9*f,u),"light-blue":nt.fromHueAndChroma(g+10*f,u),blue:nt.fromHueAndChroma(g+11*f,u),indigo:nt.fromHueAndChroma(g+12*f,u),"deep-purple":nt.fromHueAndChroma(g+13*f,u),purple:nt.fromHueAndChroma(g+14*f,u),pink:nt.fromHueAndChroma(g+15*f,u),gray:nt.fromHueAndChroma(l,4)},x={99:99,95:95,90:90,80:80,70:70,60:60,50:50,40:40,30:30,20:20,10:10},$={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 R in $){const z=$[R];for(const I in z){const q=px(O[R].tone(z[I]));n.push(`--wy-${R}-${I}:${q};`)}}const C={light:O.primary.tone(40),dark:O.primary.tone(80)},A={light:O.neutral.tone(99),dark:O.neutral.tone(10)},E={"surface-1":{light:Vn.cam16Ucs(A.light,C.light,.05),dark:Vn.cam16Ucs(A.dark,C.dark,.05)},"surface-2":{light:Vn.cam16Ucs(A.light,C.light,.08),dark:Vn.cam16Ucs(A.dark,C.dark,.08)},"surface-3":{light:Vn.cam16Ucs(A.light,C.light,.11),dark:Vn.cam16Ucs(A.dark,C.dark,.11)},"surface-4":{light:Vn.cam16Ucs(A.light,C.light,.12),dark:Vn.cam16Ucs(A.dark,C.dark,.12)},"surface-5":{light:Vn.cam16Ucs(A.light,C.light,.14),dark:Vn.cam16Ucs(A.dark,C.dark,.14)}};for(const R in E){const z=E[R];for(const I in z){const q=px(z[I]);n.push(`--wy-${R}-${I}:${q};`)}}return Uy.unshift({seedColor:s,colors:n}),Uy.length=Math.min(Uy.length,HU),n}d(sE,"P1");p(sE,"generateThemeColors");const YU=p(s=>{if(ii(),jv)document.adoptedStyleSheets=s.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of s){const i=document.createElement("style"),n=global.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=t.cssText,(document.head||document.documentElement).appendChild(i)}},"adoptGlobalStyles"),Ni=Re`.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)}`,GU=Re`@property --wy-component-color{syntax: \"<color>\"; inherits: true; initial-value: currentColor;}@property --wy-component-background-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}`,KU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),YU([GU,Ni])}},d(i,"t"),i),p(t,"WeavyStyles"),t},"WeavyStylesMixin"),JU=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this.version=Ct.version,this.whenUrl().then(()=>{this.isDestroyed||this.checkVersion()})}async checkVersion(r=this.version){var a,o;await this.whenUrl(),this.networkStateIsPending=!0;let l;try{if(l=await fetch(new URL("/version",this.url),await this.fetchOptions({},!1)),!l.ok)throw new Error("Could not verify environment version.");this.networkStateIsPending=!1,this.serverState="ok"}catch(h){this.networkStateIsPending=!1,this.serverState="unreachable",console.warn("Could not check version: "+h.toString());return}const c=await l.text();if(c.startsWith("v")&&(!r||!c||r!==c))try{const h=r.split(".").slice(0,2),u=c.split(".").slice(0,2);if(h[0]!==u[0])throw new Error;h[1]!==u[1]&&console.warn(`Version inconsistency: ${Ct.sourceName}@${this.version} ≠ ${(a=this.url)==null?void 0:a.hostname}@${c}`)}catch{throw new Error(`Version mismatch! ${Ct.sourceName}@${this.version} ≠ ${(o=this.url)==null?void 0:o.hostname}@${c}`)}}},d(i,"t"),i),p(t,"WeavyVersion"),t},"WeavyVersionMixin");var MO,bu;let rE=(MO=(bu=class extends Event{constructor(t,i,n,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=i,this.callback=n,this.subscribe=r??!1}},d(bu,"wn"),bu),p(MO,"s"),MO);var TO,Ou;let Yr=(TO=(Ou=class{constructor(t,i,n,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(a,o)=>{this.unsubscribe&&(this.unsubscribe!==o&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=a,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(a,o)),this.unsubscribe=o},this.host=t,i.context!==void 0){const a=i;this.context=a.context,this.callback=a.callback,this.subscribe=a.subscribe??!1}else this.context=i,this.callback=n,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new rE(this.context,this.host,this.t,this.subscribe))}},d(Ou,"fn"),Ou),p(TO,"s"),TO);var RO,$u;let ej=(RO=($u=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,i=!1){const n=i||!Object.is(t,this.o);this.o=t,n&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[i,{disposer:n}]of this.subscriptions)i(this.o,n)},t!==void 0&&(this.value=t)}addCallback(t,i,n){if(!n)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:p(()=>{this.subscriptions.delete(t)},"disposer"),consumerHost:i});const{disposer:r}=this.subscriptions.get(t);t(this.value,r)}clearCallbacks(){this.subscriptions.clear()}},d($u,"mn"),$u),p(RO,"s"),RO);var AO,xu;let tj=(AO=(xu=class extends Event{constructor(t,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=i}},d(xu,"vn"),xu),p(AO,"e"),AO);var EO,ku;let fx=(EO=(ku=class extends ej{constructor(t,i,n){var r,a;super(i.context!==void 0?i.initialValue:n),this.onContextRequest=o=>{if(o.context!==this.context)return;const l=o.contextTarget??o.composedPath()[0];l!==this.host&&(o.stopPropagation(),this.addCallback(o.callback,l,o.subscribe))},this.onProviderRequest=o=>{if(o.context!==this.context||(o.contextTarget??o.composedPath()[0])===this.host)return;const l=new Set;for(const[c,{consumerHost:h}]of this.subscriptions)l.has(c)||(l.add(c),h.dispatchEvent(new rE(this.context,h,c,!0)));o.stopPropagation()},this.host=t,i.context!==void 0?this.context=i.context:this.context=i,this.attachListeners(),(a=(r=this.host).addController)==null||a.call(r,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new tj(this.context,this.host))}},d(ku,"gn"),ku),p(EO,"i"),EO);function ha({context:s}){return(t,i)=>{const n=new WeakMap;if(typeof i=="object")return i.addInitializer(function(){n.set(this,new fx(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var a;return(a=n.get(this))==null||a.setValue(r),t.set.call(this,r)},init(r){var a;return(a=n.get(this))==null||a.setValue(r),r}};{t.constructor.addInitializer(o=>{n.set(o,new fx(o,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,i);let a;if(r===void 0){const o=new WeakMap;a={get(){return o.get(this)},set(l){n.get(this).setValue(l),o.set(this,l)},configurable:!0,enumerable:!0}}else{const o=r.set;a={...r,set(l){n.get(this).setValue(l),o==null||o.call(this,l)}}}return void Object.defineProperty(t,i,a)}}}d(ha,"pr");p(ha,"e$7");function St({context:s,subscribe:t}){return(i,n)=>{typeof n=="object"?n.addInitializer(function(){new Yr(this,{context:s,callback:p(r=>{i.set.call(this,r)},"callback"),subscribe:t})}):i.constructor.addInitializer(r=>{new Yr(r,{context:s,callback:p(a=>{r[n]=a},"callback"),subscribe:t})})}}d(St,"te");p(St,"c$2");var Su;const aE=(Su=class extends Event{constructor(t,i,n,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=i,this.callback=n,this.subscribe=r??!1}},d(Su,"Hu"),Su);p(aE,"ContextRequestEvent");let ij=aE;var Pu;const oE=(Pu=class extends Event{constructor(t,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=i}},d(Pu,"Vu"),Pu);p(oE,"ContextProviderEvent");let nj=oE;var Cu;const lE=(Cu=class extends fx{constructor(t,i,n){i.context!==void 0?super(t,i):super(t,i,n),i.context!==void 0?this._context=i.context:this._context=i,this.isAttached=!0,this.host instanceof J||this.dispatchWhenConnected()}dispatchWhenConnected(){this.isAttached&&(this.host.isConnected?this.host.dispatchEvent(new nj(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)}},d(Cu,"Bu"),Cu);p(lE,"WyContextProvider");let cE=lE;const zt=Symbol.for("weavy-client");function hE(s,t){return ii(),new cE(s,{context:zt,initialValue:t})}d(hE,"I1");p(hE,"createWeavyContextProvider");const Zi=Ov()?hE(document.documentElement):void 0,sj=p(s=>{var n;var t,i;return i=(n=class extends s{constructor(...a){super(...a),j(this,t),this.host!==document.documentElement?(Zi==null||Zi.detachListeners(),D(this,t,new cE(this.host,{context:zt,initialValue:this}))):Zi==null||Zi.setValue(this)}updateContext(){var a;this.host!==document.documentElement?(a=S(this,t))==null||a.updateObservers():Zi==null||Zi.updateObservers()}destroy(){var a;super.destroy(),this.host!==document.documentElement?(a=S(this,t))==null||a.detachListeners():(Zi==null?void 0:Zi.value)===this&&(Zi==null||Zi.setValue(void 0))}},d(n,"i"),n),t=new WeakMap,p(i,"WeavyContextProvider"),i},"WeavyContextProviderMixin");var Wg,Vg,rr,rm,Gt;const am=(Gt=class{constructor(t){j(this,Wg),j(this,Vg),j(this,rr),j(this,rm),this.weavySid=Vf(),this.weavyId=`${Gt.sourceName}#${this.weavySid}`,this.cloudFilePickerUrl=Gt.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=Gt.defaults.disableEnvironmentImports,this.gcTime=Gt.defaults.gcTime,this.scrollBehavior=Gt.defaults.scrollBehavior,this.staleTime=Gt.defaults.staleTime,this.tokenFactoryRetryDelay=Gt.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=Gt.defaults.tokenFactoryTimeout,D(this,Vg,new Promise(n=>{D(this,Wg,n)})),D(this,rm,!1),console.info(`${Gt.sourceName}@${Gt.version} #${this.weavySid}`),ii(),this.host=document.documentElement;const i={};for(const n in t){const r=n;t[r]!==void 0&&Object.assign(i,{[r]:t[r]})}i!=null&&i.host&&(this.host=i.host,delete i.host),Object.assign(this,i)}async whenUrl(){await S(this,Vg)}get url(){return S(this,rr)}set url(t){var i;if(this.isDestroyed)throw new kt;try{if(typeof t=="string")t&&D(this,rr,new URL(t,window.location.toString()));else if(t instanceof URL)D(this,rr,t||void 0);else if(t==null)D(this,rr,void 0);else throw-1}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),S(this,rr)&&((i=S(this,Wg))==null||i.call(this,S(this,rr)))}get cachePrefix(){return`${Gt.version}:${this.url}`}get isDestroyed(){return S(this,rm)}destroy(){D(this,rm,!0),console.info(this.weavyId,"was destroyed")}},d(Gt,"ue"),Gt);Wg=new WeakMap,Vg=new WeakMap,rr=new WeakMap,rm=new WeakMap,p(am,"WeavyClient"),am.version="27.1.1",am.sourceName="@weavy/uikit-web",am.defaults={cloudFilePickerUrl:"https://filebrowser.weavy.io/v14/",disableEnvironmentImports:!1,gcTime:1e3*60*60*24,locale:PA,notificationEvents:!1,scrollBehavior:"auto",staleTime:1e3*1,tokenFactoryRetryDelay:2e3,tokenFactoryTimeout:2e4,notifications:"button-list",notificationsBadge:"count",reactions:"😍 😎 😉 😜 👍"};let Ct=am;var Qu;const dE=(Qu=class extends sj(zU(UU(WU(IU(VU(_U(qU(JU(ZU(KU(jU(Ct)))))))))))){},d(Qu,"Uu"),Qu);p(dE,"Weavy");let wt=dE;var Mu;const uE=(Mu=class{constructor(t,i,n,r,a){var o,l;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this._callback=(c,h)=>{this.unsubscribe&&(this.unsubscribe!==h&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=c,this.host.requestUpdate(),(!this.provided||this.subscribe)&&(this.provided=!0,this.callback&&this.callback(c,h)),this.unsubscribe=h},this.host=t,i.context!==void 0){const c=i;this.context=c.context,this.callback=c.callback,this.subscribe=c.subscribe??!1,this.ref=c.ref??t}else this.context=i,this.callback=n,this.subscribe=r??!1,this.ref=a??t;(l=(o=this.host).addController)==null||l.call(o,this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.ref.dispatchEvent(new ij(this.context,this.host,this._callback,this.subscribe))}},d(Mu,"qu"),Mu);p(uE,"ContextConsumer");let rj=uE;var Tu;const pE=(Tu=class{constructor(t,i,n){this.whenRef=new Promise(r=>this.resolveRef=r),t.addController(this),this.host=t,this.ref=n,this.setContext(i)}get ref(){return this._ref}set ref(t){var i;this._ref=t,t&&((i=this.resolveRef)==null||i.call(this,t))}async setContext(t){this.whenContext=new Promise(n=>this.resolveContext=n);const i=await this.whenRef;this.context=new rj(this.host,{context:t,subscribe:!0,callback:p((n,r)=>{var a;(a=this.resolveContext)==null||a.call(this,n),this.host.requestUpdate()},"callback"),ref:i}),await Bx(i),this.context.dispatchRequest()}hostUpdate(){var t,i;(t=this.context)!=null&&t.value&&((i=this.resolveContext)==null||i.call(this,this.context.value))}},d(Tu,"Nu"),Tu);p(pE,"ContextController");let aj=pE;const oj={attribute:!0,type:String,converter:D1,reflect:!1,hasChanged:I5},lj=p((s=oj,t,i)=>{const{kind:n,metadata:r}=i;let a=globalThis.litPropertyMetadata.get(r);if(a===void 0&&globalThis.litPropertyMetadata.set(r,a=new Map),a.set(i.name,s),n==="accessor"){const{name:o}=i;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(o,c,s)},init(l){return l!==void 0&&this.P(o,void 0,s),l}}}if(n==="setter"){const{name:o}=i;return function(l){const c=this[o];t.call(this,l),this.requestUpdate(o,c,s)}}throw Error("Unsupported decorator location: "+n)},"r$3");function k(s){return(t,i)=>typeof i=="object"?lj(s,t,i):((n,r,a)=>{const o=r.hasOwnProperty(a);return r.constructor.createProperty(a,o?{...n,wrapped:!0}:n),o?Object.getOwnPropertyDescriptor(r,a):void 0})(s,t,i)}d(k,"w");p(k,"n$3");function X(s){return k({...s,state:!0,attribute:!1})}d(X,"B");p(X,"r$2");const cj=p((s,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(s,t,i),i),"e$6");function fE(s){return(t,i)=>{const{slot:n,selector:r}=s??{},a="slot"+(n?`[name=${n}]`:":not([name])");return cj(t,i,{get(){var o;const l=(o=this.renderRoot)==null?void 0:o.querySelector(a),c=(l==null?void 0:l.assignedElements(s))??[];return r===void 0?c:c.filter(h=>h.matches(r))}})}}d(fE,"V1");p(fE,"o$6");var Dg,Ru;const yE=(Ru=class{constructor(t){j(this,Dg),this.notifications=Ct.defaults.notifications,this.notificationsBadge=Ct.defaults.notificationsBadge,this.reactions=Ct.defaults.reactions,D(this,Dg,t),Object.keys(this).forEach(i=>{i in t&&Object.assign(this,{[i]:t[i]})})}get component(){return S(this,Dg)}},d(Ru,"ju"),Ru);Dg=new WeakMap,p(yE,"WeavyComponentSettings");let $C=yE;const mE=Symbol.for("weavy-component-settings");var Au;const wE=(Au=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(i=>this.resolveContext=i),this.whenQueryClient=new Promise(i=>this.resolveQueryClient=i),this.setContext()}async setContext(){await tl(this.host),this.context=new Yr(this.host,{context:zt,subscribe:!0,callback:p(t=>{var i,n;t&&((i=this.resolveContext)==null||i.call(this,t),this.queryClient=t.queryClient,(n=this.resolveQueryClient)==null||n.call(this,t.queryClient))},"callback")})}async trackQuery(t,i=!0){var n;const r=await this.whenQueryClient;if(!r)throw new Error("No QueryClient provided");(n=this.observerUnsubscribe)==null||n.call(this);const a=new rA(r,t);this.observer=a,this.observerSubscribe(i)}observerSubscribe(t=!0){var i;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 r=cy(this.result,this.observer.getCurrentResult());r!==this._result&&(this._result=r,this.host.requestUpdate())}}),this.observer.updateResult(),this.host.requestUpdate();let n;t?n=this.observer.fetchOptimistic(this.observer.options):n=(i=this.queryClient.getQueryCache().get(this.observer.options.queryHash))==null?void 0:i.promise,n==null||n.catch(()=>{}).finally(()=>{var r;(r=this.observer)==null||r.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)}},d(Au,"Wu"),Au);p(wE,"QueryController");let ji=wE;const lS=Symbol.for("weavy-app"),Kv=Symbol.for("weavy-user");var Z=(s=>(s.Attachments="attachments",s.Bots="bots",s.CloudFiles="cloud_files",s.ContextData="context_data",s.Comments="comments",s.Embeds="embeds",s.GoogleMeet="google_meet",s.Meetings="meetings",s.Mentions="mentions",s.MicrosoftTeams="microsoft_teams",s.Polls="polls",s.Previews="previews",s.Reactions="reactions",s.Receipts="receipts",s.Thumbnails="thumbnails",s.Typing="typing",s.Versions="versions",s.WebDAV="web_dav",s.ZoomMeetings="zoom_meetings",s))(Z||{});const cS=Symbol.for("weavy-features");var za,dc,Ss,Eo;const gE=(Eo=class{constructor(t,i){j(this,za),j(this,dc),j(this,Ss),D(this,za,Object.keys(t)),D(this,dc,Object.entries(t).reduce((n,[r,a])=>(a&&n.push(r),n),[])),D(this,Ss,i??S(this,dc))}features(){return S(this,za)}supportedFeature(...t){return t.every(i=>S(this,za).includes(i))}allowedFeatures(){return S(this,Ss)}allowsFeature(...t){return t.every(i=>this.supportedFeature(i)?S(this,Ss).includes(i):!1)}allowsAnyFeature(...t){return t.some(i=>this.supportedFeature(i)?S(this,Ss).includes(i):!1)}setAllowedFeatures(t){return D(this,Ss,typeof t=="string"?hS(t,S(this,za)):S(this,dc)),S(this,Ss)}immutable(){const t=Jv(S(this,za),S(this,dc));return new Eo(t,S(this,Ss))}},d(Eo,"Ol"),Eo);za=new WeakMap,dc=new WeakMap,Ss=new WeakMap,p(gE,"ComponentFeatures");let $n=gE;function hS(s,t){return s.split(" ").filter(i=>{if(i){if(t.includes(i))return!0;console.warn("Unknown feature provided:",i)}return!1})}d(hS,"aw");p(hS,"featureListFromString");function Jv(s,t){return t??(t=s),Object.fromEntries(s.map(i=>[i,t.includes(i)]))}d(Jv,"cu");p(Jv,"featureConfigFromList");const yx=Object.values(Z),vE=Symbol.for("weavy-link"),bE=Symbol.for("weavy-bot-user");var hj=Object.defineProperty,dj=Object.getOwnPropertyDescriptor,jt=p((s,t,i,n)=>{for(var r=n>1?void 0:n?dj(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&hj(t,i,r),r},"__decorateClass$19"),qg,Ug,jg,om,lm,Bg,Fg,Xg,Ng,cm,hm,Hg,Yg,Gg,Kg,Jg,e1,_a,uc,Ps,Eu;const OE=(Eu=class extends J{constructor(){super(),j(this,qg),j(this,Ug),j(this,jg),j(this,om),j(this,lm),j(this,Bg),j(this,Fg),j(this,Xg),j(this,Ng),j(this,cm),j(this,hm),j(this,Hg),j(this,Yg),j(this,Gg),j(this,Kg),j(this,Jg),j(this,e1),j(this,_a),j(this,uc),j(this,Ps),this.storage=FR("localStorage"),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(Fx)&&this.matchesLink(t.detail.link)&&t.preventDefault()},D(this,lm,new Promise(t=>{D(this,om,t)})),D(this,Fg,new Promise(t=>{D(this,Bg,t)})),D(this,Ng,new Promise(t=>{D(this,Xg,t)})),D(this,hm,new Promise(t=>{D(this,cm,t)})),D(this,Yg,new Promise(t=>{D(this,Hg,t)})),D(this,Kg,new Promise(t=>{D(this,Gg,t)})),D(this,e1,new Promise(t=>{D(this,Jg,t)})),D(this,_a,new ji(this)),D(this,uc,new ji(this)),D(this,Ps,new ji(this)),this.settings=new $C(this)}reset(){D(this,lm,new Promise(t=>{D(this,om,t)})),this.app=void 0,this._appName=this._initialAppName}matchesLink(t){var i,n,r;return(i=t==null?void 0:t.app)!=null&&i.type&&!this.componentType&&(n=this.appTypes)!=null&&n.includes(t.app.type)?t.bot?t.bot===this.bot:!0:!!(t&&t.app&&this.componentType!==nn.Unknown&&(this.uid&&((r=t.app)==null?void 0:r.uid)===this.uid||this.bot&&t.app.type===this.componentType&&t.bot===this.bot))}get link(){return this._link}set link(t){const i=this._link;!this.uid&&this.componentType&&this.componentType!==nn.Unknown?this.whenApp().then(()=>{this._link=this.matchesLink(t)?t:void 0,this.requestUpdate("link",i)}):(this._link=this.matchesLink(t)?t:void 0,this.requestUpdate("link",i))}clearLink(){this.link&&(D(this,hm,new Promise(t=>{D(this,cm,t)})),this.link=void 0)}provideStorageLink(t){var i;(i=this.storage)==null||i.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 i=JSON.parse(atob(t));i&&(this.link=i)}catch(i){console.error("Error parsing link",i)}}consumeStorageLink(){var t;(t=this.storage)==null||t.removeItem("wy-link")}get bot(){return this._bot}set bot(t){this._bot=t||void 0}set name(t){this._initialAppName=t,this._appName=t}get name(){return this._appName}set notifications(t){D(this,qg,t)}get notifications(){var t;return S(this,qg)??((t=this.weavy)==null?void 0:t.notifications)??Ct.defaults.notifications}set notificationsBadge(t){D(this,Ug,t)}get notificationsBadge(){var t;return S(this,Ug)??((t=this.weavy)==null?void 0:t.notificationsBadge)??Ct.defaults.notificationsBadge}set reactions(t){D(this,jg,t)}get reactions(){var t;return S(this,jg)??((t=this.weavy)==null?void 0:t.reactions)??Ct.defaults.reactions}async whenApp(){return await S(this,lm)}async whenBotUser(){return await S(this,Fg)}async whenComponentFeatures(){return await S(this,Ng)}async whenLink(){return await S(this,hm)}async whenSettings(){return await S(this,Yg)}async whenUser(){return await S(this,Kg)}async whenWeavy(){return await S(this,e1)}connectedCallback(){super.connectedCallback(),document.addEventListener("wy-link",this.linkEventHandler),window.addEventListener("storage",this.storageLinkHandler),this.app&&this.requestUpdate("app"),this.botUser&&this.requestUpdate("botUser"),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")}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 tl(this),super.scheduleUpdate()}willUpdate(t){var i,n,r,a,o,l,c,h,u,f,y,w,g,O,x,$,C,A,E;super.willUpdate(t),this.weavyContextConsumer??(this.weavyContextConsumer=new Yr(this,{context:zt,subscribe:!0})),(i=this.weavyContextConsumer)!=null&&i.value&&this.weavy!==((n=this.weavyContextConsumer)==null?void 0:n.value)&&(this.weavy=(r=this.weavyContextConsumer)==null?void 0:r.value);const R=Object.keys(this.settings);if((t.has("weavy")||R.find(z=>t.has(z)))&&(this.settings=new $C(this)),t.has("weavy")&&this.weavy&&S(this,Ps).trackQuery(Hr(this.weavy,["user"])),(a=S(this,Ps).result)!=null&&a.isPending||this.user&&S(this,Ps).result.data&&this.user.id!==S(this,Ps).result.data.id&&(console.warn("User changed, invalidating cache"),(o=this.weavy)==null||o.queryClient.invalidateQueries()),(l=S(this,Ps).result)!=null&&l.isPending||(this.user=(c=S(this,Ps).result)==null?void 0:c.data),t.has("features")&&this.componentFeatures&&(this.componentFeatures.setAllowedFeatures(this.features),this.componentFeatures instanceof $n&&(this.componentFeatures=this.componentFeatures.immutable())),(t.has("autoUid")||t.has("user")||t.has("bot"))&&this.autoUid&&this.user&&(this.componentType&&mx.has(this.componentType)&&this.bot||this.componentType&&!mx.has(this.componentType))){const z=[this.autoUid];this.bot&&z.push(this.bot),this.user&&z.push(this.user.uid||this.user.id),this.uid=z.join("-")}if(t.has("componentType")||t.has("uid")||t.has("bot")||t.has("name")||t.has("weavy"))if(this.reset(),this.componentType&&this.uid&&this.weavy){const z=this.name?{name:this.name}:void 0,I=this.bot?[this.bot]:void 0;S(this,_a).trackQuery(bA(this.weavy,this.uid,this.componentType,I,z))}else S(this,_a).untrackQuery();if(!((h=S(this,_a).result)!=null&&h.isPending)&&(this.app=(u=S(this,_a).result)==null?void 0:u.data,(f=this.app)!=null&&f.name)){const z=this.name;this._appName=this.app.name,this.requestUpdate("name",z)}if((t.has("weavy")||t.has("bot"))&&this.weavy&&this.bot&&S(this,uc).trackQuery(Hr(this.weavy,["users",this.bot])),(y=S(this,uc).result)!=null&&y.isPending||(this.botUser=(w=S(this,uc).result)==null?void 0:w.data),t.has("uid")&&(this.uid||t.get("uid"))&&this.uid!==t.get("uid")&&this.clearLink(),(!this.link&&(t.has("uid")&&this.uid||t.has("app")&&this.app)&&this.componentType&&this.componentType!==nn.Unknown||(t.has("appTypes")||t.has("bot"))&&this.appTypes)&&this.readStorageLink(),t.has("link")&&this.link&&(console.info(`Opening notification link in ${this.uid??dS.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&&((g=S(this,om))==null||g.call(this,this.app)),t.has("botUser")&&this.botUser&&((O=S(this,Bg))==null||O.call(this,this.botUser)),t.has("componentFeatures")&&this.componentFeatures&&((x=S(this,Xg))==null||x.call(this,this.componentFeatures)),t.has("link")&&this.link&&(($=S(this,cm))==null||$.call(this,this.link)),t.has("settings")&&this.settings&&((C=S(this,Hg))==null||C.call(this,this.settings)),t.has("user")&&this.user&&((A=S(this,Gg))==null||A.call(this,this.user)),t.has("weavy")&&this.weavy&&(this.weavy.host.addEventListener("wy-notification",this.notificationEventHandler,{capture:!0}),(E=S(this,Jg))==null||E.call(this,this.weavy))}},d(Eu,"Qu"),Eu);qg=new WeakMap,Ug=new WeakMap,jg=new WeakMap,om=new WeakMap,lm=new WeakMap,Bg=new WeakMap,Fg=new WeakMap,Xg=new WeakMap,Ng=new WeakMap,cm=new WeakMap,hm=new WeakMap,Hg=new WeakMap,Yg=new WeakMap,Gg=new WeakMap,Kg=new WeakMap,Jg=new WeakMap,e1=new WeakMap,_a=new WeakMap,uc=new WeakMap,Ps=new WeakMap,p(OE,"WeavyComponent");let Xe=OE;jt([X()],Xe.prototype,"weavy",2);jt([ha({context:lS}),X()],Xe.prototype,"app",2);jt([ha({context:bE}),X()],Xe.prototype,"botUser",2);jt([ha({context:cS}),X()],Xe.prototype,"componentFeatures",2);jt([ha({context:mE}),X()],Xe.prototype,"settings",2);jt([ha({context:Kv}),X()],Xe.prototype,"user",2);jt([ha({context:vE})],Xe.prototype,"_link",2);jt([k({type:Object})],Xe.prototype,"link",1);jt([X()],Xe.prototype,"componentType",2);jt([X()],Xe.prototype,"appTypes",2);jt([k()],Xe.prototype,"features",2);jt([k({type:String})],Xe.prototype,"bot",1);jt([k()],Xe.prototype,"autoUid",2);jt([k({type:String})],Xe.prototype,"uid",2);jt([k({type:String})],Xe.prototype,"name",1);jt([k({type:String})],Xe.prototype,"notifications",1);jt([k({type:String})],Xe.prototype,"notificationsBadge",1);jt([k({type:String})],Xe.prototype,"reactions",1);const dS=new Map(D5(yA)),$E=new Map(D5(mA)),mx=new Map(Object.entries(wA));new Map(Object.entries(gA));var uj=Object.defineProperty,Aa=p((s,t,i,n)=>{for(var r=void 0,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=o(t,i,r)||r);return r&&uj(t,i,r),r},"__decorateClass$18");const ct=p(s=>{var $;var t,i,n,r,a,o,l,c,h,u,f,y,w,g;const O=($=class extends s{constructor(...A){super(...A),j(this,t),j(this,i,new Promise(E=>{D(this,t,E)})),j(this,n),j(this,r,new Promise(E=>{D(this,n,E)})),j(this,a),j(this,o,new Promise(E=>{D(this,a,E)})),j(this,l),j(this,c,new Promise(E=>{D(this,l,E)})),j(this,h),j(this,u,new Promise(E=>{D(this,h,E)})),j(this,f),j(this,y,new Promise(E=>{D(this,f,E)})),j(this,w),j(this,g,new Promise(E=>{D(this,w,E)}))}async whenApp(){return await S(this,i)}async whenBotUser(){return await S(this,r)}async whenComponentFeatures(){return await S(this,o)}async whenLink(){return await S(this,c)}async whenSettings(){return await S(this,u)}async whenUser(){return await S(this,y)}async whenWeavy(){return await S(this,g)}willUpdate(A){var E,R,z,I,q,B,ne;super.willUpdate(A),A.has("app")&&this.app&&((E=S(this,t))==null||E.call(this,this.app)),A.has("botUser")&&this.botUser&&((R=S(this,n))==null||R.call(this,this.botUser)),A.has("componentFeatures")&&this.componentFeatures&&((z=S(this,a))==null||z.call(this,this.componentFeatures)),A.has("link")&&this.link&&((I=S(this,l))==null||I.call(this,this.link)),A.has("settings")&&this.settings&&((q=S(this,h))==null||q.call(this,this.settings)),A.has("user")&&this.user&&((B=S(this,f))==null||B.call(this,this.user)),A.has("weavy")&&this.weavy&&((ne=S(this,w))==null||ne.call(this,this.weavy))}connectedCallback(){super.connectedCallback(),this.app&&this.requestUpdate("app"),this.botUser&&this.requestUpdate("botUser"),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")}},d($,"z"),$);t=new WeakMap,i=new WeakMap,n=new WeakMap,r=new WeakMap,a=new WeakMap,o=new WeakMap,l=new WeakMap,c=new WeakMap,h=new WeakMap,u=new WeakMap,f=new WeakMap,y=new WeakMap,w=new WeakMap,g=new WeakMap,p(O,"WeavyComponentConsumer");let x=O;return Aa([St({context:lS,subscribe:!0}),X()],x.prototype,"app"),Aa([St({context:bE,subscribe:!0}),X()],x.prototype,"botUser"),Aa([St({context:cS,subscribe:!0}),X()],x.prototype,"componentFeatures"),Aa([St({context:vE,subscribe:!0}),X()],x.prototype,"link"),Aa([St({context:mE,subscribe:!0}),X()],x.prototype,"settings"),Aa([St({context:Kv,subscribe:!0}),X()],x.prototype,"user"),Aa([St({context:zt,subscribe:!0}),X()],x.prototype,"weavy"),x},"WeavyComponentConsumerMixin");function xE(s){return typeof s=="string"&&s?s=eval==null?void 0:(0,eval)(`"use strict";(${s})`):s=void 0,s}d(xE,"j1");p(xE,"indirectEvalObject");function Qw(s){if(s)try{return new URL(s,window.location.toString())}catch{console.warn("Invalid url: ",s)}}d(Qw,"Ll");p(Qw,"toUrl");const Y=p(s=>(t,i)=>{i!==void 0?i.addInitializer(()=>{!customElements.get(s)&&customElements.define(s,t)}):!customElements.get(s)&&customElements.define(s,t)},"customElement"),me=Re`@charset \"UTF-8\";:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]){box-sizing:border-box;text-align:initial;font-size:var(--wy-font-size, var(--wy-size, 1em))}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:before,:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:after{box-sizing:inherit}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a){text-decoration:var(--wy-link-decoration, none);color:var(--wy-link, var(--wy-primary-40, #006399))}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a):hover,:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a):hover{text-decoration:var(--wy-link-hover-decoration, unset)}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a):where(:not([href]):not([class])),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(a):where(:not([href]):not([class])):hover,:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a):where(:not([href]):not([class])),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(a):where(:not([href]):not([class])):hover{text-decoration:none}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(p),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(p){margin-top:0;margin-bottom:calc(1 * var(--wy-size, 1rem))}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where(label),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where(label){cursor:inherit}:where(:host([hidden])),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"])[hidden],:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *[hidden]{display:none!important}:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]):where([role=button]),:where(:host,:host>*,[class^=wy-],[class*=\" wy-\"]) *:where([role=button]){cursor:pointer}.wy-scroll-y{scroll-padding-top:var(--wy-scrollbar-adjust-top, 0);scroll-padding-bottom:var(--wy-scrollbar-adjust-bottom, 0)}.wy-scroll-y{overflow-y:auto;max-height:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}.wy-scroll-y:not(body){-webkit-overflow-scrolling:touch}.wy-scroll-y:not(.wy-scroll-x){overflow-x:hidden;touch-action:pan-y}.wy-scroll-x{overflow-x:auto;max-width:100%;overflow-anchor:none;touch-action:pan-y,pan-x;will-change:scroll-position,opacity;backface-visibility:hidden}.wy-scroll-x:not(.wy-scroll-y){overflow-y:hidden;touch-action:pan-x}.wy-appbars{--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));background-color:var(--wy-component-background-color);box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 calc(-1 * var(--wy-border, 1px)) 0 0 inset}@supports (position: sticky){.wy-appbars{position:sticky;top:0;z-index:1020}}.wy-appbars>.wy-appbar,.wy-appbars>.wy-toolbar{background-color:transparent;box-shadow:none}.wy-appbar{--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));display:grid;align-items:center;justify-content:space-between;justify-items:center;height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));padding:calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));flex:0 0 var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));grid-template-columns:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) minmax(0,max-content) var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));column-gap:calc(2 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))) + var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));line-height:var(--wy-line-height, 1.5);background-color:var(--wy-component-background-color);color:var(--wy-component-color);box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 calc(-1 * var(--wy-border, 1px)) 0 0 inset}.wy-appbar .wy-badge{align-self:center}.wy-appbar-buttons,.wy-toolbar-buttons,.wy-appbar-section{display:flex;flex:0 0 auto;align-items:center;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));max-width:100%}.wy-appbar-buttons-first{justify-content:flex-start}.wy-appbar-buttons-last{justify-content:flex-end}.wy-toolbar-buttons-last{margin-inline-start:auto}.wy-appbar-text{max-width:100%;display:block;color:inherit!important;-webkit-user-select:none;user-select:none}.wy-appbar-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-appbar-text a,.wy-appbar-text a:hover{color:inherit}.wy-appbar-text-trashed{text-decoration:line-through}.wy-toolbars-bottom{position:absolute;z-index:1030;bottom:calc(var(--wy-footerbar-height, calc(4 * var(--wy-size, 1rem))) / 2);left:0;right:0;min-height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));display:flex;flex-direction:column;justify-content:center;justify-items:center}.wy-toolbar{--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));--wy-component-background-color: var(--wy-surface-1, var(--wy-surface-1-light, #f1f2f7));display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;justify-items:center;min-height:var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));padding:calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));flex:1 0 var(--wy-appbar-height, calc(max(1lh, var(--wy-button-size, calc(2.5 * var(--wy-size, 1rem)))) + 2 * var(--wy-padding, calc(.25 * var(--wy-size, 1rem)))));column-gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));line-height:var(--wy-line-height, 1.5);background-color:var(--wy-component-background-color);color:var(--wy-component-color);box-shadow:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce)) 0 calc(-1 * var(--wy-border, 1px)) 0 0 inset}.wy-toolbar-center{margin:0 auto;border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)))}.wy-toolbar-center .wy-input{text-align:center}.wy-toolbar-text{margin-left:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}[part~=wy-button]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399));color:var(--wy-component-color);background:var(--wy-component-background-color, transparent);height:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));font-family:var(--wy-button-font-family, var(--wy-font-family, unset)),inherit;font-size:var(--wy-button-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-button-font-weight, var(--wy-font-weight, unset));line-height:var(--wy-button-line-height, var(--wy-line-height, 1.5));text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;border:var(--wy-button-border-width, var(--wy-border-outline, 0)) solid var(--wy-outline, var(--wy-neutral-variant-50, #72777e));border-radius:var(--wy-button-border-radius, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));display:inline-flex;align-items:center;justify-content:center;gap:var(--wy-button-gap, var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))));position:relative}[part~=wy-button][part~=wy-button-sm]{height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .8);padding:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .25) calc(var(--wy-button-padding-x, calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .5)}[part~=wy-button]:disabled{opacity:var(--wy-opacity-disabled, 38%);cursor:unset;pointer-events:none}[part~=wy-button-state-layer]>*{z-index:3}[part~=wy-button-state-layer]:before{content:\"\";z-index:2;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;background:var(--wy-component-color);opacity:0%}[part~=wy-button-state-layer]:hover:before{opacity:8%}[part~=wy-button-state-layer]:focus:before,[part~=wy-button-state-layer]:active:before,[part~=wy-button-state-layer][part~=wy-active]:before{opacity:12%}[part~=wy-button-icon]{--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));width:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));height:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))));line-height:1;align-items:center;justify-content:center}[part~=wy-button-icon][part~=wy-button-sm]{height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);width:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);padding:0;margin:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .5)}[part~=wy-button-icon][part~=wy-button-sm][part~=wy-button-state-layer]:before{margin:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * -.1)}[part~=wy-button-icon][part~=wy-active]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399))}[part~=wy-button-icon-inline]{height:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));width:auto;min-width:var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));background:var(--wy-component-background-color);color:currentColor;display:flex;padding:var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))}[part~=wy-button-icon-inline][part~=wy-button-sm]{height:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);min-width:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * .6);padding:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .25);margin:calc(var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * .5)}[part~=wy-button-icon-inline][part~=wy-button-sm][part~=wy-button-state-layer]:before{margin:calc(var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) * -.1)}[part~=wy-button-inline]{border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))));padding:calc(.5 * var(--wy-size, 1rem)) calc(.75 * var(--wy-size, 1rem));margin-inline:calc(-.25 * var(--wy-size, 1rem))}[part~=wy-button-primary]{--wy-component-background-color: var(--wy-primary, var(--wy-primary-40, #006399));--wy-component-color: var(--wy-on-primary, var(--wy-white, #ffffff))}[part~=wy-button-variant]{--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}[part~=wy-button-primary-text]{--wy-component-color: var(--wy-primary, var(--wy-primary-40, #006399))}[part~=wy-button-inherit-color]{--wy-component-color: currentColor}[part~=wy-button-no-color]{--wy-component-color: unset}[part=wy-button-link]{padding:0;color:var(--wy-link-color, var(--wy-primary, var(--wy-primary-40, #006399)));text-decoration:var(--wy-link-decoration, none)}[part=wy-button-link]:hover,[part=wy-button-link]:focus{text-decoration:var(--wy-link-hover-decoration, unset)}[part~=wy-buttons]{display:flex;align-items:center;flex-wrap:wrap;gap:calc(.5 * var(--wy-size, 1rem))}[part~=wy-buttons-reverse]{flex-direction:row-reverse}[part~=wy-buttons-floating]{position:sticky;padding:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) 0;top:0;height:0;margin-bottom:calc(-1 * var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));z-index:1030;--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}.wy-code pre,.wy-editor .cm-content pre,.wy-content pre{text-wrap:pretty}.wy-code .code,.wy-code code[class*=language-],.wy-code pre[class*=language-],.wy-editor .cm-content .code,.wy-content .code,.wy-editor .cm-content code[class*=language-],.wy-content code[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{color:var(--wy-code-text, var(--wy-code-text-light, #3b3b3b));font-family:var(--wy-font-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);text-align:left;white-space:pre-wrap;word-spacing:normal;word-break:normal;word-wrap:break-word;line-height:1.25;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}@media print{.wy-code code[class*=language-],.wy-code pre[class*=language-],.wy-editor .cm-content code[class*=language-],.wy-content code[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{text-shadow:none}}.wy-code pre[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}.wy-code :not(pre)>code[class*=language-],.wy-code pre[class*=language-],.wy-editor .cm-content :not(pre)>code[class*=language-],.wy-content :not(pre)>code[class*=language-],.wy-editor .cm-content pre[class*=language-],.wy-content pre[class*=language-]{color:var(--wy-code-text, var(--wy-code-text-light, #3b3b3b));background:var(--wy-background, var(--wy-neutral-99, #fcfcff))}.wy-code :not(pre)>code[class*=language-],.wy-editor .cm-content :not(pre)>code[class*=language-],.wy-content :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.wy-code .token.variable,.wy-editor .cm-content .token.variable,.wy-content .token.variable{color:var(--wy-code-variable, var(--wy-code-variable-light, #001080))}.wy-code .token.operator,.wy-editor .cm-content .token.operator,.wy-content .token.operator{color:var(--wy-code-operator, var(--wy-code-operator-light, #000000))}.wy-code .token.prolog,.wy-editor .cm-content .token.prolog,.wy-content .token.prolog{color:var(--wy-code-prolog, var(--wy-code-prolog-light, #000080))}.wy-code .token.comment,.wy-editor .cm-content .token.comment,.wy-content .token.comment{color:var(--wy-code-comment, var(--wy-code-comment-light, #008000))}.wy-code .token.builtin,.wy-editor .cm-content .token.builtin,.wy-content .token.builtin{color:var(--wy-code-builtin, var(--wy-code-builtin-light, #0070C1))}.wy-code .token.number,.wy-editor .cm-content .token.number,.wy-content .token.number{color:var(--wy-code-number, var(--wy-code-number-light, #098658))}.wy-code .token.inserted,.wy-editor .cm-content .token.inserted,.wy-content .token.inserted{color:var(--wy-code-inserted, var(--wy-code-inserted-light, #098658))}.wy-code .token.constant,.wy-editor .cm-content .token.constant,.wy-content .token.constant{color:var(--wy-code-constant, var(--wy-code-constant-light, #811F3F))}.wy-code .token.hexcode,.wy-editor .cm-content .token.hexcode,.wy-content .token.hexcode{color:var(--wy-code-hexcode, var(--wy-code-hexcode-light, #811F3F))}.wy-code .token.regex,.wy-editor .cm-content .token.regex,.wy-content .token.regex{color:var(--wy-code-regex, var(--wy-code-regex-light, #811F3F))}.wy-code .token.char,.wy-editor .cm-content .token.char,.wy-content .token.char{color:var(--wy-code-char, var(--wy-code-char-light, #811F3F))}.wy-code .token.tag,.wy-editor .cm-content .token.tag,.wy-content .token.tag{color:var(--wy-code-tag, var(--wy-code-tag-light, #800000))}.wy-code .token.attr-name,.wy-editor .cm-content .token.attr-name,.wy-content .token.attr-name{color:var(--wy-code-attr-name, var(--wy-code-attr-name-light, #E50000))}.wy-code .token.selector,.wy-editor .cm-content .token.selector,.wy-content .token.selector{color:var(--wy-code-selector, var(--wy-code-selector-light, #E50000))}.wy-code .token.property,.wy-editor .cm-content .token.property,.wy-content .token.property{color:var(--wy-code-property, var(--wy-code-property-light, #E50000))}.wy-code .token.deleted,.wy-editor .cm-content .token.deleted,.wy-content .token.deleted{color:var(--wy-code-deleted, var(--wy-code-deleted-light, #A31515))}.wy-code .token.string,.wy-editor .cm-content .token.string,.wy-content .token.string{color:var(--wy-code-string, var(--wy-code-string-light, #A31515))}.wy-code .token.changed,.wy-editor .cm-content .token.changed,.wy-content .token.changed{color:var(--wy-code-changed, var(--wy-code-changed-light, #0451A5))}.wy-code .token.punctuation,.wy-editor .cm-content .token.punctuation,.wy-content .token.punctuation{color:var(--wy-code-punctuation, var(--wy-code-punctuation-light, #000000))}.wy-code .token.function,.wy-editor .cm-content .token.function,.wy-content .token.function{color:var(--wy-code-function, var(--wy-code-function-light, #0000FF))}.wy-code .token.keyword,.wy-editor .cm-content .token.keyword,.wy-content .token.keyword{color:var(--wy-code-keyword, var(--wy-code-keyword-light, #AF00DB))}.wy-code .token.class-name,.wy-editor .cm-content .token.class-name,.wy-content .token.class-name{color:var(--wy-code-class-name, var(--wy-code-class-name-light, #267F99))}.wy-code .token.important,.wy-code .token.bold,.wy-editor .cm-content .token.important,.wy-content .token.important,.wy-editor .cm-content .token.bold,.wy-content .token.bold{font-weight:700}.wy-code .token.italic,.wy-editor .cm-content .token.italic,.wy-content .token.italic{font-style:italic}.wy-content{overflow-wrap:break-word;min-width:0}.wy-content:empty{display:none}.wy-content>:first-child{margin-top:0}.wy-content>:last-child{margin-bottom:0}.wy-content b,.wy-content strong{font-weight:var(--wy-font-weight-bold, 600)}.wy-content blockquote{border-left:calc(2 * var(--wy-border, 1px)) solid var(--wy-neutral-80, #c6c6c9);margin:var(--wy-size, 1rem) 0;padding:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));padding-left:var(--wy-size, 1rem)}.wy-content blockquote>p{margin:0}.wy-content pre,.wy-content code{font-family:var(--wy-font-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-content :not(pre)>code{overflow-wrap:inherit}.wy-content pre>code{font-size:var(--wy-font-size, var(--wy-size, 1em));white-space:pre-wrap}.wy-content h1,.wy-content h2,.wy-content h3,.wy-content h4,.wy-content h5,.wy-content h6{font-family:var(--wy-headings-font-family, var(--wy-font-family, unset));font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600));line-height:var(--wy-headings-line-height, var(--wy-line-height, 1.2));margin:0 0 var(--wy-gap, calc(.5 * var(--wy-size, 1rem))) 0}.wy-content h1{font-size:calc(2 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h2{font-size:calc(1.8 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h3{font-size:calc(1.6 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h4{font-size:calc(1.4 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h5{font-size:calc(1.2 * var(--wy-font-size, var(--wy-size, 1em)))}.wy-content h6{font-size:var(--wy-font-size, var(--wy-size, 1em))}.wy-content table{display:block;width:100%;max-width:-moz-max-content;max-width:max-content;margin:0 auto;overflow-x:auto;white-space:nowrap;border-collapse:separate;border-spacing:0 0;margin-bottom:var(--wy-size, 1rem)}.wy-content table th,.wy-content table td{padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));border-color:inherit;border-style:solid}.wy-content table th{text-align:inherit;text-align:-webkit-match-parent;border-width:var(--wy-border, 1px) 0 var(--wy-border, 1px) var(--wy-border, 1px);font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600))}.wy-content table th:first-child{border-top-left-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-content table th:last-child{border-top-right-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));border-right-width:var(--wy-border, 1px)}.wy-content table td{border-width:0 0 var(--wy-border, 1px) var(--wy-border, 1px)}.wy-content table td:last-child{border-right-width:var(--wy-border, 1px)}.wy-content table tr:last-child td:first-child{border-bottom-left-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-content table tr:last-child td:last-child{border-bottom-right-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-content table>tbody{vertical-align:inherit}.wy-content table>thead{vertical-align:bottom}.wy-content img{max-width:100%;border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));margin-block:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}ol{list-style-type:decimal}ul{list-style-type:disc}li{margin:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))))) 0}ol,ul{margin:var(--wy-size, 1rem) 0;padding:0 0 0 1.625em}ol>li,ul>li{padding-left:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}ol>li>:first-child,ul>li>:first-child{margin-bottom:0;margin-top:0}ol>li>:last-child,ul>li>:last-child{margin-bottom:0}.wy-hashtag{color:var(--wy-primary, var(--wy-primary-40, #006399))}.wy-mention{font-weight:700}.wy-emoji-icon{display:inline-flex;justify-content:center;align-items:center;line-height:1;width:1em;height:1em;font-size:calc(1.25 * var(--wy-size, 1rem))}.wy-emoji-icon-sm{width:calc(1.125 * var(--wy-size, 1rem));height:calc(1.125 * var(--wy-size, 1rem));font-size:calc(1.125 * var(--wy-size, 1rem))}.wy-empty{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;position:relative;flex-direction:column;gap:var(--wy-gap-lg, calc(1.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}[part~=wy-icon]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;position:relative;width:var(--wy-component-icon-width);height:var(--wy-component-icon-height)}[part~=wy-icon][width=\"24\"]{width:var(--wy-component-icon-width, calc(1.5 * var(--wy-size, 1rem)))}[part~=wy-icon][height=\"24\"]{height:var(--wy-component-icon-height, calc(1.5 * var(--wy-size, 1rem)))}[part~=wy-icon-first]{margin-left:calc(-.5 * var(--wy-size, 1rem))}[part~=wy-icon-last]{margin-right:calc(-.5 * var(--wy-size, 1rem))}[part~=wy-icon-padded]{margin:16.66666667%}[part~=wy-icon-inline]{vertical-align:-.25em}[part~=wy-icon-overlay]{position:absolute;bottom:0;right:0;border-radius:50%}:host(wy-icon-stack),[part~=wy-icon-stack]{display:inline-flex;position:relative;line-height:1}[part~=wy-icon-stack-layer]{position:absolute}[part~=wy-icon-stack-overlay]{position:absolute;bottom:0;right:0;border-radius:50%;width:calc(var(--wy-component-icon-width) / 2);height:calc(var(--wy-component-icon-height) / 2)}[part~=wy-icon-current-color]{fill:currentColor}[part~=wy-icon-state]{transition:opacity var(--wy-transition, var(--wy-transition-duration, .2s) var(--wy-transition-curve, cubic-bezier(.4, 0, .2, 1)));align-self:center;justify-self:center;margin:auto;opacity:0}[part~=wy-icon-state][part~=wy-active]{opacity:1}[part~=wy-icon-display]{color:var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));border-radius:var(--wy-component-border-radius, var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))));display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:calc(1 * var(--wy-size, 1rem)) calc(2 * var(--wy-size, 1rem));margin:auto}[part~=wy-icon-display-icon]{color:var(--wy-component-color);--wy-component-icon-width: calc(4 * var(--wy-size, 1rem));--wy-component-icon-height: calc(4 * var(--wy-size, 1rem));padding:calc(1 * var(--wy-size, 1rem)) calc(2 * var(--wy-size, 1rem))}[part~=wy-icon-display-text],[part~=wy-icon-display-meta]{color:var(--wy-component-color);padding:calc(1 * var(--wy-size, 1rem)) calc(2 * var(--wy-size, 1rem));text-align:center}[part~=wy-icon-color-primary]{fill:var(--wy-primary, var(--wy-primary-40, #006399))}[part~=wy-icon-color-secondary]{fill:var(--wy-secondary, var(--wy-secondary-40, #3b6a1c))}[part~=wy-icon-color-tertiary]{fill:var(--wy-tertiary, var(--wy-tertiary-40, #3b6a1c))}[part~=wy-icon-color-surface]{fill:var(--wy-surface, var(--wy-neutral-99, #fcfcff))}[part~=wy-icon-color-surface-variant]{fill:var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb))}[part~=wy-icon-color-error]{fill:var(--wy-error, var(--wy-error-40, #ba1824))}[part~=wy-icon-color-warning]{fill:var(--wy-warning, var(--wy-warning-70, #afb140))}[part~=wy-icon-color-blue]{fill:var(--wy-blue, var(--wy-blue-light, #89a9fc))}[part~=wy-icon-color-indigo]{fill:var(--wy-indigo, var(--wy-indigo-light, #9185de))}[part~=wy-icon-color-purple]{fill:var(--wy-purple, var(--wy-purple-light, #c675b7))}[part~=wy-icon-color-pink]{fill:var(--wy-pink, var(--wy-pink-light, #d57194))}[part~=wy-icon-color-red]{fill:var(--wy-red, var(--wy-red-light, #db726c))}[part~=wy-icon-color-orange]{fill:var(--wy-orange, var(--wy-orange-light, #e89a3a))}[part~=wy-icon-color-yellow]{fill:var(--wy-yellow, var(--wy-yellow-light, #afb140))}[part~=wy-icon-color-green]{fill:var(--wy-green, var(--wy-green-light, #00a38b))}[part~=wy-icon-color-teal]{fill:var(--wy-teal, var(--wy-teal-light, #00a0a8))}[part~=wy-icon-color-cyan]{fill:var(--wy-cyan, var(--wy-cyan-light, #0082a1))}[part~=wy-icon-color-gray]{fill:var(--wy-gray, var(--wy-gray-light, #76777a))}[part~=wy-icon-color-black]{fill:var(--wy-black, var(--wy-black, #000000))}[part~=wy-icon-color-white]{fill:var(--wy-white, var(--wy-white, #ffffff))}[part*=wy-kind-]{fill:var(--wy-gray, var(--wy-gray-light, #76777a))}[part~=wy-kind-archive]{fill:var(--wy-orange, var(--wy-orange-light, #e89a3a))}[part~=wy-kind-audio]{fill:var(--wy-teal, var(--wy-teal-light, #00a0a8))}[part~=wy-kind-code]{fill:var(--wy-green, var(--wy-green-light, #00a38b))}[part~=wy-kind-document]{fill:var(--wy-blue, var(--wy-blue-light, #89a9fc))}[part~=wy-kind-email]{fill:var(--wy-red, var(--wy-red-light, #db726c))}[part~=wy-kind-presentation]{fill:var(--wy-orange, var(--wy-orange-light, #e89a3a))}[part~=wy-kind-spreadsheet]{fill:var(--wy-green, var(--wy-green-light, #00a38b))}[part~=wy-kind-image]{fill:var(--wy-pink, var(--wy-pink-light, #d57194))}[part~=wy-kind-text]{fill:var(--wy-cyan, var(--wy-cyan-light, #0082a1))}[part~=wy-kind-video]{fill:var(--wy-purple, var(--wy-purple-light, #c675b7))}[part~=wy-ext-pdf]{fill:var(--wy-red, var(--wy-red-light, #db726c))}[part~=wy-kind-text-icon]{width:calc(1.25 * var(--wy-size, 1rem));height:calc(1.25 * var(--wy-size, 1rem));vertical-align:calc(-.3125 * var(--wy-size, 1rem))}.wy-title{font-family:var(--wy-headings-font-family, var(--wy-font-family, unset));font-size:var(--wy-headings-font-size, 1.25em);font-style:var(--wy-headings-font-style, unset);font-weight:var(--wy-headings-font-weight, var(--wy-font-weight-bold, 600));line-height:var(--wy-headings-line-height, var(--wy-line-height, 1.2));margin-block:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))}.wy-input{--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);border:var(--wy-input-border-width, var(--wy-border, 1px)) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));display:block;width:100%;min-height:calc(var(--wy-input-font-size, var(--wy-font-size, 1em)) * 1.5 * var(--wy-size, 1rem) + var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) * 2 + var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) * 2);padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));font-family:var(--wy-input-font-family, var(--wy-font-family, inherit)),inherit;font-size:var(--wy-input-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-input-font-weight, var(--wy-font-weight, unset));line-height:var(--wy-input-line-height, var(--wy-line-height, calc(1.5 * var(--wy-size, 1rem))));background-clip:padding-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--wy-input-border-radius, var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))))}.wy-input:focus{--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));color:var(--wy-component-color);border-color:var(--wy-primary, var(--wy-primary-40, #006399));outline:0}.wy-input::placeholder{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));opacity:1}.wy-input:disabled{opacity:38%}.wy-input::file-selector-button,.wy-input::-webkit-file-upload-button{color:var(--wy-component-color);background-color:var(--wy-component-background-color);padding:var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))) var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));margin:calc(-1 * var(--wy-input-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))) calc(-1 * var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));margin-inline-end:var(--wy-input-padding-x, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--wy-input-border-width, var(--wy-border, 1px));border-radius:0}.wy-input:hover:not(:disabled):not([readonly])::file-selector-button,.wy-input:hover:not(:disabled):not([readonly]) ::-webkit-file-upload-button{background-color:var(--wy-component-background-color)}.wy-input[type=file]{overflow:hidden}.wy-input[type=file]:not(:disabled):not([readonly]){cursor:pointer}.wy-input::-webkit-date-and-time-value{height:calc(var(--wy-input-line-height, var(--wy-line-height, calc(1.5 * var(--wy-size, 1rem)))) * 1em)}.wy-input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.wy-input-filled{--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);border-radius:var(--wy-input-filled-border-radius, var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem)))));border-color:var(--wy-component-background-color)}.wy-input-filled:focus{border-color:var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.wy-label{display:inline-block;margin-bottom:calc(.5 * var(--wy-size, 1rem))}.wy-description{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)));margin-top:calc(.25 * var(--wy-size, 1rem))}.wy-is-invalid,.wy-is-invalid:focus{border-color:var(--wy-error, var(--wy-error-40, #ba1824))}.wy-invalid-feedback{margin-top:calc(.25 * var(--wy-size, 1rem));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)));color:var(--wy-error, var(--wy-error-40, #ba1824))}.wy-input-group{position:relative;display:flex;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));align-items:center}.wy-input-group-button-icon{position:absolute;top:0;right:0;z-index:4;border-radius:var(--wy-input-border-radius, var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))));--wy-component-background-color: transparent}.wy-input-group-input:placeholder-shown~.wy-input-group-button-icon[type=reset]{display:none}.wy-input-group-input:not(:placeholder-shown)~.wy-input-group-button-icon[type=reset]+.wy-input-group-button-icon{display:none}.wy-item{--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));position:relative;display:flex;align-items:center;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));padding:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));text-decoration:none}.wy-list-item{min-height:calc(3 * var(--wy-size, 1rem))}.wy-list-item-lg{min-height:calc(4.5 * var(--wy-size, 1rem))}.wy-item-inner{display:flex;align-items:center;gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));flex:1 1 100%}.wy-item-body{width:100%;min-width:0}.wy-item-rows{display:flex;flex-direction:column;width:100%;row-gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))));min-width:0}.wy-item-rows:only-child{margin-inline-start:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-item-rows-compact{row-gap:0}.wy-item-rows-single{margin-inline-start:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-item-title{color:var(--wy-component-color);font-size:var(--wy-item-title-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-item-title-font-weight, var(--wy-font-weight, unset))}.wy-item-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-item-title-lg{color:var(--wy-component-color);font-size:var(--wy-item-title-font-size, var(--wy-font-size, 1em));font-weight:var(--wy-item-title-font-weight, var(--wy-font-weight, unset))}.wy-item-title-lg{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.wy-item-text{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e));font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}.wy-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wy-item-text .wy-icon{width:calc(1.25 * var(--wy-size, 1rem));height:calc(1.25 * var(--wy-size, 1rem));vertical-align:calc(-.3125 * var(--wy-size, 1rem))}.wy-item-quote{color:var(--wy-outline, var(--wy-neutral-variant-50, #72777e))}.wy-item-quote:before,.wy-item-quote:after{content:'\"'}.wy-item-actions{--wy-component-background-color: transparent;display:flex;align-items:center;justify-items:flex-end;flex:0 0 auto;margin:calc(-.25 * var(--wy-size, 1rem))}.wy-item-top{align-self:flex-start}.wy-item-actions-bottom{align-self:flex-start;margin-block:calc(-.5 * var(--wy-size, 1rem))}.wy-item-row{display:flex;align-items:center;column-gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))}.wy-item-row .wy-item-title,.wy-item-row .wy-item-text{margin-right:auto}.wy-item-row .wy-meta{white-space:nowrap}.wy-item-right{margin-left:auto}.wy-item-hover{-webkit-user-select:none;user-select:none;cursor:pointer}.wy-item-hover:hover,.wy-item-hover:focus{--wy-component-background-color: var(--wy-surface-2, var(--wy-surface-2-light, #eaedf3));--wy-component-color: var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color);text-decoration:none}.wy-item-hover:active{--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e));background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-item-hover.wy-disabled,.wy-item-hover:disabled{opacity:var(--wy-opacity-disabled, 38%);pointer-events:none}.wy-item-hover.wy-active{--wy-component-background-color: var(--wy-primary-container, var(--wy-primary-90, #cde5ff));--wy-component-color: var(--wy-on-primary-container, var(--wy-primary-10, #001d32));background-color:var(--wy-component-background-color);color:var(--wy-component-color);border-color:var(--wy-component-background-color)}.wy-item-trashed{text-decoration:line-through;opacity:var(--wy-opacity-disabled, 38%)}.wy-item-trashed.wy-item-hover:hover{opacity:1}.wy-list{border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));display:flex;flex-direction:column;gap:var(--wy-border);min-width:0}.wy-list .wy-item:not(.wy-item-hover){--wy-component-background-color: var(--wy-background, var(--wy-neutral-99, #fcfcff));--wy-component-color: var(--wy-on-background, var(--wy-neutral-10, #1a1c1e));background-color:var(--wy-component-background-color);color:var(--wy-component-color)}.wy-list .wy-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.wy-list .wy-item:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.wy-list-bordered{border:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));gap:0}.wy-list-bordered .wy-item{border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce));border-left:none;border-right:none}.wy-list-bordered .wy-item:first-child{border-top:none}.wy-list-bordered .wy-item:last-child{border-bottom:none}.wy-list-bordered .wy-item+.wy-list-bordered .wy-item{border-top-width:0}@keyframes wy-highlight{0%{--wy-component-background-color: var(--wy-highlight, var(--wy-primary-95, #e8f2ff));--wy-component-color: var(--wy-on-highlight, var(--wy-primary-10, #001d32))}}.wy-messages{padding:var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));flex:1 1 100%}.wy-message-placeholder{opacity:.5}.wy-date-separator{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));pointer-events:none;margin:var(--wy-padding, calc(.5 * var(--wy-size, 1rem)));text-align:center;position:sticky;top:var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));z-index:10}.wy-date-separator time{background:var(--wy-surface-3, var(--wy-surface-3-light, #e3e7ee));color:var(--wy-on-surface, var(--wy-neutral-10, #1a1c1e));padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));display:inline-block}.wy-message{display:flex;flex-direction:row;align-items:flex-start;margin-bottom:calc(var(--wy-padding, calc(.5 * var(--wy-size, 1rem))) + .5 * var(--wy-button-size, calc(var(--wy-button-line-height, 1.5) * var(--wy-size, 1rem) + 2 * var(--wy-button-padding-y, var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));scroll-margin-block:6rem;--wy-component-background-color: var(--wy-surface-variant, var(--wy-neutral-variant-90, #dee3eb));--wy-component-color: var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}.wy-message[part~=wy-highlight]{animation:wy-highlight 3s 1.5s ease-in-out both}.wy-message-area{border-radius:var(--wy-border-radius-sm, calc(var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem))) - .25 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))}.wy-message-meta{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));margin:0 0 calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem))));color:var(--wy-on-surface-variant, var(--wy-neutral-variant-30, #42474e))}.wy-message-bubble{background-color:var(--wy-component-background-color);color:var(--wy-component-color);border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));display:flex;flex-direction:column;padding:var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))));gap:var(--wy-gap, calc(.5 * var(--wy-size, 1rem)));max-width:min(32 * var(--wy-size, 1rem),100% - 2 * var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))))}.wy-message-bubble>div{flex:1 1 100%}.wy-message-author{font-size:var(--wy-font-size-xs, calc(.75 * var(--wy-font-size, 1em)));margin:calc(1lh + .5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) calc(.5 * var(--wy-size, 1rem)) 0 0}.wy-message-content{display:flex;flex-direction:column;width:100%;align-items:flex-start;flex-wrap:wrap;min-width:0;position:relative}.wy-message-content-row{display:flex;flex-direction:row;align-items:center;max-width:100%}.wy-message-bot{--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}`,We=Re`:host{display:contents}`;var pj=Object.defineProperty,fj=Object.getOwnPropertyDescriptor,_t=p((s,t,i,n)=>{for(var r=n>1?void 0:n?fj(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&pj(t,i,r),r},"__decorateClass$17");function wx(s){return s!=null&&s!==!1}d(wx,"zp");p(wx,"acceptedValue");const kE="wy-context";var LO,Lu;let ut=(LO=(Lu=class extends J{constructor(){super(),this.provider=!1,this.cloudFilePickerUrl=wt.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=wt.defaults.disableEnvironmentImports,this.locale=wt.defaults.locale,this.locales=wt.defaults.locales,this.gcTime=wt.defaults.gcTime,this.notificationEvents=wt.defaults.notificationEvents,this.scrollBehavior=wt.defaults.scrollBehavior,this.staleTime=wt.defaults.staleTime,this.tokenFactory=wt.defaults.tokenFactory,this.tokenFactoryRetryDelay=wt.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=wt.defaults.tokenFactoryTimeout,this.tokenUrl=wt.defaults.tokenUrl,this.url=wt.defaults.url,this.notifications=wt.defaults.notifications,this.notificationsBadge=wt.defaults.notificationsBadge,this.reactions=wt.defaults.reactions,this.childElementCount&&(this.provider=!0),this.weavy??(this.weavy=new wt({host:this.provider?this:void 0}))}get version(){return wt.version}get sourceName(){return wt.sourceName}willUpdate(t){if(super.willUpdate(t),this.weavy){const i={};Array.from(t.keys()).forEach(n=>{n!=="weavy"&&(wx(this[n])||wx(t.get(n)))&&Object.assign(i,{[n]:this[n]})}),Object.assign(this.weavy,i)}}render(){return b` <slot></slot> `}},d(Lu,"_n"),Lu),p(LO,"WyContext"),LO);ut.styles=[me,Ni,We];_t([k({attribute:!0,type:Boolean})],ut.prototype,"provider",2);_t([k({attribute:!0,converter:{fromAttribute:p(s=>Qw(s),"fromAttribute")}})],ut.prototype,"cloudFilePickerUrl",2);_t([k({attribute:!0,converter:{fromAttribute:p(s=>Qw(s),"fromAttribute")}}),k({type:Boolean})],ut.prototype,"disableEnvironmentImports",2);_t([k({attribute:!0})],ut.prototype,"locale",2);_t([k({attribute:!0,type:Array})],ut.prototype,"locales",2);_t([k({attribute:!0,type:Number})],ut.prototype,"gcTime",2);_t([k({type:Boolean})],ut.prototype,"notificationEvents",2);_t([k({attribute:!0})],ut.prototype,"scrollBehavior",2);_t([k({attribute:!0,type:Number})],ut.prototype,"staleTime",2);_t([k({attribute:!0,converter:{fromAttribute:p(s=>xE(s),"fromAttribute")}})],ut.prototype,"tokenFactory",2);_t([k({attribute:!0,type:Number})],ut.prototype,"tokenFactoryRetryDelay",2);_t([k({attribute:!0,type:Number})],ut.prototype,"tokenFactoryTimeout",2);_t([k({attribute:!0,converter:{fromAttribute:p(s=>Qw(s),"fromAttribute")}})],ut.prototype,"tokenUrl",2);_t([k({attribute:!0,converter:{fromAttribute:p(s=>Qw(s),"fromAttribute")}})],ut.prototype,"url",2);_t([k({attribute:!0})],ut.prototype,"notifications",2);_t([k({attribute:!0})],ut.prototype,"notificationsBadge",2);_t([k({attribute:!0})],ut.prototype,"reactions",2);_t([X()],ut.prototype,"weavy",2);ut=_t([Y(kE)],ut);var dm,t1,zu;const SE=(zu=class{constructor(t,i){j(this,dm),j(this,t1),D(this,dm,!0),this.styles=[],t.addController(this),this.host=t,i&&(this.styles=i)}get themeColor(){return S(this,t1)}set themeColor(t){D(this,t1,t),this.checkThemeUpdate()}checkThemeUpdate(){const t=this.themeColor||tv(this.host)||iv();if(t&&t!==this._resolvedThemeColor){this._resolvedThemeColor=t,console.info("Configuring theme",this._resolvedThemeColor);const i=sE(this._resolvedThemeColor).join(""),n=Re`
|
|
33
33
|
:host {
|
|
34
34
|
${SR(i)};
|
|
35
35
|
}
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
</div>
|
|
483
483
|
`}},d(up,"Gn"),up),p(o0,"WyMeetingCard"),o0);aw.styles=me;dz([k({attribute:!1})],aw.prototype,"meeting",2);aw=dz([Y("wy-meeting-card"),ke()],aw);var _F=Object.defineProperty,IF=Object.getOwnPropertyDescriptor,uz=p((s,t,i,n)=>{for(var r=n>1?void 0:n?IF(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&_F(t,i,r),r},"__decorateClass$U"),l0,pp;let ow=(l0=(pp=class extends J{constructor(){super(...arguments),this.exportParts=new ae(this),this.text=""}render(){const t=this.text.trim();let i="";return t.length&&(i=t.split(/(\n+)/).map(n=>`<div>${n.split(/(\s+)/).map(r=>`<span class="wy-placeholder">${this.escapeHTML(r)}</span>`).join(" ")}</div>`).join(" ")),b`
|
|
484
484
|
<div>${jo(i)}</div>
|
|
485
|
-
`}escapeHTML(t){const i=document.createElement("div");return i.textContent=t,i.innerHTML}},d(pp,"Zn"),pp),p(l0,"WySkeleton"),l0);ow.styles=me;uz([k()],ow.prototype,"text",2);ow=uz([Y("wy-skeleton")],ow);var fp;const pz=(fp=class{constructor(t){this.delay=NaN,this.sleep=!1,t.addController(this),this.host=t}createObserver(t){var i;(i=this.scrollObserver)==null||i.disconnect(),this.swipeElement=t,this.scrollObserver=new IntersectionObserver(n=>{n.forEach(async r=>{r.isIntersecting&&!this.sleep&&r.intersectionRatio>=1&&(this.sleep=!0,Number.isNaN(this.delay)||await new Promise(a=>{setTimeout(a,this.delay)}),r.target===this.prevElement&&this.whenPrev&&await this.whenPrev(),r.target===this.nextElement&&this.whenNext&&await this.whenNext(),await this.host.updateComplete)})},{root:t,threshold:1,rootMargin:"0px"})}observe(t,i){var n,r,a,o;this.prevElement&&((n=this.scrollObserver)==null||n.unobserve(this.prevElement),this.prevElement=void 0),this.nextElement&&((r=this.scrollObserver)==null||r.unobserve(this.nextElement),this.nextElement=void 0),t&&((a=this.scrollObserver)==null||a.observe(t),this.prevElement=t),i&&((o=this.scrollObserver)==null||o.observe(i),this.nextElement=i),this.sleep=!1}clearObserver(){var t;this.prevElement=void 0,this.nextElement=void 0,(t=this.scrollObserver)==null||t.disconnect(),this.sleep=!1}hostConnected(){this.scrollObserver&&(this.prevElement&&this.scrollObserver.observe(this.prevElement),this.nextElement&&this.scrollObserver.observe(this.nextElement),this.sleep=!1)}hostDisconnected(){var t;(t=this.scrollObserver)==null||t.disconnect()}},d(fp,"sp"),fp);p(pz,"SwipeScrollController");let ZF=pz;var ar,pc,yp;const fz=(yp=class{constructor(t){if(j(this,ar),j(this,pc),D(this,ar,new Map),this.keyPrefix="WEAVY_OFFLINE_CACHE",t)D(this,pc,t);else try{ii(),D(this,pc,window.sessionStorage)}catch{console.warn("Session storage not available.")}}resetPersistPropertiesCache(){S(this,ar).clear()}async getStorageItem(t,i){var n;const r=(n=S(this,pc))==null?void 0:n.getItem(`${t}-${i.toString()}`);if(r)return JSON.parse(r)}async setStorageItem(t,i,n){var r;const a=JSON.stringify(n);a&&((r=S(this,pc))==null||r.setItem(`${t}-${i.toString()}`,a))}async persistProperties(t,i,n,r){const a=`${this.keyPrefix}:${r?`${r}:`:""}${typeof t}:${i}`;n.forEach(async o=>{if(!S(this,ar).has(o)){const l=await this.getStorageItem(a,o);l&&(t[o]=l),S(this,ar).set(o,l)}if(t[o]!==S(this,ar).get(o)){const l=t[o];S(this,ar).set(o,l),this.setStorageItem(a,o,l)}})}},d(yp,"rp"),yp);ar=new WeakMap,pc=new WeakMap,p(fz,"PersistStorageCache");let WF=fz;var fc,um,mp;const yz=(mp=class{constructor(t){j(this,fc),j(this,um),D(this,fc,""),this.properties=[],this.persistStorageCache=new WF,t.addController(this),this.host=t}get prefixKey(){return S(this,fc)}set prefixKey(t){t!==S(this,fc)&&(this.persistStorageCache.resetPersistPropertiesCache(),D(this,fc,t),this.host.requestUpdate())}get cachePrefix(){return S(this,um)}set cachePrefix(t){t!==S(this,um)&&(this.persistStorageCache.resetPersistPropertiesCache(),D(this,um,t),this.host.requestUpdate())}observe(t,i,n){this.properties=t,i&&(this.prefixKey=i),n&&(this.cachePrefix=n)}hostUpdate(){this.prefixKey&&this.properties&&this.host.weavy&&this.persistStorageCache.persistProperties(this.host,this.prefixKey,this.properties,this.cachePrefix?`${this.host.weavy.cachePrefix}:${this.cachePrefix}`:this.host.weavy.cachePrefix)}},d(mp,"np"),mp);fc=new WeakMap,um=new WeakMap,p(yz,"PersistStateController");let JS=yz;var VF=Object.defineProperty,DF=Object.getOwnPropertyDescriptor,Iw=p((s,t,i,n)=>{for(var r=n>1?void 0:n?DF(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&VF(t,i,r),r},"__decorateClass$T"),c0,wp;let ta=(c0=(wp=class extends J{constructor(){super(...arguments),this.exportParts=new ae(this),this.show=!0,this.maximized=!1,this.filled=!1,this.header=!1,this.viewportRef=xe()}close(){var t;(t=this.viewportRef.value)==null||t.close(),this.show=!1}handleClose(t){this.show=!1,this.dispatchEvent(new CustomEvent("close")),this.dispatchEvent(new CustomEvent("release-focus",{bubbles:!0,composed:!0}))}willUpdate(t){var i,n;super.willUpdate(t),t.has("show")&&(this.show?(i=this.viewportRef.value)==null||i.showModal():(n=this.viewportRef.value)==null||n.close())}render(){const t={"wy-open":this.show,"wy-modal-padded":!this.filled&&!this.maximized,"wy-modal-full":this.maximized&&!this.filled};return b`
|
|
485
|
+
`}escapeHTML(t){const i=document.createElement("div");return i.textContent=t,i.innerHTML}},d(pp,"Zn"),pp),p(l0,"WySkeleton"),l0);ow.styles=me;uz([k()],ow.prototype,"text",2);ow=uz([Y("wy-skeleton")],ow);var fp;const pz=(fp=class{constructor(t){this.delay=NaN,this.sleep=!1,t.addController(this),this.host=t}createObserver(t){var i;(i=this.scrollObserver)==null||i.disconnect(),this.swipeElement=t,this.scrollObserver=new IntersectionObserver(n=>{n.forEach(async r=>{r.isIntersecting&&!this.sleep&&r.intersectionRatio>=1&&(this.sleep=!0,Number.isNaN(this.delay)||await new Promise(a=>{setTimeout(a,this.delay)}),r.target===this.prevElement&&this.whenPrev&&await this.whenPrev(),r.target===this.nextElement&&this.whenNext&&await this.whenNext(),await this.host.updateComplete)})},{root:t,threshold:1,rootMargin:"0px"})}observe(t,i){var n,r,a,o;this.prevElement&&((n=this.scrollObserver)==null||n.unobserve(this.prevElement),this.prevElement=void 0),this.nextElement&&((r=this.scrollObserver)==null||r.unobserve(this.nextElement),this.nextElement=void 0),t&&((a=this.scrollObserver)==null||a.observe(t),this.prevElement=t),i&&((o=this.scrollObserver)==null||o.observe(i),this.nextElement=i),this.sleep=!1}clearObserver(){var t;this.prevElement=void 0,this.nextElement=void 0,(t=this.scrollObserver)==null||t.disconnect(),this.sleep=!1}hostConnected(){this.scrollObserver&&(this.prevElement&&this.scrollObserver.observe(this.prevElement),this.nextElement&&this.scrollObserver.observe(this.nextElement),this.sleep=!1)}hostDisconnected(){var t;(t=this.scrollObserver)==null||t.disconnect()}},d(fp,"sp"),fp);p(pz,"SwipeScrollController");let ZF=pz;var ar,pc,yp;const fz=(yp=class{constructor(t){if(j(this,ar),j(this,pc),D(this,ar,new Map),this.keyPrefix="WEAVY_OFFLINE_CACHE",t)D(this,pc,t);else try{ii(),D(this,pc,window.sessionStorage)}catch{console.warn("Session storage not available.")}}resetPersistPropertiesCache(){S(this,ar).clear()}async getStorageItem(t,i){var n;const r=(n=S(this,pc))==null?void 0:n.getItem(`${t}-${i.toString()}`);if(r)return JSON.parse(r)}async setStorageItem(t,i,n){var r;const a=JSON.stringify(n);a&&((r=S(this,pc))==null||r.setItem(`${t}-${i.toString()}`,a))}async persistProperties(t,i,n,r){const a=`${this.keyPrefix}:${r?`${r}:`:""}${typeof t}:${i}`;n.forEach(async o=>{if(!S(this,ar).has(o.name)){const l=await this.getStorageItem(a,o.name);l&&(o.override||!t[o.name])&&(t[o.name]=l),S(this,ar).set(o.name,l)}if(t[o.name]!==S(this,ar).get(o.name)){const l=t[o.name];S(this,ar).set(o.name,l),this.setStorageItem(a,o.name,l)}})}},d(yp,"rp"),yp);ar=new WeakMap,pc=new WeakMap,p(fz,"PersistStorageCache");let WF=fz;var fc,um,mp;const yz=(mp=class{constructor(t){j(this,fc),j(this,um),D(this,fc,""),this.properties=[],this.persistStorageCache=new WF,t.addController(this),this.host=t}get prefixKey(){return S(this,fc)}set prefixKey(t){t!==S(this,fc)&&(this.persistStorageCache.resetPersistPropertiesCache(),D(this,fc,t),this.host.requestUpdate())}get cachePrefix(){return S(this,um)}set cachePrefix(t){t!==S(this,um)&&(this.persistStorageCache.resetPersistPropertiesCache(),D(this,um,t),this.host.requestUpdate())}observe(t,i,n){this.properties=t,i&&(this.prefixKey=i),n&&(this.cachePrefix=n)}hostUpdate(){this.prefixKey&&this.properties&&this.host.weavy&&this.persistStorageCache.persistProperties(this.host,this.prefixKey,this.properties,this.cachePrefix?`${this.host.weavy.cachePrefix}:${this.cachePrefix}`:this.host.weavy.cachePrefix)}},d(mp,"np"),mp);fc=new WeakMap,um=new WeakMap,p(yz,"PersistStateController");let JS=yz;var VF=Object.defineProperty,DF=Object.getOwnPropertyDescriptor,Iw=p((s,t,i,n)=>{for(var r=n>1?void 0:n?DF(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&VF(t,i,r),r},"__decorateClass$T"),c0,wp;let ta=(c0=(wp=class extends J{constructor(){super(...arguments),this.exportParts=new ae(this),this.show=!0,this.maximized=!1,this.filled=!1,this.header=!1,this.viewportRef=xe()}close(){var t;(t=this.viewportRef.value)==null||t.close(),this.show=!1}handleClose(t){this.show=!1,this.dispatchEvent(new CustomEvent("close")),this.dispatchEvent(new CustomEvent("release-focus",{bubbles:!0,composed:!0}))}willUpdate(t){var i,n;super.willUpdate(t),t.has("show")&&(this.show?(i=this.viewportRef.value)==null||i.showModal():(n=this.viewportRef.value)==null||n.close())}render(){const t={"wy-open":this.show,"wy-modal-padded":!this.filled&&!this.maximized,"wy-modal-full":this.maximized&&!this.filled};return b`
|
|
486
486
|
<dialog class="wy-dialog wy-overlay-dialog" ${fe(this.viewportRef)}>
|
|
487
487
|
<div class="wy-overlay wy-transition wy-modal ${rt(t)}">
|
|
488
488
|
${this.header?b`
|
|
@@ -1319,7 +1319,7 @@ ${r.join(`
|
|
|
1319
1319
|
</div>
|
|
1320
1320
|
`})}
|
|
1321
1321
|
</div>
|
|
1322
|
-
`:M}},d(Up,"Ca"),Up),p(z0,"WyFileVersions"),z0);ey.styles=me;lP([k({attribute:!1})],ey.prototype,"file",2);lP([k({attribute:!1})],ey.prototype,"activeVersion",2);ey=lP([Y("wy-file-versions"),ke()],ey);var VX=Object.defineProperty,DX=Object.getOwnPropertyDescriptor,ri=p((s,t,i,n)=>{for(var r=n>1?void 0:n?DX(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&VX(t,i,r),r},"__decorateClass$x"),_0,jp;let Mt=(_0=(jp=class extends ct(J){constructor(){super(...arguments),this.exportParts=new ae(this),this.currentId=NaN,this.isAttachment=!1,this.filled=!1,this.showOverlay=!1,this.commentsOpen=!1,this.versionsOpen=!1,this.sidePanelMaximized=!1,this.persistState=new JS(this),this.previewFileRef=xe(),this.swipeScrollRef=xe(),this.prevRef=xe(),this.nextRef=xe(),this.swipeScroller=new ZF(this),this.disableSwipeScroll=!1,this.handleKeys=t=>{this.showOverlay&&(t.key==="ArrowLeft"?(t.stopPropagation(),this.setPrev()):t.key==="ArrowRight"&&(t.stopPropagation(),this.setNext()))}}async dispatchOpen(){const t=await this.whenApp(),i=await this.whenComponentFeatures(),n=this.currentId,r=this.commentsOpen?"comments":this.versionsOpen?"versions":void 0,a=this.currentFile?[this.currentFile]:[],o=this.isAttachment,l=new CustomEvent("wy-preview-open",{detail:{fileId:n,tab:r,files:a,app:t,features:i.allowedFeatures().join(" "),isAttachment:o},cancelable:!0,bubbles:!1,composed:!0});this.dispatchEvent(l)||(this.showOverlay=!1,this.commentsOpen=!1,this.versionsOpen=!1)}async dispatchClose(){const t=new CustomEvent("wy-preview-close",{cancelable:!1,bubbles:!1,composed:!0});this.dispatchEvent(t)}async open(t,i){await this.whenApp(),await this.updateComplete,t&&(this.currentId=t),i&&this.toggleSidebarTab(i,!0),this.showOverlay=!0}close(){this.showOverlay=!1}toggleSidebarTab(t,i){t==="comments"?(this.versionsOpen=!1,this.commentsOpen=i!==void 0?i:!this.commentsOpen):t==="versions"?(this.commentsOpen=!1,this.versionsOpen=i!==void 0?i:!this.versionsOpen):(this.commentsOpen=!1,this.versionsOpen=!1)}handleVersionFile(t){this.versionFile=t.detail.versionFile}scrollToPrev(){var t;this.prevRef.value&&(this.unblockSwipeScroll(),this.prevRef.value.scrollIntoView({behavior:(t=this.weavy)==null?void 0:t.scrollBehavior}))}scrollToNext(){var t;this.nextRef.value&&(this.unblockSwipeScroll(),this.nextRef.value.scrollIntoView({behavior:(t=this.weavy)==null?void 0:t.scrollBehavior}))}blockSwipeScroll(t=20){window.clearTimeout(this.disableSwipeScrollTimeout),this.disableSwipeScroll=!0,this.disableSwipeScrollTimeout=window.setTimeout(()=>this.disableSwipeScroll=!1,t)}unblockSwipeScroll(){window.clearTimeout(this.disableSwipeScrollTimeout),this.disableSwipeScroll=!1}setPrev(){this.previousFile&&(this.currentId=this.previousFile.id,this.blockSwipeScroll())}setNext(){this.nextFile&&(this.currentId=this.nextFile.id,this.blockSwipeScroll())}currentPreviewFileCallback(t){t==null||t.scrollIntoView(),requestAnimationFrame(()=>t==null?void 0:t.scrollIntoView())}async willUpdate(t){if(await super.willUpdate(t),(t.has("app")||t.has("user"))&&this.app&&this.user&&!this.isAttachment&&(this.persistState.observe(["commentsOpen","versionsOpen"],`a${this.app.id}-preview`,`u${this.user.id}`),this.commentsOpen&&this.versionsOpen&&(this.versionsOpen=!1)),t.has("queryResult")&&this.queryResult){const{data:i}=this.queryResult??{};this.files=i==null?void 0:i.filter(n=>n&&!n.is_trashed)}if(t.has("infiniteQueryResult")&&this.infiniteQueryResult){const{data:i}=this.infiniteQueryResult??{};this.files=ps(i).filter(n=>n&&!n.is_trashed)}t.has("currentFile")&&this.currentFile&&this.currentFile.id!==this.currentId&&(this.currentId=this.currentFile.id),(t.has("files")||t.has("currentId")||t.has("showOverlay"))&&this.files&&this.showOverlay&&(this.currentFile=void 0,this.previousFile=void 0,this.nextFile=void 0,this.versionFile=void 0,this.currentFile=this.files.find((i,n)=>this.files&&i.id===this.currentId?(n>=1&&(this.previousFile=this.files[n-1]),n<this.files.length-1&&(this.nextFile=this.files[n+1]),this.infiniteQueryResult&&n>=this.files.length-2&&this.infiniteQueryResult.hasNextPage&&!this.infiniteQueryResult.isFetchingNextPage&&this.infiniteQueryResult.fetchNextPage(),this.infiniteQueryResult&&n<=1&&this.infiniteQueryResult.hasPreviousPage&&!this.infiniteQueryResult.isFetchingPreviousPage&&this.infiniteQueryResult.fetchPreviousPage(),!0):!1)),t.has("currentFile")&&this.currentFile&&!this.files&&(this.files=[this.currentFile]),t.has("showOverlay")&&(this.showOverlay?await this.dispatchOpen():t.get("showOverlay")&&await this.dispatchClose())}renderHeader(t){var i,n,r,a;const o={"wy-appbar-text-trashed":!!(t!=null&&t.is_trashed)};return b` <header class="wy-appbars">
|
|
1322
|
+
`:M}},d(Up,"Ca"),Up),p(z0,"WyFileVersions"),z0);ey.styles=me;lP([k({attribute:!1})],ey.prototype,"file",2);lP([k({attribute:!1})],ey.prototype,"activeVersion",2);ey=lP([Y("wy-file-versions"),ke()],ey);var VX=Object.defineProperty,DX=Object.getOwnPropertyDescriptor,ri=p((s,t,i,n)=>{for(var r=n>1?void 0:n?DX(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&VX(t,i,r),r},"__decorateClass$x"),_0,jp;let Mt=(_0=(jp=class extends ct(J){constructor(){super(...arguments),this.exportParts=new ae(this),this.currentId=NaN,this.isAttachment=!1,this.filled=!1,this.showOverlay=!1,this.commentsOpen=!1,this.versionsOpen=!1,this.sidePanelMaximized=!1,this.persistState=new JS(this),this.previewFileRef=xe(),this.swipeScrollRef=xe(),this.prevRef=xe(),this.nextRef=xe(),this.swipeScroller=new ZF(this),this.disableSwipeScroll=!1,this.handleKeys=t=>{this.showOverlay&&(t.key==="ArrowLeft"?(t.stopPropagation(),this.setPrev()):t.key==="ArrowRight"&&(t.stopPropagation(),this.setNext()))}}async dispatchOpen(){const t=await this.whenApp(),i=await this.whenComponentFeatures(),n=this.currentId,r=this.commentsOpen?"comments":this.versionsOpen?"versions":void 0,a=this.currentFile?[this.currentFile]:[],o=this.isAttachment,l=new CustomEvent("wy-preview-open",{detail:{fileId:n,tab:r,files:a,app:t,features:i.allowedFeatures().join(" "),isAttachment:o},cancelable:!0,bubbles:!1,composed:!0});this.dispatchEvent(l)||(this.showOverlay=!1,this.commentsOpen=!1,this.versionsOpen=!1)}async dispatchClose(){const t=new CustomEvent("wy-preview-close",{cancelable:!1,bubbles:!1,composed:!0});this.dispatchEvent(t)}async open(t,i){await this.whenApp(),await this.updateComplete,t&&(this.currentId=t),i&&this.toggleSidebarTab(i,!0),this.showOverlay=!0}close(){this.showOverlay=!1}toggleSidebarTab(t,i){t==="comments"?(this.versionsOpen=!1,this.commentsOpen=i!==void 0?i:!this.commentsOpen):t==="versions"?(this.commentsOpen=!1,this.versionsOpen=i!==void 0?i:!this.versionsOpen):(this.commentsOpen=!1,this.versionsOpen=!1)}handleVersionFile(t){this.versionFile=t.detail.versionFile}scrollToPrev(){var t;this.prevRef.value&&(this.unblockSwipeScroll(),this.prevRef.value.scrollIntoView({behavior:(t=this.weavy)==null?void 0:t.scrollBehavior}))}scrollToNext(){var t;this.nextRef.value&&(this.unblockSwipeScroll(),this.nextRef.value.scrollIntoView({behavior:(t=this.weavy)==null?void 0:t.scrollBehavior}))}blockSwipeScroll(t=20){window.clearTimeout(this.disableSwipeScrollTimeout),this.disableSwipeScroll=!0,this.disableSwipeScrollTimeout=window.setTimeout(()=>this.disableSwipeScroll=!1,t)}unblockSwipeScroll(){window.clearTimeout(this.disableSwipeScrollTimeout),this.disableSwipeScroll=!1}setPrev(){this.previousFile&&(this.currentId=this.previousFile.id,this.blockSwipeScroll())}setNext(){this.nextFile&&(this.currentId=this.nextFile.id,this.blockSwipeScroll())}currentPreviewFileCallback(t){t==null||t.scrollIntoView(),requestAnimationFrame(()=>t==null?void 0:t.scrollIntoView())}async willUpdate(t){if(await super.willUpdate(t),(t.has("app")||t.has("user"))&&this.app&&this.user&&!this.isAttachment&&(this.persistState.observe([{name:"commentsOpen",override:!0},{name:"versionsOpen",override:!0}],`a${this.app.id}-preview`,`u${this.user.id}`),this.commentsOpen&&this.versionsOpen&&(this.versionsOpen=!1)),t.has("queryResult")&&this.queryResult){const{data:i}=this.queryResult??{};this.files=i==null?void 0:i.filter(n=>n&&!n.is_trashed)}if(t.has("infiniteQueryResult")&&this.infiniteQueryResult){const{data:i}=this.infiniteQueryResult??{};this.files=ps(i).filter(n=>n&&!n.is_trashed)}t.has("currentFile")&&this.currentFile&&this.currentFile.id!==this.currentId&&(this.currentId=this.currentFile.id),(t.has("files")||t.has("currentId")||t.has("showOverlay"))&&this.files&&this.showOverlay&&(this.currentFile=void 0,this.previousFile=void 0,this.nextFile=void 0,this.versionFile=void 0,this.currentFile=this.files.find((i,n)=>this.files&&i.id===this.currentId?(n>=1&&(this.previousFile=this.files[n-1]),n<this.files.length-1&&(this.nextFile=this.files[n+1]),this.infiniteQueryResult&&n>=this.files.length-2&&this.infiniteQueryResult.hasNextPage&&!this.infiniteQueryResult.isFetchingNextPage&&this.infiniteQueryResult.fetchNextPage(),this.infiniteQueryResult&&n<=1&&this.infiniteQueryResult.hasPreviousPage&&!this.infiniteQueryResult.isFetchingPreviousPage&&this.infiniteQueryResult.fetchPreviousPage(),!0):!1)),t.has("currentFile")&&this.currentFile&&!this.files&&(this.files=[this.currentFile]),t.has("showOverlay")&&(this.showOverlay?await this.dispatchOpen():t.get("showOverlay")&&await this.dispatchClose())}renderHeader(t){var i,n,r,a;const o={"wy-appbar-text-trashed":!!(t!=null&&t.is_trashed)};return b` <header class="wy-appbars">
|
|
1323
1323
|
<nav class="wy-appbar">
|
|
1324
1324
|
<wy-button kind="icon" @click=${()=>this.close()}><wy-icon name="close"></wy-icon></wy-button>
|
|
1325
1325
|
<div class="wy-appbar-text ${rt(o)}">
|
|
@@ -2125,7 +2125,7 @@ ${r.join(`
|
|
|
2125
2125
|
${Bi(this.files,t=>t.id,t=>C_.call(this,t,this.isRenamingId,this.highlightId,this.highlightRef))}
|
|
2126
2126
|
</div>
|
|
2127
2127
|
<slot name="end"></slot>
|
|
2128
|
-
`:k_.call(this,this.files,this.order,this.isRenamingId,this.highlightId,this.highlightRef):M}updated(t){var i;t.has("highlightId")&&this.highlightId&&((i=this.highlightRef.value)==null||i.scrollIntoView({block:"nearest"}))}},d(rf,"Ta"),rf),p(N0,"WyFilesList"),N0);Mn.styles=[me,hy,gN,vN];pa([k({attribute:!1})],Mn.prototype,"files",2);pa([k({type:Number})],Mn.prototype,"dataUpdatedAt",2);pa([k({attribute:!1})],Mn.prototype,"order",2);pa([k()],Mn.prototype,"view",2);pa([X()],Mn.prototype,"isRenamingId",2);pa([X()],Mn.prototype,"highlightId",2);pa([X()],Mn.prototype,"highlightComment",2);Mn=pa([Y("wy-files-list"),ke()],Mn);var $N=Object.defineProperty,xN=Object.getOwnPropertyDescriptor,Q_=p(s=>{throw TypeError(s)},"__typeError$7"),gb=p((s,t,i,n)=>{for(var r=n>1?void 0:n?xN(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&$N(t,i,r),r},"__decorateClass$k"),M_=p((s,t,i)=>t.has(s)||Q_("Cannot "+i),"__accessCheck$7"),BC=p((s,t,i)=>(M_(s,t,"read from private field"),i?i.call(s):t.get(s)),"__privateGet$7"),kN=p((s,t,i)=>t.has(s)?Q_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,i),"__privateAdd$7"),FC=p((s,t,i,n)=>(M_(s,t,"write to private field"),t.set(s,i),i),"__privateSet$7"),vc;const T_="wy-files";var H0,af;let aa=(H0=(af=class extends Xe{constructor(){super(),this.componentType=Se.Files,this.componentFeatures=new $n({[Z.Attachments]:!0,[Z.CloudFiles]:!0,[Z.Comments]:!0,[Z.Embeds]:!0,[Z.GoogleMeet]:!1,[Z.Meetings]:!1,[Z.Mentions]:!0,[Z.MicrosoftTeams]:!1,[Z.Polls]:!0,[Z.Previews]:!0,[Z.Reactions]:!0,[Z.Typing]:!1,[Z.Versions]:!0,[Z.WebDAV]:!0,[Z.ZoomMeetings]:!1}),this.theme=new Hs(this,aa.styles),this.view="list",this.order={by:"name",descending:!1},this.showTrashed=!1,this.filesQuery=new al(this),this.persistState=new JS(this),this.infiniteScroll=new ol(this),this.pagerRef=xe(),this.previewRef=xe(),this.dropZone=new Vz(this),this.appSubscribeMutation=new rn(this),this.uploadBlobMutation=new rn(this),this.createFileMutation=new rn(this),this.handleRealtimeFileCreated=t=>{!this.weavy||!this.app||(t.file.created_by=t.actor,this.weavy.queryClient.invalidateQueries({queryKey:this.getFilesQueryKey(this.app)}))},this.handleRealtimeFileUpdated=t=>{!this.weavy||!this.app||this.weavy.queryClient.invalidateQueries({queryKey:this.getFilesQueryKey(this.app)})},this.handleRealtimeFileTrashed=t=>{!this.weavy||!this.app||this.weavy.queryClient.invalidateQueries({queryKey:this.getFilesQueryKey(this.app)})},this.handleRealtimeFileRestored=t=>{!this.weavy||!this.app||this.weavy.queryClient.invalidateQueries({queryKey:this.getFilesQueryKey(this.app)})},this.handleRealtimeFileDeleted=t=>{!this.weavy||!this.app||this.weavy.queryClient.invalidateQueries({queryKey:this.getFilesQueryKey(this.app)})},this.handleRealtimeCommentCreated=()=>{!this.weavy||!this.app||this.weavy.queryClient.invalidateQueries({queryKey:this.getFilesQueryKey(this.app)})},kN(this,vc),this.addEventListener("drop-files",this.handleBlobUpload)}handleBlobUpload(t){const i=t.detail;if(i.files){for(let n=0;n<i.files.length;n++){const r={file:i.files[n]};this.uploadBlobMutation.mutate(r).then(a=>this.handleCreateFile(a))}i.input&&(i.input.value="")}}handleExternalBlobs(t){var i;if(t.detail.externalBlobs)for(let n=0;n<t.detail.externalBlobs.length;n++){const r=t.detail.externalBlobs[n];(i=this.externalBlobMutation)==null||i.mutate({externalBlob:r}).then(a=>this.handleCreateFile(a))}}async handleCreateFile(t,i){return await this.createFileMutation.mutate({blob:t,replace:i})}handleSubscribe(t){var i;(i=this.app)!=null&&i.id&&this.appSubscribeMutation.mutate({subscribe:t})}getFilesQueryKey(t){return["apps",t.id,"files"]}willUpdate(t){var i;if(super.willUpdate(t),(t.has("uid")||t.has("weavy")||t.has("user"))&&this.uid&&this.weavy&&this.user&&this.persistState.observe(["view","order","showTrashed"],this.uid,`u${this.user.id}`),(t.has("weavy")||t.has("app")||t.has("order")||t.has("showTrashed"))&&this.weavy&&this.app&&this.filesQuery.trackInfiniteQuery(u_(this.weavy,this.app.id,{order:this.order,trashed:this.showTrashed})),(t.has("weavy")||t.has("app")||t.has("user"))&&this.weavy&&this.app&&this.user){this.appSubscribeMutation.trackMutation(nS(this.weavy,this.app)),this.uploadBlobMutation.trackMutation(gv(this.weavy,this.user,this.app.id)),this.createFileMutation.trackMutation(Rz(this.weavy,this.user,this.app)),this.externalBlobMutation=aP(this.weavy,this.user,this.app.id),this.renameFileMutation=f_(this.weavy,this.app),this.subscribeFileMutation=$_(this.weavy,this.app),this.trashFileMutation=m_(this.weavy,this.app),this.restoreFileMutation=g_(this.weavy,this.app),this.deleteForeverFileMutation=b_(this.weavy,this.app),(i=BC(this,vc))==null||i.call(this);const n=`a${this.app.id}`;this.weavy.subscribe(n,"file_created",this.handleRealtimeFileCreated),this.weavy.subscribe(n,"file_updated",this.handleRealtimeFileUpdated),this.weavy.subscribe(n,"file_trashed",this.handleRealtimeFileTrashed),this.weavy.subscribe(n,"file_restored",this.handleRealtimeFileRestored),this.weavy.subscribe(n,"file_deleted",this.handleRealtimeFileDeleted),this.weavy.subscribe(n,"comment_created",this.handleRealtimeCommentCreated),FC(this,vc,()=>{var r,a,o,l,c,h;(r=this.weavy)==null||r.unsubscribe(n,"file_created",this.handleRealtimeFileCreated),(a=this.weavy)==null||a.unsubscribe(n,"file_updated",this.handleRealtimeFileUpdated),(o=this.weavy)==null||o.unsubscribe(n,"file_trashed",this.handleRealtimeFileTrashed),(l=this.weavy)==null||l.unsubscribe(n,"file_restored",this.handleRealtimeFileRestored),(c=this.weavy)==null||c.unsubscribe(n,"file_deleted",this.handleRealtimeFileDeleted),(h=this.weavy)==null||h.unsubscribe(n,"comment_created",this.handleRealtimeCommentCreated),FC(this,vc,void 0)})}}updated(){this.infiniteScroll.observe(this.filesQuery.result,this.pagerRef.value)}render(){const{data:t,dataUpdatedAt:i,hasNextPage:n,isPending:r}=this.filesQuery.result,a=this.dropZone.isDragActive,o=ps(t);return[b`
|
|
2128
|
+
`:k_.call(this,this.files,this.order,this.isRenamingId,this.highlightId,this.highlightRef):M}updated(t){var i;t.has("highlightId")&&this.highlightId&&((i=this.highlightRef.value)==null||i.scrollIntoView({block:"nearest"}))}},d(rf,"Ta"),rf),p(N0,"WyFilesList"),N0);Mn.styles=[me,hy,gN,vN];pa([k({attribute:!1})],Mn.prototype,"files",2);pa([k({type:Number})],Mn.prototype,"dataUpdatedAt",2);pa([k({attribute:!1})],Mn.prototype,"order",2);pa([k()],Mn.prototype,"view",2);pa([X()],Mn.prototype,"isRenamingId",2);pa([X()],Mn.prototype,"highlightId",2);pa([X()],Mn.prototype,"highlightComment",2);Mn=pa([Y("wy-files-list"),ke()],Mn);var $N=Object.defineProperty,xN=Object.getOwnPropertyDescriptor,Q_=p(s=>{throw TypeError(s)},"__typeError$7"),gb=p((s,t,i,n)=>{for(var r=n>1?void 0:n?xN(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&$N(t,i,r),r},"__decorateClass$k"),M_=p((s,t,i)=>t.has(s)||Q_("Cannot "+i),"__accessCheck$7"),BC=p((s,t,i)=>(M_(s,t,"read from private field"),i?i.call(s):t.get(s)),"__privateGet$7"),kN=p((s,t,i)=>t.has(s)?Q_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,i),"__privateAdd$7"),FC=p((s,t,i,n)=>(M_(s,t,"write to private field"),t.set(s,i),i),"__privateSet$7"),vc;const T_="wy-files";var H0,af;let aa=(H0=(af=class extends Xe{constructor(){super(),this.componentType=Se.Files,this.componentFeatures=new $n({[Z.Attachments]:!0,[Z.CloudFiles]:!0,[Z.Comments]:!0,[Z.Embeds]:!0,[Z.GoogleMeet]:!1,[Z.Meetings]:!1,[Z.Mentions]:!0,[Z.MicrosoftTeams]:!1,[Z.Polls]:!0,[Z.Previews]:!0,[Z.Reactions]:!0,[Z.Typing]:!1,[Z.Versions]:!0,[Z.WebDAV]:!0,[Z.ZoomMeetings]:!1}),this.theme=new Hs(this,aa.styles),this.view="list",this.order={by:"name",descending:!1},this.showTrashed=!1,this.filesQuery=new al(this),this.persistState=new JS(this),this.infiniteScroll=new ol(this),this.pagerRef=xe(),this.previewRef=xe(),this.dropZone=new Vz(this),this.appSubscribeMutation=new rn(this),this.uploadBlobMutation=new rn(this),this.createFileMutation=new rn(this),this.handleRealtimeFileCreated=t=>{!this.weavy||!this.app||(t.file.created_by=t.actor,this.weavy.queryClient.invalidateQueries({queryKey:this.getFilesQueryKey(this.app)}))},this.handleRealtimeFileUpdated=t=>{!this.weavy||!this.app||this.weavy.queryClient.invalidateQueries({queryKey:this.getFilesQueryKey(this.app)})},this.handleRealtimeFileTrashed=t=>{!this.weavy||!this.app||this.weavy.queryClient.invalidateQueries({queryKey:this.getFilesQueryKey(this.app)})},this.handleRealtimeFileRestored=t=>{!this.weavy||!this.app||this.weavy.queryClient.invalidateQueries({queryKey:this.getFilesQueryKey(this.app)})},this.handleRealtimeFileDeleted=t=>{!this.weavy||!this.app||this.weavy.queryClient.invalidateQueries({queryKey:this.getFilesQueryKey(this.app)})},this.handleRealtimeCommentCreated=()=>{!this.weavy||!this.app||this.weavy.queryClient.invalidateQueries({queryKey:this.getFilesQueryKey(this.app)})},kN(this,vc),this.addEventListener("drop-files",this.handleBlobUpload)}handleBlobUpload(t){const i=t.detail;if(i.files){for(let n=0;n<i.files.length;n++){const r={file:i.files[n]};this.uploadBlobMutation.mutate(r).then(a=>this.handleCreateFile(a))}i.input&&(i.input.value="")}}handleExternalBlobs(t){var i;if(t.detail.externalBlobs)for(let n=0;n<t.detail.externalBlobs.length;n++){const r=t.detail.externalBlobs[n];(i=this.externalBlobMutation)==null||i.mutate({externalBlob:r}).then(a=>this.handleCreateFile(a))}}async handleCreateFile(t,i){return await this.createFileMutation.mutate({blob:t,replace:i})}handleSubscribe(t){var i;(i=this.app)!=null&&i.id&&this.appSubscribeMutation.mutate({subscribe:t})}getFilesQueryKey(t){return["apps",t.id,"files"]}willUpdate(t){var i;if(super.willUpdate(t),(t.has("uid")||t.has("weavy")||t.has("user"))&&this.uid&&this.weavy&&this.user&&this.persistState.observe([{name:"view",override:!0},{name:"order",override:!0},{name:"showTrashed",override:!0}],this.uid,`u${this.user.id}`),(t.has("weavy")||t.has("app")||t.has("order")||t.has("showTrashed"))&&this.weavy&&this.app&&this.filesQuery.trackInfiniteQuery(u_(this.weavy,this.app.id,{order:this.order,trashed:this.showTrashed})),(t.has("weavy")||t.has("app")||t.has("user"))&&this.weavy&&this.app&&this.user){this.appSubscribeMutation.trackMutation(nS(this.weavy,this.app)),this.uploadBlobMutation.trackMutation(gv(this.weavy,this.user,this.app.id)),this.createFileMutation.trackMutation(Rz(this.weavy,this.user,this.app)),this.externalBlobMutation=aP(this.weavy,this.user,this.app.id),this.renameFileMutation=f_(this.weavy,this.app),this.subscribeFileMutation=$_(this.weavy,this.app),this.trashFileMutation=m_(this.weavy,this.app),this.restoreFileMutation=g_(this.weavy,this.app),this.deleteForeverFileMutation=b_(this.weavy,this.app),(i=BC(this,vc))==null||i.call(this);const n=`a${this.app.id}`;this.weavy.subscribe(n,"file_created",this.handleRealtimeFileCreated),this.weavy.subscribe(n,"file_updated",this.handleRealtimeFileUpdated),this.weavy.subscribe(n,"file_trashed",this.handleRealtimeFileTrashed),this.weavy.subscribe(n,"file_restored",this.handleRealtimeFileRestored),this.weavy.subscribe(n,"file_deleted",this.handleRealtimeFileDeleted),this.weavy.subscribe(n,"comment_created",this.handleRealtimeCommentCreated),FC(this,vc,()=>{var r,a,o,l,c,h;(r=this.weavy)==null||r.unsubscribe(n,"file_created",this.handleRealtimeFileCreated),(a=this.weavy)==null||a.unsubscribe(n,"file_updated",this.handleRealtimeFileUpdated),(o=this.weavy)==null||o.unsubscribe(n,"file_trashed",this.handleRealtimeFileTrashed),(l=this.weavy)==null||l.unsubscribe(n,"file_restored",this.handleRealtimeFileRestored),(c=this.weavy)==null||c.unsubscribe(n,"file_deleted",this.handleRealtimeFileDeleted),(h=this.weavy)==null||h.unsubscribe(n,"comment_created",this.handleRealtimeCommentCreated),FC(this,vc,void 0)})}}updated(){this.infiniteScroll.observe(this.filesQuery.result,this.pagerRef.value)}render(){const{data:t,dataUpdatedAt:i,hasNextPage:n,isPending:r}=this.filesQuery.result,a=this.dropZone.isDragActive,o=ps(t);return[b`
|
|
2129
2129
|
<wy-files-appbar
|
|
2130
2130
|
.order=${this.order}
|
|
2131
2131
|
.showTrashed=${this.showTrashed}
|
|
@@ -2659,7 +2659,7 @@ ${r.join(`
|
|
|
2659
2659
|
}
|
|
2660
2660
|
`,ll];yl([k({type:Object})],ds.prototype,"avatarUser",2);yl([k({type:String})],ds.prototype,"name",2);yl([k({type:Number})],ds.prototype,"conversationId",2);yl([k({type:Array})],ds.prototype,"conversationTypes",2);yl([k()],ds.prototype,"bot",2);yl([X()],ds.prototype,"searchText",2);ds=yl([Y("wy-conversation-list"),ke()],ds);var jN=Object.defineProperty,BN=Object.getOwnPropertyDescriptor,I_=p(s=>{throw TypeError(s)},"__typeError$3"),Dw=p((s,t,i,n)=>{for(var r=n>1?void 0:n?BN(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&jN(t,i,r),r},"__decorateClass$c"),Z_=p((s,t,i)=>t.has(s)||I_("Cannot "+i),"__accessCheck$3"),e3=p((s,t,i)=>(Z_(s,t,"read from private field"),i?i.call(s):t.get(s)),"__privateGet$3"),FN=p((s,t,i)=>t.has(s)?I_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,i),"__privateAdd$3"),t3=p((s,t,i,n)=>(Z_(s,t,"write to private field"),t.set(s,i),i),"__privateSet$3"),xc,n2,ff;let oa=(n2=(ff=class extends J{constructor(){super(...arguments),this.private=!0,this.rooms=!0,this.badgeQuery=new ji(this),this.handleBadgeRefresh=async()=>{this.badgeQuery.result.isRefetching||await this.badgeQuery.result.refetch()},this.handleRealtimeMessage=t=>{this.handleBadgeRefresh()},this.handleRealtimeSeenBy=t=>{this.handleBadgeRefresh()},FN(this,xc)}async willUpdate(t){var i;if(t.has("weavy")&&this.weavy){const n=[];this.rooms&&n.push(Se.ChatRoom),this.private&&n.push(Se.PrivateChat),this.bot&&n.push(Se.BotChat),this.badgeQuery.trackQuery($A(this.weavy,n,this.bot),!0),(i=e3(this,xc))==null||i.call(this),this.weavy.subscribe(null,"message_created",this.handleRealtimeMessage),this.weavy.subscribe(null,"app_marked",this.handleBadgeRefresh),t3(this,xc,()=>{var r,a;(r=this.weavy)==null||r.unsubscribe(null,"message_created",this.handleRealtimeMessage),(a=this.weavy)==null||a.unsubscribe(null,"app_marked",this.handleBadgeRefresh),t3(this,xc,void 0)})}}render(){const{data:t,isPending:i}=this.badgeQuery.result??{},n=t?t.count:0;return b`
|
|
2661
2661
|
${!i&&n>0?b` <span class="wy-badge wy-badge-danger wy-badge-reveal">${n}</span> `:M}
|
|
2662
|
-
`}connectedCallback(){super.connectedCallback(),this.weavy&&this.requestUpdate("weavy")}disconnectedCallback(){var t;(t=e3(this,xc))==null||t.call(this),super.disconnectedCallback()}},d(ff,"ja"),ff),p(n2,"WyMessengerBadge"),n2);xc=new WeakMap;oa.styles=me;Dw([St({context:zt,subscribe:!0}),X()],oa.prototype,"weavy",2);Dw([k({attribute:!1,type:Boolean})],oa.prototype,"private",2);Dw([k({attribute:!1,type:Boolean})],oa.prototype,"rooms",2);Dw([k()],oa.prototype,"bot",2);oa=Dw([Y("wy-messenger-badge")],oa);var XN=Object.defineProperty,NN=Object.getOwnPropertyDescriptor,bb=p((s,t,i,n)=>{for(var r=n>1?void 0:n?NN(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&XN(t,i,r),r},"__decorateClass$b");const HN=new Map(Object.entries({[vn.ChatRoom]:Se.ChatRoom,[vn.PrivateChat]:Se.PrivateChat,[Se.ChatRoom]:vn.ChatRoom,[Se.PrivateChat]:vn.PrivateChat}));new Map(Object.entries({[vn.BotChat]:Se.BotChat,[Se.BotChat]:vn.BotChat}));const W_="wy-messenger",i3={[Z.Attachments]:!0,[Z.CloudFiles]:!0,[Z.Embeds]:!0,[Z.GoogleMeet]:!0,[Z.Meetings]:!0,[Z.Mentions]:!0,[Z.MicrosoftTeams]:!0,[Z.Polls]:!0,[Z.Previews]:!0,[Z.Reactions]:!0,[Z.Receipts]:!0,[Z.Typing]:!0,[Z.ZoomMeetings]:!0},YN={[Z.Attachments]:!0,[Z.Embeds]:!0,[Z.Previews]:!0,[Z.Reactions]:!1,[Z.Receipts]:!0,[Z.Typing]:!0};var s2,yf;let la=(s2=(yf=class extends Xe{constructor(){super(...arguments),this.componentFeatures=new $n(i3),this.theme=new Hs(this,la.styles),this.appTypes=[Se.ChatRoom,Se.PrivateChat],this.conversationId=null,this.conversationQuery=new ji(this),this.botQuery=new ji(this),this.persistState=new JS(this),this.releaseFocusEvent=()=>new CustomEvent("release-focus",{bubbles:!0,composed:!0})}get bot(){return super.bot}set bot(t){super.bot=t,this._bot?(this.appTypes=[Se.BotChat],this.componentFeatures=new $n(YN,this.componentFeatures.allowedFeatures())):(this.appTypes=[Se.ChatRoom,Se.PrivateChat],this.componentFeatures=new $n(i3,this.componentFeatures.allowedFeatures())),this.conversationId=null}async conversationBelongsToMessenger(t){return console.warn("conversationBelongsToMessenger() is deprecated. Compare app to to .appTypes instead."),this.weavy?!!await oL(this.weavy,t,this.appTypes,this.bot):!1}async selectConversation(t){return console.warn("selectConversation() is deprecated. Set .conversationId instead."),this.conversationId=t,!0}clearConversation(){console.warn("clearConversation() is deprecated. Set .conversationId to null instead."),this.conversationId=null}async willUpdate(t){var i,n;super.willUpdate(t),(t.has("weavy")||t.has("bot")||t.has("user"))&&this.weavy&&this.user&&this.persistState.observe(["conversationId"],this.bot||"messenger",`u${(i=this.user)==null?void 0:i.id}`),t.has("link")&&(n=this.link)!=null&&n.app&&(this.conversationId=this.link.app.id)}update(t){super.update(t),(t.has("conversationId")||t.has("weavy"))&&this.weavy&&(this.conversationId?this.conversationQuery.trackQuery(aL(this.weavy,this.conversationId,this.appTypes)):this.conversationQuery.untrackQuery())}render(){var t;const{isPending:i}=((t=this.weavy)==null?void 0:t.network)??{isPending:!0},{data:n,isPending:r}=this.conversationQuery.result??{isPending:i};return b`
|
|
2662
|
+
`}connectedCallback(){super.connectedCallback(),this.weavy&&this.requestUpdate("weavy")}disconnectedCallback(){var t;(t=e3(this,xc))==null||t.call(this),super.disconnectedCallback()}},d(ff,"ja"),ff),p(n2,"WyMessengerBadge"),n2);xc=new WeakMap;oa.styles=me;Dw([St({context:zt,subscribe:!0}),X()],oa.prototype,"weavy",2);Dw([k({attribute:!1,type:Boolean})],oa.prototype,"private",2);Dw([k({attribute:!1,type:Boolean})],oa.prototype,"rooms",2);Dw([k()],oa.prototype,"bot",2);oa=Dw([Y("wy-messenger-badge")],oa);var XN=Object.defineProperty,NN=Object.getOwnPropertyDescriptor,bb=p((s,t,i,n)=>{for(var r=n>1?void 0:n?NN(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&XN(t,i,r),r},"__decorateClass$b");const HN=new Map(Object.entries({[vn.ChatRoom]:Se.ChatRoom,[vn.PrivateChat]:Se.PrivateChat,[Se.ChatRoom]:vn.ChatRoom,[Se.PrivateChat]:vn.PrivateChat}));new Map(Object.entries({[vn.BotChat]:Se.BotChat,[Se.BotChat]:vn.BotChat}));const W_="wy-messenger",i3={[Z.Attachments]:!0,[Z.CloudFiles]:!0,[Z.Embeds]:!0,[Z.GoogleMeet]:!0,[Z.Meetings]:!0,[Z.Mentions]:!0,[Z.MicrosoftTeams]:!0,[Z.Polls]:!0,[Z.Previews]:!0,[Z.Reactions]:!0,[Z.Receipts]:!0,[Z.Typing]:!0,[Z.ZoomMeetings]:!0},YN={[Z.Attachments]:!0,[Z.Embeds]:!0,[Z.Previews]:!0,[Z.Reactions]:!1,[Z.Receipts]:!0,[Z.Typing]:!0};var s2,yf;let la=(s2=(yf=class extends Xe{constructor(){super(...arguments),this.componentFeatures=new $n(i3),this.theme=new Hs(this,la.styles),this.appTypes=[Se.ChatRoom,Se.PrivateChat],this.conversationId=null,this.conversationQuery=new ji(this),this.botQuery=new ji(this),this.persistState=new JS(this),this.releaseFocusEvent=()=>new CustomEvent("release-focus",{bubbles:!0,composed:!0})}get bot(){return super.bot}set bot(t){super.bot=t,this._bot?(this.appTypes=[Se.BotChat],this.componentFeatures=new $n(YN,this.componentFeatures.allowedFeatures())):(this.appTypes=[Se.ChatRoom,Se.PrivateChat],this.componentFeatures=new $n(i3,this.componentFeatures.allowedFeatures())),this.conversationId=null}async conversationBelongsToMessenger(t){return console.warn("conversationBelongsToMessenger() is deprecated. Compare app to to .appTypes instead."),this.weavy?!!await oL(this.weavy,t,this.appTypes,this.bot):!1}async selectConversation(t){return console.warn("selectConversation() is deprecated. Set .conversationId instead."),this.conversationId=t,!0}clearConversation(){console.warn("clearConversation() is deprecated. Set .conversationId to null instead."),this.conversationId=null}async willUpdate(t){var i,n;super.willUpdate(t),(t.has("weavy")||t.has("bot")||t.has("user"))&&this.weavy&&this.user&&this.persistState.observe([{name:"conversationId",override:!1}],this.bot||"messenger",`u${(i=this.user)==null?void 0:i.id}`),t.has("link")&&(n=this.link)!=null&&n.app&&(this.conversationId=this.link.app.id)}update(t){super.update(t),(t.has("conversationId")||t.has("weavy"))&&this.weavy&&(this.conversationId?this.conversationQuery.trackQuery(aL(this.weavy,this.conversationId,this.appTypes)):this.conversationQuery.untrackQuery())}render(){var t;const{isPending:i}=((t=this.weavy)==null?void 0:t.network)??{isPending:!0},{data:n,isPending:r}=this.conversationQuery.result??{isPending:i};return b`
|
|
2663
2663
|
<div class="wy-messenger-layout">
|
|
2664
2664
|
<wy-conversation-list
|
|
2665
2665
|
class="wy-scroll-y"
|
|
@@ -2689,10 +2689,10 @@ ${r.join(`
|
|
|
2689
2689
|
</wy-conversation-appbar>
|
|
2690
2690
|
|
|
2691
2691
|
${SN(this.conversationId?r?b`<wy-empty><wy-spinner reveal></wy-spinner></wy-empty>`:b`<wy-conversation
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2692
|
+
.conversationId=${this.conversationId}
|
|
2693
|
+
.conversation=${n}
|
|
2694
|
+
.header=${!this.bot}
|
|
2695
|
+
></wy-conversation>`:b`<wy-empty noNetwork>${Q("Select a conversation")}</wy-empty>`)}
|
|
2696
2696
|
</div>
|
|
2697
2697
|
</div>
|
|
2698
2698
|
`}},d(yf,"Wa"),yf),p(s2,"WyMessenger"),s2);la.styles=[Ni,me,PN,rl,Ys];bb([X()],la.prototype,"appTypes",2);bb([k({type:String})],la.prototype,"bot",1);bb([k({type:Number})],la.prototype,"conversationId",2);la=bb([Y(W_),ke()],la);const GN=Re`.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)))}`,KN=Re`.wy-notification.wy-read{opacity:var(--wy-opacity-muted, 60%);--wy-component-color: var(--wy-outline, var(--wy-neutral-variant-50, #72777e))}`;var JN=Object.defineProperty,eH=Object.getOwnPropertyDescriptor,qw=p((s,t,i,n)=>{for(var r=n>1?void 0:n?eH(t,i):t,a=s.length-1,o;a>=0;a--)(o=s[a])&&(r=(n?o(t,i,r):o(r))||r);return n&&r&&JN(t,i,r),r},"__decorateClass$a"),r2,mf;let ca=(r2=(mf=class extends ct(J){constructor(){super(...arguments),this.exportParts=new ae(this),this.selected=!1,this.standalone=!1}dispatchSelect(t){const i=new CustomEvent("select",{detail:{notificationId:this.notificationId}});return this.dispatchEvent(i)}dispatchMark(t,i){if(t.stopPropagation(),i===!!this.notification.is_unread){const n=new CustomEvent("mark",{detail:{notificationId:this.notificationId,markAsRead:i}});return this.dispatchEvent(n)}return!0}dispatchHide(){if(this.standalone){const t=new CustomEvent("hide",{bubbles:!0});return this.dispatchEvent(t)}return!0}dispatchClose(){if(this.standalone){const t=new CustomEvent("close",{bubbles:!0});return this.dispatchEvent(t)}return!0}async handleClick(t){this.dispatchSelect(t),this.dispatchMark(t,!0),this.dispatchHide(),await MS(this,this.weavy,this.notification),this.dispatchClose()}render(){var t,i;const n=this.notification.created_at?new Intl.DateTimeFormat((t=this.weavy)==null?void 0:t.locale,{dateStyle:"full",timeStyle:"short"}).format(new Date(this.notification.created_at)):"",r=this.notification.created_at?yy((i=this.weavy)==null?void 0:i.locale,new Date(this.notification.created_at)):"",a=this.notification.actor,{title:o,titleHtml:l,detail:c}=RS(this.notification),h=this.standalone?M:b`
|
|
@@ -3157,4 +3157,4 @@ ${r.join(`
|
|
|
3157
3157
|
>
|
|
3158
3158
|
<wy-icon name="send"></wy-icon>
|
|
3159
3159
|
</wy-button>
|
|
3160
|
-
</div>`}renderBottomSlot(){return M}},d(Cf,"ro"),Cf),p(m2,"WyMessageEditor"),m2);qx=xH([Y("wy-message-editor"),ke()],qx);const le=Object.freeze(Object.defineProperty({__proto__:null,get WyAttachment(){return Us},get WyAttachmentsList(){return Nf},get WyAvatar(){return qs},get WyAvatarGroup(){return Bo},get WyBlobUpload(){return ty},get WyButton(){return os},get WyButtons(){return Fo},get WyCloudFiles(){return el},get WyComment(){return vt},get WyCommentEdit(){return hn},get WyCommentEditor(){return Vx},get WyCommentList(){return Jf},get WyCommentTrashed(){return hw},get WyCommentView(){return Lt},get WyConversation(){return Ti},get WyConversationAppbar(){return hs},get WyConversationList(){return ds},get WyConversationListItem(){return ni},get WyConversationNew(){return ny},get WyDropdown(){return Mi},get WyDropdownDivider(){return mv},get WyDropdownItem(){return lw},get WyDropdownOption(){return Kf},get WyEditor(){return Ze},get WyEmbed(){return Ff},get WyEmpty(){return Bf},get WyFileItem(){return Bs},get WyFileMenu(){return sa},get WyFileVersions(){return ey},get WyFilesAppbar(){return ra},get WyFilesList(){return Mn},get WyIcon(){return ot},get WyImageGrid(){return Xf},get WyMeetingCard(){return aw},get WyMessage(){return bt},get WyMessageEditor(){return qx},get WyMessageTyping(){return Fi},get WyMessages(){return Qn},get WyMessengerBadge(){return oa},get WyNotificationBadge(){return pw},get WyNotificationButtonList(){return bv},get WyNotificationList(){return sy},get WyNotificationListItem(){return ca},get WyOverlay(){return ta},get WyPdfViewer(){return Go},get WyPoll(){return dw},get WyPollOption(){return Ko},get WyPost(){return Ot},get WyPostEdit(){return Ut},get WyPostTrashed(){return gw},get WyPostView(){return lt},get WyPresence(){return jf},get WyPreview(){return Mt},get WyPreviewEmbed(){return na},get WyPreviewIcon(){return Ho},get WyPreviewImage(){return Yo},get WyPreviewItem(){return cw},get WyPreviewMedia(){return ia},get WyPreviewText(){return ls},get WyProgressLinear(){return cs},get WyReactionItem(){return rw},get WyReactions(){return gt},get WySheet(){return Gf},get WySkeleton(){return ow},get WySpinner(){return rs},get WyToast(){return Fs},get WyToasts(){return ww},get WyTyping(){return iy},get WyUsersSearch(){return Tn}},Symbol.toStringTag,{value:"Module"}));Ct.version="27.1.0";Ct.sourceName="@weavy/uikit-react";const rI=H.createContext(null);function kH(s,t=[]){var l,c,h,u,f;const[i,n]=H.useState(),r={...s,cloudFilePickerUrl:(l=s.cloudFilePickerUrl)==null?void 0:l.toString(),locales:H.useMemo(()=>s.locales,[(c=s.locales)==null?void 0:c.length]),tokenUrl:(h=s.tokenUrl)==null?void 0:h.toString(),tokenFactory:H.useMemo(()=>s.tokenFactory,[(u=s.tokenFactory)==null?void 0:u.toString(),...t]),url:(f=s.url)==null?void 0:f.toString()},[a,o]=H.useState(r);return H.useEffect(()=>{if(!i){const w=(Zi==null?void 0:Zi.value)??new wt(r);n(w)}},[]),H.useEffect(()=>{if(i&&!i.isDestroyed){const y={};Object.entries(r).forEach(([w,g])=>{g!==a[w]&&Object.assign(y,{[w]:g})}),Object.keys(y).length&&(o(r),Object.assign(i,y))}},[r]),i}d(kH,"useWeavy");const aI=Promise.resolve(),fP=class fP{constructor(t,i){this.o=[],this.t=!0,this.i=!1,this.l=t,this.h=i,this.u=new Promise((n,r)=>{this.p=n})}addController(t){this.o.push(t)}removeController(t){var i;(i=this.o)==null||i.splice(this.o.indexOf(t)>>>0,1)}requestUpdate(){this.t||(this.t=!0,aI.then(()=>this.h(++this.l)))}get updateComplete(){return this.u}m(){this.i=!0,this.o.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}_(){this.i=!1,this.o.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}v(){this.o.forEach(t=>{var i;return(i=t.hostUpdate)==null?void 0:i.call(t)})}C(){this.t=!1;const t=this.p;this.u=new Promise((i,n)=>{this.p=i}),this.o.forEach(i=>{var n;return(n=i.hostUpdated)==null?void 0:n.call(i)}),t(this.t)}};d(fP,"s");let Ux=fP;const SH=d((s,t)=>{const{useState:i,useLayoutEffect:n}=s,[r,a]=i(0);let o=!1;const[l]=i(()=>{const c=new Ux(r,a),h=t(c);return c.M=h,c.m(),o=!0,aI.then(()=>{o&&c._()}),c});return l.t=!0,n(()=>(o=!1,l.i||l.m(),()=>l._()),[]),n(()=>l.C()),l.v(),l.M},"e$2");function oI(s,t){var a;const n=(d(o=>!!o&&o.current!==void 0,"isRef")(s)?s.current:s)||void 0,r=SH(H,o=>new aj(o,t??zt,n));return H.useEffect(()=>{n&&(r.ref=n)},[r,n]),(a=r.context)==null?void 0:a.value}d(oI,"useWeavyContext");var lI=(s=>(s.Attachments="attachments",s.Bots="bots",s.CloudFiles="cloud_files",s.ContextData="context_data",s.Comments="comments",s.Embeds="embeds",s.GoogleMeet="google_meet",s.Meetings="meetings",s.Mentions="mentions",s.MicrosoftTeams="microsoft_teams",s.Polls="polls",s.Previews="previews",s.Reactions="reactions",s.Receipts="receipts",s.Thumbnails="thumbnails",s.Typing="typing",s.Versions="versions",s.WebDAV="web_dav",s.ZoomMeetings="zoom_meetings",s))(lI||{});const PH=new Set(["children","localName","ref","style","className"]),c3=new WeakMap,h3=d((s,t,i,n,r)=>{const a=r==null?void 0:r[t];a===void 0?(s[t]=i,i==null&&t in HTMLElement.prototype&&s.removeAttribute(t)):i!==n&&((o,l,c)=>{let h=c3.get(o);h===void 0&&c3.set(o,h=new Map);let u=h.get(l);c!==void 0?u===void 0?(h.set(l,u={handleEvent:c}),o.addEventListener(l,u)):u.handleEvent=c:u!==void 0&&(h.delete(l),o.removeEventListener(l,u))})(s,a,i)},"t"),ee=d(({react:s,tagName:t,elementClass:i,events:n,displayName:r})=>{const a=new Set(Object.keys(n??{})),o=s.forwardRef((l,c)=>{const h=s.useRef(new Map),u=s.useRef(null),f={},y={};for(const[w,g]of Object.entries(l))PH.has(w)?f[w==="className"?"class":w]=g:a.has(w)||w in i.prototype?y[w]=g:f[w]=g;return s.useLayoutEffect(()=>{if(u.current===null)return;const w=new Map;for(const g in y)h3(u.current,g,l[g],h.current.get(g),n),h.current.delete(g),w.set(g,l[g]);for(const[g,O]of h.current)h3(u.current,g,void 0,O,n);h.current=w}),s.useLayoutEffect(()=>{var w;(w=u.current)==null||w.removeAttribute("defer-hydration")},[]),f.suppressHydrationWarning=!0,s.createElement(t,{...f,ref:s.useCallback(w=>{u.current=w,typeof c=="function"?c(w):c!==null&&(c.current=w)},[c])})});return o.displayName=r??i.name,o},"o"),CH=ee({react:H,tagName:l_,elementClass:fw,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),QH=ee({react:H,tagName:c_,elementClass:yw,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),MH=ee({react:H,tagName:PE,elementClass:Uo,events:{onWyApp:"wy-app"}}),TH=ee({react:H,tagName:kE,elementClass:ut,events:{onWyNotifications:"wy-notifications"}});function RH({children:s,...t}){const i=H.useRef(null),n=oI(i.current);return H.createElement(TH,{ref:i,...t},H.createElement(rI.Provider,{value:n??null},s))}d(RH,"WyContext");const AH=ee({react:H,tagName:d_,elementClass:Jo,events:{onWyApp:"wy-app",onWyMessage:"wy-message",onWyPreviewOpen:"wy-preview-open"}}),EH=ee({react:H,tagName:T_,elementClass:aa,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),LH=ee({react:H,tagName:W_,elementClass:la,events:{onWyPreviewOpen:"wy-preview-open"}}),zH=ee({react:H,tagName:q_,elementClass:mw,events:{onWyApp:"wy-app",onWyLink:"wy-link"}}),_H=ee({react:H,tagName:B_,elementClass:us,events:{onWyApp:"wy-app",onWyLink:"wy-link",onWyNotification:"wy-notification"}}),IH=ee({react:H,tagName:sI,elementClass:vw,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),ZH=ee({react:H,tagName:"wy-attachment",elementClass:le.WyAttachment}),WH=ee({react:H,tagName:"wy-attachments-list",elementClass:le.WyAttachmentsList,events:{onFileOpen:"file-open"}}),VH=ee({react:H,tagName:"wy-avatar",elementClass:le.WyAvatar}),DH=ee({react:H,tagName:"wy-blob-upload",elementClass:le.WyBlobUpload}),qH=ee({react:H,tagName:"wy-button",elementClass:le.WyButton}),UH=ee({react:H,tagName:"wy-buttons",elementClass:le.WyButtons}),jH=ee({react:H,tagName:"wy-cloud-files",elementClass:le.WyCloudFiles,events:{onExternalBlobs:"external-blobs",onReleaseFocus:"release-focus"}}),BH=ee({react:H,tagName:"wy-comment-list",elementClass:le.WyCommentList}),FH=ee({react:H,tagName:"wy-comment",elementClass:le.WyComment,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),XH=ee({react:H,tagName:"wy-comment-view",elementClass:le.WyCommentView,events:{onVote:"vote",onTrash:"trash",onEdit:"edit"}}),NH=ee({react:H,tagName:"wy-comment-edit",elementClass:le.WyCommentEdit,events:{onEdit:"edit"}}),HH=ee({react:H,tagName:"wy-comment-editor",elementClass:le.WyCommentEditor,events:{onSubmit:"submit"}}),YH=ee({react:H,tagName:"wy-comment-trashed",elementClass:le.WyCommentTrashed,events:{onRestore:"restore"}}),GH=ee({react:H,tagName:"wy-conversation",elementClass:le.WyConversation,events:{onReleaseFocus:"release-focus"}}),KH=ee({react:H,tagName:"wy-conversation-appbar",elementClass:le.WyConversationAppbar,events:{onReleaseFocus:"release-focus"}}),JH=ee({react:H,tagName:"wy-conversation-new",elementClass:le.WyConversationNew,events:{onReleaseFocus:"release-focus"}}),eY=ee({react:H,tagName:"wy-conversation-list",elementClass:le.WyConversationList,events:{onConversationSelected:"conversation-selected"}}),tY=ee({react:H,tagName:"wy-conversation-list-item",elementClass:le.WyConversationListItem,events:{onRefetch:"refetch",onSelected:"selected",onStar:"star",onPin:"pin",onMark:"mark",onLeave:"leave"}}),iY=ee({react:H,tagName:"wy-dropdown",elementClass:le.WyDropdown}),nY=ee({react:H,tagName:"wy-dropdown-item",elementClass:le.WyDropdownItem}),sY=ee({react:H,tagName:"wy-dropdown-option",elementClass:le.WyDropdownOption}),rY=ee({react:H,tagName:"wy-dropdown-divider",elementClass:le.WyDropdownDivider}),aY=ee({react:H,tagName:"wy-editor",elementClass:le.WyEditor,events:{onSubmit:"submit"}}),oY=ee({react:H,tagName:"wy-embed",elementClass:le.WyEmbed,events:{onEmbedRemove:"embed-remove",onEmbedSwap:"embed-swap"}}),lY=ee({react:H,tagName:"wy-empty",elementClass:le.WyEmpty}),cY=ee({react:H,tagName:"wy-file-item",elementClass:le.WyFileItem,events:{onEditName:"edit-name",onRename:"rename",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever",onSubscribe:"subscribe"}}),hY=ee({react:H,tagName:"wy-file-menu",elementClass:le.WyFileMenu,events:{onEditName:"edit-name",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever"}}),dY=ee({react:H,tagName:"wy-file-versions",elementClass:le.WyFileVersions,events:{onFileVersionSelect:"file-version-select"}}),uY=ee({react:H,tagName:"wy-files-appbar",elementClass:le.WyFilesAppbar,events:{onReleaseFocus:"release-focus",onUploadFiles:"upload-files",onExternalBlobs:"external-blobs",onCreateFiles:"create-files",onOrder:"order",onView:"view",onShowTrashed:"show-trashed",onSubscribe:"subscribe"}}),pY=ee({react:H,tagName:"wy-files-list",elementClass:le.WyFilesList,events:{onFileOpen:"file-open",onOrder:"order",onEditName:"edit-name",onRename:"rename",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever",onSubscribe:"subscribe"}}),fY=ee({react:H,tagName:"wy-icon",elementClass:le.WyIcon}),yY=ee({react:H,tagName:"wy-image-grid",elementClass:le.WyImageGrid,events:{onFileOpen:"file-open"}}),mY=ee({react:H,tagName:"wy-meeting-card",elementClass:le.WyMeetingCard}),wY=ee({react:H,tagName:"wy-message",elementClass:le.WyMessage}),gY=ee({react:H,tagName:"wy-messages",elementClass:le.WyMessages,events:{onScrollToBottom:"scroll-to-bottom"}}),vY=ee({react:H,tagName:"wy-message-editor",elementClass:le.WyMessageEditor,events:{onSubmit:"submit"}}),bY=ee({react:H,tagName:"wy-message-typing",elementClass:le.WyMessageTyping}),OY=ee({react:H,tagName:"wy-messenger-badge",elementClass:le.WyMessengerBadge}),$Y=ee({react:H,tagName:"wy-notification-badge",elementClass:le.WyNotificationBadge}),xY=ee({react:H,tagName:"wy-notification-button-list",elementClass:le.WyNotificationButtonList}),kY=ee({react:H,tagName:"wy-notification-list",elementClass:le.WyNotificationList}),SY=ee({react:H,tagName:"wy-notification-list-item",elementClass:le.WyNotificationListItem}),PY=ee({react:H,tagName:"wy-overlay",elementClass:le.WyOverlay,events:{onReleaseFocus:"release-focus",onClose:"close"}}),CY=ee({react:H,tagName:"wy-pdf-viewer",elementClass:le.WyPdfViewer}),QY=ee({react:H,tagName:"wy-poll",elementClass:le.WyPoll,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),MY=ee({react:H,tagName:"wy-poll-option",elementClass:le.WyPollOption,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),TY=ee({react:H,tagName:"wy-post",elementClass:le.WyPost,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),RY=ee({react:H,tagName:"wy-post-view",elementClass:le.WyPostView,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onEdit:"edit"}}),AY=ee({react:H,tagName:"wy-post-edit",elementClass:le.WyPostEdit,events:{onEdit:"edit"}}),EY=ee({react:H,tagName:"wy-post-trashed",elementClass:le.WyPostTrashed,events:{onRestore:"restore"}}),LY=ee({react:H,tagName:"wy-presence",elementClass:le.WyPresence}),zY=ee({react:H,tagName:"wy-preview",elementClass:le.WyPreview,events:{onReleaseFocus:"release-focus",onWyPreviewOpen:"wy-preview-open",onWyPreviewClose:"wy-preview-close"}}),_Y=ee({react:H,tagName:"wy-preview-item",elementClass:le.WyPreviewItem}),IY=ee({react:H,tagName:"wy-preview-embed",elementClass:le.WyPreviewEmbed}),ZY=ee({react:H,tagName:"wy-preview-icon",elementClass:le.WyPreviewIcon}),WY=ee({react:H,tagName:"wy-preview-image",elementClass:le.WyPreviewImage}),VY=ee({react:H,tagName:"wy-preview-media",elementClass:le.WyPreviewMedia}),DY=ee({react:H,tagName:"wy-preview-text",elementClass:le.WyPreviewText}),qY=ee({react:H,tagName:"wy-reactions",elementClass:le.WyReactions,events:{onReleaseFocus:"release-focus"}}),UY=ee({react:H,tagName:"wy-reaction-item",elementClass:le.WyReactionItem}),jY=ee({react:H,tagName:"wy-sheet",elementClass:le.WySheet,events:{onReleaseFocus:"release-focus",onClose:"close"}}),BY=ee({react:H,tagName:"wy-skeleton",elementClass:le.WySkeleton}),FY=ee({react:H,tagName:"wy-spinner",elementClass:le.WySpinner}),XY=ee({react:H,tagName:"wy-typing",elementClass:le.WyTyping}),NY=ee({react:H,tagName:"wy-users-search",elementClass:le.WyUsersSearch,events:{onSubmit:"submit"}}),HY=Object.freeze(Object.defineProperty({__proto__:null,WyAttachment:ZH,WyAttachmentsList:WH,WyAvatar:VH,WyBlobUpload:DH,WyButton:qH,WyButtons:UH,WyCloudFiles:jH,WyComment:FH,WyCommentEdit:NH,WyCommentEditor:HH,WyCommentList:BH,WyCommentTrashed:YH,WyCommentView:XH,WyConversation:GH,WyConversationAppbar:KH,WyConversationList:eY,WyConversationListItem:tY,WyConversationNew:JH,WyDropdown:iY,WyDropdownDivider:rY,WyDropdownItem:nY,WyDropdownOption:sY,WyEditor:aY,WyEmbed:oY,WyEmpty:lY,WyFileItem:cY,WyFileMenu:hY,WyFileVersions:dY,WyFilesAppbar:uY,WyFilesList:pY,WyIcon:fY,WyImageGrid:yY,WyMeetingCard:mY,WyMessage:wY,WyMessageEditor:vY,WyMessageTyping:bY,WyMessages:gY,WyMessengerBadge:OY,WyNotificationBadge:$Y,WyNotificationButtonList:xY,WyNotificationList:kY,WyNotificationListitem:SY,WyOverlay:PY,WyPdfViewer:CY,WyPoll:QY,WyPollOption:MY,WyPost:TY,WyPostEdit:AY,WyPostTrashed:EY,WyPostView:RY,WyPresence:LY,WyPreview:zY,WyPreviewEmbed:IY,WyPreviewIcon:ZY,WyPreviewImage:WY,WyPreviewItem:_Y,WyPreviewMedia:VY,WyPreviewText:DY,WyReactionItem:UY,WyReactions:qY,WySheet:jY,WySkeleton:BY,WySpinner:FY,WyTyping:XY,WyUsersSearch:NY},Symbol.toStringTag,{value:"Module"}));exports.AppTypeGuids=dS;exports.AppTypeStrings=$E;exports.Feature=lI;exports.MessengerTypes=HN;exports.Weavy=wt;exports.WeavyComponents=HY;exports.WeavyContext=rI;exports.WyChat=CH;exports.WyComments=QH;exports.WyComponent=MH;exports.WyContext=RH;exports.WyCopilot=AH;exports.WyFiles=EH;exports.WyMessenger=LH;exports.WyNotificationToasts=_H;exports.WyNotifications=zH;exports.WyPosts=IH;exports.useWeavy=kH;exports.useWeavyContext=oI;
|
|
3160
|
+
</div>`}renderBottomSlot(){return M}},d(Cf,"ro"),Cf),p(m2,"WyMessageEditor"),m2);qx=xH([Y("wy-message-editor"),ke()],qx);const le=Object.freeze(Object.defineProperty({__proto__:null,get WyAttachment(){return Us},get WyAttachmentsList(){return Nf},get WyAvatar(){return qs},get WyAvatarGroup(){return Bo},get WyBlobUpload(){return ty},get WyButton(){return os},get WyButtons(){return Fo},get WyCloudFiles(){return el},get WyComment(){return vt},get WyCommentEdit(){return hn},get WyCommentEditor(){return Vx},get WyCommentList(){return Jf},get WyCommentTrashed(){return hw},get WyCommentView(){return Lt},get WyConversation(){return Ti},get WyConversationAppbar(){return hs},get WyConversationList(){return ds},get WyConversationListItem(){return ni},get WyConversationNew(){return ny},get WyDropdown(){return Mi},get WyDropdownDivider(){return mv},get WyDropdownItem(){return lw},get WyDropdownOption(){return Kf},get WyEditor(){return Ze},get WyEmbed(){return Ff},get WyEmpty(){return Bf},get WyFileItem(){return Bs},get WyFileMenu(){return sa},get WyFileVersions(){return ey},get WyFilesAppbar(){return ra},get WyFilesList(){return Mn},get WyIcon(){return ot},get WyImageGrid(){return Xf},get WyMeetingCard(){return aw},get WyMessage(){return bt},get WyMessageEditor(){return qx},get WyMessageTyping(){return Fi},get WyMessages(){return Qn},get WyMessengerBadge(){return oa},get WyNotificationBadge(){return pw},get WyNotificationButtonList(){return bv},get WyNotificationList(){return sy},get WyNotificationListItem(){return ca},get WyOverlay(){return ta},get WyPdfViewer(){return Go},get WyPoll(){return dw},get WyPollOption(){return Ko},get WyPost(){return Ot},get WyPostEdit(){return Ut},get WyPostTrashed(){return gw},get WyPostView(){return lt},get WyPresence(){return jf},get WyPreview(){return Mt},get WyPreviewEmbed(){return na},get WyPreviewIcon(){return Ho},get WyPreviewImage(){return Yo},get WyPreviewItem(){return cw},get WyPreviewMedia(){return ia},get WyPreviewText(){return ls},get WyProgressLinear(){return cs},get WyReactionItem(){return rw},get WyReactions(){return gt},get WySheet(){return Gf},get WySkeleton(){return ow},get WySpinner(){return rs},get WyToast(){return Fs},get WyToasts(){return ww},get WyTyping(){return iy},get WyUsersSearch(){return Tn}},Symbol.toStringTag,{value:"Module"}));Ct.version="27.1.1";Ct.sourceName="@weavy/uikit-react";const rI=H.createContext(null);function kH(s,t=[]){var l,c,h,u,f;const[i,n]=H.useState(),r={...s,cloudFilePickerUrl:(l=s.cloudFilePickerUrl)==null?void 0:l.toString(),locales:H.useMemo(()=>s.locales,[(c=s.locales)==null?void 0:c.length]),tokenUrl:(h=s.tokenUrl)==null?void 0:h.toString(),tokenFactory:H.useMemo(()=>s.tokenFactory,[(u=s.tokenFactory)==null?void 0:u.toString(),...t]),url:(f=s.url)==null?void 0:f.toString()},[a,o]=H.useState(r);return H.useEffect(()=>{if(!i){const w=(Zi==null?void 0:Zi.value)??new wt(r);n(w)}},[]),H.useEffect(()=>{if(i&&!i.isDestroyed){const y={};Object.entries(r).forEach(([w,g])=>{g!==a[w]&&Object.assign(y,{[w]:g})}),Object.keys(y).length&&(o(r),Object.assign(i,y))}},[r]),i}d(kH,"useWeavy");const aI=Promise.resolve(),fP=class fP{constructor(t,i){this.o=[],this.t=!0,this.i=!1,this.l=t,this.h=i,this.u=new Promise((n,r)=>{this.p=n})}addController(t){this.o.push(t)}removeController(t){var i;(i=this.o)==null||i.splice(this.o.indexOf(t)>>>0,1)}requestUpdate(){this.t||(this.t=!0,aI.then(()=>this.h(++this.l)))}get updateComplete(){return this.u}m(){this.i=!0,this.o.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}_(){this.i=!1,this.o.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}v(){this.o.forEach(t=>{var i;return(i=t.hostUpdate)==null?void 0:i.call(t)})}C(){this.t=!1;const t=this.p;this.u=new Promise((i,n)=>{this.p=i}),this.o.forEach(i=>{var n;return(n=i.hostUpdated)==null?void 0:n.call(i)}),t(this.t)}};d(fP,"s");let Ux=fP;const SH=d((s,t)=>{const{useState:i,useLayoutEffect:n}=s,[r,a]=i(0);let o=!1;const[l]=i(()=>{const c=new Ux(r,a),h=t(c);return c.M=h,c.m(),o=!0,aI.then(()=>{o&&c._()}),c});return l.t=!0,n(()=>(o=!1,l.i||l.m(),()=>l._()),[]),n(()=>l.C()),l.v(),l.M},"e$2");function oI(s,t){var a;const n=(d(o=>!!o&&o.current!==void 0,"isRef")(s)?s.current:s)||void 0,r=SH(H,o=>new aj(o,t??zt,n));return H.useEffect(()=>{n&&(r.ref=n)},[r,n]),(a=r.context)==null?void 0:a.value}d(oI,"useWeavyContext");var lI=(s=>(s.Attachments="attachments",s.Bots="bots",s.CloudFiles="cloud_files",s.ContextData="context_data",s.Comments="comments",s.Embeds="embeds",s.GoogleMeet="google_meet",s.Meetings="meetings",s.Mentions="mentions",s.MicrosoftTeams="microsoft_teams",s.Polls="polls",s.Previews="previews",s.Reactions="reactions",s.Receipts="receipts",s.Thumbnails="thumbnails",s.Typing="typing",s.Versions="versions",s.WebDAV="web_dav",s.ZoomMeetings="zoom_meetings",s))(lI||{});const PH=new Set(["children","localName","ref","style","className"]),c3=new WeakMap,h3=d((s,t,i,n,r)=>{const a=r==null?void 0:r[t];a===void 0?(s[t]=i,i==null&&t in HTMLElement.prototype&&s.removeAttribute(t)):i!==n&&((o,l,c)=>{let h=c3.get(o);h===void 0&&c3.set(o,h=new Map);let u=h.get(l);c!==void 0?u===void 0?(h.set(l,u={handleEvent:c}),o.addEventListener(l,u)):u.handleEvent=c:u!==void 0&&(h.delete(l),o.removeEventListener(l,u))})(s,a,i)},"t"),ee=d(({react:s,tagName:t,elementClass:i,events:n,displayName:r})=>{const a=new Set(Object.keys(n??{})),o=s.forwardRef((l,c)=>{const h=s.useRef(new Map),u=s.useRef(null),f={},y={};for(const[w,g]of Object.entries(l))PH.has(w)?f[w==="className"?"class":w]=g:a.has(w)||w in i.prototype?y[w]=g:f[w]=g;return s.useLayoutEffect(()=>{if(u.current===null)return;const w=new Map;for(const g in y)h3(u.current,g,l[g],h.current.get(g),n),h.current.delete(g),w.set(g,l[g]);for(const[g,O]of h.current)h3(u.current,g,void 0,O,n);h.current=w}),s.useLayoutEffect(()=>{var w;(w=u.current)==null||w.removeAttribute("defer-hydration")},[]),f.suppressHydrationWarning=!0,s.createElement(t,{...f,ref:s.useCallback(w=>{u.current=w,typeof c=="function"?c(w):c!==null&&(c.current=w)},[c])})});return o.displayName=r??i.name,o},"o"),CH=ee({react:H,tagName:l_,elementClass:fw,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),QH=ee({react:H,tagName:c_,elementClass:yw,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),MH=ee({react:H,tagName:PE,elementClass:Uo,events:{onWyApp:"wy-app"}}),TH=ee({react:H,tagName:kE,elementClass:ut,events:{onWyNotifications:"wy-notifications"}});function RH({children:s,...t}){const i=H.useRef(null),n=oI(i.current);return H.createElement(TH,{ref:i,...t},H.createElement(rI.Provider,{value:n??null},s))}d(RH,"WyContext");const AH=ee({react:H,tagName:d_,elementClass:Jo,events:{onWyApp:"wy-app",onWyMessage:"wy-message",onWyPreviewOpen:"wy-preview-open"}}),EH=ee({react:H,tagName:T_,elementClass:aa,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),LH=ee({react:H,tagName:W_,elementClass:la,events:{onWyPreviewOpen:"wy-preview-open"}}),zH=ee({react:H,tagName:q_,elementClass:mw,events:{onWyApp:"wy-app",onWyLink:"wy-link"}}),_H=ee({react:H,tagName:B_,elementClass:us,events:{onWyApp:"wy-app",onWyLink:"wy-link",onWyNotification:"wy-notification"}}),IH=ee({react:H,tagName:sI,elementClass:vw,events:{onWyApp:"wy-app",onWyPreviewOpen:"wy-preview-open"}}),ZH=ee({react:H,tagName:"wy-attachment",elementClass:le.WyAttachment}),WH=ee({react:H,tagName:"wy-attachments-list",elementClass:le.WyAttachmentsList,events:{onFileOpen:"file-open"}}),VH=ee({react:H,tagName:"wy-avatar",elementClass:le.WyAvatar}),DH=ee({react:H,tagName:"wy-blob-upload",elementClass:le.WyBlobUpload}),qH=ee({react:H,tagName:"wy-button",elementClass:le.WyButton}),UH=ee({react:H,tagName:"wy-buttons",elementClass:le.WyButtons}),jH=ee({react:H,tagName:"wy-cloud-files",elementClass:le.WyCloudFiles,events:{onExternalBlobs:"external-blobs",onReleaseFocus:"release-focus"}}),BH=ee({react:H,tagName:"wy-comment-list",elementClass:le.WyCommentList}),FH=ee({react:H,tagName:"wy-comment",elementClass:le.WyComment,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),XH=ee({react:H,tagName:"wy-comment-view",elementClass:le.WyCommentView,events:{onVote:"vote",onTrash:"trash",onEdit:"edit"}}),NH=ee({react:H,tagName:"wy-comment-edit",elementClass:le.WyCommentEdit,events:{onEdit:"edit"}}),HH=ee({react:H,tagName:"wy-comment-editor",elementClass:le.WyCommentEditor,events:{onSubmit:"submit"}}),YH=ee({react:H,tagName:"wy-comment-trashed",elementClass:le.WyCommentTrashed,events:{onRestore:"restore"}}),GH=ee({react:H,tagName:"wy-conversation",elementClass:le.WyConversation,events:{onReleaseFocus:"release-focus"}}),KH=ee({react:H,tagName:"wy-conversation-appbar",elementClass:le.WyConversationAppbar,events:{onReleaseFocus:"release-focus"}}),JH=ee({react:H,tagName:"wy-conversation-new",elementClass:le.WyConversationNew,events:{onReleaseFocus:"release-focus"}}),eY=ee({react:H,tagName:"wy-conversation-list",elementClass:le.WyConversationList,events:{onConversationSelected:"conversation-selected"}}),tY=ee({react:H,tagName:"wy-conversation-list-item",elementClass:le.WyConversationListItem,events:{onRefetch:"refetch",onSelected:"selected",onStar:"star",onPin:"pin",onMark:"mark",onLeave:"leave"}}),iY=ee({react:H,tagName:"wy-dropdown",elementClass:le.WyDropdown}),nY=ee({react:H,tagName:"wy-dropdown-item",elementClass:le.WyDropdownItem}),sY=ee({react:H,tagName:"wy-dropdown-option",elementClass:le.WyDropdownOption}),rY=ee({react:H,tagName:"wy-dropdown-divider",elementClass:le.WyDropdownDivider}),aY=ee({react:H,tagName:"wy-editor",elementClass:le.WyEditor,events:{onSubmit:"submit"}}),oY=ee({react:H,tagName:"wy-embed",elementClass:le.WyEmbed,events:{onEmbedRemove:"embed-remove",onEmbedSwap:"embed-swap"}}),lY=ee({react:H,tagName:"wy-empty",elementClass:le.WyEmpty}),cY=ee({react:H,tagName:"wy-file-item",elementClass:le.WyFileItem,events:{onEditName:"edit-name",onRename:"rename",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever",onSubscribe:"subscribe"}}),hY=ee({react:H,tagName:"wy-file-menu",elementClass:le.WyFileMenu,events:{onEditName:"edit-name",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever"}}),dY=ee({react:H,tagName:"wy-file-versions",elementClass:le.WyFileVersions,events:{onFileVersionSelect:"file-version-select"}}),uY=ee({react:H,tagName:"wy-files-appbar",elementClass:le.WyFilesAppbar,events:{onReleaseFocus:"release-focus",onUploadFiles:"upload-files",onExternalBlobs:"external-blobs",onCreateFiles:"create-files",onOrder:"order",onView:"view",onShowTrashed:"show-trashed",onSubscribe:"subscribe"}}),pY=ee({react:H,tagName:"wy-files-list",elementClass:le.WyFilesList,events:{onFileOpen:"file-open",onOrder:"order",onEditName:"edit-name",onRename:"rename",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever",onSubscribe:"subscribe"}}),fY=ee({react:H,tagName:"wy-icon",elementClass:le.WyIcon}),yY=ee({react:H,tagName:"wy-image-grid",elementClass:le.WyImageGrid,events:{onFileOpen:"file-open"}}),mY=ee({react:H,tagName:"wy-meeting-card",elementClass:le.WyMeetingCard}),wY=ee({react:H,tagName:"wy-message",elementClass:le.WyMessage}),gY=ee({react:H,tagName:"wy-messages",elementClass:le.WyMessages,events:{onScrollToBottom:"scroll-to-bottom"}}),vY=ee({react:H,tagName:"wy-message-editor",elementClass:le.WyMessageEditor,events:{onSubmit:"submit"}}),bY=ee({react:H,tagName:"wy-message-typing",elementClass:le.WyMessageTyping}),OY=ee({react:H,tagName:"wy-messenger-badge",elementClass:le.WyMessengerBadge}),$Y=ee({react:H,tagName:"wy-notification-badge",elementClass:le.WyNotificationBadge}),xY=ee({react:H,tagName:"wy-notification-button-list",elementClass:le.WyNotificationButtonList}),kY=ee({react:H,tagName:"wy-notification-list",elementClass:le.WyNotificationList}),SY=ee({react:H,tagName:"wy-notification-list-item",elementClass:le.WyNotificationListItem}),PY=ee({react:H,tagName:"wy-overlay",elementClass:le.WyOverlay,events:{onReleaseFocus:"release-focus",onClose:"close"}}),CY=ee({react:H,tagName:"wy-pdf-viewer",elementClass:le.WyPdfViewer}),QY=ee({react:H,tagName:"wy-poll",elementClass:le.WyPoll,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),MY=ee({react:H,tagName:"wy-poll-option",elementClass:le.WyPollOption,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),TY=ee({react:H,tagName:"wy-post",elementClass:le.WyPost,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),RY=ee({react:H,tagName:"wy-post-view",elementClass:le.WyPostView,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onEdit:"edit"}}),AY=ee({react:H,tagName:"wy-post-edit",elementClass:le.WyPostEdit,events:{onEdit:"edit"}}),EY=ee({react:H,tagName:"wy-post-trashed",elementClass:le.WyPostTrashed,events:{onRestore:"restore"}}),LY=ee({react:H,tagName:"wy-presence",elementClass:le.WyPresence}),zY=ee({react:H,tagName:"wy-preview",elementClass:le.WyPreview,events:{onReleaseFocus:"release-focus",onWyPreviewOpen:"wy-preview-open",onWyPreviewClose:"wy-preview-close"}}),_Y=ee({react:H,tagName:"wy-preview-item",elementClass:le.WyPreviewItem}),IY=ee({react:H,tagName:"wy-preview-embed",elementClass:le.WyPreviewEmbed}),ZY=ee({react:H,tagName:"wy-preview-icon",elementClass:le.WyPreviewIcon}),WY=ee({react:H,tagName:"wy-preview-image",elementClass:le.WyPreviewImage}),VY=ee({react:H,tagName:"wy-preview-media",elementClass:le.WyPreviewMedia}),DY=ee({react:H,tagName:"wy-preview-text",elementClass:le.WyPreviewText}),qY=ee({react:H,tagName:"wy-reactions",elementClass:le.WyReactions,events:{onReleaseFocus:"release-focus"}}),UY=ee({react:H,tagName:"wy-reaction-item",elementClass:le.WyReactionItem}),jY=ee({react:H,tagName:"wy-sheet",elementClass:le.WySheet,events:{onReleaseFocus:"release-focus",onClose:"close"}}),BY=ee({react:H,tagName:"wy-skeleton",elementClass:le.WySkeleton}),FY=ee({react:H,tagName:"wy-spinner",elementClass:le.WySpinner}),XY=ee({react:H,tagName:"wy-typing",elementClass:le.WyTyping}),NY=ee({react:H,tagName:"wy-users-search",elementClass:le.WyUsersSearch,events:{onSubmit:"submit"}}),HY=Object.freeze(Object.defineProperty({__proto__:null,WyAttachment:ZH,WyAttachmentsList:WH,WyAvatar:VH,WyBlobUpload:DH,WyButton:qH,WyButtons:UH,WyCloudFiles:jH,WyComment:FH,WyCommentEdit:NH,WyCommentEditor:HH,WyCommentList:BH,WyCommentTrashed:YH,WyCommentView:XH,WyConversation:GH,WyConversationAppbar:KH,WyConversationList:eY,WyConversationListItem:tY,WyConversationNew:JH,WyDropdown:iY,WyDropdownDivider:rY,WyDropdownItem:nY,WyDropdownOption:sY,WyEditor:aY,WyEmbed:oY,WyEmpty:lY,WyFileItem:cY,WyFileMenu:hY,WyFileVersions:dY,WyFilesAppbar:uY,WyFilesList:pY,WyIcon:fY,WyImageGrid:yY,WyMeetingCard:mY,WyMessage:wY,WyMessageEditor:vY,WyMessageTyping:bY,WyMessages:gY,WyMessengerBadge:OY,WyNotificationBadge:$Y,WyNotificationButtonList:xY,WyNotificationList:kY,WyNotificationListitem:SY,WyOverlay:PY,WyPdfViewer:CY,WyPoll:QY,WyPollOption:MY,WyPost:TY,WyPostEdit:AY,WyPostTrashed:EY,WyPostView:RY,WyPresence:LY,WyPreview:zY,WyPreviewEmbed:IY,WyPreviewIcon:ZY,WyPreviewImage:WY,WyPreviewItem:_Y,WyPreviewMedia:VY,WyPreviewText:DY,WyReactionItem:UY,WyReactions:qY,WySheet:jY,WySkeleton:BY,WySpinner:FY,WyTyping:XY,WyUsersSearch:NY},Symbol.toStringTag,{value:"Module"}));exports.AppTypeGuids=dS;exports.AppTypeStrings=$E;exports.Feature=lI;exports.MessengerTypes=HN;exports.Weavy=wt;exports.WeavyComponents=HY;exports.WeavyContext=rI;exports.WyChat=CH;exports.WyComments=QH;exports.WyComponent=MH;exports.WyContext=RH;exports.WyCopilot=AH;exports.WyFiles=EH;exports.WyMessenger=LH;exports.WyNotificationToasts=_H;exports.WyNotifications=zH;exports.WyPosts=IH;exports.useWeavy=kH;exports.useWeavyContext=oI;
|