@weavy/uikit-react 26.0.2 → 26.0.3
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 +8 -0
- package/dist/weavy.bundle.js +4 -4
- package/dist/weavy.cjs +4 -4
- package/dist/weavy.es5.esm.js +1 -1
- package/dist/weavy.es5.umd.cjs +1 -1
- package/dist/weavy.mjs +17 -10
- package/dist/weavy.umd.cjs +38 -38
- package/package.json +2 -2
package/dist/weavy.cjs
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}`,{label:"class",detail:"definition",type:"keyword"}),oi('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),oi('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],_Z=tT.concat([oi("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),oi("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),oi("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),XP=new w8,iT=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function ql(s){return(t,i)=>{let n=t.node.getChild("VariableDefinition");return n&&i(n,s),!0}}u(ql,"lr");m(ql,"defID");const LZ=["FunctionDeclaration"],IZ={FunctionDeclaration:ql("function"),ClassDeclaration:ql("class"),ClassExpression:m(()=>!0,"ClassExpression"),EnumDeclaration:ql("constant"),TypeAliasDeclaration:ql("type"),NamespaceDeclaration:ql("namespace"),VariableDefinition(s,t){s.matchContext(LZ)||t(s,"variable")},TypeDefinition(s,t){t(s,"type")},__proto__:null};function bk(s,t){let i=XP.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 u(a,"s"),m(a,"def"),t.cursor(Be.IncludeAnonymous).iterate(o=>{if(r)r=!1;else if(o.name){let l=IZ[o.name];if(l&&l(o,a)||iT.has(o.name))return!1}else if(o.to-o.from>8192){for(let l of bk(s,o.node))n.push(l);return!1}}),XP.set(t,n),n}u(bk,"om$1");m(bk,"getScope");const e1=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,$k=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function nT(s){let t=st(s.state).resolveInner(s.pos,-1);if($k.indexOf(t.name)>-1)return null;let i=t.name=="VariableName"||t.to-t.from<20&&e1.test(s.state.sliceDoc(t.from,t.to));if(!i&&!s.explicit)return null;let n=[];for(let r=t;r;r=r.parent)iT.has(r.name)&&(n=n.concat(bk(s.state.doc,r)));return{options:n,from:i?t.from:s.pos,validFor:e1}}u(nT,"lm$1");m(nT,"localCompletionSource");function tg(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}}u(tg,"qo$1");m(tg,"pathFor");function sT(s){let t=m(n=>s.state.doc.sliceString(n.from,n.to),"read"),i=st(s.state).resolveInner(s.pos,-1);return i.name=="PropertyName"?tg(t,i.parent,t(i)):(i.name=="."||i.name=="?.")&&i.parent.name=="MemberExpression"?tg(t,i.parent,""):$k.indexOf(i.name)>-1?null:i.name=="VariableName"||i.to-i.from<20&&e1.test(t(i))?{path:[],name:t(i)}:i.name=="MemberExpression"?tg(t,i,""):s.explicit?{path:[],name:""}:null}u(sT,"am$1");m(sT,"completionPath");function rT(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}}u(rT,"XS");m(rT,"enumeratePropertyCompletions");function WZ(s){let t=new Map;return i=>{let n=sT(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=rT(r,!n.path.length)),{from:i.pos-n.name.length,options:a,validFor:e1}}}u(WZ,"IS");m(WZ,"scopeCompletionSource");const ln=Vx.define({name:"javascript",parser:zZ.configure({props:[_f.add({IfStatement:jy({except:/^\s*({|else\b)/}),TryStatement:jy({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:EI,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:e6({closing:"}"}),ArrowFunction:m(s=>s.baseIndent+s.unit,"ArrowFunction"),"TemplateString BlockComment":m(()=>null,"TemplateString BlockComment"),"Statement Property":jy({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}}),Fm.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Ux,BlockComment(s){return{from:s.from+2,to:s.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),aT={test:m(s=>/^JSX/.test(s.name),"test"),facet:Xm({commentTokens:{block:{open:"{/*",close:"*/}"}}})},oT=ln.configure({dialect:"ts"},"typescript"),lT=ln.configure({dialect:"jsx",props:[Wx.add(s=>s.isTop?[aT]:void 0)]}),cT=ln.configure({dialect:"jsx ts",props:[Wx.add(s=>s.isTop?[aT]:void 0)]},"typescript");let hT=m(s=>({label:s,type:"keyword"}),"kwCompletion");const dT="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(hT),VZ=dT.concat(["declare","implements","private","protected","public"].map(hT));function uT(s={}){let t=s.jsx?s.typescript?cT:lT:s.typescript?oT:ln,i=s.typescript?_Z.concat(VZ):tT.concat(dT);return new uf(t,[ln.data.of({autocomplete:O6($k,Hx(i))}),ln.data.of({autocomplete:nT}),s.jsx?qZ:[]])}u(uT,"um$1");m(uT,"javascript");function pT(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}}u(pT,"qS");m(pT,"findOpenTag");function F2(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""}u(F2,"bd$1");m(F2,"elementName$1");const ZZ=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),qZ=xe.inputHandler.of((s,t,i,n,r)=>{if((ZZ?s.composing:s.compositionStarted)||s.state.readOnly||t!=i||n!=">"&&n!="/"||!ln.isActiveAt(s.state,t,-1))return!1;let a=r(),{state:o}=a,l=o.changeByRange(c=>{var h;let{head:d}=c,f=st(o).resolveInner(d-1,-1),y;if(f.name=="JSXStartTag"&&(f=f.parent),!(o.doc.sliceString(d-1,d)!=n||f.name=="JSXAttributeValue"&&f.to>d)){if(n==">"&&f.name=="JSXFragmentTag")return{range:c,changes:{from:d,insert:"</>"}};if(n=="/"&&f.name=="JSXStartCloseTag"){let w=f.parent,g=w.parent;if(g&&w.from==d-2&&((y=F2(o.doc,g.firstChild,d))||((h=g.firstChild)===null||h===void 0?void 0:h.name)=="JSXFragmentTag")){let b=`${y}>`;return{range:J.cursor(d+b.length,-1),changes:{from:d,insert:b}}}}else if(n==">"){let w=pT(f);if(w&&w.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(d,d+2))&&(y=F2(o.doc,w,d)))return{range:c,changes:{from:d,insert:`</${y}>`}}}}return{range:c}});return l.changes.empty?!1:(s.dispatch([a,o.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function DZ(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 ln.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(fT(h,n.doc,c))}return r}}u(DZ,"DS");m(DZ,"esLint");function H2(s,t,i,n){return i.line(s+n.line).from+t+(s==1?n.col-1:-1)}u(H2,"yd");m(H2,"mapPos");function fT(s,t,i){let n=H2(s.line,s.column,t,i),r={from:n,to:s.endLine!=null&&s.endColumn!=1?H2(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,d){h.dispatch({changes:{from:d+l,to:d+c,insert:o},scrollIntoView:!0})}}]}return r}u(fT,"BS");m(fT,"translateDiagnostic");const Gf=["_blank","_self","_top","_parent"],sO=["ascii","utf-8","utf-16","latin1","latin1"],rO=["get","post","put","delete"],aO=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Pi=["true","false"],ue={},UZ={a:{attrs:{href:null,ping:null,type:null,media:null,target:Gf,hreflang:null}},abbr:ue,address:ue,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:ue,aside:ue,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:ue,base:{attrs:{href:null,target:Gf}},bdi:ue,bdo:ue,blockquote:{attrs:{cite:null}},body:ue,br:ue,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:aO,formmethod:rO,formnovalidate:["novalidate"],formtarget:Gf,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:ue,center:ue,cite:ue,code:ue,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:ue,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:ue,div:ue,dl:ue,dt:ue,em:ue,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:ue,figure:ue,footer:ue,form:{attrs:{action:null,name:null,"accept-charset":sO,autocomplete:["on","off"],enctype:aO,method:rO,novalidate:["novalidate"],target:Gf}},h1:ue,h2:ue,h3:ue,h4:ue,h5:ue,h6:ue,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:ue,hgroup:ue,hr:ue,html:{attrs:{manifest:null}},i:ue,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:aO,formmethod:rO,formnovalidate:["novalidate"],formtarget:Gf,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:ue,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:ue,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:ue,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:sO,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:ue,noscript:ue,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:ue,param:{attrs:{name:null,value:null}},pre:ue,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:ue,rt:ue,ruby:ue,samp:ue,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:sO}},section:ue,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:ue,source:{attrs:{src:null,type:null,media:null}},span:ue,strong:ue,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:ue,summary:ue,sup:ue,table:ue,tbody:ue,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:ue,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:ue,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:ue,time:{attrs:{datetime:null}},title:ue,tr:ue,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:ue,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:ue},yT={accesskey:null,class:null,contenteditable:Pi,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:Pi,autocorrect:Pi,autocapitalize:Pi,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":Pi,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Pi,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Pi,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Pi,"aria-hidden":Pi,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Pi,"aria-multiselectable":Pi,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Pi,"aria-relevant":null,"aria-required":Pi,"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},mT="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 mT)yT[s]=null;var md;const wT=(md=class{constructor(t,i){this.tags=Object.assign(Object.assign({},UZ),t),this.globalAttrs=Object.assign(Object.assign({},yT),i),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}},u(md,"Pc"),md);m(wT,"Schema");let fm=wT;fm.default=new fm;function bo(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)):""}u(bo,"Hi$1");m(bo,"elementName");function $o(s,t=!1){for(;s;s=s.parent)if(s.name=="Element")if(t)t=!1;else return s;return null}u($o,"Ki$1");m($o,"findParentElement");function xk(s,t,i){let n=i.tags[bo(s,$o(t))];return(n==null?void 0:n.children)||i.allTags}u(xk,"mm$1");m(xk,"allowedChildren");function tv(s,t){let i=[];for(let n=$o(t);n&&!n.type.isTop;n=$o(n.parent)){let r=bo(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}u(tv,"Qh$1");m(tv,"openTags");const gT=/^[:\-\.\w\u00b7-\uffff]*$/;function Y2(s,t,i,n,r){let a=/\s*>/.test(s.sliceDoc(r,r+5))?"":">",o=$o(i,!0);return{from:n,to:r,options:xk(s.doc,o,t).map(l=>({label:l,type:"type"})).concat(tv(s.doc,i).map((l,c)=>({label:"/"+l,apply:"/"+l+a,type:"type",boost:99-c}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}u(Y2,"Sd$1");m(Y2,"completeTag");function G2(s,t,i,n){let r=/\s*>/.test(s.sliceDoc(n,n+5))?"":">";return{from:i,to:n,options:tv(s.doc,t).map((a,o)=>({label:a,apply:a+r,type:"type",boost:99-o})),validFor:gT}}u(G2,"Pd$1");m(G2,"completeCloseTag");function vT(s,t,i,n){let r=[],a=0;for(let o of xk(s.doc,i,t))r.push({label:"<"+o,type:"type"});for(let o of tv(s.doc,i))r.push({label:"</"+o+">",type:"type",boost:99-a++});return{from:n,to:n,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}u(vT,"GS");m(vT,"completeStartTag");function OT(s,t,i,n,r){let a=$o(i),o=a?t.tags[bo(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:gT}}u(OT,"FS");m(OT,"completeAttrName");function bT(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),d=t.globalAttrs[h];if(!d){let f=$o(i),y=f?t.tags[bo(s.doc,f)]:null;d=(y==null?void 0:y.attrs)&&y.attrs[h]}if(d){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 d)l.push({label:g,apply:y+g+w,type:"constant"})}}return{from:n,to:r,options:l,validFor:c}}u(bT,"HS");m(bT,"completeAttrValue");function kk(s,t){let{state:i,pos:n}=t,r=st(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)?G2(i,r,r.from,n):Y2(i,s,r,r.from,n):r.name=="StartTag"?Y2(i,s,r,n,n):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?G2(i,r,n,n):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?OT(i,s,r,r.name=="AttributeName"?r.from:n,n):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?bT(i,s,r,r.name=="Is"?n:r.from,n):t.explicit&&(a.name=="Element"||a.name=="Text"||a.name=="Document")?vT(i,s,r,n):null}u(kk,"bm$1");m(kk,"htmlCompletionFor");function $T(s){return kk(fm.default,s)}u($T,"ym$1");m($T,"htmlCompletionSource");function xT(s){let{extraTags:t,extraGlobalAttributes:i}=s,n=i||t?new fm(t,i):fm.default;return r=>kk(n,r)}u(xT,"Sm$1");m(xT,"htmlCompletionSourceWith");const NZ=ln.parser.configure({top:"SingleExpression"}),kT=[{tag:"script",attrs:m(s=>s.type=="text/typescript"||s.lang=="ts","attrs"),parser:oT.parser},{tag:"script",attrs:m(s=>s.type=="text/babel"||s.type=="text/jsx","attrs"),parser:lT.parser},{tag:"script",attrs:m(s=>s.type=="text/typescript-jsx","attrs"),parser:cT.parser},{tag:"script",attrs(s){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(s.type)},parser:NZ},{tag:"script",attrs(s){return!s.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(s.type)},parser:ln.parser},{tag:"style",attrs(s){return(!s.lang||s.lang=="css")&&(!s.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(s.type))},parser:Jg.parser}],ST=[{name:"style",parser:Jg.parser.configure({top:"Styles"})}].concat(mT.map(s=>({name:s,parser:ln.parser}))),PT=Vx.define({name:"html",parser:_V.configure({props:[_f.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}}),Fm.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}}}),r6.add({"OpenTag CloseTag":m(s=>s.getChild("TagName"),"OpenTag CloseTag")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),ig=PT.configure({wrap:gk(kT,ST)});function CT(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=gk((s.nestedLanguages||[]).concat(kT),(s.nestedAttributes||[]).concat(ST)));let n=i?PT.configure({wrap:i,dialect:t}):t?ig.configure({dialect:t}):ig;return new uf(n,[ig.data.of({autocomplete:xT(s)}),s.autoCloseTags!==!1?BZ:[],uT().support,JQ().support])}u(CT,"xm$1");m(CT,"html");const FP=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),BZ=xe.inputHandler.of((s,t,i,n,r)=>{if(s.composing||s.state.readOnly||t!=i||n!=">"&&n!="/"||!ig.isActiveAt(s.state,t,-1))return!1;let a=r(),{state:o}=a,l=o.changeByRange(c=>{var h,d,f;let y=o.doc.sliceString(c.from-1,c.to)==n,{head:w}=c,g=st(o).resolveInner(w,-1),b;if(y&&n==">"&&g.name=="EndTag"){let k=g.parent;if(((d=(h=k.parent)===null||h===void 0?void 0:h.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(b=bo(o.doc,k.parent,w))&&!FP.has(b)){let $=w+(o.doc.sliceString(w,w+1)===">"?1:0),C=`</${b}>`;return{range:c,changes:{from:w,to:$,insert:C}}}}else if(y&&n=="/"&&g.name=="IncompleteCloseTag"){let k=g.parent;if(g.from==w-2&&((f=k.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(b=bo(o.doc,k,w))&&!FP.has(b)){let $=w+(o.doc.sliceString(w,w+1)===">"?1:0),C=`${b}>`;return{range:J.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)}),QT=Xm({commentTokens:{block:{open:"<!--",close:"-->"}}}),TT=new be,RT=_W.configure({props:[Fm.add(s=>!s.is("Block")||s.is("Document")||t1(s)!=null||MT(s)?void 0:(t,i)=>({from:i.doc.lineAt(t.from).to,to:t.to})),TT.add(t1),_f.add({Document:m(()=>null,"Document")}),Js.add({Document:QT})]});function t1(s){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(s.name);return t?+t[1]:void 0}u(t1,"ja$1");m(t1,"isHeading");function MT(s){return s.name=="OrderedList"||s.name=="BulletList"}u(MT,"eP");m(MT,"isList");function AT(s,t){let i=s;for(;;){let n=i.nextSibling,r;if(!n||(r=t1(n.type))!=null&&r<=t)break;i=n}return i.to}u(AT,"tP");m(AT,"findSectionEnd");const jZ=zI.of((s,t,i)=>{for(let n=st(s).resolveInner(i,-1);n&&!(n.from<t);n=n.parent){let r=n.type.prop(TT);if(r==null)continue;let a=AT(n,r);if(a>i)return{from:i,to:a}}return null});function iv(s){return new Ei(QT,s,[jZ],"markdown")}u(iv,"Rh$1");m(iv,"mkLang");const XZ=iv(RT),FZ=RT.configure([UW,BW,NW,jW,{props:[Fm.add({Table:m((s,t)=>({from:t.doc.lineAt(s.from).to,to:s.to}),"Table")})]}]),ET=iv(FZ);function zT(s,t){return i=>{if(i&&s){let n=null;if(i=/\S*/.exec(i)[0],typeof s=="function"?n=s(i):n=gP.matchLanguageName(s,i,!0),n instanceof gP)return n.support?n.support.language.parser:Ug.getSkippingParser(n.load());if(n)return n.parser}return t?t.parser:null}}u(zT,"nP");m(zT,"getCodeParser");var wd;const _T=(wd=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(+Pk(this.item,t)[2]+i):"";return this.spaceBefore+n+this.type+this.spaceAfter}},u(wd,"wc"),wd);m(_T,"Context");let oO=_T;function Sk(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 oO(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],d=o[0].length;h.length>=4&&(h=h.slice(0,h.length-4),d-=4),n.push(new oO(a.parent,c,c+d,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],d=o[0].length;h.length>4&&(h=h.slice(0,h.length-4),d-=4);let f=o[2];o[3]&&(f+=o[3].replace(/[xX]/," ")),n.push(new oO(a.parent,c,c+d,o[1],h,f,a))}}return n}u(Sk,"Tm$1");m(Sk,"getContext");function Pk(s,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(s.from,s.from+10))}u(Pk,"Am$1");m(Pk,"itemNumber");function ng(s,t,i,n=0){for(let r=-1,a=s;;){if(a.name=="ListItem"){let l=Pk(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}}u(ng,"No$1");m(ng,"renumberList");function nv(s,t){let i=/^[ \t]*/.exec(s)[0].length;if(!i||t.facet(j1)!=" ")return s;let n=kr(s,4,i),r="";for(let a=n;a>0;)a>=4?(r+=" ",a-=4):(r+=" ",a--);return r+s.slice(i)}u(nv,"vh$1");m(nv,"normalizeIndent");const HZ=m(({state:s,dispatch:t})=>{let i=st(s),{doc:n}=s,r=null,a=s.changeByRange(o=>{if(!o.empty||!ET.isActiveAt(s,o.from,0))return r={range:o};let l=o.from,c=n.lineAt(l),h=Sk(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 d=h[h.length-1];if(d.to-d.spaceAfter.length>l-c.from)return r={range:o};let f=l>=d.to-d.spaceAfter.length&&!/\S/.test(c.text.slice(d.to));if(d.item&&f){let k=d.node.firstChild,$=d.node.getChild("ListItem","ListItem");if(k.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,E,A="";C&&C.item?(E=c.from+C.from,A=C.marker(n,1)):E=c.from+(C?C.to:0);let M=[{from:E,to:l,insert:A}];return d.node.name=="OrderedList"&&ng(d.item,n,M,-2),C&&C.node.name=="OrderedList"&&ng(C.item,n,M),{range:J.cursor(E+A.length),changes:M}}else{let C=J2(h,s,c);return{range:J.cursor(l+C.length+1),changes:{from:c.from,insert:C+s.lineBreak}}}}if(d.node.name=="Blockquote"&&f&&c.from){let k=n.lineAt(c.from-1),$=/>\s*$/.exec(k.text);if($&&$.index==d.from){let C=s.changes([{from:k.from+$.index,to:k.to},{from:c.from+d.from,to:c.to}]);return{range:o.map(C),changes:C}}}let y=[];d.node.name=="OrderedList"&&ng(d.item,n,y);let w=d.item&&d.item.from<c.from,g="";if(!w||/^[\s\d.)\-+*>]*/.exec(c.text)[0].length>=d.to)for(let k=0,$=h.length-1;k<=$;k++)g+=k==$&&!w?h[k].marker(n,1):h[k].blank(k<$?kr(c.text,4,h[k+1].from)-g.length:null);let b=l;for(;b>c.from&&/\s/.test(c.text.charAt(b-c.from-1));)b--;return g=nv(g,s),LT(d.node,s.doc)&&(g=J2(h,s,c)+s.lineBreak+g),y.push({from:b,to:l,insert:s.lineBreak+g}),{range:J.cursor(b+g.length+1),changes:y}});return r?!1:(t(s.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)},"insertNewlineContinueMarkup");function K2(s){return s.name=="QuoteMark"||s.name=="ListMark"}u(K2,"xd$1");m(K2,"isMark");function LT(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}u(LT,"sP");m(LT,"nonTightList");function J2(s,t,i){let n="";for(let r=0,a=s.length-2;r<=a;r++)n+=s[r].blank(r<a?kr(i.text,4,Math.min(i.text.length,s[r+1].from))-n.length:null,r<a);return nv(n,t)}u(J2,"Qd$1");m(J2,"blankLine");function IT(s,t){let i=s.resolveInner(t,-1),n=t;K2(i)&&(n=i.from,i=i.parent);for(let r;r=i.childBefore(n);)if(K2(r))n=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")i=r.lastChild,n=i.to;else break;return i}u(IT,"oP");m(IT,"contextNodeForDelete");const YZ=m(({state:s,dispatch:t})=>{let i=st(s),n=null,r=s.changeByRange(a=>{let o=a.from,{doc:l}=s;if(a.empty&&ET.isActiveAt(s,a.from)){let c=l.lineAt(o),h=Sk(IT(i,o),l);if(h.length){let d=h[h.length-1],f=d.to-d.spaceAfter.length+(d.spaceAfter?1:0);if(o-c.from>f&&!/\S/.test(c.text.slice(f,o-c.from)))return{range:J.cursor(c.from+f),changes:{from:c.from+f,to:o}};if(o-c.from==f&&(!d.item||c.from<=d.item.from||!/\S/.test(c.text.slice(0,d.to)))){let y=c.from+d.from;if(d.item&&d.node.from<d.item.from&&/\S/.test(c.text.slice(d.from,d.to))){let w=d.blank(kr(c.text,4,d.to)-kr(c.text,4,d.from));return y==c.from&&(w=nv(w,s)),{range:J.cursor(y+w.length),changes:{from:y,to:c.from+d.to,insert:w}}}if(y<o)return{range:J.cursor(y),changes:{from:y,to:o}}}}}return n={range:a}});return n?!1:(t(s.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)},"deleteMarkupBackward"),GZ=[{key:"Enter",run:HZ},{key:"Backspace",run:YZ}],WT=CT({matchClosingTags:!1});function KZ(s={}){let{codeLanguages:t,defaultCodeLanguage:i,addKeymap:n=!0,base:{parser:r}=XZ,completeHTMLTags:a=!0,htmlTagLanguage:o=WT}=s;if(!(r instanceof sQ))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 uf?(c.push(i.support),h=i.language):i&&(h=i);let d=t||h?zT(t,h):void 0;l.push(mQ({codeParser:d,htmlParser:o.language.parser})),n&&c.push(Io.high(q1.of(GZ)));let f=iv(r.configure(l));return a&&c.push(f.data.of({autocomplete:VT})),new uf(f,c)}u(KZ,"_m$1");m(KZ,"markdown");function VT(s){let{state:t,pos:i}=s,n=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(i-25,i));if(!n)return null;let r=st(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:ZT(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}u(VT,"lP");m(VT,"htmlTagCompletion");let lO=null;function ZT(){if(lO)return lO;let s=$T(new Fx(St.create({extensions:WT}),0,!0));return lO=s?s.options:[]}u(ZT,"aP");m(ZT,"htmlTagCompletions");function JZ(s){return new uf(ZI.define(s))}u(JZ,"w$2");m(JZ,"legacy");function eq(s){return import(new URL("./@codemirror/lang-sql/dist/index.js",typeof WEAVY_IMPORT_URL=="string"&&(!(typeof document>"u"?require("url").pathToFileURL(__filename).href:ye&&ye.tagName.toUpperCase()==="SCRIPT"&&ye.src||new URL("weavy.cjs",document.baseURI).href)||!new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:ye&&ye.tagName.toUpperCase()==="SCRIPT"&&ye.src||new URL("weavy.cjs",document.baseURI).href).href.startsWith(WEAVY_IMPORT_URL))?WEAVY_IMPORT_URL:typeof document>"u"?require("url").pathToFileURL(__filename).href:ye&&ye.tagName.toUpperCase()==="SCRIPT"&&ye.src||new URL("weavy.cjs",document.baseURI).href).href).then(t=>t.sql({dialect:t[s]}))}u(eq,"Ot$2");m(eq,"sql");function tq(s){const t=new Event("Weavy-SoftSubmit");return s.dom.dispatchEvent(t),!0}u(tq,"Mm$1");m(tq,"softSubmit");const HP=new dI({regexp:/(\[(.+?)\])(\(@u(\d+)\))/g,decoration:m(s=>Fe.replace({inclusive:!0,widget:new iq(s)}),"decoration")});var gd;const qT=(gd=class extends zf{constructor(t){super(),this.match=t}eq(t){return t.match[1]===this.match[1]}toDOM(){jt();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}},u(gd,"xc"),gd);m(qT,"MentionWidget");let iq=qT;Cs.fromClass(class{constructor(s){this.mentions=HP.createDeco(s)}update(s){this.mentions=HP.updateDeco(s,this.mentions)}},{decorations:m(s=>s.mentions,"decorations"),provide:m(s=>xe.atomicRanges.of(t=>{var i;return((i=t.plugin(s))==null?void 0:i.mentions)||Fe.none}),"provide")});function nq(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}}u(nq,"Th$1");m(nq,"command");function Ck(s,t){let i=s.languageDataAt("commentTokens",t);return i.length?i[0]:{}}u(Ck,"Ah$1");m(Ck,"getConfig");const Kf=50;function DT(s,{open:t,close:i},n,r){let a=s.sliceDoc(n-Kf,n),o=s.sliceDoc(r,r+Kf),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 d,f;r-n<=2*Kf?d=f=s.sliceDoc(n,r):(d=s.sliceDoc(n,n+Kf),f=s.sliceDoc(r-Kf,r));let y=/^\s*/.exec(d)[0].length,w=/\s*$/.exec(f)[0].length,g=f.length-w-i.length;return d.slice(y,y+t.length)==t&&f.slice(g,g+i.length)==i?{open:{pos:n+y+t.length,margin:/\s/.test(d.charAt(y+t.length))?1:0},close:{pos:r-w-i.length,margin:/\s/.test(f.charAt(g-1))?1:0}}:null}u(DT,"bP");m(DT,"findBlockComment");function sq(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}u(sq,"yP");m(sq,"selectedLineRanges");function rq(s,t,i=t.selection.ranges){let n=i.map(a=>Ck(t,a.from).block);if(!n.every(a=>a))return null;let r=i.map((a,o)=>DT(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:d}=l;a.push({from:h.pos-c.open.length,to:h.pos+h.margin},{from:d.pos-d.margin,to:d.pos+c.close.length})}return{changes:a}}return null}u(rq,"Ym$1");m(rq,"changeBlockComment");function aq(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=Ck(t,a).line;if(h){for(let d=a;d<=o;){let f=t.doc.lineAt(d);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})}d=f.to+1}if(c<1e9)for(let d=l;d<n.length;d++)n[d].indent<n[d].line.text.length&&(n[d].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:d,single:f}of n)(f||!d)&&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,d=h+c.length;o.text[d-o.from]==" "&&d++,a.push({from:h,to:d})}return{changes:a}}return null}u(aq,"SP");m(aq,"changeLineComment");const e$=zs.define(),oq=zs.define(),lq=we.define(),UT=we.define({combine(s){return tx(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")})}}),NT=Es.define({create(){return Xy.empty},update(s,t){let i=t.state.facet(UT),n=t.annotation(e$);if(n){let c=ws.fromTransaction(t,n.selection),h=n.side,d=h==0?s.undone:s.done;return c?d=ym(d,d.length,i.minDepth,c):d=Rk(d,t.startState.selection),new Xy(h==0?n.rest:d,h==0?d:n.rest)}let r=t.annotation(oq);if((r=="full"||r=="before")&&(s=s.isolate()),t.annotation(ui.addToHistory)===!1)return t.changes.empty?s:s.addMapping(t.changes.desc);let a=ws.fromTransaction(t),o=t.annotation(ui.time),l=t.annotation(ui.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 Xy(s.done.map(ws.fromJSON),s.undone.map(ws.fromJSON))}});function cq(s={}){return[NT,UT.of(s),xe.domEventHandlers({beforeinput(t,i){let n=t.inputType=="historyUndo"?hq:t.inputType=="historyRedo"?dq:null;return n?(t.preventDefault(),n(i)):!1}})]}u(cq,"xP");m(cq,"history");function Qk(s,t){return function({state:i,dispatch:n}){if(!t&&i.readOnly)return!1;let r=i.field(NT,!1);if(!r)return!1;let a=r.pop(s,i,t);return a?(n(a),!0):!1}}u(Qk,"go$1");m(Qk,"cmd");const hq=Qk(0,!1),dq=Qk(1,!1);var qn;const BT=(qn=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 qn(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 qn(t.changes&&dn.fromJSON(t.changes),[],t.mapped&&lc.fromJSON(t.mapped),t.startSelection&&J.fromJSON(t.startSelection),t.selectionsAfter.map(J.fromJSON))}static fromTransaction(t,i){let n=Ni;for(let r of t.startState.facet(lq)){let a=r(t);a.length&&(n=n.concat(a))}return!n.length&&t.changes.empty?null:new qn(t.changes.invert(t.startState.doc),n,void 0,i||t.startState.selection,Ni)}static selection(t){return new qn(void 0,Ni,void 0,void 0,t)}},u(qn,"Nt"),qn);m(BT,"HistEvent");let ws=BT;function ym(s,t,i,n){let r=t+1>i+20?t-i-1:0,a=s.slice(r,t);return a.push(n),a}u(ym,"Us$1");m(ym,"updateBranch");function jT(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++],d=i[c++];l>=h&&o<=d&&(n=!0)}}),n}u(jT,"RP");m(jT,"isAdjacent");function XT(s,t){return s.ranges.length==t.ranges.length&&s.ranges.filter((i,n)=>i.empty!=t.ranges[n].empty).length===0}u(XT,"$P");m(XT,"eqSelectionShape");function Tk(s,t){return s.length?t.length?s.concat(t):s:t}u(Tk,"Xm$1");m(Tk,"conc");const Ni=[],uq=200;function Rk(s,t){if(s.length){let i=s[s.length-1],n=i.selectionsAfter.slice(Math.max(0,i.selectionsAfter.length-uq));return n.length&&n[n.length-1].eq(t)?s:(n.push(t),ym(s,s.length-1,1e9,i.setSelAfter(n)))}else return[ws.selection([t])]}u(Rk,"Im$1");m(Rk,"addSelection");function FT(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}u(FT,"TP");m(FT,"popSelection");function sg(s,t){if(!s.length)return s;let i=s.length,n=Ni;for(;i;){let r=HT(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?[ws.selection(n)]:Ni}u(sg,"Fo$1");m(sg,"addMappingToBranch");function HT(s,t,i){let n=Tk(s.selectionsAfter.length?s.selectionsAfter.map(l=>l.map(t)):Ni,i);if(!s.changes)return ws.selection(n);let r=s.changes.map(t),a=t.mapDesc(s.changes,!0),o=s.mapped?s.mapped.composeDesc(a):a;return new ws(r,Ue.mapEffects(s.effects,t),o,s.startSelection.map(a),n)}u(HT,"AP");m(HT,"mapEvent");const pq=/^(input\.type|delete)($|\.)/;var Dn;const YT=(Dn=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 Dn(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||pq.test(n))&&(!l.selectionsAfter.length&&i-this.prevTime<r.newGroupDelay&&r.joinToEvent(a,jT(l.changes,t.changes))||n=="input.type.compose")?o=ym(o,o.length-1,r.minDepth,new ws(t.changes.compose(l.changes),Tk(Ue.mapEffects(t.effects,l.changes),l.effects),l.mapped,l.startSelection,Ni)):o=ym(o,o.length,r.minDepth,t),new Dn(o,Ni,i,n)}addSelection(t,i,n,r){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:Ni;return a.length>0&&i-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&XT(a[a.length-1],t)?this:new Dn(Rk(this.done,t),this.undone,i,n)}addMapping(t){return new Dn(sg(this.done,t),sg(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:e$.of({side:t,rest:FT(r),selection:o}),userEvent:t==0?"select.undo":"select.redo",scrollIntoView:!0});if(a.changes){let l=r.length==1?Ni:r.slice(0,r.length-1);return a.mapped&&(l=sg(l,a.mapped)),i.update({changes:a.changes,selection:a.startSelection,effects:a.effects,annotations:e$.of({side:t,rest:l,selection:o}),filter:!1,userEvent:t==0?"undo":"redo",scrollIntoView:!0})}else return null}},u(Dn,"Gt"),Dn);m(YT,"HistoryState");let Xy=YT;Xy.empty=new Xy(Ni,Ni);function Ym(s,t){return J.create(s.ranges.map(t),s.mainIndex)}u(Ym,"tr$1");m(Ym,"updateSel");function Gm(s,t){return s.update({selection:t,scrollIntoView:!0,userEvent:"select"})}u(Gm,"st$1");m(Gm,"setSel");function sv({state:s,dispatch:t},i){let n=Ym(s.selection,i);return n.eq(s.selection,!0)?!1:(t(Gm(s,n)),!0)}u(sv,"ze$2");m(sv,"moveSel");function Km(s,t){return J.cursor(t?s.to:s.from)}u(Km,"bo");m(Km,"rangeEnd");function fq(s,t){return sv(s,i=>i.empty?s.moveByChar(i,t):Km(i,t))}u(fq,"jm$1");m(fq,"cursorByChar");function yq(s){return s.textDirectionAt(s.state.selection.main.head)==vt.LTR}u(yq,"ae$2");m(yq,"ltrAtCursor");function mq(s,t){return sv(s,i=>i.empty?s.moveByGroup(i,t):Km(i,t))}u(mq,"Dm$1");m(mq,"cursorByGroup");function GT(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}u(GT,"_P");m(GT,"interestingNode");function wq(s,t,i){let n=st(s).resolveInner(t.head),r=i?be.closedBy:be.openedBy;for(let c=t.head;;){let h=i?n.childAfter(c):n.childBefore(c);if(!h)break;GT(s,h,r)?n=h:c=i?h.to:h.from}let a=n.type.prop(r),o,l;return a&&(o=i?xa(s,n.from,1):xa(s,n.to,-1))&&o.matched?l=i?o.end.to:o.end.from:l=i?n.to:n.from,J.cursor(l,i?-1:1)}u(wq,"yo$1");m(wq,"moveBySyntax");function gq(s,t){return sv(s,i=>{if(!i.empty)return Km(i,t);let n=s.moveVertically(i,t);return n.head!=i.head?n:s.moveToLineBoundary(i,t)})}u(gq,"Bm$1");m(gq,"cursorByLine");function Mk(s){let t=s.scrollDOM.clientHeight<s.scrollDOM.scrollHeight-2,i=0,n=0,r;if(t){for(let a of s.state.facet(xe.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)}}u(Mk,"Fm$1");m(Mk,"pageInfo");function vq(s,t){let i=Mk(s),{state:n}=s,r=Ym(n.selection,o=>o.empty?s.moveVertically(o,t,i.height):Km(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=xe.scrollIntoView(r.main.head,{y:"start",yMargin:o.top-c}))}return s.dispatch(Gm(n,r),{effects:a}),!0}u(vq,"Hm$1");m(vq,"cursorByPage");function Oq(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=J.cursor(n.from+a))}return r}u(Oq,"Ut$2");m(Oq,"moveByLineBoundary");function bq(s,t,i){let n=!1,r=Ym(s.selection,a=>{let o=xa(s,a.head,-1)||xa(s,a.head,1)||a.head>0&&xa(s,a.head-1,1)||a.head<s.doc.length&&xa(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 J.cursor(l)});return n?(t(Gm(s,r)),!0):!1}u(bq,"qP");m(bq,"toMatchingBracket");function Jm(s,t){let i=Ym(s.state.selection,n=>{let r=t(n);return J.range(n.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return i.eq(s.state.selection)?!1:(s.dispatch(Gm(s.state,i)),!0)}u(Jm,"Ye$2");m(Jm,"extendSel");function $q(s,t){return Jm(s,i=>s.moveByChar(i,t))}u($q,"Km$1");m($q,"selectByChar");function xq(s,t){return Jm(s,i=>s.moveByGroup(i,t))}u(xq,"tg$1");m(xq,"selectByGroup");function kq(s,t){return Jm(s,i=>s.moveVertically(i,t))}u(kq,"ig$1");m(kq,"selectByLine");function Sq(s,t){return Jm(s,i=>s.moveVertically(i,t,Mk(s).height))}u(Sq,"sg$1");m(Sq,"selectByPage");function Pq(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=Ty(s,c,!1)):c>o&&(i="delete.forward",c=Ty(s,c,!0)),o=Math.min(o,c),l=Math.max(l,c)}else o=Ty(s,o,!1),l=Ty(s,l,!0);return o==l?{range:a}:{changes:{from:o,to:l},range:J.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"?xe.announce.of(n.phrase("Selection deleted")):void 0})),!0)}u(Pq,"Sn$1");m(Pq,"deleteBy");function Ty(s,t,i){if(s instanceof xe)for(let n of s.state.facet(xe.atomicRanges).map(r=>r(s)))n.between(t,t,(r,a)=>{r<t&&a>t&&(t=i?a:r)});return t}u(Ty,"Vn$1");m(Ty,"skipAtomic");function Ak(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}u(Ak,"So$1");m(Ak,"selectedLineBlocks");function Cq(s,t,i){if(s.readOnly)return!1;let n=[],r=[];for(let a of Ak(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(J.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(J.range(c.anchor-l,c.head-l))}}return n.length?(t(s.update({changes:n,scrollIntoView:!0,selection:J.create(r,s.selection.mainIndex),userEvent:"move.line"})),!0):!1}u(Cq,"fg$1");m(Cq,"moveLine");function Qq(s,t,i){if(s.readOnly)return!1;let n=[];for(let r of Ak(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}u(Qq,"cg$1");m(Qq,"copyLine");function KT(s,t){if(/\(\)|\[\]|\{\}/.test(s.sliceDoc(t-1,t+1)))return{from:t,to:t};let i=st(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(be.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}u(KT,"gw$1");m(KT,"isBetweenBrackets");function Tq(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&&KT(t,a);s&&(a=o=(o<=l.to?l:t.doc.lineAt(o)).to);let h=new Zx(t,{simulateBreak:a,simulateDoubleBreak:!!c}),d=B8(h,a);for(d==null&&(d=kr(/^\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=["",x2(t,d)];return c&&f.push(x2(t,h.lineIndent(l.from,-1))),{changes:{from:a,to:o,insert:We.of(f)},range:J.cursor(a+1+f[1].length)}});return i(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}u(Tq,"ug$1");m(Tq,"newlineAndIndent");function Rq(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:J.range(a.mapPos(n.anchor,1),a.mapPos(n.head,1))}})}u(Rq,"Zh$1");m(Rq,"changeBySelectedLine");i6.define([{tag:Q.meta,class:"code"},{tag:Q.link,class:"wy-link"},{tag:Q.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Q.emphasis,fontStyle:"italic"},{tag:Q.strong,fontWeight:"bold"},{tag:Q.strikethrough,textDecoration:"line-through"},{tag:Q.keyword,class:"code token keyword"},{tag:[Q.atom,Q.bool],class:"code token builtin"},{tag:[Q.url,Q.contentSeparator,Q.labelName],class:"code token prolog"},{tag:Q.literal,class:"code token char"},{tag:Q.inserted,class:"code token inserted"},{tag:Q.deleted,class:"code token deleted"},{tag:Q.string,class:"code token string"},{tag:[Q.regexp,Q.escape,Q.special(Q.string)],class:"code token regex"},{tag:Q.definition(Q.variableName),class:"code token constant"},{tag:Q.local(Q.variableName),class:"code token variable"},{tag:[Q.typeName,Q.namespace],class:"code token keyword"},{tag:Q.className,class:"code token class-name"},{tag:[Q.special(Q.variableName),Q.macroName],class:"code token function"},{tag:Q.propertyName,class:"code token property"},{tag:Q.comment,class:"code token comment"},{tag:Q.invalid,color:"#f00",class:"code token"}]);function Mq(s){Ek(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 tR(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 d={state:h.state,pending:h.pending,indent:h.indent&&h.indent.slice(0)};return h.stack&&(d.stack=h.stack.slice(0)),d},"copyState"),token:iR(t),indent:nR(t,i),languageData:i}}u(Mq,"Iw$1");m(Mq,"simpleMode");function Ek(s,t){if(!s.hasOwnProperty(t))throw new Error("Undefined state "+t+" in simple mode")}u(Ek,"dg$1");m(Ek,"ensureState");function JT(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)}u(JT,"$w$1");m(JT,"toRegex");function eR(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}u(eR,"vw$1");m(eR,"asToken");function tR(s,t){(s.next||s.push)&&Ek(t,s.next||s.push),this.regex=JT(s.regex),this.token=eR(s.token),this.data=s}u(tR,"Tw$1");m(tR,"Rule");function iR(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}}u(iR,"Aw$1");m(iR,"tokenFunction");function nR(s,t){return function(i,n){if(i.indent==null||t.dontIndentStates&&t.doneIndentState.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]}}u(nR,"Zw$1");m(nR,"indentFunction");var Aq=Object.defineProperty,Oe=u((s,t)=>Aq(s,"name",{value:t,configurable:!0}),"o$1");const t$="lit-localize-status",Eq=Oe((s,...t)=>({strTag:!0,strings:s,values:t}),"_str"),ie=Eq,zq=Oe(s=>typeof s!="string"&&"strTag"in s,"isStrTagged"),sR=Oe((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"),rR=Oe(s=>zq(s)?sR(s.strings,s.values):s,"defaultMsg");let T=rR,YP=!1;function aR(s){if(YP)throw new Error("lit-localize can only be configured once");T=s,YP=!0}u(aR,"rt$1");Oe(aR,"_installMsgImplementation");var vd;const oR=(vd=class{constructor(t){this.__litLocalizeEventHandler=i=>{i.detail.status==="ready"&&this.host.requestUpdate()},this.host=t}hostConnected(){window.addEventListener(t$,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(t$,this.__litLocalizeEventHandler)}},u(vd,"_e"),vd);Oe(oR,"LocalizeController");let _q=oR;const Lq=Oe(s=>s.addController(new _q(s)),"_updateWhenLocaleChanges"),Iq=Lq,$e=Oe(()=>(s,t)=>(s.addInitializer(Iq),s),"localized");var Od;const lR=(Od=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)}},u(Od,"ve"),Od);Oe(lR,"Deferred");let cR=lR;const cs=[];for(let s=0;s<256;s++)cs[s]=(s>>4&15).toString(16)+(s&15).toString(16);function hR(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 cs[c>>8]+cs[c&255]+cs[o>>8]+cs[o&255]+cs[r>>8]+cs[r&255]+cs[i>>8]+cs[i&255]}u(hR,"ot");Oe(hR,"fnv1a64");const Wq="",Vq="h",Zq="s";function dR(s,t){return(t?Vq:Zq)+hR(typeof s=="string"?s:s.join(Wq))}u(dR,"ht$1");Oe(dR,"generateMsgId");const GP=new WeakMap,KP=new Map;function uR(s,t,i){if(s){const n=(i==null?void 0:i.id)??pR(t),r=s[n];if(r){if(typeof r=="string")return r;if("strTag"in r)return sR(r.strings,t.values,r.values);{let a=GP.get(r);return a===void 0&&(a=r.values,GP.set(r,a)),{...r,values:a.map(o=>t.values[o])}}}}return rR(t)}u(uR,"ft");Oe(uR,"runtimeMsg");function pR(s){const t=typeof s=="string"?s:s.strings;let i=KP.get(t);return i===void 0&&(i=dR(t,typeof s!="string"&&!("strTag"in s)),KP.set(t,i)),i}u(pR,"gt");Oe(pR,"generateId");function rg(s){window.dispatchEvent(new CustomEvent(t$,{detail:s}))}u(rg,"re");Oe(rg,"dispatchStatusEvent");let i1="",cO,fR,n1,i$,yR,ga=new cR;ga.resolve();let Mw=0;const qq=Oe(s=>(aR((t,i)=>uR(yR,t,i)),i1=fR=s.sourceLocale,n1=new Set(s.targetLocales),n1.add(s.sourceLocale),i$=s.loadLocale,{getLocale:Dq,setLocale:Uq}),"configureLocalization"),Dq=Oe(()=>i1,"getLocale"),Uq=Oe(s=>{if(s===(cO??i1))return ga.promise;if(!n1||!i$)throw new Error("Internal error");if(!n1.has(s))throw new Error("Invalid locale code");Mw++;const t=Mw;return cO=s,ga.settled&&(ga=new cR),rg({status:"loading",loadingLocale:s}),(s===fR?Promise.resolve({templates:void 0}):i$(s)).then(i=>{Mw===t&&(i1=s,cO=void 0,yR=i.templates,rg({status:"ready",readyLocale:s}),ga.resolve())},i=>{Mw===t&&(rg({status:"error",errorLocale:s,errorMessage:i.toString()}),ga.reject(i))}),ga.promise},"setLocale");var hO,bd;const Nq=(hO=(bd=class{get shadowRoot(){return this.__host.__shadowRoot}constructor(t){this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBraileLabel="",this.ariaBraileRoleDescription="",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(){}},u(bd,"M"),bd),Oe(hO,"ElementInternals"),hO),JP=new WeakMap,Jf=Oe(s=>{let t=JP.get(s);return t===void 0&&JP.set(s,t=new Map),t},"attributesForElement");var dO,$d;const Bq=(dO=($d=class{constructor(){this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(Jf(this)).map(([t,i])=>({name:t,value:i}))}get shadowRoot(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}setAttribute(t,i){Jf(this).set(t,String(i))}removeAttribute(t){Jf(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 Jf(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 Jf(this).get(t)??null}},u($d,"P"),$d),Oe(dO,"Element"),dO);var uO,xd;const jq=(uO=(xd=class extends Bq{},u(xd,"x"),xd),Oe(uO,"HTMLElement"),uO),Xq=jq;var pO,kd;const Fq=(pO=(kd=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`);this.__definitions.set(t,{ctor:i,observedAttributes:i.observedAttributes??[]})}get(t){const i=this.__definitions.get(t);return i==null?void 0:i.ctor}},u(kd,"U"),kd),Oe(pO,"CustomElementRegistry"),pO),Hq=Fq,Yq=new Hq,Fy=globalThis,rv=Fy.ShadowRoot&&(Fy.ShadyCSS===void 0||Fy.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zk=Symbol(),e4=new WeakMap;var fO,Sd;let mR=(fO=(Sd=class{constructor(t,i,n){if(this._$cssResult$=!0,n!==zk)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(rv&&t===void 0){const n=i!==void 0&&i.length===1;n&&(t=e4.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&e4.set(i,t))}return t}toString(){return this.cssText}},u(Sd,"H"),Sd),Oe(fO,"n"),fO);const wR=Oe(s=>new mR(typeof s=="string"?s:s+"",void 0,zk),"r$1"),de=Oe((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 mR(i,s,zk)},"i"),gR=Oe((s,t)=>{if(rv)s.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of t){const n=document.createElement("style"),r=Fy.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=i.cssText,s.appendChild(n)}},"S$1"),t4=rv||Fy.CSSStyleSheet===void 0?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let i="";for(const n of t.cssRules)i+=n.cssText;return wR(i)})(s):s,{is:Gq,defineProperty:Kq,getOwnPropertyDescriptor:Jq,getOwnPropertyNames:eD,getOwnPropertySymbols:tD,getPrototypeOf:iD}=Object,Rr=globalThis;Rr.customElements??(Rr.customElements=Yq);const i4=Rr.trustedTypes,nD=i4?i4.emptyScript:"",n4=Rr.reactiveElementPolyfillSupport,Hy=Oe((s,t)=>s,"f$2"),s1={toAttribute(s,t){switch(t){case Boolean:s=s?nD: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}},_k=Oe((s,t)=>!Gq(s,t),"y"),s4={attribute:!0,type:String,converter:s1,reflect:!1,hasChanged:_k};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Rr.litPropertyMetadata??(Rr.litPropertyMetadata=new WeakMap);var yO,Pd;let Dl=(yO=(Pd=class extends(globalThis.HTMLElement??Xq){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=s4){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&&Kq(this.prototype,t,r)}}static getPropertyDescriptor(t,i,n){const{get:r,set:a}=Jq(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)??s4}static _$Ei(){if(this.hasOwnProperty(Hy("elementProperties")))return;const t=iD(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Hy("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Hy("properties"))){const i=this.properties,n=[...eD(i),...tD(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(t4(r))}else t!==void 0&&i.push(t4(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 gR(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:s1).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:s1;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??_k)(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){}},u(Pd,"L$1"),Pd),Oe(yO,"g"),yO);Dl.elementStyles=[],Dl.shadowRootOptions={mode:"open"},Dl[Hy("elementProperties")]=new Map,Dl[Hy("finalized")]=new Map,n4==null||n4({ReactiveElement:Dl}),(Rr.reactiveElementVersions??(Rr.reactiveElementVersions=[])).push("2.0.4");const mm=globalThis,r1=mm.trustedTypes,r4=r1?r1.createPolicy("lit-html",{createHTML:Oe(s=>s,"createHTML")}):void 0,Lk="$lit$",ps=`lit$${Math.random().toFixed(9).slice(2)}$`,Ik="?"+ps,sD=`<${Ik}>`,xo=mm.document===void 0?{createTreeWalker:Oe(()=>({}),"createTreeWalker")}:document,wm=Oe(()=>xo.createComment(""),"lt"),gm=Oe(s=>s===null||typeof s!="object"&&typeof s!="function","st"),Wk=Array.isArray,vR=Oe(s=>Wk(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function","$"),mO=`[
|
|
30
30
|
\f\r]`,ey=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,a4=/-->/g,o4=/>/g,ra=RegExp(`>|${mO}(?:([^\\s"'>=/]+)(${mO}*=${mO}*(?:[^
|
|
31
31
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),l4=/'/g,c4=/"/g,OR=/^(?:script|style|textarea|title)$/i,bR=Oe(s=>(t,...i)=>({_$litType$:s,strings:t,values:i}),"P"),O=bR(1),h4=bR(2),fn=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),d4=new WeakMap,Sa=xo.createTreeWalker(xo,129);function Vk(s,t){if(!Wk(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return r4!==void 0?r4.createHTML(t):t}u(Vk,"Qe$1");Oe(Vk,"N");const $R=Oe((s,t)=>{const i=s.length-1,n=[];let r,a=t===2?"<svg>":t===3?"<math>":"",o=ey;for(let l=0;l<i;l++){const c=s[l];let h,d,f=-1,y=0;for(;y<c.length&&(o.lastIndex=y,d=o.exec(c),d!==null);)y=o.lastIndex,o===ey?d[1]==="!--"?o=a4:d[1]!==void 0?o=o4:d[2]!==void 0?(OR.test(d[2])&&(r=RegExp("</"+d[2],"g")),o=ra):d[3]!==void 0&&(o=ra):o===ra?d[0]===">"?(o=r??ey,f=-1):d[1]===void 0?f=-2:(f=o.lastIndex-d[2].length,h=d[1],o=d[3]===void 0?ra:d[3]==='"'?c4:l4):o===c4||o===l4?o=ra:o===a4||o===o4?o=ey:(o=ra,r=void 0);const w=o===ra&&s[l+1].startsWith("/>")?" ":"";a+=o===ey?c+sD:f>=0?(n.push(h),c.slice(0,f)+Lk+c.slice(f)+ps+w):c+ps+(f===-2?l:w)}return[Vk(s,a+(s[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},"U");var uo;const xR=(uo=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,d]=$R(t,i);if(this.el=uo.createElement(h,n),Sa.currentNode=this.el.content,i===2||i===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(r=Sa.nextNode())!==null&&c.length<l;){if(r.nodeType===1){if(r.hasAttributes())for(const f of r.getAttributeNames())if(f.endsWith(Lk)){const y=d[o++],w=r.getAttribute(f).split(ps),g=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:g[2],strings:w,ctor:g[1]==="."?TR:g[1]==="?"?MR:g[1]==="@"?ER:ew}),r.removeAttribute(f)}else f.startsWith(ps)&&(c.push({type:6,index:a}),r.removeAttribute(f));if(OR.test(r.tagName)){const f=r.textContent.split(ps),y=f.length-1;if(y>0){r.textContent=r1?r1.emptyScript:"";for(let w=0;w<y;w++)r.append(f[w],wm()),Sa.nextNode(),c.push({type:2,index:++a});r.append(f[y],wm())}}}else if(r.nodeType===8)if(r.data===Ik)c.push({type:2,index:a});else{let f=-1;for(;(f=r.data.indexOf(ps,f+1))!==-1;)c.push({type:7,index:a}),f+=ps.length-1}a++}}static createElement(t,i){const n=xo.createElement("template");return n.innerHTML=t,n}},u(uo,"se"),uo);Oe(xR,"B");let n$=xR;function Mr(s,t,i=s,n){var r,a;if(t===fn)return t;let o=n!==void 0?(r=i.o)==null?void 0:r[n]:i.l;const l=gm(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.o??(i.o=[]))[n]=o:i.l=o),o!==void 0&&(t=Mr(s,o._$AS(s,t.values),o,n)),t}u(Mr,"w$1");Oe(Mr,"z");var Cd;const kR=(Cd=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)??xo).importNode(i,!0);Sa.currentNode=r;let a=Sa.nextNode(),o=0,l=0,c=n[0];for(;c!==void 0;){if(o===c.index){let h;c.type===2?h=new av(a,a.nextSibling,this,t):c.type===1?h=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(h=new _R(a,this,t)),this._$AV.push(h),c=n[++l]}o!==(c==null?void 0:c.index)&&(a=Sa.nextNode(),o++)}return Sa.currentNode=xo,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++}},u(Cd,"Ae"),Cd);Oe(kR,"F");let SR=kR;var po;const PR=(po=class{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,i,n,r){this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=n,this.options=r,this.v=(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=Mr(this,t,i),gm(t)?t===R||t==null||t===""?(this._$AH!==R&&this._$AR(),this._$AH=R):t!==this._$AH&&t!==fn&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):vR(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!==R&&gm(this._$AH)?this._$AA.nextSibling.data=t:this.T(xo.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=n$.createElement(Vk(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 SR(a,this),l=o.u(this.options);o.p(n),this.T(l),this._$AH=o}}_$AC(t){let i=d4.get(t.strings);return i===void 0&&d4.set(t.strings,i=new n$(t)),i}k(t){Wk(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 po(this.O(wm()),this.O(wm()),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.v=t,(i=this._$AP)==null||i.call(this,t))}},u(po,"ie"),po);Oe(PR,"et");let av=PR;var Qd;const CR=(Qd=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,n,r,a){this.type=1,this._$AH=R,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=R}_$AI(t,i=this,n,r){const a=this.strings;let o=!1;if(a===void 0)t=Mr(this,t,i,0),o=!gm(t)||t!==this._$AH&&t!==fn,o&&(this._$AH=t);else{const l=t;let c,h;for(t=a[0],c=0;c<a.length-1;c++)h=Mr(this,l[n+c],i,c),h===fn&&(h=this._$AH[c]),o||(o=!gm(h)||h!==this._$AH[c]),h===R?t=R:t!==R&&(t+=(h??"")+a[c+1]),this._$AH[c]=h}o&&!r&&this.j(t)}j(t){t===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},u(Qd,"ye"),Qd);Oe(CR,"G");let ew=CR;var Td;const QR=(Td=class extends ew{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===R?void 0:t}},u(Td,"Se"),Td);Oe(QR,"Y");let TR=QR;var Rd;const RR=(Rd=class extends ew{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==R)}},u(Rd,"Ee"),Rd);Oe(RR,"Z");let MR=RR;var Md;const AR=(Md=class extends ew{constructor(t,i,n,r,a){super(t,i,n,r,a),this.type=5}_$AI(t,i=this){if((t=Mr(this,t,i,0)??R)===fn)return;const n=this._$AH,r=t===R&&n!==R||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,a=t!==R&&(n===R||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)}},u(Md,"we"),Md);Oe(AR,"q");let ER=AR;var Ad;const zR=(Ad=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){Mr(this,t)}},u(Ad,"ke"),Ad);Oe(zR,"K");let _R=zR;const rD={M:Lk,P:ps,A:Ik,C:1,L:$R,R:SR,D:vR,V:Mr,I:av,H:ew,N:MR,U:ER,B:TR,F:_R},u4=mm.litHtmlPolyfillSupport;u4==null||u4(n$,av),(mm.litHtmlVersions??(mm.litHtmlVersions=[])).push("3.2.0");const LR=Oe((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 av(t.insertBefore(wm(),a),a,void 0,i??{})}return r._$AI(s),r},"Q");var Ed;const IR=(Ed=class extends Dl{constructor(){super(...arguments),this.renderOptions={host:this},this.o=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.o=LR(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return fn}},u(Ed,"Re"),Ed);Oe(IR,"h");let G=IR;var p4;G._$litElement$=!0,G.finalized=!0,(p4=globalThis.litElementHydrateSupport)==null||p4.call(globalThis,{LitElement:G});const f4=globalThis.litElementPolyfillSupport;f4==null||f4({LitElement:G});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");O`<strong>${0}</strong> redigerade <em>${1}</em>`,O`<strong>${0}</strong> nämnde dig i ett inlägg`,O`<strong>${0}</strong> kommenterade på <strong>${1}</strong>`,O`<strong>${0}</strong> reagerade med ${1} på <em>${2}</em>`,O`<strong>${0}</strong> svarade på ett inlägg`,O`<strong>${0}</strong> redigerade ett inlägg`,O`<strong>${0}</strong> nämnde dig i ett meddelande`,O`<strong>${0}</strong> nämnde dig i en kommentar`,O`<strong>${0}</strong> och <strong>${1}</strong> röstade i din omröstning`,O`<strong>${0}</strong> reagerade med ${1} på ditt inlägg`,O`<strong>${0}</strong> reagerade med ${1} på din kommentar`,O`Nytt meddelande från <strong>${0}</strong>`,O`<strong>${0}</strong> svarade på ditt inlägg`,O`<strong>${0}</strong> röstade i din omröstning`,O`<strong>${0}</strong> publicerade ett inlägg i <strong>${1}</strong>`,O`<strong>${0}</strong> gillade ditt meddelande`,O`<strong>${0}</strong>, <strong>${1}</strong> och <strong>${2}</strong> röstade i din omröstning`,O`<strong>${0}</strong> lade till <em>${1}</em> till <strong>${2}</strong>`,O`<strong>${0}</strong> skickade ett meddelande i <strong>${1}</strong>`,O`<strong>${0}</strong> reagerade med ${1} på ditt meddelande`,O`<strong>${0}</strong> gillade <em>${1}</em>`,O`<strong>${0}</strong> gillade ditt inlägg`,O`<strong>${0}</strong> gillade din kommentar`,O`<strong>${0}</strong> och ${1} andra röstade i din omröstning`,O`<strong>${0}</strong> kommenterade på <em>${1}</em>`,ie`${0} svarade på ditt inlägg`,ie`${0} röstade i din omröstning`,ie`Öppna i ${0}?`,ie`${0} skriver${1}`,ie`${0} och ${1} röstade i din omröstning`,ie`${0} kommenterade på ${1}`,ie`${0} gillade ${1}`,ie`${0} skickade ett meddelande i ${1}`,ie`${0} redigerade ett inlägg`,ie`Röster på ${0}`,ie`${0} kommentarer`,ie`Sedd av ${0} vid ${1}`,ie`${0} och ${1} andra röstade i din omröstning`,ie`Nytt meddelande från ${0}`,ie`${0} reagerade med ${1} på ditt inlägg`,ie`${0} nämnde dig i ett inlägg`,ie`${0} nämnde dig i en kommentar`,ie`${0} publicerade ett inlägg i ${1}`,ie`${0} gillade ditt inlägg`,ie`${0} nämnde dig i ett meddelande`,ie`${0} reagerade med ${1} på din kommentar`,ie` Öppna i ${0}
|
|
32
|
-
`,ie`${0} svarade på ett inlägg`,ie`${0} lade till ${1} till ${2}`,ie`${0} redigerade ${1}`,ie`${0} gillade ditt meddelande`,ie`${0}, ${1} och ${2} röstade i din omröstning`,ie`${0} reagerade med ${1} på ${2}`,ie`${0} reagerade med ${1} på ditt meddelande`,ie`${0} gillade din kommentar`,ie`${0} skriver${1}`;var aD=Object.defineProperty,WR=u(s=>{throw TypeError(s)},"Np"),p=u((s,t)=>aD(s,"name",{value:t,configurable:!0}),"c"),Zk=u((s,t,i)=>t.has(s)||WR("Cannot "+i),"bd"),P=u((s,t,i)=>(Zk(s,t,"read from private field"),i?i.call(s):t.get(s)),"b"),U=u((s,t,i)=>t.has(s)?WR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,i),"T"),D=u((s,t,i,n)=>(Zk(s,t,"write to private field"),t.set(s,i),i),"I"),me=u((s,t,i)=>(Zk(s,t,"access private method"),i),"tt"),s$=u((s,t,i,n)=>({set _(r){D(s,t,r)},get _(){return P(s,t,n)}}),"Pc");function vm(s){return Object.prototype.toString.call(s)==="[object Object]"}u(vm,"Lc");p(vm,"isObject$1");function Om(s){if(vm(s)===!1)return!1;const t=s.constructor;if(t===void 0)return!0;const i=t.prototype;return!(vm(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}u(Om,"Rc");p(Om,"isPlainObject$1");function Yy(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]&&Om(n[r])&&Om(t[r])?n[r]=Yy(n[r],t[r],i):n[r]=t[r]);return n}u(Yy,"Ec");p(Yy,"assign");function mc(s,t,i=!1,n=!1){if(!n&&(!Om(s)||!Om(t))||n&&(!vm(s)||!vm(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&&!mc(c,h,i))return!1}return!0}u(mc,"ko");p(mc,"eqObjects");function qk(s){return Object.entries(s)}u(qk,"dy");p(qk,"objectAsIterable");function Dk(s){return s.charAt(0).toUpperCase()+s.substring(1).toLowerCase()}u(Dk,"hy");p(Dk,"toUpperCaseFirst");const oD='\\s,.:;"',lD=new RegExp(`^|[${oD}]|$`,"g");function Uk(s){return s.length>0?s.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").replace(/_|\s+/g,"-").toLowerCase():s}u(Uk,"py");p(Uk,"toKebabCase");function VR(s,t=2){if(!s)return null;let i="";const n=s.split(lD).filter(r=>r);return n.length==1?i=n[0]:n.forEach(r=>{i+=r.charAt(0)}),i.substring(0,t).toUpperCase()}u(VR,"Vf");p(VR,"getInitials");const cD={credentials:"omit",headers:{"X-Requested-With":"XMLHttpRequest"},redirect:"manual"};function yf(){return((1+Math.random())*65536|0).toString(16).substring(1)}u(yf,"So");p(yf,"S4");function ZR(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")}u(ZR,"Uf");p(ZR,"getTextStreamFromResponse");function qR(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}u(qR,"qf");p(qR,"getStorage");var zd;const DR=(zd=class extends Error{constructor(){super("Instance destroyed"),this.name="DestroyError"}},u(zd,"hp"),zd);p(DR,"DestroyError");let wt=DR;var wO,_d,Lf=(wO=(_d=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(){}},u(_d,"Ar"),_d),p(wO,"Subscribable"),wO),mf=typeof window>"u"||"Deno"in globalThis;function Ti(){}u(Ti,"Ve");p(Ti,"noop$1");function UR(s,t){return typeof s=="function"?s(t):s}u(UR,"Nf");p(UR,"functionalUpdate");function a1(s){return typeof s=="number"&&s>=0&&s!==1/0}u(a1,"Ad");p(a1,"isValidTimeout");function Nk(s,t){return Math.max(s+(t||0)-Date.now(),0)}u(Nk,"uy");p(Nk,"timeUntilStale");function Qa(s,t){return typeof s=="function"?s(t):s}u(Qa,"Sr");p(Qa,"resolveStaleTime");function qi(s,t){return typeof s=="function"?s(t):s}u(qi,"Ge");p(qi,"resolveEnabled");function r$(s,t){const{type:i="all",exact:n,fetchStatus:r,predicate:a,queryKey:o,stale:l}=s;if(o){if(n){if(t.queryHash!==ov(o,t.options))return!1}else if(!wf(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))}u(r$,"Qp");p(r$,"matchQuery");function a$(s,t){const{exact:i,status:n,predicate:r,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(i){if(Ar(t.options.mutationKey)!==Ar(a))return!1}else if(!wf(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||r&&!r(t))}u(a$,"Kp");p(a$,"matchMutation");function ov(s,t){return((t==null?void 0:t.queryKeyHashFn)||Ar)(s)}u(ov,"zh");p(ov,"hashQueryKeyByOptions");function Ar(s){return JSON.stringify(s,(t,i)=>o1(i)?Object.keys(i).sort().reduce((n,r)=>(n[r]=i[r],n),{}):i)}u(Ar,"Vs");p(Ar,"hashKey");function wf(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?!Object.keys(t).some(i=>!wf(s[i],t[i])):!1}u(wf,"Eo");p(wf,"partialMatchKey");function If(s,t){if(s===t)return s;const i=o$(s)&&o$(t);if(i||o1(s)&&o1(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 d=i?h:a[h];(!i&&n.includes(d)||i)&&s[d]===void 0&&t[d]===void 0?(l[d]=void 0,c++):(l[d]=If(s[d],t[d]),l[d]===s[d]&&s[d]!==void 0&&c++)}return r===o&&c===r?s:l}return t}u(If,"hc");p(If,"replaceEqualDeep");function bm(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}u(bm,"Ic");p(bm,"shallowEqualObjects");function o$(s){return Array.isArray(s)&&s.length===Object.keys(s).length}u(o$,"Gp");p(o$,"isPlainArray");function o1(s){if(!l$(s))return!1;const t=s.constructor;if(t===void 0)return!0;const i=t.prototype;return!(!l$(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}u(o1,"Ld");p(o1,"isPlainObject");function l$(s){return Object.prototype.toString.call(s)==="[object Object]"}u(l$,"Yp");p(l$,"hasObjectPrototype");function NR(s){return new Promise(t=>{setTimeout(t,s)})}u(NR,"jf");p(NR,"sleep");function l1(s,t,i){return typeof i.structuralSharing=="function"?i.structuralSharing(s,t):i.structuralSharing!==!1?If(s,t):t}u(l1,"Rd");p(l1,"replaceData");function BR(s,t,i=0){const n=[...s,t];return i&&n.length>i?n.slice(1):n}u(BR,"Wf");p(BR,"addToEnd");function jR(s,t,i=0){const n=[t,...s];return i&&n.length>i?n.slice(0,-1):n}u(jR,"Qf");p(jR,"addToStart");var Bk=Symbol();function jk(s,t){return!s.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!s.queryFn||s.queryFn===Bk?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}u(jk,"yy");p(jk,"ensureQueryFn");var Ml,aa,ty,gO,Ld,hD=(gO=(Ld=class extends Lf{constructor(){super(),U(this,Ml),U(this,aa),U(this,ty),D(this,ty,t=>{if(!mf&&window.addEventListener){const i=p(()=>t(),"listener");return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){P(this,aa)||this.setEventListener(P(this,ty))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,aa))==null||t.call(this),D(this,aa,void 0))}setEventListener(t){var i;D(this,ty,t),(i=P(this,aa))==null||i.call(this),D(this,aa,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){P(this,Ml)!==t&&(D(this,Ml,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(i=>{i(t)})}isFocused(){var t;return typeof P(this,Ml)=="boolean"?P(this,Ml):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},u(Ld,"Rr"),Ld),Ml=new WeakMap,aa=new WeakMap,ty=new WeakMap,p(gO,"FocusManager"),gO),Xk=new hD,iy,oa,ny,vO,Id,dD=(vO=(Id=class extends Lf{constructor(){super(),U(this,iy,!0),U(this,oa),U(this,ny),D(this,ny,t=>{if(!mf&&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(){P(this,oa)||this.setEventListener(P(this,ny))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,oa))==null||t.call(this),D(this,oa,void 0))}setEventListener(t){var i;D(this,ny,t),(i=P(this,oa))==null||i.call(this),D(this,oa,t(this.setOnline.bind(this)))}setOnline(t){P(this,iy)!==t&&(D(this,iy,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return P(this,iy)}},u(Id,"Fr"),Id),iy=new WeakMap,oa=new WeakMap,ny=new WeakMap,p(vO,"OnlineManager"),vO),c1=new dD;function h1(){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 u(n,"s"),p(n,"finalize"),i.resolve=r=>{n({status:"fulfilled",value:r}),s(r)},i.reject=r=>{n({status:"rejected",reason:r}),t(r)},i}u(h1,"Id");p(h1,"pendingThenable");function XR(s){return Math.min(1e3*2**s,3e4)}u(XR,"Yf");p(XR,"defaultRetryDelay");function Fk(s){return(s??"online")==="online"?c1.isOnline():!0}u(Fk,"wy");p(Fk,"canFetch");var OO,Wd,FR=(OO=(Wd=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}},u(Wd,"Dr"),Wd),p(OO,"CancelledError"),OO);function ag(s){return s instanceof FR}u(ag,"xd");p(ag,"isCancelledError");function Hk(s){let t=!1,i=0,n=!1,r;const a=h1(),o=p(b=>{var k;n||(y(new FR(b)),(k=s.abort)==null||k.call(s))},"cancel"),l=p(()=>{t=!0},"cancelRetry"),c=p(()=>{t=!1},"continueRetry"),h=p(()=>Xk.isFocused()&&(s.networkMode==="always"||c1.isOnline())&&s.canRun(),"canContinue"),d=p(()=>Fk(s.networkMode)&&s.canRun(),"canStart"),f=p(b=>{var k;n||(n=!0,(k=s.onSuccess)==null||k.call(s,b),r==null||r(),a.resolve(b))},"resolve"),y=p(b=>{var k;n||(n=!0,(k=s.onError)==null||k.call(s,b),r==null||r(),a.reject(b))},"reject"),w=p(()=>new Promise(b=>{var k;r=p($=>{(n||h())&&b($)},"continueFn"),(k=s.onPause)==null||k.call(s)}).then(()=>{var b;r=void 0,n||(b=s.onContinue)==null||b.call(s)}),"pause"),g=p(()=>{if(n)return;let b;const k=i===0?s.initialPromise:void 0;try{b=k??s.fn()}catch($){b=Promise.reject($)}Promise.resolve(b).then(f).catch($=>{var C;if(n)return;const E=s.retry??(mf?0:3),A=s.retryDelay??XR,M=typeof A=="function"?A(i,$):A,L=E===!0||typeof E=="number"&&i<E||typeof E=="function"&&E(i,$);if(t||!L){y($);return}i++,(C=s.onFail)==null||C.call(s,i,$),NR(M).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:d,start:p(()=>(d()?g():w().then(g),a),"start")}}u(Hk,"my");p(Hk,"createRetryer");function HR(){let s=[],t=0,i=p(l=>{l()},"notifyFn"),n=p(l=>{l()},"batchNotifyFn"),r=p(l=>setTimeout(l,0),"scheduleFn");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")}}u(HR,"Zf");p(HR,"createNotifyManager");var Bt=HR(),Al,bO,Vd,YR=(bO=(Vd=class{constructor(){U(this,Al)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),a1(this.gcTime)&&D(this,Al,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(mf?1/0:5*60*1e3))}clearGcTimeout(){P(this,Al)&&(clearTimeout(P(this,Al)),D(this,Al,void 0))}},u(Vd,"Hr"),Vd),Al=new WeakMap,p(bO,"Removable"),bO),sy,ry,Ji,ri,Aw,El,Cn,ss,$O,Zd,uD=($O=(Zd=class extends YR{constructor(t){super(),U(this,Cn),U(this,sy),U(this,ry),U(this,Ji),U(this,ri),U(this,Aw),U(this,El),D(this,El,!1),D(this,Aw,t.defaultOptions),this.setOptions(t.options),this.observers=[],D(this,Ji,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,D(this,sy,GR(this.options)),this.state=t.state??P(this,sy),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,ri))==null?void 0:t.promise}setOptions(t){this.options={...P(this,Aw),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,Ji).remove(this)}setData(t,i){const n=l1(this.state.data,t,this.options);return me(this,Cn,ss).call(this,{data:n,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),n}setState(t,i){me(this,Cn,ss).call(this,{type:"setState",state:t,setStateOptions:i})}cancel(t){var i,n;const r=(i=P(this,ri))==null?void 0:i.promise;return(n=P(this,ri))==null||n.cancel(t),r?r.then(Ti).catch(Ti):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,sy))}isActive(){return this.observers.some(t=>qi(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bk||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||!Nk(this.state.dataUpdatedAt,t)}onFocus(){var t;const i=this.observers.find(n=>n.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(t=P(this,ri))==null||t.continue()}onOnline(){var t;const i=this.observers.find(n=>n.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(t=P(this,ri))==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,Ji).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(i=>i!==t),this.observers.length||(P(this,ri)&&(P(this,El)?P(this,ri).cancel({revert:!0}):P(this,ri).cancelRetry()),this.scheduleGc()),P(this,Ji).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||me(this,Cn,ss).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(P(this,ri))return P(this,ri).continueRetry(),P(this,ri).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,El,!0),o.signal),"get")})},"addSignalProperty"),c=p(()=>{const f=jk(this.options,i),y={queryKey:this.queryKey,meta:this.meta};return l(y),D(this,El,!1),this.options.persister?this.options.persister(f,y,this):f(y)},"fetchFn"),h={fetchOptions:i,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};l(h),(n=this.options.behavior)==null||n.onFetch(h,this),D(this,ry,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((r=h.fetchOptions)==null?void 0:r.meta))&&me(this,Cn,ss).call(this,{type:"fetch",meta:(a=h.fetchOptions)==null?void 0:a.meta});const d=p(f=>{var y,w,g,b;ag(f)&&f.silent||me(this,Cn,ss).call(this,{type:"error",error:f}),ag(f)||((w=(y=P(this,Ji).config).onError)==null||w.call(y,f,this),(b=(g=P(this,Ji).config).onSettled)==null||b.call(g,this.state.data,f,this)),this.scheduleGc()},"onError");return D(this,ri,Hk({initialPromise:i==null?void 0:i.initialPromise,fn:h.fetchFn,abort:o.abort.bind(o),onSuccess:p(f=>{var y,w,g,b;if(f===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(k){d(k);return}(w=(y=P(this,Ji).config).onSuccess)==null||w.call(y,f,this),(b=(g=P(this,Ji).config).onSettled)==null||b.call(g,f,this.state.error,this),this.scheduleGc()},"onSuccess"),onError:d,onFail:p((f,y)=>{me(this,Cn,ss).call(this,{type:"failed",failureCount:f,error:y})},"onFail"),onPause:p(()=>{me(this,Cn,ss).call(this,{type:"pause"})},"onPause"),onContinue:p(()=>{me(this,Cn,ss).call(this,{type:"continue"})},"onContinue"),retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:p(()=>!0,"canRun")})),P(this,ri).start()}},u(Zd,"Ur"),Zd),sy=new WeakMap,ry=new WeakMap,Ji=new WeakMap,ri=new WeakMap,Aw=new WeakMap,El=new WeakMap,Cn=new WeakSet,ss=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,...Yk(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 ag(n)&&n.revert&&P(this,ry)?{...P(this,ry),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),Bt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),P(this,Ji).notify({query:this,type:"updated",action:s})})},"#dispatch"),p($O,"Query"),$O);function Yk(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Fk(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}u(Yk,"gy");p(Yk,"fetchState");function GR(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"}}u(GR,"Jf");p(GR,"getDefaultState$1");var rs,xO,qd,pD=(xO=(qd=class extends Lf{constructor(t={}){super(),U(this,rs),this.config=t,D(this,rs,new Map)}build(t,i,n){const r=i.queryKey,a=i.queryHash??ov(r,i);let o=this.get(a);return o||(o=new uD({cache:this,queryKey:r,queryHash:a,options:t.defaultQueryOptions(i),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){P(this,rs).has(t.queryHash)||(P(this,rs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const i=P(this,rs).get(t.queryHash);i&&(t.destroy(),i===t&&P(this,rs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Bt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,rs).get(t)}getAll(){return[...P(this,rs).values()]}find(t){const i={exact:!0,...t};return this.getAll().find(n=>r$(i,n))}findAll(t={}){const i=this.getAll();return Object.keys(t).length>0?i.filter(n=>r$(t,n)):i}notify(t){Bt.batch(()=>{this.listeners.forEach(i=>{i(t)})})}onFocus(){Bt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Bt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},u(qd,"qr"),qd),rs=new WeakMap,p(xO,"QueryCache"),xO),as,fi,zl,os,Zs,kO,Dd,fD=(kO=(Dd=class extends YR{constructor(t){super(),U(this,os),U(this,as),U(this,fi),U(this,zl),this.mutationId=t.mutationId,D(this,fi,t.mutationCache),D(this,as,[]),this.state=t.state||Gk(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,as).includes(t)||(P(this,as).push(t),this.clearGcTimeout(),P(this,fi).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){D(this,as,P(this,as).filter(i=>i!==t)),this.scheduleGc(),P(this,fi).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,as).length||(this.state.status==="pending"?this.scheduleGc():P(this,fi).remove(this))}continue(){var t;return((t=P(this,zl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,n,r,a,o,l,c,h,d,f,y,w,g,b,k,$,C,E,A,M;D(this,zl,Hk({fn:p(()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),"fn"),onFail:p((q,j)=>{me(this,os,Zs).call(this,{type:"failed",failureCount:q,error:j})},"onFail"),onPause:p(()=>{me(this,os,Zs).call(this,{type:"pause"})},"onPause"),onContinue:p(()=>{me(this,os,Zs).call(this,{type:"continue"})},"onContinue"),retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:p(()=>P(this,fi).canRun(this),"canRun")}));const L=this.state.status==="pending",I=!P(this,zl).canStart();try{if(!L){me(this,os,Zs).call(this,{type:"pending",variables:t,isPaused:I}),await((n=(i=P(this,fi).config).onMutate)==null?void 0:n.call(i,t,this));const j=await((a=(r=this.options).onMutate)==null?void 0:a.call(r,t));j!==this.state.context&&me(this,os,Zs).call(this,{type:"pending",context:j,variables:t,isPaused:I})}const q=await P(this,zl).start();return await((l=(o=P(this,fi).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=(d=P(this,fi).config).onSettled)==null?void 0:f.call(d,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)),me(this,os,Zs).call(this,{type:"success",data:q}),q}catch(q){try{throw await((b=(g=P(this,fi).config).onError)==null?void 0:b.call(g,q,t,this.state.context,this)),await(($=(k=this.options).onError)==null?void 0:$.call(k,q,t,this.state.context)),await((E=(C=P(this,fi).config).onSettled)==null?void 0:E.call(C,void 0,q,this.state.variables,this.state.context,this)),await((M=(A=this.options).onSettled)==null?void 0:M.call(A,void 0,q,t,this.state.context)),q}finally{me(this,os,Zs).call(this,{type:"error",error:q})}}finally{P(this,fi).runNext(this)}}},u(Dd,"Nr"),Dd),as=new WeakMap,fi=new WeakMap,zl=new WeakMap,os=new WeakSet,Zs=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),Bt.batch(()=>{P(this,as).forEach(i=>{i.onMutationUpdate(s)}),P(this,fi).notify({mutation:this,type:"updated",action:s})})},"#dispatch"),p(kO,"Mutation"),kO);function Gk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}u(Gk,"by");p(Gk,"getDefaultState");var qs,Qn,Ew,SO,Ud,yD=(SO=(Ud=class extends Lf{constructor(t={}){super(),U(this,qs),U(this,Qn),U(this,Ew),this.config=t,D(this,qs,new Set),D(this,Qn,new Map),D(this,Ew,0)}build(t,i,n){const r=new fD({mutationCache:this,mutationId:++s$(this,Ew)._,options:t.defaultMutationOptions(i),state:n});return this.add(r),r}add(t){P(this,qs).add(t);const i=Ry(t);if(typeof i=="string"){const n=P(this,Qn).get(i);n?n.push(t):P(this,Qn).set(i,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,qs).delete(t)){const i=Ry(t);if(typeof i=="string"){const n=P(this,Qn).get(i);if(n)if(n.length>1){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}else n[0]===t&&P(this,Qn).delete(i)}}this.notify({type:"removed",mutation:t})}canRun(t){const i=Ry(t);if(typeof i=="string"){const n=P(this,Qn).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=Ry(t);if(typeof n=="string"){const r=(i=P(this,Qn).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(){Bt.batch(()=>{P(this,qs).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,qs).clear(),P(this,Qn).clear()})}getAll(){return Array.from(P(this,qs))}find(t){const i={exact:!0,...t};return this.getAll().find(n=>a$(i,n))}findAll(t={}){return this.getAll().filter(i=>a$(t,i))}notify(t){Bt.batch(()=>{this.listeners.forEach(i=>{i(t)})})}resumePausedMutations(){const t=this.getAll().filter(i=>i.state.isPaused);return Bt.batch(()=>Promise.all(t.map(i=>i.continue().catch(Ti))))}},u(Ud,"jr"),Ud),qs=new WeakMap,Qn=new WeakMap,Ew=new WeakMap,p(SO,"MutationCache"),SO);function Ry(s){var t;return(t=s.options.scope)==null?void 0:t.id}u(Ry,"Mc");p(Ry,"scopeFor");function $m(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,d=((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 b=!1;const k=p(E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:p(()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal),"get")})},"addSignalProperty"),$=jk(t.options,t.fetchOptions),C=p(async(E,A,M)=>{if(b)return Promise.reject();if(A==null&&E.pages.length)return Promise.resolve(E);const L={queryKey:t.queryKey,pageParam:A,direction:M?"backward":"forward",meta:t.options.meta};k(L);const I=await $(L),{maxPages:q}=t.options,j=M?jR:BR;return{pages:j(E.pages,I,q),pageParams:j(E.pageParams,A,q)}},"fetchPage");if(h&&d.length){const E=h==="backward",A=E?Kk:d1,M={pages:d,pageParams:f},L=A(c,M);y=await C(M,L,E)}else{const E=s??d.length;do{const A=w===0?f[0]??c.initialPageParam:d1(c,y);if(w>0&&A==null)break;y=await C(y,A),w++}while(w<E)}return y},"fetchFn");t.options.persister?t.fetchFn=()=>{var b,k;return(k=(b=t.options).persister)==null?void 0:k.call(b,g,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i)}:t.fetchFn=g},"onFetch")}}u($m,"Fc");p($m,"infiniteQueryBehavior");function d1(s,{pages:t,pageParams:i}){const n=t.length-1;return t.length>0?s.getNextPageParam(t[n],t,i[n],i):void 0}u(d1,"Td");p(d1,"getNextPageParam");function Kk(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}u(Kk,"xy");p(Kk,"getPreviousPageParam");function KR(s,t){return t?d1(s,t)!=null:!1}u(KR,"s1");p(KR,"hasNextPage");function JR(s,t){return!t||!s.getPreviousPageParam?!1:Kk(s,t)!=null}u(JR,"r1");p(JR,"hasPreviousPage");var at,la,ca,ay,oy,ha,ly,cy,PO,Nd,mD=(PO=(Nd=class{constructor(t={}){U(this,at),U(this,la),U(this,ca),U(this,ay),U(this,oy),U(this,ha),U(this,ly),U(this,cy),D(this,at,t.queryCache||new pD),D(this,la,t.mutationCache||new yD),D(this,ca,t.defaultOptions||{}),D(this,ay,new Map),D(this,oy,new Map),D(this,ha,0)}mount(){s$(this,ha)._++,P(this,ha)===1&&(D(this,ly,Xk.subscribe(async t=>{t&&(await this.resumePausedMutations(),P(this,at).onFocus())})),D(this,cy,c1.subscribe(async t=>{t&&(await this.resumePausedMutations(),P(this,at).onOnline())})))}unmount(){var t,i;s$(this,ha)._--,P(this,ha)===0&&((t=P(this,ly))==null||t.call(this),D(this,ly,void 0),(i=P(this,cy))==null||i.call(this),D(this,cy,void 0))}isFetching(t){return P(this,at).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return P(this,la).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const n=this.defaultQueryOptions({queryKey:t});return(i=P(this,at).get(n.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const i=this.defaultQueryOptions(t),n=P(this,at).build(this,i),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Qa(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(t){return P(this,at).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=P(this,at).get(r.queryHash),o=a==null?void 0:a.state.data,l=UR(i,o);if(l!==void 0)return P(this,at).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(t,i,n){return Bt.batch(()=>P(this,at).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,i,n)]))}getQueryState(t){var i;const n=this.defaultQueryOptions({queryKey:t});return(i=P(this,at).get(n.queryHash))==null?void 0:i.state}removeQueries(t){const i=P(this,at);Bt.batch(()=>{i.findAll(t).forEach(n=>{i.remove(n)})})}resetQueries(t,i){const n=P(this,at),r={type:"active",...t};return Bt.batch(()=>(n.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(r,i)))}cancelQueries(t,i={}){const n={revert:!0,...i},r=Bt.batch(()=>P(this,at).findAll(t).map(a=>a.cancel(n)));return Promise.all(r).then(Ti).catch(Ti)}invalidateQueries(t,i={}){return Bt.batch(()=>{if(P(this,at).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none")return Promise.resolve();const n={...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"};return this.refetchQueries(n,i)})}refetchQueries(t,i={}){const n={...i,cancelRefetch:i.cancelRefetch??!0},r=Bt.batch(()=>P(this,at).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ti)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ti)}fetchQuery(t){const i=this.defaultQueryOptions(t);i.retry===void 0&&(i.retry=!1);const n=P(this,at).build(this,i);return n.isStaleByTime(Qa(i.staleTime,n))?n.fetch(i):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ti).catch(Ti)}fetchInfiniteQuery(t){return t.behavior=$m(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ti).catch(Ti)}ensureInfiniteQueryData(t){return t.behavior=$m(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return c1.isOnline()?P(this,la).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,at)}getMutationCache(){return P(this,la)}getDefaultOptions(){return P(this,ca)}setDefaultOptions(t){D(this,ca,t)}setQueryDefaults(t,i){P(this,ay).set(Ar(t),{queryKey:t,defaultOptions:i})}getQueryDefaults(t){const i=[...P(this,ay).values()],n={};return i.forEach(r=>{wf(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,i){P(this,oy).set(Ar(t),{mutationKey:t,defaultOptions:i})}getMutationDefaults(t){const i=[...P(this,oy).values()];let n={};return i.forEach(r=>{wf(t,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(t){if(t._defaulted)return t;const i={...P(this,ca).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return i.queryHash||(i.queryHash=ov(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===Bk&&(i.enabled=!1),i}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...P(this,ca).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){P(this,at).clear(),P(this,la).clear()}},u(Nd,"Yr"),Nd),at=new WeakMap,la=new WeakMap,ca=new WeakMap,ay=new WeakMap,oy=new WeakMap,ha=new WeakMap,ly=new WeakMap,cy=new WeakMap,p(PO,"QueryClient"),PO),Ci,ze,zw,yi,_l,hy,da,ls,_w,dy,uy,Ll,Il,ua,py,ot,fy,CO,QO,TO,RO,MO,AO,EO,y4,zO,Bd,eM=(zO=(Bd=class extends Lf{constructor(t,i){super(),U(this,ot),U(this,Ci),U(this,ze),U(this,zw),U(this,yi),U(this,_l),U(this,hy),U(this,da),U(this,ls),U(this,_w),U(this,dy),U(this,uy),U(this,Ll),U(this,Il),U(this,ua),U(this,py,new Set),this.options=i,D(this,Ci,t),D(this,ls,null),D(this,da,h1()),this.options.experimental_prefetchInRender||P(this,da).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&&(P(this,ze).addObserver(this),c$(P(this,ze),this.options)?me(this,ot,fy).call(this):this.updateResult(),me(this,ot,RO).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u1(P(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u1(P(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,me(this,ot,MO).call(this),me(this,ot,AO).call(this),P(this,ze).removeObserver(this)}setOptions(t,i){const n=this.options,r=P(this,ze);if(this.options=P(this,Ci).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qi(this.options.enabled,P(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");me(this,ot,EO).call(this),P(this,ze).setOptions(this.options),n._defaulted&&!bm(this.options,n)&&P(this,Ci).getQueryCache().notify({type:"observerOptionsUpdated",query:P(this,ze),observer:this});const a=this.hasListeners();a&&h$(P(this,ze),r,this.options,n)&&me(this,ot,fy).call(this),this.updateResult(i),a&&(P(this,ze)!==r||qi(this.options.enabled,P(this,ze))!==qi(n.enabled,P(this,ze))||Qa(this.options.staleTime,P(this,ze))!==Qa(n.staleTime,P(this,ze)))&&me(this,ot,CO).call(this);const o=me(this,ot,QO).call(this);a&&(P(this,ze)!==r||qi(this.options.enabled,P(this,ze))!==qi(n.enabled,P(this,ze))||o!==P(this,ua))&&me(this,ot,TO).call(this,o)}getOptimisticResult(t){const i=P(this,Ci).getQueryCache().build(P(this,Ci),t),n=this.createResult(i,t);return iM(this,n)&&(D(this,yi,n),D(this,hy,this.options),D(this,_l,P(this,ze).state)),n}getCurrentResult(){return P(this,yi)}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){P(this,py).add(t)}getCurrentQuery(){return P(this,ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const i=P(this,Ci).defaultQueryOptions(t),n=P(this,Ci).getQueryCache().build(P(this,Ci),i);return n.fetch().then(()=>this.createResult(n,i))}fetch(t){return me(this,ot,fy).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),P(this,yi)))}createResult(t,i){var n;const r=P(this,ze),a=this.options,o=P(this,yi),l=P(this,_l),c=P(this,hy),h=t!==r?t.state:P(this,zw),{state:d}=t;let f={...d},y=!1,w;if(i._optimisticResults){const I=this.hasListeners(),q=!I&&c$(t,i),j=I&&h$(t,r,i,a);(q||j)&&(f={...f,...Yk(d.data,t.options)}),i._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:b,status:k}=f;if(i.select&&f.data!==void 0)if(o&&f.data===(l==null?void 0:l.data)&&i.select===P(this,_w))w=P(this,dy);else try{D(this,_w,i.select),w=i.select(f.data),w=l1(o==null?void 0:o.data,w,i),D(this,dy,w),D(this,ls,null)}catch(I){D(this,ls,I)}else w=f.data;if(i.placeholderData!==void 0&&w===void 0&&k==="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=P(this,uy))==null?void 0:n.state.data,P(this,uy)):i.placeholderData,i.select&&I!==void 0)try{I=i.select(I),D(this,ls,null)}catch(q){D(this,ls,q)}I!==void 0&&(k="success",w=l1(o==null?void 0:o.data,I,i),y=!0)}P(this,ls)&&(g=P(this,ls),w=P(this,dy),b=Date.now(),k="error");const $=f.fetchStatus==="fetching",C=k==="pending",E=k==="error",A=C&&$,M=w!==void 0,L={status:k,fetchStatus:f.fetchStatus,isPending:C,isSuccess:k==="success",isError:E,isInitialLoading:A,isLoading:A,data:w,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:b,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:E&&!M,isPaused:f.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:E&&M,isStale:lv(t,i),refetch:this.refetch,promise:P(this,da)};if(this.options.experimental_prefetchInRender){const I=p(ee=>{L.status==="error"?ee.reject(L.error):L.data!==void 0&&ee.resolve(L.data)},"finalizeThenableIfPossible"),q=p(()=>{const ee=D(this,da,L.promise=h1());I(ee)},"recreateThenable"),j=P(this,da);switch(j.status){case"pending":t.queryHash===r.queryHash&&I(j);break;case"fulfilled":(L.status==="error"||L.data!==j.value)&&q();break;case"rejected":(L.status!=="error"||L.error!==j.reason)&&q();break}}return L}updateResult(t){const i=P(this,yi),n=this.createResult(P(this,ze),this.options);if(D(this,_l,P(this,ze).state),D(this,hy,this.options),P(this,_l).data!==void 0&&D(this,uy,P(this,ze)),bm(n,i))return;D(this,yi,n);const r={},a=p(()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!P(this,py).size)return!0;const c=new Set(l??P(this,py));return this.options.throwOnError&&c.add("error"),Object.keys(P(this,yi)).some(h=>{const d=h;return P(this,yi)[d]!==i[d]&&c.has(d)})},"shouldNotifyListeners");(t==null?void 0:t.listeners)!==!1&&a()&&(r.listeners=!0),me(this,ot,y4).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&me(this,ot,RO).call(this)}},u(Bd,"en"),Bd),Ci=new WeakMap,ze=new WeakMap,zw=new WeakMap,yi=new WeakMap,_l=new WeakMap,hy=new WeakMap,da=new WeakMap,ls=new WeakMap,_w=new WeakMap,dy=new WeakMap,uy=new WeakMap,Ll=new WeakMap,Il=new WeakMap,ua=new WeakMap,py=new WeakMap,ot=new WeakSet,fy=p(function(s){me(this,ot,EO).call(this);let t=P(this,ze).fetch(this.options,s);return s!=null&&s.throwOnError||(t=t.catch(Ti)),t},"#executeFetch"),CO=p(function(){me(this,ot,MO).call(this);const s=Qa(this.options.staleTime,P(this,ze));if(mf||P(this,yi).isStale||!a1(s))return;const t=Nk(P(this,yi).dataUpdatedAt,s)+1;D(this,Ll,setTimeout(()=>{P(this,yi).isStale||this.updateResult()},t))},"#updateStaleTimeout"),QO=p(function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(P(this,ze)):this.options.refetchInterval)??!1},"#computeRefetchInterval"),TO=p(function(s){me(this,ot,AO).call(this),D(this,ua,s),!(mf||qi(this.options.enabled,P(this,ze))===!1||!a1(P(this,ua))||P(this,ua)===0)&&D(this,Il,setInterval(()=>{(this.options.refetchIntervalInBackground||Xk.isFocused())&&me(this,ot,fy).call(this)},P(this,ua)))},"#updateRefetchInterval"),RO=p(function(){me(this,ot,CO).call(this),me(this,ot,TO).call(this,me(this,ot,QO).call(this))},"#updateTimers"),MO=p(function(){P(this,Ll)&&(clearTimeout(P(this,Ll)),D(this,Ll,void 0))},"#clearStaleTimeout"),AO=p(function(){P(this,Il)&&(clearInterval(P(this,Il)),D(this,Il,void 0))},"#clearRefetchInterval"),EO=p(function(){const s=P(this,Ci).getQueryCache().build(P(this,Ci),this.options);if(s===P(this,ze))return;const t=P(this,ze);D(this,ze,s),D(this,zw,s.state),this.hasListeners()&&(t==null||t.removeObserver(this),s.addObserver(this))},"#updateQuery"),y4=p(function(s){Bt.batch(()=>{s.listeners&&this.listeners.forEach(t=>{t(P(this,yi))}),P(this,Ci).getQueryCache().notify({query:P(this,ze),type:"observerResultsUpdated"})})},"#notify"),p(zO,"QueryObserver"),zO);function tM(s,t){return qi(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}u(tM,"a1");p(tM,"shouldLoadOnMount");function c$(s,t){return tM(s,t)||s.state.data!==void 0&&u1(s,t,t.refetchOnMount)}u(c$,"Zp");p(c$,"shouldFetchOnMount");function u1(s,t,i){if(qi(t.enabled,s)!==!1){const n=typeof i=="function"?i(s):i;return n==="always"||n!==!1&&lv(s,t)}return!1}u(u1,"Nd");p(u1,"shouldFetchOn");function h$(s,t,i,n){return(s!==t||qi(n.enabled,s)===!1)&&(!i.suspense||s.state.status!=="error")&&lv(s,i)}u(h$,"Xp");p(h$,"shouldFetchOptionally");function lv(s,t){return qi(t.enabled,s)!==!1&&s.isStaleByTime(Qa(t.staleTime,s))}u(lv,"Oh");p(lv,"isStale");function iM(s,t){return!bm(s.getCurrentResult(),t)}u(iM,"o1");p(iM,"shouldAssignObserverCurrentProperties");var _O,jd,wD=(_O=(jd=class extends eM{constructor(t,i){super(t,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,i){super.setOptions({...t,behavior:$m()},i)}getOptimisticResult(t){return t.behavior=$m(),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:d}=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",b=l&&f==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:KR(i,a.data),hasPreviousPage:JR(i,a.data),isFetchNextPageError:y,isFetchingNextPage:w,isFetchPreviousPageError:g,isFetchingPreviousPage:b,isRefetchError:d&&!y&&!g,isRefetching:c&&!w&&!b}}},u(jd,"sn"),jd),p(_O,"InfiniteQueryObserver"),_O),pa,fa,Qi,Ds,ya,Lw,LO,IO,Xd,Ze=(IO=(Xd=class extends Lf{constructor(t,i){super(),U(this,ya),U(this,pa),U(this,fa),U(this,Qi),U(this,Ds),D(this,pa,t),this.setOptions(i),this.bindMethods(),me(this,ya,Lw).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=P(this,pa).defaultMutationOptions(t),bm(this.options,n)||P(this,pa).getMutationCache().notify({type:"observerOptionsUpdated",mutation:P(this,Qi),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ar(n.mutationKey)!==Ar(this.options.mutationKey)?this.reset():((i=P(this,Qi))==null?void 0:i.state.status)==="pending"&&P(this,Qi).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=P(this,Qi))==null||t.removeObserver(this)}onMutationUpdate(t){me(this,ya,Lw).call(this),me(this,ya,LO).call(this,t)}getCurrentResult(){return P(this,fa)}reset(){var t;(t=P(this,Qi))==null||t.removeObserver(this),D(this,Qi,void 0),me(this,ya,Lw).call(this),me(this,ya,LO).call(this)}mutate(t,i){var n;return D(this,Ds,i),(n=P(this,Qi))==null||n.removeObserver(this),D(this,Qi,P(this,pa).getMutationCache().build(P(this,pa),this.options)),P(this,Qi).addObserver(this),P(this,Qi).execute(t)}},u(Xd,"rn"),Xd),pa=new WeakMap,fa=new WeakMap,Qi=new WeakMap,Ds=new WeakMap,ya=new WeakSet,Lw=p(function(){var s;const t=((s=P(this,Qi))==null?void 0:s.state)??Gk();D(this,fa,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},"#updateResult"),LO=p(function(s){Bt.batch(()=>{var t,i,n,r,a,o,l,c;if(P(this,Ds)&&this.hasListeners()){const h=P(this,fa).variables,d=P(this,fa).context;(s==null?void 0:s.type)==="success"?((i=(t=P(this,Ds)).onSuccess)==null||i.call(t,s.data,h,d),(r=(n=P(this,Ds)).onSettled)==null||r.call(n,s.data,null,h,d)):(s==null?void 0:s.type)==="error"&&((o=(a=P(this,Ds)).onError)==null||o.call(a,s.error,h,d),(c=(l=P(this,Ds)).onSettled)==null||c.call(l,void 0,s.error,h,d))}this.listeners.forEach(h=>{h(P(this,fa))})})},"#notify"),p(IO,"MutationObserver"),IO);function Jk(s){return s}u(Jk,"Cy");p(Jk,"defaultTransformerFn");function nM(s){return{mutationKey:s.options.mutationKey,state:s.state,...s.options.scope&&{scope:s.options.scope},...s.meta&&{meta:s.meta}}}u(nM,"l1");p(nM,"dehydrateMutation");function sM(s,t){var i;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:(i=s.promise)==null?void 0:i.then(t).catch(n=>Promise.reject(new Error("redacted")))},...s.meta&&{meta:s.meta}}}u(sM,"d1");p(sM,"dehydrateQuery");function rM(s){return s.state.isPaused}u(rM,"h1");p(rM,"defaultShouldDehydrateMutation");function aM(s){return s.state.status==="success"}u(aM,"p1");p(aM,"defaultShouldDehydrateQuery");function oM(s,t={}){var i,n,r;const a=t.shouldDehydrateMutation??((i=s.getDefaultOptions().dehydrate)==null?void 0:i.shouldDehydrateMutation)??rM,o=s.getMutationCache().getAll().flatMap(d=>a(d)?[nM(d)]:[]),l=t.shouldDehydrateQuery??((n=s.getDefaultOptions().dehydrate)==null?void 0:n.shouldDehydrateQuery)??aM,c=t.serializeData??((r=s.getDefaultOptions().dehydrate)==null?void 0:r.serializeData)??Jk,h=s.getQueryCache().getAll().flatMap(d=>l(d)?[sM(d,c)]:[]);return{mutations:o,queries:h}}u(oM,"u1");p(oM,"dehydrate");function lM(s,t,i){var n,r;if(typeof t!="object"||t===null)return;const a=s.getMutationCache(),o=s.getQueryCache(),l=((n=i==null?void 0:i.defaultOptions)==null?void 0:n.deserializeData)??((r=s.getDefaultOptions().hydrate)==null?void 0:r.deserializeData)??Jk,c=t.mutations||[],h=t.queries||[];c.forEach(({state:d,...f})=>{var y,w;a.build(s,{...(y=s.getDefaultOptions().hydrate)==null?void 0:y.mutations,...(w=i==null?void 0:i.defaultOptions)==null?void 0:w.mutations,...f},d)}),h.forEach(({queryKey:d,state:f,queryHash:y,meta:w,promise:g})=>{var b,k;let $=o.get(y);const C=f.data===void 0?f.data:l(f.data);if($){if($.state.dataUpdatedAt<f.dataUpdatedAt){const{fetchStatus:E,...A}=f;$.setState({...A,data:C})}}else $=o.build(s,{...(b=s.getDefaultOptions().hydrate)==null?void 0:b.queries,...(k=i==null?void 0:i.defaultOptions)==null?void 0:k.queries,queryKey:d,queryHash:y,meta:w},{...f,data:C,fetchStatus:"idle"});if(g){const E=Promise.resolve(g).then(l);$.fetch(void 0,{initialPromise:E})}})}u(lM,"y1");p(lM,"hydrate");var Re=(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))(Re||{}),Oi=(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))(Oi||{}),cM=(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))(cM||{}),hM=(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))(hM||{}),dM=(s=>(s["2352a1c6-abc6-420e-8b85-ca7d5aed8779"]="bot_chat",s))(dM||{}),uM=(s=>(s.bot_chat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",s))(uM||{}),Bi=(s=>(s.Unknown="unknown",s))(Bi||{}),Hs=(s=>(s.None="none",s.Read="read",s.Write="write",s.Admin="admin",s))(Hs||{}),Er=(s=>(s.List="list",s.Read="read",s.Create="create",s.Update="update",s.Delete="delete",s.Admin="admin",s))(Er||{}),ji=(s=>(s.App="app",s.File="file",s.Message="message",s.User="user",s.Comment="comment",s.Post="post",s))(ji||{});function cn(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}}u(cn,"yi");p(cn,"getApiOptions");async function p1(s,t,i,n,r,a="GET",o=!1){const l=s.queryClient,c=cn(s,t,i,n,r,a);return o?(c.staleTime=1,await l.fetchQuery(c)):await l.ensureQueryData(c)}u(p1,"Wd");p(p1,"getApi");function pM(s,t,i=Bi.Unknown,n){return i===Bi.Unknown?cn(s,["apps",t]):cn(s,["apps",t],void 0,void 0,JSON.stringify({type:i,...n}),"PUT")}u(pM,"w1");p(pM,"getAppOptions");function fM(s,t,i=Bi.Unknown,n){return i===Bi.Unknown?p1(s,["apps",t]):p1(s,["apps",t],void 0,void 0,JSON.stringify({type:i,...n}),"PUT")}u(fM,"f1");p(fM,"getApp");function e5(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}))}}}u(e5,"Sy");p(e5,"getAppSubscribeMutationOptions");function yM(s,t=[Re.ChatRoom,Re.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 cn(s,["apps","badge",t],a,n)}u(yM,"m1");p(yM,"getBadgeOptions$1");function mM(s){return{mutationFn:p(async({members:t,type:i})=>await(await s.fetch("/api/apps",{method:"POST",body:JSON.stringify({members:t,type:i})})).json(),"mutationFn"),onSettled:p(async()=>{await s.queryClient.invalidateQueries({queryKey:["apps"]})},"onSettled")}}u(mM,"v1");p(mM,"getAddAppMutationOptions");function wM(s){return new Ze(s.queryClient,mM(s))}u(wM,"g1");p(wM,"getAddAppMutation");function gM(s,t={},i,n,r,a){return{...t,initialPageParam:0,queryKey:["apps","list",i,n,a],queryFn:p(async o=>{var l;const c=new URLSearchParams;n&&c.append("member",n),o.pageParam&&c.append("skip",(l=o.pageParam)==null?void 0:l.toString()),i==null||i.forEach(y=>c.append("type",y)),c.append("order_by",a);const h=r==null?void 0:r();h&&c.append("q",h);const d=`/api/apps?${c.toString()}`,f=await(await s.fetch(d)).json();return f.data=f.data||[],f},"queryFn"),getNextPageParam:p(o=>{if(o.end&&(o==null?void 0:o.end)<(o==null?void 0:o.count))return o.end},"getNextPageParam")}}u(gM,"b1");p(gM,"getAppListOptions");const gD=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 fM(a,o)}}}}},u(i,"t"),i),p(t,"WeavyApi"),t},"WeavyApiMixin"),vD=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(d=>setTimeout(d,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(d=>setTimeout(d,this.tokenFactoryRetryDelay)),await this._validTokenFromFactory(!0)}else if(this._whenTokenFactory=new Promise(d=>{this._resolveTokenFactory=d}),!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 wt;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 wt;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 wt;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}}},u(i,"t"),i),p(t,"WeavyAuthentication"),t},"WeavyAuthenticationMixin");var Iw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vM(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}u(vM,"k1");p(vM,"getDefaultExportFromCjs");function og(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.')}u(og,"$d");p(og,"commonjsRequire");var OM={exports:{}};(function(s,t){var i;i=p(()=>(()=>{var Go,Ko,Jo,el,tl,il,nl,sl,rl,al,ol,ll,is,cl,hl,dl,ul,pl,ns,fl,yl,ml,wl,ia,gl,vl,Ol,bl,$l,xl,kl,Sl,na,Pl,Cl,Ql;var n={d:p((N,v)=>{for(var S in v)n.o(v,S)&&!n.o(N,S)&&Object.defineProperty(N,S,{enumerable:!0,get:v[S]})},"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=(N,v)=>Object.prototype.hasOwnProperty.call(N,v),n.r=N=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(N,"t",{value:!0})};var r,a={};n.r(a),n.d(a,{AbortError:p(()=>f,"AbortError"),DefaultHttpClient:p(()=>fS,"DefaultHttpClient"),HttpClient:p(()=>j,"HttpClient"),HttpError:p(()=>l,"HttpError"),HttpResponse:p(()=>I,"HttpResponse"),HttpTransportType:p(()=>mt,"HttpTransportType"),HubConnection:p(()=>$S,"HubConnection"),HubConnectionBuilder:p(()=>bL,"HubConnectionBuilder"),HubConnectionState:p(()=>je,"HubConnectionState"),JsonHubProtocol:p(()=>LS,"JsonHubProtocol"),LogLevel:p(()=>r,"LogLevel"),MessageType:p(()=>ke,"MessageType"),NullLogger:p(()=>se,"NullLogger"),Subject:p(()=>gS,"Subject"),TimeoutError:p(()=>h,"TimeoutError"),TransferFormat:p(()=>qt,"TransferFormat"),VERSION:p(()=>oe,"VERSION")});const o=(Go=class extends Error{constructor(v,S){const z=new.target.prototype;super(`${v}: Status code '${S}'`),this.statusCode=S,this.__proto__=z}},u(Go,"Ul"),Go);p(o,"i");let l=o;const c=(Ko=class extends Error{constructor(v="A timeout occurred."){const S=new.target.prototype;super(v),this.__proto__=S}},u(Ko,"ql"),Ko);p(c,"n");let h=c;const d=(Jo=class extends Error{constructor(v="An abort occurred."){const S=new.target.prototype;super(v),this.__proto__=S}},u(Jo,"Nl"),Jo);p(d,"r");let f=d;const y=(el=class extends Error{constructor(v,S){const z=new.target.prototype;super(v),this.transport=S,this.errorType="UnsupportedTransportError",this.__proto__=z}},u(el,"jl"),el);p(y,"o");let w=y;const g=(tl=class extends Error{constructor(v,S){const z=new.target.prototype;super(v),this.transport=S,this.errorType="DisabledTransportError",this.__proto__=z}},u(tl,"Wl"),tl);p(g,"h");let b=g;const k=(il=class extends Error{constructor(v,S){const z=new.target.prototype;super(v),this.transport=S,this.errorType="FailedToStartTransportError",this.__proto__=z}},u(il,"Ql"),il);p(k,"c");let $=k;const C=(nl=class extends Error{constructor(v){const S=new.target.prototype;super(v),this.errorType="FailedToNegotiateWithServerError",this.__proto__=S}},u(nl,"Kl"),nl);p(C,"a");let E=C;const A=(sl=class extends Error{constructor(v,S){const z=new.target.prototype;super(v),this.innerErrors=S,this.__proto__=z}},u(sl,"Gl"),sl);p(A,"l");let M=A;const L=(rl=class{constructor(v,S,z){this.statusCode=v,this.statusText=S,this.content=z}},u(rl,"Yl"),rl);p(L,"u");let I=L;const q=(al=class{get(v,S){return this.send({...S,method:"GET",url:v})}post(v,S){return this.send({...S,method:"POST",url:v})}delete(v,S){return this.send({...S,method:"DELETE",url:v})}getCookieString(v){return""}},u(al,"Zl"),al);p(q,"d");let j=q;(function(N){N[N.Trace=0]="Trace",N[N.Debug=1]="Debug",N[N.Information=2]="Information",N[N.Warning=3]="Warning",N[N.Error=4]="Error",N[N.Critical=5]="Critical",N[N.None=6]="None"})(r||(r={}));const ee=(ol=class{constructor(){}log(v,S){}},u(ol,"Xl"),ol);p(ee,"f");let se=ee;se.instance=new se;const oe="8.0.7",ge=(ll=class{static isRequired(v,S){if(v==null)throw new Error(`The '${S}' argument is required.`)}static isNotEmpty(v,S){if(!v||v.match(/^\s*$/))throw new Error(`The '${S}' argument should not be empty.`)}static isIn(v,S,z){if(!(v in S))throw new Error(`Unknown ${z} value: ${v}.`)}},u(ll,"Jl"),ll);p(ge,"w");let re=ge;const Le=(is=class{static get isBrowser(){return!is.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!is.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!is.isNode&&typeof window=="object"&&window.document===void 0}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}},u(is,"hr"),is);p(Le,"g");let Ce=Le;function Ye(N,v){let S="";return Ve(N)?(S=`Binary data of length ${N.byteLength}`,v&&(S+=`. Content: '${function(z){const _=new Uint8Array(z);let W="";return _.forEach(Z=>{W+=`0x${Z<16?"0":""}${Z.toString(16)} `}),W.substr(0,W.length-1)}(N)}'`)):typeof N=="string"&&(S=`String data of length ${N.length}`,v&&(S+=`. Content: '${N}'`)),S}u(Ye,"U"),p(Ye,"m");function Ve(N){return N&&typeof ArrayBuffer<"u"&&(N instanceof ArrayBuffer||N.constructor&&N.constructor.name==="ArrayBuffer")}u(Ve,"O"),p(Ve,"y");async function yt(N,v,S,z,_,W){const Z={},[le,ce]=Kt();Z[le]=ce,N.log(r.Trace,`(${v} transport) sending data. ${Ye(_,W.logMessageContent)}.`);const Te=Ve(_)?"arraybuffer":"text",Ne=await S.post(z,{content:_,headers:{...Z,...W.headers},responseType:Te,timeout:W.timeout,withCredentials:W.withCredentials});N.log(r.Trace,`(${v} transport) request complete. Response status: ${Ne.statusCode}.`)}u(yt,"V"),p(yt,"b");const Qt=(cl=class{constructor(v,S){this.i=v,this.h=S}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(S=>{})}},u(cl,"td"),cl);p(Qt,"v");let kt=Qt;const Gt=(hl=class{constructor(v){this.l=v,this.out=console}log(v,S){if(v>=this.l){const z=`[${new Date().toISOString()}] ${r[v]}: ${S}`;switch(v){case r.Critical:case r.Error:this.out.error(z);break;case r.Warning:this.out.warn(z);break;case r.Information:this.out.info(z);break;default:this.out.log(z)}}}},u(hl,"ed"),hl);p(Gt,"E");let si=Gt;function Kt(){let N="X-SignalR-User-Agent";return Ce.isNode&&(N="User-Agent"),[N,es(oe,Ws(),Ce.isNode?"NodeJS":"Browser",gw())]}u(Kt,"H"),p(Kt,"$");function es(N,v,S,z){let _="Microsoft SignalR/";const W=N.split(".");return _+=`${W[0]}.${W[1]}`,_+=` (${N}; `,_+=v&&v!==""?`${v}; `:"Unknown OS; ",_+=`${S}`,_+=z?`; ${z}`:"; Unknown Runtime Version",_+=")",_}u(es,"W"),p(es,"C");function Ws(){if(!Ce.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}u(Ws,"ft"),p(Ws,"S");function gw(){if(Ce.isNode)return process.versions.node}u(gw,"wt"),p(gw,"k");function Yo(N){return N.stack?N.stack:N.message?N.message:`${N}`}u(Yo,"ut"),p(Yo,"P");const dS=(dl=class extends j{constructor(v){if(super(),this.u=v,typeof fetch>"u"||Ce.isNode){const S=og;this.p=new(S("tough-cookie")).CookieJar,typeof fetch>"u"?this.m=S("node-fetch"):this.m=fetch,this.m=S("fetch-cookie")(this.m,this.p)}else this.m=fetch.bind(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(n.g!==void 0)return n.g;throw new Error("could not find global")}());if(typeof AbortController>"u"){const S=og;this.v=S("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 S=new this.v;let z;v.abortSignal&&(v.abortSignal.onabort=()=>{S.abort(),z=new f});let _,W=null;if(v.timeout){const ce=v.timeout;W=setTimeout(()=>{S.abort(),this.u.log(r.Warning,"Timeout from HTTP request."),z=new h},ce)}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:S.signal})}catch(ce){throw z||(this.u.log(r.Warning,`Error from HTTP request. ${ce}.`),ce)}finally{W&&clearTimeout(W),v.abortSignal&&(v.abortSignal.onabort=null)}if(!_.ok){const ce=await Ev(_,"text");throw new l(ce||_.statusText,_.status)}const Z=Ev(_,v.responseType),le=await Z;return new I(_.status,_.statusText,le)}getCookieString(v){let S="";return Ce.isNode&&this.p&&this.p.getCookies(v,(z,_)=>S=_.join("; ")),S}},u(dl,"id"),dl);p(dS,"T");let lL=dS;function Ev(N,v){let S;switch(v){case"arraybuffer":S=N.arrayBuffer();break;case"text":default:S=N.text();break;case"blob":case"document":case"json":throw new Error(`${v} is not supported.`)}return S}u(Ev,"he"),p(Ev,"I");const uS=(ul=class extends j{constructor(v){super(),this.u=v}send(v){return v.abortSignal&&v.abortSignal.aborted?Promise.reject(new f):v.method?v.url?new Promise((S,z)=>{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(Z=>{_.setRequestHeader(Z,W[Z])}),v.responseType&&(_.responseType=v.responseType),v.abortSignal&&(v.abortSignal.onabort=()=>{_.abort(),z(new f)}),v.timeout&&(_.timeout=v.timeout),_.onload=()=>{v.abortSignal&&(v.abortSignal.onabort=null),_.status>=200&&_.status<300?S(new I(_.status,_.statusText,_.response||_.responseText)):z(new l(_.response||_.responseText||_.statusText,_.status))},_.onerror=()=>{this.u.log(r.Warning,`Error from HTTP request. ${_.status}: ${_.statusText}.`),z(new l(_.statusText,_.status))},_.ontimeout=()=>{this.u.log(r.Warning,"Timeout from HTTP request."),z(new h)},_.send(v.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}},u(ul,"sd"),ul);p(uS,"_");let cL=uS;const pS=(pl=class extends j{constructor(v){if(super(),typeof fetch<"u"||Ce.isNode)this.$=new lL(v);else{if(typeof XMLHttpRequest>"u")throw new Error("No usable HttpClient found.");this.$=new cL(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)}},u(pl,"rd"),pl);p(pS,"H");let fS=pS;const yS=(ns=class{static write(v){return`${v}${ns.RecordSeparator}`}static parse(v){if(v[v.length-1]!==ns.RecordSeparator)throw new Error("Message is incomplete.");const S=v.split(ns.RecordSeparator);return S.pop(),S}},u(ns,"pr"),ns);p(yS,"D");let ts=yS;ts.RecordSeparatorCode=30,ts.RecordSeparator=String.fromCharCode(ts.RecordSeparatorCode);const mS=(fl=class{writeHandshakeRequest(v){return ts.write(JSON.stringify(v))}parseHandshakeResponse(v){let S,z;if(Ve(v)){const Z=new Uint8Array(v),le=Z.indexOf(ts.RecordSeparatorCode);if(le===-1)throw new Error("Message is incomplete.");const ce=le+1;S=String.fromCharCode.apply(null,Array.prototype.slice.call(Z.slice(0,ce))),z=Z.byteLength>ce?Z.slice(ce).buffer:null}else{const Z=v,le=Z.indexOf(ts.RecordSeparator);if(le===-1)throw new Error("Message is incomplete.");const ce=le+1;S=Z.substring(0,ce),z=Z.length>ce?Z.substring(ce):null}const _=ts.parse(S),W=JSON.parse(_[0]);if(W.type)throw new Error("Expected a handshake response from the server.");return[z,W]}},u(fl,"nd"),fl);p(mS,"R");let hL=mS;var ke,je;(function(N){N[N.Invocation=1]="Invocation",N[N.StreamItem=2]="StreamItem",N[N.Completion=3]="Completion",N[N.StreamInvocation=4]="StreamInvocation",N[N.CancelInvocation=5]="CancelInvocation",N[N.Ping=6]="Ping",N[N.Close=7]="Close",N[N.Ack=8]="Ack",N[N.Sequence=9]="Sequence"})(ke||(ke={}));const wS=(yl=class{constructor(){this.observers=[]}next(v){for(const S of this.observers)S.next(v)}error(v){for(const S of this.observers)S.error&&S.error(v)}complete(){for(const v of this.observers)v.complete&&v.complete()}subscribe(v){return this.observers.push(v),new kt(this,v)}},u(yl,"ad"),yl);p(wS,"U");let gS=wS;const vS=(ml=class{constructor(v,S,z){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=S,this.C=z}async A(v){const S=this.D.writeMessage(v);let z=Promise.resolve();if(this.U(v)){this.k++;let _=p(()=>{},"t"),W=p(()=>{},"i");Ve(S)?this._+=S.byteLength:this._+=S.length,this._>=this.C&&(z=new Promise((Z,le)=>{_=Z,W=le})),this.S.push(new uL(S,this.k,_,W))}try{this.H||await this.R.send(S)}catch{this.L()}await z}N(v){let S=-1;for(let z=0;z<this.S.length;z++){const _=this.S[z];if(_.q<=v.sequenceId)S=z,Ve(_.M)?this._-=_.M.byteLength:this._-=_.M.length,_.j();else{if(!(this._<this.C))break;_.j()}}S!==-1&&(this.S=this.S.slice(S+1))}W(v){if(this.P)return v.type===ke.Sequence&&(this.P=!1,!0);if(!this.U(v))return!0;const S=this.T;return this.T++,S<=this.I?(S===this.I&&this.O(),!1):(this.I=S,this.O(),!0)}F(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:ke.Sequence,sequenceId:v}));const S=this.S;for(const z of S)await this.R.send(z.M);this.H=!1}X(v){v!=null||(v=new Error("Unable to reconnect to server."));for(const S of this.S)S.J(v)}U(v){switch(v.type){case ke.Invocation:case ke.StreamItem:case ke.Completion:case ke.StreamInvocation:case ke.CancelInvocation:return!0;case ke.Close:case ke.Sequence:case ke.Ping:case ke.Ack:return!1}}O(){this.V===void 0&&(this.V=setTimeout(async()=>{try{this.H||await this.R.send(this.D.writeMessage({type:ke.Ack,sequenceId:this.I}))}catch{}clearTimeout(this.V),this.V=void 0},1e3))}},u(ml,"od"),ml);p(vS,"L");let dL=vS;const OS=(wl=class{constructor(v,S,z,_){this.M=v,this.q=S,this.j=z,this.J=_}},u(wl,"cd"),wl);p(OS,"N");let uL=OS;(function(N){N.Disconnected="Disconnected",N.Connecting="Connecting",N.Connected="Connected",N.Disconnecting="Disconnecting",N.Reconnecting="Reconnecting"})(je||(je={}));const bS=(ia=class{static create(v,S,z,_,W,Z,le){return new ia(v,S,z,_,W,Z,le)}constructor(v,S,z,_,W,Z,le){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")},re.isRequired(v,"connection"),re.isRequired(S,"logger"),re.isRequired(z,"protocol"),this.serverTimeoutInMilliseconds=W??3e4,this.keepAliveIntervalInMilliseconds=Z??15e3,this.Y=le??1e5,this.u=S,this.D=z,this.connection=v,this.Z=_,this.tt=new hL,this.connection.onreceive=ce=>this.et(ce),this.connection.onclose=ce=>this.st(ce),this.it={},this.nt={},this.rt=[],this.ot=[],this.ht=[],this.ct=0,this.lt=!1,this.ut=je.Disconnected,this.dt=!1,this.ft=this.D.writeMessage({type:ke.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!==je.Disconnected&&this.ut!==je.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!==je.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this.ut=je.Connecting,this.u.log(r.Debug,"Starting HubConnection.");try{await this.yt(),Ce.isBrowser&&window.document.addEventListener("freeze",this.G),this.ut=je.Connected,this.dt=!0,this.u.log(r.Debug,"HubConnection connected successfully.")}catch(v){return this.ut=je.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((S,z)=>{this.vt=S,this.Et=z});await this.connection.start(this.D.transferFormat);try{let S=this.D.version;this.connection.features.reconnect||(S=1);const z={protocol:this.D.name,version:S};if(this.u.log(r.Debug,"Sending handshake request."),await this.$t(this.tt.writeHandshakeRequest(z)),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 dL(this.D,this.connection,this.Y),this.connection.features.disconnected=this.Pt.L.bind(this.Pt),this.connection.features.resend=()=>{if(this.Pt)return this.Pt.B()}),this.connection.features.inherentKeepAlive||await this.$t(this.ft)}catch(S){throw this.u.log(r.Debug,`Hub handshake failed with error '${S}' during start(). Stopping HubConnection.`),this.Ct(),this.Tt(),await this.connection.stop(S),S}}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===je.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===je.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 S=this.ut;return this.ut=je.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()):(S===je.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,...S){const[z,_]=this.Ut(S),W=this.Lt(v,S,_);let Z;const le=new gS;return le.cancelCallback=()=>{const ce=this.Nt(W.invocationId);return delete this.it[W.invocationId],Z.then(()=>this.xt(ce))},this.it[W.invocationId]=(ce,Te)=>{Te?le.error(Te):ce&&(ce.type===ke.Completion?ce.error?le.error(new Error(ce.error)):le.complete():le.next(ce.item))},Z=this.xt(W).catch(ce=>{le.error(ce),delete this.it[W.invocationId]}),this.qt(z,Z),le}$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,...S){const[z,_]=this.Ut(S),W=this.xt(this.Mt(v,S,!0,_));return this.qt(z,W),W}invoke(v,...S){const[z,_]=this.Ut(S),W=this.Mt(v,S,!1,_);return new Promise((Z,le)=>{this.it[W.invocationId]=(Te,Ne)=>{Ne?le(Ne):Te&&(Te.type===ke.Completion?Te.error?le(new Error(Te.error)):Z(Te.result):le(new Error(`Unexpected message type: ${Te.type}`)))};const ce=this.xt(W).catch(Te=>{le(Te),delete this.it[W.invocationId]});this.qt(z,ce)})}on(v,S){v&&S&&(v=v.toLowerCase(),this.nt[v]||(this.nt[v]=[]),this.nt[v].indexOf(S)===-1&&this.nt[v].push(S))}off(v,S){if(!v)return;v=v.toLowerCase();const z=this.nt[v];if(z)if(S){const _=z.indexOf(S);_!==-1&&(z.splice(_,1),z.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 S=this.D.parseMessages(v,this.u);for(const z of S)if(!this.Pt||this.Pt.W(z))switch(z.type){case ke.Invocation:this.Wt(z).catch(_=>{this.u.log(r.Error,`Invoke client method threw error: ${Yo(_)}`)});break;case ke.StreamItem:case ke.Completion:{const _=this.it[z.invocationId];if(_){z.type===ke.Completion&&delete this.it[z.invocationId];try{_(z)}catch(W){this.u.log(r.Error,`Stream callback threw error: ${Yo(W)}`)}}break}case ke.Ping:break;case ke.Close:{this.u.log(r.Information,"Close message received from server.");const _=z.error?new Error("Server returned an error on close: "+z.error):void 0;z.allowReconnect===!0?this.connection.stop(_):this.It=this._t(_);break}case ke.Ack:this.Pt&&this.Pt.N(z);break;case ke.Sequence:this.Pt&&this.Pt.F(z);break;default:this.u.log(r.Warning,`Invalid message type: ${z.type}.`)}}this.St()}jt(v){let S,z;try{[z,S]=this.tt.parseHandshakeResponse(v)}catch(_){const W="Error parsing handshake response: "+_;this.u.log(r.Error,W);const Z=new Error(W);throw this.Et(Z),Z}if(S.error){const _="Server returned handshake error: "+S.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(),z}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===je.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 S=v.target.toLowerCase(),z=this.nt[S];if(!z)return this.u.log(r.Warning,`No client method with the name '${S}' found.`),void(v.invocationId&&(this.u.log(r.Warning,`No result given for '${S}' method and invocation ID '${v.invocationId}'.`),await this.xt(this.Bt(v.invocationId,"Client didn't provide a result.",null))));const _=z.slice(),W=!!v.invocationId;let Z,le,ce;for(const Te of _)try{const Ne=Z;Z=await Te.apply(this,v.arguments),W&&Z&&Ne&&(this.u.log(r.Error,`Multiple results provided for '${S}'. Sending error to server.`),ce=this.Bt(v.invocationId,"Client provided multiple results.",null)),le=void 0}catch(Ne){le=Ne,this.u.log(r.Error,`A callback for the method '${S}' threw error '${Ne}'.`)}ce?await this.xt(ce):W?(le?ce=this.Bt(v.invocationId,`${le}`,null):Z!==void 0?ce=this.Bt(v.invocationId,null,Z):(this.u.log(r.Warning,`No result given for '${S}' method and invocation ID '${v.invocationId}'.`),ce=this.Bt(v.invocationId,"Client didn't provide a result.",null)),await this.xt(ce)):Z&&this.u.log(r.Error,`Result given for '${S}' 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===je.Disconnecting?this.Dt(v):this.ut===je.Connected&&this.Z?this.Jt(v):this.ut===je.Connected&&this.Dt(v)}Dt(v){if(this.dt){this.ut=je.Disconnected,this.dt=!1,this.Pt&&(this.Pt.X(v??new Error("Connection closed.")),this.Pt=void 0),Ce.isBrowser&&window.document.removeEventListener("freeze",this.G);try{this.rt.forEach(S=>S.apply(this,[v]))}catch(S){this.u.log(r.Error,`An onclose callback called with error '${v}' threw error '${S}'.`)}}}async Jt(v){const S=Date.now();let z=0,_=v!==void 0?v:new Error("Attempting to reconnect due to a unknown error."),W=this.zt(z++,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=je.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(Z=>Z.apply(this,[v]))}catch(Z){this.u.log(r.Error,`An onreconnecting callback called with error '${v}' threw error '${Z}'.`)}if(this.ut!==je.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 ${z} will start in ${W} ms.`),await new Promise(Z=>{this.Ht=setTimeout(Z,W)}),this.Ht=void 0,this.ut!==je.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=je.Connected,this.u.log(r.Information,"HubConnection reconnected successfully."),this.ht.length!==0)try{this.ht.forEach(Z=>Z.apply(this,[this.connection.connectionId]))}catch(Z){this.u.log(r.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${Z}'.`)}return}catch(Z){if(this.u.log(r.Information,`Reconnect attempt failed because of error '${Z}'.`),this.ut!==je.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===je.Disconnecting&&this.Dt());_=Z instanceof Error?Z:new Error(Z.toString()),W=this.zt(z++,Date.now()-S,_)}}this.u.log(r.Information,`Reconnect retries have been exhausted after ${Date.now()-S} ms and ${z} failed attempts. Connection disconnecting.`),this.Dt()}zt(v,S,z){try{return this.Z.nextRetryDelayInMilliseconds({elapsedMilliseconds:S,previousRetryCount:v,retryReason:z})}catch(_){return this.u.log(r.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${v}, ${S}) threw error '${_}'.`),null}}Xt(v){const S=this.it;this.it={},Object.keys(S).forEach(z=>{const _=S[z];try{_(null,v)}catch(W){this.u.log(r.Error,`Stream 'error' callback called with '${v}' threw error: ${Yo(W)}`)}})}Tt(){this.Ft&&(clearTimeout(this.Ft),this.Ft=void 0)}Ct(){this.Ot&&clearTimeout(this.Ot)}Mt(v,S,z,_){if(z)return _.length!==0?{arguments:S,streamIds:_,target:v,type:ke.Invocation}:{arguments:S,target:v,type:ke.Invocation};{const W=this.ct;return this.ct++,_.length!==0?{arguments:S,invocationId:W.toString(),streamIds:_,target:v,type:ke.Invocation}:{arguments:S,invocationId:W.toString(),target:v,type:ke.Invocation}}}qt(v,S){if(v.length!==0){S||(S=Promise.resolve());for(const z in v)v[z].subscribe({complete:p(()=>{S=S.then(()=>this.xt(this.Bt(z)))},"complete"),error:p(_=>{let W;W=_ instanceof Error?_.message:_&&_.toString?_.toString():"Unknown error",S=S.then(()=>this.xt(this.Bt(z,W)))},"error"),next:p(_=>{S=S.then(()=>this.xt(this.Vt(z,_)))},"next")})}}Ut(v){const S=[],z=[];for(let _=0;_<v.length;_++){const W=v[_];if(this.Kt(W)){const Z=this.ct;this.ct++,S[Z]=W,z.push(Z.toString()),v.splice(_,1)}}return[S,z]}Kt(v){return v&&v.subscribe&&typeof v.subscribe=="function"}Lt(v,S,z){const _=this.ct;return this.ct++,z.length!==0?{arguments:S,invocationId:_.toString(),streamIds:z,target:v,type:ke.StreamInvocation}:{arguments:S,invocationId:_.toString(),target:v,type:ke.StreamInvocation}}Nt(v){return{invocationId:v,type:ke.CancelInvocation}}Vt(v,S){return{invocationId:v,item:S,type:ke.StreamItem}}Bt(v,S,z){return S?{error:S,invocationId:v,type:ke.Completion}:{invocationId:v,result:z,type:ke.Completion}}At(){return{type:ke.Close}}},u(ia,"Cc"),ia);p(bS,"q");let $S=bS;const pL=[0,2e3,1e4,3e4,null],xS=(gl=class{constructor(v){this.Gt=v!==void 0?[...v,null]:pL}nextRetryDelayInMilliseconds(v){return this.Gt[v.previousRetryCount]}},u(gl,"ld"),gl);p(xS,"j");let kS=xS;const SS=(vl=class{},u(vl,"dd"),vl);p(SS,"W");let ta=SS;ta.Authorization="Authorization",ta.Cookie="Cookie";const PS=(Ol=class extends j{constructor(v,S){super(),this.Qt=v,this.Yt=S}async send(v){let S=!0;this.Yt&&(!this.Zt||v.url&&v.url.indexOf("/negotiate?")>0)&&(S=!1,this.Zt=await this.Yt()),this.te(v);const z=await this.Qt.send(v);return S&&z.statusCode===401&&this.Yt?(this.Zt=await this.Yt(),this.te(v),await this.Qt.send(v)):z}te(v){v.headers||(v.headers={}),this.Zt?v.headers[ta.Authorization]=`Bearer ${this.Zt}`:this.Yt&&v.headers[ta.Authorization]&&delete v.headers[ta.Authorization]}getCookieString(v){return this.Qt.getCookieString(v)}},u(Ol,"hd"),Ol);p(PS,"O");let fL=PS;var mt,qt;(function(N){N[N.None=0]="None",N[N.WebSockets=1]="WebSockets",N[N.ServerSentEvents=2]="ServerSentEvents",N[N.LongPolling=4]="LongPolling"})(mt||(mt={})),function(N){N[N.Text=1]="Text",N[N.Binary=2]="Binary"}(qt||(qt={}));const CS=(bl=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}},u(bl,"pd"),bl);p(CS,"X");let yL=CS;const QS=($l=class{get pollAborted(){return this.se.aborted}constructor(v,S,z){this.$=v,this.u=S,this.se=new yL,this.ie=z,this.ne=!1,this.onreceive=null,this.onclose=null}async connect(v,S){if(re.isRequired(v,"url"),re.isRequired(S,"transferFormat"),re.isIn(S,qt,"transferFormat"),this.re=v,this.u.log(r.Trace,"(LongPolling transport) Connecting."),S===qt.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[z,_]=Kt(),W={[z]:_,...this.ie.headers},Z={abortSignal:this.se.signal,headers:W,timeout:1e5,withCredentials:this.ie.withCredentials};S===qt.Binary&&(Z.responseType="arraybuffer");const le=`${v}&_=${Date.now()}`;this.u.log(r.Trace,`(LongPolling transport) polling: ${le}.`);const ce=await this.$.get(le,Z);ce.statusCode!==200?(this.u.log(r.Error,`(LongPolling transport) Unexpected response code: ${ce.statusCode}.`),this.oe=new l(ce.statusText||"",ce.statusCode),this.ne=!1):this.ne=!0,this.he=this.ce(this.re,Z)}async ce(v,S){try{for(;this.ne;)try{const z=`${v}&_=${Date.now()}`;this.u.log(r.Trace,`(LongPolling transport) polling: ${z}.`);const _=await this.$.get(z,S);_.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. ${Ye(_.content,this.ie.logMessageContent)}.`),this.onreceive&&this.onreceive(_.content)):this.u.log(r.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(z){this.ne?z instanceof h?this.u.log(r.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.oe=z,this.ne=!1):this.u.log(r.Trace,`(LongPolling transport) Poll errored after shutdown: ${z.message}`)}}finally{this.u.log(r.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.ae()}}async send(v){return this.ne?yt(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={},[S,z]=Kt();v[S]=z;const _={headers:{...v,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials};let W;try{await this.$.delete(this.re,_)}catch(Z){W=Z}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)}}},u($l,"ud"),$l);p(QS,"J");let TS=QS;const RS=(xl=class{constructor(v,S,z,_){this.$=v,this.Zt=S,this.u=z,this.ie=_,this.onreceive=null,this.onclose=null}async connect(v,S){return re.isRequired(v,"url"),re.isRequired(S,"transferFormat"),re.isIn(S,qt,"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((z,_)=>{let W,Z=!1;if(S===qt.Text){if(Ce.isBrowser||Ce.isWebWorker)W=new this.ie.EventSource(v,{withCredentials:this.ie.withCredentials});else{const le=this.$.getCookieString(v),ce={};ce.Cookie=le;const[Te,Ne]=Kt();ce[Te]=Ne,W=new this.ie.EventSource(v,{withCredentials:this.ie.withCredentials,headers:{...ce,...this.ie.headers}})}try{W.onmessage=le=>{if(this.onreceive)try{this.u.log(r.Trace,`(SSE transport) data received. ${Ye(le.data,this.ie.logMessageContent)}.`),this.onreceive(le.data)}catch(ce){return void this.le(ce)}},W.onerror=le=>{Z?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,Z=!0,z()}}catch(le){return void _(le)}}else _(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})}async send(v){return this.ue?yt(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))}},u(xl,"yd"),xl);p(RS,"z");let mL=RS;const MS=(kl=class{constructor(v,S,z,_,W,Z){this.u=z,this.Yt=S,this.de=_,this.fe=W,this.$=v,this.onreceive=null,this.onclose=null,this.pe=Z}async connect(v,S){let z;return re.isRequired(v,"url"),re.isRequired(S,"transferFormat"),re.isIn(S,qt,"transferFormat"),this.u.log(r.Trace,"(WebSockets transport) Connecting."),this.Yt&&(z=await this.Yt()),new Promise((_,W)=>{let Z;v=v.replace(/^http/,"ws");const le=this.$.getCookieString(v);let ce=!1;if(Ce.isNode||Ce.isReactNative){const Te={},[Ne,Tl]=Kt();Te[Ne]=Tl,z&&(Te[ta.Authorization]=`Bearer ${z}`),le&&(Te[ta.Cookie]=le),Z=new this.fe(v,void 0,{headers:{...Te,...this.pe}})}else z&&(v+=(v.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(z)}`);Z||(Z=new this.fe(v)),S===qt.Binary&&(Z.binaryType="arraybuffer"),Z.onopen=Te=>{this.u.log(r.Information,`WebSocket connected to ${v}.`),this.we=Z,ce=!0,_()},Z.onerror=Te=>{let Ne=null;Ne=typeof ErrorEvent<"u"&&Te instanceof ErrorEvent?Te.error:"There was an error with the transport",this.u.log(r.Information,`(WebSockets transport) ${Ne}.`)},Z.onmessage=Te=>{if(this.u.log(r.Trace,`(WebSockets transport) data received. ${Ye(Te.data,this.de)}.`),this.onreceive)try{this.onreceive(Te.data)}catch(Ne){return void this.le(Ne)}},Z.onclose=Te=>{if(ce)this.le(Te);else{let Ne=null;Ne=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(Ne))}}})}send(v){return this.we&&this.we.readyState===this.fe.OPEN?(this.u.log(r.Trace,`(WebSockets transport) sending data. ${Ye(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"}},u(kl,"wd"),kl);p(MS,"V");let wL=MS;const AS=(Sl=class{constructor(v,S={}){var z;if(this.me=()=>{},this.features={},this.ye=1,re.isRequired(v,"url"),this.u=(z=S.logger)===void 0?new si(r.Information):z===null?se.instance:z.log!==void 0?z:new si(z),this.baseUrl=this.be(v),(S=S||{}).logMessageContent=S.logMessageContent!==void 0&&S.logMessageContent,typeof S.withCredentials!="boolean"&&S.withCredentials!==void 0)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");S.withCredentials=S.withCredentials===void 0||S.withCredentials,S.timeout=S.timeout===void 0?1e5:S.timeout;let _=null,W=null;if(Ce.isNode){const Z=og;_=Z("ws"),W=Z("eventsource")}Ce.isNode||typeof WebSocket>"u"||S.WebSocket?Ce.isNode&&!S.WebSocket&&_&&(S.WebSocket=_):S.WebSocket=WebSocket,Ce.isNode||typeof EventSource>"u"||S.EventSource?Ce.isNode&&!S.EventSource&&W!==void 0&&(S.EventSource=W):S.EventSource=EventSource,this.$=new fL(S.httpClient||new fS(this.u),S.accessTokenFactory),this.ut="Disconnected",this.dt=!1,this.ie=S,this.onreceive=null,this.onclose=null}async start(v){if(v=v||qt.Binary,re.isIn(v,qt,"transferFormat"),this.u.log(r.Debug,`Starting connection with transfer format '${qt[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 S="Failed to start the HttpConnection before stop() was called.";return this.u.log(r.Error,S),await this.It,Promise.reject(new f(S))}if(this.ut!=="Connected"){const S="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this.u.log(r.Error,S),Promise.reject(new f(S))}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 vL(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(S=>{this.me=S}),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(S){this.u.log(r.Error,`HttpConnection.transport.stop() threw error '${S}'.`),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 S=this.baseUrl;this.Yt=this.ie.accessTokenFactory,this.$.Yt=this.Yt;try{if(this.ie.skipNegotiation){if(this.ie.transport!==mt.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this.Se(mt.WebSockets),await this.ke(S,v)}else{let z=null,_=0;do{if(z=await this.Pe(S),this.ut==="Disconnecting"||this.ut==="Disconnected")throw new f("The connection was stopped during negotiation.");if(z.error)throw new Error(z.error);if(z.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(z.url&&(S=z.url),z.accessToken){const W=z.accessToken;this.Yt=()=>W,this.$.Zt=W,this.$.Yt=void 0}_++}while(z.url&&_<100);if(_===100&&z.url)throw new Error("Negotiate redirection limit exceeded.");await this.Te(S,this.ie.transport,z,v)}this.transport instanceof TS&&(this.features.inherentKeepAlive=!0),this.ut==="Connecting"&&(this.u.log(r.Debug,"The HttpConnection connected successfully."),this.ut="Connected")}catch(z){return this.u.log(r.Error,"Failed to start the connection: "+z),this.ut="Disconnected",this.transport=void 0,this.me(),Promise.reject(z)}}async Pe(v){const S={},[z,_]=Kt();S[z]=_;const W=this.Ie(v);this.u.log(r.Debug,`Sending negotiation request: ${W}.`);try{const Z=await this.$.post(W,{content:"",headers:{...S,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials});if(Z.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${Z.statusCode}'`));const le=JSON.parse(Z.content);return(!le.negotiateVersion||le.negotiateVersion<1)&&(le.connectionToken=le.connectionId),le.useStatefulReconnect&&this.ie._e!==!0?Promise.reject(new E("Client didn't negotiate Stateful Reconnect but the server did.")):le}catch(Z){let le="Failed to complete negotiation with the server: "+Z;return Z instanceof l&&Z.statusCode===404&&(le+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this.u.log(r.Error,le),Promise.reject(new E(le))}}He(v,S){return S?v+(v.indexOf("?")===-1?"?":"&")+`id=${S}`:v}async Te(v,S,z,_){let W=this.He(v,z.connectionToken);if(this.De(S))return this.u.log(r.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=S,await this.ke(W,_),void(this.connectionId=z.connectionId);const Z=[],le=z.availableTransports||[];let ce=z;for(const Te of le){const Ne=this.Re(Te,S,_,(ce==null?void 0:ce.useStatefulReconnect)===!0);if(Ne instanceof Error)Z.push(`${Te.transport} failed:`),Z.push(Ne);else if(this.De(Ne)){if(this.transport=Ne,!ce){try{ce=await this.Pe(v)}catch(Tl){return Promise.reject(Tl)}W=this.He(v,ce.connectionToken)}try{return await this.ke(W,_),void(this.connectionId=ce.connectionId)}catch(Tl){if(this.u.log(r.Error,`Failed to start the transport '${Te.transport}': ${Tl}`),ce=void 0,Z.push(new $(`${Te.transport} failed: ${Tl}`,mt[Te.transport])),this.ut!=="Connecting"){const WS="Failed to select transport before stop() was called.";return this.u.log(r.Debug,WS),Promise.reject(new f(WS))}}}}return Z.length>0?Promise.reject(new M(`Unable to connect to the server with any of the available transports. ${Z.join(" ")}`,Z)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}Se(v){switch(v){case mt.WebSockets:if(!this.ie.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new wL(this.$,this.Yt,this.u,this.ie.logMessageContent,this.ie.WebSocket,this.ie.headers||{});case mt.ServerSentEvents:if(!this.ie.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new mL(this.$,this.$.Zt,this.u,this.ie);case mt.LongPolling:return new TS(this.$,this.u,this.ie);default:throw new Error(`Unknown transport: ${v}.`)}}ke(v,S){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async z=>{let _=!1;if(this.features.reconnect){try{this.features.disconnected(),await this.transport.connect(v,S),await this.features.resend()}catch{_=!0}_&&this.Ce(z)}else this.Ce(z)}:this.transport.onclose=z=>this.Ce(z),this.transport.connect(v,S)}Re(v,S,z,_){const W=mt[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(Z,le){return!Z||(le&Z)!=0}(S,W))return this.u.log(r.Debug,`Skipping transport '${mt[W]}' because it was disabled by the client.`),new b(`'${mt[W]}' is disabled by the client.`,W);if(!(v.transferFormats.map(Z=>qt[Z]).indexOf(z)>=0))return this.u.log(r.Debug,`Skipping transport '${mt[W]}' because it does not support the requested transfer format '${qt[z]}'.`),new Error(`'${mt[W]}' does not support ${qt[z]}.`);if(W===mt.WebSockets&&!this.ie.WebSocket||W===mt.ServerSentEvents&&!this.ie.EventSource)return this.u.log(r.Debug,`Skipping transport '${mt[W]}' because it is not supported in your environment.'`),new w(`'${mt[W]}' is not supported in your environment.`,W);this.u.log(r.Debug,`Selecting transport '${mt[W]}'.`);try{return this.features.reconnect=W===mt.WebSockets?_:void 0,this.Se(W)}catch(Z){return Z}}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(S=>{this.u.log(r.Error,`TransportSendQueue.stop() threw error '${S}'.`)}),this.Ee=void 0),this.connectionId=void 0,this.ut="Disconnected",this.dt){this.dt=!1;try{this.onclose&&this.onclose(v)}catch(S){this.u.log(r.Error,`HttpConnection.onclose(${v}) threw error '${S}'.`)}}}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(!Ce.isBrowser)throw new Error(`Cannot resolve '${v}'.`);const S=window.document.createElement("a");return S.href=v,this.u.log(r.Information,`Normalizing '${v}' to '${S.href}'.`),S.href}Ie(v){const S=new URL(v);S.pathname.endsWith("/")?S.pathname+="negotiate":S.pathname+="/negotiate";const z=new URLSearchParams(S.searchParams);return z.has("negotiateVersion")||z.append("negotiateVersion",this.ye.toString()),z.has("useStatefulReconnect")?z.get("useStatefulReconnect")==="true"&&(this.ie._e=!0):this.ie._e===!0&&z.append("useStatefulReconnect","true"),S.search=z.toString(),S.toString()}},u(Sl,"fd"),Sl);p(AS,"K");let gL=AS;const ES=(na=class{constructor(v){this.xe=v,this.Ae=[],this.Ue=!0,this.Le=new vw,this.Ne=new vw,this.qe=this.Me()}send(v){return this.je(v),this.Ne||(this.Ne=new vw),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 vw;const v=this.Ne;this.Ne=void 0;const S=typeof this.Ae[0]=="string"?this.Ae.join(""):na.We(this.Ae);this.Ae.length=0;try{await this.xe.send(S),v.resolve()}catch(z){v.reject(z)}}}static We(v){const S=v.map(W=>W.byteLength).reduce((W,Z)=>W+Z),z=new Uint8Array(S);let _=0;for(const W of v)z.set(new Uint8Array(W),_),_+=W.byteLength;return z.buffer}},u(na,"_c"),na);p(ES,"G");let vL=ES;const zS=(Pl=class{constructor(){this.promise=new Promise((v,S)=>[this.j,this.Oe]=[v,S])}resolve(){this.j()}reject(v){this.Oe(v)}},u(Pl,"md"),Pl);p(zS,"Q");let vw=zS;const _S=(Cl=class{constructor(){this.name="json",this.version=2,this.transferFormat=qt.Text}parseMessages(v,S){if(typeof v!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!v)return[];S===null&&(S=se.instance);const z=ts.parse(v),_=[];for(const W of z){const Z=JSON.parse(W);if(typeof Z.type!="number")throw new Error("Invalid payload.");switch(Z.type){case ke.Invocation:this.U(Z);break;case ke.StreamItem:this.Fe(Z);break;case ke.Completion:this.Be(Z);break;case ke.Ping:case ke.Close:break;case ke.Ack:this.Xe(Z);break;case ke.Sequence:this.Je(Z);break;default:S.log(r.Information,"Unknown message type '"+Z.type+"' ignored.");continue}_.push(Z)}return _}writeMessage(v){return ts.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,S){if(typeof v!="string"||v==="")throw new Error(S)}},u(Cl,"vd"),Cl);p(_S,"Y");let LS=_S;const OL={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},IS=(Ql=class{configureLogging(v){if(re.isRequired(v,"logging"),v.log!==void 0)this.logger=v;else if(typeof v=="string"){const S=function(z){const _=OL[z.toLowerCase()];if(_!==void 0)return _;throw new Error(`Unknown log level: ${z}`)}(v);this.logger=new si(S)}else this.logger=new si(v);return this}withUrl(v,S){return re.isRequired(v,"url"),re.isNotEmpty(v,"url"),this.url=v,this.httpConnectionOptions=typeof S=="object"?{...this.httpConnectionOptions,...S}:{...this.httpConnectionOptions,transport:S},this}withHubProtocol(v){return re.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 kS(v):this.reconnectPolicy=v:this.reconnectPolicy=new kS,this}withServerTimeout(v){return re.isRequired(v,"milliseconds"),this.Ve=v,this}withKeepAliveInterval(v){return re.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 S=new gL(this.url,v);return $S.create(S,this.logger||se.instance,this.protocol||new LS,this.reconnectPolicy,this.Ve,this.Ke,this.Y)}},u(Ql,"gd"),Ql);p(IS,"tt");let bL=IS;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(N,v){return new Uint8Array(Array.prototype.slice.call(this,N,v))},"value"),writable:!0}),Uint8Array.prototype.forEach||Object.defineProperty(Uint8Array.prototype,"forEach",{value:Array.prototype.forEach,writable:!0}),a})(),"e"),s.exports=i()})(OM);var m4=OM.exports;const OD=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 wt;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 m4.HubConnectionBuilder().configureLogging(m4.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 wt;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 wt)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 wt;(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 wt||console.error(this.weavyId,"Error in Subscribe:",c)}}async unsubscribe(r,a,o){var l;if(this.isDestroyed)throw new wt;try{const c=r?r+":"+a:a,h=this._connectionEventListeners.findIndex(d=>d.name===c&&d.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(d=>d.name===c)||await this._connection.invoke("Unsubscribe",c)}}catch(c){c instanceof wt||console.error(this.weavyId,"Error in Unsubscribe:",c)}}destroy(){super.destroy(),this.disconnect(),this._whenConnectionStartedReject&&(this._whenConnectionStarted.catch(()=>{}),this._whenConnectionStartedReject(new wt))}},u(i,"t"),i),p(t,"WeavyConnection"),t},"WeavyConnectionMixin");var f1=(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))(f1||{});const bD=p(s=>{var i;var t;return t=(i=class extends s{async fetchOptions(r={},a=!0){if(this.isDestroyed)throw new wt;const o={headers:{"X-Weavy-Source":`${an.sourceName}@${an.version}`,"Content-Type":f1.JSON},method:"GET"},l=Yy(Yy(cD,o,!0),r,!0);return a?Yy(l,{headers:{Authorization:"Bearer "+await this.getToken()}},!0):l}async fetch(r,a,o=!0){if(this.isDestroyed)throw new wt;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=f1.JSON,c,h=!0){if(this.isDestroyed)throw new wt;const d=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 "+d),w.setRequestHeader("X-Weavy-Source",`${an.sourceName}@${an.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})}},u(i,"t"),i),p(t,"WeavyFetch"),t},"WeavyFetchMixin"),bM="en",$D=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:ye&&ye.tagName.toUpperCase()==="SCRIPT"&&ye.src||new URL("weavy.cjs",document.baseURI).href)||!new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:ye&&ye.tagName.toUpperCase()==="SCRIPT"&&ye.src||new URL("weavy.cjs",document.baseURI).href).href.startsWith(WEAVY_IMPORT_URL))?WEAVY_IMPORT_URL:typeof document>"u"?require("url").pathToFileURL(__filename).href:ye&&ye.tagName.toUpperCase()==="SCRIPT"&&ye.src||new URL("weavy.cjs",document.baseURI).href).href).then(r=>r.svSE)]]),this._locale=t.sourceLocale}static get sourceLocale(){try{return bM}catch{return""}}get locales(){return Array.from(this._locales.entries())}set locales(r){if(this.isDestroyed)throw new wt;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 wt;!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 wt;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 wt;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}=qq({sourceLocale:t.sourceLocale,targetLocales:a,loadLocale:p(c=>this.loadLocale(c),"loadLocale")});this._localization={getLocale:o,setLocale:l}}}},u(i,"t"),i),p(t,"WeavyLocalization"),t},"WeavyLocalizationMixin"),xD=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)}},u(i,"t"),i),p(t,"WeavyNetwork"),t},"WeavyNetworkMixin");function lg(){}u(lg,"kd");p(lg,"noop");function $M({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:xM(l=>{let c=l,h=o(c),d=0;for(;h&&c;)d++,c=a==null?void 0:a({persistedClient:c,error:h,errorCount:d}),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:lg,restoreClient:lg,removeClient:lg}}u($M,"z1");p($M,"createSyncStoragePersister");function xM(s,t=100){let i=null,n;return function(...r){n=r,i===null&&(i=setTimeout(()=>{s(...n),i=null},t))}}u(xM,"S1");p(xM,"throttle$2");var kD=["added","removed","updated"];function d$(s){return kD.includes(s)}u(d$,"tu");p(d$,"isCacheEventType");async function kM({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():lM(s,a.clientState,r)}else t.removeClient()}catch{t.removeClient()}}u(kM,"O1");p(kM,"persistQueryClientRestore");async function u$({queryClient:s,persister:t,buster:i="",dehydrateOptions:n}){const r={buster:i,timestamp:Date.now(),clientState:oM(s,n)};await t.persistClient(r)}u(u$,"eu");p(u$,"persistQueryClientSave");function SM(s){const t=s.queryClient.getQueryCache().subscribe(n=>{d$(n.type)&&u$(s)}),i=s.queryClient.getMutationCache().subscribe(n=>{d$(n.type)&&u$(s)});return()=>{t(),i()}}u(SM,"A1");p(SM,"persistQueryClientSubscribe");const SD=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this._queryClient=new mD({defaultOptions:{queries:{staleTime:this.staleTime,gcTime:this.gcTime}}}),this.initQueryClient()}get queryClient(){return this._queryClient}async initQueryClient(){if(this.isDestroyed)throw new wt;await this.whenUrl();try{this._sessionStoragePersister=$M({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 kM(r),this._unsubscribeQueryClient=SM(r)}catch{console.warn(this.weavyId,"Query cache persister not available.")}this.host.isConnected&&this._queryClient.mount(),this._hostIsConnectedObserver=o3(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()}},u(i,"t"),i),p(t,"WeavyQuery"),t},"WeavyQueryMixin"),PD=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this._notificationEvents=an.defaults.notificationEvents??!1,this.dispatchRealtimeEvent=a=>{jt();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()}},u(i,"t"),i),p(t,"WeavyRealtime"),t},"WeavyRealtimeMixin");function ai(s){return s<0?-1:s===0?0:1}u(ai,"Ce");p(ai,"signum");function wc(s,t,i){return(1-i)*s+i*t}u(wc,"Co");p(wc,"lerp");function PM(s,t,i){return i<s?s:i>t?t:i}u(PM,"I1");p(PM,"clampInt");function xm(s,t,i){return i<s?s:i>t?t:i}u(xm,"Hc");p(xm,"clampDouble");function cv(s){return s=s%360,s<0&&(s=s+360),s}u(cv,"Ah");p(cv,"sanitizeDegreesDouble");function CM(s,t){return cv(t-s)<=180?1:-1}u(CM,"T1");p(CM,"rotationDirection");function QM(s,t){return 180-Math.abs(Math.abs(s-t)-180)}u(QM,"F1");p(QM,"differenceDegrees");function y1(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]}u(y1,"Qd");p(y1,"matrixMultiply");const CD=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],QD=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],TD=[95.047,100,108.883];function hv(s,t,i){return(255<<24|(s&255)<<16|(t&255)<<8|i&255)>>>0}u(hv,"Lh");p(hv,"argbFromRgb");function p$(s){const t=nr(s[0]),i=nr(s[1]),n=nr(s[2]);return hv(t,i,n)}u(p$,"iu");p(p$,"argbFromLinrgb");function t5(s){return s>>16&255}u(t5,"Ay");p(t5,"redFromArgb");function i5(s){return s>>8&255}u(i5,"Ly");p(i5,"greenFromArgb");function n5(s){return s&255}u(n5,"Ry");p(n5,"blueFromArgb");function TM(s,t,i){const n=QD,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=nr(r),c=nr(a),h=nr(o);return hv(l,c,h)}u(TM,"B1");p(TM,"argbFromXyz");function RM(s){const t=Ta(t5(s)),i=Ta(i5(s)),n=Ta(n5(s));return y1([t,i,n],CD)}u(RM,"U1");p(RM,"xyzFromArgb");function MM(s){const t=gs(s),i=nr(t);return hv(i,i,i)}u(MM,"q1");p(MM,"argbFromLstar");function m1(s){const t=RM(s)[1];return 116*s5(t/100)-16}u(m1,"Kd");p(m1,"lstarFromArgb");function gs(s){return 100*EM((s+16)/116)}u(gs,"rs");p(gs,"yFromLstar");function w1(s){return s5(s/100)*116-16}u(w1,"Gd");p(w1,"lstarFromY");function Ta(s){const t=s/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}u(Ta,"Er");p(Ta,"linearized");function nr(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,PM(0,255,Math.round(i*255))}u(nr,"Ds");p(nr,"delinearized");function AM(){return TD}u(AM,"N1");p(AM,"whitePointD65");function s5(s){const t=.008856451679035631,i=24389/27;return s>t?Math.pow(s,1/3):(i*s+16)/116}u(s5,"Iy");p(s5,"labF");function EM(s){const t=.008856451679035631,i=24389/27,n=s*s*s;return n>t?n:(116*s-16)/i}u(EM,"j1");p(EM,"labInvf");var fo;const zM=(fo=class{static make(t=AM(),i=200/Math.PI*gs(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,d=.8+r/10,f=d>=.9?wc(.59,.69,(d-.9)*10):wc(.525,.59,(d-.8)*10);let y=a?1:d*(1-1/3.6*Math.exp((-i-42)/92));y=y>1?1:y<0?0:y;const w=d,g=[y*(100/l)+1-y,y*(100/c)+1-y,y*(100/h)+1-y],b=1/(5*i+1),k=b*b*b*b,$=1-k,C=k*i+.1*$*$*Math.cbrt(5*i),E=gs(n)/t[1],A=1.48+Math.sqrt(E),M=.725/Math.pow(E,.2),L=M,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)],j=(2*q[0]+q[1]+.05*q[2])*M;return new fo(E,j,M,L,f,w,g,C,Math.pow(C,.25),A)}constructor(t,i,n,r,a,o,l,c,h,d){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=d}},u(fo,"pl"),fo);p(zM,"ViewingConditions");let vs=zM;vs.DEFAULT=vs.make();var Mi;const _M=(Mi=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 Mi.fromIntInViewingConditions(t,vs.DEFAULT)}static fromIntInViewingConditions(t,i){const n=(t&16711680)>>16,r=(t&65280)>>8,a=t&255,o=Ta(n),l=Ta(r),c=Ta(a),h=.41233895*o+.35762064*l+.18051042*c,d=.2126*o+.7152*l+.0722*c,f=.01932141*o+.11916382*l+.95034478*c,y=.401288*h+.650173*d-.051461*f,w=-.250268*h+1.204414*d+.045854*f,g=-.002079*h+.048952*d+.953127*f,b=i.rgbD[0]*y,k=i.rgbD[1]*w,$=i.rgbD[2]*g,C=Math.pow(i.fl*Math.abs(b)/100,.42),E=Math.pow(i.fl*Math.abs(k)/100,.42),A=Math.pow(i.fl*Math.abs($)/100,.42),M=ai(b)*400*C/(C+27.13),L=ai(k)*400*E/(E+27.13),I=ai($)*400*A/(A+27.13),q=(11*M+-12*L+I)/11,j=(M+L-2*I)/9,ee=(20*M+20*L+21*I)/20,se=(40*M+20*L+I)/20,oe=Math.atan2(j,q)*180/Math.PI,ge=oe<0?oe+360:oe>=360?oe-360:oe,re=ge*Math.PI/180,Le=se*i.nbb,Ce=100*Math.pow(Le/i.aw,i.c*i.z),Ye=4/i.c*Math.sqrt(Ce/100)*(i.aw+4)*i.fLRoot,Ve=ge<20.14?ge+360:ge,yt=.25*(Math.cos(Ve*Math.PI/180+2)+3.8),Qt=5e4/13*yt*i.nc*i.ncb*Math.sqrt(q*q+j*j)/(ee+.305),kt=Math.pow(Qt,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),Gt=kt*Math.sqrt(Ce/100),si=Gt*i.fLRoot,Kt=50*Math.sqrt(kt*i.c/(i.aw+4)),es=(1+100*.007)*Ce/(1+.007*Ce),Ws=1/.0228*Math.log(1+.0228*si),gw=Ws*Math.cos(re),Yo=Ws*Math.sin(re);return new Mi(ge,Gt,Ce,Ye,si,Kt,es,gw,Yo)}static fromJch(t,i,n){return Mi.fromJchInViewingConditions(t,i,n,vs.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,d=(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 Mi(n,i,t,a,o,c,d,y,w)}static fromUcs(t,i,n){return Mi.fromUcsInViewingConditions(t,i,n,vs.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 d=t/(1-(t-100)*.007);return Mi.fromJchInViewingConditions(d,c,h,r)}toInt(){return this.viewed(vs.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),d=Math.cos(r),f=23*(c+.305)*n/(23*l+11*n*d+108*n*h),y=f*d,w=f*h,g=(460*c+451*y+288*w)/1403,b=(460*c-891*y-261*w)/1403,k=(460*c-220*y-6300*w)/1403,$=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),C=ai(g)*(100/t.fl)*Math.pow($,1/.42),E=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),A=ai(b)*(100/t.fl)*Math.pow(E,1/.42),M=Math.max(0,27.13*Math.abs(k)/(400-Math.abs(k))),L=ai(k)*(100/t.fl)*Math.pow(M,1/.42),I=C/t.rgbD[0],q=A/t.rgbD[1],j=L/t.rgbD[2],ee=1.86206786*I-1.01125463*q+.14918677*j,se=.38752654*I+.62144744*q-.00897398*j,oe=-.0158415*I-.03412294*q+1.04996444*j;return TM(ee,se,oe)}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,d=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(d)/100,.42),g=ai(c)*400*f/(f+27.13),b=ai(h)*400*y/(y+27.13),k=ai(d)*400*w/(w+27.13),$=(11*g+-12*b+k)/11,C=(g+b-2*k)/9,E=(20*g+20*b+21*k)/20,A=(40*g+20*b+k)/20,M=Math.atan2(C,$)*180/Math.PI,L=M<0?M+360:M>=360?M-360:M,I=L*Math.PI/180,q=A*r.nbb,j=100*Math.pow(q/r.aw,r.c*r.z),ee=4/r.c*Math.sqrt(j/100)*(r.aw+4)*r.fLRoot,se=L<20.14?L+360:L,oe=1/4*(Math.cos(se*Math.PI/180+2)+3.8),ge=5e4/13*oe*r.nc*r.ncb*Math.sqrt($*$+C*C)/(E+.305),re=Math.pow(ge,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),Le=re*Math.sqrt(j/100),Ce=Le*r.fLRoot,Ye=50*Math.sqrt(re*r.c/(r.aw+4)),Ve=(1+100*.007)*j/(1+.007*j),yt=Math.log(1+.0228*Ce)/.0228,Qt=yt*Math.cos(I),kt=yt*Math.sin(I);return new Mi(L,Le,j,ee,Ce,Ye,Ve,Qt,kt)}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),d=Math.cos(r),f=23*(c+.305)*n/(23*l+11*n*d+108*n*h),y=f*d,w=f*h,g=(460*c+451*y+288*w)/1403,b=(460*c-891*y-261*w)/1403,k=(460*c-220*y-6300*w)/1403,$=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),C=ai(g)*(100/t.fl)*Math.pow($,1/.42),E=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),A=ai(b)*(100/t.fl)*Math.pow(E,1/.42),M=Math.max(0,27.13*Math.abs(k)/(400-Math.abs(k))),L=ai(k)*(100/t.fl)*Math.pow(M,1/.42),I=C/t.rgbD[0],q=A/t.rgbD[1],j=L/t.rgbD[2],ee=1.86206786*I-1.01125463*q+.14918677*j,se=.38752654*I+.62144744*q-.00897398*j,oe=-.0158415*I-.03412294*q+1.04996444*j;return[ee,se,oe]}},u(Mi,"oi"),Mi);p(_M,"Cam16");let zn=_M;var ve;const LM=(ve=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 ai(t)*400*i/(i+27.13)}static hueOf(t){const i=y1(t,ve.SCALED_DISCOUNT_FROM_LINRGB),n=ve.chromaticAdaptation(i[0]),r=ve.chromaticAdaptation(i[1]),a=ve.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=ve.sanitizeRadians(i-t),a=ve.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=ve.intercept(t[r],i,n[r]);return ve.lerpPoint(t,a,n)}static isBounded(t){return 0<=t&&t<=100}static nthVertex(t,i){const n=ve.Y_FROM_LINRGB[0],r=ve.Y_FROM_LINRGB[1],a=ve.Y_FROM_LINRGB[2],o=i%4<=1?0:100,l=i%2===0?0:100;if(i<4){const c=o,h=l,d=(t-c*r-h*a)/n;return ve.isBounded(d)?[d,c,h]:[-1,-1,-1]}else if(i<8){const c=o,h=l,d=(t-h*n-c*a)/r;return ve.isBounded(d)?[h,d,c]:[-1,-1,-1]}else{const c=o,h=l,d=(t-c*n-h*r)/a;return ve.isBounded(d)?[c,h,d]:[-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 d=ve.nthVertex(t,h);if(d[0]<0)continue;const f=ve.hueOf(d);if(!l){n=d,r=d,a=f,o=f,l=!0;continue}(c||ve.areInCyclicOrder(a,f,o))&&(c=!1,ve.areInCyclicOrder(a,i,f)?(r=d,o=f):(n=d,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=ve.bisectToSegment(t,i);let r=n[0],a=ve.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=ve.criticalPlaneBelow(ve.trueDelinearized(r[l])),h=ve.criticalPlaneAbove(ve.trueDelinearized(o[l]))):(c=ve.criticalPlaneAbove(ve.trueDelinearized(r[l])),h=ve.criticalPlaneBelow(ve.trueDelinearized(o[l])));for(let d=0;d<8&&!(Math.abs(h-c)<=1);d++){const f=Math.floor((c+h)/2),y=ve.CRITICAL_PLANES[f],w=ve.setCoordinate(r,y,o,l),g=ve.hueOf(w);ve.areInCyclicOrder(a,i,g)?(o=w,h=f):(r=w,a=g,c=f)}}return ve.midpoint(r,o)}static inverseChromaticAdaptation(t){const i=Math.abs(t),n=Math.max(0,27.13*i/(400-i));return ai(t)*Math.pow(n,1/.42)}static findResultByJ(t,i,n){let r=Math.sqrt(n)*11;const a=vs.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 d=0;d<5;d++){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,b=23*(g+.305)*w/(23*l+11*w*h+108*w*c),k=b*h,$=b*c,C=(460*g+451*k+288*$)/1403,E=(460*g-891*k-261*$)/1403,A=(460*g-220*k-6300*$)/1403,M=ve.inverseChromaticAdaptation(C),L=ve.inverseChromaticAdaptation(E),I=ve.inverseChromaticAdaptation(A),q=y1([M,L,I],ve.LINRGB_FROM_SCALED_DISCOUNT);if(q[0]<0||q[1]<0||q[2]<0)return 0;const j=ve.Y_FROM_LINRGB[0],ee=ve.Y_FROM_LINRGB[1],se=ve.Y_FROM_LINRGB[2],oe=j*q[0]+ee*q[1]+se*q[2];if(oe<=0)return 0;if(d===4||Math.abs(oe-n)<.002)return q[0]>100.01||q[1]>100.01||q[2]>100.01?0:p$(q);r=r-(oe-n)*r/(2*oe)}return 0}static solveToInt(t,i,n){if(i<1e-4||n<1e-4||n>99.9999)return MM(n);t=cv(t);const r=t/180*Math.PI,a=gs(n),o=ve.findResultByJ(r,i,a);if(o!==0)return o;const l=ve.bisectToLimit(a,r);return p$(l)}static solveToCam(t,i,n){return zn.fromInt(ve.solveToInt(t,i,n))}},u(ve,"it"),ve);p(LM,"HctSolver");let er=LM;er.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];er.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];er.Y_FROM_LINRGB=[.2126,.7152,.0722];er.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 Ps;const IM=(Ps=class{static from(t,i,n){return new Ps(er.solveToInt(t,i,n))}static fromInt(t){return new Ps(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(er.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(er.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(er.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const i=zn.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=m1(t),this.argb=t}setInternalState(t){const i=zn.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=m1(t),this.argb=t}inViewingConditions(t){const i=zn.fromInt(this.toInt()).xyzInViewingConditions(t),n=zn.fromXyzInViewingConditions(i[0],i[1],i[2],vs.make());return Ps.from(n.hue,n.chroma,w1(i[1]))}},u(Ps,"zr"),Ps);p(IM,"Hct");let gi=IM;var yo;const WM=(yo=class{static harmonize(t,i){const n=gi.fromInt(t),r=gi.fromInt(i),a=QM(n.hue,r.hue),o=Math.min(a*.5,15),l=cv(n.hue+o*CM(n.hue,r.hue));return gi.from(l,n.chroma,n.tone).toInt()}static hctHue(t,i,n){const r=yo.cam16Ucs(t,i,n),a=zn.fromInt(r),o=zn.fromInt(t);return gi.from(a.hue,o.chroma,m1(t)).toInt()}static cam16Ucs(t,i,n){const r=zn.fromInt(t),a=zn.fromInt(i),o=r.jstar,l=r.astar,c=r.bstar,h=a.jstar,d=a.astar,f=a.bstar,y=o+(h-o)*n,w=l+(d-l)*n,g=c+(f-c)*n;return zn.fromUcs(y,w,g).toInt()}},u(yo,"ul"),yo);p(WM,"Blend");let Tn=WM;var nn;const VM=(nn=class{static ratioOfTones(t,i){return t=xm(0,100,t),i=xm(0,100,i),nn.ratioOfYs(gs(t),gs(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=gs(t),r=i*(n+5)-5,a=nn.ratioOfYs(r,n),o=Math.abs(a-i);if(a<i&&o>.04)return-1;const l=w1(r)+.4;return l<0||l>100?-1:l}static darker(t,i){if(t<0||t>100)return-1;const n=gs(t),r=(n+5)/i-5,a=nn.ratioOfYs(n,r),o=Math.abs(a-i);if(a<i&&o>.04)return-1;const l=w1(r)-.4;return l<0||l>100?-1:l}static lighterUnsafe(t,i){const n=nn.lighter(t,i);return n<0?100:n}static darkerUnsafe(t,i){const n=nn.darker(t,i);return n<0?0:n}},u(nn,"Qi"),nn);p(VM,"Contrast");let Vi=VM;var mo;const ZM=(mo=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 mo.isDisliked(t)?gi.from(t.hue,t.chroma,70):t}},u(mo,"yl"),mo);p(ZM,"DislikeAnalyzer");let RD=ZM;var Rt;const qM=(Rt=class{static fromPalette(t){return new Rt(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),d=l==="nearer"||l==="lighter"&&!t.isDark||l==="darker"&&t.isDark,f=d?r:a,y=d?a:r,w=this.name===f.name,g=t.isDark?1:-1,b=f.contrastCurve.getContrast(t.contrastLevel),k=y.contrastCurve.getContrast(t.contrastLevel),$=f.tone(t);let C=Vi.ratioOfTones(h,$)>=b?$:Rt.foregroundTone(h,b);const E=y.tone(t);let A=Vi.ratioOfTones(h,E)>=k?E:Rt.foregroundTone(h,k);return i&&(C=Rt.foregroundTone(h,b),A=Rt.foregroundTone(h,k)),(A-C)*g>=o||(A=xm(0,100,C+o*g),(A-C)*g>=o||(C=xm(0,100,A-o*g))),50<=C&&C<60?g>0?(C=60,A=Math.max(A,C+o*g)):(C=49,A=Math.min(A,C+o*g)):50<=A&&A<60&&(c?g>0?(C=60,A=Math.max(A,C+o*g)):(C=49,A=Math.min(A,C+o*g)):g>0?A=60:A=49),w?C:A}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(Vi.ratioOfTones(r,n)>=a||(n=Rt.foregroundTone(r,a)),i&&(n=Rt.foregroundTone(r,a)),this.isBackground&&50<=n&&n<60&&(Vi.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)],[d,f]=[Math.max(c,h),Math.min(c,h)];if(Vi.ratioOfTones(d,n)>=a&&Vi.ratioOfTones(f,n)>=a)return n;const y=Vi.lighter(d,a),w=Vi.darker(f,a),g=[];return y!==-1&&g.push(y),w!==-1&&g.push(w),Rt.tonePrefersLightForeground(c)||Rt.tonePrefersLightForeground(h)?y<0?100:y:g.length===1?g[0]:w<0?0:w}return n}}static foregroundTone(t,i){const n=Vi.lighterUnsafe(t,i),r=Vi.darkerUnsafe(t,i),a=Vi.ratioOfTones(n,t),o=Vi.ratioOfTones(r,t);if(Rt.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 Rt.tonePrefersLightForeground(t)&&!Rt.toneAllowsLightForeground(t)?49:t}},u(Rt,"me"),Rt);p(qM,"DynamicColor");let he=qM;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 Fd;const DM=(Fd=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?wc(this.low,this.normal,(t- -1)/1):t<.5?wc(this.normal,this.medium,(t-0)/.5):t<1?wc(this.medium,this.high,(t-.5)/.5):this.high}},u(Fd,"pp"),Fd);p(DM,"ContrastCurve");let Ee=DM;var Hd;const UM=(Hd=class{constructor(t,i,n,r,a){this.roleA=t,this.roleB=i,this.delta=n,this.polarity=r,this.stayTogether=a}},u(Hd,"up"),Hd);p(UM,"ToneDeltaPair");let xi=UM;function Vo(s){return s.variant===km.FIDELITY||s.variant===km.CONTENT}u(Vo,"lo");p(Vo,"isFidelity");function rt(s){return s.variant===km.MONOCHROME}u(rt,"Ht");p(rt,"isMonochrome");function NM(s,t,i,n){let r=i,a=gi.from(s,t,i);if(a.chroma<t){let o=a.chroma;for(;a.chroma<t;){r+=n?-1:1;const l=gi.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}u(NM,"W1");p(NM,"findDesiredChromaByTone");function BM(s){return vs.make(void 0,void 0,s.isDark?30:80,void 0,void 0)}u(BM,"Q1");p(BM,"viewingConditionsForAlbers");function dv(s,t){const i=s.inViewingConditions(BM(t));return he.tonePrefersLightForeground(s.tone)&&!he.toneAllowsLightForeground(i.tone)?he.enableLightForeground(s.tone):he.enableLightForeground(i.tone)}u(dv,"Rh");p(dv,"performAlbers");var xr;const jM=(xr=class{static highestSurface(t){return t.isDark?xr.surfaceBright:xr.surfaceDim}},u(xr,"zo"),xr);p(jM,"MaterialDynamicColors");let V=jM;V.contentAccentToneDelta=15;V.primaryPaletteKeyColor=he.fromPalette({name:"primary_palette_key_color",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>s.primaryPalette.keyColor.tone,"tone")});V.secondaryPaletteKeyColor=he.fromPalette({name:"secondary_palette_key_color",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>s.secondaryPalette.keyColor.tone,"tone")});V.tertiaryPaletteKeyColor=he.fromPalette({name:"tertiary_palette_key_color",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>s.tertiaryPalette.keyColor.tone,"tone")});V.neutralPaletteKeyColor=he.fromPalette({name:"neutral_palette_key_color",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.neutralPalette.keyColor.tone,"tone")});V.neutralVariantPaletteKeyColor=he.fromPalette({name:"neutral_variant_palette_key_color",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.neutralVariantPalette.keyColor.tone,"tone")});V.background=he.fromPalette({name:"background",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?6:98,"tone"),isBackground:!0});V.onBackground=he.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 Ee(3,3,4.5,7)});V.surface=he.fromPalette({name:"surface",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?6:98,"tone"),isBackground:!0});V.surfaceDim=he.fromPalette({name:"surface_dim",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?6:87,"tone"),isBackground:!0});V.surfaceBright=he.fromPalette({name:"surface_bright",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?24:98,"tone"),isBackground:!0});V.surfaceContainerLowest=he.fromPalette({name:"surface_container_lowest",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?4:100,"tone"),isBackground:!0});V.surfaceContainerLow=he.fromPalette({name:"surface_container_low",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?10:96,"tone"),isBackground:!0});V.surfaceContainer=he.fromPalette({name:"surface_container",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?12:94,"tone"),isBackground:!0});V.surfaceContainerHigh=he.fromPalette({name:"surface_container_high",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?17:92,"tone"),isBackground:!0});V.surfaceContainerHighest=he.fromPalette({name:"surface_container_highest",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?22:90,"tone"),isBackground:!0});V.onSurface=he.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 Ee(4.5,7,11,21)});V.surfaceVariant=he.fromPalette({name:"surface_variant",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.isDark?30:90,"tone"),isBackground:!0});V.onSurfaceVariant=he.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 Ee(3,4.5,7,11)});V.inverseSurface=he.fromPalette({name:"inverse_surface",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?90:20,"tone")});V.inverseOnSurface=he.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 Ee(4.5,7,11,21)});V.outline=he.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 Ee(1.5,3,4.5,7)});V.outlineVariant=he.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 Ee(1,1,3,7)});V.shadow=he.fromPalette({name:"shadow",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>0,"tone")});V.scrim=he.fromPalette({name:"scrim",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>0,"tone")});V.surfaceTint=he.fromPalette({name:"surface_tint",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>s.isDark?80:40,"tone"),isBackground:!0});V.primary=he.fromPalette({name:"primary",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>rt(s)?s.isDark?100:0:s.isDark?80:40,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(3,4.5,7,11),toneDeltaPair:p(s=>new xi(V.primaryContainer,V.primary,15,"nearer",!1),"toneDeltaPair")});V.onPrimary=he.fromPalette({name:"on_primary",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>rt(s)?s.isDark?10:90:s.isDark?20:100,"tone"),background:p(s=>V.primary,"background"),contrastCurve:new Ee(4.5,7,11,21)});V.primaryContainer=he.fromPalette({name:"primary_container",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>Vo(s)?dv(s.sourceColorHct,s):rt(s)?s.isDark?85:25:s.isDark?30:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.primaryContainer,V.primary,15,"nearer",!1),"toneDeltaPair")});V.onPrimaryContainer=he.fromPalette({name:"on_primary_container",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>Vo(s)?he.foregroundTone(V.primaryContainer.tone(s),4.5):rt(s)?s.isDark?0:100:s.isDark?90:10,"tone"),background:p(s=>V.primaryContainer,"background"),contrastCurve:new Ee(4.5,7,11,21)});V.inversePrimary=he.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 Ee(3,4.5,7,11)});V.secondary=he.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 Ee(3,4.5,7,11),toneDeltaPair:p(s=>new xi(V.secondaryContainer,V.secondary,15,"nearer",!1),"toneDeltaPair")});V.onSecondary=he.fromPalette({name:"on_secondary",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>rt(s)?s.isDark?10:100:s.isDark?20:100,"tone"),background:p(s=>V.secondary,"background"),contrastCurve:new Ee(4.5,7,11,21)});V.secondaryContainer=he.fromPalette({name:"secondary_container",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>{const t=s.isDark?30:90;if(rt(s))return s.isDark?30:85;if(!Vo(s))return t;let i=NM(s.secondaryPalette.hue,s.secondaryPalette.chroma,t,!s.isDark);return i=dv(s.secondaryPalette.getHct(i),s),i},"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.secondaryContainer,V.secondary,15,"nearer",!1),"toneDeltaPair")});V.onSecondaryContainer=he.fromPalette({name:"on_secondary_container",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>Vo(s)?he.foregroundTone(V.secondaryContainer.tone(s),4.5):s.isDark?90:10,"tone"),background:p(s=>V.secondaryContainer,"background"),contrastCurve:new Ee(4.5,7,11,21)});V.tertiary=he.fromPalette({name:"tertiary",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?s.isDark?90:25:s.isDark?80:40,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(3,4.5,7,11),toneDeltaPair:p(s=>new xi(V.tertiaryContainer,V.tertiary,15,"nearer",!1),"toneDeltaPair")});V.onTertiary=he.fromPalette({name:"on_tertiary",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?s.isDark?10:90:s.isDark?20:100,"tone"),background:p(s=>V.tertiary,"background"),contrastCurve:new Ee(4.5,7,11,21)});V.tertiaryContainer=he.fromPalette({name:"tertiary_container",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>{if(rt(s))return s.isDark?60:49;if(!Vo(s))return s.isDark?30:90;const t=dv(s.tertiaryPalette.getHct(s.sourceColorHct.tone),s),i=s.tertiaryPalette.getHct(t);return RD.fixIfDisliked(i).tone},"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.tertiaryContainer,V.tertiary,15,"nearer",!1),"toneDeltaPair")});V.onTertiaryContainer=he.fromPalette({name:"on_tertiary_container",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?s.isDark?0:100:Vo(s)?he.foregroundTone(V.tertiaryContainer.tone(s),4.5):s.isDark?90:10,"tone"),background:p(s=>V.tertiaryContainer,"background"),contrastCurve:new Ee(4.5,7,11,21)});V.error=he.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 Ee(3,4.5,7,11),toneDeltaPair:p(s=>new xi(V.errorContainer,V.error,15,"nearer",!1),"toneDeltaPair")});V.onError=he.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 Ee(4.5,7,11,21)});V.errorContainer=he.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 Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.errorContainer,V.error,15,"nearer",!1),"toneDeltaPair")});V.onErrorContainer=he.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 Ee(4.5,7,11,21)});V.primaryFixed=he.fromPalette({name:"primary_fixed",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>rt(s)?40:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.primaryFixed,V.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.primaryFixedDim=he.fromPalette({name:"primary_fixed_dim",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>rt(s)?30:80,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.primaryFixed,V.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.onPrimaryFixed=he.fromPalette({name:"on_primary_fixed",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>rt(s)?100:10,"tone"),background:p(s=>V.primaryFixedDim,"background"),secondBackground:p(s=>V.primaryFixed,"secondBackground"),contrastCurve:new Ee(4.5,7,11,21)});V.onPrimaryFixedVariant=he.fromPalette({name:"on_primary_fixed_variant",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>rt(s)?90:30,"tone"),background:p(s=>V.primaryFixedDim,"background"),secondBackground:p(s=>V.primaryFixed,"secondBackground"),contrastCurve:new Ee(3,4.5,7,11)});V.secondaryFixed=he.fromPalette({name:"secondary_fixed",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>rt(s)?80:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.secondaryFixed,V.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.secondaryFixedDim=he.fromPalette({name:"secondary_fixed_dim",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>rt(s)?70:80,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.secondaryFixed,V.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.onSecondaryFixed=he.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 Ee(4.5,7,11,21)});V.onSecondaryFixedVariant=he.fromPalette({name:"on_secondary_fixed_variant",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>rt(s)?25:30,"tone"),background:p(s=>V.secondaryFixedDim,"background"),secondBackground:p(s=>V.secondaryFixed,"secondBackground"),contrastCurve:new Ee(3,4.5,7,11)});V.tertiaryFixed=he.fromPalette({name:"tertiary_fixed",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?40:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.tertiaryFixed,V.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.tertiaryFixedDim=he.fromPalette({name:"tertiary_fixed_dim",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?30:80,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.tertiaryFixed,V.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.onTertiaryFixed=he.fromPalette({name:"on_tertiary_fixed",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?100:10,"tone"),background:p(s=>V.tertiaryFixedDim,"background"),secondBackground:p(s=>V.tertiaryFixed,"secondBackground"),contrastCurve:new Ee(4.5,7,11,21)});V.onTertiaryFixedVariant=he.fromPalette({name:"on_tertiary_fixed_variant",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?90:30,"tone"),background:p(s=>V.tertiaryFixedDim,"background"),secondBackground:p(s=>V.tertiaryFixed,"secondBackground"),contrastCurve:new Ee(3,4.5,7,11)});var Un;const XM=(Un=class{static fromInt(t){const i=gi.fromInt(t);return Un.fromHct(i)}static fromHct(t){return new Un(t.hue,t.chroma,t)}static fromHueAndChroma(t,i){return new Un(t,i,Un.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=gi.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=gi.from(t,i,50+a),l=Math.abs(o.chroma-i);l<r&&(r=l,n=o);const c=gi.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=gi.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,i)),i}getHct(t){return gi.fromInt(this.tone(t))}},u(Un,"Ps"),Un);p(XM,"TonalPalette");let Ge=XM;function f$(s){const t=t5(s),i=i5(s),n=n5(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("")}u(f$,"su");p(f$,"hexFromArgb");function FM(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=Mn(s.slice(0,1).repeat(2)),a=Mn(s.slice(1,2).repeat(2)),o=Mn(s.slice(2,3).repeat(2))):i?(r=Mn(s.slice(0,2)),a=Mn(s.slice(2,4)),o=Mn(s.slice(4,6))):n&&(r=Mn(s.slice(2,4)),a=Mn(s.slice(4,6)),o=Mn(s.slice(6,8))),(255<<24|(r&255)<<16|(a&255)<<8|o&255)>>>0}u(FM,"K1");p(FM,"argbFromHex");function Mn(s){return parseInt(s,16)}u(Mn,"Pi");p(Mn,"parseIntHex");function HM(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}u(HM,"G1");p(HM,"argbFromRgba");function YM(s){jt();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}u(YM,"Y1");p(YM,"getComputedColor");function g1(s){return getComputedStyle(s).getPropertyValue("--wy-theme-color")||void 0}u(g1,"Zd");p(g1,"getCSSThemeColor");function GM(s,t){let i=g1(s);const n=new MutationObserver(()=>{const o=g1(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()}u(GM,"Z1");p(GM,"observeCSSThemeColor");function v1(){var s;return jt(),((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}u(v1,"Xd");p(v1,"getMetaThemeColor");function KM(s){jt();const t=Array.from(document.head.querySelectorAll("meta[name='theme-color']"));if(!t)return()=>{};let i=v1();const n=p(()=>{const l=v1();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))}}u(KM,"X1");p(KM,"observeMetaThemeColor");const yy=[],MD=16;function JM(s,t=!1){var i;if(yy.some(M=>M.seedColor===s)){const M=(i=yy.find(L=>L.seedColor===s))==null?void 0:i.colors;if(M)return M}const n=[];t&&n.push(`--wy-theme-color:${s};`);let r=s;!s.startsWith("#")&&!s.startsWith("rgb")&&(r=YM(s));const a=s.startsWith("#")?FM(r):HM(r),o=gi.fromInt(a),l=o.hue,c=o.chroma,h=Math.max(48,c),d=Math.min(h,84),f=360/16,y=27.4,w=-8,g=(l+360-y-w+f/2)%f+y+w-f/2,b={primary:Ge.fromHueAndChroma(l,h),secondary:Ge.fromHueAndChroma(l,h/3),tertiary:Ge.fromHueAndChroma(l+60,h/2),neutral:Ge.fromHueAndChroma(l,Math.min(c/12,4)),"neutral-variant":Ge.fromHueAndChroma(l,Math.min(c/6,8)),error:Ge.fromHueAndChroma(g,84),warning:Ge.fromHueAndChroma(g+4*f,d),red:Ge.fromHueAndChroma(g,d),"deep-orange":Ge.fromHueAndChroma(g+1*f,d),orange:Ge.fromHueAndChroma(g+2*f,d),amber:Ge.fromHueAndChroma(g+3*f,d),yellow:Ge.fromHueAndChroma(g+4*f,d),lime:Ge.fromHueAndChroma(g+5*f,d),"light-green":Ge.fromHueAndChroma(g+6*f,d),green:Ge.fromHueAndChroma(g+7*f,d),teal:Ge.fromHueAndChroma(g+8*f,d),cyan:Ge.fromHueAndChroma(g+9*f,d),"light-blue":Ge.fromHueAndChroma(g+10*f,d),blue:Ge.fromHueAndChroma(g+11*f,d),indigo:Ge.fromHueAndChroma(g+12*f,d),"deep-purple":Ge.fromHueAndChroma(g+13*f,d),purple:Ge.fromHueAndChroma(g+14*f,d),pink:Ge.fromHueAndChroma(g+15*f,d),gray:Ge.fromHueAndChroma(l,4)},k={99:99,95:95,90:90,80:80,70:70,60:60,50:50,40:40,30:30,20:20,10:10},$={primary:k,secondary:k,tertiary:k,neutral:k,"neutral-variant":k,error:k,warning:k,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 M in $){const L=$[M];for(const I in L){const q=f$(b[M].tone(L[I]));n.push(`--wy-${M}-${I}:${q};`)}}const C={light:b.primary.tone(40),dark:b.primary.tone(80)},E={light:b.neutral.tone(99),dark:b.neutral.tone(10)},A={"surface-1":{light:Tn.cam16Ucs(E.light,C.light,.05),dark:Tn.cam16Ucs(E.dark,C.dark,.05)},"surface-2":{light:Tn.cam16Ucs(E.light,C.light,.08),dark:Tn.cam16Ucs(E.dark,C.dark,.08)},"surface-3":{light:Tn.cam16Ucs(E.light,C.light,.11),dark:Tn.cam16Ucs(E.dark,C.dark,.11)},"surface-4":{light:Tn.cam16Ucs(E.light,C.light,.12),dark:Tn.cam16Ucs(E.dark,C.dark,.12)},"surface-5":{light:Tn.cam16Ucs(E.light,C.light,.14),dark:Tn.cam16Ucs(E.dark,C.dark,.14)}};for(const M in A){const L=A[M];for(const I in L){const q=f$(L[I]);n.push(`--wy-${M}-${I}:${q};`)}}return yy.unshift({seedColor:s,colors:n}),yy.length=Math.min(yy.length,MD),n}u(JM,"tm");p(JM,"generateThemeColors");const AD=p(s=>{if(jt(),rv)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"),Gi=de`.wy-light :where(wy-chat),.wy-light :where(wy-comments),.wy-light :where(wy-files),.wy-light :where(wy-messenger),.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-files),.wy-dark:not(.wy-light) :where(wy-messenger),.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)}`,ED=de`@property --wy-component-color{syntax: \"<color>\"; inherits: true; initial-value: currentColor;}@property --wy-component-background-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}`,zD=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),AD([ED,Gi])}},u(i,"t"),i),p(t,"WeavyStyles"),t},"WeavyStylesMixin"),_D=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this.version=an.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),d=c.split(".").slice(0,2);if(h[0]!==d[0])throw new Error;h[1]!==d[1]&&console.warn(`Version inconsistency: ${an.sourceName}@${this.version} ≠ ${(a=this.url)==null?void 0:a.hostname}@${c}`)}catch{throw new Error(`Version mismatch! ${an.sourceName}@${this.version} ≠ ${(o=this.url)==null?void 0:o.hostname}@${c}`)}}},u(i,"t"),i),p(t,"WeavyVersion"),t},"WeavyVersionMixin");var WO,Yd;let eA=(WO=(Yd=class extends Event{constructor(t,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=i,this.subscribe=n??!1}},u(Yd,"nn"),Yd),p(WO,"s"),WO);var VO,Gd;let zr=(VO=(Gd=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 eA(this.context,this.t,this.subscribe))}},u(Gd,"an"),Gd),p(VO,"s"),VO);var Kd;const tA=(Kd=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()}},u(Kd,"yp"),Kd);p(tA,"s");let LD=tA;var ZO,Jd;let ID=(ZO=(Jd=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},u(Jd,"on"),Jd),p(ZO,"e"),ZO);var qO,eu;let y$=(qO=(eu=class extends LD{constructor(t,i,n){var r,a;super(i.context!==void 0?i.initialValue:n),this.onContextRequest=o=>{const l=o.composedPath()[0];o.context===this.context&&l!==this.host&&(o.stopPropagation(),this.addCallback(o.callback,l,o.subscribe))},this.onProviderRequest=o=>{const l=o.composedPath()[0];if(o.context!==this.context||l===this.host)return;const c=new Set;for(const[h,{consumerHost:d}]of this.subscriptions)c.has(h)||(c.add(h),d.dispatchEvent(new eA(this.context,h,!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 ID(this.context))}},u(eu,"cn"),eu),p(qO,"i"),qO);function Fr({context:s}){return(t,i)=>{const n=new WeakMap;if(typeof i=="object")return i.addInitializer(function(){n.set(this,new y$(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 y$(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)}}}u(Fr,"er");p(Fr,"e$3");function gt({context:s,subscribe:t}){return(i,n)=>{typeof n=="object"?n.addInitializer(function(){new zr(this,{context:s,callback:p(r=>{i.set.call(this,r)},"callback"),subscribe:t})}):i.constructor.addInitializer(r=>{new zr(r,{context:s,callback:p(a=>{r[n]=a},"callback"),subscribe:t})})}}u(gt,"Qt");p(gt,"c");var tu;const iA=(tu=class extends Event{constructor(t,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=i,this.subscribe=n??!1}},u(tu,"wp"),tu);p(iA,"ContextRequestEvent");let WD=iA;var iu;const nA=(iu=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},u(iu,"fp"),iu);p(nA,"ContextProviderEvent");let VD=nA;var nu;const sA=(nu=class extends y${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 G||this.dispatchWhenConnected()}dispatchWhenConnected(){this.isAttached&&(this.host.isConnected?this.host.dispatchEvent(new VD(this._context)):requestAnimationFrame(this.dispatchWhenConnected))}detachListeners(){this.isAttached=!1,this.host.removeEventListener("context-request",this.onContextRequest),this.host.removeEventListener("context-provider",this.onProviderRequest)}},u(nu,"mp"),nu);p(sA,"WyContextProvider");let rA=sA;const Ct=Symbol.for("weavy-client");function aA(s,t){return jt(),new rA(s,{context:Ct,initialValue:t})}u(aA,"am");p(aA,"createWeavyContextProvider");const en=L1()?aA(document.documentElement):void 0,ZD=p(s=>{var n;var t,i;return i=(n=class extends s{constructor(...a){super(...a),U(this,t),this.host!==document.documentElement?(en==null||en.detachListeners(),D(this,t,new rA(this.host,{context:Ct,initialValue:this}))):en==null||en.setValue(this)}destroy(){var a;super.destroy(),this.host!==document.documentElement?(a=P(this,t))==null||a.detachListeners():(en==null?void 0:en.value)===this&&(en==null||en.setValue(void 0))}},u(n,"i"),n),t=new WeakMap,p(i,"WeavyContextProvider"),i},"WeavyContextProviderMixin");var cg,hg,Ns,My,Mt;const Ay=(Mt=class{constructor(t){U(this,cg),U(this,hg),U(this,Ns),U(this,My),this.weavySid=yf(),this.weavyId=`${Mt.sourceName}#${this.weavySid}`,this.cloudFilePickerUrl=Mt.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=Mt.defaults.disableEnvironmentImports,this.gcTime=Mt.defaults.gcTime,this.reactions=Mt.defaults.reactions,this.scrollBehavior=Mt.defaults.scrollBehavior,this.staleTime=Mt.defaults.staleTime,this.tokenFactoryRetryDelay=Mt.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=Mt.defaults.tokenFactoryTimeout,D(this,hg,new Promise(n=>{D(this,cg,n)})),D(this,My,!1),console.info(`${Mt.sourceName}@${Mt.version} #${this.weavySid}`),jt(),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 P(this,hg)}get url(){return P(this,Ns)}set url(t){var i;if(this.isDestroyed)throw new wt;try{if(typeof t=="string")t&&D(this,Ns,new URL(t,window.location.toString()));else if(t instanceof URL)D(this,Ns,t||void 0);else if(t==null)D(this,Ns,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),P(this,Ns)&&((i=P(this,cg))==null||i.call(this,P(this,Ns)))}get cachePrefix(){return`${Mt.version}:${this.url}`}get isDestroyed(){return P(this,My)}destroy(){D(this,My,!0),console.info(this.weavyId,"was destroyed")}},u(Mt,"Gt"),Mt);cg=new WeakMap,hg=new WeakMap,Ns=new WeakMap,My=new WeakMap,p(Ay,"WeavyClient"),Ay.version="26.0.2",Ay.sourceName="@weavy/uikit-web",Ay.defaults={cloudFilePickerUrl:"https://filebrowser.weavy.io/v14/",disableEnvironmentImports:!1,gcTime:1e3*60*60*24,locale:bM,reactions:["😍","😎","😉","😜","👍"],notificationEvents:!1,scrollBehavior:"auto",staleTime:1e3*1,tokenFactoryRetryDelay:2e3,tokenFactoryTimeout:2e4};let an=Ay;var su;const oA=(su=class extends ZD(gD(PD($D(OD(xD(vD(SD(_D(bD(zD(an))))))))))){},u(su,"vp"),su);p(oA,"Weavy");let Gy=oA;var ru;const lA=(ru=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 WD(this.context,this._callback,this.subscribe))}},u(ru,"gp"),ru);p(lA,"ContextConsumer");let qD=lA;var au;const cA=(au=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 qD(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 N$(i),this.context.dispatchRequest()}hostUpdate(){var t,i;(t=this.context)!=null&&t.value&&((i=this.resolveContext)==null||i.call(this,this.context.value))}},u(au,"bp"),au);p(cA,"ContextController");let DD=cA;const UD={attribute:!0,type:String,converter:s1,reflect:!1,hasChanged:_k},ND=p((s=UD,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$1");function x(s){return(t,i)=>typeof i=="object"?ND(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)}u(x,"w");p(x,"n");function B(s){return x({...s,state:!0,attribute:!1})}u(B,"D");p(B,"r");const BD=p((s,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(s,t,i),i),"e$2");function hA(s){return(t,i)=>{const{slot:n,selector:r}=s??{},a="slot"+(n?`[name=${n}]`:":not([name])");return BD(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))}})}}u(hA,"hm");p(hA,"o");var dg,ou;const dA=(ou=class{constructor(t){U(this,dg),this.notifications="button-list",this.notificationsBadge="count",D(this,dg,t),Object.keys(this).forEach(i=>{i in t&&Object.assign(this,{[i]:t[i]})})}get component(){return P(this,dg)}},u(ou,"xp"),ou);dg=new WeakMap,p(dA,"WeavyComponentSettings");let w4=dA;const uA=Symbol.for("weavy-component-settings");var Wf=(s=>(s.Chat="chat",s.Comments="comments",s.Feeds="feeds",s.Files="files",s.Messenger="messenger",s))(Wf||{});const g4={attachments:"attachments",bots:"bots",cloud_files:"cloudFiles",comments:"comments",embeds:"embeds",google_meet:"googleMeet",meetings:"meetings",mentions:"mentions",microsoft_teams:"microsoftTeams",polls:"polls",previews:"previews",reactions:"reactions",receipts:"receipts",thumbnails:"thumbnails",typing:"typing",versions:"versions",web_dav:"webDAV",webhooks:"webhooks",zoom_meetings:"zoomMeetings"},jD={attachments:"noAttachments",cloud_files:"noCloudFiles",comments:"noComments",embeds:"noEmbeds",google_meet:"noGoogleMeet",mentions:"noMentions",microsoft_teams:"noMicrosoftTeams",polls:"noPolls",previews:"noPreviews",reactions:"noReactions",receipts:"noReceipts",thumbnails:"noThumbnails",typing:"noTyping",versions:"noVersions",web_dav:"noWebDAV",zoom_meetings:"noZoomMeetings"};var lu;const pA=(lu=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 Lo(this.host),this.context=new zr(this.host,{context:Ct,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 eM(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=If(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)}},u(lu,"$p"),lu);p(pA,"QueryController");let zi=pA;const r5=Symbol.for("weavy-app"),uv=Symbol.for("weavy-user"),a5=Symbol.for("weavy-product-features"),fA=Symbol.for("weavy-link"),yA=Symbol.for("weavy-bot-user");var XD=Object.defineProperty,FD=Object.getOwnPropertyDescriptor,Ie=p((s,t,i,n)=>{for(var r=n>1?void 0:n?FD(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&&XD(t,i,r),r},"__decorateClass$18"),Ey,zy,ug,pg,fg,yg,_y,Ly,mg,wg,gg,vg,Og,bg,va,Ul,Nl,hs,cu;const mA=(cu=class extends G{constructor(){super(),U(this,Ey),U(this,zy),U(this,ug),U(this,pg),U(this,fg),U(this,yg),U(this,_y),U(this,Ly),U(this,mg),U(this,wg),U(this,gg),U(this,vg),U(this,Og),U(this,bg),U(this,va),U(this,Ul),U(this,Nl),U(this,hs),this.storage=qR("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(B$)&&this.matchesLink(t.detail.link)&&t.preventDefault()},this.notifications="button-list",this.notificationsBadge="count",this.noAttachments=!1,this.noCloudFiles=!1,this.noComments=!1,this.noEmbeds=!1,this.noGoogleMeet=!1,this.noMentions=!1,this.noMicrosoftTeams=!1,this.noPolls=!1,this.noPreviews=!1,this.noReactions=!1,this.noReceipts=!1,this.noThumbnails=!1,this.noTyping=!1,this.noVersions=!1,this.noWebDAV=!1,this.noZoomMeetings=!1,D(this,zy,new Promise(t=>{D(this,Ey,t)})),D(this,pg,new Promise(t=>{D(this,ug,t)})),D(this,yg,new Promise(t=>{D(this,fg,t)})),D(this,Ly,new Promise(t=>{D(this,_y,t)})),D(this,wg,new Promise(t=>{D(this,mg,t)})),D(this,vg,new Promise(t=>{D(this,gg,t)})),D(this,bg,new Promise(t=>{D(this,Og,t)})),D(this,va,new zi(this)),D(this,Ul,new zi(this)),D(this,Nl,new zi(this)),D(this,hs,new zi(this)),this.settings=new w4(this)}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!==Bi.Unknown&&this.uid&&((r=t.app)==null?void 0:r.uid)===this.uid)}get link(){return this._link}set link(t){const i=this._link;!this.uid&&this.componentType&&this.componentType!==Bi.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,Ly,new Promise(t=>{D(this,_y,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}async whenApp(){return await P(this,zy)}async whenBotUser(){return await P(this,pg)}async whenHasFeatures(){return await P(this,yg)}async whenLink(){return await P(this,Ly)}async whenSettings(){return await P(this,wg)}async whenUser(){return await P(this,vg)}async whenWeavy(){return await P(this,bg)}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.hasFeatures&&this.requestUpdate("hasFeatures"),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 Lo(this),super.scheduleUpdate()}willUpdate(t){var i,n,r,a,o,l,c,h,d,f,y,w,g,b,k,$,C,E,A,M,L;if(super.willUpdate(t),this.weavyContextConsumer??(this.weavyContextConsumer=new zr(this,{context:Ct,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),Object.keys(this.settings).find(I=>t.has(I))&&(this.settings=new w4(this)),t.has("weavy")&&this.weavy&&P(this,hs).trackQuery(cn(this.weavy,["user"])),(a=P(this,hs).result)!=null&&a.isPending||this.user&&P(this,hs).result.data&&this.user.id!==P(this,hs).result.data.id&&(console.warn("User changed, invalidating cache"),(o=this.weavy)==null||o.queryClient.invalidateQueries()),(l=P(this,hs).result)!=null&&l.isPending||(this.user=(c=P(this,hs).result)==null?void 0:c.data),(t.has("productType")||t.has("weavy"))&&this.productType&&this.weavy&&P(this,Nl).trackQuery(cn(this.weavy,["features",this.productType])),!((h=P(this,Nl).result)!=null&&h.isPending)){const I=(d=P(this,Nl).result)==null?void 0:d.data;if(I){const q={};I.forEach(ee=>{const se=this[jD[ee]];g4[ee]?q[g4[ee]]=!se:console.warn("Unknown feature provided:",ee)});const j=this.hasFeatures;this.hasFeatures=q,this.requestUpdate("features",j)}}if(t.has("componentType")||t.has("uid")||t.has("name")||t.has("weavy"))if(D(this,zy,new Promise(I=>{D(this,Ey,I)})),this.componentType&&this.uid&&this.weavy){const I=this.name?{name:this.name}:void 0;P(this,va).trackQuery(pM(this.weavy,this.uid,this.componentType,I))}else P(this,va).untrackQuery(),this.app=void 0,this.name=this._initialAppName;(f=P(this,va).result)!=null&&f.isPending||(this.app=(y=P(this,va).result)==null?void 0:y.data,(w=this.app)!=null&&w.name&&(this.name=this.app.name)),(t.has("weavy")||t.has("bot"))&&this.weavy&&this.bot&&P(this,Ul).trackQuery(cn(this.weavy,["users",this.bot])),(g=P(this,Ul).result)!=null&&g.isPending||(this.botUser=(b=P(this,Ul).result)==null?void 0:b.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!==Bi.Unknown||(t.has("appTypes")||t.has("bot"))&&this.appTypes)&&this.readStorageLink(),t.has("link")&&this.link&&(console.info(`Opening notification link in ${this.uid??this.componentType??this.productType}`),this.consumeStorageLink()),t.has("app")&&this.app&&((k=P(this,Ey))==null||k.call(this,this.app)),t.has("botUser")&&this.botUser&&(($=P(this,ug))==null||$.call(this,this.botUser)),t.has("hasFeatures")&&this.hasFeatures&&((C=P(this,fg))==null||C.call(this,this.hasFeatures)),t.has("link")&&this.link&&((E=P(this,_y))==null||E.call(this,this.link)),t.has("settings")&&this.settings&&((A=P(this,mg))==null||A.call(this,this.settings)),t.has("user")&&this.user&&((M=P(this,gg))==null||M.call(this,this.user)),t.has("weavy")&&this.weavy&&(this.weavy.host.addEventListener("wy-notification",this.notificationEventHandler,{capture:!0}),(L=P(this,Og))==null||L.call(this,this.weavy))}},u(cu,"kp"),cu);Ey=new WeakMap,zy=new WeakMap,ug=new WeakMap,pg=new WeakMap,fg=new WeakMap,yg=new WeakMap,_y=new WeakMap,Ly=new WeakMap,mg=new WeakMap,wg=new WeakMap,gg=new WeakMap,vg=new WeakMap,Og=new WeakMap,bg=new WeakMap,va=new WeakMap,Ul=new WeakMap,Nl=new WeakMap,hs=new WeakMap,p(mA,"WeavyComponent");let Qe=mA;Ie([B()],Qe.prototype,"weavy",2);Ie([Fr({context:r5}),B()],Qe.prototype,"app",2);Ie([Fr({context:yA}),B()],Qe.prototype,"botUser",2);Ie([Fr({context:a5}),B()],Qe.prototype,"hasFeatures",2);Ie([Fr({context:uA}),B()],Qe.prototype,"settings",2);Ie([Fr({context:uv}),B()],Qe.prototype,"user",2);Ie([Fr({context:fA})],Qe.prototype,"_link",2);Ie([x({type:Object})],Qe.prototype,"link",1);Ie([B()],Qe.prototype,"productType",2);Ie([B()],Qe.prototype,"componentType",2);Ie([B()],Qe.prototype,"appTypes",2);Ie([x({type:String})],Qe.prototype,"bot",1);Ie([x({type:String})],Qe.prototype,"uid",2);Ie([x({type:String})],Qe.prototype,"name",1);Ie([x({type:String})],Qe.prototype,"notifications",2);Ie([x({type:String})],Qe.prototype,"notificationsBadge",2);Ie([x({type:Boolean})],Qe.prototype,"noAttachments",2);Ie([x({type:Boolean})],Qe.prototype,"noCloudFiles",2);Ie([x({type:Boolean})],Qe.prototype,"noComments",2);Ie([x({type:Boolean})],Qe.prototype,"noEmbeds",2);Ie([x({type:Boolean})],Qe.prototype,"noGoogleMeet",2);Ie([x({type:Boolean})],Qe.prototype,"noMentions",2);Ie([x({type:Boolean})],Qe.prototype,"noMicrosoftTeams",2);Ie([x({type:Boolean})],Qe.prototype,"noPolls",2);Ie([x({type:Boolean})],Qe.prototype,"noPreviews",2);Ie([x({type:Boolean})],Qe.prototype,"noReactions",2);Ie([x({type:Boolean})],Qe.prototype,"noReceipts",2);Ie([x({type:Boolean})],Qe.prototype,"noThumbnails",2);Ie([x({type:Boolean})],Qe.prototype,"noTyping",2);Ie([x({type:Boolean})],Qe.prototype,"noVersions",2);Ie([x({type:Boolean})],Qe.prototype,"noWebDAV",2);Ie([x({type:Boolean})],Qe.prototype,"noZoomMeetings",2);const wA=new Map(qk(cM)),HD=new Map(qk(hM)),YD=new Map(Object.entries(dM));new Map(Object.entries(uM));var GD=Object.defineProperty,ma=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&&GD(t,i,r),r},"__decorateClass$17");const it=p(s=>{var $;var t,i,n,r,a,o,l,c,h,d,f,y,w,g;const b=($=class extends s{constructor(...E){super(...E),U(this,t),U(this,i,new Promise(A=>{D(this,t,A)})),U(this,n),U(this,r,new Promise(A=>{D(this,n,A)})),U(this,a),U(this,o,new Promise(A=>{D(this,a,A)})),U(this,l),U(this,c,new Promise(A=>{D(this,l,A)})),U(this,h),U(this,d,new Promise(A=>{D(this,h,A)})),U(this,f),U(this,y,new Promise(A=>{D(this,f,A)})),U(this,w),U(this,g,new Promise(A=>{D(this,w,A)}))}async whenApp(){return await P(this,i)}async whenBotUser(){return await P(this,r)}async whenHasFeatures(){return await P(this,o)}async whenLink(){return await P(this,c)}async whenSettings(){return await P(this,d)}async whenUser(){return await P(this,y)}async whenWeavy(){return await P(this,g)}willUpdate(E){var A,M,L,I,q,j,ee;super.willUpdate(E),E.has("app")&&this.app&&((A=P(this,t))==null||A.call(this,this.app)),E.has("botUser")&&this.botUser&&((M=P(this,n))==null||M.call(this,this.botUser)),E.has("hasFeatures")&&this.hasFeatures&&((L=P(this,a))==null||L.call(this,this.hasFeatures)),E.has("link")&&this.link&&((I=P(this,l))==null||I.call(this,this.link)),E.has("settings")&&this.settings&&((q=P(this,h))==null||q.call(this,this.settings)),E.has("user")&&this.user&&((j=P(this,f))==null||j.call(this,this.user)),E.has("weavy")&&this.weavy&&((ee=P(this,w))==null||ee.call(this,this.weavy))}connectedCallback(){super.connectedCallback(),this.app&&this.requestUpdate("app"),this.botUser&&this.requestUpdate("botUser"),this.hasFeatures&&this.requestUpdate("hasFeatures"),this.link&&this.requestUpdate("link"),this.settings&&this.requestUpdate("settings"),this.user&&this.requestUpdate("user"),this.weavy&&this.requestUpdate("weavy")}},u($,"S"),$);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,d=new WeakMap,f=new WeakMap,y=new WeakMap,w=new WeakMap,g=new WeakMap,p(b,"WeavyComponentConsumer");let k=b;return ma([gt({context:r5,subscribe:!0}),B()],k.prototype,"app"),ma([gt({context:yA,subscribe:!0}),B()],k.prototype,"botUser"),ma([gt({context:a5,subscribe:!0}),B()],k.prototype,"hasFeatures"),ma([gt({context:fA,subscribe:!0}),B()],k.prototype,"link"),ma([gt({context:uA,subscribe:!0}),B()],k.prototype,"settings"),ma([gt({context:uv,subscribe:!0}),B()],k.prototype,"user"),ma([gt({context:Ct,subscribe:!0}),B()],k.prototype,"weavy"),k},"WeavyComponentConsumerMixin");function gA(s){return typeof s=="string"&&s?s=eval==null?void 0:(0,eval)(`"use strict";(${s})`):s=void 0,s}u(gA,"vm");p(gA,"indirectEvalObject");function tw(s){if(s)try{return new URL(s,window.location.toString())}catch{console.warn("Invalid url: ",s)}}u(tw,"fl");p(tw,"toUrl");const H=p(s=>(t,i)=>{i!==void 0?i.addInitializer(()=>{!customElements.get(s)&&customElements.define(s,t)}):!customElements.get(s)&&customElements.define(s,t)},"customElement"),fe=de`@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 .wy-button{max-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))))))}.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)))}.wy-footerbar{--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));position:absolute;bottom:0;left:0;right:0;z-index:1020}.wy-footerbar:after{content:\"\";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 var(--wy-border, 1px) 0 0 inset;position:absolute;width:100%;left:0;bottom:0;height:100%;z-index:-1}.wy-footerbar-sticky{position:sticky}[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, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);text-align:left;white-space:pre-wrap;word-spacing:normal;word-break:normal;word-wrap:break-word;line-height:1.5;-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 :not(pre)>code{font-family:var(--wy-font-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);overflow-wrap:inherit}.wy-content pre,.wy-content pre>code[class*=language-]{white-space:pre-wrap}.wy-content :first-child{margin-top:0}.wy-content :last-child{margin-bottom:0}.wy-content:empty{display:none}.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-image-grid{display:flex;flex-wrap:wrap;justify-content:space-evenly;position:relative;border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));overflow:hidden;column-gap:1px;row-gap:1px}.wy-image-grid .wy-image{padding:0;width:50%;position:relative;flex:auto;background-color:inherit;background-clip:content-box}.wy-image-grid .wy-image:first-of-type:not(:nth-last-of-type(2)){flex-basis:100%!important}.wy-image-grid .wy-image-area{display:block;height:100%;cursor:pointer}.wy-image-grid .wy-image-area img{position:absolute;height:100%;width:100%;object-fit:contain}.wy-image-grid .wy-image-area img.wy-loading{transition:opacity .15s ease-out;opacity:0}.wy-image-grid .wy-image-area img.wy-loading.wy-loaded{opacity:1;transition:opacity .15s ease-out}.wy-image-grid .wy-image-area img.wy-loading.wy-loaded~img{transition-delay:.15s;opacity:0}.wy-image-grid .wy-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-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, bolder));line-height:var(--wy-headings-line-height, var(--wy-line-height, 1.5));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 .wy-image-grid,.wy-message .wy-attachments{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{margin:calc(1.375 * 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))}.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}[part~=wy-reaction]{font-size:calc(1.125 * var(--wy-size, 1rem))}[part~=wy-reactions]{display:inline-flex;align-items:center;column-gap:calc(.25 * var(--wy-size, 1rem))}[part~=wy-reactions] :first-child:not(:only-child){margin-left:calc(.25 * var(--wy-size, 1rem))}[part~=wy-reactions] :last-child:not(:only-child){margin-right:calc(.25 * var(--wy-size, 1rem))}[part~=wy-reaction-count]{margin:0 calc(.25 * var(--wy-size, 1rem)) 0;line-height:1;font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}[part~=wy-reaction-menu]{width:max-content;position:absolute;z-index:1000;border:none;--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);display:flex;margin:0;text-align:left;background-clip:padding-box;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;padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));font-size:calc(1.25 * var(--wy-size, 1rem));border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))))}[part~=wy-reaction-picker]{display:flex;flex-direction:row;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}[part~=wy-reactions-line]{display:flex;align-items:center;padding-left:calc(.1875 * var(--wy-size, 1rem));padding-right:calc(.1875 * var(--wy-size, 1rem));gap:calc(.1875 * var(--wy-size, 1rem));justify-content:end}[part~=wy-reactions-line-reverse]{flex-direction:row-reverse;justify-content:start}[part~=wy-reactions-line-bottom]{position:absolute;bottom:calc(-1 * var(--wy-size, 1rem));right:calc(.25 * var(--wy-size, 1rem));z-index:1}[part~=wy-reactions-line-below]{position:relative;height:0;min-height:0;max-height:0;margin:calc(var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) - var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) calc(-1 * var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))))) calc(-1 * var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));padding-left:calc(.125 * var(--wy-size, 1rem));padding-right:calc(.125 * var(--wy-size, 1rem));gap:calc(.125 * var(--wy-size, 1rem));flex:1 0 auto;justify-content:flex-end}.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, bolder);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);gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-message-editor-buttons{flex:1 0 auto}.wy-message-editor-text{flex:1 1 100%;display:flex;flex-direction:column}.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}.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-image-grid{border-radius:0}.wy-post wy-comment-list{border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.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, bolder);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, bolder));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)))))}.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-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, bolder);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, bolder)}.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, bolder)}.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}`;var KD=Object.defineProperty,JD=Object.getOwnPropertyDescriptor,Lt=p((s,t,i,n)=>{for(var r=n>1?void 0:n?JD(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&&KD(t,i,r),r},"__decorateClass$16");function m$(s){return s!=null&&s!==!1}u(m$,"au");p(m$,"acceptedValue");const vA="wy-context";var DO,hu;let ct=(DO=(hu=class extends G{constructor(){super(),this.provider=!1,this.childElementCount&&(this.provider=!0),this.weavy??(this.weavy=new Gy({host:this.provider?this:void 0}))}get version(){return Gy.version}get sourceName(){return Gy.sourceName}willUpdate(t){if(super.willUpdate(t),this.weavy){const i={};Array.from(t.keys()).forEach(n=>{n!=="weavy"&&(m$(this[n])||m$(t.get(n)))&&Object.assign(i,{[n]:this[n]})}),Object.assign(this.weavy,i)}}render(){return O` <slot></slot> `}},u(hu,"yn"),hu),p(DO,"WyContext"),DO);ct.styles=[fe,Gi,de`
|
|
32
|
+
`,ie`${0} svarade på ett inlägg`,ie`${0} lade till ${1} till ${2}`,ie`${0} redigerade ${1}`,ie`${0} gillade ditt meddelande`,ie`${0}, ${1} och ${2} röstade i din omröstning`,ie`${0} reagerade med ${1} på ${2}`,ie`${0} reagerade med ${1} på ditt meddelande`,ie`${0} gillade din kommentar`,ie`${0} skriver${1}`;var aD=Object.defineProperty,WR=u(s=>{throw TypeError(s)},"Np"),p=u((s,t)=>aD(s,"name",{value:t,configurable:!0}),"c"),Zk=u((s,t,i)=>t.has(s)||WR("Cannot "+i),"bd"),P=u((s,t,i)=>(Zk(s,t,"read from private field"),i?i.call(s):t.get(s)),"b"),U=u((s,t,i)=>t.has(s)?WR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,i),"T"),D=u((s,t,i,n)=>(Zk(s,t,"write to private field"),t.set(s,i),i),"I"),me=u((s,t,i)=>(Zk(s,t,"access private method"),i),"tt"),s$=u((s,t,i,n)=>({set _(r){D(s,t,r)},get _(){return P(s,t,n)}}),"Pc");function vm(s){return Object.prototype.toString.call(s)==="[object Object]"}u(vm,"Lc");p(vm,"isObject$1");function Om(s){if(vm(s)===!1)return!1;const t=s.constructor;if(t===void 0)return!0;const i=t.prototype;return!(vm(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}u(Om,"Rc");p(Om,"isPlainObject$1");function Yy(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]&&Om(n[r])&&Om(t[r])?n[r]=Yy(n[r],t[r],i):n[r]=t[r]);return n}u(Yy,"Ec");p(Yy,"assign");function mc(s,t,i=!1,n=!1){if(!n&&(!Om(s)||!Om(t))||n&&(!vm(s)||!vm(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&&!mc(c,h,i))return!1}return!0}u(mc,"ko");p(mc,"eqObjects");function qk(s){return Object.entries(s)}u(qk,"dy");p(qk,"objectAsIterable");function Dk(s){return s.charAt(0).toUpperCase()+s.substring(1).toLowerCase()}u(Dk,"hy");p(Dk,"toUpperCaseFirst");const oD='\\s,.:;"',lD=new RegExp(`^|[${oD}]|$`,"g");function Uk(s){return s.length>0?s.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").replace(/_|\s+/g,"-").toLowerCase():s}u(Uk,"py");p(Uk,"toKebabCase");function VR(s,t=2){if(!s)return null;let i="";const n=s.split(lD).filter(r=>r);return n.length==1?i=n[0]:n.forEach(r=>{i+=r.charAt(0)}),i.substring(0,t).toUpperCase()}u(VR,"Vf");p(VR,"getInitials");const cD={credentials:"omit",headers:{"X-Requested-With":"XMLHttpRequest"},redirect:"manual"};function yf(){return((1+Math.random())*65536|0).toString(16).substring(1)}u(yf,"So");p(yf,"S4");function ZR(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")}u(ZR,"Uf");p(ZR,"getTextStreamFromResponse");function qR(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}u(qR,"qf");p(qR,"getStorage");var zd;const DR=(zd=class extends Error{constructor(){super("Instance destroyed"),this.name="DestroyError"}},u(zd,"hp"),zd);p(DR,"DestroyError");let wt=DR;var wO,_d,Lf=(wO=(_d=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(){}},u(_d,"Ar"),_d),p(wO,"Subscribable"),wO),mf=typeof window>"u"||"Deno"in globalThis;function Ti(){}u(Ti,"Ve");p(Ti,"noop$1");function UR(s,t){return typeof s=="function"?s(t):s}u(UR,"Nf");p(UR,"functionalUpdate");function a1(s){return typeof s=="number"&&s>=0&&s!==1/0}u(a1,"Ad");p(a1,"isValidTimeout");function Nk(s,t){return Math.max(s+(t||0)-Date.now(),0)}u(Nk,"uy");p(Nk,"timeUntilStale");function Qa(s,t){return typeof s=="function"?s(t):s}u(Qa,"Sr");p(Qa,"resolveStaleTime");function qi(s,t){return typeof s=="function"?s(t):s}u(qi,"Ge");p(qi,"resolveEnabled");function r$(s,t){const{type:i="all",exact:n,fetchStatus:r,predicate:a,queryKey:o,stale:l}=s;if(o){if(n){if(t.queryHash!==ov(o,t.options))return!1}else if(!wf(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))}u(r$,"Qp");p(r$,"matchQuery");function a$(s,t){const{exact:i,status:n,predicate:r,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(i){if(Ar(t.options.mutationKey)!==Ar(a))return!1}else if(!wf(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||r&&!r(t))}u(a$,"Kp");p(a$,"matchMutation");function ov(s,t){return((t==null?void 0:t.queryKeyHashFn)||Ar)(s)}u(ov,"zh");p(ov,"hashQueryKeyByOptions");function Ar(s){return JSON.stringify(s,(t,i)=>o1(i)?Object.keys(i).sort().reduce((n,r)=>(n[r]=i[r],n),{}):i)}u(Ar,"Vs");p(Ar,"hashKey");function wf(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?!Object.keys(t).some(i=>!wf(s[i],t[i])):!1}u(wf,"Eo");p(wf,"partialMatchKey");function If(s,t){if(s===t)return s;const i=o$(s)&&o$(t);if(i||o1(s)&&o1(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 d=i?h:a[h];(!i&&n.includes(d)||i)&&s[d]===void 0&&t[d]===void 0?(l[d]=void 0,c++):(l[d]=If(s[d],t[d]),l[d]===s[d]&&s[d]!==void 0&&c++)}return r===o&&c===r?s:l}return t}u(If,"hc");p(If,"replaceEqualDeep");function bm(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}u(bm,"Ic");p(bm,"shallowEqualObjects");function o$(s){return Array.isArray(s)&&s.length===Object.keys(s).length}u(o$,"Gp");p(o$,"isPlainArray");function o1(s){if(!l$(s))return!1;const t=s.constructor;if(t===void 0)return!0;const i=t.prototype;return!(!l$(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}u(o1,"Ld");p(o1,"isPlainObject");function l$(s){return Object.prototype.toString.call(s)==="[object Object]"}u(l$,"Yp");p(l$,"hasObjectPrototype");function NR(s){return new Promise(t=>{setTimeout(t,s)})}u(NR,"jf");p(NR,"sleep");function l1(s,t,i){return typeof i.structuralSharing=="function"?i.structuralSharing(s,t):i.structuralSharing!==!1?If(s,t):t}u(l1,"Rd");p(l1,"replaceData");function BR(s,t,i=0){const n=[...s,t];return i&&n.length>i?n.slice(1):n}u(BR,"Wf");p(BR,"addToEnd");function jR(s,t,i=0){const n=[t,...s];return i&&n.length>i?n.slice(0,-1):n}u(jR,"Qf");p(jR,"addToStart");var Bk=Symbol();function jk(s,t){return!s.queryFn&&t!=null&&t.initialPromise?()=>t.initialPromise:!s.queryFn||s.queryFn===Bk?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}u(jk,"yy");p(jk,"ensureQueryFn");var Ml,aa,ty,gO,Ld,hD=(gO=(Ld=class extends Lf{constructor(){super(),U(this,Ml),U(this,aa),U(this,ty),D(this,ty,t=>{if(!mf&&window.addEventListener){const i=p(()=>t(),"listener");return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){P(this,aa)||this.setEventListener(P(this,ty))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,aa))==null||t.call(this),D(this,aa,void 0))}setEventListener(t){var i;D(this,ty,t),(i=P(this,aa))==null||i.call(this),D(this,aa,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){P(this,Ml)!==t&&(D(this,Ml,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(i=>{i(t)})}isFocused(){var t;return typeof P(this,Ml)=="boolean"?P(this,Ml):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},u(Ld,"Rr"),Ld),Ml=new WeakMap,aa=new WeakMap,ty=new WeakMap,p(gO,"FocusManager"),gO),Xk=new hD,iy,oa,ny,vO,Id,dD=(vO=(Id=class extends Lf{constructor(){super(),U(this,iy,!0),U(this,oa),U(this,ny),D(this,ny,t=>{if(!mf&&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(){P(this,oa)||this.setEventListener(P(this,ny))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,oa))==null||t.call(this),D(this,oa,void 0))}setEventListener(t){var i;D(this,ny,t),(i=P(this,oa))==null||i.call(this),D(this,oa,t(this.setOnline.bind(this)))}setOnline(t){P(this,iy)!==t&&(D(this,iy,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return P(this,iy)}},u(Id,"Fr"),Id),iy=new WeakMap,oa=new WeakMap,ny=new WeakMap,p(vO,"OnlineManager"),vO),c1=new dD;function h1(){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 u(n,"s"),p(n,"finalize"),i.resolve=r=>{n({status:"fulfilled",value:r}),s(r)},i.reject=r=>{n({status:"rejected",reason:r}),t(r)},i}u(h1,"Id");p(h1,"pendingThenable");function XR(s){return Math.min(1e3*2**s,3e4)}u(XR,"Yf");p(XR,"defaultRetryDelay");function Fk(s){return(s??"online")==="online"?c1.isOnline():!0}u(Fk,"wy");p(Fk,"canFetch");var OO,Wd,FR=(OO=(Wd=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}},u(Wd,"Dr"),Wd),p(OO,"CancelledError"),OO);function ag(s){return s instanceof FR}u(ag,"xd");p(ag,"isCancelledError");function Hk(s){let t=!1,i=0,n=!1,r;const a=h1(),o=p(b=>{var k;n||(y(new FR(b)),(k=s.abort)==null||k.call(s))},"cancel"),l=p(()=>{t=!0},"cancelRetry"),c=p(()=>{t=!1},"continueRetry"),h=p(()=>Xk.isFocused()&&(s.networkMode==="always"||c1.isOnline())&&s.canRun(),"canContinue"),d=p(()=>Fk(s.networkMode)&&s.canRun(),"canStart"),f=p(b=>{var k;n||(n=!0,(k=s.onSuccess)==null||k.call(s,b),r==null||r(),a.resolve(b))},"resolve"),y=p(b=>{var k;n||(n=!0,(k=s.onError)==null||k.call(s,b),r==null||r(),a.reject(b))},"reject"),w=p(()=>new Promise(b=>{var k;r=p($=>{(n||h())&&b($)},"continueFn"),(k=s.onPause)==null||k.call(s)}).then(()=>{var b;r=void 0,n||(b=s.onContinue)==null||b.call(s)}),"pause"),g=p(()=>{if(n)return;let b;const k=i===0?s.initialPromise:void 0;try{b=k??s.fn()}catch($){b=Promise.reject($)}Promise.resolve(b).then(f).catch($=>{var C;if(n)return;const E=s.retry??(mf?0:3),A=s.retryDelay??XR,M=typeof A=="function"?A(i,$):A,L=E===!0||typeof E=="number"&&i<E||typeof E=="function"&&E(i,$);if(t||!L){y($);return}i++,(C=s.onFail)==null||C.call(s,i,$),NR(M).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:d,start:p(()=>(d()?g():w().then(g),a),"start")}}u(Hk,"my");p(Hk,"createRetryer");function HR(){let s=[],t=0,i=p(l=>{l()},"notifyFn"),n=p(l=>{l()},"batchNotifyFn"),r=p(l=>setTimeout(l,0),"scheduleFn");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")}}u(HR,"Zf");p(HR,"createNotifyManager");var Bt=HR(),Al,bO,Vd,YR=(bO=(Vd=class{constructor(){U(this,Al)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),a1(this.gcTime)&&D(this,Al,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(mf?1/0:5*60*1e3))}clearGcTimeout(){P(this,Al)&&(clearTimeout(P(this,Al)),D(this,Al,void 0))}},u(Vd,"Hr"),Vd),Al=new WeakMap,p(bO,"Removable"),bO),sy,ry,Ji,ri,Aw,El,Cn,ss,$O,Zd,uD=($O=(Zd=class extends YR{constructor(t){super(),U(this,Cn),U(this,sy),U(this,ry),U(this,Ji),U(this,ri),U(this,Aw),U(this,El),D(this,El,!1),D(this,Aw,t.defaultOptions),this.setOptions(t.options),this.observers=[],D(this,Ji,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,D(this,sy,GR(this.options)),this.state=t.state??P(this,sy),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,ri))==null?void 0:t.promise}setOptions(t){this.options={...P(this,Aw),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,Ji).remove(this)}setData(t,i){const n=l1(this.state.data,t,this.options);return me(this,Cn,ss).call(this,{data:n,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),n}setState(t,i){me(this,Cn,ss).call(this,{type:"setState",state:t,setStateOptions:i})}cancel(t){var i,n;const r=(i=P(this,ri))==null?void 0:i.promise;return(n=P(this,ri))==null||n.cancel(t),r?r.then(Ti).catch(Ti):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,sy))}isActive(){return this.observers.some(t=>qi(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bk||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||!Nk(this.state.dataUpdatedAt,t)}onFocus(){var t;const i=this.observers.find(n=>n.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(t=P(this,ri))==null||t.continue()}onOnline(){var t;const i=this.observers.find(n=>n.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(t=P(this,ri))==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,Ji).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(i=>i!==t),this.observers.length||(P(this,ri)&&(P(this,El)?P(this,ri).cancel({revert:!0}):P(this,ri).cancelRetry()),this.scheduleGc()),P(this,Ji).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||me(this,Cn,ss).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(P(this,ri))return P(this,ri).continueRetry(),P(this,ri).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,El,!0),o.signal),"get")})},"addSignalProperty"),c=p(()=>{const f=jk(this.options,i),y={queryKey:this.queryKey,meta:this.meta};return l(y),D(this,El,!1),this.options.persister?this.options.persister(f,y,this):f(y)},"fetchFn"),h={fetchOptions:i,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};l(h),(n=this.options.behavior)==null||n.onFetch(h,this),D(this,ry,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((r=h.fetchOptions)==null?void 0:r.meta))&&me(this,Cn,ss).call(this,{type:"fetch",meta:(a=h.fetchOptions)==null?void 0:a.meta});const d=p(f=>{var y,w,g,b;ag(f)&&f.silent||me(this,Cn,ss).call(this,{type:"error",error:f}),ag(f)||((w=(y=P(this,Ji).config).onError)==null||w.call(y,f,this),(b=(g=P(this,Ji).config).onSettled)==null||b.call(g,this.state.data,f,this)),this.scheduleGc()},"onError");return D(this,ri,Hk({initialPromise:i==null?void 0:i.initialPromise,fn:h.fetchFn,abort:o.abort.bind(o),onSuccess:p(f=>{var y,w,g,b;if(f===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(k){d(k);return}(w=(y=P(this,Ji).config).onSuccess)==null||w.call(y,f,this),(b=(g=P(this,Ji).config).onSettled)==null||b.call(g,f,this.state.error,this),this.scheduleGc()},"onSuccess"),onError:d,onFail:p((f,y)=>{me(this,Cn,ss).call(this,{type:"failed",failureCount:f,error:y})},"onFail"),onPause:p(()=>{me(this,Cn,ss).call(this,{type:"pause"})},"onPause"),onContinue:p(()=>{me(this,Cn,ss).call(this,{type:"continue"})},"onContinue"),retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:p(()=>!0,"canRun")})),P(this,ri).start()}},u(Zd,"Ur"),Zd),sy=new WeakMap,ry=new WeakMap,Ji=new WeakMap,ri=new WeakMap,Aw=new WeakMap,El=new WeakMap,Cn=new WeakSet,ss=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,...Yk(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 ag(n)&&n.revert&&P(this,ry)?{...P(this,ry),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),Bt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),P(this,Ji).notify({query:this,type:"updated",action:s})})},"#dispatch"),p($O,"Query"),$O);function Yk(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Fk(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}u(Yk,"gy");p(Yk,"fetchState");function GR(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"}}u(GR,"Jf");p(GR,"getDefaultState$1");var rs,xO,qd,pD=(xO=(qd=class extends Lf{constructor(t={}){super(),U(this,rs),this.config=t,D(this,rs,new Map)}build(t,i,n){const r=i.queryKey,a=i.queryHash??ov(r,i);let o=this.get(a);return o||(o=new uD({cache:this,queryKey:r,queryHash:a,options:t.defaultQueryOptions(i),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){P(this,rs).has(t.queryHash)||(P(this,rs).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const i=P(this,rs).get(t.queryHash);i&&(t.destroy(),i===t&&P(this,rs).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Bt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,rs).get(t)}getAll(){return[...P(this,rs).values()]}find(t){const i={exact:!0,...t};return this.getAll().find(n=>r$(i,n))}findAll(t={}){const i=this.getAll();return Object.keys(t).length>0?i.filter(n=>r$(t,n)):i}notify(t){Bt.batch(()=>{this.listeners.forEach(i=>{i(t)})})}onFocus(){Bt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Bt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},u(qd,"qr"),qd),rs=new WeakMap,p(xO,"QueryCache"),xO),as,fi,zl,os,Zs,kO,Dd,fD=(kO=(Dd=class extends YR{constructor(t){super(),U(this,os),U(this,as),U(this,fi),U(this,zl),this.mutationId=t.mutationId,D(this,fi,t.mutationCache),D(this,as,[]),this.state=t.state||Gk(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,as).includes(t)||(P(this,as).push(t),this.clearGcTimeout(),P(this,fi).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){D(this,as,P(this,as).filter(i=>i!==t)),this.scheduleGc(),P(this,fi).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,as).length||(this.state.status==="pending"?this.scheduleGc():P(this,fi).remove(this))}continue(){var t;return((t=P(this,zl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,n,r,a,o,l,c,h,d,f,y,w,g,b,k,$,C,E,A,M;D(this,zl,Hk({fn:p(()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),"fn"),onFail:p((q,j)=>{me(this,os,Zs).call(this,{type:"failed",failureCount:q,error:j})},"onFail"),onPause:p(()=>{me(this,os,Zs).call(this,{type:"pause"})},"onPause"),onContinue:p(()=>{me(this,os,Zs).call(this,{type:"continue"})},"onContinue"),retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:p(()=>P(this,fi).canRun(this),"canRun")}));const L=this.state.status==="pending",I=!P(this,zl).canStart();try{if(!L){me(this,os,Zs).call(this,{type:"pending",variables:t,isPaused:I}),await((n=(i=P(this,fi).config).onMutate)==null?void 0:n.call(i,t,this));const j=await((a=(r=this.options).onMutate)==null?void 0:a.call(r,t));j!==this.state.context&&me(this,os,Zs).call(this,{type:"pending",context:j,variables:t,isPaused:I})}const q=await P(this,zl).start();return await((l=(o=P(this,fi).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=(d=P(this,fi).config).onSettled)==null?void 0:f.call(d,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)),me(this,os,Zs).call(this,{type:"success",data:q}),q}catch(q){try{throw await((b=(g=P(this,fi).config).onError)==null?void 0:b.call(g,q,t,this.state.context,this)),await(($=(k=this.options).onError)==null?void 0:$.call(k,q,t,this.state.context)),await((E=(C=P(this,fi).config).onSettled)==null?void 0:E.call(C,void 0,q,this.state.variables,this.state.context,this)),await((M=(A=this.options).onSettled)==null?void 0:M.call(A,void 0,q,t,this.state.context)),q}finally{me(this,os,Zs).call(this,{type:"error",error:q})}}finally{P(this,fi).runNext(this)}}},u(Dd,"Nr"),Dd),as=new WeakMap,fi=new WeakMap,zl=new WeakMap,os=new WeakSet,Zs=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),Bt.batch(()=>{P(this,as).forEach(i=>{i.onMutationUpdate(s)}),P(this,fi).notify({mutation:this,type:"updated",action:s})})},"#dispatch"),p(kO,"Mutation"),kO);function Gk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}u(Gk,"by");p(Gk,"getDefaultState");var qs,Qn,Ew,SO,Ud,yD=(SO=(Ud=class extends Lf{constructor(t={}){super(),U(this,qs),U(this,Qn),U(this,Ew),this.config=t,D(this,qs,new Set),D(this,Qn,new Map),D(this,Ew,0)}build(t,i,n){const r=new fD({mutationCache:this,mutationId:++s$(this,Ew)._,options:t.defaultMutationOptions(i),state:n});return this.add(r),r}add(t){P(this,qs).add(t);const i=Ry(t);if(typeof i=="string"){const n=P(this,Qn).get(i);n?n.push(t):P(this,Qn).set(i,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,qs).delete(t)){const i=Ry(t);if(typeof i=="string"){const n=P(this,Qn).get(i);if(n)if(n.length>1){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}else n[0]===t&&P(this,Qn).delete(i)}}this.notify({type:"removed",mutation:t})}canRun(t){const i=Ry(t);if(typeof i=="string"){const n=P(this,Qn).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=Ry(t);if(typeof n=="string"){const r=(i=P(this,Qn).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(){Bt.batch(()=>{P(this,qs).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,qs).clear(),P(this,Qn).clear()})}getAll(){return Array.from(P(this,qs))}find(t){const i={exact:!0,...t};return this.getAll().find(n=>a$(i,n))}findAll(t={}){return this.getAll().filter(i=>a$(t,i))}notify(t){Bt.batch(()=>{this.listeners.forEach(i=>{i(t)})})}resumePausedMutations(){const t=this.getAll().filter(i=>i.state.isPaused);return Bt.batch(()=>Promise.all(t.map(i=>i.continue().catch(Ti))))}},u(Ud,"jr"),Ud),qs=new WeakMap,Qn=new WeakMap,Ew=new WeakMap,p(SO,"MutationCache"),SO);function Ry(s){var t;return(t=s.options.scope)==null?void 0:t.id}u(Ry,"Mc");p(Ry,"scopeFor");function $m(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,d=((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 b=!1;const k=p(E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:p(()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal),"get")})},"addSignalProperty"),$=jk(t.options,t.fetchOptions),C=p(async(E,A,M)=>{if(b)return Promise.reject();if(A==null&&E.pages.length)return Promise.resolve(E);const L={queryKey:t.queryKey,pageParam:A,direction:M?"backward":"forward",meta:t.options.meta};k(L);const I=await $(L),{maxPages:q}=t.options,j=M?jR:BR;return{pages:j(E.pages,I,q),pageParams:j(E.pageParams,A,q)}},"fetchPage");if(h&&d.length){const E=h==="backward",A=E?Kk:d1,M={pages:d,pageParams:f},L=A(c,M);y=await C(M,L,E)}else{const E=s??d.length;do{const A=w===0?f[0]??c.initialPageParam:d1(c,y);if(w>0&&A==null)break;y=await C(y,A),w++}while(w<E)}return y},"fetchFn");t.options.persister?t.fetchFn=()=>{var b,k;return(k=(b=t.options).persister)==null?void 0:k.call(b,g,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i)}:t.fetchFn=g},"onFetch")}}u($m,"Fc");p($m,"infiniteQueryBehavior");function d1(s,{pages:t,pageParams:i}){const n=t.length-1;return t.length>0?s.getNextPageParam(t[n],t,i[n],i):void 0}u(d1,"Td");p(d1,"getNextPageParam");function Kk(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}u(Kk,"xy");p(Kk,"getPreviousPageParam");function KR(s,t){return t?d1(s,t)!=null:!1}u(KR,"s1");p(KR,"hasNextPage");function JR(s,t){return!t||!s.getPreviousPageParam?!1:Kk(s,t)!=null}u(JR,"r1");p(JR,"hasPreviousPage");var at,la,ca,ay,oy,ha,ly,cy,PO,Nd,mD=(PO=(Nd=class{constructor(t={}){U(this,at),U(this,la),U(this,ca),U(this,ay),U(this,oy),U(this,ha),U(this,ly),U(this,cy),D(this,at,t.queryCache||new pD),D(this,la,t.mutationCache||new yD),D(this,ca,t.defaultOptions||{}),D(this,ay,new Map),D(this,oy,new Map),D(this,ha,0)}mount(){s$(this,ha)._++,P(this,ha)===1&&(D(this,ly,Xk.subscribe(async t=>{t&&(await this.resumePausedMutations(),P(this,at).onFocus())})),D(this,cy,c1.subscribe(async t=>{t&&(await this.resumePausedMutations(),P(this,at).onOnline())})))}unmount(){var t,i;s$(this,ha)._--,P(this,ha)===0&&((t=P(this,ly))==null||t.call(this),D(this,ly,void 0),(i=P(this,cy))==null||i.call(this),D(this,cy,void 0))}isFetching(t){return P(this,at).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return P(this,la).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const n=this.defaultQueryOptions({queryKey:t});return(i=P(this,at).get(n.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const i=this.defaultQueryOptions(t),n=P(this,at).build(this,i),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Qa(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(t){return P(this,at).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=P(this,at).get(r.queryHash),o=a==null?void 0:a.state.data,l=UR(i,o);if(l!==void 0)return P(this,at).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(t,i,n){return Bt.batch(()=>P(this,at).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,i,n)]))}getQueryState(t){var i;const n=this.defaultQueryOptions({queryKey:t});return(i=P(this,at).get(n.queryHash))==null?void 0:i.state}removeQueries(t){const i=P(this,at);Bt.batch(()=>{i.findAll(t).forEach(n=>{i.remove(n)})})}resetQueries(t,i){const n=P(this,at),r={type:"active",...t};return Bt.batch(()=>(n.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(r,i)))}cancelQueries(t,i={}){const n={revert:!0,...i},r=Bt.batch(()=>P(this,at).findAll(t).map(a=>a.cancel(n)));return Promise.all(r).then(Ti).catch(Ti)}invalidateQueries(t,i={}){return Bt.batch(()=>{if(P(this,at).findAll(t).forEach(r=>{r.invalidate()}),(t==null?void 0:t.refetchType)==="none")return Promise.resolve();const n={...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"};return this.refetchQueries(n,i)})}refetchQueries(t,i={}){const n={...i,cancelRefetch:i.cancelRefetch??!0},r=Bt.batch(()=>P(this,at).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ti)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ti)}fetchQuery(t){const i=this.defaultQueryOptions(t);i.retry===void 0&&(i.retry=!1);const n=P(this,at).build(this,i);return n.isStaleByTime(Qa(i.staleTime,n))?n.fetch(i):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ti).catch(Ti)}fetchInfiniteQuery(t){return t.behavior=$m(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ti).catch(Ti)}ensureInfiniteQueryData(t){return t.behavior=$m(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return c1.isOnline()?P(this,la).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,at)}getMutationCache(){return P(this,la)}getDefaultOptions(){return P(this,ca)}setDefaultOptions(t){D(this,ca,t)}setQueryDefaults(t,i){P(this,ay).set(Ar(t),{queryKey:t,defaultOptions:i})}getQueryDefaults(t){const i=[...P(this,ay).values()],n={};return i.forEach(r=>{wf(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,i){P(this,oy).set(Ar(t),{mutationKey:t,defaultOptions:i})}getMutationDefaults(t){const i=[...P(this,oy).values()];let n={};return i.forEach(r=>{wf(t,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(t){if(t._defaulted)return t;const i={...P(this,ca).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return i.queryHash||(i.queryHash=ov(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===Bk&&(i.enabled=!1),i}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...P(this,ca).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){P(this,at).clear(),P(this,la).clear()}},u(Nd,"Yr"),Nd),at=new WeakMap,la=new WeakMap,ca=new WeakMap,ay=new WeakMap,oy=new WeakMap,ha=new WeakMap,ly=new WeakMap,cy=new WeakMap,p(PO,"QueryClient"),PO),Ci,ze,zw,yi,_l,hy,da,ls,_w,dy,uy,Ll,Il,ua,py,ot,fy,CO,QO,TO,RO,MO,AO,EO,y4,zO,Bd,eM=(zO=(Bd=class extends Lf{constructor(t,i){super(),U(this,ot),U(this,Ci),U(this,ze),U(this,zw),U(this,yi),U(this,_l),U(this,hy),U(this,da),U(this,ls),U(this,_w),U(this,dy),U(this,uy),U(this,Ll),U(this,Il),U(this,ua),U(this,py,new Set),this.options=i,D(this,Ci,t),D(this,ls,null),D(this,da,h1()),this.options.experimental_prefetchInRender||P(this,da).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&&(P(this,ze).addObserver(this),c$(P(this,ze),this.options)?me(this,ot,fy).call(this):this.updateResult(),me(this,ot,RO).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u1(P(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u1(P(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,me(this,ot,MO).call(this),me(this,ot,AO).call(this),P(this,ze).removeObserver(this)}setOptions(t,i){const n=this.options,r=P(this,ze);if(this.options=P(this,Ci).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qi(this.options.enabled,P(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");me(this,ot,EO).call(this),P(this,ze).setOptions(this.options),n._defaulted&&!bm(this.options,n)&&P(this,Ci).getQueryCache().notify({type:"observerOptionsUpdated",query:P(this,ze),observer:this});const a=this.hasListeners();a&&h$(P(this,ze),r,this.options,n)&&me(this,ot,fy).call(this),this.updateResult(i),a&&(P(this,ze)!==r||qi(this.options.enabled,P(this,ze))!==qi(n.enabled,P(this,ze))||Qa(this.options.staleTime,P(this,ze))!==Qa(n.staleTime,P(this,ze)))&&me(this,ot,CO).call(this);const o=me(this,ot,QO).call(this);a&&(P(this,ze)!==r||qi(this.options.enabled,P(this,ze))!==qi(n.enabled,P(this,ze))||o!==P(this,ua))&&me(this,ot,TO).call(this,o)}getOptimisticResult(t){const i=P(this,Ci).getQueryCache().build(P(this,Ci),t),n=this.createResult(i,t);return iM(this,n)&&(D(this,yi,n),D(this,hy,this.options),D(this,_l,P(this,ze).state)),n}getCurrentResult(){return P(this,yi)}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){P(this,py).add(t)}getCurrentQuery(){return P(this,ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const i=P(this,Ci).defaultQueryOptions(t),n=P(this,Ci).getQueryCache().build(P(this,Ci),i);return n.fetch().then(()=>this.createResult(n,i))}fetch(t){return me(this,ot,fy).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),P(this,yi)))}createResult(t,i){var n;const r=P(this,ze),a=this.options,o=P(this,yi),l=P(this,_l),c=P(this,hy),h=t!==r?t.state:P(this,zw),{state:d}=t;let f={...d},y=!1,w;if(i._optimisticResults){const I=this.hasListeners(),q=!I&&c$(t,i),j=I&&h$(t,r,i,a);(q||j)&&(f={...f,...Yk(d.data,t.options)}),i._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:b,status:k}=f;if(i.select&&f.data!==void 0)if(o&&f.data===(l==null?void 0:l.data)&&i.select===P(this,_w))w=P(this,dy);else try{D(this,_w,i.select),w=i.select(f.data),w=l1(o==null?void 0:o.data,w,i),D(this,dy,w),D(this,ls,null)}catch(I){D(this,ls,I)}else w=f.data;if(i.placeholderData!==void 0&&w===void 0&&k==="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=P(this,uy))==null?void 0:n.state.data,P(this,uy)):i.placeholderData,i.select&&I!==void 0)try{I=i.select(I),D(this,ls,null)}catch(q){D(this,ls,q)}I!==void 0&&(k="success",w=l1(o==null?void 0:o.data,I,i),y=!0)}P(this,ls)&&(g=P(this,ls),w=P(this,dy),b=Date.now(),k="error");const $=f.fetchStatus==="fetching",C=k==="pending",E=k==="error",A=C&&$,M=w!==void 0,L={status:k,fetchStatus:f.fetchStatus,isPending:C,isSuccess:k==="success",isError:E,isInitialLoading:A,isLoading:A,data:w,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:b,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:E&&!M,isPaused:f.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:E&&M,isStale:lv(t,i),refetch:this.refetch,promise:P(this,da)};if(this.options.experimental_prefetchInRender){const I=p(ee=>{L.status==="error"?ee.reject(L.error):L.data!==void 0&&ee.resolve(L.data)},"finalizeThenableIfPossible"),q=p(()=>{const ee=D(this,da,L.promise=h1());I(ee)},"recreateThenable"),j=P(this,da);switch(j.status){case"pending":t.queryHash===r.queryHash&&I(j);break;case"fulfilled":(L.status==="error"||L.data!==j.value)&&q();break;case"rejected":(L.status!=="error"||L.error!==j.reason)&&q();break}}return L}updateResult(t){const i=P(this,yi),n=this.createResult(P(this,ze),this.options);if(D(this,_l,P(this,ze).state),D(this,hy,this.options),P(this,_l).data!==void 0&&D(this,uy,P(this,ze)),bm(n,i))return;D(this,yi,n);const r={},a=p(()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!P(this,py).size)return!0;const c=new Set(l??P(this,py));return this.options.throwOnError&&c.add("error"),Object.keys(P(this,yi)).some(h=>{const d=h;return P(this,yi)[d]!==i[d]&&c.has(d)})},"shouldNotifyListeners");(t==null?void 0:t.listeners)!==!1&&a()&&(r.listeners=!0),me(this,ot,y4).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&me(this,ot,RO).call(this)}},u(Bd,"en"),Bd),Ci=new WeakMap,ze=new WeakMap,zw=new WeakMap,yi=new WeakMap,_l=new WeakMap,hy=new WeakMap,da=new WeakMap,ls=new WeakMap,_w=new WeakMap,dy=new WeakMap,uy=new WeakMap,Ll=new WeakMap,Il=new WeakMap,ua=new WeakMap,py=new WeakMap,ot=new WeakSet,fy=p(function(s){me(this,ot,EO).call(this);let t=P(this,ze).fetch(this.options,s);return s!=null&&s.throwOnError||(t=t.catch(Ti)),t},"#executeFetch"),CO=p(function(){me(this,ot,MO).call(this);const s=Qa(this.options.staleTime,P(this,ze));if(mf||P(this,yi).isStale||!a1(s))return;const t=Nk(P(this,yi).dataUpdatedAt,s)+1;D(this,Ll,setTimeout(()=>{P(this,yi).isStale||this.updateResult()},t))},"#updateStaleTimeout"),QO=p(function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(P(this,ze)):this.options.refetchInterval)??!1},"#computeRefetchInterval"),TO=p(function(s){me(this,ot,AO).call(this),D(this,ua,s),!(mf||qi(this.options.enabled,P(this,ze))===!1||!a1(P(this,ua))||P(this,ua)===0)&&D(this,Il,setInterval(()=>{(this.options.refetchIntervalInBackground||Xk.isFocused())&&me(this,ot,fy).call(this)},P(this,ua)))},"#updateRefetchInterval"),RO=p(function(){me(this,ot,CO).call(this),me(this,ot,TO).call(this,me(this,ot,QO).call(this))},"#updateTimers"),MO=p(function(){P(this,Ll)&&(clearTimeout(P(this,Ll)),D(this,Ll,void 0))},"#clearStaleTimeout"),AO=p(function(){P(this,Il)&&(clearInterval(P(this,Il)),D(this,Il,void 0))},"#clearRefetchInterval"),EO=p(function(){const s=P(this,Ci).getQueryCache().build(P(this,Ci),this.options);if(s===P(this,ze))return;const t=P(this,ze);D(this,ze,s),D(this,zw,s.state),this.hasListeners()&&(t==null||t.removeObserver(this),s.addObserver(this))},"#updateQuery"),y4=p(function(s){Bt.batch(()=>{s.listeners&&this.listeners.forEach(t=>{t(P(this,yi))}),P(this,Ci).getQueryCache().notify({query:P(this,ze),type:"observerResultsUpdated"})})},"#notify"),p(zO,"QueryObserver"),zO);function tM(s,t){return qi(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}u(tM,"a1");p(tM,"shouldLoadOnMount");function c$(s,t){return tM(s,t)||s.state.data!==void 0&&u1(s,t,t.refetchOnMount)}u(c$,"Zp");p(c$,"shouldFetchOnMount");function u1(s,t,i){if(qi(t.enabled,s)!==!1){const n=typeof i=="function"?i(s):i;return n==="always"||n!==!1&&lv(s,t)}return!1}u(u1,"Nd");p(u1,"shouldFetchOn");function h$(s,t,i,n){return(s!==t||qi(n.enabled,s)===!1)&&(!i.suspense||s.state.status!=="error")&&lv(s,i)}u(h$,"Xp");p(h$,"shouldFetchOptionally");function lv(s,t){return qi(t.enabled,s)!==!1&&s.isStaleByTime(Qa(t.staleTime,s))}u(lv,"Oh");p(lv,"isStale");function iM(s,t){return!bm(s.getCurrentResult(),t)}u(iM,"o1");p(iM,"shouldAssignObserverCurrentProperties");var _O,jd,wD=(_O=(jd=class extends eM{constructor(t,i){super(t,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,i){super.setOptions({...t,behavior:$m()},i)}getOptimisticResult(t){return t.behavior=$m(),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:d}=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",b=l&&f==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:KR(i,a.data),hasPreviousPage:JR(i,a.data),isFetchNextPageError:y,isFetchingNextPage:w,isFetchPreviousPageError:g,isFetchingPreviousPage:b,isRefetchError:d&&!y&&!g,isRefetching:c&&!w&&!b}}},u(jd,"sn"),jd),p(_O,"InfiniteQueryObserver"),_O),pa,fa,Qi,Ds,ya,Lw,LO,IO,Xd,Ze=(IO=(Xd=class extends Lf{constructor(t,i){super(),U(this,ya),U(this,pa),U(this,fa),U(this,Qi),U(this,Ds),D(this,pa,t),this.setOptions(i),this.bindMethods(),me(this,ya,Lw).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=P(this,pa).defaultMutationOptions(t),bm(this.options,n)||P(this,pa).getMutationCache().notify({type:"observerOptionsUpdated",mutation:P(this,Qi),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ar(n.mutationKey)!==Ar(this.options.mutationKey)?this.reset():((i=P(this,Qi))==null?void 0:i.state.status)==="pending"&&P(this,Qi).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=P(this,Qi))==null||t.removeObserver(this)}onMutationUpdate(t){me(this,ya,Lw).call(this),me(this,ya,LO).call(this,t)}getCurrentResult(){return P(this,fa)}reset(){var t;(t=P(this,Qi))==null||t.removeObserver(this),D(this,Qi,void 0),me(this,ya,Lw).call(this),me(this,ya,LO).call(this)}mutate(t,i){var n;return D(this,Ds,i),(n=P(this,Qi))==null||n.removeObserver(this),D(this,Qi,P(this,pa).getMutationCache().build(P(this,pa),this.options)),P(this,Qi).addObserver(this),P(this,Qi).execute(t)}},u(Xd,"rn"),Xd),pa=new WeakMap,fa=new WeakMap,Qi=new WeakMap,Ds=new WeakMap,ya=new WeakSet,Lw=p(function(){var s;const t=((s=P(this,Qi))==null?void 0:s.state)??Gk();D(this,fa,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},"#updateResult"),LO=p(function(s){Bt.batch(()=>{var t,i,n,r,a,o,l,c;if(P(this,Ds)&&this.hasListeners()){const h=P(this,fa).variables,d=P(this,fa).context;(s==null?void 0:s.type)==="success"?((i=(t=P(this,Ds)).onSuccess)==null||i.call(t,s.data,h,d),(r=(n=P(this,Ds)).onSettled)==null||r.call(n,s.data,null,h,d)):(s==null?void 0:s.type)==="error"&&((o=(a=P(this,Ds)).onError)==null||o.call(a,s.error,h,d),(c=(l=P(this,Ds)).onSettled)==null||c.call(l,void 0,s.error,h,d))}this.listeners.forEach(h=>{h(P(this,fa))})})},"#notify"),p(IO,"MutationObserver"),IO);function Jk(s){return s}u(Jk,"Cy");p(Jk,"defaultTransformerFn");function nM(s){return{mutationKey:s.options.mutationKey,state:s.state,...s.options.scope&&{scope:s.options.scope},...s.meta&&{meta:s.meta}}}u(nM,"l1");p(nM,"dehydrateMutation");function sM(s,t){var i;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:(i=s.promise)==null?void 0:i.then(t).catch(n=>Promise.reject(new Error("redacted")))},...s.meta&&{meta:s.meta}}}u(sM,"d1");p(sM,"dehydrateQuery");function rM(s){return s.state.isPaused}u(rM,"h1");p(rM,"defaultShouldDehydrateMutation");function aM(s){return s.state.status==="success"}u(aM,"p1");p(aM,"defaultShouldDehydrateQuery");function oM(s,t={}){var i,n,r;const a=t.shouldDehydrateMutation??((i=s.getDefaultOptions().dehydrate)==null?void 0:i.shouldDehydrateMutation)??rM,o=s.getMutationCache().getAll().flatMap(d=>a(d)?[nM(d)]:[]),l=t.shouldDehydrateQuery??((n=s.getDefaultOptions().dehydrate)==null?void 0:n.shouldDehydrateQuery)??aM,c=t.serializeData??((r=s.getDefaultOptions().dehydrate)==null?void 0:r.serializeData)??Jk,h=s.getQueryCache().getAll().flatMap(d=>l(d)?[sM(d,c)]:[]);return{mutations:o,queries:h}}u(oM,"u1");p(oM,"dehydrate");function lM(s,t,i){var n,r;if(typeof t!="object"||t===null)return;const a=s.getMutationCache(),o=s.getQueryCache(),l=((n=i==null?void 0:i.defaultOptions)==null?void 0:n.deserializeData)??((r=s.getDefaultOptions().hydrate)==null?void 0:r.deserializeData)??Jk,c=t.mutations||[],h=t.queries||[];c.forEach(({state:d,...f})=>{var y,w;a.build(s,{...(y=s.getDefaultOptions().hydrate)==null?void 0:y.mutations,...(w=i==null?void 0:i.defaultOptions)==null?void 0:w.mutations,...f},d)}),h.forEach(({queryKey:d,state:f,queryHash:y,meta:w,promise:g})=>{var b,k;let $=o.get(y);const C=f.data===void 0?f.data:l(f.data);if($){if($.state.dataUpdatedAt<f.dataUpdatedAt){const{fetchStatus:E,...A}=f;$.setState({...A,data:C})}}else $=o.build(s,{...(b=s.getDefaultOptions().hydrate)==null?void 0:b.queries,...(k=i==null?void 0:i.defaultOptions)==null?void 0:k.queries,queryKey:d,queryHash:y,meta:w},{...f,data:C,fetchStatus:"idle"});if(g){const E=Promise.resolve(g).then(l);$.fetch(void 0,{initialPromise:E})}})}u(lM,"y1");p(lM,"hydrate");var Re=(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))(Re||{}),Oi=(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))(Oi||{}),cM=(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))(cM||{}),hM=(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))(hM||{}),dM=(s=>(s["2352a1c6-abc6-420e-8b85-ca7d5aed8779"]="bot_chat",s))(dM||{}),uM=(s=>(s.bot_chat="2352a1c6-abc6-420e-8b85-ca7d5aed8779",s))(uM||{}),Bi=(s=>(s.Unknown="unknown",s))(Bi||{}),Hs=(s=>(s.None="none",s.Read="read",s.Write="write",s.Admin="admin",s))(Hs||{}),Er=(s=>(s.List="list",s.Read="read",s.Create="create",s.Update="update",s.Delete="delete",s.Admin="admin",s))(Er||{}),ji=(s=>(s.App="app",s.File="file",s.Message="message",s.User="user",s.Comment="comment",s.Post="post",s))(ji||{});function cn(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}}u(cn,"yi");p(cn,"getApiOptions");async function p1(s,t,i,n,r,a="GET",o=!1){const l=s.queryClient,c=cn(s,t,i,n,r,a);return o?(c.staleTime=1,await l.fetchQuery(c)):await l.ensureQueryData(c)}u(p1,"Wd");p(p1,"getApi");function pM(s,t,i=Bi.Unknown,n){return i===Bi.Unknown?cn(s,["apps",t]):cn(s,["apps",t],void 0,void 0,JSON.stringify({type:i,...n}),"PUT")}u(pM,"w1");p(pM,"getAppOptions");function fM(s,t,i=Bi.Unknown,n){return i===Bi.Unknown?p1(s,["apps",t]):p1(s,["apps",t],void 0,void 0,JSON.stringify({type:i,...n}),"PUT")}u(fM,"f1");p(fM,"getApp");function e5(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}))}}}u(e5,"Sy");p(e5,"getAppSubscribeMutationOptions");function yM(s,t=[Re.ChatRoom,Re.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 cn(s,["apps","badge",t],a,n)}u(yM,"m1");p(yM,"getBadgeOptions$1");function mM(s){return{mutationFn:p(async({members:t,type:i})=>await(await s.fetch("/api/apps",{method:"POST",body:JSON.stringify({members:t,type:i})})).json(),"mutationFn"),onSettled:p(async()=>{await s.queryClient.invalidateQueries({queryKey:["apps"]})},"onSettled")}}u(mM,"v1");p(mM,"getAddAppMutationOptions");function wM(s){return new Ze(s.queryClient,mM(s))}u(wM,"g1");p(wM,"getAddAppMutation");function gM(s,t={},i,n,r,a){return{...t,initialPageParam:0,queryKey:["apps","list",i,n,a],queryFn:p(async o=>{var l;const c=new URLSearchParams;n&&c.append("member",n),o.pageParam&&c.append("skip",(l=o.pageParam)==null?void 0:l.toString()),i==null||i.forEach(y=>c.append("type",y)),c.append("order_by",a);const h=r==null?void 0:r();h&&c.append("q",h);const d=`/api/apps?${c.toString()}`,f=await(await s.fetch(d)).json();return f.data=f.data||[],f},"queryFn"),getNextPageParam:p(o=>{if(o.end&&(o==null?void 0:o.end)<(o==null?void 0:o.count))return o.end},"getNextPageParam")}}u(gM,"b1");p(gM,"getAppListOptions");const gD=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 fM(a,o)}}}}},u(i,"t"),i),p(t,"WeavyApi"),t},"WeavyApiMixin"),vD=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(d=>setTimeout(d,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(d=>setTimeout(d,this.tokenFactoryRetryDelay)),await this._validTokenFromFactory(!0)}else if(this._whenTokenFactory=new Promise(d=>{this._resolveTokenFactory=d}),!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 wt;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 wt;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 wt;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}}},u(i,"t"),i),p(t,"WeavyAuthentication"),t},"WeavyAuthenticationMixin");var Iw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vM(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}u(vM,"k1");p(vM,"getDefaultExportFromCjs");function og(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.')}u(og,"$d");p(og,"commonjsRequire");var OM={exports:{}};(function(s,t){var i;i=p(()=>(()=>{var Go,Ko,Jo,el,tl,il,nl,sl,rl,al,ol,ll,is,cl,hl,dl,ul,pl,ns,fl,yl,ml,wl,ia,gl,vl,Ol,bl,$l,xl,kl,Sl,na,Pl,Cl,Ql;var n={d:p((N,v)=>{for(var S in v)n.o(v,S)&&!n.o(N,S)&&Object.defineProperty(N,S,{enumerable:!0,get:v[S]})},"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=(N,v)=>Object.prototype.hasOwnProperty.call(N,v),n.r=N=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(N,"t",{value:!0})};var r,a={};n.r(a),n.d(a,{AbortError:p(()=>f,"AbortError"),DefaultHttpClient:p(()=>fS,"DefaultHttpClient"),HttpClient:p(()=>j,"HttpClient"),HttpError:p(()=>l,"HttpError"),HttpResponse:p(()=>I,"HttpResponse"),HttpTransportType:p(()=>mt,"HttpTransportType"),HubConnection:p(()=>$S,"HubConnection"),HubConnectionBuilder:p(()=>bL,"HubConnectionBuilder"),HubConnectionState:p(()=>je,"HubConnectionState"),JsonHubProtocol:p(()=>LS,"JsonHubProtocol"),LogLevel:p(()=>r,"LogLevel"),MessageType:p(()=>ke,"MessageType"),NullLogger:p(()=>se,"NullLogger"),Subject:p(()=>gS,"Subject"),TimeoutError:p(()=>h,"TimeoutError"),TransferFormat:p(()=>qt,"TransferFormat"),VERSION:p(()=>oe,"VERSION")});const o=(Go=class extends Error{constructor(v,S){const z=new.target.prototype;super(`${v}: Status code '${S}'`),this.statusCode=S,this.__proto__=z}},u(Go,"Ul"),Go);p(o,"i");let l=o;const c=(Ko=class extends Error{constructor(v="A timeout occurred."){const S=new.target.prototype;super(v),this.__proto__=S}},u(Ko,"ql"),Ko);p(c,"n");let h=c;const d=(Jo=class extends Error{constructor(v="An abort occurred."){const S=new.target.prototype;super(v),this.__proto__=S}},u(Jo,"Nl"),Jo);p(d,"r");let f=d;const y=(el=class extends Error{constructor(v,S){const z=new.target.prototype;super(v),this.transport=S,this.errorType="UnsupportedTransportError",this.__proto__=z}},u(el,"jl"),el);p(y,"o");let w=y;const g=(tl=class extends Error{constructor(v,S){const z=new.target.prototype;super(v),this.transport=S,this.errorType="DisabledTransportError",this.__proto__=z}},u(tl,"Wl"),tl);p(g,"h");let b=g;const k=(il=class extends Error{constructor(v,S){const z=new.target.prototype;super(v),this.transport=S,this.errorType="FailedToStartTransportError",this.__proto__=z}},u(il,"Ql"),il);p(k,"c");let $=k;const C=(nl=class extends Error{constructor(v){const S=new.target.prototype;super(v),this.errorType="FailedToNegotiateWithServerError",this.__proto__=S}},u(nl,"Kl"),nl);p(C,"a");let E=C;const A=(sl=class extends Error{constructor(v,S){const z=new.target.prototype;super(v),this.innerErrors=S,this.__proto__=z}},u(sl,"Gl"),sl);p(A,"l");let M=A;const L=(rl=class{constructor(v,S,z){this.statusCode=v,this.statusText=S,this.content=z}},u(rl,"Yl"),rl);p(L,"u");let I=L;const q=(al=class{get(v,S){return this.send({...S,method:"GET",url:v})}post(v,S){return this.send({...S,method:"POST",url:v})}delete(v,S){return this.send({...S,method:"DELETE",url:v})}getCookieString(v){return""}},u(al,"Zl"),al);p(q,"d");let j=q;(function(N){N[N.Trace=0]="Trace",N[N.Debug=1]="Debug",N[N.Information=2]="Information",N[N.Warning=3]="Warning",N[N.Error=4]="Error",N[N.Critical=5]="Critical",N[N.None=6]="None"})(r||(r={}));const ee=(ol=class{constructor(){}log(v,S){}},u(ol,"Xl"),ol);p(ee,"f");let se=ee;se.instance=new se;const oe="8.0.7",ge=(ll=class{static isRequired(v,S){if(v==null)throw new Error(`The '${S}' argument is required.`)}static isNotEmpty(v,S){if(!v||v.match(/^\s*$/))throw new Error(`The '${S}' argument should not be empty.`)}static isIn(v,S,z){if(!(v in S))throw new Error(`Unknown ${z} value: ${v}.`)}},u(ll,"Jl"),ll);p(ge,"w");let re=ge;const Le=(is=class{static get isBrowser(){return!is.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!is.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!is.isNode&&typeof window=="object"&&window.document===void 0}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}},u(is,"hr"),is);p(Le,"g");let Ce=Le;function Ye(N,v){let S="";return Ve(N)?(S=`Binary data of length ${N.byteLength}`,v&&(S+=`. Content: '${function(z){const _=new Uint8Array(z);let W="";return _.forEach(Z=>{W+=`0x${Z<16?"0":""}${Z.toString(16)} `}),W.substr(0,W.length-1)}(N)}'`)):typeof N=="string"&&(S=`String data of length ${N.length}`,v&&(S+=`. Content: '${N}'`)),S}u(Ye,"U"),p(Ye,"m");function Ve(N){return N&&typeof ArrayBuffer<"u"&&(N instanceof ArrayBuffer||N.constructor&&N.constructor.name==="ArrayBuffer")}u(Ve,"O"),p(Ve,"y");async function yt(N,v,S,z,_,W){const Z={},[le,ce]=Kt();Z[le]=ce,N.log(r.Trace,`(${v} transport) sending data. ${Ye(_,W.logMessageContent)}.`);const Te=Ve(_)?"arraybuffer":"text",Ne=await S.post(z,{content:_,headers:{...Z,...W.headers},responseType:Te,timeout:W.timeout,withCredentials:W.withCredentials});N.log(r.Trace,`(${v} transport) request complete. Response status: ${Ne.statusCode}.`)}u(yt,"V"),p(yt,"b");const Qt=(cl=class{constructor(v,S){this.i=v,this.h=S}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(S=>{})}},u(cl,"td"),cl);p(Qt,"v");let kt=Qt;const Gt=(hl=class{constructor(v){this.l=v,this.out=console}log(v,S){if(v>=this.l){const z=`[${new Date().toISOString()}] ${r[v]}: ${S}`;switch(v){case r.Critical:case r.Error:this.out.error(z);break;case r.Warning:this.out.warn(z);break;case r.Information:this.out.info(z);break;default:this.out.log(z)}}}},u(hl,"ed"),hl);p(Gt,"E");let si=Gt;function Kt(){let N="X-SignalR-User-Agent";return Ce.isNode&&(N="User-Agent"),[N,es(oe,Ws(),Ce.isNode?"NodeJS":"Browser",gw())]}u(Kt,"H"),p(Kt,"$");function es(N,v,S,z){let _="Microsoft SignalR/";const W=N.split(".");return _+=`${W[0]}.${W[1]}`,_+=` (${N}; `,_+=v&&v!==""?`${v}; `:"Unknown OS; ",_+=`${S}`,_+=z?`; ${z}`:"; Unknown Runtime Version",_+=")",_}u(es,"W"),p(es,"C");function Ws(){if(!Ce.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}u(Ws,"ft"),p(Ws,"S");function gw(){if(Ce.isNode)return process.versions.node}u(gw,"wt"),p(gw,"k");function Yo(N){return N.stack?N.stack:N.message?N.message:`${N}`}u(Yo,"ut"),p(Yo,"P");const dS=(dl=class extends j{constructor(v){if(super(),this.u=v,typeof fetch>"u"||Ce.isNode){const S=og;this.p=new(S("tough-cookie")).CookieJar,typeof fetch>"u"?this.m=S("node-fetch"):this.m=fetch,this.m=S("fetch-cookie")(this.m,this.p)}else this.m=fetch.bind(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(n.g!==void 0)return n.g;throw new Error("could not find global")}());if(typeof AbortController>"u"){const S=og;this.v=S("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 S=new this.v;let z;v.abortSignal&&(v.abortSignal.onabort=()=>{S.abort(),z=new f});let _,W=null;if(v.timeout){const ce=v.timeout;W=setTimeout(()=>{S.abort(),this.u.log(r.Warning,"Timeout from HTTP request."),z=new h},ce)}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:S.signal})}catch(ce){throw z||(this.u.log(r.Warning,`Error from HTTP request. ${ce}.`),ce)}finally{W&&clearTimeout(W),v.abortSignal&&(v.abortSignal.onabort=null)}if(!_.ok){const ce=await Ev(_,"text");throw new l(ce||_.statusText,_.status)}const Z=Ev(_,v.responseType),le=await Z;return new I(_.status,_.statusText,le)}getCookieString(v){let S="";return Ce.isNode&&this.p&&this.p.getCookies(v,(z,_)=>S=_.join("; ")),S}},u(dl,"id"),dl);p(dS,"T");let lL=dS;function Ev(N,v){let S;switch(v){case"arraybuffer":S=N.arrayBuffer();break;case"text":default:S=N.text();break;case"blob":case"document":case"json":throw new Error(`${v} is not supported.`)}return S}u(Ev,"he"),p(Ev,"I");const uS=(ul=class extends j{constructor(v){super(),this.u=v}send(v){return v.abortSignal&&v.abortSignal.aborted?Promise.reject(new f):v.method?v.url?new Promise((S,z)=>{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(Z=>{_.setRequestHeader(Z,W[Z])}),v.responseType&&(_.responseType=v.responseType),v.abortSignal&&(v.abortSignal.onabort=()=>{_.abort(),z(new f)}),v.timeout&&(_.timeout=v.timeout),_.onload=()=>{v.abortSignal&&(v.abortSignal.onabort=null),_.status>=200&&_.status<300?S(new I(_.status,_.statusText,_.response||_.responseText)):z(new l(_.response||_.responseText||_.statusText,_.status))},_.onerror=()=>{this.u.log(r.Warning,`Error from HTTP request. ${_.status}: ${_.statusText}.`),z(new l(_.statusText,_.status))},_.ontimeout=()=>{this.u.log(r.Warning,"Timeout from HTTP request."),z(new h)},_.send(v.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}},u(ul,"sd"),ul);p(uS,"_");let cL=uS;const pS=(pl=class extends j{constructor(v){if(super(),typeof fetch<"u"||Ce.isNode)this.$=new lL(v);else{if(typeof XMLHttpRequest>"u")throw new Error("No usable HttpClient found.");this.$=new cL(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)}},u(pl,"rd"),pl);p(pS,"H");let fS=pS;const yS=(ns=class{static write(v){return`${v}${ns.RecordSeparator}`}static parse(v){if(v[v.length-1]!==ns.RecordSeparator)throw new Error("Message is incomplete.");const S=v.split(ns.RecordSeparator);return S.pop(),S}},u(ns,"pr"),ns);p(yS,"D");let ts=yS;ts.RecordSeparatorCode=30,ts.RecordSeparator=String.fromCharCode(ts.RecordSeparatorCode);const mS=(fl=class{writeHandshakeRequest(v){return ts.write(JSON.stringify(v))}parseHandshakeResponse(v){let S,z;if(Ve(v)){const Z=new Uint8Array(v),le=Z.indexOf(ts.RecordSeparatorCode);if(le===-1)throw new Error("Message is incomplete.");const ce=le+1;S=String.fromCharCode.apply(null,Array.prototype.slice.call(Z.slice(0,ce))),z=Z.byteLength>ce?Z.slice(ce).buffer:null}else{const Z=v,le=Z.indexOf(ts.RecordSeparator);if(le===-1)throw new Error("Message is incomplete.");const ce=le+1;S=Z.substring(0,ce),z=Z.length>ce?Z.substring(ce):null}const _=ts.parse(S),W=JSON.parse(_[0]);if(W.type)throw new Error("Expected a handshake response from the server.");return[z,W]}},u(fl,"nd"),fl);p(mS,"R");let hL=mS;var ke,je;(function(N){N[N.Invocation=1]="Invocation",N[N.StreamItem=2]="StreamItem",N[N.Completion=3]="Completion",N[N.StreamInvocation=4]="StreamInvocation",N[N.CancelInvocation=5]="CancelInvocation",N[N.Ping=6]="Ping",N[N.Close=7]="Close",N[N.Ack=8]="Ack",N[N.Sequence=9]="Sequence"})(ke||(ke={}));const wS=(yl=class{constructor(){this.observers=[]}next(v){for(const S of this.observers)S.next(v)}error(v){for(const S of this.observers)S.error&&S.error(v)}complete(){for(const v of this.observers)v.complete&&v.complete()}subscribe(v){return this.observers.push(v),new kt(this,v)}},u(yl,"ad"),yl);p(wS,"U");let gS=wS;const vS=(ml=class{constructor(v,S,z){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=S,this.C=z}async A(v){const S=this.D.writeMessage(v);let z=Promise.resolve();if(this.U(v)){this.k++;let _=p(()=>{},"t"),W=p(()=>{},"i");Ve(S)?this._+=S.byteLength:this._+=S.length,this._>=this.C&&(z=new Promise((Z,le)=>{_=Z,W=le})),this.S.push(new uL(S,this.k,_,W))}try{this.H||await this.R.send(S)}catch{this.L()}await z}N(v){let S=-1;for(let z=0;z<this.S.length;z++){const _=this.S[z];if(_.q<=v.sequenceId)S=z,Ve(_.M)?this._-=_.M.byteLength:this._-=_.M.length,_.j();else{if(!(this._<this.C))break;_.j()}}S!==-1&&(this.S=this.S.slice(S+1))}W(v){if(this.P)return v.type===ke.Sequence&&(this.P=!1,!0);if(!this.U(v))return!0;const S=this.T;return this.T++,S<=this.I?(S===this.I&&this.O(),!1):(this.I=S,this.O(),!0)}F(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:ke.Sequence,sequenceId:v}));const S=this.S;for(const z of S)await this.R.send(z.M);this.H=!1}X(v){v!=null||(v=new Error("Unable to reconnect to server."));for(const S of this.S)S.J(v)}U(v){switch(v.type){case ke.Invocation:case ke.StreamItem:case ke.Completion:case ke.StreamInvocation:case ke.CancelInvocation:return!0;case ke.Close:case ke.Sequence:case ke.Ping:case ke.Ack:return!1}}O(){this.V===void 0&&(this.V=setTimeout(async()=>{try{this.H||await this.R.send(this.D.writeMessage({type:ke.Ack,sequenceId:this.I}))}catch{}clearTimeout(this.V),this.V=void 0},1e3))}},u(ml,"od"),ml);p(vS,"L");let dL=vS;const OS=(wl=class{constructor(v,S,z,_){this.M=v,this.q=S,this.j=z,this.J=_}},u(wl,"cd"),wl);p(OS,"N");let uL=OS;(function(N){N.Disconnected="Disconnected",N.Connecting="Connecting",N.Connected="Connected",N.Disconnecting="Disconnecting",N.Reconnecting="Reconnecting"})(je||(je={}));const bS=(ia=class{static create(v,S,z,_,W,Z,le){return new ia(v,S,z,_,W,Z,le)}constructor(v,S,z,_,W,Z,le){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")},re.isRequired(v,"connection"),re.isRequired(S,"logger"),re.isRequired(z,"protocol"),this.serverTimeoutInMilliseconds=W??3e4,this.keepAliveIntervalInMilliseconds=Z??15e3,this.Y=le??1e5,this.u=S,this.D=z,this.connection=v,this.Z=_,this.tt=new hL,this.connection.onreceive=ce=>this.et(ce),this.connection.onclose=ce=>this.st(ce),this.it={},this.nt={},this.rt=[],this.ot=[],this.ht=[],this.ct=0,this.lt=!1,this.ut=je.Disconnected,this.dt=!1,this.ft=this.D.writeMessage({type:ke.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!==je.Disconnected&&this.ut!==je.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!==je.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this.ut=je.Connecting,this.u.log(r.Debug,"Starting HubConnection.");try{await this.yt(),Ce.isBrowser&&window.document.addEventListener("freeze",this.G),this.ut=je.Connected,this.dt=!0,this.u.log(r.Debug,"HubConnection connected successfully.")}catch(v){return this.ut=je.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((S,z)=>{this.vt=S,this.Et=z});await this.connection.start(this.D.transferFormat);try{let S=this.D.version;this.connection.features.reconnect||(S=1);const z={protocol:this.D.name,version:S};if(this.u.log(r.Debug,"Sending handshake request."),await this.$t(this.tt.writeHandshakeRequest(z)),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 dL(this.D,this.connection,this.Y),this.connection.features.disconnected=this.Pt.L.bind(this.Pt),this.connection.features.resend=()=>{if(this.Pt)return this.Pt.B()}),this.connection.features.inherentKeepAlive||await this.$t(this.ft)}catch(S){throw this.u.log(r.Debug,`Hub handshake failed with error '${S}' during start(). Stopping HubConnection.`),this.Ct(),this.Tt(),await this.connection.stop(S),S}}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===je.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===je.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 S=this.ut;return this.ut=je.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()):(S===je.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,...S){const[z,_]=this.Ut(S),W=this.Lt(v,S,_);let Z;const le=new gS;return le.cancelCallback=()=>{const ce=this.Nt(W.invocationId);return delete this.it[W.invocationId],Z.then(()=>this.xt(ce))},this.it[W.invocationId]=(ce,Te)=>{Te?le.error(Te):ce&&(ce.type===ke.Completion?ce.error?le.error(new Error(ce.error)):le.complete():le.next(ce.item))},Z=this.xt(W).catch(ce=>{le.error(ce),delete this.it[W.invocationId]}),this.qt(z,Z),le}$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,...S){const[z,_]=this.Ut(S),W=this.xt(this.Mt(v,S,!0,_));return this.qt(z,W),W}invoke(v,...S){const[z,_]=this.Ut(S),W=this.Mt(v,S,!1,_);return new Promise((Z,le)=>{this.it[W.invocationId]=(Te,Ne)=>{Ne?le(Ne):Te&&(Te.type===ke.Completion?Te.error?le(new Error(Te.error)):Z(Te.result):le(new Error(`Unexpected message type: ${Te.type}`)))};const ce=this.xt(W).catch(Te=>{le(Te),delete this.it[W.invocationId]});this.qt(z,ce)})}on(v,S){v&&S&&(v=v.toLowerCase(),this.nt[v]||(this.nt[v]=[]),this.nt[v].indexOf(S)===-1&&this.nt[v].push(S))}off(v,S){if(!v)return;v=v.toLowerCase();const z=this.nt[v];if(z)if(S){const _=z.indexOf(S);_!==-1&&(z.splice(_,1),z.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 S=this.D.parseMessages(v,this.u);for(const z of S)if(!this.Pt||this.Pt.W(z))switch(z.type){case ke.Invocation:this.Wt(z).catch(_=>{this.u.log(r.Error,`Invoke client method threw error: ${Yo(_)}`)});break;case ke.StreamItem:case ke.Completion:{const _=this.it[z.invocationId];if(_){z.type===ke.Completion&&delete this.it[z.invocationId];try{_(z)}catch(W){this.u.log(r.Error,`Stream callback threw error: ${Yo(W)}`)}}break}case ke.Ping:break;case ke.Close:{this.u.log(r.Information,"Close message received from server.");const _=z.error?new Error("Server returned an error on close: "+z.error):void 0;z.allowReconnect===!0?this.connection.stop(_):this.It=this._t(_);break}case ke.Ack:this.Pt&&this.Pt.N(z);break;case ke.Sequence:this.Pt&&this.Pt.F(z);break;default:this.u.log(r.Warning,`Invalid message type: ${z.type}.`)}}this.St()}jt(v){let S,z;try{[z,S]=this.tt.parseHandshakeResponse(v)}catch(_){const W="Error parsing handshake response: "+_;this.u.log(r.Error,W);const Z=new Error(W);throw this.Et(Z),Z}if(S.error){const _="Server returned handshake error: "+S.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(),z}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===je.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 S=v.target.toLowerCase(),z=this.nt[S];if(!z)return this.u.log(r.Warning,`No client method with the name '${S}' found.`),void(v.invocationId&&(this.u.log(r.Warning,`No result given for '${S}' method and invocation ID '${v.invocationId}'.`),await this.xt(this.Bt(v.invocationId,"Client didn't provide a result.",null))));const _=z.slice(),W=!!v.invocationId;let Z,le,ce;for(const Te of _)try{const Ne=Z;Z=await Te.apply(this,v.arguments),W&&Z&&Ne&&(this.u.log(r.Error,`Multiple results provided for '${S}'. Sending error to server.`),ce=this.Bt(v.invocationId,"Client provided multiple results.",null)),le=void 0}catch(Ne){le=Ne,this.u.log(r.Error,`A callback for the method '${S}' threw error '${Ne}'.`)}ce?await this.xt(ce):W?(le?ce=this.Bt(v.invocationId,`${le}`,null):Z!==void 0?ce=this.Bt(v.invocationId,null,Z):(this.u.log(r.Warning,`No result given for '${S}' method and invocation ID '${v.invocationId}'.`),ce=this.Bt(v.invocationId,"Client didn't provide a result.",null)),await this.xt(ce)):Z&&this.u.log(r.Error,`Result given for '${S}' 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===je.Disconnecting?this.Dt(v):this.ut===je.Connected&&this.Z?this.Jt(v):this.ut===je.Connected&&this.Dt(v)}Dt(v){if(this.dt){this.ut=je.Disconnected,this.dt=!1,this.Pt&&(this.Pt.X(v??new Error("Connection closed.")),this.Pt=void 0),Ce.isBrowser&&window.document.removeEventListener("freeze",this.G);try{this.rt.forEach(S=>S.apply(this,[v]))}catch(S){this.u.log(r.Error,`An onclose callback called with error '${v}' threw error '${S}'.`)}}}async Jt(v){const S=Date.now();let z=0,_=v!==void 0?v:new Error("Attempting to reconnect due to a unknown error."),W=this.zt(z++,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=je.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(Z=>Z.apply(this,[v]))}catch(Z){this.u.log(r.Error,`An onreconnecting callback called with error '${v}' threw error '${Z}'.`)}if(this.ut!==je.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 ${z} will start in ${W} ms.`),await new Promise(Z=>{this.Ht=setTimeout(Z,W)}),this.Ht=void 0,this.ut!==je.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=je.Connected,this.u.log(r.Information,"HubConnection reconnected successfully."),this.ht.length!==0)try{this.ht.forEach(Z=>Z.apply(this,[this.connection.connectionId]))}catch(Z){this.u.log(r.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${Z}'.`)}return}catch(Z){if(this.u.log(r.Information,`Reconnect attempt failed because of error '${Z}'.`),this.ut!==je.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===je.Disconnecting&&this.Dt());_=Z instanceof Error?Z:new Error(Z.toString()),W=this.zt(z++,Date.now()-S,_)}}this.u.log(r.Information,`Reconnect retries have been exhausted after ${Date.now()-S} ms and ${z} failed attempts. Connection disconnecting.`),this.Dt()}zt(v,S,z){try{return this.Z.nextRetryDelayInMilliseconds({elapsedMilliseconds:S,previousRetryCount:v,retryReason:z})}catch(_){return this.u.log(r.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${v}, ${S}) threw error '${_}'.`),null}}Xt(v){const S=this.it;this.it={},Object.keys(S).forEach(z=>{const _=S[z];try{_(null,v)}catch(W){this.u.log(r.Error,`Stream 'error' callback called with '${v}' threw error: ${Yo(W)}`)}})}Tt(){this.Ft&&(clearTimeout(this.Ft),this.Ft=void 0)}Ct(){this.Ot&&clearTimeout(this.Ot)}Mt(v,S,z,_){if(z)return _.length!==0?{arguments:S,streamIds:_,target:v,type:ke.Invocation}:{arguments:S,target:v,type:ke.Invocation};{const W=this.ct;return this.ct++,_.length!==0?{arguments:S,invocationId:W.toString(),streamIds:_,target:v,type:ke.Invocation}:{arguments:S,invocationId:W.toString(),target:v,type:ke.Invocation}}}qt(v,S){if(v.length!==0){S||(S=Promise.resolve());for(const z in v)v[z].subscribe({complete:p(()=>{S=S.then(()=>this.xt(this.Bt(z)))},"complete"),error:p(_=>{let W;W=_ instanceof Error?_.message:_&&_.toString?_.toString():"Unknown error",S=S.then(()=>this.xt(this.Bt(z,W)))},"error"),next:p(_=>{S=S.then(()=>this.xt(this.Vt(z,_)))},"next")})}}Ut(v){const S=[],z=[];for(let _=0;_<v.length;_++){const W=v[_];if(this.Kt(W)){const Z=this.ct;this.ct++,S[Z]=W,z.push(Z.toString()),v.splice(_,1)}}return[S,z]}Kt(v){return v&&v.subscribe&&typeof v.subscribe=="function"}Lt(v,S,z){const _=this.ct;return this.ct++,z.length!==0?{arguments:S,invocationId:_.toString(),streamIds:z,target:v,type:ke.StreamInvocation}:{arguments:S,invocationId:_.toString(),target:v,type:ke.StreamInvocation}}Nt(v){return{invocationId:v,type:ke.CancelInvocation}}Vt(v,S){return{invocationId:v,item:S,type:ke.StreamItem}}Bt(v,S,z){return S?{error:S,invocationId:v,type:ke.Completion}:{invocationId:v,result:z,type:ke.Completion}}At(){return{type:ke.Close}}},u(ia,"Cc"),ia);p(bS,"q");let $S=bS;const pL=[0,2e3,1e4,3e4,null],xS=(gl=class{constructor(v){this.Gt=v!==void 0?[...v,null]:pL}nextRetryDelayInMilliseconds(v){return this.Gt[v.previousRetryCount]}},u(gl,"ld"),gl);p(xS,"j");let kS=xS;const SS=(vl=class{},u(vl,"dd"),vl);p(SS,"W");let ta=SS;ta.Authorization="Authorization",ta.Cookie="Cookie";const PS=(Ol=class extends j{constructor(v,S){super(),this.Qt=v,this.Yt=S}async send(v){let S=!0;this.Yt&&(!this.Zt||v.url&&v.url.indexOf("/negotiate?")>0)&&(S=!1,this.Zt=await this.Yt()),this.te(v);const z=await this.Qt.send(v);return S&&z.statusCode===401&&this.Yt?(this.Zt=await this.Yt(),this.te(v),await this.Qt.send(v)):z}te(v){v.headers||(v.headers={}),this.Zt?v.headers[ta.Authorization]=`Bearer ${this.Zt}`:this.Yt&&v.headers[ta.Authorization]&&delete v.headers[ta.Authorization]}getCookieString(v){return this.Qt.getCookieString(v)}},u(Ol,"hd"),Ol);p(PS,"O");let fL=PS;var mt,qt;(function(N){N[N.None=0]="None",N[N.WebSockets=1]="WebSockets",N[N.ServerSentEvents=2]="ServerSentEvents",N[N.LongPolling=4]="LongPolling"})(mt||(mt={})),function(N){N[N.Text=1]="Text",N[N.Binary=2]="Binary"}(qt||(qt={}));const CS=(bl=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}},u(bl,"pd"),bl);p(CS,"X");let yL=CS;const QS=($l=class{get pollAborted(){return this.se.aborted}constructor(v,S,z){this.$=v,this.u=S,this.se=new yL,this.ie=z,this.ne=!1,this.onreceive=null,this.onclose=null}async connect(v,S){if(re.isRequired(v,"url"),re.isRequired(S,"transferFormat"),re.isIn(S,qt,"transferFormat"),this.re=v,this.u.log(r.Trace,"(LongPolling transport) Connecting."),S===qt.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[z,_]=Kt(),W={[z]:_,...this.ie.headers},Z={abortSignal:this.se.signal,headers:W,timeout:1e5,withCredentials:this.ie.withCredentials};S===qt.Binary&&(Z.responseType="arraybuffer");const le=`${v}&_=${Date.now()}`;this.u.log(r.Trace,`(LongPolling transport) polling: ${le}.`);const ce=await this.$.get(le,Z);ce.statusCode!==200?(this.u.log(r.Error,`(LongPolling transport) Unexpected response code: ${ce.statusCode}.`),this.oe=new l(ce.statusText||"",ce.statusCode),this.ne=!1):this.ne=!0,this.he=this.ce(this.re,Z)}async ce(v,S){try{for(;this.ne;)try{const z=`${v}&_=${Date.now()}`;this.u.log(r.Trace,`(LongPolling transport) polling: ${z}.`);const _=await this.$.get(z,S);_.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. ${Ye(_.content,this.ie.logMessageContent)}.`),this.onreceive&&this.onreceive(_.content)):this.u.log(r.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(z){this.ne?z instanceof h?this.u.log(r.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.oe=z,this.ne=!1):this.u.log(r.Trace,`(LongPolling transport) Poll errored after shutdown: ${z.message}`)}}finally{this.u.log(r.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.ae()}}async send(v){return this.ne?yt(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={},[S,z]=Kt();v[S]=z;const _={headers:{...v,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials};let W;try{await this.$.delete(this.re,_)}catch(Z){W=Z}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)}}},u($l,"ud"),$l);p(QS,"J");let TS=QS;const RS=(xl=class{constructor(v,S,z,_){this.$=v,this.Zt=S,this.u=z,this.ie=_,this.onreceive=null,this.onclose=null}async connect(v,S){return re.isRequired(v,"url"),re.isRequired(S,"transferFormat"),re.isIn(S,qt,"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((z,_)=>{let W,Z=!1;if(S===qt.Text){if(Ce.isBrowser||Ce.isWebWorker)W=new this.ie.EventSource(v,{withCredentials:this.ie.withCredentials});else{const le=this.$.getCookieString(v),ce={};ce.Cookie=le;const[Te,Ne]=Kt();ce[Te]=Ne,W=new this.ie.EventSource(v,{withCredentials:this.ie.withCredentials,headers:{...ce,...this.ie.headers}})}try{W.onmessage=le=>{if(this.onreceive)try{this.u.log(r.Trace,`(SSE transport) data received. ${Ye(le.data,this.ie.logMessageContent)}.`),this.onreceive(le.data)}catch(ce){return void this.le(ce)}},W.onerror=le=>{Z?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,Z=!0,z()}}catch(le){return void _(le)}}else _(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})}async send(v){return this.ue?yt(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))}},u(xl,"yd"),xl);p(RS,"z");let mL=RS;const MS=(kl=class{constructor(v,S,z,_,W,Z){this.u=z,this.Yt=S,this.de=_,this.fe=W,this.$=v,this.onreceive=null,this.onclose=null,this.pe=Z}async connect(v,S){let z;return re.isRequired(v,"url"),re.isRequired(S,"transferFormat"),re.isIn(S,qt,"transferFormat"),this.u.log(r.Trace,"(WebSockets transport) Connecting."),this.Yt&&(z=await this.Yt()),new Promise((_,W)=>{let Z;v=v.replace(/^http/,"ws");const le=this.$.getCookieString(v);let ce=!1;if(Ce.isNode||Ce.isReactNative){const Te={},[Ne,Tl]=Kt();Te[Ne]=Tl,z&&(Te[ta.Authorization]=`Bearer ${z}`),le&&(Te[ta.Cookie]=le),Z=new this.fe(v,void 0,{headers:{...Te,...this.pe}})}else z&&(v+=(v.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(z)}`);Z||(Z=new this.fe(v)),S===qt.Binary&&(Z.binaryType="arraybuffer"),Z.onopen=Te=>{this.u.log(r.Information,`WebSocket connected to ${v}.`),this.we=Z,ce=!0,_()},Z.onerror=Te=>{let Ne=null;Ne=typeof ErrorEvent<"u"&&Te instanceof ErrorEvent?Te.error:"There was an error with the transport",this.u.log(r.Information,`(WebSockets transport) ${Ne}.`)},Z.onmessage=Te=>{if(this.u.log(r.Trace,`(WebSockets transport) data received. ${Ye(Te.data,this.de)}.`),this.onreceive)try{this.onreceive(Te.data)}catch(Ne){return void this.le(Ne)}},Z.onclose=Te=>{if(ce)this.le(Te);else{let Ne=null;Ne=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(Ne))}}})}send(v){return this.we&&this.we.readyState===this.fe.OPEN?(this.u.log(r.Trace,`(WebSockets transport) sending data. ${Ye(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"}},u(kl,"wd"),kl);p(MS,"V");let wL=MS;const AS=(Sl=class{constructor(v,S={}){var z;if(this.me=()=>{},this.features={},this.ye=1,re.isRequired(v,"url"),this.u=(z=S.logger)===void 0?new si(r.Information):z===null?se.instance:z.log!==void 0?z:new si(z),this.baseUrl=this.be(v),(S=S||{}).logMessageContent=S.logMessageContent!==void 0&&S.logMessageContent,typeof S.withCredentials!="boolean"&&S.withCredentials!==void 0)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");S.withCredentials=S.withCredentials===void 0||S.withCredentials,S.timeout=S.timeout===void 0?1e5:S.timeout;let _=null,W=null;if(Ce.isNode){const Z=og;_=Z("ws"),W=Z("eventsource")}Ce.isNode||typeof WebSocket>"u"||S.WebSocket?Ce.isNode&&!S.WebSocket&&_&&(S.WebSocket=_):S.WebSocket=WebSocket,Ce.isNode||typeof EventSource>"u"||S.EventSource?Ce.isNode&&!S.EventSource&&W!==void 0&&(S.EventSource=W):S.EventSource=EventSource,this.$=new fL(S.httpClient||new fS(this.u),S.accessTokenFactory),this.ut="Disconnected",this.dt=!1,this.ie=S,this.onreceive=null,this.onclose=null}async start(v){if(v=v||qt.Binary,re.isIn(v,qt,"transferFormat"),this.u.log(r.Debug,`Starting connection with transfer format '${qt[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 S="Failed to start the HttpConnection before stop() was called.";return this.u.log(r.Error,S),await this.It,Promise.reject(new f(S))}if(this.ut!=="Connected"){const S="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this.u.log(r.Error,S),Promise.reject(new f(S))}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 vL(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(S=>{this.me=S}),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(S){this.u.log(r.Error,`HttpConnection.transport.stop() threw error '${S}'.`),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 S=this.baseUrl;this.Yt=this.ie.accessTokenFactory,this.$.Yt=this.Yt;try{if(this.ie.skipNegotiation){if(this.ie.transport!==mt.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this.Se(mt.WebSockets),await this.ke(S,v)}else{let z=null,_=0;do{if(z=await this.Pe(S),this.ut==="Disconnecting"||this.ut==="Disconnected")throw new f("The connection was stopped during negotiation.");if(z.error)throw new Error(z.error);if(z.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(z.url&&(S=z.url),z.accessToken){const W=z.accessToken;this.Yt=()=>W,this.$.Zt=W,this.$.Yt=void 0}_++}while(z.url&&_<100);if(_===100&&z.url)throw new Error("Negotiate redirection limit exceeded.");await this.Te(S,this.ie.transport,z,v)}this.transport instanceof TS&&(this.features.inherentKeepAlive=!0),this.ut==="Connecting"&&(this.u.log(r.Debug,"The HttpConnection connected successfully."),this.ut="Connected")}catch(z){return this.u.log(r.Error,"Failed to start the connection: "+z),this.ut="Disconnected",this.transport=void 0,this.me(),Promise.reject(z)}}async Pe(v){const S={},[z,_]=Kt();S[z]=_;const W=this.Ie(v);this.u.log(r.Debug,`Sending negotiation request: ${W}.`);try{const Z=await this.$.post(W,{content:"",headers:{...S,...this.ie.headers},timeout:this.ie.timeout,withCredentials:this.ie.withCredentials});if(Z.statusCode!==200)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${Z.statusCode}'`));const le=JSON.parse(Z.content);return(!le.negotiateVersion||le.negotiateVersion<1)&&(le.connectionToken=le.connectionId),le.useStatefulReconnect&&this.ie._e!==!0?Promise.reject(new E("Client didn't negotiate Stateful Reconnect but the server did.")):le}catch(Z){let le="Failed to complete negotiation with the server: "+Z;return Z instanceof l&&Z.statusCode===404&&(le+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this.u.log(r.Error,le),Promise.reject(new E(le))}}He(v,S){return S?v+(v.indexOf("?")===-1?"?":"&")+`id=${S}`:v}async Te(v,S,z,_){let W=this.He(v,z.connectionToken);if(this.De(S))return this.u.log(r.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=S,await this.ke(W,_),void(this.connectionId=z.connectionId);const Z=[],le=z.availableTransports||[];let ce=z;for(const Te of le){const Ne=this.Re(Te,S,_,(ce==null?void 0:ce.useStatefulReconnect)===!0);if(Ne instanceof Error)Z.push(`${Te.transport} failed:`),Z.push(Ne);else if(this.De(Ne)){if(this.transport=Ne,!ce){try{ce=await this.Pe(v)}catch(Tl){return Promise.reject(Tl)}W=this.He(v,ce.connectionToken)}try{return await this.ke(W,_),void(this.connectionId=ce.connectionId)}catch(Tl){if(this.u.log(r.Error,`Failed to start the transport '${Te.transport}': ${Tl}`),ce=void 0,Z.push(new $(`${Te.transport} failed: ${Tl}`,mt[Te.transport])),this.ut!=="Connecting"){const WS="Failed to select transport before stop() was called.";return this.u.log(r.Debug,WS),Promise.reject(new f(WS))}}}}return Z.length>0?Promise.reject(new M(`Unable to connect to the server with any of the available transports. ${Z.join(" ")}`,Z)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}Se(v){switch(v){case mt.WebSockets:if(!this.ie.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new wL(this.$,this.Yt,this.u,this.ie.logMessageContent,this.ie.WebSocket,this.ie.headers||{});case mt.ServerSentEvents:if(!this.ie.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new mL(this.$,this.$.Zt,this.u,this.ie);case mt.LongPolling:return new TS(this.$,this.u,this.ie);default:throw new Error(`Unknown transport: ${v}.`)}}ke(v,S){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async z=>{let _=!1;if(this.features.reconnect){try{this.features.disconnected(),await this.transport.connect(v,S),await this.features.resend()}catch{_=!0}_&&this.Ce(z)}else this.Ce(z)}:this.transport.onclose=z=>this.Ce(z),this.transport.connect(v,S)}Re(v,S,z,_){const W=mt[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(Z,le){return!Z||(le&Z)!=0}(S,W))return this.u.log(r.Debug,`Skipping transport '${mt[W]}' because it was disabled by the client.`),new b(`'${mt[W]}' is disabled by the client.`,W);if(!(v.transferFormats.map(Z=>qt[Z]).indexOf(z)>=0))return this.u.log(r.Debug,`Skipping transport '${mt[W]}' because it does not support the requested transfer format '${qt[z]}'.`),new Error(`'${mt[W]}' does not support ${qt[z]}.`);if(W===mt.WebSockets&&!this.ie.WebSocket||W===mt.ServerSentEvents&&!this.ie.EventSource)return this.u.log(r.Debug,`Skipping transport '${mt[W]}' because it is not supported in your environment.'`),new w(`'${mt[W]}' is not supported in your environment.`,W);this.u.log(r.Debug,`Selecting transport '${mt[W]}'.`);try{return this.features.reconnect=W===mt.WebSockets?_:void 0,this.Se(W)}catch(Z){return Z}}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(S=>{this.u.log(r.Error,`TransportSendQueue.stop() threw error '${S}'.`)}),this.Ee=void 0),this.connectionId=void 0,this.ut="Disconnected",this.dt){this.dt=!1;try{this.onclose&&this.onclose(v)}catch(S){this.u.log(r.Error,`HttpConnection.onclose(${v}) threw error '${S}'.`)}}}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(!Ce.isBrowser)throw new Error(`Cannot resolve '${v}'.`);const S=window.document.createElement("a");return S.href=v,this.u.log(r.Information,`Normalizing '${v}' to '${S.href}'.`),S.href}Ie(v){const S=new URL(v);S.pathname.endsWith("/")?S.pathname+="negotiate":S.pathname+="/negotiate";const z=new URLSearchParams(S.searchParams);return z.has("negotiateVersion")||z.append("negotiateVersion",this.ye.toString()),z.has("useStatefulReconnect")?z.get("useStatefulReconnect")==="true"&&(this.ie._e=!0):this.ie._e===!0&&z.append("useStatefulReconnect","true"),S.search=z.toString(),S.toString()}},u(Sl,"fd"),Sl);p(AS,"K");let gL=AS;const ES=(na=class{constructor(v){this.xe=v,this.Ae=[],this.Ue=!0,this.Le=new vw,this.Ne=new vw,this.qe=this.Me()}send(v){return this.je(v),this.Ne||(this.Ne=new vw),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 vw;const v=this.Ne;this.Ne=void 0;const S=typeof this.Ae[0]=="string"?this.Ae.join(""):na.We(this.Ae);this.Ae.length=0;try{await this.xe.send(S),v.resolve()}catch(z){v.reject(z)}}}static We(v){const S=v.map(W=>W.byteLength).reduce((W,Z)=>W+Z),z=new Uint8Array(S);let _=0;for(const W of v)z.set(new Uint8Array(W),_),_+=W.byteLength;return z.buffer}},u(na,"_c"),na);p(ES,"G");let vL=ES;const zS=(Pl=class{constructor(){this.promise=new Promise((v,S)=>[this.j,this.Oe]=[v,S])}resolve(){this.j()}reject(v){this.Oe(v)}},u(Pl,"md"),Pl);p(zS,"Q");let vw=zS;const _S=(Cl=class{constructor(){this.name="json",this.version=2,this.transferFormat=qt.Text}parseMessages(v,S){if(typeof v!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!v)return[];S===null&&(S=se.instance);const z=ts.parse(v),_=[];for(const W of z){const Z=JSON.parse(W);if(typeof Z.type!="number")throw new Error("Invalid payload.");switch(Z.type){case ke.Invocation:this.U(Z);break;case ke.StreamItem:this.Fe(Z);break;case ke.Completion:this.Be(Z);break;case ke.Ping:case ke.Close:break;case ke.Ack:this.Xe(Z);break;case ke.Sequence:this.Je(Z);break;default:S.log(r.Information,"Unknown message type '"+Z.type+"' ignored.");continue}_.push(Z)}return _}writeMessage(v){return ts.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,S){if(typeof v!="string"||v==="")throw new Error(S)}},u(Cl,"vd"),Cl);p(_S,"Y");let LS=_S;const OL={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},IS=(Ql=class{configureLogging(v){if(re.isRequired(v,"logging"),v.log!==void 0)this.logger=v;else if(typeof v=="string"){const S=function(z){const _=OL[z.toLowerCase()];if(_!==void 0)return _;throw new Error(`Unknown log level: ${z}`)}(v);this.logger=new si(S)}else this.logger=new si(v);return this}withUrl(v,S){return re.isRequired(v,"url"),re.isNotEmpty(v,"url"),this.url=v,this.httpConnectionOptions=typeof S=="object"?{...this.httpConnectionOptions,...S}:{...this.httpConnectionOptions,transport:S},this}withHubProtocol(v){return re.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 kS(v):this.reconnectPolicy=v:this.reconnectPolicy=new kS,this}withServerTimeout(v){return re.isRequired(v,"milliseconds"),this.Ve=v,this}withKeepAliveInterval(v){return re.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 S=new gL(this.url,v);return $S.create(S,this.logger||se.instance,this.protocol||new LS,this.reconnectPolicy,this.Ve,this.Ke,this.Y)}},u(Ql,"gd"),Ql);p(IS,"tt");let bL=IS;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(N,v){return new Uint8Array(Array.prototype.slice.call(this,N,v))},"value"),writable:!0}),Uint8Array.prototype.forEach||Object.defineProperty(Uint8Array.prototype,"forEach",{value:Array.prototype.forEach,writable:!0}),a})(),"e"),s.exports=i()})(OM);var m4=OM.exports;const OD=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 wt;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 m4.HubConnectionBuilder().configureLogging(m4.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 wt;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 wt)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 wt;(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 wt||console.error(this.weavyId,"Error in Subscribe:",c)}}async unsubscribe(r,a,o){var l;if(this.isDestroyed)throw new wt;try{const c=r?r+":"+a:a,h=this._connectionEventListeners.findIndex(d=>d.name===c&&d.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(d=>d.name===c)||await this._connection.invoke("Unsubscribe",c)}}catch(c){c instanceof wt||console.error(this.weavyId,"Error in Unsubscribe:",c)}}destroy(){super.destroy(),this.disconnect(),this._whenConnectionStartedReject&&(this._whenConnectionStarted.catch(()=>{}),this._whenConnectionStartedReject(new wt))}},u(i,"t"),i),p(t,"WeavyConnection"),t},"WeavyConnectionMixin");var f1=(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))(f1||{});const bD=p(s=>{var i;var t;return t=(i=class extends s{async fetchOptions(r={},a=!0){if(this.isDestroyed)throw new wt;const o={headers:{"X-Weavy-Source":`${an.sourceName}@${an.version}`,"Content-Type":f1.JSON},method:"GET"},l=Yy(Yy(cD,o,!0),r,!0);return a?Yy(l,{headers:{Authorization:"Bearer "+await this.getToken()}},!0):l}async fetch(r,a,o=!0){if(this.isDestroyed)throw new wt;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=f1.JSON,c,h=!0){if(this.isDestroyed)throw new wt;const d=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 "+d),w.setRequestHeader("X-Weavy-Source",`${an.sourceName}@${an.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})}},u(i,"t"),i),p(t,"WeavyFetch"),t},"WeavyFetchMixin"),bM="en",$D=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:ye&&ye.tagName.toUpperCase()==="SCRIPT"&&ye.src||new URL("weavy.cjs",document.baseURI).href)||!new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:ye&&ye.tagName.toUpperCase()==="SCRIPT"&&ye.src||new URL("weavy.cjs",document.baseURI).href).href.startsWith(WEAVY_IMPORT_URL))?WEAVY_IMPORT_URL:typeof document>"u"?require("url").pathToFileURL(__filename).href:ye&&ye.tagName.toUpperCase()==="SCRIPT"&&ye.src||new URL("weavy.cjs",document.baseURI).href).href).then(r=>r.svSE)]]),this._locale=t.sourceLocale}static get sourceLocale(){try{return bM}catch{return""}}get locales(){return Array.from(this._locales.entries())}set locales(r){if(this.isDestroyed)throw new wt;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 wt;!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 wt;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 wt;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}=qq({sourceLocale:t.sourceLocale,targetLocales:a,loadLocale:p(c=>this.loadLocale(c),"loadLocale")});this._localization={getLocale:o,setLocale:l}}}},u(i,"t"),i),p(t,"WeavyLocalization"),t},"WeavyLocalizationMixin"),xD=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)}},u(i,"t"),i),p(t,"WeavyNetwork"),t},"WeavyNetworkMixin");function lg(){}u(lg,"kd");p(lg,"noop");function $M({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:xM(l=>{let c=l,h=o(c),d=0;for(;h&&c;)d++,c=a==null?void 0:a({persistedClient:c,error:h,errorCount:d}),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:lg,restoreClient:lg,removeClient:lg}}u($M,"z1");p($M,"createSyncStoragePersister");function xM(s,t=100){let i=null,n;return function(...r){n=r,i===null&&(i=setTimeout(()=>{s(...n),i=null},t))}}u(xM,"S1");p(xM,"throttle$2");var kD=["added","removed","updated"];function d$(s){return kD.includes(s)}u(d$,"tu");p(d$,"isCacheEventType");async function kM({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():lM(s,a.clientState,r)}else t.removeClient()}catch{t.removeClient()}}u(kM,"O1");p(kM,"persistQueryClientRestore");async function u$({queryClient:s,persister:t,buster:i="",dehydrateOptions:n}){const r={buster:i,timestamp:Date.now(),clientState:oM(s,n)};await t.persistClient(r)}u(u$,"eu");p(u$,"persistQueryClientSave");function SM(s){const t=s.queryClient.getQueryCache().subscribe(n=>{d$(n.type)&&u$(s)}),i=s.queryClient.getMutationCache().subscribe(n=>{d$(n.type)&&u$(s)});return()=>{t(),i()}}u(SM,"A1");p(SM,"persistQueryClientSubscribe");const SD=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this._queryClient=new mD({defaultOptions:{queries:{staleTime:this.staleTime,gcTime:this.gcTime}}}),this.initQueryClient()}get queryClient(){return this._queryClient}async initQueryClient(){if(this.isDestroyed)throw new wt;await this.whenUrl();try{this._sessionStoragePersister=$M({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 kM(r),this._unsubscribeQueryClient=SM(r)}catch{console.warn(this.weavyId,"Query cache persister not available.")}this.host.isConnected&&this._queryClient.mount(),this._hostIsConnectedObserver=o3(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()}},u(i,"t"),i),p(t,"WeavyQuery"),t},"WeavyQueryMixin"),PD=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this._notificationEvents=an.defaults.notificationEvents??!1,this.dispatchRealtimeEvent=a=>{jt();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()}},u(i,"t"),i),p(t,"WeavyRealtime"),t},"WeavyRealtimeMixin");function ai(s){return s<0?-1:s===0?0:1}u(ai,"Ce");p(ai,"signum");function wc(s,t,i){return(1-i)*s+i*t}u(wc,"Co");p(wc,"lerp");function PM(s,t,i){return i<s?s:i>t?t:i}u(PM,"I1");p(PM,"clampInt");function xm(s,t,i){return i<s?s:i>t?t:i}u(xm,"Hc");p(xm,"clampDouble");function cv(s){return s=s%360,s<0&&(s=s+360),s}u(cv,"Ah");p(cv,"sanitizeDegreesDouble");function CM(s,t){return cv(t-s)<=180?1:-1}u(CM,"T1");p(CM,"rotationDirection");function QM(s,t){return 180-Math.abs(Math.abs(s-t)-180)}u(QM,"F1");p(QM,"differenceDegrees");function y1(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]}u(y1,"Qd");p(y1,"matrixMultiply");const CD=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],QD=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],TD=[95.047,100,108.883];function hv(s,t,i){return(255<<24|(s&255)<<16|(t&255)<<8|i&255)>>>0}u(hv,"Lh");p(hv,"argbFromRgb");function p$(s){const t=nr(s[0]),i=nr(s[1]),n=nr(s[2]);return hv(t,i,n)}u(p$,"iu");p(p$,"argbFromLinrgb");function t5(s){return s>>16&255}u(t5,"Ay");p(t5,"redFromArgb");function i5(s){return s>>8&255}u(i5,"Ly");p(i5,"greenFromArgb");function n5(s){return s&255}u(n5,"Ry");p(n5,"blueFromArgb");function TM(s,t,i){const n=QD,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=nr(r),c=nr(a),h=nr(o);return hv(l,c,h)}u(TM,"B1");p(TM,"argbFromXyz");function RM(s){const t=Ta(t5(s)),i=Ta(i5(s)),n=Ta(n5(s));return y1([t,i,n],CD)}u(RM,"U1");p(RM,"xyzFromArgb");function MM(s){const t=gs(s),i=nr(t);return hv(i,i,i)}u(MM,"q1");p(MM,"argbFromLstar");function m1(s){const t=RM(s)[1];return 116*s5(t/100)-16}u(m1,"Kd");p(m1,"lstarFromArgb");function gs(s){return 100*EM((s+16)/116)}u(gs,"rs");p(gs,"yFromLstar");function w1(s){return s5(s/100)*116-16}u(w1,"Gd");p(w1,"lstarFromY");function Ta(s){const t=s/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}u(Ta,"Er");p(Ta,"linearized");function nr(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,PM(0,255,Math.round(i*255))}u(nr,"Ds");p(nr,"delinearized");function AM(){return TD}u(AM,"N1");p(AM,"whitePointD65");function s5(s){const t=.008856451679035631,i=24389/27;return s>t?Math.pow(s,1/3):(i*s+16)/116}u(s5,"Iy");p(s5,"labF");function EM(s){const t=.008856451679035631,i=24389/27,n=s*s*s;return n>t?n:(116*s-16)/i}u(EM,"j1");p(EM,"labInvf");var fo;const zM=(fo=class{static make(t=AM(),i=200/Math.PI*gs(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,d=.8+r/10,f=d>=.9?wc(.59,.69,(d-.9)*10):wc(.525,.59,(d-.8)*10);let y=a?1:d*(1-1/3.6*Math.exp((-i-42)/92));y=y>1?1:y<0?0:y;const w=d,g=[y*(100/l)+1-y,y*(100/c)+1-y,y*(100/h)+1-y],b=1/(5*i+1),k=b*b*b*b,$=1-k,C=k*i+.1*$*$*Math.cbrt(5*i),E=gs(n)/t[1],A=1.48+Math.sqrt(E),M=.725/Math.pow(E,.2),L=M,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)],j=(2*q[0]+q[1]+.05*q[2])*M;return new fo(E,j,M,L,f,w,g,C,Math.pow(C,.25),A)}constructor(t,i,n,r,a,o,l,c,h,d){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=d}},u(fo,"pl"),fo);p(zM,"ViewingConditions");let vs=zM;vs.DEFAULT=vs.make();var Mi;const _M=(Mi=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 Mi.fromIntInViewingConditions(t,vs.DEFAULT)}static fromIntInViewingConditions(t,i){const n=(t&16711680)>>16,r=(t&65280)>>8,a=t&255,o=Ta(n),l=Ta(r),c=Ta(a),h=.41233895*o+.35762064*l+.18051042*c,d=.2126*o+.7152*l+.0722*c,f=.01932141*o+.11916382*l+.95034478*c,y=.401288*h+.650173*d-.051461*f,w=-.250268*h+1.204414*d+.045854*f,g=-.002079*h+.048952*d+.953127*f,b=i.rgbD[0]*y,k=i.rgbD[1]*w,$=i.rgbD[2]*g,C=Math.pow(i.fl*Math.abs(b)/100,.42),E=Math.pow(i.fl*Math.abs(k)/100,.42),A=Math.pow(i.fl*Math.abs($)/100,.42),M=ai(b)*400*C/(C+27.13),L=ai(k)*400*E/(E+27.13),I=ai($)*400*A/(A+27.13),q=(11*M+-12*L+I)/11,j=(M+L-2*I)/9,ee=(20*M+20*L+21*I)/20,se=(40*M+20*L+I)/20,oe=Math.atan2(j,q)*180/Math.PI,ge=oe<0?oe+360:oe>=360?oe-360:oe,re=ge*Math.PI/180,Le=se*i.nbb,Ce=100*Math.pow(Le/i.aw,i.c*i.z),Ye=4/i.c*Math.sqrt(Ce/100)*(i.aw+4)*i.fLRoot,Ve=ge<20.14?ge+360:ge,yt=.25*(Math.cos(Ve*Math.PI/180+2)+3.8),Qt=5e4/13*yt*i.nc*i.ncb*Math.sqrt(q*q+j*j)/(ee+.305),kt=Math.pow(Qt,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),Gt=kt*Math.sqrt(Ce/100),si=Gt*i.fLRoot,Kt=50*Math.sqrt(kt*i.c/(i.aw+4)),es=(1+100*.007)*Ce/(1+.007*Ce),Ws=1/.0228*Math.log(1+.0228*si),gw=Ws*Math.cos(re),Yo=Ws*Math.sin(re);return new Mi(ge,Gt,Ce,Ye,si,Kt,es,gw,Yo)}static fromJch(t,i,n){return Mi.fromJchInViewingConditions(t,i,n,vs.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,d=(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 Mi(n,i,t,a,o,c,d,y,w)}static fromUcs(t,i,n){return Mi.fromUcsInViewingConditions(t,i,n,vs.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 d=t/(1-(t-100)*.007);return Mi.fromJchInViewingConditions(d,c,h,r)}toInt(){return this.viewed(vs.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),d=Math.cos(r),f=23*(c+.305)*n/(23*l+11*n*d+108*n*h),y=f*d,w=f*h,g=(460*c+451*y+288*w)/1403,b=(460*c-891*y-261*w)/1403,k=(460*c-220*y-6300*w)/1403,$=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),C=ai(g)*(100/t.fl)*Math.pow($,1/.42),E=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),A=ai(b)*(100/t.fl)*Math.pow(E,1/.42),M=Math.max(0,27.13*Math.abs(k)/(400-Math.abs(k))),L=ai(k)*(100/t.fl)*Math.pow(M,1/.42),I=C/t.rgbD[0],q=A/t.rgbD[1],j=L/t.rgbD[2],ee=1.86206786*I-1.01125463*q+.14918677*j,se=.38752654*I+.62144744*q-.00897398*j,oe=-.0158415*I-.03412294*q+1.04996444*j;return TM(ee,se,oe)}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,d=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(d)/100,.42),g=ai(c)*400*f/(f+27.13),b=ai(h)*400*y/(y+27.13),k=ai(d)*400*w/(w+27.13),$=(11*g+-12*b+k)/11,C=(g+b-2*k)/9,E=(20*g+20*b+21*k)/20,A=(40*g+20*b+k)/20,M=Math.atan2(C,$)*180/Math.PI,L=M<0?M+360:M>=360?M-360:M,I=L*Math.PI/180,q=A*r.nbb,j=100*Math.pow(q/r.aw,r.c*r.z),ee=4/r.c*Math.sqrt(j/100)*(r.aw+4)*r.fLRoot,se=L<20.14?L+360:L,oe=1/4*(Math.cos(se*Math.PI/180+2)+3.8),ge=5e4/13*oe*r.nc*r.ncb*Math.sqrt($*$+C*C)/(E+.305),re=Math.pow(ge,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),Le=re*Math.sqrt(j/100),Ce=Le*r.fLRoot,Ye=50*Math.sqrt(re*r.c/(r.aw+4)),Ve=(1+100*.007)*j/(1+.007*j),yt=Math.log(1+.0228*Ce)/.0228,Qt=yt*Math.cos(I),kt=yt*Math.sin(I);return new Mi(L,Le,j,ee,Ce,Ye,Ve,Qt,kt)}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),d=Math.cos(r),f=23*(c+.305)*n/(23*l+11*n*d+108*n*h),y=f*d,w=f*h,g=(460*c+451*y+288*w)/1403,b=(460*c-891*y-261*w)/1403,k=(460*c-220*y-6300*w)/1403,$=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),C=ai(g)*(100/t.fl)*Math.pow($,1/.42),E=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),A=ai(b)*(100/t.fl)*Math.pow(E,1/.42),M=Math.max(0,27.13*Math.abs(k)/(400-Math.abs(k))),L=ai(k)*(100/t.fl)*Math.pow(M,1/.42),I=C/t.rgbD[0],q=A/t.rgbD[1],j=L/t.rgbD[2],ee=1.86206786*I-1.01125463*q+.14918677*j,se=.38752654*I+.62144744*q-.00897398*j,oe=-.0158415*I-.03412294*q+1.04996444*j;return[ee,se,oe]}},u(Mi,"oi"),Mi);p(_M,"Cam16");let zn=_M;var ve;const LM=(ve=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 ai(t)*400*i/(i+27.13)}static hueOf(t){const i=y1(t,ve.SCALED_DISCOUNT_FROM_LINRGB),n=ve.chromaticAdaptation(i[0]),r=ve.chromaticAdaptation(i[1]),a=ve.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=ve.sanitizeRadians(i-t),a=ve.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=ve.intercept(t[r],i,n[r]);return ve.lerpPoint(t,a,n)}static isBounded(t){return 0<=t&&t<=100}static nthVertex(t,i){const n=ve.Y_FROM_LINRGB[0],r=ve.Y_FROM_LINRGB[1],a=ve.Y_FROM_LINRGB[2],o=i%4<=1?0:100,l=i%2===0?0:100;if(i<4){const c=o,h=l,d=(t-c*r-h*a)/n;return ve.isBounded(d)?[d,c,h]:[-1,-1,-1]}else if(i<8){const c=o,h=l,d=(t-h*n-c*a)/r;return ve.isBounded(d)?[h,d,c]:[-1,-1,-1]}else{const c=o,h=l,d=(t-c*n-h*r)/a;return ve.isBounded(d)?[c,h,d]:[-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 d=ve.nthVertex(t,h);if(d[0]<0)continue;const f=ve.hueOf(d);if(!l){n=d,r=d,a=f,o=f,l=!0;continue}(c||ve.areInCyclicOrder(a,f,o))&&(c=!1,ve.areInCyclicOrder(a,i,f)?(r=d,o=f):(n=d,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=ve.bisectToSegment(t,i);let r=n[0],a=ve.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=ve.criticalPlaneBelow(ve.trueDelinearized(r[l])),h=ve.criticalPlaneAbove(ve.trueDelinearized(o[l]))):(c=ve.criticalPlaneAbove(ve.trueDelinearized(r[l])),h=ve.criticalPlaneBelow(ve.trueDelinearized(o[l])));for(let d=0;d<8&&!(Math.abs(h-c)<=1);d++){const f=Math.floor((c+h)/2),y=ve.CRITICAL_PLANES[f],w=ve.setCoordinate(r,y,o,l),g=ve.hueOf(w);ve.areInCyclicOrder(a,i,g)?(o=w,h=f):(r=w,a=g,c=f)}}return ve.midpoint(r,o)}static inverseChromaticAdaptation(t){const i=Math.abs(t),n=Math.max(0,27.13*i/(400-i));return ai(t)*Math.pow(n,1/.42)}static findResultByJ(t,i,n){let r=Math.sqrt(n)*11;const a=vs.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 d=0;d<5;d++){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,b=23*(g+.305)*w/(23*l+11*w*h+108*w*c),k=b*h,$=b*c,C=(460*g+451*k+288*$)/1403,E=(460*g-891*k-261*$)/1403,A=(460*g-220*k-6300*$)/1403,M=ve.inverseChromaticAdaptation(C),L=ve.inverseChromaticAdaptation(E),I=ve.inverseChromaticAdaptation(A),q=y1([M,L,I],ve.LINRGB_FROM_SCALED_DISCOUNT);if(q[0]<0||q[1]<0||q[2]<0)return 0;const j=ve.Y_FROM_LINRGB[0],ee=ve.Y_FROM_LINRGB[1],se=ve.Y_FROM_LINRGB[2],oe=j*q[0]+ee*q[1]+se*q[2];if(oe<=0)return 0;if(d===4||Math.abs(oe-n)<.002)return q[0]>100.01||q[1]>100.01||q[2]>100.01?0:p$(q);r=r-(oe-n)*r/(2*oe)}return 0}static solveToInt(t,i,n){if(i<1e-4||n<1e-4||n>99.9999)return MM(n);t=cv(t);const r=t/180*Math.PI,a=gs(n),o=ve.findResultByJ(r,i,a);if(o!==0)return o;const l=ve.bisectToLimit(a,r);return p$(l)}static solveToCam(t,i,n){return zn.fromInt(ve.solveToInt(t,i,n))}},u(ve,"it"),ve);p(LM,"HctSolver");let er=LM;er.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];er.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];er.Y_FROM_LINRGB=[.2126,.7152,.0722];er.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 Ps;const IM=(Ps=class{static from(t,i,n){return new Ps(er.solveToInt(t,i,n))}static fromInt(t){return new Ps(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(er.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(er.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(er.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const i=zn.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=m1(t),this.argb=t}setInternalState(t){const i=zn.fromInt(t);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=m1(t),this.argb=t}inViewingConditions(t){const i=zn.fromInt(this.toInt()).xyzInViewingConditions(t),n=zn.fromXyzInViewingConditions(i[0],i[1],i[2],vs.make());return Ps.from(n.hue,n.chroma,w1(i[1]))}},u(Ps,"zr"),Ps);p(IM,"Hct");let gi=IM;var yo;const WM=(yo=class{static harmonize(t,i){const n=gi.fromInt(t),r=gi.fromInt(i),a=QM(n.hue,r.hue),o=Math.min(a*.5,15),l=cv(n.hue+o*CM(n.hue,r.hue));return gi.from(l,n.chroma,n.tone).toInt()}static hctHue(t,i,n){const r=yo.cam16Ucs(t,i,n),a=zn.fromInt(r),o=zn.fromInt(t);return gi.from(a.hue,o.chroma,m1(t)).toInt()}static cam16Ucs(t,i,n){const r=zn.fromInt(t),a=zn.fromInt(i),o=r.jstar,l=r.astar,c=r.bstar,h=a.jstar,d=a.astar,f=a.bstar,y=o+(h-o)*n,w=l+(d-l)*n,g=c+(f-c)*n;return zn.fromUcs(y,w,g).toInt()}},u(yo,"ul"),yo);p(WM,"Blend");let Tn=WM;var nn;const VM=(nn=class{static ratioOfTones(t,i){return t=xm(0,100,t),i=xm(0,100,i),nn.ratioOfYs(gs(t),gs(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=gs(t),r=i*(n+5)-5,a=nn.ratioOfYs(r,n),o=Math.abs(a-i);if(a<i&&o>.04)return-1;const l=w1(r)+.4;return l<0||l>100?-1:l}static darker(t,i){if(t<0||t>100)return-1;const n=gs(t),r=(n+5)/i-5,a=nn.ratioOfYs(n,r),o=Math.abs(a-i);if(a<i&&o>.04)return-1;const l=w1(r)-.4;return l<0||l>100?-1:l}static lighterUnsafe(t,i){const n=nn.lighter(t,i);return n<0?100:n}static darkerUnsafe(t,i){const n=nn.darker(t,i);return n<0?0:n}},u(nn,"Qi"),nn);p(VM,"Contrast");let Vi=VM;var mo;const ZM=(mo=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 mo.isDisliked(t)?gi.from(t.hue,t.chroma,70):t}},u(mo,"yl"),mo);p(ZM,"DislikeAnalyzer");let RD=ZM;var Rt;const qM=(Rt=class{static fromPalette(t){return new Rt(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),d=l==="nearer"||l==="lighter"&&!t.isDark||l==="darker"&&t.isDark,f=d?r:a,y=d?a:r,w=this.name===f.name,g=t.isDark?1:-1,b=f.contrastCurve.getContrast(t.contrastLevel),k=y.contrastCurve.getContrast(t.contrastLevel),$=f.tone(t);let C=Vi.ratioOfTones(h,$)>=b?$:Rt.foregroundTone(h,b);const E=y.tone(t);let A=Vi.ratioOfTones(h,E)>=k?E:Rt.foregroundTone(h,k);return i&&(C=Rt.foregroundTone(h,b),A=Rt.foregroundTone(h,k)),(A-C)*g>=o||(A=xm(0,100,C+o*g),(A-C)*g>=o||(C=xm(0,100,A-o*g))),50<=C&&C<60?g>0?(C=60,A=Math.max(A,C+o*g)):(C=49,A=Math.min(A,C+o*g)):50<=A&&A<60&&(c?g>0?(C=60,A=Math.max(A,C+o*g)):(C=49,A=Math.min(A,C+o*g)):g>0?A=60:A=49),w?C:A}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(Vi.ratioOfTones(r,n)>=a||(n=Rt.foregroundTone(r,a)),i&&(n=Rt.foregroundTone(r,a)),this.isBackground&&50<=n&&n<60&&(Vi.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)],[d,f]=[Math.max(c,h),Math.min(c,h)];if(Vi.ratioOfTones(d,n)>=a&&Vi.ratioOfTones(f,n)>=a)return n;const y=Vi.lighter(d,a),w=Vi.darker(f,a),g=[];return y!==-1&&g.push(y),w!==-1&&g.push(w),Rt.tonePrefersLightForeground(c)||Rt.tonePrefersLightForeground(h)?y<0?100:y:g.length===1?g[0]:w<0?0:w}return n}}static foregroundTone(t,i){const n=Vi.lighterUnsafe(t,i),r=Vi.darkerUnsafe(t,i),a=Vi.ratioOfTones(n,t),o=Vi.ratioOfTones(r,t);if(Rt.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 Rt.tonePrefersLightForeground(t)&&!Rt.toneAllowsLightForeground(t)?49:t}},u(Rt,"me"),Rt);p(qM,"DynamicColor");let he=qM;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 Fd;const DM=(Fd=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?wc(this.low,this.normal,(t- -1)/1):t<.5?wc(this.normal,this.medium,(t-0)/.5):t<1?wc(this.medium,this.high,(t-.5)/.5):this.high}},u(Fd,"pp"),Fd);p(DM,"ContrastCurve");let Ee=DM;var Hd;const UM=(Hd=class{constructor(t,i,n,r,a){this.roleA=t,this.roleB=i,this.delta=n,this.polarity=r,this.stayTogether=a}},u(Hd,"up"),Hd);p(UM,"ToneDeltaPair");let xi=UM;function Vo(s){return s.variant===km.FIDELITY||s.variant===km.CONTENT}u(Vo,"lo");p(Vo,"isFidelity");function rt(s){return s.variant===km.MONOCHROME}u(rt,"Ht");p(rt,"isMonochrome");function NM(s,t,i,n){let r=i,a=gi.from(s,t,i);if(a.chroma<t){let o=a.chroma;for(;a.chroma<t;){r+=n?-1:1;const l=gi.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}u(NM,"W1");p(NM,"findDesiredChromaByTone");function BM(s){return vs.make(void 0,void 0,s.isDark?30:80,void 0,void 0)}u(BM,"Q1");p(BM,"viewingConditionsForAlbers");function dv(s,t){const i=s.inViewingConditions(BM(t));return he.tonePrefersLightForeground(s.tone)&&!he.toneAllowsLightForeground(i.tone)?he.enableLightForeground(s.tone):he.enableLightForeground(i.tone)}u(dv,"Rh");p(dv,"performAlbers");var xr;const jM=(xr=class{static highestSurface(t){return t.isDark?xr.surfaceBright:xr.surfaceDim}},u(xr,"zo"),xr);p(jM,"MaterialDynamicColors");let V=jM;V.contentAccentToneDelta=15;V.primaryPaletteKeyColor=he.fromPalette({name:"primary_palette_key_color",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>s.primaryPalette.keyColor.tone,"tone")});V.secondaryPaletteKeyColor=he.fromPalette({name:"secondary_palette_key_color",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>s.secondaryPalette.keyColor.tone,"tone")});V.tertiaryPaletteKeyColor=he.fromPalette({name:"tertiary_palette_key_color",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>s.tertiaryPalette.keyColor.tone,"tone")});V.neutralPaletteKeyColor=he.fromPalette({name:"neutral_palette_key_color",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.neutralPalette.keyColor.tone,"tone")});V.neutralVariantPaletteKeyColor=he.fromPalette({name:"neutral_variant_palette_key_color",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.neutralVariantPalette.keyColor.tone,"tone")});V.background=he.fromPalette({name:"background",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?6:98,"tone"),isBackground:!0});V.onBackground=he.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 Ee(3,3,4.5,7)});V.surface=he.fromPalette({name:"surface",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?6:98,"tone"),isBackground:!0});V.surfaceDim=he.fromPalette({name:"surface_dim",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?6:87,"tone"),isBackground:!0});V.surfaceBright=he.fromPalette({name:"surface_bright",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?24:98,"tone"),isBackground:!0});V.surfaceContainerLowest=he.fromPalette({name:"surface_container_lowest",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?4:100,"tone"),isBackground:!0});V.surfaceContainerLow=he.fromPalette({name:"surface_container_low",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?10:96,"tone"),isBackground:!0});V.surfaceContainer=he.fromPalette({name:"surface_container",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?12:94,"tone"),isBackground:!0});V.surfaceContainerHigh=he.fromPalette({name:"surface_container_high",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?17:92,"tone"),isBackground:!0});V.surfaceContainerHighest=he.fromPalette({name:"surface_container_highest",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?22:90,"tone"),isBackground:!0});V.onSurface=he.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 Ee(4.5,7,11,21)});V.surfaceVariant=he.fromPalette({name:"surface_variant",palette:p(s=>s.neutralVariantPalette,"palette"),tone:p(s=>s.isDark?30:90,"tone"),isBackground:!0});V.onSurfaceVariant=he.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 Ee(3,4.5,7,11)});V.inverseSurface=he.fromPalette({name:"inverse_surface",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>s.isDark?90:20,"tone")});V.inverseOnSurface=he.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 Ee(4.5,7,11,21)});V.outline=he.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 Ee(1.5,3,4.5,7)});V.outlineVariant=he.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 Ee(1,1,3,7)});V.shadow=he.fromPalette({name:"shadow",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>0,"tone")});V.scrim=he.fromPalette({name:"scrim",palette:p(s=>s.neutralPalette,"palette"),tone:p(s=>0,"tone")});V.surfaceTint=he.fromPalette({name:"surface_tint",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>s.isDark?80:40,"tone"),isBackground:!0});V.primary=he.fromPalette({name:"primary",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>rt(s)?s.isDark?100:0:s.isDark?80:40,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(3,4.5,7,11),toneDeltaPair:p(s=>new xi(V.primaryContainer,V.primary,15,"nearer",!1),"toneDeltaPair")});V.onPrimary=he.fromPalette({name:"on_primary",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>rt(s)?s.isDark?10:90:s.isDark?20:100,"tone"),background:p(s=>V.primary,"background"),contrastCurve:new Ee(4.5,7,11,21)});V.primaryContainer=he.fromPalette({name:"primary_container",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>Vo(s)?dv(s.sourceColorHct,s):rt(s)?s.isDark?85:25:s.isDark?30:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.primaryContainer,V.primary,15,"nearer",!1),"toneDeltaPair")});V.onPrimaryContainer=he.fromPalette({name:"on_primary_container",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>Vo(s)?he.foregroundTone(V.primaryContainer.tone(s),4.5):rt(s)?s.isDark?0:100:s.isDark?90:10,"tone"),background:p(s=>V.primaryContainer,"background"),contrastCurve:new Ee(4.5,7,11,21)});V.inversePrimary=he.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 Ee(3,4.5,7,11)});V.secondary=he.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 Ee(3,4.5,7,11),toneDeltaPair:p(s=>new xi(V.secondaryContainer,V.secondary,15,"nearer",!1),"toneDeltaPair")});V.onSecondary=he.fromPalette({name:"on_secondary",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>rt(s)?s.isDark?10:100:s.isDark?20:100,"tone"),background:p(s=>V.secondary,"background"),contrastCurve:new Ee(4.5,7,11,21)});V.secondaryContainer=he.fromPalette({name:"secondary_container",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>{const t=s.isDark?30:90;if(rt(s))return s.isDark?30:85;if(!Vo(s))return t;let i=NM(s.secondaryPalette.hue,s.secondaryPalette.chroma,t,!s.isDark);return i=dv(s.secondaryPalette.getHct(i),s),i},"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.secondaryContainer,V.secondary,15,"nearer",!1),"toneDeltaPair")});V.onSecondaryContainer=he.fromPalette({name:"on_secondary_container",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>Vo(s)?he.foregroundTone(V.secondaryContainer.tone(s),4.5):s.isDark?90:10,"tone"),background:p(s=>V.secondaryContainer,"background"),contrastCurve:new Ee(4.5,7,11,21)});V.tertiary=he.fromPalette({name:"tertiary",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?s.isDark?90:25:s.isDark?80:40,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(3,4.5,7,11),toneDeltaPair:p(s=>new xi(V.tertiaryContainer,V.tertiary,15,"nearer",!1),"toneDeltaPair")});V.onTertiary=he.fromPalette({name:"on_tertiary",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?s.isDark?10:90:s.isDark?20:100,"tone"),background:p(s=>V.tertiary,"background"),contrastCurve:new Ee(4.5,7,11,21)});V.tertiaryContainer=he.fromPalette({name:"tertiary_container",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>{if(rt(s))return s.isDark?60:49;if(!Vo(s))return s.isDark?30:90;const t=dv(s.tertiaryPalette.getHct(s.sourceColorHct.tone),s),i=s.tertiaryPalette.getHct(t);return RD.fixIfDisliked(i).tone},"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.tertiaryContainer,V.tertiary,15,"nearer",!1),"toneDeltaPair")});V.onTertiaryContainer=he.fromPalette({name:"on_tertiary_container",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?s.isDark?0:100:Vo(s)?he.foregroundTone(V.tertiaryContainer.tone(s),4.5):s.isDark?90:10,"tone"),background:p(s=>V.tertiaryContainer,"background"),contrastCurve:new Ee(4.5,7,11,21)});V.error=he.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 Ee(3,4.5,7,11),toneDeltaPair:p(s=>new xi(V.errorContainer,V.error,15,"nearer",!1),"toneDeltaPair")});V.onError=he.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 Ee(4.5,7,11,21)});V.errorContainer=he.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 Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.errorContainer,V.error,15,"nearer",!1),"toneDeltaPair")});V.onErrorContainer=he.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 Ee(4.5,7,11,21)});V.primaryFixed=he.fromPalette({name:"primary_fixed",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>rt(s)?40:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.primaryFixed,V.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.primaryFixedDim=he.fromPalette({name:"primary_fixed_dim",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>rt(s)?30:80,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.primaryFixed,V.primaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.onPrimaryFixed=he.fromPalette({name:"on_primary_fixed",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>rt(s)?100:10,"tone"),background:p(s=>V.primaryFixedDim,"background"),secondBackground:p(s=>V.primaryFixed,"secondBackground"),contrastCurve:new Ee(4.5,7,11,21)});V.onPrimaryFixedVariant=he.fromPalette({name:"on_primary_fixed_variant",palette:p(s=>s.primaryPalette,"palette"),tone:p(s=>rt(s)?90:30,"tone"),background:p(s=>V.primaryFixedDim,"background"),secondBackground:p(s=>V.primaryFixed,"secondBackground"),contrastCurve:new Ee(3,4.5,7,11)});V.secondaryFixed=he.fromPalette({name:"secondary_fixed",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>rt(s)?80:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.secondaryFixed,V.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.secondaryFixedDim=he.fromPalette({name:"secondary_fixed_dim",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>rt(s)?70:80,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.secondaryFixed,V.secondaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.onSecondaryFixed=he.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 Ee(4.5,7,11,21)});V.onSecondaryFixedVariant=he.fromPalette({name:"on_secondary_fixed_variant",palette:p(s=>s.secondaryPalette,"palette"),tone:p(s=>rt(s)?25:30,"tone"),background:p(s=>V.secondaryFixedDim,"background"),secondBackground:p(s=>V.secondaryFixed,"secondBackground"),contrastCurve:new Ee(3,4.5,7,11)});V.tertiaryFixed=he.fromPalette({name:"tertiary_fixed",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?40:90,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.tertiaryFixed,V.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.tertiaryFixedDim=he.fromPalette({name:"tertiary_fixed_dim",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?30:80,"tone"),isBackground:!0,background:p(s=>V.highestSurface(s),"background"),contrastCurve:new Ee(1,1,3,7),toneDeltaPair:p(s=>new xi(V.tertiaryFixed,V.tertiaryFixedDim,10,"lighter",!0),"toneDeltaPair")});V.onTertiaryFixed=he.fromPalette({name:"on_tertiary_fixed",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?100:10,"tone"),background:p(s=>V.tertiaryFixedDim,"background"),secondBackground:p(s=>V.tertiaryFixed,"secondBackground"),contrastCurve:new Ee(4.5,7,11,21)});V.onTertiaryFixedVariant=he.fromPalette({name:"on_tertiary_fixed_variant",palette:p(s=>s.tertiaryPalette,"palette"),tone:p(s=>rt(s)?90:30,"tone"),background:p(s=>V.tertiaryFixedDim,"background"),secondBackground:p(s=>V.tertiaryFixed,"secondBackground"),contrastCurve:new Ee(3,4.5,7,11)});var Un;const XM=(Un=class{static fromInt(t){const i=gi.fromInt(t);return Un.fromHct(i)}static fromHct(t){return new Un(t.hue,t.chroma,t)}static fromHueAndChroma(t,i){return new Un(t,i,Un.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=gi.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=gi.from(t,i,50+a),l=Math.abs(o.chroma-i);l<r&&(r=l,n=o);const c=gi.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=gi.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,i)),i}getHct(t){return gi.fromInt(this.tone(t))}},u(Un,"Ps"),Un);p(XM,"TonalPalette");let Ge=XM;function f$(s){const t=t5(s),i=i5(s),n=n5(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("")}u(f$,"su");p(f$,"hexFromArgb");function FM(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=Mn(s.slice(0,1).repeat(2)),a=Mn(s.slice(1,2).repeat(2)),o=Mn(s.slice(2,3).repeat(2))):i?(r=Mn(s.slice(0,2)),a=Mn(s.slice(2,4)),o=Mn(s.slice(4,6))):n&&(r=Mn(s.slice(2,4)),a=Mn(s.slice(4,6)),o=Mn(s.slice(6,8))),(255<<24|(r&255)<<16|(a&255)<<8|o&255)>>>0}u(FM,"K1");p(FM,"argbFromHex");function Mn(s){return parseInt(s,16)}u(Mn,"Pi");p(Mn,"parseIntHex");function HM(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}u(HM,"G1");p(HM,"argbFromRgba");function YM(s){jt();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}u(YM,"Y1");p(YM,"getComputedColor");function g1(s){return getComputedStyle(s).getPropertyValue("--wy-theme-color")||void 0}u(g1,"Zd");p(g1,"getCSSThemeColor");function GM(s,t){let i=g1(s);const n=new MutationObserver(()=>{const o=g1(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()}u(GM,"Z1");p(GM,"observeCSSThemeColor");function v1(){var s;return jt(),((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}u(v1,"Xd");p(v1,"getMetaThemeColor");function KM(s){jt();const t=Array.from(document.head.querySelectorAll("meta[name='theme-color']"));if(!t)return()=>{};let i=v1();const n=p(()=>{const l=v1();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))}}u(KM,"X1");p(KM,"observeMetaThemeColor");const yy=[],MD=16;function JM(s,t=!1){var i;if(yy.some(M=>M.seedColor===s)){const M=(i=yy.find(L=>L.seedColor===s))==null?void 0:i.colors;if(M)return M}const n=[];t&&n.push(`--wy-theme-color:${s};`);let r=s;!s.startsWith("#")&&!s.startsWith("rgb")&&(r=YM(s));const a=s.startsWith("#")?FM(r):HM(r),o=gi.fromInt(a),l=o.hue,c=o.chroma,h=Math.max(48,c),d=Math.min(h,84),f=360/16,y=27.4,w=-8,g=(l+360-y-w+f/2)%f+y+w-f/2,b={primary:Ge.fromHueAndChroma(l,h),secondary:Ge.fromHueAndChroma(l,h/3),tertiary:Ge.fromHueAndChroma(l+60,h/2),neutral:Ge.fromHueAndChroma(l,Math.min(c/12,4)),"neutral-variant":Ge.fromHueAndChroma(l,Math.min(c/6,8)),error:Ge.fromHueAndChroma(g,84),warning:Ge.fromHueAndChroma(g+4*f,d),red:Ge.fromHueAndChroma(g,d),"deep-orange":Ge.fromHueAndChroma(g+1*f,d),orange:Ge.fromHueAndChroma(g+2*f,d),amber:Ge.fromHueAndChroma(g+3*f,d),yellow:Ge.fromHueAndChroma(g+4*f,d),lime:Ge.fromHueAndChroma(g+5*f,d),"light-green":Ge.fromHueAndChroma(g+6*f,d),green:Ge.fromHueAndChroma(g+7*f,d),teal:Ge.fromHueAndChroma(g+8*f,d),cyan:Ge.fromHueAndChroma(g+9*f,d),"light-blue":Ge.fromHueAndChroma(g+10*f,d),blue:Ge.fromHueAndChroma(g+11*f,d),indigo:Ge.fromHueAndChroma(g+12*f,d),"deep-purple":Ge.fromHueAndChroma(g+13*f,d),purple:Ge.fromHueAndChroma(g+14*f,d),pink:Ge.fromHueAndChroma(g+15*f,d),gray:Ge.fromHueAndChroma(l,4)},k={99:99,95:95,90:90,80:80,70:70,60:60,50:50,40:40,30:30,20:20,10:10},$={primary:k,secondary:k,tertiary:k,neutral:k,"neutral-variant":k,error:k,warning:k,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 M in $){const L=$[M];for(const I in L){const q=f$(b[M].tone(L[I]));n.push(`--wy-${M}-${I}:${q};`)}}const C={light:b.primary.tone(40),dark:b.primary.tone(80)},E={light:b.neutral.tone(99),dark:b.neutral.tone(10)},A={"surface-1":{light:Tn.cam16Ucs(E.light,C.light,.05),dark:Tn.cam16Ucs(E.dark,C.dark,.05)},"surface-2":{light:Tn.cam16Ucs(E.light,C.light,.08),dark:Tn.cam16Ucs(E.dark,C.dark,.08)},"surface-3":{light:Tn.cam16Ucs(E.light,C.light,.11),dark:Tn.cam16Ucs(E.dark,C.dark,.11)},"surface-4":{light:Tn.cam16Ucs(E.light,C.light,.12),dark:Tn.cam16Ucs(E.dark,C.dark,.12)},"surface-5":{light:Tn.cam16Ucs(E.light,C.light,.14),dark:Tn.cam16Ucs(E.dark,C.dark,.14)}};for(const M in A){const L=A[M];for(const I in L){const q=f$(L[I]);n.push(`--wy-${M}-${I}:${q};`)}}return yy.unshift({seedColor:s,colors:n}),yy.length=Math.min(yy.length,MD),n}u(JM,"tm");p(JM,"generateThemeColors");const AD=p(s=>{if(jt(),rv)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"),Gi=de`.wy-light :where(wy-chat),.wy-light :where(wy-comments),.wy-light :where(wy-files),.wy-light :where(wy-messenger),.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-files),.wy-dark:not(.wy-light) :where(wy-messenger),.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)}`,ED=de`@property --wy-component-color{syntax: \"<color>\"; inherits: true; initial-value: currentColor;}@property --wy-component-background-color{syntax: \"<color>\"; inherits: true; initial-value: transparent;}`,zD=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),AD([ED,Gi])}},u(i,"t"),i),p(t,"WeavyStyles"),t},"WeavyStylesMixin"),_D=p(s=>{var i;var t;return t=(i=class extends s{constructor(...r){super(...r),this.version=an.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),d=c.split(".").slice(0,2);if(h[0]!==d[0])throw new Error;h[1]!==d[1]&&console.warn(`Version inconsistency: ${an.sourceName}@${this.version} ≠ ${(a=this.url)==null?void 0:a.hostname}@${c}`)}catch{throw new Error(`Version mismatch! ${an.sourceName}@${this.version} ≠ ${(o=this.url)==null?void 0:o.hostname}@${c}`)}}},u(i,"t"),i),p(t,"WeavyVersion"),t},"WeavyVersionMixin");var WO,Yd;let eA=(WO=(Yd=class extends Event{constructor(t,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=i,this.subscribe=n??!1}},u(Yd,"nn"),Yd),p(WO,"s"),WO);var VO,Gd;let zr=(VO=(Gd=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 eA(this.context,this.t,this.subscribe))}},u(Gd,"an"),Gd),p(VO,"s"),VO);var Kd;const tA=(Kd=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()}},u(Kd,"yp"),Kd);p(tA,"s");let LD=tA;var ZO,Jd;let ID=(ZO=(Jd=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},u(Jd,"on"),Jd),p(ZO,"e"),ZO);var qO,eu;let y$=(qO=(eu=class extends LD{constructor(t,i,n){var r,a;super(i.context!==void 0?i.initialValue:n),this.onContextRequest=o=>{const l=o.composedPath()[0];o.context===this.context&&l!==this.host&&(o.stopPropagation(),this.addCallback(o.callback,l,o.subscribe))},this.onProviderRequest=o=>{const l=o.composedPath()[0];if(o.context!==this.context||l===this.host)return;const c=new Set;for(const[h,{consumerHost:d}]of this.subscriptions)c.has(h)||(c.add(h),d.dispatchEvent(new eA(this.context,h,!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 ID(this.context))}},u(eu,"cn"),eu),p(qO,"i"),qO);function Fr({context:s}){return(t,i)=>{const n=new WeakMap;if(typeof i=="object")return i.addInitializer(function(){n.set(this,new y$(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 y$(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)}}}u(Fr,"er");p(Fr,"e$3");function gt({context:s,subscribe:t}){return(i,n)=>{typeof n=="object"?n.addInitializer(function(){new zr(this,{context:s,callback:p(r=>{i.set.call(this,r)},"callback"),subscribe:t})}):i.constructor.addInitializer(r=>{new zr(r,{context:s,callback:p(a=>{r[n]=a},"callback"),subscribe:t})})}}u(gt,"Qt");p(gt,"c");var tu;const iA=(tu=class extends Event{constructor(t,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=i,this.subscribe=n??!1}},u(tu,"wp"),tu);p(iA,"ContextRequestEvent");let WD=iA;var iu;const nA=(iu=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},u(iu,"fp"),iu);p(nA,"ContextProviderEvent");let VD=nA;var nu;const sA=(nu=class extends y${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 G||this.dispatchWhenConnected()}dispatchWhenConnected(){this.isAttached&&(this.host.isConnected?this.host.dispatchEvent(new VD(this._context)):requestAnimationFrame(this.dispatchWhenConnected))}detachListeners(){this.isAttached=!1,this.host.removeEventListener("context-request",this.onContextRequest),this.host.removeEventListener("context-provider",this.onProviderRequest)}},u(nu,"mp"),nu);p(sA,"WyContextProvider");let rA=sA;const Ct=Symbol.for("weavy-client");function aA(s,t){return jt(),new rA(s,{context:Ct,initialValue:t})}u(aA,"am");p(aA,"createWeavyContextProvider");const en=L1()?aA(document.documentElement):void 0,ZD=p(s=>{var n;var t,i;return i=(n=class extends s{constructor(...a){super(...a),U(this,t),this.host!==document.documentElement?(en==null||en.detachListeners(),D(this,t,new rA(this.host,{context:Ct,initialValue:this}))):en==null||en.setValue(this)}destroy(){var a;super.destroy(),this.host!==document.documentElement?(a=P(this,t))==null||a.detachListeners():(en==null?void 0:en.value)===this&&(en==null||en.setValue(void 0))}},u(n,"i"),n),t=new WeakMap,p(i,"WeavyContextProvider"),i},"WeavyContextProviderMixin");var cg,hg,Ns,My,Mt;const Ay=(Mt=class{constructor(t){U(this,cg),U(this,hg),U(this,Ns),U(this,My),this.weavySid=yf(),this.weavyId=`${Mt.sourceName}#${this.weavySid}`,this.cloudFilePickerUrl=Mt.defaults.cloudFilePickerUrl,this.disableEnvironmentImports=Mt.defaults.disableEnvironmentImports,this.gcTime=Mt.defaults.gcTime,this.reactions=Mt.defaults.reactions,this.scrollBehavior=Mt.defaults.scrollBehavior,this.staleTime=Mt.defaults.staleTime,this.tokenFactoryRetryDelay=Mt.defaults.tokenFactoryRetryDelay,this.tokenFactoryTimeout=Mt.defaults.tokenFactoryTimeout,D(this,hg,new Promise(n=>{D(this,cg,n)})),D(this,My,!1),console.info(`${Mt.sourceName}@${Mt.version} #${this.weavySid}`),jt(),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 P(this,hg)}get url(){return P(this,Ns)}set url(t){var i;if(this.isDestroyed)throw new wt;try{if(typeof t=="string")t&&D(this,Ns,new URL(t,window.location.toString()));else if(t instanceof URL)D(this,Ns,t||void 0);else if(t==null)D(this,Ns,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),P(this,Ns)&&((i=P(this,cg))==null||i.call(this,P(this,Ns)))}get cachePrefix(){return`${Mt.version}:${this.url}`}get isDestroyed(){return P(this,My)}destroy(){D(this,My,!0),console.info(this.weavyId,"was destroyed")}},u(Mt,"Gt"),Mt);cg=new WeakMap,hg=new WeakMap,Ns=new WeakMap,My=new WeakMap,p(Ay,"WeavyClient"),Ay.version="26.0.3",Ay.sourceName="@weavy/uikit-web",Ay.defaults={cloudFilePickerUrl:"https://filebrowser.weavy.io/v14/",disableEnvironmentImports:!1,gcTime:1e3*60*60*24,locale:bM,reactions:["😍","😎","😉","😜","👍"],notificationEvents:!1,scrollBehavior:"auto",staleTime:1e3*1,tokenFactoryRetryDelay:2e3,tokenFactoryTimeout:2e4};let an=Ay;var su;const oA=(su=class extends ZD(gD(PD($D(OD(xD(vD(SD(_D(bD(zD(an))))))))))){},u(su,"vp"),su);p(oA,"Weavy");let Gy=oA;var ru;const lA=(ru=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 WD(this.context,this._callback,this.subscribe))}},u(ru,"gp"),ru);p(lA,"ContextConsumer");let qD=lA;var au;const cA=(au=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 qD(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 N$(i),this.context.dispatchRequest()}hostUpdate(){var t,i;(t=this.context)!=null&&t.value&&((i=this.resolveContext)==null||i.call(this,this.context.value))}},u(au,"bp"),au);p(cA,"ContextController");let DD=cA;const UD={attribute:!0,type:String,converter:s1,reflect:!1,hasChanged:_k},ND=p((s=UD,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$1");function x(s){return(t,i)=>typeof i=="object"?ND(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)}u(x,"w");p(x,"n");function B(s){return x({...s,state:!0,attribute:!1})}u(B,"D");p(B,"r");const BD=p((s,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(s,t,i),i),"e$2");function hA(s){return(t,i)=>{const{slot:n,selector:r}=s??{},a="slot"+(n?`[name=${n}]`:":not([name])");return BD(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))}})}}u(hA,"hm");p(hA,"o");var dg,ou;const dA=(ou=class{constructor(t){U(this,dg),this.notifications="button-list",this.notificationsBadge="count",D(this,dg,t),Object.keys(this).forEach(i=>{i in t&&Object.assign(this,{[i]:t[i]})})}get component(){return P(this,dg)}},u(ou,"xp"),ou);dg=new WeakMap,p(dA,"WeavyComponentSettings");let w4=dA;const uA=Symbol.for("weavy-component-settings");var Wf=(s=>(s.Chat="chat",s.Comments="comments",s.Feeds="feeds",s.Files="files",s.Messenger="messenger",s))(Wf||{});const g4={attachments:"attachments",bots:"bots",cloud_files:"cloudFiles",comments:"comments",embeds:"embeds",google_meet:"googleMeet",meetings:"meetings",mentions:"mentions",microsoft_teams:"microsoftTeams",polls:"polls",previews:"previews",reactions:"reactions",receipts:"receipts",thumbnails:"thumbnails",typing:"typing",versions:"versions",web_dav:"webDAV",webhooks:"webhooks",zoom_meetings:"zoomMeetings"},jD={attachments:"noAttachments",cloud_files:"noCloudFiles",comments:"noComments",embeds:"noEmbeds",google_meet:"noGoogleMeet",mentions:"noMentions",microsoft_teams:"noMicrosoftTeams",polls:"noPolls",previews:"noPreviews",reactions:"noReactions",receipts:"noReceipts",thumbnails:"noThumbnails",typing:"noTyping",versions:"noVersions",web_dav:"noWebDAV",zoom_meetings:"noZoomMeetings"};var lu;const pA=(lu=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 Lo(this.host),this.context=new zr(this.host,{context:Ct,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 eM(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=If(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)}},u(lu,"$p"),lu);p(pA,"QueryController");let zi=pA;const r5=Symbol.for("weavy-app"),uv=Symbol.for("weavy-user"),a5=Symbol.for("weavy-product-features"),fA=Symbol.for("weavy-link"),yA=Symbol.for("weavy-bot-user");var XD=Object.defineProperty,FD=Object.getOwnPropertyDescriptor,Ie=p((s,t,i,n)=>{for(var r=n>1?void 0:n?FD(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&&XD(t,i,r),r},"__decorateClass$18"),Ey,zy,ug,pg,fg,yg,_y,Ly,mg,wg,gg,vg,Og,bg,va,Ul,Nl,hs,cu;const mA=(cu=class extends G{constructor(){super(),U(this,Ey),U(this,zy),U(this,ug),U(this,pg),U(this,fg),U(this,yg),U(this,_y),U(this,Ly),U(this,mg),U(this,wg),U(this,gg),U(this,vg),U(this,Og),U(this,bg),U(this,va),U(this,Ul),U(this,Nl),U(this,hs),this.storage=qR("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(B$)&&this.matchesLink(t.detail.link)&&t.preventDefault()},this.notifications="button-list",this.notificationsBadge="count",this.noAttachments=!1,this.noCloudFiles=!1,this.noComments=!1,this.noEmbeds=!1,this.noGoogleMeet=!1,this.noMentions=!1,this.noMicrosoftTeams=!1,this.noPolls=!1,this.noPreviews=!1,this.noReactions=!1,this.noReceipts=!1,this.noThumbnails=!1,this.noTyping=!1,this.noVersions=!1,this.noWebDAV=!1,this.noZoomMeetings=!1,D(this,zy,new Promise(t=>{D(this,Ey,t)})),D(this,pg,new Promise(t=>{D(this,ug,t)})),D(this,yg,new Promise(t=>{D(this,fg,t)})),D(this,Ly,new Promise(t=>{D(this,_y,t)})),D(this,wg,new Promise(t=>{D(this,mg,t)})),D(this,vg,new Promise(t=>{D(this,gg,t)})),D(this,bg,new Promise(t=>{D(this,Og,t)})),D(this,va,new zi(this)),D(this,Ul,new zi(this)),D(this,Nl,new zi(this)),D(this,hs,new zi(this)),this.settings=new w4(this)}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!==Bi.Unknown&&this.uid&&((r=t.app)==null?void 0:r.uid)===this.uid)}get link(){return this._link}set link(t){const i=this._link;!this.uid&&this.componentType&&this.componentType!==Bi.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,Ly,new Promise(t=>{D(this,_y,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}async whenApp(){return await P(this,zy)}async whenBotUser(){return await P(this,pg)}async whenHasFeatures(){return await P(this,yg)}async whenLink(){return await P(this,Ly)}async whenSettings(){return await P(this,wg)}async whenUser(){return await P(this,vg)}async whenWeavy(){return await P(this,bg)}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.hasFeatures&&this.requestUpdate("hasFeatures"),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 Lo(this),super.scheduleUpdate()}willUpdate(t){var i,n,r,a,o,l,c,h,d,f,y,w,g,b,k,$,C,E,A,M,L;if(super.willUpdate(t),this.weavyContextConsumer??(this.weavyContextConsumer=new zr(this,{context:Ct,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),Object.keys(this.settings).find(I=>t.has(I))&&(this.settings=new w4(this)),t.has("weavy")&&this.weavy&&P(this,hs).trackQuery(cn(this.weavy,["user"])),(a=P(this,hs).result)!=null&&a.isPending||this.user&&P(this,hs).result.data&&this.user.id!==P(this,hs).result.data.id&&(console.warn("User changed, invalidating cache"),(o=this.weavy)==null||o.queryClient.invalidateQueries()),(l=P(this,hs).result)!=null&&l.isPending||(this.user=(c=P(this,hs).result)==null?void 0:c.data),(t.has("productType")||t.has("weavy"))&&this.productType&&this.weavy&&P(this,Nl).trackQuery(cn(this.weavy,["features",this.productType])),!((h=P(this,Nl).result)!=null&&h.isPending)){const I=(d=P(this,Nl).result)==null?void 0:d.data;if(I){const q={};I.forEach(ee=>{const se=this[jD[ee]];g4[ee]?q[g4[ee]]=!se:console.warn("Unknown feature provided:",ee)});const j=this.hasFeatures;this.hasFeatures=q,this.requestUpdate("features",j)}}if(t.has("componentType")||t.has("uid")||t.has("name")||t.has("weavy"))if(D(this,zy,new Promise(I=>{D(this,Ey,I)})),this.componentType&&this.uid&&this.weavy){const I=this.name?{name:this.name}:void 0;P(this,va).trackQuery(pM(this.weavy,this.uid,this.componentType,I))}else P(this,va).untrackQuery(),this.app=void 0,this.name=this._initialAppName;(f=P(this,va).result)!=null&&f.isPending||(this.app=(y=P(this,va).result)==null?void 0:y.data,(w=this.app)!=null&&w.name&&(this.name=this.app.name)),(t.has("weavy")||t.has("bot"))&&this.weavy&&this.bot&&P(this,Ul).trackQuery(cn(this.weavy,["users",this.bot])),(g=P(this,Ul).result)!=null&&g.isPending||(this.botUser=(b=P(this,Ul).result)==null?void 0:b.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!==Bi.Unknown||(t.has("appTypes")||t.has("bot"))&&this.appTypes)&&this.readStorageLink(),t.has("link")&&this.link&&(console.info(`Opening notification link in ${this.uid??this.componentType??this.productType}`),this.consumeStorageLink()),t.has("app")&&this.app&&((k=P(this,Ey))==null||k.call(this,this.app)),t.has("botUser")&&this.botUser&&(($=P(this,ug))==null||$.call(this,this.botUser)),t.has("hasFeatures")&&this.hasFeatures&&((C=P(this,fg))==null||C.call(this,this.hasFeatures)),t.has("link")&&this.link&&((E=P(this,_y))==null||E.call(this,this.link)),t.has("settings")&&this.settings&&((A=P(this,mg))==null||A.call(this,this.settings)),t.has("user")&&this.user&&((M=P(this,gg))==null||M.call(this,this.user)),t.has("weavy")&&this.weavy&&(this.weavy.host.addEventListener("wy-notification",this.notificationEventHandler,{capture:!0}),(L=P(this,Og))==null||L.call(this,this.weavy))}},u(cu,"kp"),cu);Ey=new WeakMap,zy=new WeakMap,ug=new WeakMap,pg=new WeakMap,fg=new WeakMap,yg=new WeakMap,_y=new WeakMap,Ly=new WeakMap,mg=new WeakMap,wg=new WeakMap,gg=new WeakMap,vg=new WeakMap,Og=new WeakMap,bg=new WeakMap,va=new WeakMap,Ul=new WeakMap,Nl=new WeakMap,hs=new WeakMap,p(mA,"WeavyComponent");let Qe=mA;Ie([B()],Qe.prototype,"weavy",2);Ie([Fr({context:r5}),B()],Qe.prototype,"app",2);Ie([Fr({context:yA}),B()],Qe.prototype,"botUser",2);Ie([Fr({context:a5}),B()],Qe.prototype,"hasFeatures",2);Ie([Fr({context:uA}),B()],Qe.prototype,"settings",2);Ie([Fr({context:uv}),B()],Qe.prototype,"user",2);Ie([Fr({context:fA})],Qe.prototype,"_link",2);Ie([x({type:Object})],Qe.prototype,"link",1);Ie([B()],Qe.prototype,"productType",2);Ie([B()],Qe.prototype,"componentType",2);Ie([B()],Qe.prototype,"appTypes",2);Ie([x({type:String})],Qe.prototype,"bot",1);Ie([x({type:String})],Qe.prototype,"uid",2);Ie([x({type:String})],Qe.prototype,"name",1);Ie([x({type:String})],Qe.prototype,"notifications",2);Ie([x({type:String})],Qe.prototype,"notificationsBadge",2);Ie([x({type:Boolean})],Qe.prototype,"noAttachments",2);Ie([x({type:Boolean})],Qe.prototype,"noCloudFiles",2);Ie([x({type:Boolean})],Qe.prototype,"noComments",2);Ie([x({type:Boolean})],Qe.prototype,"noEmbeds",2);Ie([x({type:Boolean})],Qe.prototype,"noGoogleMeet",2);Ie([x({type:Boolean})],Qe.prototype,"noMentions",2);Ie([x({type:Boolean})],Qe.prototype,"noMicrosoftTeams",2);Ie([x({type:Boolean})],Qe.prototype,"noPolls",2);Ie([x({type:Boolean})],Qe.prototype,"noPreviews",2);Ie([x({type:Boolean})],Qe.prototype,"noReactions",2);Ie([x({type:Boolean})],Qe.prototype,"noReceipts",2);Ie([x({type:Boolean})],Qe.prototype,"noThumbnails",2);Ie([x({type:Boolean})],Qe.prototype,"noTyping",2);Ie([x({type:Boolean})],Qe.prototype,"noVersions",2);Ie([x({type:Boolean})],Qe.prototype,"noWebDAV",2);Ie([x({type:Boolean})],Qe.prototype,"noZoomMeetings",2);const wA=new Map(qk(cM)),HD=new Map(qk(hM)),YD=new Map(Object.entries(dM));new Map(Object.entries(uM));var GD=Object.defineProperty,ma=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&&GD(t,i,r),r},"__decorateClass$17");const it=p(s=>{var $;var t,i,n,r,a,o,l,c,h,d,f,y,w,g;const b=($=class extends s{constructor(...E){super(...E),U(this,t),U(this,i,new Promise(A=>{D(this,t,A)})),U(this,n),U(this,r,new Promise(A=>{D(this,n,A)})),U(this,a),U(this,o,new Promise(A=>{D(this,a,A)})),U(this,l),U(this,c,new Promise(A=>{D(this,l,A)})),U(this,h),U(this,d,new Promise(A=>{D(this,h,A)})),U(this,f),U(this,y,new Promise(A=>{D(this,f,A)})),U(this,w),U(this,g,new Promise(A=>{D(this,w,A)}))}async whenApp(){return await P(this,i)}async whenBotUser(){return await P(this,r)}async whenHasFeatures(){return await P(this,o)}async whenLink(){return await P(this,c)}async whenSettings(){return await P(this,d)}async whenUser(){return await P(this,y)}async whenWeavy(){return await P(this,g)}willUpdate(E){var A,M,L,I,q,j,ee;super.willUpdate(E),E.has("app")&&this.app&&((A=P(this,t))==null||A.call(this,this.app)),E.has("botUser")&&this.botUser&&((M=P(this,n))==null||M.call(this,this.botUser)),E.has("hasFeatures")&&this.hasFeatures&&((L=P(this,a))==null||L.call(this,this.hasFeatures)),E.has("link")&&this.link&&((I=P(this,l))==null||I.call(this,this.link)),E.has("settings")&&this.settings&&((q=P(this,h))==null||q.call(this,this.settings)),E.has("user")&&this.user&&((j=P(this,f))==null||j.call(this,this.user)),E.has("weavy")&&this.weavy&&((ee=P(this,w))==null||ee.call(this,this.weavy))}connectedCallback(){super.connectedCallback(),this.app&&this.requestUpdate("app"),this.botUser&&this.requestUpdate("botUser"),this.hasFeatures&&this.requestUpdate("hasFeatures"),this.link&&this.requestUpdate("link"),this.settings&&this.requestUpdate("settings"),this.user&&this.requestUpdate("user"),this.weavy&&this.requestUpdate("weavy")}},u($,"S"),$);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,d=new WeakMap,f=new WeakMap,y=new WeakMap,w=new WeakMap,g=new WeakMap,p(b,"WeavyComponentConsumer");let k=b;return ma([gt({context:r5,subscribe:!0}),B()],k.prototype,"app"),ma([gt({context:yA,subscribe:!0}),B()],k.prototype,"botUser"),ma([gt({context:a5,subscribe:!0}),B()],k.prototype,"hasFeatures"),ma([gt({context:fA,subscribe:!0}),B()],k.prototype,"link"),ma([gt({context:uA,subscribe:!0}),B()],k.prototype,"settings"),ma([gt({context:uv,subscribe:!0}),B()],k.prototype,"user"),ma([gt({context:Ct,subscribe:!0}),B()],k.prototype,"weavy"),k},"WeavyComponentConsumerMixin");function gA(s){return typeof s=="string"&&s?s=eval==null?void 0:(0,eval)(`"use strict";(${s})`):s=void 0,s}u(gA,"vm");p(gA,"indirectEvalObject");function tw(s){if(s)try{return new URL(s,window.location.toString())}catch{console.warn("Invalid url: ",s)}}u(tw,"fl");p(tw,"toUrl");const H=p(s=>(t,i)=>{i!==void 0?i.addInitializer(()=>{!customElements.get(s)&&customElements.define(s,t)}):!customElements.get(s)&&customElements.define(s,t)},"customElement"),fe=de`@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 .wy-button{max-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))))))}.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)))}.wy-footerbar{--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));position:absolute;bottom:0;left:0;right:0;z-index:1020}.wy-footerbar:after{content:\"\";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 var(--wy-border, 1px) 0 0 inset;position:absolute;width:100%;left:0;bottom:0;height:100%;z-index:-1}.wy-footerbar-sticky{position:sticky}[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, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);text-align:left;white-space:pre-wrap;word-spacing:normal;word-break:normal;word-wrap:break-word;line-height:1.5;-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 :not(pre)>code{font-family:var(--wy-font-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);overflow-wrap:inherit}.wy-content pre,.wy-content pre>code[class*=language-]{white-space:pre-wrap}.wy-content :first-child{margin-top:0}.wy-content :last-child{margin-bottom:0}.wy-content:empty{display:none}.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-image-grid{display:flex;flex-wrap:wrap;justify-content:space-evenly;position:relative;border-radius:var(--wy-border-radius, calc(.5 * var(--wy-size, 1rem)));overflow:hidden;column-gap:1px;row-gap:1px}.wy-image-grid .wy-image{padding:0;width:50%;position:relative;flex:auto;background-color:inherit;background-clip:content-box}.wy-image-grid .wy-image:first-of-type:not(:nth-last-of-type(2)){flex-basis:100%!important}.wy-image-grid .wy-image-area{display:block;height:100%;cursor:pointer}.wy-image-grid .wy-image-area img{position:absolute;height:100%;width:100%;object-fit:contain}.wy-image-grid .wy-image-area img.wy-loading{transition:opacity .15s ease-out;opacity:0}.wy-image-grid .wy-image-area img.wy-loading.wy-loaded{opacity:1;transition:opacity .15s ease-out}.wy-image-grid .wy-image-area img.wy-loading.wy-loaded~img{transition-delay:.15s;opacity:0}.wy-image-grid .wy-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-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, bolder));line-height:var(--wy-headings-line-height, var(--wy-line-height, 1.5));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 .wy-image-grid,.wy-message .wy-attachments{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{margin:calc(1.375 * 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))}.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}[part~=wy-reaction]{font-size:calc(1.125 * var(--wy-size, 1rem))}[part~=wy-reactions]{display:inline-flex;align-items:center;column-gap:calc(.25 * var(--wy-size, 1rem))}[part~=wy-reactions] :first-child:not(:only-child){margin-left:calc(.25 * var(--wy-size, 1rem))}[part~=wy-reactions] :last-child:not(:only-child){margin-right:calc(.25 * var(--wy-size, 1rem))}[part~=wy-reaction-count]{margin:0 calc(.25 * var(--wy-size, 1rem)) 0;line-height:1;font-size:var(--wy-font-size-sm, calc(.875 * var(--wy-font-size, 1em)))}[part~=wy-reaction-menu]{width:max-content;position:absolute;z-index:1000;border:none;--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);display:flex;margin:0;text-align:left;background-clip:padding-box;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;padding:var(--wy-padding-sm, calc(.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))));font-size:calc(1.25 * var(--wy-size, 1rem));border-radius:var(--wy-border-radius-pill, var(--wy-border-radius, calc(2.5 * var(--wy-size, 1rem))))}[part~=wy-reaction-picker]{display:flex;flex-direction:row;gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}[part~=wy-reactions-line]{display:flex;align-items:center;padding-left:calc(.1875 * var(--wy-size, 1rem));padding-right:calc(.1875 * var(--wy-size, 1rem));gap:calc(.1875 * var(--wy-size, 1rem));justify-content:end}[part~=wy-reactions-line-reverse]{flex-direction:row-reverse;justify-content:start}[part~=wy-reactions-line-bottom]{position:absolute;bottom:calc(-1 * var(--wy-size, 1rem));right:calc(.25 * var(--wy-size, 1rem));z-index:1}[part~=wy-reactions-line-below]{position:relative;height:0;min-height:0;max-height:0;margin:calc(var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))) - var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))) calc(-1 * var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem))))))) calc(-1 * var(--wy-message-padding, var(--wy-padding-lg, calc(1.5 * var(--wy-padding, calc(.5 * var(--wy-size, 1rem)))))));padding-left:calc(.125 * var(--wy-size, 1rem));padding-right:calc(.125 * var(--wy-size, 1rem));gap:calc(.125 * var(--wy-size, 1rem));flex:1 0 auto;justify-content:flex-end}.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, bolder);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);gap:var(--wy-gap-sm, calc(.5 * var(--wy-gap, calc(.5 * var(--wy-size, 1rem)))))}.wy-message-editor-buttons{flex:1 0 auto}.wy-message-editor-text{flex:1 1 100%;display:flex;flex-direction:column}.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}.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-image-grid{border-radius:0}.wy-post wy-comment-list{border-top:var(--wy-border, 1px) solid var(--wy-outline-variant, var(--wy-neutral-variant-80, #c2c7ce))}.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, bolder);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, bolder));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)))))}.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-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, bolder);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, bolder)}.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, bolder)}.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}`;var KD=Object.defineProperty,JD=Object.getOwnPropertyDescriptor,Lt=p((s,t,i,n)=>{for(var r=n>1?void 0:n?JD(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&&KD(t,i,r),r},"__decorateClass$16");function m$(s){return s!=null&&s!==!1}u(m$,"au");p(m$,"acceptedValue");const vA="wy-context";var DO,hu;let ct=(DO=(hu=class extends G{constructor(){super(),this.provider=!1,this.childElementCount&&(this.provider=!0),this.weavy??(this.weavy=new Gy({host:this.provider?this:void 0}))}get version(){return Gy.version}get sourceName(){return Gy.sourceName}willUpdate(t){if(super.willUpdate(t),this.weavy){const i={};Array.from(t.keys()).forEach(n=>{n!=="weavy"&&(m$(this[n])||m$(t.get(n)))&&Object.assign(i,{[n]:this[n]})}),Object.assign(this.weavy,i)}}render(){return O` <slot></slot> `}},u(hu,"yn"),hu),p(DO,"WyContext"),DO);ct.styles=[fe,Gi,de`
|
|
33
33
|
:host {
|
|
34
34
|
display: contents;
|
|
35
35
|
}
|
|
@@ -2739,7 +2739,7 @@ ${r.join(`
|
|
|
2739
2739
|
`:R}
|
|
2740
2740
|
`}disconnectedCallback(){var t;(t=H4(this,tc))==null||t.call(this),super.disconnectedCallback()}},u(Dp,"Sa"),Dp),p(a0,"WyConversationExtended"),a0);tc=new WeakMap;__([B()],_1.prototype,"conversationTitle",2);_1=__([H("wy-conversation-extended"),$e()],_1);var UX=Object.defineProperty,NX=Object.getOwnPropertyDescriptor,I_=p(s=>{throw TypeError(s)},"__typeError$3"),yw=p((s,t,i,n)=>{for(var r=n>1?void 0:n?NX(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&&UX(t,i,r),r},"__decorateClass$b"),W_=p((s,t,i)=>t.has(s)||I_("Cannot "+i),"__accessCheck$3"),G4=p((s,t,i)=>(W_(s,t,"read from private field"),i?i.call(s):t.get(s)),"__privateGet$3"),BX=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"),K4=p((s,t,i,n)=>(W_(s,t,"write to private field"),t.set(s,i),i),"__privateSet$3"),ic,o0,Up;let Br=(o0=(Up=class extends G{constructor(){super(...arguments),this.private=!0,this.rooms=!0,this.badgeQuery=new zi(this),this.handleBadgeRefresh=async()=>{this.badgeQuery.result.isRefetching||await this.badgeQuery.result.refetch()},this.handleRealtimeMessage=t=>{this.handleBadgeRefresh()},this.handleRealtimeSeenBy=t=>{this.handleBadgeRefresh()},BX(this,ic)}async willUpdate(t){var i;if(t.has("weavy")&&this.weavy){const n=[];this.rooms&&n.push(Re.ChatRoom),this.private&&n.push(Re.PrivateChat),this.bot&&n.push(Re.BotChat),this.badgeQuery.trackQuery(yM(this.weavy,n,this.bot),!0),(i=G4(this,ic))==null||i.call(this),this.weavy.subscribe(null,"message_created",this.handleRealtimeMessage),this.weavy.subscribe(null,"app_marked",this.handleBadgeRefresh),K4(this,ic,()=>{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),K4(this,ic,void 0)})}}render(){const{data:t,isPending:i}=this.badgeQuery.result??{},n=t?t.count:0;return O`
|
|
2741
2741
|
${!i&&n>0?O` <span class="wy-badge wy-badge-danger wy-badge-reveal">${n}</span> `:R}
|
|
2742
|
-
`}connectedCallback(){super.connectedCallback(),this.weavy&&this.requestUpdate("weavy")}disconnectedCallback(){var t;(t=G4(this,ic))==null||t.call(this),super.disconnectedCallback()}},u(Up,"Ea"),Up),p(o0,"WyMessengerBadge"),o0);ic=new WeakMap;Br.styles=fe;yw([gt({context:Ct,subscribe:!0}),B()],Br.prototype,"weavy",2);yw([x({attribute:!1,type:Boolean})],Br.prototype,"private",2);yw([x({attribute:!1,type:Boolean})],Br.prototype,"rooms",2);yw([x()],Br.prototype,"bot",2);Br=yw([H("wy-messenger-badge")],Br);var jX=Object.defineProperty,XX=Object.getOwnPropertyDescriptor,Av=p((s,t,i,n)=>{for(var r=n>1?void 0:n?XX(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&&jX(t,i,r),r},"__decorateClass$a");const FX=new Map(Object.entries({[Oi.ChatRoom]:Re.ChatRoom,[Oi.PrivateChat]:Re.PrivateChat,[Re.ChatRoom]:Oi.ChatRoom,[Re.PrivateChat]:Oi.PrivateChat}));new Map(Object.entries({[Oi.BotChat]:Re.BotChat,[Re.BotChat]:Oi.BotChat}));const V_="wy-messenger";var l0,Np;let jr=(l0=(Np=class extends Qe{constructor(){super(),this.productType=Wf.Messenger,this.appTypes=[Re.ChatRoom,Re.PrivateChat],this.conversationId=null,this.conversationQuery=new zi(this),this.botQuery=new zi(this),this.persistState=new G5(this),this.releaseFocusEvent=()=>new CustomEvent("release-focus",{bubbles:!0,composed:!0}),new Hr(this,jr.styles)}get bot(){return super.bot}set bot(t){super.bot=t,this._bot?this.appTypes=[Re.BotChat]:this.appTypes=[Re.ChatRoom,Re.PrivateChat],this.conversationId=null}async conversationBelongsToMessenger(t){return this.weavy?!!await iE(this.weavy,t,this.appTypes,this.bot):!1}clearConversation(){this.conversationId=null}async willUpdate(t){var i,n;
|
|
2742
|
+
`}connectedCallback(){super.connectedCallback(),this.weavy&&this.requestUpdate("weavy")}disconnectedCallback(){var t;(t=G4(this,ic))==null||t.call(this),super.disconnectedCallback()}},u(Up,"Ea"),Up),p(o0,"WyMessengerBadge"),o0);ic=new WeakMap;Br.styles=fe;yw([gt({context:Ct,subscribe:!0}),B()],Br.prototype,"weavy",2);yw([x({attribute:!1,type:Boolean})],Br.prototype,"private",2);yw([x({attribute:!1,type:Boolean})],Br.prototype,"rooms",2);yw([x()],Br.prototype,"bot",2);Br=yw([H("wy-messenger-badge")],Br);var jX=Object.defineProperty,XX=Object.getOwnPropertyDescriptor,Av=p((s,t,i,n)=>{for(var r=n>1?void 0:n?XX(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&&jX(t,i,r),r},"__decorateClass$a");const FX=new Map(Object.entries({[Oi.ChatRoom]:Re.ChatRoom,[Oi.PrivateChat]:Re.PrivateChat,[Re.ChatRoom]:Oi.ChatRoom,[Re.PrivateChat]:Oi.PrivateChat}));new Map(Object.entries({[Oi.BotChat]:Re.BotChat,[Re.BotChat]:Oi.BotChat}));const V_="wy-messenger";var l0,Np;let jr=(l0=(Np=class extends Qe{constructor(){super(),this.productType=Wf.Messenger,this.appTypes=[Re.ChatRoom,Re.PrivateChat],this.conversationId=null,this.conversationQuery=new zi(this),this.botQuery=new zi(this),this.persistState=new G5(this),this.releaseFocusEvent=()=>new CustomEvent("release-focus",{bubbles:!0,composed:!0}),new Hr(this,jr.styles)}get bot(){return super.bot}set bot(t){super.bot=t,this._bot?this.appTypes=[Re.BotChat]:this.appTypes=[Re.ChatRoom,Re.PrivateChat],this.conversationId=null}async conversationBelongsToMessenger(t){return console.warn("conversationBelongsToMessenger() is deprecated. Compare app to to .appTypes instead."),this.weavy?!!await iE(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(tE(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 O`
|
|
2743
2743
|
<div class="wy-messenger-layout">
|
|
2744
2744
|
<wy-conversation-list
|
|
2745
2745
|
class="wy-scroll-y"
|
|
@@ -2777,7 +2777,7 @@ ${r.join(`
|
|
|
2777
2777
|
></wy-conversation-extended>`:O`<wy-empty noNetwork>${T("Select a conversation")}</wy-empty>`)}
|
|
2778
2778
|
</div>
|
|
2779
2779
|
</div>
|
|
2780
|
-
`}},u(Np,"Oa"),Np),p(l0,"WyMessenger"),l0);jr.styles=[Gi,fe,$X,Vf,Yr];Av([B()],jr.prototype,"appTypes",2);Av([x({type:String})],jr.prototype,"bot",1);Av([
|
|
2780
|
+
`}},u(Np,"Oa"),Np),p(l0,"WyMessenger"),l0);jr.styles=[Gi,fe,$X,Vf,Yr];Av([B()],jr.prototype,"appTypes",2);Av([x({type:String})],jr.prototype,"bot",1);Av([x({type:Number})],jr.prototype,"conversationId",2);jr=Av([H(V_),$e()],jr);const HX=de`.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)))}`,YX=de`.wy-notification.wy-read{opacity:var(--wy-opacity-muted, 60%);--wy-component-color: var(--wy-outline, var(--wy-neutral-variant-50, #72777e))}`;var GX=Object.defineProperty,KX=Object.getOwnPropertyDescriptor,mw=p((s,t,i,n)=>{for(var r=n>1?void 0:n?KX(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&&GX(t,i,r),r},"__decorateClass$9"),c0,Bp;let Xr=(c0=(Bp=class extends it(G){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 k5(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?Nf((i=this.weavy)==null?void 0:i.locale,new Date(this.notification.created_at)):"",a=this.notification.actor,{title:o,titleHtml:l,detail:c}=P5(this.notification),h=this.standalone?R:O`
|
|
2781
2781
|
<div class="wy-item-actions wy-item-right">
|
|
2782
2782
|
<wy-button
|
|
2783
2783
|
kind="icon-inline"
|
|
@@ -3184,4 +3184,4 @@ ${r.join(`
|
|
|
3184
3184
|
${n?O`<div ${pe(this.pagerRef)} part="wy-pager wy-pager-bottom"></div>`:R}
|
|
3185
3185
|
`}
|
|
3186
3186
|
</div>
|
|
3187
|
-
`:O`<wy-empty><wy-spinner padded reveal></wy-spinner></wy-empty>`}disconnectedCallback(){var t;(t=n3(this,rc))==null||t.call(this),super.disconnectedCallback()}},u(tf,"Ua"),tf),p(v0,"WyPosts"),v0);rc=new WeakMap;Bm.styles=[Gi,fe,Vf,iw,Yr,Do];Bm=OF([H(sL),$e()],Bm);const ne=Object.freeze(Object.defineProperty({__proto__:null,get WyAttachment(){return Ts},get WyAttachmentsList(){return $f},get WyAvatar(){return Qs},get WyAvatarGroup(){return Co},get WyBlobUpload(){return Tf},get WyButton(){return Fn},get WyButtons(){return Qo},get WyCloudFiles(){return _o},get WyComment(){return dt},get WyCommentEdit(){return Ot},get WyCommentEditor(){return V$},get WyCommentList(){return Cf},get WyCommentTrashed(){return _m},get WyCommentView(){return Pt},get WyConversation(){return wn},get WyConversationAppbar(){return Yn},get WyConversationExtended(){return _1},get WyConversationList(){return Gn},get WyConversationListItem(){return Xt},get WyConversationNew(){return Mf},get WyDropdown(){return $i},get WyDropdownDivider(){return M1},get WyDropdownItem(){return Em},get WyDropdownOption(){return Pf},get WyEditor(){return qe},get WyEmbed(){return Of},get WyEmpty(){return gf},get WyFileItem(){return Ms},get WyFileMenu(){return Dr},get WyFileVersions(){return Qf},get WyFilesAppbar(){return Ur},get WyFilesList(){return gn},get WyIcon(){return et},get WyImageGrid(){return bf},get WyMeetingCard(){return Mm},get WyMessage(){return ut},get WyMessageEditor(){return Z$},get WyMessageTyping(){return Ii},get WyMessages(){return mn},get WyMessengerBadge(){return Br},get WyNotificationBadge(){return Vm},get WyNotificationButtonList(){return z1},get WyNotificationList(){return Af},get WyNotificationListItem(){return Xr},get WyOverlay(){return Vr},get WyPdfViewer(){return Eo},get WyPoll(){return Lm},get WyPollOption(){return zo},get WyPost(){return pt},get WyPostEdit(){return _t},get WyPostTrashed(){return Nm},get WyPostView(){return tt},get WyPresence(){return vf},get WyPreview(){return bt},get WyPreviewEmbed(){return qr},get WyPreviewIcon(){return Mo},get WyPreviewImage(){return Ao},get WyPreviewItem(){return zm},get WyPreviewMedia(){return Zr},get WyPreviewText(){return Hn},get WyReactionItem(){return Rm},get WyReactions(){return ht},get WySheet(){return Sf},get WySkeleton(){return Am},get WySpinner(){return jn},get WyToast(){return As},get WyToasts(){return Um},get WyTyping(){return Rf},get WyUsersSearch(){return vn}},Symbol.toStringTag,{value:"Module"}));an.version="26.0.2";an.sourceName="@weavy/uikit-react";const rL=F.createContext(null);function $F(s,t=[]){var l,c,h,d,f;const[i,n]=F.useState(),r={...s,cloudFilePickerUrl:(l=s.cloudFilePickerUrl)==null?void 0:l.toString(),locales:F.useMemo(()=>s.locales,[(c=s.locales)==null?void 0:c.length]),tokenUrl:(h=s.tokenUrl)==null?void 0:h.toString(),tokenFactory:F.useMemo(()=>s.tokenFactory,[(d=s.tokenFactory)==null?void 0:d.toString(),...t]),url:(f=s.url)==null?void 0:f.toString()},[a,o]=F.useState(r);return F.useEffect(()=>{if(!i){const w=(en==null?void 0:en.value)??new Gy(r);n(w)}},[]),F.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}u($F,"useWeavy");const aL=Promise.resolve(),hS=class hS{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,aL.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)}};u(hS,"s");let D$=hS;const xF=u((s,t)=>{const{useState:i,useLayoutEffect:n}=s,[r,a]=i(0);let o=!1;const[l]=i(()=>{const c=new D$(r,a),h=t(c);return c.M=h,c.m(),o=!0,aL.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 oL(s,t){var a;const n=(u(o=>!!o&&o.current!==void 0,"isRef")(s)?s.current:s)||void 0,r=xF(F,o=>new DD(o,t??Ct,n));return F.useEffect(()=>{n&&(r.ref=n)},[r,n]),(a=r.context)==null?void 0:a.value}u(oL,"useWeavyContext");const kF=new Set(["children","localName","ref","style","className"]),r3=new WeakMap,a3=u((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=r3.get(o);h===void 0&&r3.set(o,h=new Map);let d=h.get(l);c!==void 0?d===void 0?(h.set(l,d={handleEvent:c}),o.addEventListener(l,d)):d.handleEvent=c:d!==void 0&&(h.delete(l),o.removeEventListener(l,d))})(s,a,i)},"t"),K=u(({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),d=s.useRef(null),f={},y={};for(const[w,g]of Object.entries(l))kF.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(d.current===null)return;const w=new Map;for(const g in y)a3(d.current,g,l[g],h.current.get(g),n),h.current.delete(g),w.set(g,l[g]);for(const[g,b]of h.current)a3(d.current,g,void 0,b,n);h.current=w}),s.useLayoutEffect(()=>{var w;(w=d.current)==null||w.removeAttribute("defer-hydration")},[]),f.suppressHydrationWarning=!0,s.createElement(t,{...f,ref:s.useCallback(w=>{d.current=w,typeof c=="function"?c(w):c!==null&&(c.current=w)},[c])})});return o.displayName=r??i.name,o},"o"),SF=K({react:F,tagName:o_,elementClass:Zm,events:{onWyPreviewOpen:"wy-preview-open"}}),PF=K({react:F,tagName:l_,elementClass:qm,events:{onWyPreviewOpen:"wy-preview-open"}}),CF=K({react:F,tagName:bA,elementClass:ko}),QF=K({react:F,tagName:vA,elementClass:ct,events:{onWyNotifications:"wy-notifications"}});function TF({children:s,...t}){const i=F.useRef(null),n=oL(i.current);return F.createElement(QF,{ref:i,...t},F.createElement(rL.Provider,{value:n??null},s))}u(TF,"WyContext");const RF=K({react:F,tagName:C_,elementClass:Nr,events:{onWyPreviewOpen:"wy-preview-open"}}),MF=K({react:F,tagName:V_,elementClass:jr,events:{onWyPreviewOpen:"wy-preview-open"}}),AF=K({react:F,tagName:D_,elementClass:Dm,events:{onWyLink:"wy-link"}}),EF=K({react:F,tagName:B_,elementClass:Kn,events:{onWyLink:"wy-link",onWyNotification:"wy-notification"}}),zF=K({react:F,tagName:sL,elementClass:Bm,events:{onWyPreviewOpen:"wy-preview-open"}}),_F=K({react:F,tagName:"wy-attachment",elementClass:ne.WyAttachment}),LF=K({react:F,tagName:"wy-attachments-list",elementClass:ne.WyAttachmentsList,events:{onFileOpen:"file-open"}}),IF=K({react:F,tagName:"wy-avatar",elementClass:ne.WyAvatar}),WF=K({react:F,tagName:"wy-blob-upload",elementClass:ne.WyBlobUpload}),VF=K({react:F,tagName:"wy-button",elementClass:ne.WyButton}),ZF=K({react:F,tagName:"wy-buttons",elementClass:ne.WyButtons}),qF=K({react:F,tagName:"wy-cloud-files",elementClass:ne.WyCloudFiles,events:{onExternalBlobs:"external-blobs",onReleaseFocus:"release-focus"}}),DF=K({react:F,tagName:"wy-comment-list",elementClass:ne.WyCommentList}),UF=K({react:F,tagName:"wy-comment",elementClass:ne.WyComment,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),NF=K({react:F,tagName:"wy-comment-view",elementClass:ne.WyCommentView,events:{onVote:"vote",onTrash:"trash",onEdit:"edit"}}),BF=K({react:F,tagName:"wy-comment-edit",elementClass:ne.WyCommentEdit,events:{onEdit:"edit"}}),jF=K({react:F,tagName:"wy-comment-editor",elementClass:ne.WyCommentEditor,events:{onSubmit:"submit"}}),XF=K({react:F,tagName:"wy-comment-trashed",elementClass:ne.WyCommentTrashed,events:{onRestore:"restore"}}),FF=K({react:F,tagName:"wy-conversation",elementClass:ne.WyConversation,events:{onReleaseFocus:"release-focus"}}),HF=K({react:F,tagName:"wy-conversation-extended",elementClass:ne.WyConversationExtended,events:{onReleaseFocus:"release-focus"}}),YF=K({react:F,tagName:"wy-conversation-appbar",elementClass:ne.WyConversationAppbar,events:{onReleaseFocus:"release-focus"}}),GF=K({react:F,tagName:"wy-conversation-new",elementClass:ne.WyConversationNew,events:{onReleaseFocus:"release-focus"}}),KF=K({react:F,tagName:"wy-conversation-list",elementClass:ne.WyConversationList,events:{onConversationSelected:"conversation-selected"}}),JF=K({react:F,tagName:"wy-conversation-list-item",elementClass:ne.WyConversationListItem,events:{onRefetch:"refetch",onSelected:"selected",onStar:"star",onPin:"pin",onMark:"mark",onLeave:"leave"}}),eH=K({react:F,tagName:"wy-dropdown",elementClass:ne.WyDropdown}),tH=K({react:F,tagName:"wy-dropdown-item",elementClass:ne.WyDropdownItem}),iH=K({react:F,tagName:"wy-dropdown-option",elementClass:ne.WyDropdownOption}),nH=K({react:F,tagName:"wy-dropdown-divider",elementClass:ne.WyDropdownDivider}),sH=K({react:F,tagName:"wy-editor",elementClass:ne.WyEditor,events:{onSubmit:"submit"}}),rH=K({react:F,tagName:"wy-embed",elementClass:ne.WyEmbed,events:{onEmbedRemove:"embed-remove",onEmbedSwap:"embed-swap"}}),aH=K({react:F,tagName:"wy-empty",elementClass:ne.WyEmpty}),oH=K({react:F,tagName:"wy-file-item",elementClass:ne.WyFileItem,events:{onEditName:"edit-name",onRename:"rename",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever",onSubscribe:"subscribe"}}),lH=K({react:F,tagName:"wy-file-menu",elementClass:ne.WyFileMenu,events:{onEditName:"edit-name",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever"}}),cH=K({react:F,tagName:"wy-file-versions",elementClass:ne.WyFileVersions,events:{onFileVersionSelect:"file-version-select"}}),hH=K({react:F,tagName:"wy-files-appbar",elementClass:ne.WyFilesAppbar,events:{onReleaseFocus:"release-focus",onUploadFiles:"upload-files",onExternalBlobs:"external-blobs",onCreateFiles:"create-files",onOrder:"order",onView:"view",onShowTrashed:"show-trashed",onSubscribe:"subscribe"}}),dH=K({react:F,tagName:"wy-files-list",elementClass:ne.WyFilesList,events:{onFileOpen:"file-open",onOrder:"order",onEditName:"edit-name",onRename:"rename",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever",onSubscribe:"subscribe"}}),uH=K({react:F,tagName:"wy-icon",elementClass:ne.WyIcon}),pH=K({react:F,tagName:"wy-image-grid",elementClass:ne.WyImageGrid,events:{onFileOpen:"file-open"}}),fH=K({react:F,tagName:"wy-meeting-card",elementClass:ne.WyMeetingCard}),yH=K({react:F,tagName:"wy-message",elementClass:ne.WyMessage}),mH=K({react:F,tagName:"wy-messages",elementClass:ne.WyMessages,events:{onScrollToBottom:"scroll-to-bottom"}}),wH=K({react:F,tagName:"wy-message-editor",elementClass:ne.WyMessageEditor,events:{onSubmit:"submit"}}),gH=K({react:F,tagName:"wy-message-typing",elementClass:ne.WyMessageTyping}),vH=K({react:F,tagName:"wy-messenger-badge",elementClass:ne.WyMessengerBadge}),OH=K({react:F,tagName:"wy-notification-badge",elementClass:ne.WyNotificationBadge}),bH=K({react:F,tagName:"wy-notification-button-list",elementClass:ne.WyNotificationButtonList}),$H=K({react:F,tagName:"wy-notification-list",elementClass:ne.WyNotificationList}),xH=K({react:F,tagName:"wy-notification-list-item",elementClass:ne.WyNotificationListItem}),kH=K({react:F,tagName:"wy-overlay",elementClass:ne.WyOverlay,events:{onReleaseFocus:"release-focus",onClose:"close"}}),SH=K({react:F,tagName:"wy-pdf-viewer",elementClass:ne.WyPdfViewer}),PH=K({react:F,tagName:"wy-poll",elementClass:ne.WyPoll,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),CH=K({react:F,tagName:"wy-poll-option",elementClass:ne.WyPollOption,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),QH=K({react:F,tagName:"wy-post",elementClass:ne.WyPost,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),TH=K({react:F,tagName:"wy-post-view",elementClass:ne.WyPostView,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onEdit:"edit"}}),RH=K({react:F,tagName:"wy-post-edit",elementClass:ne.WyPostEdit,events:{onEdit:"edit"}}),MH=K({react:F,tagName:"wy-post-trashed",elementClass:ne.WyPostTrashed,events:{onRestore:"restore"}}),AH=K({react:F,tagName:"wy-presence",elementClass:ne.WyPresence}),EH=K({react:F,tagName:"wy-preview",elementClass:ne.WyPreview,events:{onReleaseFocus:"release-focus",onWyPreviewOpen:"wy-preview-open",onWyPreviewClose:"wy-preview-close"}}),zH=K({react:F,tagName:"wy-preview-item",elementClass:ne.WyPreviewItem}),_H=K({react:F,tagName:"wy-preview-embed",elementClass:ne.WyPreviewEmbed}),LH=K({react:F,tagName:"wy-preview-icon",elementClass:ne.WyPreviewIcon}),IH=K({react:F,tagName:"wy-preview-image",elementClass:ne.WyPreviewImage}),WH=K({react:F,tagName:"wy-preview-media",elementClass:ne.WyPreviewMedia}),VH=K({react:F,tagName:"wy-preview-text",elementClass:ne.WyPreviewText}),ZH=K({react:F,tagName:"wy-reactions",elementClass:ne.WyReactions,events:{onReleaseFocus:"release-focus"}}),qH=K({react:F,tagName:"wy-reaction-item",elementClass:ne.WyReactionItem}),DH=K({react:F,tagName:"wy-sheet",elementClass:ne.WySheet,events:{onReleaseFocus:"release-focus",onClose:"close"}}),UH=K({react:F,tagName:"wy-skeleton",elementClass:ne.WySkeleton}),NH=K({react:F,tagName:"wy-spinner",elementClass:ne.WySpinner}),BH=K({react:F,tagName:"wy-typing",elementClass:ne.WyTyping}),jH=K({react:F,tagName:"wy-users-search",elementClass:ne.WyUsersSearch,events:{onSubmit:"submit"}}),XH=Object.freeze(Object.defineProperty({__proto__:null,WyAttachment:_F,WyAttachmentsList:LF,WyAvatar:IF,WyBlobUpload:WF,WyButton:VF,WyButtons:ZF,WyCloudFiles:qF,WyComment:UF,WyCommentEdit:BF,WyCommentEditor:jF,WyCommentList:DF,WyCommentTrashed:XF,WyCommentView:NF,WyConversation:FF,WyConversationAppbar:YF,WyConversationExtended:HF,WyConversationList:KF,WyConversationListItem:JF,WyConversationNew:GF,WyDropdown:eH,WyDropdownDivider:nH,WyDropdownItem:tH,WyDropdownOption:iH,WyEditor:sH,WyEmbed:rH,WyEmpty:aH,WyFileItem:oH,WyFileMenu:lH,WyFileVersions:cH,WyFilesAppbar:hH,WyFilesList:dH,WyIcon:uH,WyImageGrid:pH,WyMeetingCard:fH,WyMessage:yH,WyMessageEditor:wH,WyMessageTyping:gH,WyMessages:mH,WyMessengerBadge:vH,WyNotificationBadge:OH,WyNotificationButtonList:bH,WyNotificationList:$H,WyNotificationListitem:xH,WyOverlay:kH,WyPdfViewer:SH,WyPoll:PH,WyPollOption:CH,WyPost:QH,WyPostEdit:RH,WyPostTrashed:MH,WyPostView:TH,WyPresence:AH,WyPreview:EH,WyPreviewEmbed:_H,WyPreviewIcon:LH,WyPreviewImage:IH,WyPreviewItem:zH,WyPreviewMedia:WH,WyPreviewText:VH,WyReactionItem:qH,WyReactions:ZH,WySheet:DH,WySkeleton:UH,WySpinner:NH,WyTyping:BH,WyUsersSearch:jH},Symbol.toStringTag,{value:"Module"}));exports.AppTypeGuids=wA;exports.AppTypeStrings=HD;exports.MessengerTypes=FX;exports.Weavy=Gy;exports.WeavyComponents=XH;exports.WeavyContext=rL;exports.WyChat=SF;exports.WyComments=PF;exports.WyComponent=CF;exports.WyContext=TF;exports.WyFiles=RF;exports.WyMessenger=MF;exports.WyNotificationToasts=EF;exports.WyNotifications=AF;exports.WyPosts=zF;exports.useWeavy=$F;exports.useWeavyContext=oL;
|
|
3187
|
+
`:O`<wy-empty><wy-spinner padded reveal></wy-spinner></wy-empty>`}disconnectedCallback(){var t;(t=n3(this,rc))==null||t.call(this),super.disconnectedCallback()}},u(tf,"Ua"),tf),p(v0,"WyPosts"),v0);rc=new WeakMap;Bm.styles=[Gi,fe,Vf,iw,Yr,Do];Bm=OF([H(sL),$e()],Bm);const ne=Object.freeze(Object.defineProperty({__proto__:null,get WyAttachment(){return Ts},get WyAttachmentsList(){return $f},get WyAvatar(){return Qs},get WyAvatarGroup(){return Co},get WyBlobUpload(){return Tf},get WyButton(){return Fn},get WyButtons(){return Qo},get WyCloudFiles(){return _o},get WyComment(){return dt},get WyCommentEdit(){return Ot},get WyCommentEditor(){return V$},get WyCommentList(){return Cf},get WyCommentTrashed(){return _m},get WyCommentView(){return Pt},get WyConversation(){return wn},get WyConversationAppbar(){return Yn},get WyConversationExtended(){return _1},get WyConversationList(){return Gn},get WyConversationListItem(){return Xt},get WyConversationNew(){return Mf},get WyDropdown(){return $i},get WyDropdownDivider(){return M1},get WyDropdownItem(){return Em},get WyDropdownOption(){return Pf},get WyEditor(){return qe},get WyEmbed(){return Of},get WyEmpty(){return gf},get WyFileItem(){return Ms},get WyFileMenu(){return Dr},get WyFileVersions(){return Qf},get WyFilesAppbar(){return Ur},get WyFilesList(){return gn},get WyIcon(){return et},get WyImageGrid(){return bf},get WyMeetingCard(){return Mm},get WyMessage(){return ut},get WyMessageEditor(){return Z$},get WyMessageTyping(){return Ii},get WyMessages(){return mn},get WyMessengerBadge(){return Br},get WyNotificationBadge(){return Vm},get WyNotificationButtonList(){return z1},get WyNotificationList(){return Af},get WyNotificationListItem(){return Xr},get WyOverlay(){return Vr},get WyPdfViewer(){return Eo},get WyPoll(){return Lm},get WyPollOption(){return zo},get WyPost(){return pt},get WyPostEdit(){return _t},get WyPostTrashed(){return Nm},get WyPostView(){return tt},get WyPresence(){return vf},get WyPreview(){return bt},get WyPreviewEmbed(){return qr},get WyPreviewIcon(){return Mo},get WyPreviewImage(){return Ao},get WyPreviewItem(){return zm},get WyPreviewMedia(){return Zr},get WyPreviewText(){return Hn},get WyReactionItem(){return Rm},get WyReactions(){return ht},get WySheet(){return Sf},get WySkeleton(){return Am},get WySpinner(){return jn},get WyToast(){return As},get WyToasts(){return Um},get WyTyping(){return Rf},get WyUsersSearch(){return vn}},Symbol.toStringTag,{value:"Module"}));an.version="26.0.3";an.sourceName="@weavy/uikit-react";const rL=F.createContext(null);function $F(s,t=[]){var l,c,h,d,f;const[i,n]=F.useState(),r={...s,cloudFilePickerUrl:(l=s.cloudFilePickerUrl)==null?void 0:l.toString(),locales:F.useMemo(()=>s.locales,[(c=s.locales)==null?void 0:c.length]),tokenUrl:(h=s.tokenUrl)==null?void 0:h.toString(),tokenFactory:F.useMemo(()=>s.tokenFactory,[(d=s.tokenFactory)==null?void 0:d.toString(),...t]),url:(f=s.url)==null?void 0:f.toString()},[a,o]=F.useState(r);return F.useEffect(()=>{if(!i){const w=(en==null?void 0:en.value)??new Gy(r);n(w)}},[]),F.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}u($F,"useWeavy");const aL=Promise.resolve(),hS=class hS{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,aL.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)}};u(hS,"s");let D$=hS;const xF=u((s,t)=>{const{useState:i,useLayoutEffect:n}=s,[r,a]=i(0);let o=!1;const[l]=i(()=>{const c=new D$(r,a),h=t(c);return c.M=h,c.m(),o=!0,aL.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 oL(s,t){var a;const n=(u(o=>!!o&&o.current!==void 0,"isRef")(s)?s.current:s)||void 0,r=xF(F,o=>new DD(o,t??Ct,n));return F.useEffect(()=>{n&&(r.ref=n)},[r,n]),(a=r.context)==null?void 0:a.value}u(oL,"useWeavyContext");const kF=new Set(["children","localName","ref","style","className"]),r3=new WeakMap,a3=u((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=r3.get(o);h===void 0&&r3.set(o,h=new Map);let d=h.get(l);c!==void 0?d===void 0?(h.set(l,d={handleEvent:c}),o.addEventListener(l,d)):d.handleEvent=c:d!==void 0&&(h.delete(l),o.removeEventListener(l,d))})(s,a,i)},"t"),K=u(({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),d=s.useRef(null),f={},y={};for(const[w,g]of Object.entries(l))kF.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(d.current===null)return;const w=new Map;for(const g in y)a3(d.current,g,l[g],h.current.get(g),n),h.current.delete(g),w.set(g,l[g]);for(const[g,b]of h.current)a3(d.current,g,void 0,b,n);h.current=w}),s.useLayoutEffect(()=>{var w;(w=d.current)==null||w.removeAttribute("defer-hydration")},[]),f.suppressHydrationWarning=!0,s.createElement(t,{...f,ref:s.useCallback(w=>{d.current=w,typeof c=="function"?c(w):c!==null&&(c.current=w)},[c])})});return o.displayName=r??i.name,o},"o"),SF=K({react:F,tagName:o_,elementClass:Zm,events:{onWyPreviewOpen:"wy-preview-open"}}),PF=K({react:F,tagName:l_,elementClass:qm,events:{onWyPreviewOpen:"wy-preview-open"}}),CF=K({react:F,tagName:bA,elementClass:ko}),QF=K({react:F,tagName:vA,elementClass:ct,events:{onWyNotifications:"wy-notifications"}});function TF({children:s,...t}){const i=F.useRef(null),n=oL(i.current);return F.createElement(QF,{ref:i,...t},F.createElement(rL.Provider,{value:n??null},s))}u(TF,"WyContext");const RF=K({react:F,tagName:C_,elementClass:Nr,events:{onWyPreviewOpen:"wy-preview-open"}}),MF=K({react:F,tagName:V_,elementClass:jr,events:{onWyPreviewOpen:"wy-preview-open"}}),AF=K({react:F,tagName:D_,elementClass:Dm,events:{onWyLink:"wy-link"}}),EF=K({react:F,tagName:B_,elementClass:Kn,events:{onWyLink:"wy-link",onWyNotification:"wy-notification"}}),zF=K({react:F,tagName:sL,elementClass:Bm,events:{onWyPreviewOpen:"wy-preview-open"}}),_F=K({react:F,tagName:"wy-attachment",elementClass:ne.WyAttachment}),LF=K({react:F,tagName:"wy-attachments-list",elementClass:ne.WyAttachmentsList,events:{onFileOpen:"file-open"}}),IF=K({react:F,tagName:"wy-avatar",elementClass:ne.WyAvatar}),WF=K({react:F,tagName:"wy-blob-upload",elementClass:ne.WyBlobUpload}),VF=K({react:F,tagName:"wy-button",elementClass:ne.WyButton}),ZF=K({react:F,tagName:"wy-buttons",elementClass:ne.WyButtons}),qF=K({react:F,tagName:"wy-cloud-files",elementClass:ne.WyCloudFiles,events:{onExternalBlobs:"external-blobs",onReleaseFocus:"release-focus"}}),DF=K({react:F,tagName:"wy-comment-list",elementClass:ne.WyCommentList}),UF=K({react:F,tagName:"wy-comment",elementClass:ne.WyComment,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),NF=K({react:F,tagName:"wy-comment-view",elementClass:ne.WyCommentView,events:{onVote:"vote",onTrash:"trash",onEdit:"edit"}}),BF=K({react:F,tagName:"wy-comment-edit",elementClass:ne.WyCommentEdit,events:{onEdit:"edit"}}),jF=K({react:F,tagName:"wy-comment-editor",elementClass:ne.WyCommentEditor,events:{onSubmit:"submit"}}),XF=K({react:F,tagName:"wy-comment-trashed",elementClass:ne.WyCommentTrashed,events:{onRestore:"restore"}}),FF=K({react:F,tagName:"wy-conversation",elementClass:ne.WyConversation,events:{onReleaseFocus:"release-focus"}}),HF=K({react:F,tagName:"wy-conversation-extended",elementClass:ne.WyConversationExtended,events:{onReleaseFocus:"release-focus"}}),YF=K({react:F,tagName:"wy-conversation-appbar",elementClass:ne.WyConversationAppbar,events:{onReleaseFocus:"release-focus"}}),GF=K({react:F,tagName:"wy-conversation-new",elementClass:ne.WyConversationNew,events:{onReleaseFocus:"release-focus"}}),KF=K({react:F,tagName:"wy-conversation-list",elementClass:ne.WyConversationList,events:{onConversationSelected:"conversation-selected"}}),JF=K({react:F,tagName:"wy-conversation-list-item",elementClass:ne.WyConversationListItem,events:{onRefetch:"refetch",onSelected:"selected",onStar:"star",onPin:"pin",onMark:"mark",onLeave:"leave"}}),eH=K({react:F,tagName:"wy-dropdown",elementClass:ne.WyDropdown}),tH=K({react:F,tagName:"wy-dropdown-item",elementClass:ne.WyDropdownItem}),iH=K({react:F,tagName:"wy-dropdown-option",elementClass:ne.WyDropdownOption}),nH=K({react:F,tagName:"wy-dropdown-divider",elementClass:ne.WyDropdownDivider}),sH=K({react:F,tagName:"wy-editor",elementClass:ne.WyEditor,events:{onSubmit:"submit"}}),rH=K({react:F,tagName:"wy-embed",elementClass:ne.WyEmbed,events:{onEmbedRemove:"embed-remove",onEmbedSwap:"embed-swap"}}),aH=K({react:F,tagName:"wy-empty",elementClass:ne.WyEmpty}),oH=K({react:F,tagName:"wy-file-item",elementClass:ne.WyFileItem,events:{onEditName:"edit-name",onRename:"rename",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever",onSubscribe:"subscribe"}}),lH=K({react:F,tagName:"wy-file-menu",elementClass:ne.WyFileMenu,events:{onEditName:"edit-name",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever"}}),cH=K({react:F,tagName:"wy-file-versions",elementClass:ne.WyFileVersions,events:{onFileVersionSelect:"file-version-select"}}),hH=K({react:F,tagName:"wy-files-appbar",elementClass:ne.WyFilesAppbar,events:{onReleaseFocus:"release-focus",onUploadFiles:"upload-files",onExternalBlobs:"external-blobs",onCreateFiles:"create-files",onOrder:"order",onView:"view",onShowTrashed:"show-trashed",onSubscribe:"subscribe"}}),dH=K({react:F,tagName:"wy-files-list",elementClass:ne.WyFilesList,events:{onFileOpen:"file-open",onOrder:"order",onEditName:"edit-name",onRename:"rename",onTrash:"trash",onRestore:"restore",onDeleteForever:"delete-forever",onSubscribe:"subscribe"}}),uH=K({react:F,tagName:"wy-icon",elementClass:ne.WyIcon}),pH=K({react:F,tagName:"wy-image-grid",elementClass:ne.WyImageGrid,events:{onFileOpen:"file-open"}}),fH=K({react:F,tagName:"wy-meeting-card",elementClass:ne.WyMeetingCard}),yH=K({react:F,tagName:"wy-message",elementClass:ne.WyMessage}),mH=K({react:F,tagName:"wy-messages",elementClass:ne.WyMessages,events:{onScrollToBottom:"scroll-to-bottom"}}),wH=K({react:F,tagName:"wy-message-editor",elementClass:ne.WyMessageEditor,events:{onSubmit:"submit"}}),gH=K({react:F,tagName:"wy-message-typing",elementClass:ne.WyMessageTyping}),vH=K({react:F,tagName:"wy-messenger-badge",elementClass:ne.WyMessengerBadge}),OH=K({react:F,tagName:"wy-notification-badge",elementClass:ne.WyNotificationBadge}),bH=K({react:F,tagName:"wy-notification-button-list",elementClass:ne.WyNotificationButtonList}),$H=K({react:F,tagName:"wy-notification-list",elementClass:ne.WyNotificationList}),xH=K({react:F,tagName:"wy-notification-list-item",elementClass:ne.WyNotificationListItem}),kH=K({react:F,tagName:"wy-overlay",elementClass:ne.WyOverlay,events:{onReleaseFocus:"release-focus",onClose:"close"}}),SH=K({react:F,tagName:"wy-pdf-viewer",elementClass:ne.WyPdfViewer}),PH=K({react:F,tagName:"wy-poll",elementClass:ne.WyPoll,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),CH=K({react:F,tagName:"wy-poll-option",elementClass:ne.WyPollOption,events:{onReleaseFocus:"release-focus",onVote:"vote"}}),QH=K({react:F,tagName:"wy-post",elementClass:ne.WyPost,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onRestore:"restore"}}),TH=K({react:F,tagName:"wy-post-view",elementClass:ne.WyPostView,events:{onVote:"vote",onSubscribe:"subscribe",onTrash:"trash",onEdit:"edit"}}),RH=K({react:F,tagName:"wy-post-edit",elementClass:ne.WyPostEdit,events:{onEdit:"edit"}}),MH=K({react:F,tagName:"wy-post-trashed",elementClass:ne.WyPostTrashed,events:{onRestore:"restore"}}),AH=K({react:F,tagName:"wy-presence",elementClass:ne.WyPresence}),EH=K({react:F,tagName:"wy-preview",elementClass:ne.WyPreview,events:{onReleaseFocus:"release-focus",onWyPreviewOpen:"wy-preview-open",onWyPreviewClose:"wy-preview-close"}}),zH=K({react:F,tagName:"wy-preview-item",elementClass:ne.WyPreviewItem}),_H=K({react:F,tagName:"wy-preview-embed",elementClass:ne.WyPreviewEmbed}),LH=K({react:F,tagName:"wy-preview-icon",elementClass:ne.WyPreviewIcon}),IH=K({react:F,tagName:"wy-preview-image",elementClass:ne.WyPreviewImage}),WH=K({react:F,tagName:"wy-preview-media",elementClass:ne.WyPreviewMedia}),VH=K({react:F,tagName:"wy-preview-text",elementClass:ne.WyPreviewText}),ZH=K({react:F,tagName:"wy-reactions",elementClass:ne.WyReactions,events:{onReleaseFocus:"release-focus"}}),qH=K({react:F,tagName:"wy-reaction-item",elementClass:ne.WyReactionItem}),DH=K({react:F,tagName:"wy-sheet",elementClass:ne.WySheet,events:{onReleaseFocus:"release-focus",onClose:"close"}}),UH=K({react:F,tagName:"wy-skeleton",elementClass:ne.WySkeleton}),NH=K({react:F,tagName:"wy-spinner",elementClass:ne.WySpinner}),BH=K({react:F,tagName:"wy-typing",elementClass:ne.WyTyping}),jH=K({react:F,tagName:"wy-users-search",elementClass:ne.WyUsersSearch,events:{onSubmit:"submit"}}),XH=Object.freeze(Object.defineProperty({__proto__:null,WyAttachment:_F,WyAttachmentsList:LF,WyAvatar:IF,WyBlobUpload:WF,WyButton:VF,WyButtons:ZF,WyCloudFiles:qF,WyComment:UF,WyCommentEdit:BF,WyCommentEditor:jF,WyCommentList:DF,WyCommentTrashed:XF,WyCommentView:NF,WyConversation:FF,WyConversationAppbar:YF,WyConversationExtended:HF,WyConversationList:KF,WyConversationListItem:JF,WyConversationNew:GF,WyDropdown:eH,WyDropdownDivider:nH,WyDropdownItem:tH,WyDropdownOption:iH,WyEditor:sH,WyEmbed:rH,WyEmpty:aH,WyFileItem:oH,WyFileMenu:lH,WyFileVersions:cH,WyFilesAppbar:hH,WyFilesList:dH,WyIcon:uH,WyImageGrid:pH,WyMeetingCard:fH,WyMessage:yH,WyMessageEditor:wH,WyMessageTyping:gH,WyMessages:mH,WyMessengerBadge:vH,WyNotificationBadge:OH,WyNotificationButtonList:bH,WyNotificationList:$H,WyNotificationListitem:xH,WyOverlay:kH,WyPdfViewer:SH,WyPoll:PH,WyPollOption:CH,WyPost:QH,WyPostEdit:RH,WyPostTrashed:MH,WyPostView:TH,WyPresence:AH,WyPreview:EH,WyPreviewEmbed:_H,WyPreviewIcon:LH,WyPreviewImage:IH,WyPreviewItem:zH,WyPreviewMedia:WH,WyPreviewText:VH,WyReactionItem:qH,WyReactions:ZH,WySheet:DH,WySkeleton:UH,WySpinner:NH,WyTyping:BH,WyUsersSearch:jH},Symbol.toStringTag,{value:"Module"}));exports.AppTypeGuids=wA;exports.AppTypeStrings=HD;exports.MessengerTypes=FX;exports.Weavy=Gy;exports.WeavyComponents=XH;exports.WeavyContext=rL;exports.WyChat=SF;exports.WyComments=PF;exports.WyComponent=CF;exports.WyContext=TF;exports.WyFiles=RF;exports.WyMessenger=MF;exports.WyNotificationToasts=EF;exports.WyNotifications=AF;exports.WyPosts=zF;exports.useWeavy=$F;exports.useWeavyContext=oL;
|