mastra 0.10.4-alpha.1 → 0.10.4-alpha.2
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/package.json +5 -5
- package/src/playground/dist/assets/{index-DjcalO2b.js → index-BHq2aUeu.js} +1 -1
- package/src/playground/dist/assets/{index-Mlo1jEr8.js → index-C-dPN0kw.js} +3 -3
- package/src/playground/dist/assets/{index-C6ixzzJo.js → index-otmcLOyZ.js} +1 -1
- package/src/playground/dist/index.html +1 -1
|
@@ -572,7 +572,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
572
572
|
`),style:o,startingLineNumber:a}))}function QUe(e){return"".concat(e.toString().length,".25em")}function Nle(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Ple(e,t,n){var r={display:"inline-block",minWidth:QUe(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},s=typeof e=="function"?e(t):e,i=xf(xf({},r),s);return i}function xD(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,s=e.largestLineNumber,i=e.showInlineLineNumbers,o=e.lineProps,a=o===void 0?{}:o,l=e.className,c=l===void 0?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,p=e.wrapLines,m=p===void 0?!1:p,b=m?xf({},typeof a=="function"?a(n):a):{};if(b.className=b.className?[].concat(v7(b.className.trim().split(/\s+/)),v7(c)):c,n&&i){var x=Ple(r,n,s);t.unshift(Nle(n,x))}return d&u&&(b.style=xf({display:"flex"},b.style)),{type:"element",tagName:"span",properties:b,children:t}}function Mle(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r<e.length;r++){var s=e[r];if(s.type==="text")n.push(xD({children:[s],className:v7(new Set(t))}));else if(s.children){var i=t.concat(s.properties.className);Mle(s.children,i).forEach(function(o){return n.push(o)})}}return n}function eqe(e,t,n,r,s,i,o,a,l){var c,u=Mle(e.value),d=[],p=-1,m=0;function b(F,M){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return xD({children:F,lineNumber:M,lineNumberStyle:a,largestLineNumber:o,showInlineLineNumbers:s,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:l,wrapLines:t})}function x(F,M){if(r&&M&&s){var I=Ple(a,M,o);F.unshift(Nle(M,I))}return F}function C(F,M){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?b(F,M,I):x(F,M)}for(var S=function(){var M=u[m],I=M.children[0].value,j=KUe(I);if(j){var L=I.split(`
|
|
573
573
|
`);L.forEach(function(B,z){var G=r&&d.length+i,Q={type:"text",value:"".concat(B,`
|
|
574
574
|
`)};if(z===0){var $=u.slice(p+1,m).concat(xD({children:[Q],className:M.properties.className})),J=C($,G);d.push(J)}else if(z===L.length-1){var q=u[m+1]&&u[m+1].children&&u[m+1].children[0],U={type:"text",value:"".concat(B)};if(q){var V=xD({children:[U],className:M.properties.className});u.splice(m+1,0,V)}else{var X=[U],W=C(X,G,M.properties.className);d.push(W)}}else{var K=[Q],se=C(K,G,M.properties.className);d.push(se)}}),p=m}m++};m<u.length;)S();if(p!==u.length-1){var A=u.slice(p+1,u.length);if(A&&A.length){var T=r&&d.length+i,N=C(A,T);d.push(N)}}return t?d:(c=[]).concat.apply(c,d)}function tqe(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(s,i){return _le({node:s,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(i)})})}function Fle(e){return e&&typeof e.highlightAuto<"u"}function nqe(e){var t=e.astGenerator,n=e.language,r=e.code,s=e.defaultCodeValue;if(Fle(t)){var i=GUe(t,n);return n==="text"?{value:s,language:"text"}:i?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:s}}catch{return{value:s}}}function rqe(e,t){return function(r){var s=r.language,i=r.children,o=r.style,a=o===void 0?t:o,l=r.customStyle,c=l===void 0?{}:l,u=r.codeTagProps,d=u===void 0?{className:s?"language-".concat(s):void 0,style:xf(xf({},a['code[class*="language-"]']),a['code[class*="language-'.concat(s,'"]')])}:u,p=r.useInlineStyles,m=p===void 0?!0:p,b=r.showLineNumbers,x=b===void 0?!1:b,C=r.showInlineLineNumbers,S=C===void 0?!0:C,A=r.startingLineNumber,T=A===void 0?1:A,N=r.lineNumberContainerStyle,F=r.lineNumberStyle,M=F===void 0?{}:F,I=r.wrapLines,j=r.wrapLongLines,L=j===void 0?!1:j,B=r.lineProps,z=B===void 0?{}:B,G=r.renderer,Q=r.PreTag,$=Q===void 0?"pre":Q,J=r.CodeTag,q=J===void 0?"code":J,U=r.code,V=U===void 0?(Array.isArray(i)?i[0]:i)||"":U,X=r.astGenerator,W=jUe(r,YUe);X=X||e;var K=x?Ce.createElement(JUe,{containerStyle:N,codeStyle:d.style||{},numberStyle:M,startingLineNumber:T,codeString:V}):null,se=a.hljs||a['pre[class*="language-"]']||{backgroundColor:"#fff"},H=Fle(X)?"hljs":"prismjs",te=m?Object.assign({},W,{style:Object.assign({},se,c)}):Object.assign({},W,{className:W.className?"".concat(H," ").concat(W.className):H,style:Object.assign({},c)});if(L?d.style=xf({whiteSpace:"pre-wrap"},d.style):d.style=xf({whiteSpace:"pre"},d.style),!X)return Ce.createElement($,te,K,Ce.createElement(q,d,V));(I===void 0&&G||L)&&(I=!0),G=G||tqe;var oe=[{type:"text",value:V}],le=nqe({astGenerator:X,language:s,code:V,defaultCodeValue:oe});le.language===null&&(le.value=oe);var ne=le.value.length;ne===1&&le.value[0].type==="text"&&(ne=le.value[0].value.split(`
|
|
575
|
-
`).length);var me=ne+T,we=eqe(le,I,z,x,S,T,me,M,L);return Ce.createElement($,te,Ce.createElement(q,d,!S&&K,G({rows:we,stylesheet:a,useInlineStyles:m})))}}function EW(e,t,n,r,s,i,o){try{var a=e[i](o),l=a.value}catch(c){return void n(c)}a.done?t(l):Promise.resolve(l).then(r,s)}function sqe(e){return function(){var t=this,n=arguments;return new Promise(function(r,s){var i=e.apply(t,n);function o(l){EW(i,r,s,o,a,"next",l)}function a(l){EW(i,r,s,o,a,"throw",l)}o(void 0)})}}function iqe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tle(r.key),r)}}function oqe(e,t,n){return t&&DW(e.prototype,t),n&&DW(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aqe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lqe(e,t){if(t&&(Gf(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aqe(e)}function _A(e){return _A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_A(e)}function x7(e,t){return x7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},x7(e,t)}function cqe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x7(e,t)}function w7(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */w7=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,s=Object.defineProperty||function(q,U,V){q[U]=V.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(q,U,V){return Object.defineProperty(q,U,{value:V,enumerable:!0,configurable:!0,writable:!0}),q[U]}try{c({},"")}catch{c=function(V,X,W){return V[X]=W}}function u(q,U,V,X){var W=U&&U.prototype instanceof S?U:S,K=Object.create(W.prototype),se=new $(X||[]);return s(K,"_invoke",{value:B(q,V,se)}),K}function d(q,U,V){try{return{type:"normal",arg:q.call(U,V)}}catch(X){return{type:"throw",arg:X}}}t.wrap=u;var p="suspendedStart",m="suspendedYield",b="executing",x="completed",C={};function S(){}function A(){}function T(){}var N={};c(N,o,function(){return this});var F=Object.getPrototypeOf,M=F&&F(F(J([])));M&&M!==n&&r.call(M,o)&&(N=M);var I=T.prototype=S.prototype=Object.create(N);function j(q){["next","throw","return"].forEach(function(U){c(q,U,function(V){return this._invoke(U,V)})})}function L(q,U){function V(W,K,se,H){var te=d(q[W],q,K);if(te.type!=="throw"){var oe=te.arg,le=oe.value;return le&&Gf(le)=="object"&&r.call(le,"__await")?U.resolve(le.__await).then(function(ne){V("next",ne,se,H)},function(ne){V("throw",ne,se,H)}):U.resolve(le).then(function(ne){oe.value=ne,se(oe)},function(ne){return V("throw",ne,se,H)})}H(te.arg)}var X;s(this,"_invoke",{value:function(K,se){function H(){return new U(function(te,oe){V(K,se,te,oe)})}return X=X?X.then(H,H):H()}})}function B(q,U,V){var X=p;return function(W,K){if(X===b)throw Error("Generator is already running");if(X===x){if(W==="throw")throw K;return{value:e,done:!0}}for(V.method=W,V.arg=K;;){var se=V.delegate;if(se){var H=z(se,V);if(H){if(H===C)continue;return H}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(X===p)throw X=x,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);X=b;var te=d(q,U,V);if(te.type==="normal"){if(X=V.done?x:m,te.arg===C)continue;return{value:te.arg,done:V.done}}te.type==="throw"&&(X=x,V.method="throw",V.arg=te.arg)}}}function z(q,U){var V=U.method,X=q.iterator[V];if(X===e)return U.delegate=null,V==="throw"&&q.iterator.return&&(U.method="return",U.arg=e,z(q,U),U.method==="throw")||V!=="return"&&(U.method="throw",U.arg=new TypeError("The iterator does not provide a '"+V+"' method")),C;var W=d(X,q.iterator,U.arg);if(W.type==="throw")return U.method="throw",U.arg=W.arg,U.delegate=null,C;var K=W.arg;return K?K.done?(U[q.resultName]=K.value,U.next=q.nextLoc,U.method!=="return"&&(U.method="next",U.arg=e),U.delegate=null,C):K:(U.method="throw",U.arg=new TypeError("iterator result is not an object"),U.delegate=null,C)}function G(q){var U={tryLoc:q[0]};1 in q&&(U.catchLoc=q[1]),2 in q&&(U.finallyLoc=q[2],U.afterLoc=q[3]),this.tryEntries.push(U)}function Q(q){var U=q.completion||{};U.type="normal",delete U.arg,q.completion=U}function $(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(G,this),this.reset(!0)}function J(q){if(q||q===""){var U=q[o];if(U)return U.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var V=-1,X=function W(){for(;++V<q.length;)if(r.call(q,V))return W.value=q[V],W.done=!1,W;return W.value=e,W.done=!0,W};return X.next=X}}throw new TypeError(Gf(q)+" is not iterable")}return A.prototype=T,s(I,"constructor",{value:T,configurable:!0}),s(T,"constructor",{value:A,configurable:!0}),A.displayName=c(T,l,"GeneratorFunction"),t.isGeneratorFunction=function(q){var U=typeof q=="function"&&q.constructor;return!!U&&(U===A||(U.displayName||U.name)==="GeneratorFunction")},t.mark=function(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,T):(q.__proto__=T,c(q,l,"GeneratorFunction")),q.prototype=Object.create(I),q},t.awrap=function(q){return{__await:q}},j(L.prototype),c(L.prototype,a,function(){return this}),t.AsyncIterator=L,t.async=function(q,U,V,X,W){W===void 0&&(W=Promise);var K=new L(u(q,U,V,X),W);return t.isGeneratorFunction(U)?K:K.next().then(function(se){return se.done?se.value:K.next()})},j(I),c(I,l,"Generator"),c(I,o,function(){return this}),c(I,"toString",function(){return"[object Generator]"}),t.keys=function(q){var U=Object(q),V=[];for(var X in U)V.push(X);return V.reverse(),function W(){for(;V.length;){var K=V.pop();if(K in U)return W.value=K,W.done=!1,W}return W.done=!0,W}},t.values=J,$.prototype={constructor:$,reset:function(U){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Q),!U)for(var V in this)V.charAt(0)==="t"&&r.call(this,V)&&!isNaN(+V.slice(1))&&(this[V]=e)},stop:function(){this.done=!0;var U=this.tryEntries[0].completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(U){if(this.done)throw U;var V=this;function X(oe,le){return se.type="throw",se.arg=U,V.next=oe,le&&(V.method="next",V.arg=e),!!le}for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W],se=K.completion;if(K.tryLoc==="root")return X("end");if(K.tryLoc<=this.prev){var H=r.call(K,"catchLoc"),te=r.call(K,"finallyLoc");if(H&&te){if(this.prev<K.catchLoc)return X(K.catchLoc,!0);if(this.prev<K.finallyLoc)return X(K.finallyLoc)}else if(H){if(this.prev<K.catchLoc)return X(K.catchLoc,!0)}else{if(!te)throw Error("try statement without catch or finally");if(this.prev<K.finallyLoc)return X(K.finallyLoc)}}}},abrupt:function(U,V){for(var X=this.tryEntries.length-1;X>=0;--X){var W=this.tryEntries[X];if(W.tryLoc<=this.prev&&r.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var K=W;break}}K&&(U==="break"||U==="continue")&&K.tryLoc<=V&&V<=K.finallyLoc&&(K=null);var se=K?K.completion:{};return se.type=U,se.arg=V,K?(this.method="next",this.next=K.finallyLoc,C):this.complete(se)},complete:function(U,V){if(U.type==="throw")throw U.arg;return U.type==="break"||U.type==="continue"?this.next=U.arg:U.type==="return"?(this.rval=this.arg=U.arg,this.method="return",this.next="end"):U.type==="normal"&&V&&(this.next=V),C},finish:function(U){for(var V=this.tryEntries.length-1;V>=0;--V){var X=this.tryEntries[V];if(X.finallyLoc===U)return this.complete(X.completion,X.afterLoc),Q(X),C}},catch:function(U){for(var V=this.tryEntries.length-1;V>=0;--V){var X=this.tryEntries[V];if(X.tryLoc===U){var W=X.completion;if(W.type==="throw"){var K=W.arg;Q(X)}return K}}throw Error("illegal catch attempt")},delegateYield:function(U,V,X){return this.delegate={iterator:J(U),resultName:V,nextLoc:X},this.method==="next"&&(this.arg=e),C}},t}function uqe(e,t,n){return t=_A(t),lqe(e,Ole()?Reflect.construct(t,n||[],_A(e).constructor):t.apply(e,n))}function Ole(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ole=function(){return!!e})()}const dqe=function(e){var t,n=e.loader,r=e.isLanguageRegistered,s=e.registerLanguage,i=e.languageLoaders,o=e.noAsyncLoadingLanguages,a=function(l){function c(){return iqe(this,c),uqe(this,c,arguments)}return cqe(c,l),oqe(c,[{key:"componentDidUpdate",value:function(){!c.isRegistered(this.props.language)&&i&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var d=this;c.astGeneratorPromise||c.loadAstGenerator(),c.astGenerator||c.astGeneratorPromise.then(function(){d.forceUpdate()}),!c.isRegistered(this.props.language)&&i&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var d=this,p=this.props.language;p!=="text"&&c.loadLanguage(p).then(function(){return d.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(d){return c.isSupportedLanguage(d)?d:"text"}},{key:"render",value:function(){return Ce.createElement(c.highlightInstance,ng({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:c.astGenerator}))}}],[{key:"preload",value:function(){return c.loadAstGenerator()}},{key:"loadLanguage",value:function(){var u=sqe(w7().mark(function p(m){var b;return w7().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(b=i[m],typeof b!="function"){C.next=5;break}return C.abrupt("return",b(c.registerLanguage));case 5:throw new Error("Language ".concat(m," not supported"));case 6:case"end":return C.stop()}},p)}));function d(p){return u.apply(this,arguments)}return d}()},{key:"isSupportedLanguage",value:function(d){return c.isRegistered(d)||typeof i[d]=="function"}},{key:"loadAstGenerator",value:function(){return c.astGeneratorPromise=n().then(function(d){c.astGenerator=d,s&&c.languages.forEach(function(p,m){return s(d,m,p)})}),c.astGeneratorPromise}}])}(Ce.PureComponent);return t=a,Ju(a,"astGenerator",null),Ju(a,"highlightInstance",rqe(null,{})),Ju(a,"astGeneratorPromise",null),Ju(a,"languages",new Map),Ju(a,"supportedLanguages",e.supportedLanguages||Object.keys(i||{})),Ju(a,"isRegistered",function(l){if(o)return!0;if(!s)throw new Error("Current syntax highlighter doesn't support registration of languages");return t.astGenerator?r(t.astGenerator,l):t.languages.has(l)}),Ju(a,"registerLanguage",function(l,c){if(!s)throw new Error("Current syntax highlighter doesn't support registration of languages");if(t.astGenerator)return s(t.astGenerator,l,c);t.languages.set(l,c)}),a},hqe=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],fqe=dqe({loader:function(){return aie(()=>import("./index-DjcalO2b.js").then(t=>t.i),[]).then(function(t){return t.default||t})},noAsyncLoadingLanguages:!0,supportedLanguages:hqe});var pqe=e=>t=>{const n=({components:{Pre:r,Code:s},language:i,code:o})=>f.jsx(e,{PreTag:r,CodeTag:s,...t,language:i,children:o});return n.displayName="PrismSyntaxHighlighter",n},mqe=pqe(fqe),M6={},F6={exports:{}},AW;function gqe(){return AW||(AW=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(F6)),F6.exports}var O6={},TW;function yqe(){return TW||(TW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",maxHeight:"inherit",height:"inherit",padding:"0 1em",display:"block",overflow:"auto"},'pre[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",position:"relative",margin:".5em 0",overflow:"visible",padding:"1px",backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em"},'pre[class*="language-"] > code':{position:"relative",zIndex:"1",borderLeft:"10px solid #358ccb",boxShadow:"-1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf",backgroundColor:"#fdfdfd",backgroundImage:"linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%)",backgroundSize:"3em 3em",backgroundOrigin:"content-box",backgroundAttachment:"local"},':not(pre) > code[class*="language-"]':{backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em",position:"relative",padding:".2em",borderRadius:"0.3em",color:"#c92c2c",border:"1px solid rgba(0, 0, 0, 0.1)",display:"inline",whiteSpace:"normal"},'pre[class*="language-"]:before':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"0.18em",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(-2deg)",MozTransform:"rotate(-2deg)",msTransform:"rotate(-2deg)",OTransform:"rotate(-2deg)",transform:"rotate(-2deg)"},'pre[class*="language-"]:after':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"auto",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(2deg)",MozTransform:"rotate(2deg)",msTransform:"rotate(2deg)",OTransform:"rotate(2deg)",transform:"rotate(2deg)",right:"0.75em"},comment:{color:"#7D8B99"},"block-comment":{color:"#7D8B99"},prolog:{color:"#7D8B99"},doctype:{color:"#7D8B99"},cdata:{color:"#7D8B99"},punctuation:{color:"#5F6364"},property:{color:"#c92c2c"},tag:{color:"#c92c2c"},boolean:{color:"#c92c2c"},number:{color:"#c92c2c"},"function-name":{color:"#c92c2c"},constant:{color:"#c92c2c"},symbol:{color:"#c92c2c"},deleted:{color:"#c92c2c"},selector:{color:"#2f9c0a"},"attr-name":{color:"#2f9c0a"},string:{color:"#2f9c0a"},char:{color:"#2f9c0a"},function:{color:"#2f9c0a"},builtin:{color:"#2f9c0a"},inserted:{color:"#2f9c0a"},operator:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},entity:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)",cursor:"help"},url:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},variable:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},atrule:{color:"#1990b8"},"attr-value":{color:"#1990b8"},keyword:{color:"#1990b8"},"class-name":{color:"#1990b8"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"normal"},".language-css .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},".style .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:".7"},'pre[class*="language-"].line-numbers.line-numbers':{paddingLeft:"0"},'pre[class*="language-"].line-numbers.line-numbers code':{paddingLeft:"3.8em"},'pre[class*="language-"].line-numbers.line-numbers .line-numbers-rows':{left:"0"},'pre[class*="language-"][data-line]':{paddingTop:"0",paddingBottom:"0",paddingLeft:"0"},"pre[data-line] code":{position:"relative",paddingLeft:"4em"},"pre .line-highlight":{marginTop:"0"}}}(O6)),O6}var R6={},_W;function bqe(){return _W||(_W=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"white",background:"none",textShadow:"0 -.1em .2em black",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",background:"hsl(30, 20%, 25%)",textShadow:"0 -.1em .2em black",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:".3em solid hsl(30, 20%, 40%)",borderRadius:".5em",boxShadow:"1px 1px .5em black inset"},':not(pre) > code[class*="language-"]':{background:"hsl(30, 20%, 25%)",padding:".15em .2em .05em",borderRadius:".3em",border:".13em solid hsl(30, 20%, 40%)",boxShadow:"1px 1px .3em -.1em black inset",whiteSpace:"normal"},comment:{color:"hsl(30, 20%, 50%)"},prolog:{color:"hsl(30, 20%, 50%)"},doctype:{color:"hsl(30, 20%, 50%)"},cdata:{color:"hsl(30, 20%, 50%)"},punctuation:{Opacity:".7"},namespace:{Opacity:".7"},property:{color:"hsl(350, 40%, 70%)"},tag:{color:"hsl(350, 40%, 70%)"},boolean:{color:"hsl(350, 40%, 70%)"},number:{color:"hsl(350, 40%, 70%)"},constant:{color:"hsl(350, 40%, 70%)"},symbol:{color:"hsl(350, 40%, 70%)"},selector:{color:"hsl(75, 70%, 60%)"},"attr-name":{color:"hsl(75, 70%, 60%)"},string:{color:"hsl(75, 70%, 60%)"},char:{color:"hsl(75, 70%, 60%)"},builtin:{color:"hsl(75, 70%, 60%)"},inserted:{color:"hsl(75, 70%, 60%)"},operator:{color:"hsl(40, 90%, 60%)"},entity:{color:"hsl(40, 90%, 60%)",cursor:"help"},url:{color:"hsl(40, 90%, 60%)"},".language-css .token.string":{color:"hsl(40, 90%, 60%)"},".style .token.string":{color:"hsl(40, 90%, 60%)"},variable:{color:"hsl(40, 90%, 60%)"},atrule:{color:"hsl(350, 40%, 70%)"},"attr-value":{color:"hsl(350, 40%, 70%)"},keyword:{color:"hsl(350, 40%, 70%)"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},deleted:{color:"red"}}}(R6)),R6}var I6={},NW;function vqe(){return NW||(NW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"black",color:"white",boxShadow:"-.3em 0 0 .3em black, .3em 0 0 .3em black"},'pre[class*="language-"]':{fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:".4em .8em",margin:".5em 0",overflow:"auto",background:`url('data:image/svg+xml;charset=utf-8,<svg%20version%3D"1.1"%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"100"%20height%3D"100"%20fill%3D"rgba(0%2C0%2C0%2C.2)">%0D%0A<polygon%20points%3D"0%2C50%2050%2C0%200%2C0"%20%2F>%0D%0A<polygon%20points%3D"0%2C100%2050%2C100%20100%2C50%20100%2C0"%20%2F>%0D%0A<%2Fsvg>')`,backgroundSize:"1em 1em"},':not(pre) > code[class*="language-"]':{padding:".2em",borderRadius:".3em",boxShadow:"none",whiteSpace:"normal"},comment:{color:"#aaa"},prolog:{color:"#aaa"},doctype:{color:"#aaa"},cdata:{color:"#aaa"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#0cf"},tag:{color:"#0cf"},boolean:{color:"#0cf"},number:{color:"#0cf"},constant:{color:"#0cf"},symbol:{color:"#0cf"},selector:{color:"yellow"},"attr-name":{color:"yellow"},string:{color:"yellow"},char:{color:"yellow"},builtin:{color:"yellow"},operator:{color:"yellowgreen"},entity:{color:"yellowgreen",cursor:"help"},url:{color:"yellowgreen"},".language-css .token.string":{color:"yellowgreen"},variable:{color:"yellowgreen"},inserted:{color:"yellowgreen"},atrule:{color:"deeppink"},"attr-value":{color:"deeppink"},keyword:{color:"deeppink"},regex:{color:"orange"},important:{color:"orange",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},deleted:{color:"red"},"pre.diff-highlight.diff-highlight > code .token.deleted:not(.prefix)":{backgroundColor:"rgba(255, 0, 0, .3)",display:"inline"},"pre > code.diff-highlight.diff-highlight .token.deleted:not(.prefix)":{backgroundColor:"rgba(255, 0, 0, .3)",display:"inline"},"pre.diff-highlight.diff-highlight > code .token.inserted:not(.prefix)":{backgroundColor:"rgba(0, 255, 128, .3)",display:"inline"},"pre > code.diff-highlight.diff-highlight .token.inserted:not(.prefix)":{backgroundColor:"rgba(0, 255, 128, .3)",display:"inline"}}}(I6)),I6}var j6={},PW;function xqe(){return PW||(PW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#272822",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#272822",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8292a2"},prolog:{color:"#8292a2"},doctype:{color:"#8292a2"},cdata:{color:"#8292a2"},punctuation:{color:"#f8f8f2"},namespace:{Opacity:".7"},property:{color:"#f92672"},tag:{color:"#f92672"},constant:{color:"#f92672"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},boolean:{color:"#ae81ff"},number:{color:"#ae81ff"},selector:{color:"#a6e22e"},"attr-name":{color:"#a6e22e"},string:{color:"#a6e22e"},char:{color:"#a6e22e"},builtin:{color:"#a6e22e"},inserted:{color:"#a6e22e"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#e6db74"},"attr-value":{color:"#e6db74"},function:{color:"#e6db74"},"class-name":{color:"#e6db74"},keyword:{color:"#66d9ef"},regex:{color:"#fd971f"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(j6)),j6}var L6={},MW;function wqe(){return MW||(MW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#657b83",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#657b83",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",backgroundColor:"#fdf6e3"},'pre[class*="language-"]::-moz-selection':{background:"#073642"},'pre[class*="language-"] ::-moz-selection':{background:"#073642"},'code[class*="language-"]::-moz-selection':{background:"#073642"},'code[class*="language-"] ::-moz-selection':{background:"#073642"},'pre[class*="language-"]::selection':{background:"#073642"},'pre[class*="language-"] ::selection':{background:"#073642"},'code[class*="language-"]::selection':{background:"#073642"},'code[class*="language-"] ::selection':{background:"#073642"},':not(pre) > code[class*="language-"]':{backgroundColor:"#fdf6e3",padding:".1em",borderRadius:".3em"},comment:{color:"#93a1a1"},prolog:{color:"#93a1a1"},doctype:{color:"#93a1a1"},cdata:{color:"#93a1a1"},punctuation:{color:"#586e75"},namespace:{Opacity:".7"},property:{color:"#268bd2"},tag:{color:"#268bd2"},boolean:{color:"#268bd2"},number:{color:"#268bd2"},constant:{color:"#268bd2"},symbol:{color:"#268bd2"},deleted:{color:"#268bd2"},selector:{color:"#2aa198"},"attr-name":{color:"#2aa198"},string:{color:"#2aa198"},char:{color:"#2aa198"},builtin:{color:"#2aa198"},url:{color:"#2aa198"},inserted:{color:"#2aa198"},entity:{color:"#657b83",background:"#eee8d5",cursor:"help"},atrule:{color:"#859900"},"attr-value":{color:"#859900"},keyword:{color:"#859900"},function:{color:"#b58900"},"class-name":{color:"#b58900"},regex:{color:"#cb4b16"},important:{color:"#cb4b16",fontWeight:"bold"},variable:{color:"#cb4b16"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(L6)),L6}var B6={},FW;function Sqe(){return FW||(FW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#ccc",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#ccc",background:"#2d2d2d",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},':not(pre) > code[class*="language-"]':{background:"#2d2d2d",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#999"},"block-comment":{color:"#999"},prolog:{color:"#999"},doctype:{color:"#999"},cdata:{color:"#999"},punctuation:{color:"#ccc"},tag:{color:"#e2777a"},"attr-name":{color:"#e2777a"},namespace:{color:"#e2777a"},deleted:{color:"#e2777a"},"function-name":{color:"#6196cc"},boolean:{color:"#f08d49"},number:{color:"#f08d49"},function:{color:"#f08d49"},property:{color:"#f8c555"},"class-name":{color:"#f8c555"},constant:{color:"#f8c555"},symbol:{color:"#f8c555"},selector:{color:"#cc99cd"},important:{color:"#cc99cd",fontWeight:"bold"},atrule:{color:"#cc99cd"},keyword:{color:"#cc99cd"},builtin:{color:"#cc99cd"},string:{color:"#7ec699"},char:{color:"#7ec699"},"attr-value":{color:"#7ec699"},regex:{color:"#7ec699"},variable:{color:"#7ec699"},operator:{color:"#67cdcc"},entity:{color:"#67cdcc",cursor:"help"},url:{color:"#67cdcc"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{color:"green"}}}(B6)),B6}var $6={},OW;function Cqe(){return OW||(OW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"white",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",textShadow:"0 -.1em .2em black",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",background:"hsl(0, 0%, 8%)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",textShadow:"0 -.1em .2em black",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",borderRadius:".5em",border:".3em solid hsl(0, 0%, 33%)",boxShadow:"1px 1px .5em black inset",margin:".5em 0",overflow:"auto",padding:"1em"},':not(pre) > code[class*="language-"]':{background:"hsl(0, 0%, 8%)",borderRadius:".3em",border:".13em solid hsl(0, 0%, 33%)",boxShadow:"1px 1px .3em -.1em black inset",padding:".15em .2em .05em",whiteSpace:"normal"},'pre[class*="language-"]::-moz-selection':{background:"hsla(0, 0%, 93%, 0.15)",textShadow:"none"},'pre[class*="language-"]::selection':{background:"hsla(0, 0%, 93%, 0.15)",textShadow:"none"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"]::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},comment:{color:"hsl(0, 0%, 47%)"},prolog:{color:"hsl(0, 0%, 47%)"},doctype:{color:"hsl(0, 0%, 47%)"},cdata:{color:"hsl(0, 0%, 47%)"},punctuation:{Opacity:".7"},namespace:{Opacity:".7"},tag:{color:"hsl(14, 58%, 55%)"},boolean:{color:"hsl(14, 58%, 55%)"},number:{color:"hsl(14, 58%, 55%)"},deleted:{color:"hsl(14, 58%, 55%)"},keyword:{color:"hsl(53, 89%, 79%)"},property:{color:"hsl(53, 89%, 79%)"},selector:{color:"hsl(53, 89%, 79%)"},constant:{color:"hsl(53, 89%, 79%)"},symbol:{color:"hsl(53, 89%, 79%)"},builtin:{color:"hsl(53, 89%, 79%)"},"attr-name":{color:"hsl(76, 21%, 52%)"},"attr-value":{color:"hsl(76, 21%, 52%)"},string:{color:"hsl(76, 21%, 52%)"},char:{color:"hsl(76, 21%, 52%)"},operator:{color:"hsl(76, 21%, 52%)"},entity:{color:"hsl(76, 21%, 52%)",cursor:"help"},url:{color:"hsl(76, 21%, 52%)"},".language-css .token.string":{color:"hsl(76, 21%, 52%)"},".style .token.string":{color:"hsl(76, 21%, 52%)"},variable:{color:"hsl(76, 21%, 52%)"},inserted:{color:"hsl(76, 21%, 52%)"},atrule:{color:"hsl(218, 22%, 55%)"},regex:{color:"hsl(42, 75%, 65%)"},important:{color:"hsl(42, 75%, 65%)",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},".language-markup .token.tag":{color:"hsl(33, 33%, 52%)"},".language-markup .token.attr-name":{color:"hsl(33, 33%, 52%)"},".language-markup .token.punctuation":{color:"hsl(33, 33%, 52%)"},"":{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0))",borderBottom:"1px dashed hsl(0, 0%, 33%)",borderTop:"1px dashed hsl(0, 0%, 33%)",marginTop:"0.75em",zIndex:"0"},".line-highlight.line-highlight:before":{backgroundColor:"hsl(215, 15%, 59%)",color:"hsl(24, 20%, 95%)"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"hsl(215, 15%, 59%)",color:"hsl(24, 20%, 95%)"}}}($6)),$6}var z6={},RW;function kqe(){return RW||(RW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(z6)),z6}var H6={},IW;function Eqe(){return IW||(IW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2b2b2b",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2b2b2b",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#d4d0ab"},prolog:{color:"#d4d0ab"},doctype:{color:"#d4d0ab"},cdata:{color:"#d4d0ab"},punctuation:{color:"#fefefe"},property:{color:"#ffa07a"},tag:{color:"#ffa07a"},constant:{color:"#ffa07a"},symbol:{color:"#ffa07a"},deleted:{color:"#ffa07a"},boolean:{color:"#00e0e0"},number:{color:"#00e0e0"},selector:{color:"#abe338"},"attr-name":{color:"#abe338"},string:{color:"#abe338"},char:{color:"#abe338"},builtin:{color:"#abe338"},inserted:{color:"#abe338"},operator:{color:"#00e0e0"},entity:{color:"#00e0e0",cursor:"help"},url:{color:"#00e0e0"},".language-css .token.string":{color:"#00e0e0"},".style .token.string":{color:"#00e0e0"},variable:{color:"#00e0e0"},atrule:{color:"#ffd700"},"attr-value":{color:"#ffd700"},function:{color:"#ffd700"},keyword:{color:"#00e0e0"},regex:{color:"#ffd700"},important:{color:"#ffd700",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(H6)),H6}var V6={},jW;function Dqe(){return jW||(jW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",background:"#1d1f21"},':not(pre) > code[class*="language-"]':{background:"#1d1f21",padding:".1em",borderRadius:".3em"},comment:{color:"#7C7C7C"},prolog:{color:"#7C7C7C"},doctype:{color:"#7C7C7C"},cdata:{color:"#7C7C7C"},punctuation:{color:"#c5c8c6"},".namespace":{Opacity:".7"},property:{color:"#96CBFE"},keyword:{color:"#96CBFE"},tag:{color:"#96CBFE"},"class-name":{color:"#FFFFB6",textDecoration:"underline"},boolean:{color:"#99CC99"},constant:{color:"#99CC99"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},number:{color:"#FF73FD"},selector:{color:"#A8FF60"},"attr-name":{color:"#A8FF60"},string:{color:"#A8FF60"},char:{color:"#A8FF60"},builtin:{color:"#A8FF60"},inserted:{color:"#A8FF60"},variable:{color:"#C6C5FE"},operator:{color:"#EDEDED"},entity:{color:"#FFFFB6",cursor:"help"},url:{color:"#96CBFE"},".language-css .token.string":{color:"#87C38A"},".style .token.string":{color:"#87C38A"},atrule:{color:"#F9EE98"},"attr-value":{color:"#F9EE98"},function:{color:"#DAD085"},regex:{color:"#E9C062"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(V6)),V6}var U6={},LW;function Aqe(){return LW||(LW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#f5f7ff",color:"#5e6687"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#f5f7ff",color:"#5e6687",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"]::selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#dfe2f1"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#898ea4"},prolog:{color:"#898ea4"},doctype:{color:"#898ea4"},cdata:{color:"#898ea4"},punctuation:{color:"#5e6687"},namespace:{Opacity:".7"},operator:{color:"#c76b29"},boolean:{color:"#c76b29"},number:{color:"#c76b29"},property:{color:"#c08b30"},tag:{color:"#3d8fd1"},string:{color:"#22a2c9"},selector:{color:"#6679cc"},"attr-name":{color:"#c76b29"},entity:{color:"#22a2c9",cursor:"help"},url:{color:"#22a2c9"},".language-css .token.string":{color:"#22a2c9"},".style .token.string":{color:"#22a2c9"},"attr-value":{color:"#ac9739"},keyword:{color:"#ac9739"},control:{color:"#ac9739"},directive:{color:"#ac9739"},unit:{color:"#ac9739"},statement:{color:"#22a2c9"},regex:{color:"#22a2c9"},atrule:{color:"#22a2c9"},placeholder:{color:"#3d8fd1"},variable:{color:"#3d8fd1"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #202746",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#c94922"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:"0.4em solid #c94922",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#dfe2f1"},".line-numbers .line-numbers-rows > span:before":{color:"#979db4"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(107, 115, 148, 0.2) 70%, rgba(107, 115, 148, 0))"}}}(U6)),U6}var q6={},BW;function Tqe(){return BW||(BW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#fff",textShadow:"0 1px 1px #000",fontFamily:'Menlo, Monaco, "Courier New", monospace',direction:"ltr",textAlign:"left",wordSpacing:"normal",whiteSpace:"pre",wordWrap:"normal",lineHeight:"1.4",background:"none",border:"0",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#fff",textShadow:"0 1px 1px #000",fontFamily:'Menlo, Monaco, "Courier New", monospace',direction:"ltr",textAlign:"left",wordSpacing:"normal",whiteSpace:"pre",wordWrap:"normal",lineHeight:"1.4",background:"#222",border:"0",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"15px",margin:"1em 0",overflow:"auto",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},'pre[class*="language-"] code':{float:"left",padding:"0 15px 0 0"},':not(pre) > code[class*="language-"]':{background:"#222",padding:"5px 10px",lineHeight:"1",MozBorderRadius:"3px",WebkitBorderRadius:"3px",borderRadius:"3px"},comment:{color:"#797979"},prolog:{color:"#797979"},doctype:{color:"#797979"},cdata:{color:"#797979"},selector:{color:"#fff"},operator:{color:"#fff"},punctuation:{color:"#fff"},namespace:{Opacity:".7"},tag:{color:"#ffd893"},boolean:{color:"#ffd893"},atrule:{color:"#B0C975"},"attr-value":{color:"#B0C975"},hex:{color:"#B0C975"},string:{color:"#B0C975"},property:{color:"#c27628"},entity:{color:"#c27628",cursor:"help"},url:{color:"#c27628"},"attr-name":{color:"#c27628"},keyword:{color:"#c27628"},regex:{color:"#9B71C6"},function:{color:"#e5a638"},constant:{color:"#e5a638"},variable:{color:"#fdfba8"},number:{color:"#8799B0"},important:{color:"#E45734"},deliminator:{color:"#E45734"},".line-highlight.line-highlight":{background:"rgba(255, 255, 255, .2)"},".line-highlight.line-highlight:before":{top:".3em",backgroundColor:"rgba(255, 255, 255, .3)",color:"#fff",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},".line-highlight.line-highlight[data-end]:after":{top:".3em",backgroundColor:"rgba(255, 255, 255, .3)",color:"#fff",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},".line-numbers .line-numbers-rows > span":{borderRight:"3px #d9d336 solid"}}}(q6)),q6}var W6={},$W;function _qe(){return $W||($W=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#111b27",background:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#111b27",background:"#e3eaf2",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{background:"#8da1b9"},'pre[class*="language-"] ::-moz-selection':{background:"#8da1b9"},'code[class*="language-"]::-moz-selection':{background:"#8da1b9"},'code[class*="language-"] ::-moz-selection':{background:"#8da1b9"},'pre[class*="language-"]::selection':{background:"#8da1b9"},'pre[class*="language-"] ::selection':{background:"#8da1b9"},'code[class*="language-"]::selection':{background:"#8da1b9"},'code[class*="language-"] ::selection':{background:"#8da1b9"},':not(pre) > code[class*="language-"]':{background:"#e3eaf2",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#3c526d"},prolog:{color:"#3c526d"},doctype:{color:"#3c526d"},cdata:{color:"#3c526d"},punctuation:{color:"#111b27"},"delimiter.important":{color:"#006d6d",fontWeight:"inherit"},"selector.parent":{color:"#006d6d"},tag:{color:"#006d6d"},"tag.punctuation":{color:"#006d6d"},"attr-name":{color:"#755f00"},boolean:{color:"#755f00"},"boolean.important":{color:"#755f00"},number:{color:"#755f00"},constant:{color:"#755f00"},"selector.attribute":{color:"#755f00"},"class-name":{color:"#005a8e"},key:{color:"#005a8e"},parameter:{color:"#005a8e"},property:{color:"#005a8e"},"property-access":{color:"#005a8e"},variable:{color:"#005a8e"},"attr-value":{color:"#116b00"},inserted:{color:"#116b00"},color:{color:"#116b00"},"selector.value":{color:"#116b00"},string:{color:"#116b00"},"string.url-link":{color:"#116b00"},builtin:{color:"#af00af"},"keyword-array":{color:"#af00af"},package:{color:"#af00af"},regex:{color:"#af00af"},function:{color:"#7c00aa"},"selector.class":{color:"#7c00aa"},"selector.id":{color:"#7c00aa"},"atrule.rule":{color:"#a04900"},combinator:{color:"#a04900"},keyword:{color:"#a04900"},operator:{color:"#a04900"},"pseudo-class":{color:"#a04900"},"pseudo-element":{color:"#a04900"},selector:{color:"#a04900"},unit:{color:"#a04900"},deleted:{color:"#c22f2e"},important:{color:"#c22f2e",fontWeight:"bold"},"keyword-this":{color:"#005a8e",fontWeight:"bold"},this:{color:"#005a8e",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#005a8e",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#005a8e",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#af00af"},".language-markdown .token.code":{color:"#006d6d"},".language-markdown .token.hr.punctuation":{color:"#005a8e"},".language-markdown .token.url > .token.content":{color:"#116b00"},".language-markdown .token.url-link":{color:"#755f00"},".language-markdown .token.list.punctuation":{color:"#af00af"},".language-markdown .token.table-header":{color:"#111b27"},".language-json .token.operator":{color:"#111b27"},".language-scss .token.variable":{color:"#006d6d"},"token.tab:not(:empty):before":{color:"#3c526d"},"token.cr:before":{color:"#3c526d"},"token.lf:before":{color:"#3c526d"},"token.space:before":{color:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#e3eaf2",background:"#005a8e"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#e3eaf2",background:"#005a8e"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#e3eaf2",background:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#e3eaf2",background:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#e3eaf2",background:"#3c526d"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #8da1b92f 70%, #8da1b925)"},".line-highlight.line-highlight:before":{backgroundColor:"#3c526d",color:"#e3eaf2",boxShadow:"0 1px #8da1b9"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#3c526d",color:"#e3eaf2",boxShadow:"0 1px #8da1b9"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#3c526d1f"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #8da1b97a",background:"#d0dae77a"},".line-numbers .line-numbers-rows > span:before":{color:"#3c526dda"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#7c00aa"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#7c00aa"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#7c00aa"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#c22f2e1f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#c22f2e1f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#116b001f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#116b001f"},".command-line .command-line-prompt":{borderRight:"1px solid #8da1b97a"},".command-line .command-line-prompt > span:before":{color:"#3c526dda"}}}(W6)),W6}var G6={},zW;function Nqe(){return zW||(zW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#e3eaf2",background:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#e3eaf2",background:"#111b27",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{background:"#3c526d"},'pre[class*="language-"] ::-moz-selection':{background:"#3c526d"},'code[class*="language-"]::-moz-selection':{background:"#3c526d"},'code[class*="language-"] ::-moz-selection':{background:"#3c526d"},'pre[class*="language-"]::selection':{background:"#3c526d"},'pre[class*="language-"] ::selection':{background:"#3c526d"},'code[class*="language-"]::selection':{background:"#3c526d"},'code[class*="language-"] ::selection':{background:"#3c526d"},':not(pre) > code[class*="language-"]':{background:"#111b27",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#8da1b9"},prolog:{color:"#8da1b9"},doctype:{color:"#8da1b9"},cdata:{color:"#8da1b9"},punctuation:{color:"#e3eaf2"},"delimiter.important":{color:"#66cccc",fontWeight:"inherit"},"selector.parent":{color:"#66cccc"},tag:{color:"#66cccc"},"tag.punctuation":{color:"#66cccc"},"attr-name":{color:"#e6d37a"},boolean:{color:"#e6d37a"},"boolean.important":{color:"#e6d37a"},number:{color:"#e6d37a"},constant:{color:"#e6d37a"},"selector.attribute":{color:"#e6d37a"},"class-name":{color:"#6cb8e6"},key:{color:"#6cb8e6"},parameter:{color:"#6cb8e6"},property:{color:"#6cb8e6"},"property-access":{color:"#6cb8e6"},variable:{color:"#6cb8e6"},"attr-value":{color:"#91d076"},inserted:{color:"#91d076"},color:{color:"#91d076"},"selector.value":{color:"#91d076"},string:{color:"#91d076"},"string.url-link":{color:"#91d076"},builtin:{color:"#f4adf4"},"keyword-array":{color:"#f4adf4"},package:{color:"#f4adf4"},regex:{color:"#f4adf4"},function:{color:"#c699e3"},"selector.class":{color:"#c699e3"},"selector.id":{color:"#c699e3"},"atrule.rule":{color:"#e9ae7e"},combinator:{color:"#e9ae7e"},keyword:{color:"#e9ae7e"},operator:{color:"#e9ae7e"},"pseudo-class":{color:"#e9ae7e"},"pseudo-element":{color:"#e9ae7e"},selector:{color:"#e9ae7e"},unit:{color:"#e9ae7e"},deleted:{color:"#cd6660"},important:{color:"#cd6660",fontWeight:"bold"},"keyword-this":{color:"#6cb8e6",fontWeight:"bold"},this:{color:"#6cb8e6",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#f4adf4"},".language-markdown .token.code":{color:"#66cccc"},".language-markdown .token.hr.punctuation":{color:"#6cb8e6"},".language-markdown .token.url .token.content":{color:"#91d076"},".language-markdown .token.url-link":{color:"#e6d37a"},".language-markdown .token.list.punctuation":{color:"#f4adf4"},".language-markdown .token.table-header":{color:"#e3eaf2"},".language-json .token.operator":{color:"#e3eaf2"},".language-scss .token.variable":{color:"#66cccc"},"token.tab:not(:empty):before":{color:"#8da1b9"},"token.cr:before":{color:"#8da1b9"},"token.lf:before":{color:"#8da1b9"},"token.space:before":{color:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#111b27",background:"#8da1b9"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #3c526d5f 70%, #3c526d55)"},".line-highlight.line-highlight:before":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#8da1b918"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #0b121b",background:"#0b121b7a"},".line-numbers .line-numbers-rows > span:before":{color:"#8da1b9da"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#c699e3"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},".command-line .command-line-prompt":{borderRight:"1px solid #0b121b"},".command-line .command-line-prompt > span:before":{color:"#8da1b9da"}}}(G6)),G6}var Y6={},HW;function Pqe(){return HW||(HW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",position:"relative",borderLeft:"10px solid #358ccb",boxShadow:"-1px 0 0 0 #358ccb, 0 0 0 1px #dfdfdf",backgroundColor:"#fdfdfd",backgroundImage:"linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%)",backgroundSize:"3em 3em",backgroundOrigin:"content-box",backgroundAttachment:"local",margin:".5em 0",padding:"0 1em"},'pre[class*="language-"] > code':{display:"block"},':not(pre) > code[class*="language-"]':{position:"relative",padding:".2em",borderRadius:"0.3em",color:"#c92c2c",border:"1px solid rgba(0, 0, 0, 0.1)",display:"inline",whiteSpace:"normal",backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box"},comment:{color:"#7D8B99"},"block-comment":{color:"#7D8B99"},prolog:{color:"#7D8B99"},doctype:{color:"#7D8B99"},cdata:{color:"#7D8B99"},punctuation:{color:"#5F6364"},property:{color:"#c92c2c"},tag:{color:"#c92c2c"},boolean:{color:"#c92c2c"},number:{color:"#c92c2c"},"function-name":{color:"#c92c2c"},constant:{color:"#c92c2c"},symbol:{color:"#c92c2c"},deleted:{color:"#c92c2c"},selector:{color:"#2f9c0a"},"attr-name":{color:"#2f9c0a"},string:{color:"#2f9c0a"},char:{color:"#2f9c0a"},function:{color:"#2f9c0a"},builtin:{color:"#2f9c0a"},inserted:{color:"#2f9c0a"},operator:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},entity:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)",cursor:"help"},url:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},variable:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},atrule:{color:"#1990b8"},"attr-value":{color:"#1990b8"},keyword:{color:"#1990b8"},"class-name":{color:"#1990b8"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"normal"},".language-css .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},".style .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:".7"}}}(Y6)),Y6}var X6={},VW;function Mqe(){return VW||(VW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#a9b7c6",fontFamily:"Consolas, Monaco, 'Andale Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#a9b7c6",fontFamily:"Consolas, Monaco, 'Andale Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#2b2b2b"},'pre[class*="language-"]::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"] ::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"]::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"] ::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"]::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"] ::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"]::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"] ::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},':not(pre) > code[class*="language-"]':{background:"#2b2b2b",padding:".1em",borderRadius:".3em"},comment:{color:"#808080"},prolog:{color:"#808080"},cdata:{color:"#808080"},delimiter:{color:"#cc7832"},boolean:{color:"#cc7832"},keyword:{color:"#cc7832"},selector:{color:"#cc7832"},important:{color:"#cc7832"},atrule:{color:"#cc7832"},operator:{color:"#a9b7c6"},punctuation:{color:"#a9b7c6"},"attr-name":{color:"#a9b7c6"},tag:{color:"#e8bf6a"},"tag.punctuation":{color:"#e8bf6a"},doctype:{color:"#e8bf6a"},builtin:{color:"#e8bf6a"},entity:{color:"#6897bb"},number:{color:"#6897bb"},symbol:{color:"#6897bb"},property:{color:"#9876aa"},constant:{color:"#9876aa"},variable:{color:"#9876aa"},string:{color:"#6a8759"},char:{color:"#6a8759"},"attr-value":{color:"#a5c261"},"attr-value.punctuation":{color:"#a5c261"},"attr-value.punctuation:first-child":{color:"#a9b7c6"},url:{color:"#287bde",textDecoration:"underline"},function:{color:"#ffc66d"},regex:{background:"#364135"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#294436"},deleted:{background:"#484a4a"},"code.language-css .token.property":{color:"#a9b7c6"},"code.language-css .token.property + .token.punctuation":{color:"#a9b7c6"},"code.language-css .token.id":{color:"#ffc66d"},"code.language-css .token.selector > .token.class":{color:"#ffc66d"},"code.language-css .token.selector > .token.attribute":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-class":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-element":{color:"#ffc66d"}}}(X6)),X6}var K6={},UW;function Fqe(){return UW||(UW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#282a36",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#282a36",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#6272a4"},prolog:{color:"#6272a4"},doctype:{color:"#6272a4"},cdata:{color:"#6272a4"},punctuation:{color:"#f8f8f2"},".namespace":{Opacity:".7"},property:{color:"#ff79c6"},tag:{color:"#ff79c6"},constant:{color:"#ff79c6"},symbol:{color:"#ff79c6"},deleted:{color:"#ff79c6"},boolean:{color:"#bd93f9"},number:{color:"#bd93f9"},selector:{color:"#50fa7b"},"attr-name":{color:"#50fa7b"},string:{color:"#50fa7b"},char:{color:"#50fa7b"},builtin:{color:"#50fa7b"},inserted:{color:"#50fa7b"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#f1fa8c"},"attr-value":{color:"#f1fa8c"},function:{color:"#f1fa8c"},"class-name":{color:"#f1fa8c"},keyword:{color:"#8be9fd"},regex:{color:"#ffb86c"},important:{color:"#ffb86c",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(K6)),K6}var Z6={},qW;function Oqe(){return qW||(qW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2734",color:"#9a86fd"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2734",color:"#9a86fd",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"]::selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#6a51e6"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#6c6783"},prolog:{color:"#6c6783"},doctype:{color:"#6c6783"},cdata:{color:"#6c6783"},punctuation:{color:"#6c6783"},namespace:{Opacity:".7"},tag:{color:"#e09142"},operator:{color:"#e09142"},number:{color:"#e09142"},property:{color:"#9a86fd"},function:{color:"#9a86fd"},"tag-id":{color:"#eeebff"},selector:{color:"#eeebff"},"atrule-id":{color:"#eeebff"},"code.language-javascript":{color:"#c4b9fe"},"attr-name":{color:"#c4b9fe"},"code.language-css":{color:"#ffcc99"},"code.language-scss":{color:"#ffcc99"},boolean:{color:"#ffcc99"},string:{color:"#ffcc99"},entity:{color:"#ffcc99",cursor:"help"},url:{color:"#ffcc99"},".language-css .token.string":{color:"#ffcc99"},".language-scss .token.string":{color:"#ffcc99"},".style .token.string":{color:"#ffcc99"},"attr-value":{color:"#ffcc99"},keyword:{color:"#ffcc99"},control:{color:"#ffcc99"},directive:{color:"#ffcc99"},unit:{color:"#ffcc99"},statement:{color:"#ffcc99"},regex:{color:"#ffcc99"},atrule:{color:"#ffcc99"},placeholder:{color:"#ffcc99"},variable:{color:"#ffcc99"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #eeebff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#c4b9fe"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #8a75f5",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#2c2937"},".line-numbers .line-numbers-rows > span:before":{color:"#3c3949"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(224, 145, 66, 0.2) 70%, rgba(224, 145, 66, 0))"}}}(Z6)),Z6}var J6={},WW;function Rqe(){return WW||(WW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#322d29",color:"#88786d"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#322d29",color:"#88786d",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"]::selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#6f5849"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#6a5f58"},prolog:{color:"#6a5f58"},doctype:{color:"#6a5f58"},cdata:{color:"#6a5f58"},punctuation:{color:"#6a5f58"},namespace:{Opacity:".7"},tag:{color:"#bfa05a"},operator:{color:"#bfa05a"},number:{color:"#bfa05a"},property:{color:"#88786d"},function:{color:"#88786d"},"tag-id":{color:"#fff3eb"},selector:{color:"#fff3eb"},"atrule-id":{color:"#fff3eb"},"code.language-javascript":{color:"#a48774"},"attr-name":{color:"#a48774"},"code.language-css":{color:"#fcc440"},"code.language-scss":{color:"#fcc440"},boolean:{color:"#fcc440"},string:{color:"#fcc440"},entity:{color:"#fcc440",cursor:"help"},url:{color:"#fcc440"},".language-css .token.string":{color:"#fcc440"},".language-scss .token.string":{color:"#fcc440"},".style .token.string":{color:"#fcc440"},"attr-value":{color:"#fcc440"},keyword:{color:"#fcc440"},control:{color:"#fcc440"},directive:{color:"#fcc440"},unit:{color:"#fcc440"},statement:{color:"#fcc440"},regex:{color:"#fcc440"},atrule:{color:"#fcc440"},placeholder:{color:"#fcc440"},variable:{color:"#fcc440"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #fff3eb",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#a48774"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #816d5f",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#35302b"},".line-numbers .line-numbers-rows > span:before":{color:"#46403d"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(191, 160, 90, 0.2) 70%, rgba(191, 160, 90, 0))"}}}(J6)),J6}var Q6={},GW;function Iqe(){return GW||(GW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2d2a",color:"#687d68"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2d2a",color:"#687d68",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#435643"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#435643"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#435643"},'code[class*="language-"]::selection':{textShadow:"none",background:"#435643"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#435643"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#535f53"},prolog:{color:"#535f53"},doctype:{color:"#535f53"},cdata:{color:"#535f53"},punctuation:{color:"#535f53"},namespace:{Opacity:".7"},tag:{color:"#a2b34d"},operator:{color:"#a2b34d"},number:{color:"#a2b34d"},property:{color:"#687d68"},function:{color:"#687d68"},"tag-id":{color:"#f0fff0"},selector:{color:"#f0fff0"},"atrule-id":{color:"#f0fff0"},"code.language-javascript":{color:"#b3d6b3"},"attr-name":{color:"#b3d6b3"},"code.language-css":{color:"#e5fb79"},"code.language-scss":{color:"#e5fb79"},boolean:{color:"#e5fb79"},string:{color:"#e5fb79"},entity:{color:"#e5fb79",cursor:"help"},url:{color:"#e5fb79"},".language-css .token.string":{color:"#e5fb79"},".language-scss .token.string":{color:"#e5fb79"},".style .token.string":{color:"#e5fb79"},"attr-value":{color:"#e5fb79"},keyword:{color:"#e5fb79"},control:{color:"#e5fb79"},directive:{color:"#e5fb79"},unit:{color:"#e5fb79"},statement:{color:"#e5fb79"},regex:{color:"#e5fb79"},atrule:{color:"#e5fb79"},placeholder:{color:"#e5fb79"},variable:{color:"#e5fb79"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #f0fff0",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#b3d6b3"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #5c705c",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#2c302c"},".line-numbers .line-numbers-rows > span:before":{color:"#3b423b"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(162, 179, 77, 0.2) 70%, rgba(162, 179, 77, 0))"}}}(Q6)),Q6}var eN={},YW;function jqe(){return YW||(YW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#b6ad9a"},prolog:{color:"#b6ad9a"},doctype:{color:"#b6ad9a"},cdata:{color:"#b6ad9a"},punctuation:{color:"#b6ad9a"},namespace:{Opacity:".7"},tag:{color:"#063289"},operator:{color:"#063289"},number:{color:"#063289"},property:{color:"#b29762"},function:{color:"#b29762"},"tag-id":{color:"#2d2006"},selector:{color:"#2d2006"},"atrule-id":{color:"#2d2006"},"code.language-javascript":{color:"#896724"},"attr-name":{color:"#896724"},"code.language-css":{color:"#728fcb"},"code.language-scss":{color:"#728fcb"},boolean:{color:"#728fcb"},string:{color:"#728fcb"},entity:{color:"#728fcb",cursor:"help"},url:{color:"#728fcb"},".language-css .token.string":{color:"#728fcb"},".language-scss .token.string":{color:"#728fcb"},".style .token.string":{color:"#728fcb"},"attr-value":{color:"#728fcb"},keyword:{color:"#728fcb"},control:{color:"#728fcb"},directive:{color:"#728fcb"},unit:{color:"#728fcb"},statement:{color:"#728fcb"},regex:{color:"#728fcb"},atrule:{color:"#728fcb"},placeholder:{color:"#93abdc"},variable:{color:"#93abdc"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #2d2006",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#896724"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #896724",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#ece8de"},".line-numbers .line-numbers-rows > span:before":{color:"#cdc4b1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(45, 32, 6, 0.2) 70%, rgba(45, 32, 6, 0))"}}}(eN)),eN}var tN={},XW;function Lqe(){return XW||(XW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#1d262f",color:"#57718e"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#1d262f",color:"#57718e",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"]::selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#004a9e"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#4a5f78"},prolog:{color:"#4a5f78"},doctype:{color:"#4a5f78"},cdata:{color:"#4a5f78"},punctuation:{color:"#4a5f78"},namespace:{Opacity:".7"},tag:{color:"#0aa370"},operator:{color:"#0aa370"},number:{color:"#0aa370"},property:{color:"#57718e"},function:{color:"#57718e"},"tag-id":{color:"#ebf4ff"},selector:{color:"#ebf4ff"},"atrule-id":{color:"#ebf4ff"},"code.language-javascript":{color:"#7eb6f6"},"attr-name":{color:"#7eb6f6"},"code.language-css":{color:"#47ebb4"},"code.language-scss":{color:"#47ebb4"},boolean:{color:"#47ebb4"},string:{color:"#47ebb4"},entity:{color:"#47ebb4",cursor:"help"},url:{color:"#47ebb4"},".language-css .token.string":{color:"#47ebb4"},".language-scss .token.string":{color:"#47ebb4"},".style .token.string":{color:"#47ebb4"},"attr-value":{color:"#47ebb4"},keyword:{color:"#47ebb4"},control:{color:"#47ebb4"},directive:{color:"#47ebb4"},unit:{color:"#47ebb4"},statement:{color:"#47ebb4"},regex:{color:"#47ebb4"},atrule:{color:"#47ebb4"},placeholder:{color:"#47ebb4"},variable:{color:"#47ebb4"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #ebf4ff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#7eb6f6"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #34659d",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#1f2932"},".line-numbers .line-numbers-rows > span:before":{color:"#2c3847"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(10, 163, 112, 0.2) 70%, rgba(10, 163, 112, 0))"}}}(tN)),tN}var nN={},KW;function Bqe(){return KW||(KW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#24242e",color:"#767693"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#24242e",color:"#767693",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"]::selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#5151e6"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#5b5b76"},prolog:{color:"#5b5b76"},doctype:{color:"#5b5b76"},cdata:{color:"#5b5b76"},punctuation:{color:"#5b5b76"},namespace:{Opacity:".7"},tag:{color:"#dd672c"},operator:{color:"#dd672c"},number:{color:"#dd672c"},property:{color:"#767693"},function:{color:"#767693"},"tag-id":{color:"#ebebff"},selector:{color:"#ebebff"},"atrule-id":{color:"#ebebff"},"code.language-javascript":{color:"#aaaaca"},"attr-name":{color:"#aaaaca"},"code.language-css":{color:"#fe8c52"},"code.language-scss":{color:"#fe8c52"},boolean:{color:"#fe8c52"},string:{color:"#fe8c52"},entity:{color:"#fe8c52",cursor:"help"},url:{color:"#fe8c52"},".language-css .token.string":{color:"#fe8c52"},".language-scss .token.string":{color:"#fe8c52"},".style .token.string":{color:"#fe8c52"},"attr-value":{color:"#fe8c52"},keyword:{color:"#fe8c52"},control:{color:"#fe8c52"},directive:{color:"#fe8c52"},unit:{color:"#fe8c52"},statement:{color:"#fe8c52"},regex:{color:"#fe8c52"},atrule:{color:"#fe8c52"},placeholder:{color:"#fe8c52"},variable:{color:"#fe8c52"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #ebebff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#aaaaca"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #7676f4",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#262631"},".line-numbers .line-numbers-rows > span:before":{color:"#393949"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(221, 103, 44, 0.2) 70%, rgba(221, 103, 44, 0))"}}}(nN)),nN}var rN={},ZW;function $qe(){return ZW||(ZW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:"1px solid #dddddd",backgroundColor:"white"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{background:"#b3d4fc"},'pre[class*="language-"]::selection':{background:"#b3d4fc"},'pre[class*="language-"] ::selection':{background:"#b3d4fc"},'code[class*="language-"]::selection':{background:"#b3d4fc"},'code[class*="language-"] ::selection':{background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{padding:".2em",paddingTop:"1px",paddingBottom:"1px",background:"#f8f8f8",border:"1px solid #dddddd"},comment:{color:"#999988",fontStyle:"italic"},prolog:{color:"#999988",fontStyle:"italic"},doctype:{color:"#999988",fontStyle:"italic"},cdata:{color:"#999988",fontStyle:"italic"},namespace:{Opacity:".7"},string:{color:"#e3116c"},"attr-value":{color:"#e3116c"},punctuation:{color:"#393A34"},operator:{color:"#393A34"},entity:{color:"#36acaa"},url:{color:"#36acaa"},symbol:{color:"#36acaa"},number:{color:"#36acaa"},boolean:{color:"#36acaa"},variable:{color:"#36acaa"},constant:{color:"#36acaa"},property:{color:"#36acaa"},regex:{color:"#36acaa"},inserted:{color:"#36acaa"},atrule:{color:"#00a4db"},keyword:{color:"#00a4db"},"attr-name":{color:"#00a4db"},".language-autohotkey .token.selector":{color:"#00a4db"},function:{color:"#9a050f",fontWeight:"bold"},deleted:{color:"#9a050f"},".language-autohotkey .token.tag":{color:"#9a050f"},tag:{color:"#00009f"},selector:{color:"#00009f"},".language-autohotkey .token.keyword":{color:"#00009f"},important:{fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(rN)),rN}var sN={},JW;function zqe(){return JW||(JW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#ebdbb2",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#ebdbb2",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#1d2021"},'pre[class*="language-"]::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"] ::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"]::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"] ::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"]::selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"] ::selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"]::selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"] ::selection':{color:"#fbf1c7",background:"#7c6f64"},':not(pre) > code[class*="language-"]':{background:"#1d2021",padding:"0.1em",borderRadius:"0.3em"},comment:{color:"#a89984"},prolog:{color:"#a89984"},cdata:{color:"#a89984"},delimiter:{color:"#fb4934"},boolean:{color:"#fb4934"},keyword:{color:"#fb4934"},selector:{color:"#fb4934"},important:{color:"#fb4934"},atrule:{color:"#fb4934"},operator:{color:"#a89984"},punctuation:{color:"#a89984"},"attr-name":{color:"#a89984"},tag:{color:"#fabd2f"},"tag.punctuation":{color:"#fabd2f"},doctype:{color:"#fabd2f"},builtin:{color:"#fabd2f"},entity:{color:"#d3869b"},number:{color:"#d3869b"},symbol:{color:"#d3869b"},property:{color:"#fb4934"},constant:{color:"#fb4934"},variable:{color:"#fb4934"},string:{color:"#b8bb26"},char:{color:"#b8bb26"},"attr-value":{color:"#a89984"},"attr-value.punctuation":{color:"#a89984"},url:{color:"#b8bb26",textDecoration:"underline"},function:{color:"#fabd2f"},regex:{background:"#b8bb26"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#a89984"},deleted:{background:"#fb4934"}}}(sN)),sN}var iN={},QW;function Hqe(){return QW||(QW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#3c3836",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#3c3836",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#f9f5d7"},'pre[class*="language-"]::-moz-selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"] ::-moz-selection':{color:"#282828",background:"#a89984"},'code[class*="language-"]::-moz-selection':{color:"#282828",background:"#a89984"},'code[class*="language-"] ::-moz-selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"]::selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"] ::selection':{color:"#282828",background:"#a89984"},'code[class*="language-"]::selection':{color:"#282828",background:"#a89984"},'code[class*="language-"] ::selection':{color:"#282828",background:"#a89984"},':not(pre) > code[class*="language-"]':{background:"#f9f5d7",padding:"0.1em",borderRadius:"0.3em"},comment:{color:"#7c6f64"},prolog:{color:"#7c6f64"},cdata:{color:"#7c6f64"},delimiter:{color:"#9d0006"},boolean:{color:"#9d0006"},keyword:{color:"#9d0006"},selector:{color:"#9d0006"},important:{color:"#9d0006"},atrule:{color:"#9d0006"},operator:{color:"#7c6f64"},punctuation:{color:"#7c6f64"},"attr-name":{color:"#7c6f64"},tag:{color:"#b57614"},"tag.punctuation":{color:"#b57614"},doctype:{color:"#b57614"},builtin:{color:"#b57614"},entity:{color:"#8f3f71"},number:{color:"#8f3f71"},symbol:{color:"#8f3f71"},property:{color:"#9d0006"},constant:{color:"#9d0006"},variable:{color:"#9d0006"},string:{color:"#797403"},char:{color:"#797403"},"attr-value":{color:"#7c6f64"},"attr-value.punctuation":{color:"#7c6f64"},url:{color:"#797403",textDecoration:"underline"},function:{color:"#b57614"},regex:{background:"#797403"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#7c6f64"},deleted:{background:"#9d0006"}}}(iN)),iN}var oN={},eG;function Vqe(){return eG||(eG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={"code[class*='language-']":{color:"#d6e7ff",background:"#030314",textShadow:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',fontSize:"1em",lineHeight:"1.5",letterSpacing:".2px",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",textAlign:"left",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},"pre[class*='language-']":{color:"#d6e7ff",background:"#030314",textShadow:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',fontSize:"1em",lineHeight:"1.5",letterSpacing:".2px",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",textAlign:"left",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",border:"1px solid #2a4555",borderRadius:"5px",padding:"1.5em 1em",margin:"1em 0",overflow:"auto"},"pre[class*='language-']::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-'] ::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-']::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-'] ::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-']::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-'] ::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-']::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-'] ::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},":not(pre) > code[class*='language-']":{color:"#f0f6f6",background:"#2a4555",padding:"0.2em 0.3em",borderRadius:"0.2em",boxDecorationBreak:"clone"},comment:{color:"#446e69"},prolog:{color:"#446e69"},doctype:{color:"#446e69"},cdata:{color:"#446e69"},punctuation:{color:"#d6b007"},property:{color:"#d6e7ff"},tag:{color:"#d6e7ff"},boolean:{color:"#d6e7ff"},number:{color:"#d6e7ff"},constant:{color:"#d6e7ff"},symbol:{color:"#d6e7ff"},deleted:{color:"#d6e7ff"},selector:{color:"#e60067"},"attr-name":{color:"#e60067"},builtin:{color:"#e60067"},inserted:{color:"#e60067"},string:{color:"#49c6ec"},char:{color:"#49c6ec"},operator:{color:"#ec8e01",background:"transparent"},entity:{color:"#ec8e01",background:"transparent"},url:{color:"#ec8e01",background:"transparent"},".language-css .token.string":{color:"#ec8e01",background:"transparent"},".style .token.string":{color:"#ec8e01",background:"transparent"},atrule:{color:"#0fe468"},"attr-value":{color:"#0fe468"},keyword:{color:"#0fe468"},function:{color:"#78f3e9"},"class-name":{color:"#78f3e9"},regex:{color:"#d6e7ff"},important:{color:"#d6e7ff"},variable:{color:"#d6e7ff"}}}(oN)),oN}var aN={},tG;function Uqe(){return tG||(tG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'"Fira Mono", Menlo, Monaco, "Lucida Console", "Courier New", Courier, monospace',fontSize:"16px",lineHeight:"1.375",direction:"ltr",textAlign:"left",wordSpacing:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",background:"#322931",color:"#b9b5b8"},'pre[class*="language-"]':{fontFamily:'"Fira Mono", Menlo, Monaco, "Lucida Console", "Courier New", Courier, monospace',fontSize:"16px",lineHeight:"1.375",direction:"ltr",textAlign:"left",wordSpacing:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",background:"#322931",color:"#b9b5b8",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#797379"},prolog:{color:"#797379"},doctype:{color:"#797379"},cdata:{color:"#797379"},punctuation:{color:"#b9b5b8"},".namespace":{Opacity:".7"},null:{color:"#fd8b19"},operator:{color:"#fd8b19"},boolean:{color:"#fd8b19"},number:{color:"#fd8b19"},property:{color:"#fdcc59"},tag:{color:"#1290bf"},string:{color:"#149b93"},selector:{color:"#c85e7c"},"attr-name":{color:"#fd8b19"},entity:{color:"#149b93",cursor:"help"},url:{color:"#149b93"},".language-css .token.string":{color:"#149b93"},".style .token.string":{color:"#149b93"},"attr-value":{color:"#8fc13e"},keyword:{color:"#8fc13e"},control:{color:"#8fc13e"},directive:{color:"#8fc13e"},unit:{color:"#8fc13e"},statement:{color:"#149b93"},regex:{color:"#149b93"},atrule:{color:"#149b93"},placeholder:{color:"#1290bf"},variable:{color:"#1290bf"},important:{color:"#dd464c",fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid red",OutlineOffset:".4em"}}}(aN)),aN}var lN={},nG;function qqe(){return nG||(nG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#263E52",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#263E52",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#5c98cd"},prolog:{color:"#5c98cd"},doctype:{color:"#5c98cd"},cdata:{color:"#5c98cd"},punctuation:{color:"#f8f8f2"},".namespace":{Opacity:".7"},property:{color:"#F05E5D"},tag:{color:"#F05E5D"},constant:{color:"#F05E5D"},symbol:{color:"#F05E5D"},deleted:{color:"#F05E5D"},boolean:{color:"#BC94F9"},number:{color:"#BC94F9"},selector:{color:"#FCFCD6"},"attr-name":{color:"#FCFCD6"},string:{color:"#FCFCD6"},char:{color:"#FCFCD6"},builtin:{color:"#FCFCD6"},inserted:{color:"#FCFCD6"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#66D8EF"},"attr-value":{color:"#66D8EF"},function:{color:"#66D8EF"},"class-name":{color:"#66D8EF"},keyword:{color:"#6EB26E"},regex:{color:"#F05E5D"},important:{color:"#F05E5D",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(lN)),lN}var cN={},rG;function Wqe(){return rG||(rG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#eee",background:"#2f2f2f",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#eee",background:"#2f2f2f",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#363636"},'pre[class*="language-"]::-moz-selection':{background:"#363636"},'code[class*="language-"] ::-moz-selection':{background:"#363636"},'pre[class*="language-"] ::-moz-selection':{background:"#363636"},'code[class*="language-"]::selection':{background:"#363636"},'pre[class*="language-"]::selection':{background:"#363636"},'code[class*="language-"] ::selection':{background:"#363636"},'pre[class*="language-"] ::selection':{background:"#363636"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#fd9170"},".language-sass > code":{color:"#fd9170"},".language-scss > code":{color:"#fd9170"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#c792ea"},"attr-name":{color:"#ffcb6b"},"attr-value":{color:"#a5e844"},attribute:{color:"#a5e844"},boolean:{color:"#c792ea"},builtin:{color:"#ffcb6b"},cdata:{color:"#80cbc4"},char:{color:"#80cbc4"},class:{color:"#ffcb6b"},"class-name":{color:"#f2ff00"},comment:{color:"#616161"},constant:{color:"#c792ea"},deleted:{color:"#ff6666"},doctype:{color:"#616161"},entity:{color:"#ff6666"},function:{color:"#c792ea"},hexcode:{color:"#f2ff00"},id:{color:"#c792ea",fontWeight:"bold"},important:{color:"#c792ea",fontWeight:"bold"},inserted:{color:"#80cbc4"},keyword:{color:"#c792ea"},number:{color:"#fd9170"},operator:{color:"#89ddff"},prolog:{color:"#616161"},property:{color:"#80cbc4"},"pseudo-class":{color:"#a5e844"},"pseudo-element":{color:"#a5e844"},punctuation:{color:"#89ddff"},regex:{color:"#f2ff00"},selector:{color:"#ff6666"},string:{color:"#a5e844"},symbol:{color:"#c792ea"},tag:{color:"#ff6666"},unit:{color:"#fd9170"},url:{color:"#ff6666"},variable:{color:"#ff6666"}}}(cN)),cN}var uN={},sG;function Gqe(){return sG||(sG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#f76d47"},".language-sass > code":{color:"#f76d47"},".language-scss > code":{color:"#f76d47"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#7c4dff"},"attr-name":{color:"#39adb5"},"attr-value":{color:"#f6a434"},attribute:{color:"#f6a434"},boolean:{color:"#7c4dff"},builtin:{color:"#39adb5"},cdata:{color:"#39adb5"},char:{color:"#39adb5"},class:{color:"#39adb5"},"class-name":{color:"#6182b8"},comment:{color:"#aabfc9"},constant:{color:"#7c4dff"},deleted:{color:"#e53935"},doctype:{color:"#aabfc9"},entity:{color:"#e53935"},function:{color:"#7c4dff"},hexcode:{color:"#f76d47"},id:{color:"#7c4dff",fontWeight:"bold"},important:{color:"#7c4dff",fontWeight:"bold"},inserted:{color:"#39adb5"},keyword:{color:"#7c4dff"},number:{color:"#f76d47"},operator:{color:"#39adb5"},prolog:{color:"#aabfc9"},property:{color:"#39adb5"},"pseudo-class":{color:"#f6a434"},"pseudo-element":{color:"#f6a434"},punctuation:{color:"#39adb5"},regex:{color:"#6182b8"},selector:{color:"#e53935"},string:{color:"#f6a434"},symbol:{color:"#7c4dff"},tag:{color:"#e53935"},unit:{color:"#f76d47"},url:{color:"#e53935"},variable:{color:"#e53935"}}}(uN)),uN}var dN={},iG;function Yqe(){return iG||(iG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#c3cee3",background:"#263238",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#c3cee3",background:"#263238",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#363636"},'pre[class*="language-"]::-moz-selection':{background:"#363636"},'code[class*="language-"] ::-moz-selection':{background:"#363636"},'pre[class*="language-"] ::-moz-selection':{background:"#363636"},'code[class*="language-"]::selection':{background:"#363636"},'pre[class*="language-"]::selection':{background:"#363636"},'code[class*="language-"] ::selection':{background:"#363636"},'pre[class*="language-"] ::selection':{background:"#363636"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#fd9170"},".language-sass > code":{color:"#fd9170"},".language-scss > code":{color:"#fd9170"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#c792ea"},"attr-name":{color:"#ffcb6b"},"attr-value":{color:"#c3e88d"},attribute:{color:"#c3e88d"},boolean:{color:"#c792ea"},builtin:{color:"#ffcb6b"},cdata:{color:"#80cbc4"},char:{color:"#80cbc4"},class:{color:"#ffcb6b"},"class-name":{color:"#f2ff00"},color:{color:"#f2ff00"},comment:{color:"#546e7a"},constant:{color:"#c792ea"},deleted:{color:"#f07178"},doctype:{color:"#546e7a"},entity:{color:"#f07178"},function:{color:"#c792ea"},hexcode:{color:"#f2ff00"},id:{color:"#c792ea",fontWeight:"bold"},important:{color:"#c792ea",fontWeight:"bold"},inserted:{color:"#80cbc4"},keyword:{color:"#c792ea",fontStyle:"italic"},number:{color:"#fd9170"},operator:{color:"#89ddff"},prolog:{color:"#546e7a"},property:{color:"#80cbc4"},"pseudo-class":{color:"#c3e88d"},"pseudo-element":{color:"#c3e88d"},punctuation:{color:"#89ddff"},regex:{color:"#f2ff00"},selector:{color:"#f07178"},string:{color:"#c3e88d"},symbol:{color:"#c792ea"},tag:{color:"#f07178"},unit:{color:"#f07178"},url:{color:"#fd9170"},variable:{color:"#f07178"}}}(dN)),dN}var hN={},oG;function Xqe(){return oG||(oG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#d6deeb",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#011627"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},':not(pre) > code[class*="language-"]':{color:"white",background:"#011627",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"rgb(99, 119, 119)",fontStyle:"italic"},prolog:{color:"rgb(99, 119, 119)",fontStyle:"italic"},cdata:{color:"rgb(99, 119, 119)",fontStyle:"italic"},punctuation:{color:"rgb(199, 146, 234)"},".namespace":{color:"rgb(178, 204, 214)"},deleted:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"},symbol:{color:"rgb(128, 203, 196)"},property:{color:"rgb(128, 203, 196)"},tag:{color:"rgb(127, 219, 202)"},operator:{color:"rgb(127, 219, 202)"},keyword:{color:"rgb(127, 219, 202)"},boolean:{color:"rgb(255, 88, 116)"},number:{color:"rgb(247, 140, 108)"},constant:{color:"rgb(130, 170, 255)"},function:{color:"rgb(130, 170, 255)"},builtin:{color:"rgb(130, 170, 255)"},char:{color:"rgb(130, 170, 255)"},selector:{color:"rgb(199, 146, 234)",fontStyle:"italic"},doctype:{color:"rgb(199, 146, 234)",fontStyle:"italic"},"attr-name":{color:"rgb(173, 219, 103)",fontStyle:"italic"},inserted:{color:"rgb(173, 219, 103)",fontStyle:"italic"},string:{color:"rgb(173, 219, 103)"},url:{color:"rgb(173, 219, 103)"},entity:{color:"rgb(173, 219, 103)"},".language-css .token.string":{color:"rgb(173, 219, 103)"},".style .token.string":{color:"rgb(173, 219, 103)"},"class-name":{color:"rgb(255, 203, 139)"},atrule:{color:"rgb(255, 203, 139)"},"attr-value":{color:"rgb(255, 203, 139)"},regex:{color:"rgb(214, 222, 235)"},important:{color:"rgb(214, 222, 235)",fontWeight:"bold"},variable:{color:"rgb(214, 222, 235)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(hN)),hN}var fN={},aG;function Kqe(){return aG||(aG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2E3440",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2E3440",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#636f88"},prolog:{color:"#636f88"},doctype:{color:"#636f88"},cdata:{color:"#636f88"},punctuation:{color:"#81A1C1"},".namespace":{Opacity:".7"},property:{color:"#81A1C1"},tag:{color:"#81A1C1"},constant:{color:"#81A1C1"},symbol:{color:"#81A1C1"},deleted:{color:"#81A1C1"},number:{color:"#B48EAD"},boolean:{color:"#81A1C1"},selector:{color:"#A3BE8C"},"attr-name":{color:"#A3BE8C"},string:{color:"#A3BE8C"},char:{color:"#A3BE8C"},builtin:{color:"#A3BE8C"},inserted:{color:"#A3BE8C"},operator:{color:"#81A1C1"},entity:{color:"#81A1C1",cursor:"help"},url:{color:"#81A1C1"},".language-css .token.string":{color:"#81A1C1"},".style .token.string":{color:"#81A1C1"},variable:{color:"#81A1C1"},atrule:{color:"#88C0D0"},"attr-value":{color:"#88C0D0"},function:{color:"#88C0D0"},"class-name":{color:"#88C0D0"},keyword:{color:"#81A1C1"},regex:{color:"#EBCB8B"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(fN)),fN}var pN={},lG;function Zqe(){return lG||(lG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}}}(pN)),pN}var mN={},cG;function Jqe(){return cG||(cG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}}}(mN)),mN}var gN={},uG;function Qqe(){return uG||(uG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"15px",lineHeight:"1.5",color:"#dccf8f",textShadow:"0"},'pre[class*="language-"]':{MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"15px",lineHeight:"1.5",color:"#DCCF8F",textShadow:"0",borderRadius:"5px",border:"1px solid #000",background:"#181914 url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAMAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQACQYGBgcGCQcHCQ0IBwgNDwsJCQsPEQ4ODw4OERENDg4ODg0RERQUFhQUERoaHBwaGiYmJiYmKysrKysrKysrKwEJCAgJCgkMCgoMDwwODA8TDg4ODhMVDg4PDg4VGhMRERERExoXGhYWFhoXHR0aGh0dJCQjJCQrKysrKysrKysr/8AAEQgAjACMAwEiAAIRAQMRAf/EAF4AAQEBAAAAAAAAAAAAAAAAAAABBwEBAQAAAAAAAAAAAAAAAAAAAAIQAAEDAwIHAQEAAAAAAAAAAADwAREhYaExkUFRcYGxwdHh8REBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AyGFEjHaBS2fDDs2zkhKmBKktb7km+ZwwCnXPkLVmCTMItj6AXFxRS465/BTnkAJvkLkJe+7AKKoi2AtRS2zuAWsCb5GOlBN8gKfmuGHZ8MFqIth3ALmFoFwbwKWyAlTAp17uKqBvgBD8sM4fTjhvAhkzhaRkBMKBrfs7jGPIpzy7gFrAqnC0C0gB0EWwBDW2cBVQwm+QtPpa3wBO3sVvszCnLAhkzgL5/RLf13cLQd8/AGlu0Cb5HTx9KuAEieGJEdcehS3eRTp2ATdt3CpIm+QtZwAhROXFeb7swp/ahaM3kBE/jSIUBc/AWrgBN8uNFAl+b7sAXFxFn2YLUU5Ns7gFX8C4ib+hN8gFWXwK3bZglxEJm+gKdciLPsFV/TClsgJUwKJ5FVA7tvIFrfZhVfGJDcsCKaYgAqv6YRbE+RWOWBtu7+AL3yRalXLyKqAIIfk+zARbDgFyEsncYwJvlgFRW+GEWntIi2P0BooyFxcNr8Ep3+ANLbMO+QyhvbiqdgC0kVvgUUiLYgBS2QtPbiVI1/sgOmG9uO+Y8DW+7jS2zAOnj6O2BndwuIAUtkdRN8gFoK3wwXMQyZwHVbClsuNLd4E3yAUR6FVDBR+BafQGt93LVMxJTv8ABts4CVLhcfYWsCb5kC9/BHdU8CLYFY5bMAd+eX9MGthhpbA1vu4B7+RKkaW2Yq4AQtVBBFsAJU/AuIXBhN8gGWnstefhiZyWvLAEnbYS1uzSFP6Jvn4Baxx70JKkQojLib5AVTey1jjgkKJGO0AKWyOm7N7cSpgSpAdPH0Tfd/gp1z5C1ZgKqN9J2wFxcUUuAFLZAm+QC0Fb4YUVRFsAOvj4KW2dwtYE3yAWk/wS/PLMKfmuGHZ8MAXF/Ja32Yi5haAKWz4Ydm2cSpgU693Atb7km+Zwwh+WGcPpxw3gAkzCLY+iYUDW/Z3Adc/gpzyFrAqnALkJe+7DoItgAtRS2zuKqGE3yAx0oJvkdvYrfZmALURbDuL5/RLf13cAuDeBS2RpbtAm+QFVA3wR+3fUtFHoBDJnC0jIXH0HWsgMY8inPLuOkd9chp4z20ALQLSA8cI9jYAIa2zjzjBd8gRafS1vgiUho/kAKcsCGTOGWvoOpkAtB3z8Hm8x2Ff5ADp4+lXAlIvcmwH/2Q==') repeat left top",padding:"12px",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{borderRadius:"5px",border:"1px solid #000",color:"#DCCF8F",background:"#181914 url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAMAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQACQYGBgcGCQcHCQ0IBwgNDwsJCQsPEQ4ODw4OERENDg4ODg0RERQUFhQUERoaHBwaGiYmJiYmKysrKysrKysrKwEJCAgJCgkMCgoMDwwODA8TDg4ODhMVDg4PDg4VGhMRERERExoXGhYWFhoXHR0aGh0dJCQjJCQrKysrKysrKysr/8AAEQgAjACMAwEiAAIRAQMRAf/EAF4AAQEBAAAAAAAAAAAAAAAAAAABBwEBAQAAAAAAAAAAAAAAAAAAAAIQAAEDAwIHAQEAAAAAAAAAAADwAREhYaExkUFRcYGxwdHh8REBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AyGFEjHaBS2fDDs2zkhKmBKktb7km+ZwwCnXPkLVmCTMItj6AXFxRS465/BTnkAJvkLkJe+7AKKoi2AtRS2zuAWsCb5GOlBN8gKfmuGHZ8MFqIth3ALmFoFwbwKWyAlTAp17uKqBvgBD8sM4fTjhvAhkzhaRkBMKBrfs7jGPIpzy7gFrAqnC0C0gB0EWwBDW2cBVQwm+QtPpa3wBO3sVvszCnLAhkzgL5/RLf13cLQd8/AGlu0Cb5HTx9KuAEieGJEdcehS3eRTp2ATdt3CpIm+QtZwAhROXFeb7swp/ahaM3kBE/jSIUBc/AWrgBN8uNFAl+b7sAXFxFn2YLUU5Ns7gFX8C4ib+hN8gFWXwK3bZglxEJm+gKdciLPsFV/TClsgJUwKJ5FVA7tvIFrfZhVfGJDcsCKaYgAqv6YRbE+RWOWBtu7+AL3yRalXLyKqAIIfk+zARbDgFyEsncYwJvlgFRW+GEWntIi2P0BooyFxcNr8Ep3+ANLbMO+QyhvbiqdgC0kVvgUUiLYgBS2QtPbiVI1/sgOmG9uO+Y8DW+7jS2zAOnj6O2BndwuIAUtkdRN8gFoK3wwXMQyZwHVbClsuNLd4E3yAUR6FVDBR+BafQGt93LVMxJTv8ABts4CVLhcfYWsCb5kC9/BHdU8CLYFY5bMAd+eX9MGthhpbA1vu4B7+RKkaW2Yq4AQtVBBFsAJU/AuIXBhN8gGWnstefhiZyWvLAEnbYS1uzSFP6Jvn4Baxx70JKkQojLib5AVTey1jjgkKJGO0AKWyOm7N7cSpgSpAdPH0Tfd/gp1z5C1ZgKqN9J2wFxcUUuAFLZAm+QC0Fb4YUVRFsAOvj4KW2dwtYE3yAWk/wS/PLMKfmuGHZ8MAXF/Ja32Yi5haAKWz4Ydm2cSpgU693Atb7km+Zwwh+WGcPpxw3gAkzCLY+iYUDW/Z3Adc/gpzyFrAqnALkJe+7DoItgAtRS2zuKqGE3yAx0oJvkdvYrfZmALURbDuL5/RLf13cAuDeBS2RpbtAm+QFVA3wR+3fUtFHoBDJnC0jIXH0HWsgMY8inPLuOkd9chp4z20ALQLSA8cI9jYAIa2zjzjBd8gRafS1vgiUho/kAKcsCGTOGWvoOpkAtB3z8Hm8x2Ff5ADp4+lXAlIvcmwH/2Q==') repeat left top",padding:"2px 6px"},namespace:{Opacity:".7"},comment:{color:"#586e75",fontStyle:"italic"},prolog:{color:"#586e75",fontStyle:"italic"},doctype:{color:"#586e75",fontStyle:"italic"},cdata:{color:"#586e75",fontStyle:"italic"},number:{color:"#b89859"},string:{color:"#468966"},char:{color:"#468966"},builtin:{color:"#468966"},inserted:{color:"#468966"},"attr-name":{color:"#b89859"},operator:{color:"#dccf8f"},entity:{color:"#dccf8f",cursor:"help"},url:{color:"#dccf8f"},".language-css .token.string":{color:"#dccf8f"},".style .token.string":{color:"#dccf8f"},selector:{color:"#859900"},regex:{color:"#859900"},atrule:{color:"#cb4b16"},keyword:{color:"#cb4b16"},"attr-value":{color:"#468966"},function:{color:"#b58900"},variable:{color:"#b58900"},placeholder:{color:"#b58900"},property:{color:"#b89859"},tag:{color:"#ffb03b"},boolean:{color:"#b89859"},constant:{color:"#b89859"},symbol:{color:"#b89859"},important:{color:"#dc322f"},statement:{color:"#dc322f"},deleted:{color:"#dc322f"},punctuation:{color:"#dccf8f"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(gN)),gN}var yN={},dG;function eWe(){return dG||(dG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={"code[class*='language-']":{color:"#9efeff",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",fontFamily:"'Operator Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontWeight:"400",fontSize:"17px",lineHeight:"25px",letterSpacing:"0.5px",textShadow:"0 1px #222245"},"pre[class*='language-']":{color:"#9efeff",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",fontFamily:"'Operator Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontWeight:"400",fontSize:"17px",lineHeight:"25px",letterSpacing:"0.5px",textShadow:"0 1px #222245",padding:"2em",margin:"0.5em 0",overflow:"auto",background:"#1e1e3f"},"pre[class*='language-']::-moz-selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-'] ::-moz-selection":{color:"inherit",background:"#a599e9"},"code[class*='language-']::-moz-selection":{color:"inherit",background:"#a599e9"},"code[class*='language-'] ::-moz-selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-']::selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-'] ::selection":{color:"inherit",background:"#a599e9"},"code[class*='language-']::selection":{color:"inherit",background:"#a599e9"},"code[class*='language-'] ::selection":{color:"inherit",background:"#a599e9"},":not(pre) > code[class*='language-']":{background:"#1e1e3f",padding:"0.1em",borderRadius:"0.3em"},"":{fontWeight:"400"},comment:{color:"#b362ff"},prolog:{color:"#b362ff"},cdata:{color:"#b362ff"},delimiter:{color:"#ff9d00"},keyword:{color:"#ff9d00"},selector:{color:"#ff9d00"},important:{color:"#ff9d00"},atrule:{color:"#ff9d00"},operator:{color:"rgb(255, 180, 84)",background:"none"},"attr-name":{color:"rgb(255, 180, 84)"},punctuation:{color:"#ffffff"},boolean:{color:"rgb(255, 98, 140)"},tag:{color:"rgb(255, 157, 0)"},"tag.punctuation":{color:"rgb(255, 157, 0)"},doctype:{color:"rgb(255, 157, 0)"},builtin:{color:"rgb(255, 157, 0)"},entity:{color:"#6897bb",background:"none"},symbol:{color:"#6897bb"},number:{color:"#ff628c"},property:{color:"#ff628c"},constant:{color:"#ff628c"},variable:{color:"#ff628c"},string:{color:"#a5ff90"},char:{color:"#a5ff90"},"attr-value":{color:"#a5c261"},"attr-value.punctuation":{color:"#a5c261"},"attr-value.punctuation:first-child":{color:"#a9b7c6"},url:{color:"#287bde",textDecoration:"underline",background:"none"},function:{color:"rgb(250, 208, 0)"},regex:{background:"#364135"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#00ff00"},deleted:{background:"#ff000d"},"code.language-css .token.property":{color:"#a9b7c6"},"code.language-css .token.property + .token.punctuation":{color:"#a9b7c6"},"code.language-css .token.id":{color:"#ffc66d"},"code.language-css .token.selector > .token.class":{color:"#ffc66d"},"code.language-css .token.selector > .token.attribute":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-class":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-element":{color:"#ffc66d"},"class-name":{color:"#fb94ff"},".language-css .token.string":{background:"none"},".style .token.string":{background:"none"},".line-highlight.line-highlight":{marginTop:"36px",background:"linear-gradient(to right, rgba(179, 98, 255, 0.17), transparent)"},".line-highlight.line-highlight:before":{content:"''"},".line-highlight.line-highlight[data-end]:after":{content:"''"}}}(yN)),yN}var bN={},hG;function tWe(){return hG||(hG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#839496",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#839496",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",background:"#002b36"},':not(pre) > code[class*="language-"]':{background:"#002b36",padding:".1em",borderRadius:".3em"},comment:{color:"#586e75"},prolog:{color:"#586e75"},doctype:{color:"#586e75"},cdata:{color:"#586e75"},punctuation:{color:"#93a1a1"},".namespace":{Opacity:".7"},property:{color:"#268bd2"},keyword:{color:"#268bd2"},tag:{color:"#268bd2"},"class-name":{color:"#FFFFB6",textDecoration:"underline"},boolean:{color:"#b58900"},constant:{color:"#b58900"},symbol:{color:"#dc322f"},deleted:{color:"#dc322f"},number:{color:"#859900"},selector:{color:"#859900"},"attr-name":{color:"#859900"},string:{color:"#859900"},char:{color:"#859900"},builtin:{color:"#859900"},inserted:{color:"#859900"},variable:{color:"#268bd2"},operator:{color:"#EDEDED"},function:{color:"#268bd2"},regex:{color:"#E9C062"},important:{color:"#fd971f",fontWeight:"bold"},entity:{color:"#FFFFB6",cursor:"help"},url:{color:"#96CBFE"},".language-css .token.string":{color:"#87C38A"},".style .token.string":{color:"#87C38A"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},atrule:{color:"#F9EE98"},"attr-value":{color:"#F9EE98"}}}(bN)),bN}var vN={},fG;function nWe(){return fG||(fG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",backgroundColor:"transparent !important",backgroundImage:"linear-gradient(to bottom, #2a2139 75%, #34294f)"},':not(pre) > code[class*="language-"]':{backgroundColor:"transparent !important",backgroundImage:"linear-gradient(to bottom, #2a2139 75%, #34294f)",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8e8e8e"},"block-comment":{color:"#8e8e8e"},prolog:{color:"#8e8e8e"},doctype:{color:"#8e8e8e"},cdata:{color:"#8e8e8e"},punctuation:{color:"#ccc"},tag:{color:"#e2777a"},"attr-name":{color:"#e2777a"},namespace:{color:"#e2777a"},number:{color:"#e2777a"},unit:{color:"#e2777a"},hexcode:{color:"#e2777a"},deleted:{color:"#e2777a"},property:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"},selector:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"},"function-name":{color:"#6196cc"},boolean:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},"selector.id":{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},function:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},"class-name":{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"},constant:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},symbol:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},important:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575",fontWeight:"bold"},atrule:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},keyword:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},"selector.class":{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},builtin:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},string:{color:"#f87c32"},char:{color:"#f87c32"},"attr-value":{color:"#f87c32"},regex:{color:"#f87c32"},variable:{color:"#f87c32"},operator:{color:"#67cdcc"},entity:{color:"#67cdcc",cursor:"help"},url:{color:"#67cdcc"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{color:"green"}}}(vN)),vN}var xN={},pG;function rWe(){return pG||(pG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:"1px solid #dddddd",backgroundColor:"white"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{background:"#C1DEF1"},'pre[class*="language-"] ::-moz-selection':{background:"#C1DEF1"},'code[class*="language-"]::-moz-selection':{background:"#C1DEF1"},'code[class*="language-"] ::-moz-selection':{background:"#C1DEF1"},'pre[class*="language-"]::selection':{background:"#C1DEF1"},'pre[class*="language-"] ::selection':{background:"#C1DEF1"},'code[class*="language-"]::selection':{background:"#C1DEF1"},'code[class*="language-"] ::selection':{background:"#C1DEF1"},':not(pre) > code[class*="language-"]':{padding:".2em",paddingTop:"1px",paddingBottom:"1px",background:"#f8f8f8",border:"1px solid #dddddd"},comment:{color:"#008000",fontStyle:"italic"},prolog:{color:"#008000",fontStyle:"italic"},doctype:{color:"#008000",fontStyle:"italic"},cdata:{color:"#008000",fontStyle:"italic"},namespace:{Opacity:".7"},string:{color:"#A31515"},punctuation:{color:"#393A34"},operator:{color:"#393A34"},url:{color:"#36acaa"},symbol:{color:"#36acaa"},number:{color:"#36acaa"},boolean:{color:"#36acaa"},variable:{color:"#36acaa"},constant:{color:"#36acaa"},inserted:{color:"#36acaa"},atrule:{color:"#0000ff"},keyword:{color:"#0000ff"},"attr-value":{color:"#0000ff"},".language-autohotkey .token.selector":{color:"#0000ff"},".language-json .token.boolean":{color:"#0000ff"},".language-json .token.number":{color:"#0000ff"},'code[class*="language-css"]':{color:"#0000ff"},function:{color:"#393A34"},deleted:{color:"#9a050f"},".language-autohotkey .token.tag":{color:"#9a050f"},selector:{color:"#800000"},".language-autohotkey .token.keyword":{color:"#00009f"},important:{color:"#e90",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},"class-name":{color:"#2B91AF"},".language-json .token.property":{color:"#2B91AF"},tag:{color:"#800000"},"attr-name":{color:"#ff0000"},property:{color:"#ff0000"},regex:{color:"#ff0000"},entity:{color:"#ff0000"},"directive.tag.tag":{background:"#ffff00",color:"#393A34"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#a5a5a5"},".line-numbers .line-numbers-rows > span:before":{color:"#2B91AF"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0))"}}}(xN)),xN}var wN={},mG;function sWe(){return mG||(mG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}}(wN)),wN}var SN={},gG;function iWe(){return gG||(gG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordWrap:"normal",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"14px",color:"#76d9e6",textShadow:"none"},'pre[class*="language-"]':{MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordWrap:"normal",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"14px",color:"#76d9e6",textShadow:"none",background:"#2a2a2a",padding:"15px",borderRadius:"4px",border:"1px solid #e1e1e8",overflow:"auto",position:"relative"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{background:"#2a2a2a",padding:"0.15em 0.2em 0.05em",borderRadius:".3em",border:"0.13em solid #7a6652",boxShadow:"1px 1px 0.3em -0.1em #000 inset"},'pre[class*="language-"] code':{whiteSpace:"pre",display:"block"},namespace:{Opacity:".7"},comment:{color:"#6f705e"},prolog:{color:"#6f705e"},doctype:{color:"#6f705e"},cdata:{color:"#6f705e"},operator:{color:"#a77afe"},boolean:{color:"#a77afe"},number:{color:"#a77afe"},"attr-name":{color:"#e6d06c"},string:{color:"#e6d06c"},entity:{color:"#e6d06c",cursor:"help"},url:{color:"#e6d06c"},".language-css .token.string":{color:"#e6d06c"},".style .token.string":{color:"#e6d06c"},selector:{color:"#a6e22d"},inserted:{color:"#a6e22d"},atrule:{color:"#ef3b7d"},"attr-value":{color:"#ef3b7d"},keyword:{color:"#ef3b7d"},important:{color:"#ef3b7d",fontWeight:"bold"},deleted:{color:"#ef3b7d"},regex:{color:"#76d9e6"},statement:{color:"#76d9e6",fontWeight:"bold"},placeholder:{color:"#fff"},variable:{color:"#fff"},bold:{fontWeight:"bold"},punctuation:{color:"#bebec5"},italic:{fontStyle:"italic"},"code.language-markup":{color:"#f9f9f9"},"code.language-markup .token.tag":{color:"#ef3b7d"},"code.language-markup .token.attr-name":{color:"#a6e22d"},"code.language-markup .token.attr-value":{color:"#e6d06c"},"code.language-markup .token.style":{color:"#76d9e6"},"code.language-markup .token.script":{color:"#76d9e6"},"code.language-markup .token.script .token.keyword":{color:"#76d9e6"},".line-highlight.line-highlight":{padding:"0",background:"rgba(255, 255, 255, 0.08)"},".line-highlight.line-highlight:before":{padding:"0.2em 0.5em",backgroundColor:"rgba(255, 255, 255, 0.4)",color:"black",height:"1em",lineHeight:"1em",boxShadow:"0 1px 1px rgba(255, 255, 255, 0.7)"},".line-highlight.line-highlight[data-end]:after":{padding:"0.2em 0.5em",backgroundColor:"rgba(255, 255, 255, 0.4)",color:"black",height:"1em",lineHeight:"1em",boxShadow:"0 1px 1px rgba(255, 255, 255, 0.7)"}}}(SN)),SN}var CN={},yG;function oWe(){return yG||(yG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#22da17",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",lineHeight:"25px",fontSize:"18px",margin:"5px 0"},'pre[class*="language-"]':{color:"white",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",lineHeight:"25px",fontSize:"18px",margin:"0.5em 0",background:"#0a143c",padding:"1em",overflow:"auto"},'pre[class*="language-"] *':{fontFamily:"monospace"},':not(pre) > code[class*="language-"]':{color:"white",background:"#0a143c",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},comment:{color:"rgb(99, 119, 119)",fontStyle:"italic"},prolog:{color:"rgb(99, 119, 119)",fontStyle:"italic"},cdata:{color:"rgb(99, 119, 119)",fontStyle:"italic"},punctuation:{color:"rgb(199, 146, 234)"},".namespace":{color:"rgb(178, 204, 214)"},deleted:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"},symbol:{color:"rgb(128, 203, 196)"},property:{color:"rgb(128, 203, 196)"},tag:{color:"rgb(127, 219, 202)"},operator:{color:"rgb(127, 219, 202)"},keyword:{color:"rgb(127, 219, 202)"},boolean:{color:"rgb(255, 88, 116)"},number:{color:"rgb(247, 140, 108)"},constant:{color:"rgb(34 183 199)"},function:{color:"rgb(34 183 199)"},builtin:{color:"rgb(34 183 199)"},char:{color:"rgb(34 183 199)"},selector:{color:"rgb(199, 146, 234)",fontStyle:"italic"},doctype:{color:"rgb(199, 146, 234)",fontStyle:"italic"},"attr-name":{color:"rgb(173, 219, 103)",fontStyle:"italic"},inserted:{color:"rgb(173, 219, 103)",fontStyle:"italic"},string:{color:"rgb(173, 219, 103)"},url:{color:"rgb(173, 219, 103)"},entity:{color:"rgb(173, 219, 103)"},".language-css .token.string":{color:"rgb(173, 219, 103)"},".style .token.string":{color:"rgb(173, 219, 103)"},"class-name":{color:"rgb(255, 203, 139)"},atrule:{color:"rgb(255, 203, 139)"},"attr-value":{color:"rgb(255, 203, 139)"},regex:{color:"rgb(214, 222, 235)"},important:{color:"rgb(214, 222, 235)",fontWeight:"bold"},variable:{color:"rgb(214, 222, 235)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(CN)),CN}var bG;function aWe(){return bG||(bG=1,function(e){var t=gqe();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"a11yDark",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"atomDark",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"base16AteliersulphurpoolLight",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"cb",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"coldarkCold",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"coldarkDark",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"coy",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"coyWithoutShadows",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"darcula",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"dark",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"dracula",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"duotoneDark",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"duotoneEarth",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"duotoneForest",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"duotoneLight",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"duotoneSea",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"duotoneSpace",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"funky",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"ghcolors",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"gruvboxDark",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"gruvboxLight",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"holiTheme",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"hopscotch",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"lucario",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"materialDark",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"materialLight",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"materialOceanic",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"nightOwl",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"nord",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(e,"okaidia",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"oneDark",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"oneLight",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(e,"pojoaque",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(e,"prism",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"shadesOfPurple",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"solarizedDarkAtom",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"solarizedlight",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"synthwave84",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(e,"tomorrow",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"twilight",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"vs",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(e,"vscDarkPlus",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(e,"xonokai",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(e,"zTouch",{enumerable:!0,get:function(){return we.default}});var n=t(yqe()),r=t(bqe()),s=t(vqe()),i=t(xqe()),o=t(wqe()),a=t(Sqe()),l=t(Cqe()),c=t(kqe()),u=t(Eqe()),d=t(Dqe()),p=t(Aqe()),m=t(Tqe()),b=t(_qe()),x=t(Nqe()),C=t(Pqe()),S=t(Mqe()),A=t(Fqe()),T=t(Oqe()),N=t(Rqe()),F=t(Iqe()),M=t(jqe()),I=t(Lqe()),j=t(Bqe()),L=t($qe()),B=t(zqe()),z=t(Hqe()),G=t(Vqe()),Q=t(Uqe()),$=t(qqe()),J=t(Wqe()),q=t(Gqe()),U=t(Yqe()),V=t(Xqe()),X=t(Kqe()),W=t(Zqe()),K=t(Jqe()),se=t(Qqe()),H=t(eWe()),te=t(tWe()),oe=t(nWe()),le=t(rWe()),ne=t(sWe()),me=t(iWe()),we=t(oWe())}(M6)),M6}var lWe=aWe();const Rle=1024;let cWe=0,kN=class{constructor(t,n){this.from=t,this.to=n}};class dn{constructor(t={}){this.id=cWe++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=Wo.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}dn.closedBy=new dn({deserialize:e=>e.split(" ")});dn.openedBy=new dn({deserialize:e=>e.split(" ")});dn.group=new dn({deserialize:e=>e.split(" ")});dn.isolate=new dn({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});dn.contextHash=new dn({perNode:!0});dn.lookAhead=new dn({perNode:!0});dn.mounted=new dn({perNode:!0});class NA{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[dn.mounted.id]}}const uWe=Object.create(null);class Wo{constructor(t,n,r,s=0){this.name=t,this.props=n,this.id=r,this.flags=s}static define(t){let n=t.props&&t.props.length?Object.create(null):uWe,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),s=new Wo(t.name||"",n,t.id,r);if(t.props){for(let i of t.props)if(Array.isArray(i)||(i=i(s)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[i[0].id]=i[1]}}return s}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(dn.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let s of r.split(" "))n[s]=t[r];return r=>{for(let s=r.prop(dn.group),i=-1;i<(s?s.length:0);i++){let o=n[i<0?r.name:s[i]];if(o)return o}}}}Wo.none=new Wo("",Object.create(null),0,8);class YI{constructor(t){this.types=t;for(let n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let n=[];for(let r of this.types){let s=null;for(let i of t){let o=i(r);o&&(s||(s=Object.assign({},r.props)),s[o[0].id]=o[1])}n.push(s?new Wo(r.name,s,r.id,r.flags):r)}return new YI(n)}}const rE=new WeakMap,vG=new WeakMap;var qs;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(qs||(qs={}));class xs{constructor(t,n,r,s,i){if(this.type=t,this.children=n,this.positions=r,this.length=s,this.props=null,i&&i.length){this.props=Object.create(null);for(let[o,a]of i)this.props[typeof o=="number"?o:o.id]=a}}toString(){let t=NA.get(this);if(t&&!t.overlay)return t.tree.toString();let n="";for(let r of this.children){let s=r.toString();s&&(n&&(n+=","),n+=s)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(t=0){return new C7(this.topNode,t)}cursorAt(t,n=0,r=0){let s=rE.get(this)||this.topNode,i=new C7(s);return i.moveTo(t,n),rE.set(this,i._tree),i}get topNode(){return new Va(this,0,0,null)}resolve(t,n=0){let r=_w(rE.get(this)||this.topNode,t,n,!1);return rE.set(this,r),r}resolveInner(t,n=0){let r=_w(vG.get(this)||this.topNode,t,n,!0);return vG.set(this,r),r}resolveStack(t,n=0){return fWe(this,t,n)}iterate(t){let{enter:n,leave:r,from:s=0,to:i=this.length}=t,o=t.mode||0,a=(o&qs.IncludeAnonymous)>0;for(let l=this.cursor(o|qs.IncludeAnonymous);;){let c=!1;if(l.from<=i&&l.to>=s&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&r&&(a||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:ZI(Wo.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,s)=>new xs(this.type,n,r,s,this.propValues),t.makeTree||((n,r,s)=>new xs(Wo.none,n,r,s)))}static build(t){return pWe(t)}}xs.empty=new xs(Wo.none,[],[],0);class XI{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new XI(this.buffer,this.index)}}class Yf{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return Wo.none}toString(){let t=[];for(let n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}childString(t){let n=this.buffer[t],r=this.buffer[t+3],s=this.set.types[n],i=s.name;if(/\W/.test(i)&&!s.isError&&(i=JSON.stringify(i)),t+=4,r==t)return i;let o=[];for(;t<r;)o.push(this.childString(t)),t=this.buffer[t+3];return i+"("+o.join(",")+")"}findChild(t,n,r,s,i){let{buffer:o}=this,a=-1;for(let l=t;l!=n&&!(Ile(i,s,o[l+1],o[l+2])&&(a=l,r>0));l=o[l+3]);return a}slice(t,n,r){let s=this.buffer,i=new Uint16Array(n-t),o=0;for(let a=t,l=0;a<n;){i[l++]=s[a++],i[l++]=s[a++]-r;let c=i[l++]=s[a++]-r;i[l++]=s[a++]-t,o=Math.max(o,c)}return new Yf(i,o,this.set)}}function Ile(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function _w(e,t,n,r){for(var s;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let o=!r&&e instanceof Va&&e.index<0?null:e.parent;if(!o)return e;e=o}let i=r?0:qs.IgnoreOverlays;if(r)for(let o=e,a=o.parent;a;o=a,a=o.parent)o instanceof Va&&o.index<0&&((s=a.enter(t,n,i))===null||s===void 0?void 0:s.from)!=o.from&&(e=a);for(;;){let o=e.enter(t,n,i);if(!o)return e;e=o}}class jle{cursor(t=0){return new C7(this,t)}getChild(t,n=null,r=null){let s=xG(this,t,n,r);return s.length?s[0]:null}getChildren(t,n=null,r=null){return xG(this,t,n,r)}resolve(t,n=0){return _w(this,t,n,!1)}resolveInner(t,n=0){return _w(this,t,n,!0)}matchContext(t){return S7(this.parent,t)}enterUnfinishedNodesBefore(t){let n=this.childBefore(t),r=this;for(;n;){let s=n.lastChild;if(!s||s.to!=n.to)break;s.type.isError&&s.from==s.to?(r=n,n=s.prevSibling):n=s}return r}get node(){return this}get next(){return this.parent}}class Va extends jle{constructor(t,n,r,s){super(),this._tree=t,this.from=n,this.index=r,this._parent=s}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,s,i=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,c=n>0?a.length:-1;t!=c;t+=n){let u=a[t],d=l[t]+o.from;if(Ile(s,r,d,d+u.length)){if(u instanceof Yf){if(i&qs.ExcludeBuffers)continue;let p=u.findChild(0,u.buffer.length,n,r-d,s);if(p>-1)return new wf(new dWe(o,u,t,d),null,p)}else if(i&qs.IncludeAnonymous||!u.type.isAnonymous||KI(u)){let p;if(!(i&qs.IgnoreMounts)&&(p=NA.get(u))&&!p.overlay)return new Va(p.tree,d,t,o);let m=new Va(u,d,t,o);return i&qs.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(n<0?u.children.length-1:0,n,r,s)}}}if(i&qs.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+n:t=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let s;if(!(r&qs.IgnoreOverlays)&&(s=NA.get(this._tree))&&s.overlay){let i=t-this.from;for(let{from:o,to:a}of s.overlay)if((n>0?o<=i:o<i)&&(n<0?a>=i:a>i))return new Va(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function xG(e,t,n,r){let s=e.cursor(),i=[];if(!s.firstChild())return i;if(n!=null){for(let o=!1;!o;)if(o=s.type.is(n),!s.nextSibling())return i}for(;;){if(r!=null&&s.type.is(r))return i;if(s.type.is(t)&&i.push(s.node),!s.nextSibling())return r==null?i:[]}}function S7(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class dWe{constructor(t,n,r,s){this.parent=t,this.buffer=n,this.index=r,this.start=s}}class wf extends jle{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:s}=this.context,i=s.findChild(this.index+4,s.buffer[this.index+3],t,n-this.context.start,r);return i<0?null:new wf(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&qs.ExcludeBuffers)return null;let{buffer:s}=this.context,i=s.findChild(this.index+4,s.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return i<0?null:new wf(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new wf(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new wf(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,s=this.index+4,i=r.buffer[this.index+3];if(i>s){let o=r.buffer[this.index+1];t.push(r.slice(s,i,o)),n.push(0)}return new xs(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Lle(e){if(!e.length)return null;let t=0,n=e[0];for(let i=1;i<e.length;i++){let o=e[i];(o.from>n.from||o.to<n.to)&&(n=o,t=i)}let r=n instanceof Va&&n.index<0?null:n.parent,s=e.slice();return r?s[t]=r:s.splice(t,1),new hWe(s,n)}class hWe{constructor(t,n){this.heads=t,this.node=n}get next(){return Lle(this.heads)}}function fWe(e,t,n){let r=e.resolveInner(t,n),s=null;for(let i=r instanceof Va?r:r.context.parent;i;i=i.parent)if(i.index<0){let o=i.parent;(s||(s=[r])).push(o.resolve(t,n)),i=o}else{let o=NA.get(i.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let a=new Va(o.tree,o.overlay[0].from+i.from,-1,i);(s||(s=[r])).push(_w(a,t,n,!1))}}return s?Lle(s):r}class C7{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Va)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:s}=this.buffer;return this.type=n||s.set.types[s.buffer[t]],this.from=r+s.buffer[t+1],this.to=r+s.buffer[t+2],!0}yield(t){return t?t instanceof Va?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:s}=this.buffer,i=s.findChild(this.index+4,s.buffer[this.index+3],t,n-this.buffer.start,r);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&qs.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&qs.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&qs.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let s=r<0?0:this.stack[r]+4;if(this.index!=s)return this.yieldBuf(n.findChild(s,this.index,-1,0,4))}else{let s=n.buffer[this.index+3];if(s<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(s)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:s}=this;if(s){if(t>0){if(this.index<s.buffer.buffer.length)return!1}else for(let i=0;i<this.index;i++)if(s.buffer.buffer[i+3]<this.index)return!1;({index:n,parent:r}=s)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let i=n+t,o=t<0?-1:r._tree.children.length;i!=o;i+=t){let a=r._tree.children[i];if(this.mode&qs.IncludeAnonymous||a instanceof Yf||!a.type.isAnonymous||KI(a))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer)e:for(let s=this.index,i=this.stack.length;i>=0;){for(let o=t;o;o=o._parent)if(o.index==s){if(s==this.index)return o;n=o,r=i+1;break e}s=this.stack[--i]}for(let s=r;s<this.stack.length;s++)n=new wf(this.buffer,n,this.stack[s]);return this.bufferNode=new wf(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,n){for(let r=0;;){let s=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(s=!0)}for(;;){if(s&&n&&n(this),s=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,s=!0}}}matchContext(t){if(!this.buffer)return S7(this.node.parent,t);let{buffer:n}=this.buffer,{types:r}=n.set;for(let s=t.length-1,i=this.stack.length-1;s>=0;i--){if(i<0)return S7(this._tree,t,s);let o=r[n.buffer[this.stack[i]]];if(!o.isAnonymous){if(t[s]&&t[s]!=o.name)return!1;s--}}return!0}}function KI(e){return e.children.some(t=>t instanceof Yf||!t.type.isAnonymous||KI(t))}function pWe(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:s=Rle,reused:i=[],minRepeatType:o=r.types.length}=e,a=Array.isArray(n)?new XI(n,n.length):n,l=r.types,c=0,u=0;function d(F,M,I,j,L,B){let{id:z,start:G,end:Q,size:$}=a,J=u,q=c;for(;$<0;)if(a.next(),$==-1){let K=i[z];I.push(K),j.push(G-F);return}else if($==-3){c=z;return}else if($==-4){u=z;return}else throw new RangeError(`Unrecognized record size: ${$}`);let U=l[z],V,X,W=G-F;if(Q-G<=s&&(X=C(a.pos-M,L))){let K=new Uint16Array(X.size-X.skip),se=a.pos-X.size,H=K.length;for(;a.pos>se;)H=S(X.start,K,H);V=new Yf(K,Q-X.start,r),W=X.start-F}else{let K=a.pos-$;a.next();let se=[],H=[],te=z>=o?z:-1,oe=0,le=Q;for(;a.pos>K;)te>=0&&a.id==te&&a.size>=0?(a.end<=le-s&&(b(se,H,G,oe,a.end,le,te,J,q),oe=se.length,le=a.end),a.next()):B>2500?p(G,K,se,H):d(G,K,se,H,te,B+1);if(te>=0&&oe>0&&oe<se.length&&b(se,H,G,oe,G,le,te,J,q),se.reverse(),H.reverse(),te>-1&&oe>0){let ne=m(U,q);V=ZI(U,se,H,0,se.length,0,Q-G,ne,ne)}else V=x(U,se,H,Q-G,J-Q,q)}I.push(V),j.push(W)}function p(F,M,I,j){let L=[],B=0,z=-1;for(;a.pos>M;){let{id:G,start:Q,end:$,size:J}=a;if(J>4)a.next();else{if(z>-1&&Q<z)break;z<0&&(z=$-s),L.push(G,Q,$),B++,a.next()}}if(B){let G=new Uint16Array(B*4),Q=L[L.length-2];for(let $=L.length-3,J=0;$>=0;$-=3)G[J++]=L[$],G[J++]=L[$+1]-Q,G[J++]=L[$+2]-Q,G[J++]=J;I.push(new Yf(G,L[2]-Q,r)),j.push(Q-F)}}function m(F,M){return(I,j,L)=>{let B=0,z=I.length-1,G,Q;if(z>=0&&(G=I[z])instanceof xs){if(!z&&G.type==F&&G.length==L)return G;(Q=G.prop(dn.lookAhead))&&(B=j[z]+G.length+Q)}return x(F,I,j,L,B,M)}}function b(F,M,I,j,L,B,z,G,Q){let $=[],J=[];for(;F.length>j;)$.push(F.pop()),J.push(M.pop()+I-L);F.push(x(r.types[z],$,J,B-L,G-B,Q)),M.push(L-I)}function x(F,M,I,j,L,B,z){if(B){let G=[dn.contextHash,B];z=z?[G].concat(z):[G]}if(L>25){let G=[dn.lookAhead,L];z=z?[G].concat(z):[G]}return new xs(F,M,I,j,z)}function C(F,M){let I=a.fork(),j=0,L=0,B=0,z=I.end-s,G={size:0,start:0,skip:0};e:for(let Q=I.pos-F;I.pos>Q;){let $=I.size;if(I.id==M&&$>=0){G.size=j,G.start=L,G.skip=B,B+=4,j+=4,I.next();continue}let J=I.pos-$;if($<0||J<Q||I.start<z)break;let q=I.id>=o?4:0,U=I.start;for(I.next();I.pos>J;){if(I.size<0)if(I.size==-3)q+=4;else break e;else I.id>=o&&(q+=4);I.next()}L=U,j+=$,B+=q}return(M<0||j==F)&&(G.size=j,G.start=L,G.skip=B),G.size>4?G:void 0}function S(F,M,I){let{id:j,start:L,end:B,size:z}=a;if(a.next(),z>=0&&j<o){let G=I;if(z>4){let Q=a.pos-(z-4);for(;a.pos>Q;)I=S(F,M,I)}M[--I]=G,M[--I]=B-F,M[--I]=L-F,M[--I]=j}else z==-3?c=j:z==-4&&(u=j);return I}let A=[],T=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,A,T,-1,0);let N=(t=e.length)!==null&&t!==void 0?t:A.length?T[0]+A[0].length:0;return new xs(l[e.topID],A.reverse(),T.reverse(),N)}const wG=new WeakMap;function wD(e,t){if(!e.isAnonymous||t instanceof Yf||t.type!=e)return 1;let n=wG.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof xs)){n=1;break}n+=wD(e,r)}wG.set(t,n)}return n}function ZI(e,t,n,r,s,i,o,a,l){let c=0;for(let b=r;b<s;b++)c+=wD(e,t[b]);let u=Math.ceil(c*1.5/8),d=[],p=[];function m(b,x,C,S,A){for(let T=C;T<S;){let N=T,F=x[T],M=wD(e,b[T]);for(T++;T<S;T++){let I=wD(e,b[T]);if(M+I>=u)break;M+=I}if(T==N+1){if(M>u){let I=b[N];m(I.children,I.positions,0,I.children.length,x[N]+A);continue}d.push(b[N])}else{let I=x[T-1]+b[T-1].length-F;d.push(ZI(e,b,x,N,T,F,I,null,l))}p.push(F+A-i)}}return m(t,n,r,s,0),(a||l)(d,p,o)}class $m{constructor(t,n,r,s,i=!1,o=!1){this.from=t,this.to=n,this.tree=r,this.offset=s,this.open=(i?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let s=[new $m(0,t.length,t,0,!1,r)];for(let i of n)i.to>t.length&&s.push(i);return s}static applyChanges(t,n,r=128){if(!n.length)return t;let s=[],i=1,o=t.length?t[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<n.length?n[a]:null,d=u?u.fromA:1e9;if(d-l>=r)for(;o&&o.from<d;){let p=o;if(l>=p.from||d<=p.to||c){let m=Math.max(p.from,l)-c,b=Math.min(p.to,d)-c;p=m>=b?null:new $m(m,b,p.tree,p.offset+c,a>0,!!u)}if(p&&s.push(p),o.to>d)break;o=i<t.length?t[i++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return s}}class Ble{startParse(t,n,r){return typeof t=="string"&&(t=new mWe(t)),r=r?r.length?r.map(s=>new kN(s.from,s.to)):[new kN(0,0)]:[new kN(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let s=this.startParse(t,n,r);for(;;){let i=s.advance();if(i)return i}}}class mWe{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}new dn({perNode:!0});var gWe={},SG={};class PA{constructor(t,n,r,s,i,o,a,l,c,u=0,d){this.p=t,this.stack=n,this.state=r,this.reducePos=s,this.pos=i,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}toString(){return`[${this.stack.filter((t,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let s=t.parser.context;return new PA(t,[],n,r,r,0,[],0,s?new CG(s,s.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,s=t&65535,{parser:i}=this.p,o=this.reducePos<this.pos-25;o&&this.setLookAhead(this.pos);let a=i.dynamicPrecedence(s);if(a&&(this.score+=a),r==0){this.pushState(i.getGoto(this.state,s,!0),this.reducePos),s<i.minRepeatTerm&&this.storeNode(s,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(s,this.reducePos);return}let l=this.stack.length-(r-1)*3-(t&262144?6:0),c=l?this.stack[l-2]:this.p.ranges[0].from,u=this.reducePos-c;u>=2e3&&!(!((n=this.p.parser.nodeSet.types[s])===null||n===void 0)&&n.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=u));let d=l?this.stack[l-1]:0,p=this.bufferBase+this.buffer.length-d;if(s<i.minRepeatTerm||t&131072){let m=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(s,c,m,p+4,!0)}if(t&262144)this.state=this.stack[l];else{let m=this.stack[l-3];this.state=i.getGoto(m,s,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(s,c)}storeNode(t,n,r,s=4,i=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,a=this.buffer.length;if(a==0&&o.parent&&(a=o.bufferBase-o.parent.bufferBase,o=o.parent),a>0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(n==r)return;if(o.buffer[a-2]>=n){o.buffer[a-2]=r;return}}}if(!i||this.pos==r)this.buffer.push(t,n,r,s);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>r;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,s>4&&(s-=4)}this.buffer[o]=t,this.buffer[o+1]=n,this.buffer[o+2]=r,this.buffer[o+3]=s}}shift(t,n,r,s){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let i=t,{parser:o}=this.p;(s>this.pos||n<=o.maxNode)&&(this.pos=s,o.stateFlag(i,1)||(this.reducePos=s)),this.pushState(i,r),this.shiftContext(n,r),n<=o.maxNode&&this.buffer.push(n,r,s,4)}else this.pos=s,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,s,4)}apply(t,n,r,s){t&65536?this.reduce(t):this.shift(t,n,r,s)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let s=this.pos;this.reducePos=this.pos=s+t.length,this.pushState(n,s),this.buffer.push(r,s,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),s=t.bufferBase+n;for(;t&&s==t.bufferBase;)t=t.parent;return new PA(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,s,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new yWe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let s=[];for(let i=0,o;i<n.length;i+=2)(o=n[i+1])!=this.state&&this.p.parser.hasAction(o,t)&&s.push(n[i],o);if(this.stack.length<120)for(let i=0;s.length<8&&i<n.length;i+=2){let o=n[i+1];s.some((a,l)=>l&1&&a==o)||s.push(n[i],o)}n=s}let r=[];for(let s=0;s<n.length&&r.length<4;s+=2){let i=n[s+1];if(i==this.state)continue;let o=this.split();o.pushState(i,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(n[s],this.pos),o.reducePos=this.pos,o.score-=200,r.push(o)}return r}forceReduce(){let{parser:t}=this.p,n=t.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!t.validAction(this.state,n)){let r=n>>19,s=n&65535,i=this.stack.length-r*3;if(i<0||t.getGoto(this.stack[i],s,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;n=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(s,i)=>{if(!n.includes(s))return n.push(s),t.allActions(s,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-i;if(a>1){let l=o&65535,c=this.stack.length-a*3;if(c>=0&&t.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=r(o,i+1);if(a!=null)return a}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=t.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(n)))}reduceContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(n)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let n=new CG(this.curContext.tracker,t);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class CG{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class yWe{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let s=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=s}}class MA{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new MA(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new MA(this.stack,this.pos,this.index)}}function sE(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,s=0;r<e.length;){let i=0;for(;;){let o=e.charCodeAt(r++),a=!1;if(o==126){i=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),i+=l,a)break;i*=46}n?n[s++]=i:n=new t(i)}return n}class SD{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const kG=new SD;class bWe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=kG,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,s=this.rangeIndex,i=this.pos+t;for(;i<r.from;){if(!s)return null;let o=this.ranges[--s];i-=r.from-o.to,r=o}for(;n<0?i>r.to:i>=r.to;){if(s==this.ranges.length-1)return null;let o=this.ranges[++s];i+=o.from-r.to,r=o}return i}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let n of this.ranges)if(n.to>t)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,s;if(n>=0&&n<this.chunk.length)r=this.pos+t,s=this.chunk.charCodeAt(n);else{let i=this.resolveOffset(t,1);if(i==null)return-1;if(r=i,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)s=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let o=this.rangeIndex,a=this.range;for(;a.to<=r;)a=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-r)),s=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),s}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=r}acceptTokenTo(t,n){this.token.value=t,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),n=this.pos+t.length;this.chunk=n>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=kG,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,n){if(t>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let s of this.ranges){if(s.from>=n)break;s.to>t&&(r+=this.input.read(Math.max(s.from,t),Math.min(s.to,n)))}return r}}class _0{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;vWe(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}_0.prototype.contextual=_0.prototype.fallback=_0.prototype.extend=!1;_0.prototype.fallback=_0.prototype.extend=!1;function vWe(e,t,n,r,s,i){let o=0,a=1<<r,{dialect:l}=n.p.parser;e:for(;(a&e[o])!=0;){let c=e[o+1];for(let m=o+3;m<c;m+=2)if((e[m+1]&a)>0){let b=e[m];if(l.allows(b)&&(t.token.value==-1||t.token.value==b||xWe(b,t.token.value,s,i))){t.acceptToken(b);break}}let u=t.next,d=0,p=e[o+2];if(t.next<0&&p>d&&e[c+p*3-3]==65535){o=e[c+p*3-1];continue e}for(;d<p;){let m=d+p>>1,b=c+m+(m<<1),x=e[b],C=e[b+1]||65536;if(u<x)p=m;else if(u>=C)d=m+1;else{o=e[b+2],t.advance();continue e}}break}}function EG(e,t,n){for(let r=t,s;(s=e[r])!=65535;r++)if(s==n)return r-t;return-1}function xWe(e,t,n,r){let s=EG(n,r,t);return s<0||EG(n,r,e)<s}const ra=typeof gWe<"u"&&SG&&/\bparse\b/.test(SG.LOG);let EN=null;function DG(e,t,n){let r=e.cursor(qs.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class wWe{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?DG(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?DG(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],s=this.index[n];if(s==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=r.children[s],o=this.start[n]+r.positions[s];if(o>t)return this.nextStart=o,null;if(i instanceof xs){if(o==t){if(o<this.safeFrom)return null;let a=o+i.length;if(a<=this.safeTo){let l=i.prop(dn.lookAhead);if(!l||a+l<this.fragment.to)return i}}this.index[n]++,o+i.length>=Math.max(this.safeFrom,t)&&(this.trees.push(i),this.start.push(o),this.index.push(0))}else this.index[n]++,this.nextStart=o+i.length}}}class SWe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new SD)}getActions(t){let n=0,r=null,{parser:s}=t.p,{tokenizers:i}=s,o=s.stateSlot(t.state,3),a=t.curContext?t.curContext.hash:0,l=0;for(let c=0;c<i.length;c++){if((1<<c&o)==0)continue;let u=i[c],d=this.tokens[c];if(!(r&&!u.fallback)&&((u.contextual||d.start!=t.pos||d.mask!=o||d.context!=a)&&(this.updateCachedToken(d,u,t),d.mask=o,d.context=a),d.lookAhead>d.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let p=n;if(d.extended>-1&&(n=this.addActions(t,d.extended,d.end,n)),n=this.addActions(t,d.value,d.end,n),!u.extend&&(r=d,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new SD,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new SD,{pos:r,p:s}=t;return n.start=r,n.end=Math.min(r+1,s.stream.end),n.value=r==s.stream.end?s.parser.eofTerm:0,n}updateCachedToken(t,n,r){let s=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(s,t),r),t.value>-1){let{parser:i}=r.p;for(let o=0;o<i.specialized.length;o++)if(i.specialized[o]==t.value){let a=i.specializers[o](this.stream.read(t.start,t.end),r);if(a>=0&&r.p.parser.dialect.allows(a>>1)){(a&1)==0?t.value=a>>1:t.extended=a>>1;break}}}else t.value=0,t.end=this.stream.clipPos(s+1)}putAction(t,n,r,s){for(let i=0;i<s;i+=3)if(this.actions[i]==t)return s;return this.actions[s++]=t,this.actions[s++]=n,this.actions[s++]=r,s}addActions(t,n,r,s){let{state:i}=t,{parser:o}=t.p,{data:a}=o;for(let l=0;l<2;l++)for(let c=o.stateSlot(i,l?2:1);;c+=3){if(a[c]==65535)if(a[c+1]==1)c=od(a,c+2);else{s==0&&a[c+1]==2&&(s=this.putAction(od(a,c+2),n,r,s));break}a[c]==n&&(s=this.putAction(od(a,c+1),n,r,s))}return s}}class CWe{constructor(t,n,r,s){this.parser=t,this.input=n,this.ranges=s,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new bWe(n,s),this.tokens=new SWe(t,this.stream),this.topTerm=t.top[1];let{from:i}=s[0];this.stacks=[PA.start(this,t.top[0],i)],this.fragments=r.length&&this.stream.end-i>t.bufferLength*4?new wWe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],s,i;if(this.bigReductionCount>300&&t.length==1){let[o]=t;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<t.length;o++){let a=t[o];for(;;){if(this.tokens.mainToken=null,a.pos>n)r.push(a);else{if(this.advanceStack(a,r,t))continue;{s||(s=[],i=[]),s.push(a);let l=this.tokens.getMainToken(a);i.push(l.value,l.end)}}break}}if(!r.length){let o=s&&EWe(s);if(o)return ra&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw ra&&s&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&s){let o=this.stoppedAt!=null&&s[0].pos>this.stoppedAt?s[0]:this.runRecovery(s,i,r);if(o)return ra&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(r.length>o)for(r.sort((a,l)=>l.score-a.score);r.length>o;)r.pop();r.some(a=>a.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let o=0;o<r.length-1;o++){let a=r[o];for(let l=o+1;l<r.length;l++){let c=r[l];if(a.sameState(c)||a.buffer.length>500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)r.splice(l--,1);else{r.splice(o--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let o=1;o<r.length;o++)r[o].pos<this.minStackPos&&(this.minStackPos=r[o].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,n,r){let s=t.pos,{parser:i}=this,o=ra?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&s>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let c=t.curContext&&t.curContext.tracker.strict,u=c?t.curContext.hash:0;for(let d=this.fragments.nodeAt(s);d;){let p=this.parser.nodeSet.types[d.type.id]==d.type?i.getGoto(t.state,d.type.id):-1;if(p>-1&&d.length&&(!c||(d.prop(dn.contextHash)||0)==u))return t.useNode(d,p),ra&&console.log(o+this.stackID(t)+` (via reuse of ${i.getName(d.type.id)})`),!0;if(!(d instanceof xs)||d.children.length==0||d.positions[0]>0)break;let m=d.children[0];if(m instanceof xs&&d.positions[0]==0)d=m;else break}}let a=i.stateSlot(t.state,4);if(a>0)return t.reduce(a),ra&&console.log(o+this.stackID(t)+` (via always-reduce ${i.getName(a&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let c=0;c<l.length;){let u=l[c++],d=l[c++],p=l[c++],m=c==l.length||!r,b=m?t:t.split(),x=this.tokens.mainToken;if(b.apply(u,d,x?x.start:b.pos,p),ra&&console.log(o+this.stackID(b)+` (via ${(u&65536)==0?"shift":`reduce of ${i.getName(u&65535)}`} for ${i.getName(d)} @ ${s}${b==t?"":", split"})`),m)return!0;b.pos>s?n.push(b):r.push(b)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return AG(t,n),!0}}runRecovery(t,n,r){let s=null,i=!1;for(let o=0;o<t.length;o++){let a=t[o],l=n[o<<1],c=n[(o<<1)+1],u=ra?this.stackID(a)+" -> ":"";if(a.deadEnd&&(i||(i=!0,a.restart(),ra&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,r))))continue;let d=a.split(),p=u;for(let m=0;d.forceReduce()&&m<10&&(ra&&console.log(p+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));m++)ra&&(p=this.stackID(d)+" -> ");for(let m of a.recoverByInsert(l))ra&&console.log(u+this.stackID(m)+" (via recover-insert)"),this.advanceFully(m,r);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),ra&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),AG(a,r)):(!s||s.score<a.score)&&(s=a)}return s}stackToTree(t){return t.close(),xs.build({buffer:MA.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let n=(EN||(EN=new WeakMap)).get(t);return n||EN.set(t,n=String.fromCodePoint(this.nextStackID++)),n+t}}function AG(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}class kWe{constructor(t,n,r){this.source=t,this.flags=n,this.disabled=r}allows(t){return!this.disabled||this.disabled[t]==0}}class FA extends Ble{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let a=0;a<t.repeatNodeCount;a++)n.push("");let r=Object.keys(t.topRules).map(a=>t.topRules[a][1]),s=[];for(let a=0;a<n.length;a++)s.push([]);function i(a,l,c){s[a].push([l,l.deserialize(String(c))])}if(t.nodeProps)for(let a of t.nodeProps){let l=a[0];typeof l=="string"&&(l=dn[l]);for(let c=1;c<a.length;){let u=a[c++];if(u>=0)i(u,l,a[c++]);else{let d=a[c+-u];for(let p=-u;p>0;p--)i(a[c++],l,d);c++}}}this.nodeSet=new YI(n.map((a,l)=>Wo.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:s[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Rle;let o=sE(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(TG),this.states=sE(t.states,Uint32Array),this.data=sE(t.stateData),this.goto=sE(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(a=>typeof a=="number"?new _0(o,a):a),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let s=new CWe(this,t,n,r);for(let i of this.wrappers)s=i(s,t,n,r);return s}getGoto(t,n,r=!1){let s=this.goto;if(n>=s[0])return-1;for(let i=s[n+1];;){let o=s[i++],a=o&1,l=s[i++];if(a&&r)return l;for(let c=i+(o>>1);i<c;i++)if(s[i]==t)return l;if(a)return-1}}hasAction(t,n){let r=this.data;for(let s=0;s<2;s++)for(let i=this.stateSlot(t,s?2:1),o;;i+=3){if((o=r[i])==65535)if(r[i+1]==1)o=r[i=od(r,i+2)];else{if(r[i+1]==2)return od(r,i+2);break}if(o==n||o==0)return od(r,i+1)}return 0}stateSlot(t,n){return this.states[t*6+n]}stateFlag(t,n){return(this.stateSlot(t,0)&n)>0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),s=r?n(r):void 0;for(let i=this.stateSlot(t,1);s==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=od(this.data,i+2);else break;s=n(od(this.data,i+1))}return s}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=od(this.data,r+2);else break;if((this.data[r+2]&1)==0){let s=this.data[r+1];n.some((i,o)=>o&1&&i==s)||n.push(this.data[r],s)}}return n}configure(t){let n=Object.assign(Object.create(FA.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let s=t.tokenizers.find(i=>i.from==r);return s?s.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,s)=>{let i=t.specializers.find(a=>a.from==r.external);if(!i)return r;let o=Object.assign(Object.assign({},r),{external:i.to});return n.specializers[s]=TG(o),o})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let i of t.split(" ")){let o=n.indexOf(i);o>=0&&(r[o]=!0)}let s=null;for(let i=0;i<n.length;i++)if(!r[i])for(let o=this.dialects[n[i]],a;(a=this.data[o++])!=65535;)(s||(s=new Uint8Array(this.maxTerm+1)))[a]=1;return new kWe(t,r,s)}static deserialize(t){return new FA(t)}}function od(e,t){return e[t]|e[t+1]<<16}function EWe(e){let t=null;for(let n of e){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function TG(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}let DWe=0;class La{constructor(t,n,r,s){this.name=t,this.set=n,this.base=r,this.modified=s,this.id=DWe++}toString(){let{name:t}=this;for(let n of this.modified)n.name&&(t=`${n.name}(${t})`);return t}static define(t,n){let r=typeof t=="string"?t:"?";if(t instanceof La&&(n=t),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let s=new La(r,[],null,[]);if(s.set.push(s),n)for(let i of n.set)s.set.push(i);return s}static defineModifier(t){let n=new OA(t);return r=>r.modified.indexOf(n)>-1?r:OA.get(r.base||r,r.modified.concat(n).sort((s,i)=>s.id-i.id))}}let AWe=0;class OA{constructor(t){this.name=t,this.instances=[],this.id=AWe++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(a=>a.base==t&&TWe(n,a.modified));if(r)return r;let s=[],i=new La(t.name,s,t,n);for(let a of n)a.instances.push(i);let o=_We(n);for(let a of t.set)if(!a.modified.length)for(let l of o)s.push(OA.get(a,l));return i}}function TWe(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function _We(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,s=t.length;r<s;r++)t.push(t[r].concat(e[n]));return t.sort((n,r)=>r.length-n.length)}function $le(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let s of n.split(" "))if(s){let i=[],o=2,a=s;for(let d=0;;){if(a=="..."&&d>0&&d+3==s.length){o=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!p)throw new RangeError("Invalid path: "+s);if(i.push(p[0]=="*"?"":p[0][0]=='"'?JSON.parse(p[0]):p[0]),d+=p[0].length,d==s.length)break;let m=s[d++];if(d==s.length&&m=="!"){o=0;break}if(m!="/")throw new RangeError("Invalid path: "+s);a=s.slice(d)}let l=i.length-1,c=i[l];if(!c)throw new RangeError("Invalid path: "+s);let u=new RA(r,o,l>0?i.slice(0,l):null);t[c]=u.sort(t[c])}}return zle.add(t)}const zle=new dn;class RA{constructor(t,n,r,s){this.tags=t,this.mode=n,this.context=r,this.next=s}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}RA.empty=new RA([],2,null);function Hle(e,t){let n=Object.create(null);for(let i of e)if(!Array.isArray(i.tag))n[i.tag.id]=i.class;else for(let o of i.tag)n[o.id]=i.class;let{scope:r,all:s=null}=t||{};return{style:i=>{let o=s;for(let a of i)for(let l of a.set){let c=n[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:r}}function NWe(e,t){let n=null;for(let r of e){let s=r.style(t);s&&(n=n?n+" "+s:s)}return n}function PWe(e,t,n,r=0,s=e.length){let i=new MWe(r,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),r,s,"",i.highlighters),i.flush(s)}class MWe{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,s,i){let{type:o,from:a,to:l}=t;if(a>=r||l<=n)return;o.isTop&&(i=this.highlighters.filter(m=>!m.scope||m.scope(o)));let c=s,u=FWe(t)||RA.empty,d=NWe(i,u.tags);if(d&&(c&&(c+=" "),c+=d,u.mode==1&&(s+=(s?" ":"")+d)),this.startSpan(Math.max(n,a),c),u.opaque)return;let p=t.tree&&t.tree.prop(dn.mounted);if(p&&p.overlay){let m=t.node.enter(p.overlay[0].from+a,1),b=this.highlighters.filter(C=>!C.scope||C.scope(p.tree.type)),x=t.firstChild();for(let C=0,S=a;;C++){let A=C<p.overlay.length?p.overlay[C]:null,T=A?A.from+a:l,N=Math.max(n,S),F=Math.min(r,T);if(N<F&&x)for(;t.from<F&&(this.highlightRange(t,N,F,s,i),this.startSpan(Math.min(F,t.to),c),!(t.to>=T||!t.nextSibling())););if(!A||T>r)break;S=A.to+a,S>n&&(this.highlightRange(m.cursor(),Math.max(n,A.from+a),Math.min(r,S),"",b),this.startSpan(Math.min(r,S),c))}x&&t.parent()}else if(t.firstChild()){p&&(s="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,s,i),this.startSpan(Math.min(r,t.to),c)}while(t.nextSibling());t.parent()}}}function FWe(e){let t=e.type.prop(zle);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const rt=La.define,iE=rt(),rf=rt(),_G=rt(rf),NG=rt(rf),sf=rt(),oE=rt(sf),DN=rt(sf),Tc=rt(),Qp=rt(Tc),Sc=rt(),Cc=rt(),k7=rt(),Yx=rt(k7),aE=rt(),Se={comment:iE,lineComment:rt(iE),blockComment:rt(iE),docComment:rt(iE),name:rf,variableName:rt(rf),typeName:_G,tagName:rt(_G),propertyName:NG,attributeName:rt(NG),className:rt(rf),labelName:rt(rf),namespace:rt(rf),macroName:rt(rf),literal:sf,string:oE,docString:rt(oE),character:rt(oE),attributeValue:rt(oE),number:DN,integer:rt(DN),float:rt(DN),bool:rt(sf),regexp:rt(sf),escape:rt(sf),color:rt(sf),url:rt(sf),keyword:Sc,self:rt(Sc),null:rt(Sc),atom:rt(Sc),unit:rt(Sc),modifier:rt(Sc),operatorKeyword:rt(Sc),controlKeyword:rt(Sc),definitionKeyword:rt(Sc),moduleKeyword:rt(Sc),operator:Cc,derefOperator:rt(Cc),arithmeticOperator:rt(Cc),logicOperator:rt(Cc),bitwiseOperator:rt(Cc),compareOperator:rt(Cc),updateOperator:rt(Cc),definitionOperator:rt(Cc),typeOperator:rt(Cc),controlOperator:rt(Cc),punctuation:k7,separator:rt(k7),bracket:Yx,angleBracket:rt(Yx),squareBracket:rt(Yx),paren:rt(Yx),brace:rt(Yx),content:Tc,heading:Qp,heading1:rt(Qp),heading2:rt(Qp),heading3:rt(Qp),heading4:rt(Qp),heading5:rt(Qp),heading6:rt(Qp),contentSeparator:rt(Tc),list:rt(Tc),quote:rt(Tc),emphasis:rt(Tc),strong:rt(Tc),link:rt(Tc),monospace:rt(Tc),strikethrough:rt(Tc),inserted:rt(),deleted:rt(),changed:rt(),invalid:rt(),meta:aE,documentMeta:rt(aE),annotation:rt(aE),processingInstruction:rt(aE),definition:La.defineModifier("definition"),constant:La.defineModifier("constant"),function:La.defineModifier("function"),standard:La.defineModifier("standard"),local:La.defineModifier("local"),special:La.defineModifier("special")};for(let e in Se){let t=Se[e];t instanceof La&&(t.name=e)}Hle([{tag:Se.link,class:"tok-link"},{tag:Se.heading,class:"tok-heading"},{tag:Se.emphasis,class:"tok-emphasis"},{tag:Se.strong,class:"tok-strong"},{tag:Se.keyword,class:"tok-keyword"},{tag:Se.atom,class:"tok-atom"},{tag:Se.bool,class:"tok-bool"},{tag:Se.url,class:"tok-url"},{tag:Se.labelName,class:"tok-labelName"},{tag:Se.inserted,class:"tok-inserted"},{tag:Se.deleted,class:"tok-deleted"},{tag:Se.literal,class:"tok-literal"},{tag:Se.string,class:"tok-string"},{tag:Se.number,class:"tok-number"},{tag:[Se.regexp,Se.escape,Se.special(Se.string)],class:"tok-string2"},{tag:Se.variableName,class:"tok-variableName"},{tag:Se.local(Se.variableName),class:"tok-variableName tok-local"},{tag:Se.definition(Se.variableName),class:"tok-variableName tok-definition"},{tag:Se.special(Se.variableName),class:"tok-variableName2"},{tag:Se.definition(Se.propertyName),class:"tok-propertyName tok-definition"},{tag:Se.typeName,class:"tok-typeName"},{tag:Se.namespace,class:"tok-namespace"},{tag:Se.className,class:"tok-className"},{tag:Se.macroName,class:"tok-macroName"},{tag:Se.propertyName,class:"tok-propertyName"},{tag:Se.operator,class:"tok-operator"},{tag:Se.comment,class:"tok-comment"},{tag:Se.meta,class:"tok-meta"},{tag:Se.invalid,class:"tok-invalid"},{tag:Se.punctuation,class:"tok-punctuation"}]);const OWe=$le({String:Se.string,Number:Se.number,"True False":Se.bool,PropertyName:Se.propertyName,Null:Se.null,", :":Se.separator,"[ ]":Se.squareBracket,"{ }":Se.brace}),RWe=FA.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[OWe],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});let E7=[],Vle=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?Vle:E7).push(n=n+e[t])})();function IWe(e){if(e<768)return!1;for(let t=0,n=E7.length;;){let r=t+n>>1;if(e<E7[r])n=r;else if(e>=Vle[r])t=r+1;else return!0;if(t==n)return!1}}function PG(e){return e>=127462&&e<=127487}const MG=8205;function jWe(e,t,n=!0,r=!0){return(n?Ule:LWe)(e,t,r)}function Ule(e,t,n){if(t==e.length)return t;t&&qle(e.charCodeAt(t))&&Wle(e.charCodeAt(t-1))&&t--;let r=AN(e,t);for(t+=FG(r);t<e.length;){let s=AN(e,t);if(r==MG||s==MG||n&&IWe(s))t+=FG(s),r=s;else if(PG(s)){let i=0,o=t-2;for(;o>=0&&PG(AN(e,o));)i++,o-=2;if(i%2==0)break;t+=2}else break}return t}function LWe(e,t,n){for(;t>0;){let r=Ule(e,t-2,n);if(r<t)return r;t--}return 0}function AN(e,t){let n=e.charCodeAt(t);if(!Wle(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return qle(r)?(n-55296<<10)+(r-56320)+65536:n}function qle(e){return e>=56320&&e<57344}function Wle(e){return e>=55296&&e<56320}function FG(e){return e<65536?1:2}let $n=class Gle{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=Sb(this,t,n);let s=[];return this.decompose(0,t,s,2),r.length&&r.decompose(0,r.length,s,3),this.decompose(n,this.length,s,1),jc.from(s,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=Sb(this,t,n);let r=[];return this.decompose(t,n,r,0),jc.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),s=new $1(this),i=new $1(t);for(let o=n,a=n;;){if(s.next(o),i.next(o),o=0,s.lineBreak!=i.lineBreak||s.done!=i.done||s.value!=i.value)return!1;if(a+=s.value.length,s.done||a>=r)return!0}}iter(t=1){return new $1(this,t)}iterRange(t,n=this.length){return new Yle(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let s=this.line(t).from;r=this.iterRange(s,Math.max(s,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new Xle(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?Gle.empty:t.length<=32?new os(t):jc.from(os.split(t,[]))}};class os extends $n{constructor(t,n=BWe(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,s){for(let i=0;;i++){let o=this.text[i],a=s+o.length;if((n?r:a)>=t)return new $We(s,a,r,o);s=a+1,r++}}decompose(t,n,r,s){let i=t<=0&&n>=this.length?this:new os(OG(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(s&1){let o=r.pop(),a=CD(i.text,o.text.slice(),0,i.length);if(a.length<=32)r.push(new os(a,o.length+i.length));else{let l=a.length>>1;r.push(new os(a.slice(0,l)),new os(a.slice(l)))}}else r.push(i)}replace(t,n,r){if(!(r instanceof os))return super.replace(t,n,r);[t,n]=Sb(this,t,n);let s=CD(this.text,CD(r.text,OG(this.text,0,t)),n),i=this.length+r.length-(n-t);return s.length<=32?new os(s,i):jc.from(os.split(s,[]),i)}sliceString(t,n=this.length,r=`
|
|
575
|
+
`).length);var me=ne+T,we=eqe(le,I,z,x,S,T,me,M,L);return Ce.createElement($,te,Ce.createElement(q,d,!S&&K,G({rows:we,stylesheet:a,useInlineStyles:m})))}}function EW(e,t,n,r,s,i,o){try{var a=e[i](o),l=a.value}catch(c){return void n(c)}a.done?t(l):Promise.resolve(l).then(r,s)}function sqe(e){return function(){var t=this,n=arguments;return new Promise(function(r,s){var i=e.apply(t,n);function o(l){EW(i,r,s,o,a,"next",l)}function a(l){EW(i,r,s,o,a,"throw",l)}o(void 0)})}}function iqe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tle(r.key),r)}}function oqe(e,t,n){return t&&DW(e.prototype,t),n&&DW(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aqe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lqe(e,t){if(t&&(Gf(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aqe(e)}function _A(e){return _A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_A(e)}function x7(e,t){return x7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},x7(e,t)}function cqe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x7(e,t)}function w7(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */w7=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,s=Object.defineProperty||function(q,U,V){q[U]=V.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(q,U,V){return Object.defineProperty(q,U,{value:V,enumerable:!0,configurable:!0,writable:!0}),q[U]}try{c({},"")}catch{c=function(V,X,W){return V[X]=W}}function u(q,U,V,X){var W=U&&U.prototype instanceof S?U:S,K=Object.create(W.prototype),se=new $(X||[]);return s(K,"_invoke",{value:B(q,V,se)}),K}function d(q,U,V){try{return{type:"normal",arg:q.call(U,V)}}catch(X){return{type:"throw",arg:X}}}t.wrap=u;var p="suspendedStart",m="suspendedYield",b="executing",x="completed",C={};function S(){}function A(){}function T(){}var N={};c(N,o,function(){return this});var F=Object.getPrototypeOf,M=F&&F(F(J([])));M&&M!==n&&r.call(M,o)&&(N=M);var I=T.prototype=S.prototype=Object.create(N);function j(q){["next","throw","return"].forEach(function(U){c(q,U,function(V){return this._invoke(U,V)})})}function L(q,U){function V(W,K,se,H){var te=d(q[W],q,K);if(te.type!=="throw"){var oe=te.arg,le=oe.value;return le&&Gf(le)=="object"&&r.call(le,"__await")?U.resolve(le.__await).then(function(ne){V("next",ne,se,H)},function(ne){V("throw",ne,se,H)}):U.resolve(le).then(function(ne){oe.value=ne,se(oe)},function(ne){return V("throw",ne,se,H)})}H(te.arg)}var X;s(this,"_invoke",{value:function(K,se){function H(){return new U(function(te,oe){V(K,se,te,oe)})}return X=X?X.then(H,H):H()}})}function B(q,U,V){var X=p;return function(W,K){if(X===b)throw Error("Generator is already running");if(X===x){if(W==="throw")throw K;return{value:e,done:!0}}for(V.method=W,V.arg=K;;){var se=V.delegate;if(se){var H=z(se,V);if(H){if(H===C)continue;return H}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(X===p)throw X=x,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);X=b;var te=d(q,U,V);if(te.type==="normal"){if(X=V.done?x:m,te.arg===C)continue;return{value:te.arg,done:V.done}}te.type==="throw"&&(X=x,V.method="throw",V.arg=te.arg)}}}function z(q,U){var V=U.method,X=q.iterator[V];if(X===e)return U.delegate=null,V==="throw"&&q.iterator.return&&(U.method="return",U.arg=e,z(q,U),U.method==="throw")||V!=="return"&&(U.method="throw",U.arg=new TypeError("The iterator does not provide a '"+V+"' method")),C;var W=d(X,q.iterator,U.arg);if(W.type==="throw")return U.method="throw",U.arg=W.arg,U.delegate=null,C;var K=W.arg;return K?K.done?(U[q.resultName]=K.value,U.next=q.nextLoc,U.method!=="return"&&(U.method="next",U.arg=e),U.delegate=null,C):K:(U.method="throw",U.arg=new TypeError("iterator result is not an object"),U.delegate=null,C)}function G(q){var U={tryLoc:q[0]};1 in q&&(U.catchLoc=q[1]),2 in q&&(U.finallyLoc=q[2],U.afterLoc=q[3]),this.tryEntries.push(U)}function Q(q){var U=q.completion||{};U.type="normal",delete U.arg,q.completion=U}function $(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(G,this),this.reset(!0)}function J(q){if(q||q===""){var U=q[o];if(U)return U.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var V=-1,X=function W(){for(;++V<q.length;)if(r.call(q,V))return W.value=q[V],W.done=!1,W;return W.value=e,W.done=!0,W};return X.next=X}}throw new TypeError(Gf(q)+" is not iterable")}return A.prototype=T,s(I,"constructor",{value:T,configurable:!0}),s(T,"constructor",{value:A,configurable:!0}),A.displayName=c(T,l,"GeneratorFunction"),t.isGeneratorFunction=function(q){var U=typeof q=="function"&&q.constructor;return!!U&&(U===A||(U.displayName||U.name)==="GeneratorFunction")},t.mark=function(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,T):(q.__proto__=T,c(q,l,"GeneratorFunction")),q.prototype=Object.create(I),q},t.awrap=function(q){return{__await:q}},j(L.prototype),c(L.prototype,a,function(){return this}),t.AsyncIterator=L,t.async=function(q,U,V,X,W){W===void 0&&(W=Promise);var K=new L(u(q,U,V,X),W);return t.isGeneratorFunction(U)?K:K.next().then(function(se){return se.done?se.value:K.next()})},j(I),c(I,l,"Generator"),c(I,o,function(){return this}),c(I,"toString",function(){return"[object Generator]"}),t.keys=function(q){var U=Object(q),V=[];for(var X in U)V.push(X);return V.reverse(),function W(){for(;V.length;){var K=V.pop();if(K in U)return W.value=K,W.done=!1,W}return W.done=!0,W}},t.values=J,$.prototype={constructor:$,reset:function(U){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Q),!U)for(var V in this)V.charAt(0)==="t"&&r.call(this,V)&&!isNaN(+V.slice(1))&&(this[V]=e)},stop:function(){this.done=!0;var U=this.tryEntries[0].completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(U){if(this.done)throw U;var V=this;function X(oe,le){return se.type="throw",se.arg=U,V.next=oe,le&&(V.method="next",V.arg=e),!!le}for(var W=this.tryEntries.length-1;W>=0;--W){var K=this.tryEntries[W],se=K.completion;if(K.tryLoc==="root")return X("end");if(K.tryLoc<=this.prev){var H=r.call(K,"catchLoc"),te=r.call(K,"finallyLoc");if(H&&te){if(this.prev<K.catchLoc)return X(K.catchLoc,!0);if(this.prev<K.finallyLoc)return X(K.finallyLoc)}else if(H){if(this.prev<K.catchLoc)return X(K.catchLoc,!0)}else{if(!te)throw Error("try statement without catch or finally");if(this.prev<K.finallyLoc)return X(K.finallyLoc)}}}},abrupt:function(U,V){for(var X=this.tryEntries.length-1;X>=0;--X){var W=this.tryEntries[X];if(W.tryLoc<=this.prev&&r.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var K=W;break}}K&&(U==="break"||U==="continue")&&K.tryLoc<=V&&V<=K.finallyLoc&&(K=null);var se=K?K.completion:{};return se.type=U,se.arg=V,K?(this.method="next",this.next=K.finallyLoc,C):this.complete(se)},complete:function(U,V){if(U.type==="throw")throw U.arg;return U.type==="break"||U.type==="continue"?this.next=U.arg:U.type==="return"?(this.rval=this.arg=U.arg,this.method="return",this.next="end"):U.type==="normal"&&V&&(this.next=V),C},finish:function(U){for(var V=this.tryEntries.length-1;V>=0;--V){var X=this.tryEntries[V];if(X.finallyLoc===U)return this.complete(X.completion,X.afterLoc),Q(X),C}},catch:function(U){for(var V=this.tryEntries.length-1;V>=0;--V){var X=this.tryEntries[V];if(X.tryLoc===U){var W=X.completion;if(W.type==="throw"){var K=W.arg;Q(X)}return K}}throw Error("illegal catch attempt")},delegateYield:function(U,V,X){return this.delegate={iterator:J(U),resultName:V,nextLoc:X},this.method==="next"&&(this.arg=e),C}},t}function uqe(e,t,n){return t=_A(t),lqe(e,Ole()?Reflect.construct(t,n||[],_A(e).constructor):t.apply(e,n))}function Ole(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ole=function(){return!!e})()}const dqe=function(e){var t,n=e.loader,r=e.isLanguageRegistered,s=e.registerLanguage,i=e.languageLoaders,o=e.noAsyncLoadingLanguages,a=function(l){function c(){return iqe(this,c),uqe(this,c,arguments)}return cqe(c,l),oqe(c,[{key:"componentDidUpdate",value:function(){!c.isRegistered(this.props.language)&&i&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var d=this;c.astGeneratorPromise||c.loadAstGenerator(),c.astGenerator||c.astGeneratorPromise.then(function(){d.forceUpdate()}),!c.isRegistered(this.props.language)&&i&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var d=this,p=this.props.language;p!=="text"&&c.loadLanguage(p).then(function(){return d.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(d){return c.isSupportedLanguage(d)?d:"text"}},{key:"render",value:function(){return Ce.createElement(c.highlightInstance,ng({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:c.astGenerator}))}}],[{key:"preload",value:function(){return c.loadAstGenerator()}},{key:"loadLanguage",value:function(){var u=sqe(w7().mark(function p(m){var b;return w7().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(b=i[m],typeof b!="function"){C.next=5;break}return C.abrupt("return",b(c.registerLanguage));case 5:throw new Error("Language ".concat(m," not supported"));case 6:case"end":return C.stop()}},p)}));function d(p){return u.apply(this,arguments)}return d}()},{key:"isSupportedLanguage",value:function(d){return c.isRegistered(d)||typeof i[d]=="function"}},{key:"loadAstGenerator",value:function(){return c.astGeneratorPromise=n().then(function(d){c.astGenerator=d,s&&c.languages.forEach(function(p,m){return s(d,m,p)})}),c.astGeneratorPromise}}])}(Ce.PureComponent);return t=a,Ju(a,"astGenerator",null),Ju(a,"highlightInstance",rqe(null,{})),Ju(a,"astGeneratorPromise",null),Ju(a,"languages",new Map),Ju(a,"supportedLanguages",e.supportedLanguages||Object.keys(i||{})),Ju(a,"isRegistered",function(l){if(o)return!0;if(!s)throw new Error("Current syntax highlighter doesn't support registration of languages");return t.astGenerator?r(t.astGenerator,l):t.languages.has(l)}),Ju(a,"registerLanguage",function(l,c){if(!s)throw new Error("Current syntax highlighter doesn't support registration of languages");if(t.astGenerator)return s(t.astGenerator,l,c);t.languages.set(l,c)}),a},hqe=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],fqe=dqe({loader:function(){return aie(()=>import("./index-BHq2aUeu.js").then(t=>t.i),[]).then(function(t){return t.default||t})},noAsyncLoadingLanguages:!0,supportedLanguages:hqe});var pqe=e=>t=>{const n=({components:{Pre:r,Code:s},language:i,code:o})=>f.jsx(e,{PreTag:r,CodeTag:s,...t,language:i,children:o});return n.displayName="PrismSyntaxHighlighter",n},mqe=pqe(fqe),M6={},F6={exports:{}},AW;function gqe(){return AW||(AW=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(F6)),F6.exports}var O6={},TW;function yqe(){return TW||(TW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",maxHeight:"inherit",height:"inherit",padding:"0 1em",display:"block",overflow:"auto"},'pre[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",position:"relative",margin:".5em 0",overflow:"visible",padding:"1px",backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em"},'pre[class*="language-"] > code':{position:"relative",zIndex:"1",borderLeft:"10px solid #358ccb",boxShadow:"-1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf",backgroundColor:"#fdfdfd",backgroundImage:"linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%)",backgroundSize:"3em 3em",backgroundOrigin:"content-box",backgroundAttachment:"local"},':not(pre) > code[class*="language-"]':{backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em",position:"relative",padding:".2em",borderRadius:"0.3em",color:"#c92c2c",border:"1px solid rgba(0, 0, 0, 0.1)",display:"inline",whiteSpace:"normal"},'pre[class*="language-"]:before':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"0.18em",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(-2deg)",MozTransform:"rotate(-2deg)",msTransform:"rotate(-2deg)",OTransform:"rotate(-2deg)",transform:"rotate(-2deg)"},'pre[class*="language-"]:after':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"auto",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(2deg)",MozTransform:"rotate(2deg)",msTransform:"rotate(2deg)",OTransform:"rotate(2deg)",transform:"rotate(2deg)",right:"0.75em"},comment:{color:"#7D8B99"},"block-comment":{color:"#7D8B99"},prolog:{color:"#7D8B99"},doctype:{color:"#7D8B99"},cdata:{color:"#7D8B99"},punctuation:{color:"#5F6364"},property:{color:"#c92c2c"},tag:{color:"#c92c2c"},boolean:{color:"#c92c2c"},number:{color:"#c92c2c"},"function-name":{color:"#c92c2c"},constant:{color:"#c92c2c"},symbol:{color:"#c92c2c"},deleted:{color:"#c92c2c"},selector:{color:"#2f9c0a"},"attr-name":{color:"#2f9c0a"},string:{color:"#2f9c0a"},char:{color:"#2f9c0a"},function:{color:"#2f9c0a"},builtin:{color:"#2f9c0a"},inserted:{color:"#2f9c0a"},operator:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},entity:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)",cursor:"help"},url:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},variable:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},atrule:{color:"#1990b8"},"attr-value":{color:"#1990b8"},keyword:{color:"#1990b8"},"class-name":{color:"#1990b8"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"normal"},".language-css .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},".style .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:".7"},'pre[class*="language-"].line-numbers.line-numbers':{paddingLeft:"0"},'pre[class*="language-"].line-numbers.line-numbers code':{paddingLeft:"3.8em"},'pre[class*="language-"].line-numbers.line-numbers .line-numbers-rows':{left:"0"},'pre[class*="language-"][data-line]':{paddingTop:"0",paddingBottom:"0",paddingLeft:"0"},"pre[data-line] code":{position:"relative",paddingLeft:"4em"},"pre .line-highlight":{marginTop:"0"}}}(O6)),O6}var R6={},_W;function bqe(){return _W||(_W=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"white",background:"none",textShadow:"0 -.1em .2em black",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",background:"hsl(30, 20%, 25%)",textShadow:"0 -.1em .2em black",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:".3em solid hsl(30, 20%, 40%)",borderRadius:".5em",boxShadow:"1px 1px .5em black inset"},':not(pre) > code[class*="language-"]':{background:"hsl(30, 20%, 25%)",padding:".15em .2em .05em",borderRadius:".3em",border:".13em solid hsl(30, 20%, 40%)",boxShadow:"1px 1px .3em -.1em black inset",whiteSpace:"normal"},comment:{color:"hsl(30, 20%, 50%)"},prolog:{color:"hsl(30, 20%, 50%)"},doctype:{color:"hsl(30, 20%, 50%)"},cdata:{color:"hsl(30, 20%, 50%)"},punctuation:{Opacity:".7"},namespace:{Opacity:".7"},property:{color:"hsl(350, 40%, 70%)"},tag:{color:"hsl(350, 40%, 70%)"},boolean:{color:"hsl(350, 40%, 70%)"},number:{color:"hsl(350, 40%, 70%)"},constant:{color:"hsl(350, 40%, 70%)"},symbol:{color:"hsl(350, 40%, 70%)"},selector:{color:"hsl(75, 70%, 60%)"},"attr-name":{color:"hsl(75, 70%, 60%)"},string:{color:"hsl(75, 70%, 60%)"},char:{color:"hsl(75, 70%, 60%)"},builtin:{color:"hsl(75, 70%, 60%)"},inserted:{color:"hsl(75, 70%, 60%)"},operator:{color:"hsl(40, 90%, 60%)"},entity:{color:"hsl(40, 90%, 60%)",cursor:"help"},url:{color:"hsl(40, 90%, 60%)"},".language-css .token.string":{color:"hsl(40, 90%, 60%)"},".style .token.string":{color:"hsl(40, 90%, 60%)"},variable:{color:"hsl(40, 90%, 60%)"},atrule:{color:"hsl(350, 40%, 70%)"},"attr-value":{color:"hsl(350, 40%, 70%)"},keyword:{color:"hsl(350, 40%, 70%)"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},deleted:{color:"red"}}}(R6)),R6}var I6={},NW;function vqe(){return NW||(NW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"black",color:"white",boxShadow:"-.3em 0 0 .3em black, .3em 0 0 .3em black"},'pre[class*="language-"]':{fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:".4em .8em",margin:".5em 0",overflow:"auto",background:`url('data:image/svg+xml;charset=utf-8,<svg%20version%3D"1.1"%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"100"%20height%3D"100"%20fill%3D"rgba(0%2C0%2C0%2C.2)">%0D%0A<polygon%20points%3D"0%2C50%2050%2C0%200%2C0"%20%2F>%0D%0A<polygon%20points%3D"0%2C100%2050%2C100%20100%2C50%20100%2C0"%20%2F>%0D%0A<%2Fsvg>')`,backgroundSize:"1em 1em"},':not(pre) > code[class*="language-"]':{padding:".2em",borderRadius:".3em",boxShadow:"none",whiteSpace:"normal"},comment:{color:"#aaa"},prolog:{color:"#aaa"},doctype:{color:"#aaa"},cdata:{color:"#aaa"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#0cf"},tag:{color:"#0cf"},boolean:{color:"#0cf"},number:{color:"#0cf"},constant:{color:"#0cf"},symbol:{color:"#0cf"},selector:{color:"yellow"},"attr-name":{color:"yellow"},string:{color:"yellow"},char:{color:"yellow"},builtin:{color:"yellow"},operator:{color:"yellowgreen"},entity:{color:"yellowgreen",cursor:"help"},url:{color:"yellowgreen"},".language-css .token.string":{color:"yellowgreen"},variable:{color:"yellowgreen"},inserted:{color:"yellowgreen"},atrule:{color:"deeppink"},"attr-value":{color:"deeppink"},keyword:{color:"deeppink"},regex:{color:"orange"},important:{color:"orange",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},deleted:{color:"red"},"pre.diff-highlight.diff-highlight > code .token.deleted:not(.prefix)":{backgroundColor:"rgba(255, 0, 0, .3)",display:"inline"},"pre > code.diff-highlight.diff-highlight .token.deleted:not(.prefix)":{backgroundColor:"rgba(255, 0, 0, .3)",display:"inline"},"pre.diff-highlight.diff-highlight > code .token.inserted:not(.prefix)":{backgroundColor:"rgba(0, 255, 128, .3)",display:"inline"},"pre > code.diff-highlight.diff-highlight .token.inserted:not(.prefix)":{backgroundColor:"rgba(0, 255, 128, .3)",display:"inline"}}}(I6)),I6}var j6={},PW;function xqe(){return PW||(PW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#272822",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#272822",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8292a2"},prolog:{color:"#8292a2"},doctype:{color:"#8292a2"},cdata:{color:"#8292a2"},punctuation:{color:"#f8f8f2"},namespace:{Opacity:".7"},property:{color:"#f92672"},tag:{color:"#f92672"},constant:{color:"#f92672"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},boolean:{color:"#ae81ff"},number:{color:"#ae81ff"},selector:{color:"#a6e22e"},"attr-name":{color:"#a6e22e"},string:{color:"#a6e22e"},char:{color:"#a6e22e"},builtin:{color:"#a6e22e"},inserted:{color:"#a6e22e"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#e6db74"},"attr-value":{color:"#e6db74"},function:{color:"#e6db74"},"class-name":{color:"#e6db74"},keyword:{color:"#66d9ef"},regex:{color:"#fd971f"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(j6)),j6}var L6={},MW;function wqe(){return MW||(MW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#657b83",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#657b83",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",backgroundColor:"#fdf6e3"},'pre[class*="language-"]::-moz-selection':{background:"#073642"},'pre[class*="language-"] ::-moz-selection':{background:"#073642"},'code[class*="language-"]::-moz-selection':{background:"#073642"},'code[class*="language-"] ::-moz-selection':{background:"#073642"},'pre[class*="language-"]::selection':{background:"#073642"},'pre[class*="language-"] ::selection':{background:"#073642"},'code[class*="language-"]::selection':{background:"#073642"},'code[class*="language-"] ::selection':{background:"#073642"},':not(pre) > code[class*="language-"]':{backgroundColor:"#fdf6e3",padding:".1em",borderRadius:".3em"},comment:{color:"#93a1a1"},prolog:{color:"#93a1a1"},doctype:{color:"#93a1a1"},cdata:{color:"#93a1a1"},punctuation:{color:"#586e75"},namespace:{Opacity:".7"},property:{color:"#268bd2"},tag:{color:"#268bd2"},boolean:{color:"#268bd2"},number:{color:"#268bd2"},constant:{color:"#268bd2"},symbol:{color:"#268bd2"},deleted:{color:"#268bd2"},selector:{color:"#2aa198"},"attr-name":{color:"#2aa198"},string:{color:"#2aa198"},char:{color:"#2aa198"},builtin:{color:"#2aa198"},url:{color:"#2aa198"},inserted:{color:"#2aa198"},entity:{color:"#657b83",background:"#eee8d5",cursor:"help"},atrule:{color:"#859900"},"attr-value":{color:"#859900"},keyword:{color:"#859900"},function:{color:"#b58900"},"class-name":{color:"#b58900"},regex:{color:"#cb4b16"},important:{color:"#cb4b16",fontWeight:"bold"},variable:{color:"#cb4b16"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(L6)),L6}var B6={},FW;function Sqe(){return FW||(FW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#ccc",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#ccc",background:"#2d2d2d",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},':not(pre) > code[class*="language-"]':{background:"#2d2d2d",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#999"},"block-comment":{color:"#999"},prolog:{color:"#999"},doctype:{color:"#999"},cdata:{color:"#999"},punctuation:{color:"#ccc"},tag:{color:"#e2777a"},"attr-name":{color:"#e2777a"},namespace:{color:"#e2777a"},deleted:{color:"#e2777a"},"function-name":{color:"#6196cc"},boolean:{color:"#f08d49"},number:{color:"#f08d49"},function:{color:"#f08d49"},property:{color:"#f8c555"},"class-name":{color:"#f8c555"},constant:{color:"#f8c555"},symbol:{color:"#f8c555"},selector:{color:"#cc99cd"},important:{color:"#cc99cd",fontWeight:"bold"},atrule:{color:"#cc99cd"},keyword:{color:"#cc99cd"},builtin:{color:"#cc99cd"},string:{color:"#7ec699"},char:{color:"#7ec699"},"attr-value":{color:"#7ec699"},regex:{color:"#7ec699"},variable:{color:"#7ec699"},operator:{color:"#67cdcc"},entity:{color:"#67cdcc",cursor:"help"},url:{color:"#67cdcc"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{color:"green"}}}(B6)),B6}var $6={},OW;function Cqe(){return OW||(OW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"white",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",textShadow:"0 -.1em .2em black",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",background:"hsl(0, 0%, 8%)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",textShadow:"0 -.1em .2em black",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",borderRadius:".5em",border:".3em solid hsl(0, 0%, 33%)",boxShadow:"1px 1px .5em black inset",margin:".5em 0",overflow:"auto",padding:"1em"},':not(pre) > code[class*="language-"]':{background:"hsl(0, 0%, 8%)",borderRadius:".3em",border:".13em solid hsl(0, 0%, 33%)",boxShadow:"1px 1px .3em -.1em black inset",padding:".15em .2em .05em",whiteSpace:"normal"},'pre[class*="language-"]::-moz-selection':{background:"hsla(0, 0%, 93%, 0.15)",textShadow:"none"},'pre[class*="language-"]::selection':{background:"hsla(0, 0%, 93%, 0.15)",textShadow:"none"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"]::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},comment:{color:"hsl(0, 0%, 47%)"},prolog:{color:"hsl(0, 0%, 47%)"},doctype:{color:"hsl(0, 0%, 47%)"},cdata:{color:"hsl(0, 0%, 47%)"},punctuation:{Opacity:".7"},namespace:{Opacity:".7"},tag:{color:"hsl(14, 58%, 55%)"},boolean:{color:"hsl(14, 58%, 55%)"},number:{color:"hsl(14, 58%, 55%)"},deleted:{color:"hsl(14, 58%, 55%)"},keyword:{color:"hsl(53, 89%, 79%)"},property:{color:"hsl(53, 89%, 79%)"},selector:{color:"hsl(53, 89%, 79%)"},constant:{color:"hsl(53, 89%, 79%)"},symbol:{color:"hsl(53, 89%, 79%)"},builtin:{color:"hsl(53, 89%, 79%)"},"attr-name":{color:"hsl(76, 21%, 52%)"},"attr-value":{color:"hsl(76, 21%, 52%)"},string:{color:"hsl(76, 21%, 52%)"},char:{color:"hsl(76, 21%, 52%)"},operator:{color:"hsl(76, 21%, 52%)"},entity:{color:"hsl(76, 21%, 52%)",cursor:"help"},url:{color:"hsl(76, 21%, 52%)"},".language-css .token.string":{color:"hsl(76, 21%, 52%)"},".style .token.string":{color:"hsl(76, 21%, 52%)"},variable:{color:"hsl(76, 21%, 52%)"},inserted:{color:"hsl(76, 21%, 52%)"},atrule:{color:"hsl(218, 22%, 55%)"},regex:{color:"hsl(42, 75%, 65%)"},important:{color:"hsl(42, 75%, 65%)",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},".language-markup .token.tag":{color:"hsl(33, 33%, 52%)"},".language-markup .token.attr-name":{color:"hsl(33, 33%, 52%)"},".language-markup .token.punctuation":{color:"hsl(33, 33%, 52%)"},"":{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0))",borderBottom:"1px dashed hsl(0, 0%, 33%)",borderTop:"1px dashed hsl(0, 0%, 33%)",marginTop:"0.75em",zIndex:"0"},".line-highlight.line-highlight:before":{backgroundColor:"hsl(215, 15%, 59%)",color:"hsl(24, 20%, 95%)"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"hsl(215, 15%, 59%)",color:"hsl(24, 20%, 95%)"}}}($6)),$6}var z6={},RW;function kqe(){return RW||(RW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(z6)),z6}var H6={},IW;function Eqe(){return IW||(IW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2b2b2b",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2b2b2b",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#d4d0ab"},prolog:{color:"#d4d0ab"},doctype:{color:"#d4d0ab"},cdata:{color:"#d4d0ab"},punctuation:{color:"#fefefe"},property:{color:"#ffa07a"},tag:{color:"#ffa07a"},constant:{color:"#ffa07a"},symbol:{color:"#ffa07a"},deleted:{color:"#ffa07a"},boolean:{color:"#00e0e0"},number:{color:"#00e0e0"},selector:{color:"#abe338"},"attr-name":{color:"#abe338"},string:{color:"#abe338"},char:{color:"#abe338"},builtin:{color:"#abe338"},inserted:{color:"#abe338"},operator:{color:"#00e0e0"},entity:{color:"#00e0e0",cursor:"help"},url:{color:"#00e0e0"},".language-css .token.string":{color:"#00e0e0"},".style .token.string":{color:"#00e0e0"},variable:{color:"#00e0e0"},atrule:{color:"#ffd700"},"attr-value":{color:"#ffd700"},function:{color:"#ffd700"},keyword:{color:"#00e0e0"},regex:{color:"#ffd700"},important:{color:"#ffd700",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(H6)),H6}var V6={},jW;function Dqe(){return jW||(jW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",background:"#1d1f21"},':not(pre) > code[class*="language-"]':{background:"#1d1f21",padding:".1em",borderRadius:".3em"},comment:{color:"#7C7C7C"},prolog:{color:"#7C7C7C"},doctype:{color:"#7C7C7C"},cdata:{color:"#7C7C7C"},punctuation:{color:"#c5c8c6"},".namespace":{Opacity:".7"},property:{color:"#96CBFE"},keyword:{color:"#96CBFE"},tag:{color:"#96CBFE"},"class-name":{color:"#FFFFB6",textDecoration:"underline"},boolean:{color:"#99CC99"},constant:{color:"#99CC99"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},number:{color:"#FF73FD"},selector:{color:"#A8FF60"},"attr-name":{color:"#A8FF60"},string:{color:"#A8FF60"},char:{color:"#A8FF60"},builtin:{color:"#A8FF60"},inserted:{color:"#A8FF60"},variable:{color:"#C6C5FE"},operator:{color:"#EDEDED"},entity:{color:"#FFFFB6",cursor:"help"},url:{color:"#96CBFE"},".language-css .token.string":{color:"#87C38A"},".style .token.string":{color:"#87C38A"},atrule:{color:"#F9EE98"},"attr-value":{color:"#F9EE98"},function:{color:"#DAD085"},regex:{color:"#E9C062"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(V6)),V6}var U6={},LW;function Aqe(){return LW||(LW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#f5f7ff",color:"#5e6687"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#f5f7ff",color:"#5e6687",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"]::selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#dfe2f1"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#898ea4"},prolog:{color:"#898ea4"},doctype:{color:"#898ea4"},cdata:{color:"#898ea4"},punctuation:{color:"#5e6687"},namespace:{Opacity:".7"},operator:{color:"#c76b29"},boolean:{color:"#c76b29"},number:{color:"#c76b29"},property:{color:"#c08b30"},tag:{color:"#3d8fd1"},string:{color:"#22a2c9"},selector:{color:"#6679cc"},"attr-name":{color:"#c76b29"},entity:{color:"#22a2c9",cursor:"help"},url:{color:"#22a2c9"},".language-css .token.string":{color:"#22a2c9"},".style .token.string":{color:"#22a2c9"},"attr-value":{color:"#ac9739"},keyword:{color:"#ac9739"},control:{color:"#ac9739"},directive:{color:"#ac9739"},unit:{color:"#ac9739"},statement:{color:"#22a2c9"},regex:{color:"#22a2c9"},atrule:{color:"#22a2c9"},placeholder:{color:"#3d8fd1"},variable:{color:"#3d8fd1"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #202746",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#c94922"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:"0.4em solid #c94922",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#dfe2f1"},".line-numbers .line-numbers-rows > span:before":{color:"#979db4"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(107, 115, 148, 0.2) 70%, rgba(107, 115, 148, 0))"}}}(U6)),U6}var q6={},BW;function Tqe(){return BW||(BW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#fff",textShadow:"0 1px 1px #000",fontFamily:'Menlo, Monaco, "Courier New", monospace',direction:"ltr",textAlign:"left",wordSpacing:"normal",whiteSpace:"pre",wordWrap:"normal",lineHeight:"1.4",background:"none",border:"0",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#fff",textShadow:"0 1px 1px #000",fontFamily:'Menlo, Monaco, "Courier New", monospace',direction:"ltr",textAlign:"left",wordSpacing:"normal",whiteSpace:"pre",wordWrap:"normal",lineHeight:"1.4",background:"#222",border:"0",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"15px",margin:"1em 0",overflow:"auto",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},'pre[class*="language-"] code':{float:"left",padding:"0 15px 0 0"},':not(pre) > code[class*="language-"]':{background:"#222",padding:"5px 10px",lineHeight:"1",MozBorderRadius:"3px",WebkitBorderRadius:"3px",borderRadius:"3px"},comment:{color:"#797979"},prolog:{color:"#797979"},doctype:{color:"#797979"},cdata:{color:"#797979"},selector:{color:"#fff"},operator:{color:"#fff"},punctuation:{color:"#fff"},namespace:{Opacity:".7"},tag:{color:"#ffd893"},boolean:{color:"#ffd893"},atrule:{color:"#B0C975"},"attr-value":{color:"#B0C975"},hex:{color:"#B0C975"},string:{color:"#B0C975"},property:{color:"#c27628"},entity:{color:"#c27628",cursor:"help"},url:{color:"#c27628"},"attr-name":{color:"#c27628"},keyword:{color:"#c27628"},regex:{color:"#9B71C6"},function:{color:"#e5a638"},constant:{color:"#e5a638"},variable:{color:"#fdfba8"},number:{color:"#8799B0"},important:{color:"#E45734"},deliminator:{color:"#E45734"},".line-highlight.line-highlight":{background:"rgba(255, 255, 255, .2)"},".line-highlight.line-highlight:before":{top:".3em",backgroundColor:"rgba(255, 255, 255, .3)",color:"#fff",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},".line-highlight.line-highlight[data-end]:after":{top:".3em",backgroundColor:"rgba(255, 255, 255, .3)",color:"#fff",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},".line-numbers .line-numbers-rows > span":{borderRight:"3px #d9d336 solid"}}}(q6)),q6}var W6={},$W;function _qe(){return $W||($W=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#111b27",background:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#111b27",background:"#e3eaf2",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{background:"#8da1b9"},'pre[class*="language-"] ::-moz-selection':{background:"#8da1b9"},'code[class*="language-"]::-moz-selection':{background:"#8da1b9"},'code[class*="language-"] ::-moz-selection':{background:"#8da1b9"},'pre[class*="language-"]::selection':{background:"#8da1b9"},'pre[class*="language-"] ::selection':{background:"#8da1b9"},'code[class*="language-"]::selection':{background:"#8da1b9"},'code[class*="language-"] ::selection':{background:"#8da1b9"},':not(pre) > code[class*="language-"]':{background:"#e3eaf2",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#3c526d"},prolog:{color:"#3c526d"},doctype:{color:"#3c526d"},cdata:{color:"#3c526d"},punctuation:{color:"#111b27"},"delimiter.important":{color:"#006d6d",fontWeight:"inherit"},"selector.parent":{color:"#006d6d"},tag:{color:"#006d6d"},"tag.punctuation":{color:"#006d6d"},"attr-name":{color:"#755f00"},boolean:{color:"#755f00"},"boolean.important":{color:"#755f00"},number:{color:"#755f00"},constant:{color:"#755f00"},"selector.attribute":{color:"#755f00"},"class-name":{color:"#005a8e"},key:{color:"#005a8e"},parameter:{color:"#005a8e"},property:{color:"#005a8e"},"property-access":{color:"#005a8e"},variable:{color:"#005a8e"},"attr-value":{color:"#116b00"},inserted:{color:"#116b00"},color:{color:"#116b00"},"selector.value":{color:"#116b00"},string:{color:"#116b00"},"string.url-link":{color:"#116b00"},builtin:{color:"#af00af"},"keyword-array":{color:"#af00af"},package:{color:"#af00af"},regex:{color:"#af00af"},function:{color:"#7c00aa"},"selector.class":{color:"#7c00aa"},"selector.id":{color:"#7c00aa"},"atrule.rule":{color:"#a04900"},combinator:{color:"#a04900"},keyword:{color:"#a04900"},operator:{color:"#a04900"},"pseudo-class":{color:"#a04900"},"pseudo-element":{color:"#a04900"},selector:{color:"#a04900"},unit:{color:"#a04900"},deleted:{color:"#c22f2e"},important:{color:"#c22f2e",fontWeight:"bold"},"keyword-this":{color:"#005a8e",fontWeight:"bold"},this:{color:"#005a8e",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#005a8e",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#005a8e",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#af00af"},".language-markdown .token.code":{color:"#006d6d"},".language-markdown .token.hr.punctuation":{color:"#005a8e"},".language-markdown .token.url > .token.content":{color:"#116b00"},".language-markdown .token.url-link":{color:"#755f00"},".language-markdown .token.list.punctuation":{color:"#af00af"},".language-markdown .token.table-header":{color:"#111b27"},".language-json .token.operator":{color:"#111b27"},".language-scss .token.variable":{color:"#006d6d"},"token.tab:not(:empty):before":{color:"#3c526d"},"token.cr:before":{color:"#3c526d"},"token.lf:before":{color:"#3c526d"},"token.space:before":{color:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#e3eaf2",background:"#005a8e"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#e3eaf2",background:"#005a8e"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#e3eaf2",background:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#e3eaf2",background:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#e3eaf2",background:"#3c526d"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #8da1b92f 70%, #8da1b925)"},".line-highlight.line-highlight:before":{backgroundColor:"#3c526d",color:"#e3eaf2",boxShadow:"0 1px #8da1b9"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#3c526d",color:"#e3eaf2",boxShadow:"0 1px #8da1b9"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#3c526d1f"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #8da1b97a",background:"#d0dae77a"},".line-numbers .line-numbers-rows > span:before":{color:"#3c526dda"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#7c00aa"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#7c00aa"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#7c00aa"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#c22f2e1f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#c22f2e1f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#116b001f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#116b001f"},".command-line .command-line-prompt":{borderRight:"1px solid #8da1b97a"},".command-line .command-line-prompt > span:before":{color:"#3c526dda"}}}(W6)),W6}var G6={},zW;function Nqe(){return zW||(zW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#e3eaf2",background:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#e3eaf2",background:"#111b27",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{background:"#3c526d"},'pre[class*="language-"] ::-moz-selection':{background:"#3c526d"},'code[class*="language-"]::-moz-selection':{background:"#3c526d"},'code[class*="language-"] ::-moz-selection':{background:"#3c526d"},'pre[class*="language-"]::selection':{background:"#3c526d"},'pre[class*="language-"] ::selection':{background:"#3c526d"},'code[class*="language-"]::selection':{background:"#3c526d"},'code[class*="language-"] ::selection':{background:"#3c526d"},':not(pre) > code[class*="language-"]':{background:"#111b27",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#8da1b9"},prolog:{color:"#8da1b9"},doctype:{color:"#8da1b9"},cdata:{color:"#8da1b9"},punctuation:{color:"#e3eaf2"},"delimiter.important":{color:"#66cccc",fontWeight:"inherit"},"selector.parent":{color:"#66cccc"},tag:{color:"#66cccc"},"tag.punctuation":{color:"#66cccc"},"attr-name":{color:"#e6d37a"},boolean:{color:"#e6d37a"},"boolean.important":{color:"#e6d37a"},number:{color:"#e6d37a"},constant:{color:"#e6d37a"},"selector.attribute":{color:"#e6d37a"},"class-name":{color:"#6cb8e6"},key:{color:"#6cb8e6"},parameter:{color:"#6cb8e6"},property:{color:"#6cb8e6"},"property-access":{color:"#6cb8e6"},variable:{color:"#6cb8e6"},"attr-value":{color:"#91d076"},inserted:{color:"#91d076"},color:{color:"#91d076"},"selector.value":{color:"#91d076"},string:{color:"#91d076"},"string.url-link":{color:"#91d076"},builtin:{color:"#f4adf4"},"keyword-array":{color:"#f4adf4"},package:{color:"#f4adf4"},regex:{color:"#f4adf4"},function:{color:"#c699e3"},"selector.class":{color:"#c699e3"},"selector.id":{color:"#c699e3"},"atrule.rule":{color:"#e9ae7e"},combinator:{color:"#e9ae7e"},keyword:{color:"#e9ae7e"},operator:{color:"#e9ae7e"},"pseudo-class":{color:"#e9ae7e"},"pseudo-element":{color:"#e9ae7e"},selector:{color:"#e9ae7e"},unit:{color:"#e9ae7e"},deleted:{color:"#cd6660"},important:{color:"#cd6660",fontWeight:"bold"},"keyword-this":{color:"#6cb8e6",fontWeight:"bold"},this:{color:"#6cb8e6",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#f4adf4"},".language-markdown .token.code":{color:"#66cccc"},".language-markdown .token.hr.punctuation":{color:"#6cb8e6"},".language-markdown .token.url .token.content":{color:"#91d076"},".language-markdown .token.url-link":{color:"#e6d37a"},".language-markdown .token.list.punctuation":{color:"#f4adf4"},".language-markdown .token.table-header":{color:"#e3eaf2"},".language-json .token.operator":{color:"#e3eaf2"},".language-scss .token.variable":{color:"#66cccc"},"token.tab:not(:empty):before":{color:"#8da1b9"},"token.cr:before":{color:"#8da1b9"},"token.lf:before":{color:"#8da1b9"},"token.space:before":{color:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#111b27",background:"#8da1b9"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #3c526d5f 70%, #3c526d55)"},".line-highlight.line-highlight:before":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#8da1b918"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #0b121b",background:"#0b121b7a"},".line-numbers .line-numbers-rows > span:before":{color:"#8da1b9da"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#c699e3"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},".command-line .command-line-prompt":{borderRight:"1px solid #0b121b"},".command-line .command-line-prompt > span:before":{color:"#8da1b9da"}}}(G6)),G6}var Y6={},HW;function Pqe(){return HW||(HW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",position:"relative",borderLeft:"10px solid #358ccb",boxShadow:"-1px 0 0 0 #358ccb, 0 0 0 1px #dfdfdf",backgroundColor:"#fdfdfd",backgroundImage:"linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%)",backgroundSize:"3em 3em",backgroundOrigin:"content-box",backgroundAttachment:"local",margin:".5em 0",padding:"0 1em"},'pre[class*="language-"] > code':{display:"block"},':not(pre) > code[class*="language-"]':{position:"relative",padding:".2em",borderRadius:"0.3em",color:"#c92c2c",border:"1px solid rgba(0, 0, 0, 0.1)",display:"inline",whiteSpace:"normal",backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box"},comment:{color:"#7D8B99"},"block-comment":{color:"#7D8B99"},prolog:{color:"#7D8B99"},doctype:{color:"#7D8B99"},cdata:{color:"#7D8B99"},punctuation:{color:"#5F6364"},property:{color:"#c92c2c"},tag:{color:"#c92c2c"},boolean:{color:"#c92c2c"},number:{color:"#c92c2c"},"function-name":{color:"#c92c2c"},constant:{color:"#c92c2c"},symbol:{color:"#c92c2c"},deleted:{color:"#c92c2c"},selector:{color:"#2f9c0a"},"attr-name":{color:"#2f9c0a"},string:{color:"#2f9c0a"},char:{color:"#2f9c0a"},function:{color:"#2f9c0a"},builtin:{color:"#2f9c0a"},inserted:{color:"#2f9c0a"},operator:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},entity:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)",cursor:"help"},url:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},variable:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},atrule:{color:"#1990b8"},"attr-value":{color:"#1990b8"},keyword:{color:"#1990b8"},"class-name":{color:"#1990b8"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"normal"},".language-css .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},".style .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:".7"}}}(Y6)),Y6}var X6={},VW;function Mqe(){return VW||(VW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#a9b7c6",fontFamily:"Consolas, Monaco, 'Andale Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#a9b7c6",fontFamily:"Consolas, Monaco, 'Andale Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#2b2b2b"},'pre[class*="language-"]::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"] ::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"]::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"] ::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"]::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"] ::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"]::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"] ::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},':not(pre) > code[class*="language-"]':{background:"#2b2b2b",padding:".1em",borderRadius:".3em"},comment:{color:"#808080"},prolog:{color:"#808080"},cdata:{color:"#808080"},delimiter:{color:"#cc7832"},boolean:{color:"#cc7832"},keyword:{color:"#cc7832"},selector:{color:"#cc7832"},important:{color:"#cc7832"},atrule:{color:"#cc7832"},operator:{color:"#a9b7c6"},punctuation:{color:"#a9b7c6"},"attr-name":{color:"#a9b7c6"},tag:{color:"#e8bf6a"},"tag.punctuation":{color:"#e8bf6a"},doctype:{color:"#e8bf6a"},builtin:{color:"#e8bf6a"},entity:{color:"#6897bb"},number:{color:"#6897bb"},symbol:{color:"#6897bb"},property:{color:"#9876aa"},constant:{color:"#9876aa"},variable:{color:"#9876aa"},string:{color:"#6a8759"},char:{color:"#6a8759"},"attr-value":{color:"#a5c261"},"attr-value.punctuation":{color:"#a5c261"},"attr-value.punctuation:first-child":{color:"#a9b7c6"},url:{color:"#287bde",textDecoration:"underline"},function:{color:"#ffc66d"},regex:{background:"#364135"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#294436"},deleted:{background:"#484a4a"},"code.language-css .token.property":{color:"#a9b7c6"},"code.language-css .token.property + .token.punctuation":{color:"#a9b7c6"},"code.language-css .token.id":{color:"#ffc66d"},"code.language-css .token.selector > .token.class":{color:"#ffc66d"},"code.language-css .token.selector > .token.attribute":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-class":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-element":{color:"#ffc66d"}}}(X6)),X6}var K6={},UW;function Fqe(){return UW||(UW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#282a36",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#282a36",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#6272a4"},prolog:{color:"#6272a4"},doctype:{color:"#6272a4"},cdata:{color:"#6272a4"},punctuation:{color:"#f8f8f2"},".namespace":{Opacity:".7"},property:{color:"#ff79c6"},tag:{color:"#ff79c6"},constant:{color:"#ff79c6"},symbol:{color:"#ff79c6"},deleted:{color:"#ff79c6"},boolean:{color:"#bd93f9"},number:{color:"#bd93f9"},selector:{color:"#50fa7b"},"attr-name":{color:"#50fa7b"},string:{color:"#50fa7b"},char:{color:"#50fa7b"},builtin:{color:"#50fa7b"},inserted:{color:"#50fa7b"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#f1fa8c"},"attr-value":{color:"#f1fa8c"},function:{color:"#f1fa8c"},"class-name":{color:"#f1fa8c"},keyword:{color:"#8be9fd"},regex:{color:"#ffb86c"},important:{color:"#ffb86c",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(K6)),K6}var Z6={},qW;function Oqe(){return qW||(qW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2734",color:"#9a86fd"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2734",color:"#9a86fd",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"]::selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#6a51e6"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#6c6783"},prolog:{color:"#6c6783"},doctype:{color:"#6c6783"},cdata:{color:"#6c6783"},punctuation:{color:"#6c6783"},namespace:{Opacity:".7"},tag:{color:"#e09142"},operator:{color:"#e09142"},number:{color:"#e09142"},property:{color:"#9a86fd"},function:{color:"#9a86fd"},"tag-id":{color:"#eeebff"},selector:{color:"#eeebff"},"atrule-id":{color:"#eeebff"},"code.language-javascript":{color:"#c4b9fe"},"attr-name":{color:"#c4b9fe"},"code.language-css":{color:"#ffcc99"},"code.language-scss":{color:"#ffcc99"},boolean:{color:"#ffcc99"},string:{color:"#ffcc99"},entity:{color:"#ffcc99",cursor:"help"},url:{color:"#ffcc99"},".language-css .token.string":{color:"#ffcc99"},".language-scss .token.string":{color:"#ffcc99"},".style .token.string":{color:"#ffcc99"},"attr-value":{color:"#ffcc99"},keyword:{color:"#ffcc99"},control:{color:"#ffcc99"},directive:{color:"#ffcc99"},unit:{color:"#ffcc99"},statement:{color:"#ffcc99"},regex:{color:"#ffcc99"},atrule:{color:"#ffcc99"},placeholder:{color:"#ffcc99"},variable:{color:"#ffcc99"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #eeebff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#c4b9fe"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #8a75f5",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#2c2937"},".line-numbers .line-numbers-rows > span:before":{color:"#3c3949"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(224, 145, 66, 0.2) 70%, rgba(224, 145, 66, 0))"}}}(Z6)),Z6}var J6={},WW;function Rqe(){return WW||(WW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#322d29",color:"#88786d"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#322d29",color:"#88786d",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"]::selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#6f5849"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#6a5f58"},prolog:{color:"#6a5f58"},doctype:{color:"#6a5f58"},cdata:{color:"#6a5f58"},punctuation:{color:"#6a5f58"},namespace:{Opacity:".7"},tag:{color:"#bfa05a"},operator:{color:"#bfa05a"},number:{color:"#bfa05a"},property:{color:"#88786d"},function:{color:"#88786d"},"tag-id":{color:"#fff3eb"},selector:{color:"#fff3eb"},"atrule-id":{color:"#fff3eb"},"code.language-javascript":{color:"#a48774"},"attr-name":{color:"#a48774"},"code.language-css":{color:"#fcc440"},"code.language-scss":{color:"#fcc440"},boolean:{color:"#fcc440"},string:{color:"#fcc440"},entity:{color:"#fcc440",cursor:"help"},url:{color:"#fcc440"},".language-css .token.string":{color:"#fcc440"},".language-scss .token.string":{color:"#fcc440"},".style .token.string":{color:"#fcc440"},"attr-value":{color:"#fcc440"},keyword:{color:"#fcc440"},control:{color:"#fcc440"},directive:{color:"#fcc440"},unit:{color:"#fcc440"},statement:{color:"#fcc440"},regex:{color:"#fcc440"},atrule:{color:"#fcc440"},placeholder:{color:"#fcc440"},variable:{color:"#fcc440"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #fff3eb",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#a48774"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #816d5f",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#35302b"},".line-numbers .line-numbers-rows > span:before":{color:"#46403d"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(191, 160, 90, 0.2) 70%, rgba(191, 160, 90, 0))"}}}(J6)),J6}var Q6={},GW;function Iqe(){return GW||(GW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2d2a",color:"#687d68"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2d2a",color:"#687d68",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#435643"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#435643"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#435643"},'code[class*="language-"]::selection':{textShadow:"none",background:"#435643"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#435643"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#535f53"},prolog:{color:"#535f53"},doctype:{color:"#535f53"},cdata:{color:"#535f53"},punctuation:{color:"#535f53"},namespace:{Opacity:".7"},tag:{color:"#a2b34d"},operator:{color:"#a2b34d"},number:{color:"#a2b34d"},property:{color:"#687d68"},function:{color:"#687d68"},"tag-id":{color:"#f0fff0"},selector:{color:"#f0fff0"},"atrule-id":{color:"#f0fff0"},"code.language-javascript":{color:"#b3d6b3"},"attr-name":{color:"#b3d6b3"},"code.language-css":{color:"#e5fb79"},"code.language-scss":{color:"#e5fb79"},boolean:{color:"#e5fb79"},string:{color:"#e5fb79"},entity:{color:"#e5fb79",cursor:"help"},url:{color:"#e5fb79"},".language-css .token.string":{color:"#e5fb79"},".language-scss .token.string":{color:"#e5fb79"},".style .token.string":{color:"#e5fb79"},"attr-value":{color:"#e5fb79"},keyword:{color:"#e5fb79"},control:{color:"#e5fb79"},directive:{color:"#e5fb79"},unit:{color:"#e5fb79"},statement:{color:"#e5fb79"},regex:{color:"#e5fb79"},atrule:{color:"#e5fb79"},placeholder:{color:"#e5fb79"},variable:{color:"#e5fb79"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #f0fff0",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#b3d6b3"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #5c705c",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#2c302c"},".line-numbers .line-numbers-rows > span:before":{color:"#3b423b"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(162, 179, 77, 0.2) 70%, rgba(162, 179, 77, 0))"}}}(Q6)),Q6}var eN={},YW;function jqe(){return YW||(YW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#b6ad9a"},prolog:{color:"#b6ad9a"},doctype:{color:"#b6ad9a"},cdata:{color:"#b6ad9a"},punctuation:{color:"#b6ad9a"},namespace:{Opacity:".7"},tag:{color:"#063289"},operator:{color:"#063289"},number:{color:"#063289"},property:{color:"#b29762"},function:{color:"#b29762"},"tag-id":{color:"#2d2006"},selector:{color:"#2d2006"},"atrule-id":{color:"#2d2006"},"code.language-javascript":{color:"#896724"},"attr-name":{color:"#896724"},"code.language-css":{color:"#728fcb"},"code.language-scss":{color:"#728fcb"},boolean:{color:"#728fcb"},string:{color:"#728fcb"},entity:{color:"#728fcb",cursor:"help"},url:{color:"#728fcb"},".language-css .token.string":{color:"#728fcb"},".language-scss .token.string":{color:"#728fcb"},".style .token.string":{color:"#728fcb"},"attr-value":{color:"#728fcb"},keyword:{color:"#728fcb"},control:{color:"#728fcb"},directive:{color:"#728fcb"},unit:{color:"#728fcb"},statement:{color:"#728fcb"},regex:{color:"#728fcb"},atrule:{color:"#728fcb"},placeholder:{color:"#93abdc"},variable:{color:"#93abdc"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #2d2006",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#896724"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #896724",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#ece8de"},".line-numbers .line-numbers-rows > span:before":{color:"#cdc4b1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(45, 32, 6, 0.2) 70%, rgba(45, 32, 6, 0))"}}}(eN)),eN}var tN={},XW;function Lqe(){return XW||(XW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#1d262f",color:"#57718e"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#1d262f",color:"#57718e",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"]::selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#004a9e"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#4a5f78"},prolog:{color:"#4a5f78"},doctype:{color:"#4a5f78"},cdata:{color:"#4a5f78"},punctuation:{color:"#4a5f78"},namespace:{Opacity:".7"},tag:{color:"#0aa370"},operator:{color:"#0aa370"},number:{color:"#0aa370"},property:{color:"#57718e"},function:{color:"#57718e"},"tag-id":{color:"#ebf4ff"},selector:{color:"#ebf4ff"},"atrule-id":{color:"#ebf4ff"},"code.language-javascript":{color:"#7eb6f6"},"attr-name":{color:"#7eb6f6"},"code.language-css":{color:"#47ebb4"},"code.language-scss":{color:"#47ebb4"},boolean:{color:"#47ebb4"},string:{color:"#47ebb4"},entity:{color:"#47ebb4",cursor:"help"},url:{color:"#47ebb4"},".language-css .token.string":{color:"#47ebb4"},".language-scss .token.string":{color:"#47ebb4"},".style .token.string":{color:"#47ebb4"},"attr-value":{color:"#47ebb4"},keyword:{color:"#47ebb4"},control:{color:"#47ebb4"},directive:{color:"#47ebb4"},unit:{color:"#47ebb4"},statement:{color:"#47ebb4"},regex:{color:"#47ebb4"},atrule:{color:"#47ebb4"},placeholder:{color:"#47ebb4"},variable:{color:"#47ebb4"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #ebf4ff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#7eb6f6"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #34659d",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#1f2932"},".line-numbers .line-numbers-rows > span:before":{color:"#2c3847"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(10, 163, 112, 0.2) 70%, rgba(10, 163, 112, 0))"}}}(tN)),tN}var nN={},KW;function Bqe(){return KW||(KW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#24242e",color:"#767693"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#24242e",color:"#767693",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"]::selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#5151e6"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#5b5b76"},prolog:{color:"#5b5b76"},doctype:{color:"#5b5b76"},cdata:{color:"#5b5b76"},punctuation:{color:"#5b5b76"},namespace:{Opacity:".7"},tag:{color:"#dd672c"},operator:{color:"#dd672c"},number:{color:"#dd672c"},property:{color:"#767693"},function:{color:"#767693"},"tag-id":{color:"#ebebff"},selector:{color:"#ebebff"},"atrule-id":{color:"#ebebff"},"code.language-javascript":{color:"#aaaaca"},"attr-name":{color:"#aaaaca"},"code.language-css":{color:"#fe8c52"},"code.language-scss":{color:"#fe8c52"},boolean:{color:"#fe8c52"},string:{color:"#fe8c52"},entity:{color:"#fe8c52",cursor:"help"},url:{color:"#fe8c52"},".language-css .token.string":{color:"#fe8c52"},".language-scss .token.string":{color:"#fe8c52"},".style .token.string":{color:"#fe8c52"},"attr-value":{color:"#fe8c52"},keyword:{color:"#fe8c52"},control:{color:"#fe8c52"},directive:{color:"#fe8c52"},unit:{color:"#fe8c52"},statement:{color:"#fe8c52"},regex:{color:"#fe8c52"},atrule:{color:"#fe8c52"},placeholder:{color:"#fe8c52"},variable:{color:"#fe8c52"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #ebebff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#aaaaca"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #7676f4",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#262631"},".line-numbers .line-numbers-rows > span:before":{color:"#393949"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(221, 103, 44, 0.2) 70%, rgba(221, 103, 44, 0))"}}}(nN)),nN}var rN={},ZW;function $qe(){return ZW||(ZW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:"1px solid #dddddd",backgroundColor:"white"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{background:"#b3d4fc"},'pre[class*="language-"]::selection':{background:"#b3d4fc"},'pre[class*="language-"] ::selection':{background:"#b3d4fc"},'code[class*="language-"]::selection':{background:"#b3d4fc"},'code[class*="language-"] ::selection':{background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{padding:".2em",paddingTop:"1px",paddingBottom:"1px",background:"#f8f8f8",border:"1px solid #dddddd"},comment:{color:"#999988",fontStyle:"italic"},prolog:{color:"#999988",fontStyle:"italic"},doctype:{color:"#999988",fontStyle:"italic"},cdata:{color:"#999988",fontStyle:"italic"},namespace:{Opacity:".7"},string:{color:"#e3116c"},"attr-value":{color:"#e3116c"},punctuation:{color:"#393A34"},operator:{color:"#393A34"},entity:{color:"#36acaa"},url:{color:"#36acaa"},symbol:{color:"#36acaa"},number:{color:"#36acaa"},boolean:{color:"#36acaa"},variable:{color:"#36acaa"},constant:{color:"#36acaa"},property:{color:"#36acaa"},regex:{color:"#36acaa"},inserted:{color:"#36acaa"},atrule:{color:"#00a4db"},keyword:{color:"#00a4db"},"attr-name":{color:"#00a4db"},".language-autohotkey .token.selector":{color:"#00a4db"},function:{color:"#9a050f",fontWeight:"bold"},deleted:{color:"#9a050f"},".language-autohotkey .token.tag":{color:"#9a050f"},tag:{color:"#00009f"},selector:{color:"#00009f"},".language-autohotkey .token.keyword":{color:"#00009f"},important:{fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(rN)),rN}var sN={},JW;function zqe(){return JW||(JW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#ebdbb2",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#ebdbb2",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#1d2021"},'pre[class*="language-"]::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"] ::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"]::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"] ::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"]::selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"] ::selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"]::selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"] ::selection':{color:"#fbf1c7",background:"#7c6f64"},':not(pre) > code[class*="language-"]':{background:"#1d2021",padding:"0.1em",borderRadius:"0.3em"},comment:{color:"#a89984"},prolog:{color:"#a89984"},cdata:{color:"#a89984"},delimiter:{color:"#fb4934"},boolean:{color:"#fb4934"},keyword:{color:"#fb4934"},selector:{color:"#fb4934"},important:{color:"#fb4934"},atrule:{color:"#fb4934"},operator:{color:"#a89984"},punctuation:{color:"#a89984"},"attr-name":{color:"#a89984"},tag:{color:"#fabd2f"},"tag.punctuation":{color:"#fabd2f"},doctype:{color:"#fabd2f"},builtin:{color:"#fabd2f"},entity:{color:"#d3869b"},number:{color:"#d3869b"},symbol:{color:"#d3869b"},property:{color:"#fb4934"},constant:{color:"#fb4934"},variable:{color:"#fb4934"},string:{color:"#b8bb26"},char:{color:"#b8bb26"},"attr-value":{color:"#a89984"},"attr-value.punctuation":{color:"#a89984"},url:{color:"#b8bb26",textDecoration:"underline"},function:{color:"#fabd2f"},regex:{background:"#b8bb26"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#a89984"},deleted:{background:"#fb4934"}}}(sN)),sN}var iN={},QW;function Hqe(){return QW||(QW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#3c3836",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#3c3836",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#f9f5d7"},'pre[class*="language-"]::-moz-selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"] ::-moz-selection':{color:"#282828",background:"#a89984"},'code[class*="language-"]::-moz-selection':{color:"#282828",background:"#a89984"},'code[class*="language-"] ::-moz-selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"]::selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"] ::selection':{color:"#282828",background:"#a89984"},'code[class*="language-"]::selection':{color:"#282828",background:"#a89984"},'code[class*="language-"] ::selection':{color:"#282828",background:"#a89984"},':not(pre) > code[class*="language-"]':{background:"#f9f5d7",padding:"0.1em",borderRadius:"0.3em"},comment:{color:"#7c6f64"},prolog:{color:"#7c6f64"},cdata:{color:"#7c6f64"},delimiter:{color:"#9d0006"},boolean:{color:"#9d0006"},keyword:{color:"#9d0006"},selector:{color:"#9d0006"},important:{color:"#9d0006"},atrule:{color:"#9d0006"},operator:{color:"#7c6f64"},punctuation:{color:"#7c6f64"},"attr-name":{color:"#7c6f64"},tag:{color:"#b57614"},"tag.punctuation":{color:"#b57614"},doctype:{color:"#b57614"},builtin:{color:"#b57614"},entity:{color:"#8f3f71"},number:{color:"#8f3f71"},symbol:{color:"#8f3f71"},property:{color:"#9d0006"},constant:{color:"#9d0006"},variable:{color:"#9d0006"},string:{color:"#797403"},char:{color:"#797403"},"attr-value":{color:"#7c6f64"},"attr-value.punctuation":{color:"#7c6f64"},url:{color:"#797403",textDecoration:"underline"},function:{color:"#b57614"},regex:{background:"#797403"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#7c6f64"},deleted:{background:"#9d0006"}}}(iN)),iN}var oN={},eG;function Vqe(){return eG||(eG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={"code[class*='language-']":{color:"#d6e7ff",background:"#030314",textShadow:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',fontSize:"1em",lineHeight:"1.5",letterSpacing:".2px",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",textAlign:"left",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},"pre[class*='language-']":{color:"#d6e7ff",background:"#030314",textShadow:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',fontSize:"1em",lineHeight:"1.5",letterSpacing:".2px",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",textAlign:"left",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",border:"1px solid #2a4555",borderRadius:"5px",padding:"1.5em 1em",margin:"1em 0",overflow:"auto"},"pre[class*='language-']::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-'] ::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-']::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-'] ::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-']::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-'] ::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-']::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-'] ::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},":not(pre) > code[class*='language-']":{color:"#f0f6f6",background:"#2a4555",padding:"0.2em 0.3em",borderRadius:"0.2em",boxDecorationBreak:"clone"},comment:{color:"#446e69"},prolog:{color:"#446e69"},doctype:{color:"#446e69"},cdata:{color:"#446e69"},punctuation:{color:"#d6b007"},property:{color:"#d6e7ff"},tag:{color:"#d6e7ff"},boolean:{color:"#d6e7ff"},number:{color:"#d6e7ff"},constant:{color:"#d6e7ff"},symbol:{color:"#d6e7ff"},deleted:{color:"#d6e7ff"},selector:{color:"#e60067"},"attr-name":{color:"#e60067"},builtin:{color:"#e60067"},inserted:{color:"#e60067"},string:{color:"#49c6ec"},char:{color:"#49c6ec"},operator:{color:"#ec8e01",background:"transparent"},entity:{color:"#ec8e01",background:"transparent"},url:{color:"#ec8e01",background:"transparent"},".language-css .token.string":{color:"#ec8e01",background:"transparent"},".style .token.string":{color:"#ec8e01",background:"transparent"},atrule:{color:"#0fe468"},"attr-value":{color:"#0fe468"},keyword:{color:"#0fe468"},function:{color:"#78f3e9"},"class-name":{color:"#78f3e9"},regex:{color:"#d6e7ff"},important:{color:"#d6e7ff"},variable:{color:"#d6e7ff"}}}(oN)),oN}var aN={},tG;function Uqe(){return tG||(tG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{fontFamily:'"Fira Mono", Menlo, Monaco, "Lucida Console", "Courier New", Courier, monospace',fontSize:"16px",lineHeight:"1.375",direction:"ltr",textAlign:"left",wordSpacing:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",background:"#322931",color:"#b9b5b8"},'pre[class*="language-"]':{fontFamily:'"Fira Mono", Menlo, Monaco, "Lucida Console", "Courier New", Courier, monospace',fontSize:"16px",lineHeight:"1.375",direction:"ltr",textAlign:"left",wordSpacing:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",background:"#322931",color:"#b9b5b8",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#797379"},prolog:{color:"#797379"},doctype:{color:"#797379"},cdata:{color:"#797379"},punctuation:{color:"#b9b5b8"},".namespace":{Opacity:".7"},null:{color:"#fd8b19"},operator:{color:"#fd8b19"},boolean:{color:"#fd8b19"},number:{color:"#fd8b19"},property:{color:"#fdcc59"},tag:{color:"#1290bf"},string:{color:"#149b93"},selector:{color:"#c85e7c"},"attr-name":{color:"#fd8b19"},entity:{color:"#149b93",cursor:"help"},url:{color:"#149b93"},".language-css .token.string":{color:"#149b93"},".style .token.string":{color:"#149b93"},"attr-value":{color:"#8fc13e"},keyword:{color:"#8fc13e"},control:{color:"#8fc13e"},directive:{color:"#8fc13e"},unit:{color:"#8fc13e"},statement:{color:"#149b93"},regex:{color:"#149b93"},atrule:{color:"#149b93"},placeholder:{color:"#1290bf"},variable:{color:"#1290bf"},important:{color:"#dd464c",fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid red",OutlineOffset:".4em"}}}(aN)),aN}var lN={},nG;function qqe(){return nG||(nG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#263E52",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#263E52",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#5c98cd"},prolog:{color:"#5c98cd"},doctype:{color:"#5c98cd"},cdata:{color:"#5c98cd"},punctuation:{color:"#f8f8f2"},".namespace":{Opacity:".7"},property:{color:"#F05E5D"},tag:{color:"#F05E5D"},constant:{color:"#F05E5D"},symbol:{color:"#F05E5D"},deleted:{color:"#F05E5D"},boolean:{color:"#BC94F9"},number:{color:"#BC94F9"},selector:{color:"#FCFCD6"},"attr-name":{color:"#FCFCD6"},string:{color:"#FCFCD6"},char:{color:"#FCFCD6"},builtin:{color:"#FCFCD6"},inserted:{color:"#FCFCD6"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#66D8EF"},"attr-value":{color:"#66D8EF"},function:{color:"#66D8EF"},"class-name":{color:"#66D8EF"},keyword:{color:"#6EB26E"},regex:{color:"#F05E5D"},important:{color:"#F05E5D",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(lN)),lN}var cN={},rG;function Wqe(){return rG||(rG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#eee",background:"#2f2f2f",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#eee",background:"#2f2f2f",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#363636"},'pre[class*="language-"]::-moz-selection':{background:"#363636"},'code[class*="language-"] ::-moz-selection':{background:"#363636"},'pre[class*="language-"] ::-moz-selection':{background:"#363636"},'code[class*="language-"]::selection':{background:"#363636"},'pre[class*="language-"]::selection':{background:"#363636"},'code[class*="language-"] ::selection':{background:"#363636"},'pre[class*="language-"] ::selection':{background:"#363636"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#fd9170"},".language-sass > code":{color:"#fd9170"},".language-scss > code":{color:"#fd9170"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#c792ea"},"attr-name":{color:"#ffcb6b"},"attr-value":{color:"#a5e844"},attribute:{color:"#a5e844"},boolean:{color:"#c792ea"},builtin:{color:"#ffcb6b"},cdata:{color:"#80cbc4"},char:{color:"#80cbc4"},class:{color:"#ffcb6b"},"class-name":{color:"#f2ff00"},comment:{color:"#616161"},constant:{color:"#c792ea"},deleted:{color:"#ff6666"},doctype:{color:"#616161"},entity:{color:"#ff6666"},function:{color:"#c792ea"},hexcode:{color:"#f2ff00"},id:{color:"#c792ea",fontWeight:"bold"},important:{color:"#c792ea",fontWeight:"bold"},inserted:{color:"#80cbc4"},keyword:{color:"#c792ea"},number:{color:"#fd9170"},operator:{color:"#89ddff"},prolog:{color:"#616161"},property:{color:"#80cbc4"},"pseudo-class":{color:"#a5e844"},"pseudo-element":{color:"#a5e844"},punctuation:{color:"#89ddff"},regex:{color:"#f2ff00"},selector:{color:"#ff6666"},string:{color:"#a5e844"},symbol:{color:"#c792ea"},tag:{color:"#ff6666"},unit:{color:"#fd9170"},url:{color:"#ff6666"},variable:{color:"#ff6666"}}}(cN)),cN}var uN={},sG;function Gqe(){return sG||(sG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#f76d47"},".language-sass > code":{color:"#f76d47"},".language-scss > code":{color:"#f76d47"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#7c4dff"},"attr-name":{color:"#39adb5"},"attr-value":{color:"#f6a434"},attribute:{color:"#f6a434"},boolean:{color:"#7c4dff"},builtin:{color:"#39adb5"},cdata:{color:"#39adb5"},char:{color:"#39adb5"},class:{color:"#39adb5"},"class-name":{color:"#6182b8"},comment:{color:"#aabfc9"},constant:{color:"#7c4dff"},deleted:{color:"#e53935"},doctype:{color:"#aabfc9"},entity:{color:"#e53935"},function:{color:"#7c4dff"},hexcode:{color:"#f76d47"},id:{color:"#7c4dff",fontWeight:"bold"},important:{color:"#7c4dff",fontWeight:"bold"},inserted:{color:"#39adb5"},keyword:{color:"#7c4dff"},number:{color:"#f76d47"},operator:{color:"#39adb5"},prolog:{color:"#aabfc9"},property:{color:"#39adb5"},"pseudo-class":{color:"#f6a434"},"pseudo-element":{color:"#f6a434"},punctuation:{color:"#39adb5"},regex:{color:"#6182b8"},selector:{color:"#e53935"},string:{color:"#f6a434"},symbol:{color:"#7c4dff"},tag:{color:"#e53935"},unit:{color:"#f76d47"},url:{color:"#e53935"},variable:{color:"#e53935"}}}(uN)),uN}var dN={},iG;function Yqe(){return iG||(iG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#c3cee3",background:"#263238",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#c3cee3",background:"#263238",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#363636"},'pre[class*="language-"]::-moz-selection':{background:"#363636"},'code[class*="language-"] ::-moz-selection':{background:"#363636"},'pre[class*="language-"] ::-moz-selection':{background:"#363636"},'code[class*="language-"]::selection':{background:"#363636"},'pre[class*="language-"]::selection':{background:"#363636"},'code[class*="language-"] ::selection':{background:"#363636"},'pre[class*="language-"] ::selection':{background:"#363636"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#fd9170"},".language-sass > code":{color:"#fd9170"},".language-scss > code":{color:"#fd9170"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#c792ea"},"attr-name":{color:"#ffcb6b"},"attr-value":{color:"#c3e88d"},attribute:{color:"#c3e88d"},boolean:{color:"#c792ea"},builtin:{color:"#ffcb6b"},cdata:{color:"#80cbc4"},char:{color:"#80cbc4"},class:{color:"#ffcb6b"},"class-name":{color:"#f2ff00"},color:{color:"#f2ff00"},comment:{color:"#546e7a"},constant:{color:"#c792ea"},deleted:{color:"#f07178"},doctype:{color:"#546e7a"},entity:{color:"#f07178"},function:{color:"#c792ea"},hexcode:{color:"#f2ff00"},id:{color:"#c792ea",fontWeight:"bold"},important:{color:"#c792ea",fontWeight:"bold"},inserted:{color:"#80cbc4"},keyword:{color:"#c792ea",fontStyle:"italic"},number:{color:"#fd9170"},operator:{color:"#89ddff"},prolog:{color:"#546e7a"},property:{color:"#80cbc4"},"pseudo-class":{color:"#c3e88d"},"pseudo-element":{color:"#c3e88d"},punctuation:{color:"#89ddff"},regex:{color:"#f2ff00"},selector:{color:"#f07178"},string:{color:"#c3e88d"},symbol:{color:"#c792ea"},tag:{color:"#f07178"},unit:{color:"#f07178"},url:{color:"#fd9170"},variable:{color:"#f07178"}}}(dN)),dN}var hN={},oG;function Xqe(){return oG||(oG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#d6deeb",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#011627"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},':not(pre) > code[class*="language-"]':{color:"white",background:"#011627",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"rgb(99, 119, 119)",fontStyle:"italic"},prolog:{color:"rgb(99, 119, 119)",fontStyle:"italic"},cdata:{color:"rgb(99, 119, 119)",fontStyle:"italic"},punctuation:{color:"rgb(199, 146, 234)"},".namespace":{color:"rgb(178, 204, 214)"},deleted:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"},symbol:{color:"rgb(128, 203, 196)"},property:{color:"rgb(128, 203, 196)"},tag:{color:"rgb(127, 219, 202)"},operator:{color:"rgb(127, 219, 202)"},keyword:{color:"rgb(127, 219, 202)"},boolean:{color:"rgb(255, 88, 116)"},number:{color:"rgb(247, 140, 108)"},constant:{color:"rgb(130, 170, 255)"},function:{color:"rgb(130, 170, 255)"},builtin:{color:"rgb(130, 170, 255)"},char:{color:"rgb(130, 170, 255)"},selector:{color:"rgb(199, 146, 234)",fontStyle:"italic"},doctype:{color:"rgb(199, 146, 234)",fontStyle:"italic"},"attr-name":{color:"rgb(173, 219, 103)",fontStyle:"italic"},inserted:{color:"rgb(173, 219, 103)",fontStyle:"italic"},string:{color:"rgb(173, 219, 103)"},url:{color:"rgb(173, 219, 103)"},entity:{color:"rgb(173, 219, 103)"},".language-css .token.string":{color:"rgb(173, 219, 103)"},".style .token.string":{color:"rgb(173, 219, 103)"},"class-name":{color:"rgb(255, 203, 139)"},atrule:{color:"rgb(255, 203, 139)"},"attr-value":{color:"rgb(255, 203, 139)"},regex:{color:"rgb(214, 222, 235)"},important:{color:"rgb(214, 222, 235)",fontWeight:"bold"},variable:{color:"rgb(214, 222, 235)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(hN)),hN}var fN={},aG;function Kqe(){return aG||(aG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2E3440",fontFamily:`"Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2E3440",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#636f88"},prolog:{color:"#636f88"},doctype:{color:"#636f88"},cdata:{color:"#636f88"},punctuation:{color:"#81A1C1"},".namespace":{Opacity:".7"},property:{color:"#81A1C1"},tag:{color:"#81A1C1"},constant:{color:"#81A1C1"},symbol:{color:"#81A1C1"},deleted:{color:"#81A1C1"},number:{color:"#B48EAD"},boolean:{color:"#81A1C1"},selector:{color:"#A3BE8C"},"attr-name":{color:"#A3BE8C"},string:{color:"#A3BE8C"},char:{color:"#A3BE8C"},builtin:{color:"#A3BE8C"},inserted:{color:"#A3BE8C"},operator:{color:"#81A1C1"},entity:{color:"#81A1C1",cursor:"help"},url:{color:"#81A1C1"},".language-css .token.string":{color:"#81A1C1"},".style .token.string":{color:"#81A1C1"},variable:{color:"#81A1C1"},atrule:{color:"#88C0D0"},"attr-value":{color:"#88C0D0"},function:{color:"#88C0D0"},"class-name":{color:"#88C0D0"},keyword:{color:"#81A1C1"},regex:{color:"#EBCB8B"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(fN)),fN}var pN={},lG;function Zqe(){return lG||(lG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}}}(pN)),pN}var mN={},cG;function Jqe(){return cG||(cG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}}}(mN)),mN}var gN={},uG;function Qqe(){return uG||(uG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"15px",lineHeight:"1.5",color:"#dccf8f",textShadow:"0"},'pre[class*="language-"]':{MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"15px",lineHeight:"1.5",color:"#DCCF8F",textShadow:"0",borderRadius:"5px",border:"1px solid #000",background:"#181914 url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAMAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQACQYGBgcGCQcHCQ0IBwgNDwsJCQsPEQ4ODw4OERENDg4ODg0RERQUFhQUERoaHBwaGiYmJiYmKysrKysrKysrKwEJCAgJCgkMCgoMDwwODA8TDg4ODhMVDg4PDg4VGhMRERERExoXGhYWFhoXHR0aGh0dJCQjJCQrKysrKysrKysr/8AAEQgAjACMAwEiAAIRAQMRAf/EAF4AAQEBAAAAAAAAAAAAAAAAAAABBwEBAQAAAAAAAAAAAAAAAAAAAAIQAAEDAwIHAQEAAAAAAAAAAADwAREhYaExkUFRcYGxwdHh8REBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AyGFEjHaBS2fDDs2zkhKmBKktb7km+ZwwCnXPkLVmCTMItj6AXFxRS465/BTnkAJvkLkJe+7AKKoi2AtRS2zuAWsCb5GOlBN8gKfmuGHZ8MFqIth3ALmFoFwbwKWyAlTAp17uKqBvgBD8sM4fTjhvAhkzhaRkBMKBrfs7jGPIpzy7gFrAqnC0C0gB0EWwBDW2cBVQwm+QtPpa3wBO3sVvszCnLAhkzgL5/RLf13cLQd8/AGlu0Cb5HTx9KuAEieGJEdcehS3eRTp2ATdt3CpIm+QtZwAhROXFeb7swp/ahaM3kBE/jSIUBc/AWrgBN8uNFAl+b7sAXFxFn2YLUU5Ns7gFX8C4ib+hN8gFWXwK3bZglxEJm+gKdciLPsFV/TClsgJUwKJ5FVA7tvIFrfZhVfGJDcsCKaYgAqv6YRbE+RWOWBtu7+AL3yRalXLyKqAIIfk+zARbDgFyEsncYwJvlgFRW+GEWntIi2P0BooyFxcNr8Ep3+ANLbMO+QyhvbiqdgC0kVvgUUiLYgBS2QtPbiVI1/sgOmG9uO+Y8DW+7jS2zAOnj6O2BndwuIAUtkdRN8gFoK3wwXMQyZwHVbClsuNLd4E3yAUR6FVDBR+BafQGt93LVMxJTv8ABts4CVLhcfYWsCb5kC9/BHdU8CLYFY5bMAd+eX9MGthhpbA1vu4B7+RKkaW2Yq4AQtVBBFsAJU/AuIXBhN8gGWnstefhiZyWvLAEnbYS1uzSFP6Jvn4Baxx70JKkQojLib5AVTey1jjgkKJGO0AKWyOm7N7cSpgSpAdPH0Tfd/gp1z5C1ZgKqN9J2wFxcUUuAFLZAm+QC0Fb4YUVRFsAOvj4KW2dwtYE3yAWk/wS/PLMKfmuGHZ8MAXF/Ja32Yi5haAKWz4Ydm2cSpgU693Atb7km+Zwwh+WGcPpxw3gAkzCLY+iYUDW/Z3Adc/gpzyFrAqnALkJe+7DoItgAtRS2zuKqGE3yAx0oJvkdvYrfZmALURbDuL5/RLf13cAuDeBS2RpbtAm+QFVA3wR+3fUtFHoBDJnC0jIXH0HWsgMY8inPLuOkd9chp4z20ALQLSA8cI9jYAIa2zjzjBd8gRafS1vgiUho/kAKcsCGTOGWvoOpkAtB3z8Hm8x2Ff5ADp4+lXAlIvcmwH/2Q==') repeat left top",padding:"12px",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{borderRadius:"5px",border:"1px solid #000",color:"#DCCF8F",background:"#181914 url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAMAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQACQYGBgcGCQcHCQ0IBwgNDwsJCQsPEQ4ODw4OERENDg4ODg0RERQUFhQUERoaHBwaGiYmJiYmKysrKysrKysrKwEJCAgJCgkMCgoMDwwODA8TDg4ODhMVDg4PDg4VGhMRERERExoXGhYWFhoXHR0aGh0dJCQjJCQrKysrKysrKysr/8AAEQgAjACMAwEiAAIRAQMRAf/EAF4AAQEBAAAAAAAAAAAAAAAAAAABBwEBAQAAAAAAAAAAAAAAAAAAAAIQAAEDAwIHAQEAAAAAAAAAAADwAREhYaExkUFRcYGxwdHh8REBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AyGFEjHaBS2fDDs2zkhKmBKktb7km+ZwwCnXPkLVmCTMItj6AXFxRS465/BTnkAJvkLkJe+7AKKoi2AtRS2zuAWsCb5GOlBN8gKfmuGHZ8MFqIth3ALmFoFwbwKWyAlTAp17uKqBvgBD8sM4fTjhvAhkzhaRkBMKBrfs7jGPIpzy7gFrAqnC0C0gB0EWwBDW2cBVQwm+QtPpa3wBO3sVvszCnLAhkzgL5/RLf13cLQd8/AGlu0Cb5HTx9KuAEieGJEdcehS3eRTp2ATdt3CpIm+QtZwAhROXFeb7swp/ahaM3kBE/jSIUBc/AWrgBN8uNFAl+b7sAXFxFn2YLUU5Ns7gFX8C4ib+hN8gFWXwK3bZglxEJm+gKdciLPsFV/TClsgJUwKJ5FVA7tvIFrfZhVfGJDcsCKaYgAqv6YRbE+RWOWBtu7+AL3yRalXLyKqAIIfk+zARbDgFyEsncYwJvlgFRW+GEWntIi2P0BooyFxcNr8Ep3+ANLbMO+QyhvbiqdgC0kVvgUUiLYgBS2QtPbiVI1/sgOmG9uO+Y8DW+7jS2zAOnj6O2BndwuIAUtkdRN8gFoK3wwXMQyZwHVbClsuNLd4E3yAUR6FVDBR+BafQGt93LVMxJTv8ABts4CVLhcfYWsCb5kC9/BHdU8CLYFY5bMAd+eX9MGthhpbA1vu4B7+RKkaW2Yq4AQtVBBFsAJU/AuIXBhN8gGWnstefhiZyWvLAEnbYS1uzSFP6Jvn4Baxx70JKkQojLib5AVTey1jjgkKJGO0AKWyOm7N7cSpgSpAdPH0Tfd/gp1z5C1ZgKqN9J2wFxcUUuAFLZAm+QC0Fb4YUVRFsAOvj4KW2dwtYE3yAWk/wS/PLMKfmuGHZ8MAXF/Ja32Yi5haAKWz4Ydm2cSpgU693Atb7km+Zwwh+WGcPpxw3gAkzCLY+iYUDW/Z3Adc/gpzyFrAqnALkJe+7DoItgAtRS2zuKqGE3yAx0oJvkdvYrfZmALURbDuL5/RLf13cAuDeBS2RpbtAm+QFVA3wR+3fUtFHoBDJnC0jIXH0HWsgMY8inPLuOkd9chp4z20ALQLSA8cI9jYAIa2zjzjBd8gRafS1vgiUho/kAKcsCGTOGWvoOpkAtB3z8Hm8x2Ff5ADp4+lXAlIvcmwH/2Q==') repeat left top",padding:"2px 6px"},namespace:{Opacity:".7"},comment:{color:"#586e75",fontStyle:"italic"},prolog:{color:"#586e75",fontStyle:"italic"},doctype:{color:"#586e75",fontStyle:"italic"},cdata:{color:"#586e75",fontStyle:"italic"},number:{color:"#b89859"},string:{color:"#468966"},char:{color:"#468966"},builtin:{color:"#468966"},inserted:{color:"#468966"},"attr-name":{color:"#b89859"},operator:{color:"#dccf8f"},entity:{color:"#dccf8f",cursor:"help"},url:{color:"#dccf8f"},".language-css .token.string":{color:"#dccf8f"},".style .token.string":{color:"#dccf8f"},selector:{color:"#859900"},regex:{color:"#859900"},atrule:{color:"#cb4b16"},keyword:{color:"#cb4b16"},"attr-value":{color:"#468966"},function:{color:"#b58900"},variable:{color:"#b58900"},placeholder:{color:"#b58900"},property:{color:"#b89859"},tag:{color:"#ffb03b"},boolean:{color:"#b89859"},constant:{color:"#b89859"},symbol:{color:"#b89859"},important:{color:"#dc322f"},statement:{color:"#dc322f"},deleted:{color:"#dc322f"},punctuation:{color:"#dccf8f"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(gN)),gN}var yN={},dG;function eWe(){return dG||(dG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={"code[class*='language-']":{color:"#9efeff",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",fontFamily:"'Operator Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontWeight:"400",fontSize:"17px",lineHeight:"25px",letterSpacing:"0.5px",textShadow:"0 1px #222245"},"pre[class*='language-']":{color:"#9efeff",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",fontFamily:"'Operator Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontWeight:"400",fontSize:"17px",lineHeight:"25px",letterSpacing:"0.5px",textShadow:"0 1px #222245",padding:"2em",margin:"0.5em 0",overflow:"auto",background:"#1e1e3f"},"pre[class*='language-']::-moz-selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-'] ::-moz-selection":{color:"inherit",background:"#a599e9"},"code[class*='language-']::-moz-selection":{color:"inherit",background:"#a599e9"},"code[class*='language-'] ::-moz-selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-']::selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-'] ::selection":{color:"inherit",background:"#a599e9"},"code[class*='language-']::selection":{color:"inherit",background:"#a599e9"},"code[class*='language-'] ::selection":{color:"inherit",background:"#a599e9"},":not(pre) > code[class*='language-']":{background:"#1e1e3f",padding:"0.1em",borderRadius:"0.3em"},"":{fontWeight:"400"},comment:{color:"#b362ff"},prolog:{color:"#b362ff"},cdata:{color:"#b362ff"},delimiter:{color:"#ff9d00"},keyword:{color:"#ff9d00"},selector:{color:"#ff9d00"},important:{color:"#ff9d00"},atrule:{color:"#ff9d00"},operator:{color:"rgb(255, 180, 84)",background:"none"},"attr-name":{color:"rgb(255, 180, 84)"},punctuation:{color:"#ffffff"},boolean:{color:"rgb(255, 98, 140)"},tag:{color:"rgb(255, 157, 0)"},"tag.punctuation":{color:"rgb(255, 157, 0)"},doctype:{color:"rgb(255, 157, 0)"},builtin:{color:"rgb(255, 157, 0)"},entity:{color:"#6897bb",background:"none"},symbol:{color:"#6897bb"},number:{color:"#ff628c"},property:{color:"#ff628c"},constant:{color:"#ff628c"},variable:{color:"#ff628c"},string:{color:"#a5ff90"},char:{color:"#a5ff90"},"attr-value":{color:"#a5c261"},"attr-value.punctuation":{color:"#a5c261"},"attr-value.punctuation:first-child":{color:"#a9b7c6"},url:{color:"#287bde",textDecoration:"underline",background:"none"},function:{color:"rgb(250, 208, 0)"},regex:{background:"#364135"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#00ff00"},deleted:{background:"#ff000d"},"code.language-css .token.property":{color:"#a9b7c6"},"code.language-css .token.property + .token.punctuation":{color:"#a9b7c6"},"code.language-css .token.id":{color:"#ffc66d"},"code.language-css .token.selector > .token.class":{color:"#ffc66d"},"code.language-css .token.selector > .token.attribute":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-class":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-element":{color:"#ffc66d"},"class-name":{color:"#fb94ff"},".language-css .token.string":{background:"none"},".style .token.string":{background:"none"},".line-highlight.line-highlight":{marginTop:"36px",background:"linear-gradient(to right, rgba(179, 98, 255, 0.17), transparent)"},".line-highlight.line-highlight:before":{content:"''"},".line-highlight.line-highlight[data-end]:after":{content:"''"}}}(yN)),yN}var bN={},hG;function tWe(){return hG||(hG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#839496",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#839496",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",background:"#002b36"},':not(pre) > code[class*="language-"]':{background:"#002b36",padding:".1em",borderRadius:".3em"},comment:{color:"#586e75"},prolog:{color:"#586e75"},doctype:{color:"#586e75"},cdata:{color:"#586e75"},punctuation:{color:"#93a1a1"},".namespace":{Opacity:".7"},property:{color:"#268bd2"},keyword:{color:"#268bd2"},tag:{color:"#268bd2"},"class-name":{color:"#FFFFB6",textDecoration:"underline"},boolean:{color:"#b58900"},constant:{color:"#b58900"},symbol:{color:"#dc322f"},deleted:{color:"#dc322f"},number:{color:"#859900"},selector:{color:"#859900"},"attr-name":{color:"#859900"},string:{color:"#859900"},char:{color:"#859900"},builtin:{color:"#859900"},inserted:{color:"#859900"},variable:{color:"#268bd2"},operator:{color:"#EDEDED"},function:{color:"#268bd2"},regex:{color:"#E9C062"},important:{color:"#fd971f",fontWeight:"bold"},entity:{color:"#FFFFB6",cursor:"help"},url:{color:"#96CBFE"},".language-css .token.string":{color:"#87C38A"},".style .token.string":{color:"#87C38A"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},atrule:{color:"#F9EE98"},"attr-value":{color:"#F9EE98"}}}(bN)),bN}var vN={},fG;function nWe(){return fG||(fG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",backgroundColor:"transparent !important",backgroundImage:"linear-gradient(to bottom, #2a2139 75%, #34294f)"},':not(pre) > code[class*="language-"]':{backgroundColor:"transparent !important",backgroundImage:"linear-gradient(to bottom, #2a2139 75%, #34294f)",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8e8e8e"},"block-comment":{color:"#8e8e8e"},prolog:{color:"#8e8e8e"},doctype:{color:"#8e8e8e"},cdata:{color:"#8e8e8e"},punctuation:{color:"#ccc"},tag:{color:"#e2777a"},"attr-name":{color:"#e2777a"},namespace:{color:"#e2777a"},number:{color:"#e2777a"},unit:{color:"#e2777a"},hexcode:{color:"#e2777a"},deleted:{color:"#e2777a"},property:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"},selector:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"},"function-name":{color:"#6196cc"},boolean:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},"selector.id":{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},function:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},"class-name":{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"},constant:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},symbol:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},important:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575",fontWeight:"bold"},atrule:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},keyword:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},"selector.class":{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},builtin:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},string:{color:"#f87c32"},char:{color:"#f87c32"},"attr-value":{color:"#f87c32"},regex:{color:"#f87c32"},variable:{color:"#f87c32"},operator:{color:"#67cdcc"},entity:{color:"#67cdcc",cursor:"help"},url:{color:"#67cdcc"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{color:"green"}}}(vN)),vN}var xN={},pG;function rWe(){return pG||(pG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:"1px solid #dddddd",backgroundColor:"white"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{background:"#C1DEF1"},'pre[class*="language-"] ::-moz-selection':{background:"#C1DEF1"},'code[class*="language-"]::-moz-selection':{background:"#C1DEF1"},'code[class*="language-"] ::-moz-selection':{background:"#C1DEF1"},'pre[class*="language-"]::selection':{background:"#C1DEF1"},'pre[class*="language-"] ::selection':{background:"#C1DEF1"},'code[class*="language-"]::selection':{background:"#C1DEF1"},'code[class*="language-"] ::selection':{background:"#C1DEF1"},':not(pre) > code[class*="language-"]':{padding:".2em",paddingTop:"1px",paddingBottom:"1px",background:"#f8f8f8",border:"1px solid #dddddd"},comment:{color:"#008000",fontStyle:"italic"},prolog:{color:"#008000",fontStyle:"italic"},doctype:{color:"#008000",fontStyle:"italic"},cdata:{color:"#008000",fontStyle:"italic"},namespace:{Opacity:".7"},string:{color:"#A31515"},punctuation:{color:"#393A34"},operator:{color:"#393A34"},url:{color:"#36acaa"},symbol:{color:"#36acaa"},number:{color:"#36acaa"},boolean:{color:"#36acaa"},variable:{color:"#36acaa"},constant:{color:"#36acaa"},inserted:{color:"#36acaa"},atrule:{color:"#0000ff"},keyword:{color:"#0000ff"},"attr-value":{color:"#0000ff"},".language-autohotkey .token.selector":{color:"#0000ff"},".language-json .token.boolean":{color:"#0000ff"},".language-json .token.number":{color:"#0000ff"},'code[class*="language-css"]':{color:"#0000ff"},function:{color:"#393A34"},deleted:{color:"#9a050f"},".language-autohotkey .token.tag":{color:"#9a050f"},selector:{color:"#800000"},".language-autohotkey .token.keyword":{color:"#00009f"},important:{color:"#e90",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},"class-name":{color:"#2B91AF"},".language-json .token.property":{color:"#2B91AF"},tag:{color:"#800000"},"attr-name":{color:"#ff0000"},property:{color:"#ff0000"},regex:{color:"#ff0000"},entity:{color:"#ff0000"},"directive.tag.tag":{background:"#ffff00",color:"#393A34"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#a5a5a5"},".line-numbers .line-numbers-rows > span:before":{color:"#2B91AF"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0))"}}}(xN)),xN}var wN={},mG;function sWe(){return mG||(mG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}}(wN)),wN}var SN={},gG;function iWe(){return gG||(gG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordWrap:"normal",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"14px",color:"#76d9e6",textShadow:"none"},'pre[class*="language-"]':{MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordWrap:"normal",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"14px",color:"#76d9e6",textShadow:"none",background:"#2a2a2a",padding:"15px",borderRadius:"4px",border:"1px solid #e1e1e8",overflow:"auto",position:"relative"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{background:"#2a2a2a",padding:"0.15em 0.2em 0.05em",borderRadius:".3em",border:"0.13em solid #7a6652",boxShadow:"1px 1px 0.3em -0.1em #000 inset"},'pre[class*="language-"] code':{whiteSpace:"pre",display:"block"},namespace:{Opacity:".7"},comment:{color:"#6f705e"},prolog:{color:"#6f705e"},doctype:{color:"#6f705e"},cdata:{color:"#6f705e"},operator:{color:"#a77afe"},boolean:{color:"#a77afe"},number:{color:"#a77afe"},"attr-name":{color:"#e6d06c"},string:{color:"#e6d06c"},entity:{color:"#e6d06c",cursor:"help"},url:{color:"#e6d06c"},".language-css .token.string":{color:"#e6d06c"},".style .token.string":{color:"#e6d06c"},selector:{color:"#a6e22d"},inserted:{color:"#a6e22d"},atrule:{color:"#ef3b7d"},"attr-value":{color:"#ef3b7d"},keyword:{color:"#ef3b7d"},important:{color:"#ef3b7d",fontWeight:"bold"},deleted:{color:"#ef3b7d"},regex:{color:"#76d9e6"},statement:{color:"#76d9e6",fontWeight:"bold"},placeholder:{color:"#fff"},variable:{color:"#fff"},bold:{fontWeight:"bold"},punctuation:{color:"#bebec5"},italic:{fontStyle:"italic"},"code.language-markup":{color:"#f9f9f9"},"code.language-markup .token.tag":{color:"#ef3b7d"},"code.language-markup .token.attr-name":{color:"#a6e22d"},"code.language-markup .token.attr-value":{color:"#e6d06c"},"code.language-markup .token.style":{color:"#76d9e6"},"code.language-markup .token.script":{color:"#76d9e6"},"code.language-markup .token.script .token.keyword":{color:"#76d9e6"},".line-highlight.line-highlight":{padding:"0",background:"rgba(255, 255, 255, 0.08)"},".line-highlight.line-highlight:before":{padding:"0.2em 0.5em",backgroundColor:"rgba(255, 255, 255, 0.4)",color:"black",height:"1em",lineHeight:"1em",boxShadow:"0 1px 1px rgba(255, 255, 255, 0.7)"},".line-highlight.line-highlight[data-end]:after":{padding:"0.2em 0.5em",backgroundColor:"rgba(255, 255, 255, 0.4)",color:"black",height:"1em",lineHeight:"1em",boxShadow:"0 1px 1px rgba(255, 255, 255, 0.7)"}}}(SN)),SN}var CN={},yG;function oWe(){return yG||(yG=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={'code[class*="language-"]':{color:"#22da17",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",lineHeight:"25px",fontSize:"18px",margin:"5px 0"},'pre[class*="language-"]':{color:"white",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",lineHeight:"25px",fontSize:"18px",margin:"0.5em 0",background:"#0a143c",padding:"1em",overflow:"auto"},'pre[class*="language-"] *':{fontFamily:"monospace"},':not(pre) > code[class*="language-"]':{color:"white",background:"#0a143c",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},comment:{color:"rgb(99, 119, 119)",fontStyle:"italic"},prolog:{color:"rgb(99, 119, 119)",fontStyle:"italic"},cdata:{color:"rgb(99, 119, 119)",fontStyle:"italic"},punctuation:{color:"rgb(199, 146, 234)"},".namespace":{color:"rgb(178, 204, 214)"},deleted:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"},symbol:{color:"rgb(128, 203, 196)"},property:{color:"rgb(128, 203, 196)"},tag:{color:"rgb(127, 219, 202)"},operator:{color:"rgb(127, 219, 202)"},keyword:{color:"rgb(127, 219, 202)"},boolean:{color:"rgb(255, 88, 116)"},number:{color:"rgb(247, 140, 108)"},constant:{color:"rgb(34 183 199)"},function:{color:"rgb(34 183 199)"},builtin:{color:"rgb(34 183 199)"},char:{color:"rgb(34 183 199)"},selector:{color:"rgb(199, 146, 234)",fontStyle:"italic"},doctype:{color:"rgb(199, 146, 234)",fontStyle:"italic"},"attr-name":{color:"rgb(173, 219, 103)",fontStyle:"italic"},inserted:{color:"rgb(173, 219, 103)",fontStyle:"italic"},string:{color:"rgb(173, 219, 103)"},url:{color:"rgb(173, 219, 103)"},entity:{color:"rgb(173, 219, 103)"},".language-css .token.string":{color:"rgb(173, 219, 103)"},".style .token.string":{color:"rgb(173, 219, 103)"},"class-name":{color:"rgb(255, 203, 139)"},atrule:{color:"rgb(255, 203, 139)"},"attr-value":{color:"rgb(255, 203, 139)"},regex:{color:"rgb(214, 222, 235)"},important:{color:"rgb(214, 222, 235)",fontWeight:"bold"},variable:{color:"rgb(214, 222, 235)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}}(CN)),CN}var bG;function aWe(){return bG||(bG=1,function(e){var t=gqe();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"a11yDark",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"atomDark",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"base16AteliersulphurpoolLight",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"cb",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"coldarkCold",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"coldarkDark",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"coy",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"coyWithoutShadows",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"darcula",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"dark",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"dracula",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"duotoneDark",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"duotoneEarth",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"duotoneForest",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(e,"duotoneLight",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"duotoneSea",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"duotoneSpace",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"funky",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"ghcolors",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"gruvboxDark",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"gruvboxLight",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"holiTheme",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"hopscotch",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"lucario",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"materialDark",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"materialLight",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"materialOceanic",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"nightOwl",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(e,"nord",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(e,"okaidia",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"oneDark",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"oneLight",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(e,"pojoaque",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(e,"prism",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"shadesOfPurple",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"solarizedDarkAtom",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"solarizedlight",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"synthwave84",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(e,"tomorrow",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"twilight",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"vs",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(e,"vscDarkPlus",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(e,"xonokai",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(e,"zTouch",{enumerable:!0,get:function(){return we.default}});var n=t(yqe()),r=t(bqe()),s=t(vqe()),i=t(xqe()),o=t(wqe()),a=t(Sqe()),l=t(Cqe()),c=t(kqe()),u=t(Eqe()),d=t(Dqe()),p=t(Aqe()),m=t(Tqe()),b=t(_qe()),x=t(Nqe()),C=t(Pqe()),S=t(Mqe()),A=t(Fqe()),T=t(Oqe()),N=t(Rqe()),F=t(Iqe()),M=t(jqe()),I=t(Lqe()),j=t(Bqe()),L=t($qe()),B=t(zqe()),z=t(Hqe()),G=t(Vqe()),Q=t(Uqe()),$=t(qqe()),J=t(Wqe()),q=t(Gqe()),U=t(Yqe()),V=t(Xqe()),X=t(Kqe()),W=t(Zqe()),K=t(Jqe()),se=t(Qqe()),H=t(eWe()),te=t(tWe()),oe=t(nWe()),le=t(rWe()),ne=t(sWe()),me=t(iWe()),we=t(oWe())}(M6)),M6}var lWe=aWe();const Rle=1024;let cWe=0,kN=class{constructor(t,n){this.from=t,this.to=n}};class dn{constructor(t={}){this.id=cWe++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=Wo.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}dn.closedBy=new dn({deserialize:e=>e.split(" ")});dn.openedBy=new dn({deserialize:e=>e.split(" ")});dn.group=new dn({deserialize:e=>e.split(" ")});dn.isolate=new dn({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});dn.contextHash=new dn({perNode:!0});dn.lookAhead=new dn({perNode:!0});dn.mounted=new dn({perNode:!0});class NA{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[dn.mounted.id]}}const uWe=Object.create(null);class Wo{constructor(t,n,r,s=0){this.name=t,this.props=n,this.id=r,this.flags=s}static define(t){let n=t.props&&t.props.length?Object.create(null):uWe,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),s=new Wo(t.name||"",n,t.id,r);if(t.props){for(let i of t.props)if(Array.isArray(i)||(i=i(s)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[i[0].id]=i[1]}}return s}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(dn.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let s of r.split(" "))n[s]=t[r];return r=>{for(let s=r.prop(dn.group),i=-1;i<(s?s.length:0);i++){let o=n[i<0?r.name:s[i]];if(o)return o}}}}Wo.none=new Wo("",Object.create(null),0,8);class YI{constructor(t){this.types=t;for(let n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let n=[];for(let r of this.types){let s=null;for(let i of t){let o=i(r);o&&(s||(s=Object.assign({},r.props)),s[o[0].id]=o[1])}n.push(s?new Wo(r.name,s,r.id,r.flags):r)}return new YI(n)}}const rE=new WeakMap,vG=new WeakMap;var qs;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(qs||(qs={}));class xs{constructor(t,n,r,s,i){if(this.type=t,this.children=n,this.positions=r,this.length=s,this.props=null,i&&i.length){this.props=Object.create(null);for(let[o,a]of i)this.props[typeof o=="number"?o:o.id]=a}}toString(){let t=NA.get(this);if(t&&!t.overlay)return t.tree.toString();let n="";for(let r of this.children){let s=r.toString();s&&(n&&(n+=","),n+=s)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(t=0){return new C7(this.topNode,t)}cursorAt(t,n=0,r=0){let s=rE.get(this)||this.topNode,i=new C7(s);return i.moveTo(t,n),rE.set(this,i._tree),i}get topNode(){return new Va(this,0,0,null)}resolve(t,n=0){let r=_w(rE.get(this)||this.topNode,t,n,!1);return rE.set(this,r),r}resolveInner(t,n=0){let r=_w(vG.get(this)||this.topNode,t,n,!0);return vG.set(this,r),r}resolveStack(t,n=0){return fWe(this,t,n)}iterate(t){let{enter:n,leave:r,from:s=0,to:i=this.length}=t,o=t.mode||0,a=(o&qs.IncludeAnonymous)>0;for(let l=this.cursor(o|qs.IncludeAnonymous);;){let c=!1;if(l.from<=i&&l.to>=s&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&r&&(a||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:ZI(Wo.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,s)=>new xs(this.type,n,r,s,this.propValues),t.makeTree||((n,r,s)=>new xs(Wo.none,n,r,s)))}static build(t){return pWe(t)}}xs.empty=new xs(Wo.none,[],[],0);class XI{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new XI(this.buffer,this.index)}}class Yf{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return Wo.none}toString(){let t=[];for(let n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}childString(t){let n=this.buffer[t],r=this.buffer[t+3],s=this.set.types[n],i=s.name;if(/\W/.test(i)&&!s.isError&&(i=JSON.stringify(i)),t+=4,r==t)return i;let o=[];for(;t<r;)o.push(this.childString(t)),t=this.buffer[t+3];return i+"("+o.join(",")+")"}findChild(t,n,r,s,i){let{buffer:o}=this,a=-1;for(let l=t;l!=n&&!(Ile(i,s,o[l+1],o[l+2])&&(a=l,r>0));l=o[l+3]);return a}slice(t,n,r){let s=this.buffer,i=new Uint16Array(n-t),o=0;for(let a=t,l=0;a<n;){i[l++]=s[a++],i[l++]=s[a++]-r;let c=i[l++]=s[a++]-r;i[l++]=s[a++]-t,o=Math.max(o,c)}return new Yf(i,o,this.set)}}function Ile(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function _w(e,t,n,r){for(var s;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let o=!r&&e instanceof Va&&e.index<0?null:e.parent;if(!o)return e;e=o}let i=r?0:qs.IgnoreOverlays;if(r)for(let o=e,a=o.parent;a;o=a,a=o.parent)o instanceof Va&&o.index<0&&((s=a.enter(t,n,i))===null||s===void 0?void 0:s.from)!=o.from&&(e=a);for(;;){let o=e.enter(t,n,i);if(!o)return e;e=o}}class jle{cursor(t=0){return new C7(this,t)}getChild(t,n=null,r=null){let s=xG(this,t,n,r);return s.length?s[0]:null}getChildren(t,n=null,r=null){return xG(this,t,n,r)}resolve(t,n=0){return _w(this,t,n,!1)}resolveInner(t,n=0){return _w(this,t,n,!0)}matchContext(t){return S7(this.parent,t)}enterUnfinishedNodesBefore(t){let n=this.childBefore(t),r=this;for(;n;){let s=n.lastChild;if(!s||s.to!=n.to)break;s.type.isError&&s.from==s.to?(r=n,n=s.prevSibling):n=s}return r}get node(){return this}get next(){return this.parent}}class Va extends jle{constructor(t,n,r,s){super(),this._tree=t,this.from=n,this.index=r,this._parent=s}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,s,i=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,c=n>0?a.length:-1;t!=c;t+=n){let u=a[t],d=l[t]+o.from;if(Ile(s,r,d,d+u.length)){if(u instanceof Yf){if(i&qs.ExcludeBuffers)continue;let p=u.findChild(0,u.buffer.length,n,r-d,s);if(p>-1)return new wf(new dWe(o,u,t,d),null,p)}else if(i&qs.IncludeAnonymous||!u.type.isAnonymous||KI(u)){let p;if(!(i&qs.IgnoreMounts)&&(p=NA.get(u))&&!p.overlay)return new Va(p.tree,d,t,o);let m=new Va(u,d,t,o);return i&qs.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(n<0?u.children.length-1:0,n,r,s)}}}if(i&qs.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+n:t=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let s;if(!(r&qs.IgnoreOverlays)&&(s=NA.get(this._tree))&&s.overlay){let i=t-this.from;for(let{from:o,to:a}of s.overlay)if((n>0?o<=i:o<i)&&(n<0?a>=i:a>i))return new Va(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function xG(e,t,n,r){let s=e.cursor(),i=[];if(!s.firstChild())return i;if(n!=null){for(let o=!1;!o;)if(o=s.type.is(n),!s.nextSibling())return i}for(;;){if(r!=null&&s.type.is(r))return i;if(s.type.is(t)&&i.push(s.node),!s.nextSibling())return r==null?i:[]}}function S7(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class dWe{constructor(t,n,r,s){this.parent=t,this.buffer=n,this.index=r,this.start=s}}class wf extends jle{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:s}=this.context,i=s.findChild(this.index+4,s.buffer[this.index+3],t,n-this.context.start,r);return i<0?null:new wf(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&qs.ExcludeBuffers)return null;let{buffer:s}=this.context,i=s.findChild(this.index+4,s.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return i<0?null:new wf(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new wf(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new wf(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,s=this.index+4,i=r.buffer[this.index+3];if(i>s){let o=r.buffer[this.index+1];t.push(r.slice(s,i,o)),n.push(0)}return new xs(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Lle(e){if(!e.length)return null;let t=0,n=e[0];for(let i=1;i<e.length;i++){let o=e[i];(o.from>n.from||o.to<n.to)&&(n=o,t=i)}let r=n instanceof Va&&n.index<0?null:n.parent,s=e.slice();return r?s[t]=r:s.splice(t,1),new hWe(s,n)}class hWe{constructor(t,n){this.heads=t,this.node=n}get next(){return Lle(this.heads)}}function fWe(e,t,n){let r=e.resolveInner(t,n),s=null;for(let i=r instanceof Va?r:r.context.parent;i;i=i.parent)if(i.index<0){let o=i.parent;(s||(s=[r])).push(o.resolve(t,n)),i=o}else{let o=NA.get(i.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let a=new Va(o.tree,o.overlay[0].from+i.from,-1,i);(s||(s=[r])).push(_w(a,t,n,!1))}}return s?Lle(s):r}class C7{get name(){return this.type.name}constructor(t,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Va)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:s}=this.buffer;return this.type=n||s.set.types[s.buffer[t]],this.from=r+s.buffer[t+1],this.to=r+s.buffer[t+2],!0}yield(t){return t?t instanceof Va?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:s}=this.buffer,i=s.findChild(this.index+4,s.buffer[this.index+3],t,n-this.buffer.start,r);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&qs.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&qs.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&qs.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let s=r<0?0:this.stack[r]+4;if(this.index!=s)return this.yieldBuf(n.findChild(s,this.index,-1,0,4))}else{let s=n.buffer[this.index+3];if(s<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(s)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:s}=this;if(s){if(t>0){if(this.index<s.buffer.buffer.length)return!1}else for(let i=0;i<this.index;i++)if(s.buffer.buffer[i+3]<this.index)return!1;({index:n,parent:r}=s)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let i=n+t,o=t<0?-1:r._tree.children.length;i!=o;i+=t){let a=r._tree.children[i];if(this.mode&qs.IncludeAnonymous||a instanceof Yf||!a.type.isAnonymous||KI(a))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer)e:for(let s=this.index,i=this.stack.length;i>=0;){for(let o=t;o;o=o._parent)if(o.index==s){if(s==this.index)return o;n=o,r=i+1;break e}s=this.stack[--i]}for(let s=r;s<this.stack.length;s++)n=new wf(this.buffer,n,this.stack[s]);return this.bufferNode=new wf(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,n){for(let r=0;;){let s=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(s=!0)}for(;;){if(s&&n&&n(this),s=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,s=!0}}}matchContext(t){if(!this.buffer)return S7(this.node.parent,t);let{buffer:n}=this.buffer,{types:r}=n.set;for(let s=t.length-1,i=this.stack.length-1;s>=0;i--){if(i<0)return S7(this._tree,t,s);let o=r[n.buffer[this.stack[i]]];if(!o.isAnonymous){if(t[s]&&t[s]!=o.name)return!1;s--}}return!0}}function KI(e){return e.children.some(t=>t instanceof Yf||!t.type.isAnonymous||KI(t))}function pWe(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:s=Rle,reused:i=[],minRepeatType:o=r.types.length}=e,a=Array.isArray(n)?new XI(n,n.length):n,l=r.types,c=0,u=0;function d(F,M,I,j,L,B){let{id:z,start:G,end:Q,size:$}=a,J=u,q=c;for(;$<0;)if(a.next(),$==-1){let K=i[z];I.push(K),j.push(G-F);return}else if($==-3){c=z;return}else if($==-4){u=z;return}else throw new RangeError(`Unrecognized record size: ${$}`);let U=l[z],V,X,W=G-F;if(Q-G<=s&&(X=C(a.pos-M,L))){let K=new Uint16Array(X.size-X.skip),se=a.pos-X.size,H=K.length;for(;a.pos>se;)H=S(X.start,K,H);V=new Yf(K,Q-X.start,r),W=X.start-F}else{let K=a.pos-$;a.next();let se=[],H=[],te=z>=o?z:-1,oe=0,le=Q;for(;a.pos>K;)te>=0&&a.id==te&&a.size>=0?(a.end<=le-s&&(b(se,H,G,oe,a.end,le,te,J,q),oe=se.length,le=a.end),a.next()):B>2500?p(G,K,se,H):d(G,K,se,H,te,B+1);if(te>=0&&oe>0&&oe<se.length&&b(se,H,G,oe,G,le,te,J,q),se.reverse(),H.reverse(),te>-1&&oe>0){let ne=m(U,q);V=ZI(U,se,H,0,se.length,0,Q-G,ne,ne)}else V=x(U,se,H,Q-G,J-Q,q)}I.push(V),j.push(W)}function p(F,M,I,j){let L=[],B=0,z=-1;for(;a.pos>M;){let{id:G,start:Q,end:$,size:J}=a;if(J>4)a.next();else{if(z>-1&&Q<z)break;z<0&&(z=$-s),L.push(G,Q,$),B++,a.next()}}if(B){let G=new Uint16Array(B*4),Q=L[L.length-2];for(let $=L.length-3,J=0;$>=0;$-=3)G[J++]=L[$],G[J++]=L[$+1]-Q,G[J++]=L[$+2]-Q,G[J++]=J;I.push(new Yf(G,L[2]-Q,r)),j.push(Q-F)}}function m(F,M){return(I,j,L)=>{let B=0,z=I.length-1,G,Q;if(z>=0&&(G=I[z])instanceof xs){if(!z&&G.type==F&&G.length==L)return G;(Q=G.prop(dn.lookAhead))&&(B=j[z]+G.length+Q)}return x(F,I,j,L,B,M)}}function b(F,M,I,j,L,B,z,G,Q){let $=[],J=[];for(;F.length>j;)$.push(F.pop()),J.push(M.pop()+I-L);F.push(x(r.types[z],$,J,B-L,G-B,Q)),M.push(L-I)}function x(F,M,I,j,L,B,z){if(B){let G=[dn.contextHash,B];z=z?[G].concat(z):[G]}if(L>25){let G=[dn.lookAhead,L];z=z?[G].concat(z):[G]}return new xs(F,M,I,j,z)}function C(F,M){let I=a.fork(),j=0,L=0,B=0,z=I.end-s,G={size:0,start:0,skip:0};e:for(let Q=I.pos-F;I.pos>Q;){let $=I.size;if(I.id==M&&$>=0){G.size=j,G.start=L,G.skip=B,B+=4,j+=4,I.next();continue}let J=I.pos-$;if($<0||J<Q||I.start<z)break;let q=I.id>=o?4:0,U=I.start;for(I.next();I.pos>J;){if(I.size<0)if(I.size==-3)q+=4;else break e;else I.id>=o&&(q+=4);I.next()}L=U,j+=$,B+=q}return(M<0||j==F)&&(G.size=j,G.start=L,G.skip=B),G.size>4?G:void 0}function S(F,M,I){let{id:j,start:L,end:B,size:z}=a;if(a.next(),z>=0&&j<o){let G=I;if(z>4){let Q=a.pos-(z-4);for(;a.pos>Q;)I=S(F,M,I)}M[--I]=G,M[--I]=B-F,M[--I]=L-F,M[--I]=j}else z==-3?c=j:z==-4&&(u=j);return I}let A=[],T=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,A,T,-1,0);let N=(t=e.length)!==null&&t!==void 0?t:A.length?T[0]+A[0].length:0;return new xs(l[e.topID],A.reverse(),T.reverse(),N)}const wG=new WeakMap;function wD(e,t){if(!e.isAnonymous||t instanceof Yf||t.type!=e)return 1;let n=wG.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof xs)){n=1;break}n+=wD(e,r)}wG.set(t,n)}return n}function ZI(e,t,n,r,s,i,o,a,l){let c=0;for(let b=r;b<s;b++)c+=wD(e,t[b]);let u=Math.ceil(c*1.5/8),d=[],p=[];function m(b,x,C,S,A){for(let T=C;T<S;){let N=T,F=x[T],M=wD(e,b[T]);for(T++;T<S;T++){let I=wD(e,b[T]);if(M+I>=u)break;M+=I}if(T==N+1){if(M>u){let I=b[N];m(I.children,I.positions,0,I.children.length,x[N]+A);continue}d.push(b[N])}else{let I=x[T-1]+b[T-1].length-F;d.push(ZI(e,b,x,N,T,F,I,null,l))}p.push(F+A-i)}}return m(t,n,r,s,0),(a||l)(d,p,o)}class $m{constructor(t,n,r,s,i=!1,o=!1){this.from=t,this.to=n,this.tree=r,this.offset=s,this.open=(i?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let s=[new $m(0,t.length,t,0,!1,r)];for(let i of n)i.to>t.length&&s.push(i);return s}static applyChanges(t,n,r=128){if(!n.length)return t;let s=[],i=1,o=t.length?t[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<n.length?n[a]:null,d=u?u.fromA:1e9;if(d-l>=r)for(;o&&o.from<d;){let p=o;if(l>=p.from||d<=p.to||c){let m=Math.max(p.from,l)-c,b=Math.min(p.to,d)-c;p=m>=b?null:new $m(m,b,p.tree,p.offset+c,a>0,!!u)}if(p&&s.push(p),o.to>d)break;o=i<t.length?t[i++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return s}}class Ble{startParse(t,n,r){return typeof t=="string"&&(t=new mWe(t)),r=r?r.length?r.map(s=>new kN(s.from,s.to)):[new kN(0,0)]:[new kN(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let s=this.startParse(t,n,r);for(;;){let i=s.advance();if(i)return i}}}class mWe{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}new dn({perNode:!0});var gWe={},SG={};class PA{constructor(t,n,r,s,i,o,a,l,c,u=0,d){this.p=t,this.stack=n,this.state=r,this.reducePos=s,this.pos=i,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}toString(){return`[${this.stack.filter((t,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let s=t.parser.context;return new PA(t,[],n,r,r,0,[],0,s?new CG(s,s.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,s=t&65535,{parser:i}=this.p,o=this.reducePos<this.pos-25;o&&this.setLookAhead(this.pos);let a=i.dynamicPrecedence(s);if(a&&(this.score+=a),r==0){this.pushState(i.getGoto(this.state,s,!0),this.reducePos),s<i.minRepeatTerm&&this.storeNode(s,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(s,this.reducePos);return}let l=this.stack.length-(r-1)*3-(t&262144?6:0),c=l?this.stack[l-2]:this.p.ranges[0].from,u=this.reducePos-c;u>=2e3&&!(!((n=this.p.parser.nodeSet.types[s])===null||n===void 0)&&n.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=u));let d=l?this.stack[l-1]:0,p=this.bufferBase+this.buffer.length-d;if(s<i.minRepeatTerm||t&131072){let m=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(s,c,m,p+4,!0)}if(t&262144)this.state=this.stack[l];else{let m=this.stack[l-3];this.state=i.getGoto(m,s,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(s,c)}storeNode(t,n,r,s=4,i=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,a=this.buffer.length;if(a==0&&o.parent&&(a=o.bufferBase-o.parent.bufferBase,o=o.parent),a>0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(n==r)return;if(o.buffer[a-2]>=n){o.buffer[a-2]=r;return}}}if(!i||this.pos==r)this.buffer.push(t,n,r,s);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>r;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,s>4&&(s-=4)}this.buffer[o]=t,this.buffer[o+1]=n,this.buffer[o+2]=r,this.buffer[o+3]=s}}shift(t,n,r,s){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let i=t,{parser:o}=this.p;(s>this.pos||n<=o.maxNode)&&(this.pos=s,o.stateFlag(i,1)||(this.reducePos=s)),this.pushState(i,r),this.shiftContext(n,r),n<=o.maxNode&&this.buffer.push(n,r,s,4)}else this.pos=s,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,s,4)}apply(t,n,r,s){t&65536?this.reduce(t):this.shift(t,n,r,s)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let s=this.pos;this.reducePos=this.pos=s+t.length,this.pushState(n,s),this.buffer.push(r,s,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),s=t.bufferBase+n;for(;t&&s==t.bufferBase;)t=t.parent;return new PA(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,s,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new yWe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let s=[];for(let i=0,o;i<n.length;i+=2)(o=n[i+1])!=this.state&&this.p.parser.hasAction(o,t)&&s.push(n[i],o);if(this.stack.length<120)for(let i=0;s.length<8&&i<n.length;i+=2){let o=n[i+1];s.some((a,l)=>l&1&&a==o)||s.push(n[i],o)}n=s}let r=[];for(let s=0;s<n.length&&r.length<4;s+=2){let i=n[s+1];if(i==this.state)continue;let o=this.split();o.pushState(i,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(n[s],this.pos),o.reducePos=this.pos,o.score-=200,r.push(o)}return r}forceReduce(){let{parser:t}=this.p,n=t.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!t.validAction(this.state,n)){let r=n>>19,s=n&65535,i=this.stack.length-r*3;if(i<0||t.getGoto(this.stack[i],s,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;n=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(s,i)=>{if(!n.includes(s))return n.push(s),t.allActions(s,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-i;if(a>1){let l=o&65535,c=this.stack.length-a*3;if(c>=0&&t.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=r(o,i+1);if(a!=null)return a}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=t.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(n)))}reduceContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(n)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let n=new CG(this.curContext.tracker,t);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class CG{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class yWe{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let s=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=s}}class MA{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new MA(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new MA(this.stack,this.pos,this.index)}}function sE(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,s=0;r<e.length;){let i=0;for(;;){let o=e.charCodeAt(r++),a=!1;if(o==126){i=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),i+=l,a)break;i*=46}n?n[s++]=i:n=new t(i)}return n}class SD{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const kG=new SD;class bWe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=kG,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,s=this.rangeIndex,i=this.pos+t;for(;i<r.from;){if(!s)return null;let o=this.ranges[--s];i-=r.from-o.to,r=o}for(;n<0?i>r.to:i>=r.to;){if(s==this.ranges.length-1)return null;let o=this.ranges[++s];i+=o.from-r.to,r=o}return i}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let n of this.ranges)if(n.to>t)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,s;if(n>=0&&n<this.chunk.length)r=this.pos+t,s=this.chunk.charCodeAt(n);else{let i=this.resolveOffset(t,1);if(i==null)return-1;if(r=i,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)s=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let o=this.rangeIndex,a=this.range;for(;a.to<=r;)a=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-r)),s=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),s}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=r}acceptTokenTo(t,n){this.token.value=t,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),n=this.pos+t.length;this.chunk=n>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=kG,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,n){if(t>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let s of this.ranges){if(s.from>=n)break;s.to>t&&(r+=this.input.read(Math.max(s.from,t),Math.min(s.to,n)))}return r}}class _0{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;vWe(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}_0.prototype.contextual=_0.prototype.fallback=_0.prototype.extend=!1;_0.prototype.fallback=_0.prototype.extend=!1;function vWe(e,t,n,r,s,i){let o=0,a=1<<r,{dialect:l}=n.p.parser;e:for(;(a&e[o])!=0;){let c=e[o+1];for(let m=o+3;m<c;m+=2)if((e[m+1]&a)>0){let b=e[m];if(l.allows(b)&&(t.token.value==-1||t.token.value==b||xWe(b,t.token.value,s,i))){t.acceptToken(b);break}}let u=t.next,d=0,p=e[o+2];if(t.next<0&&p>d&&e[c+p*3-3]==65535){o=e[c+p*3-1];continue e}for(;d<p;){let m=d+p>>1,b=c+m+(m<<1),x=e[b],C=e[b+1]||65536;if(u<x)p=m;else if(u>=C)d=m+1;else{o=e[b+2],t.advance();continue e}}break}}function EG(e,t,n){for(let r=t,s;(s=e[r])!=65535;r++)if(s==n)return r-t;return-1}function xWe(e,t,n,r){let s=EG(n,r,t);return s<0||EG(n,r,e)<s}const ra=typeof gWe<"u"&&SG&&/\bparse\b/.test(SG.LOG);let EN=null;function DG(e,t,n){let r=e.cursor(qs.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class wWe{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?DG(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?DG(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],s=this.index[n];if(s==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=r.children[s],o=this.start[n]+r.positions[s];if(o>t)return this.nextStart=o,null;if(i instanceof xs){if(o==t){if(o<this.safeFrom)return null;let a=o+i.length;if(a<=this.safeTo){let l=i.prop(dn.lookAhead);if(!l||a+l<this.fragment.to)return i}}this.index[n]++,o+i.length>=Math.max(this.safeFrom,t)&&(this.trees.push(i),this.start.push(o),this.index.push(0))}else this.index[n]++,this.nextStart=o+i.length}}}class SWe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new SD)}getActions(t){let n=0,r=null,{parser:s}=t.p,{tokenizers:i}=s,o=s.stateSlot(t.state,3),a=t.curContext?t.curContext.hash:0,l=0;for(let c=0;c<i.length;c++){if((1<<c&o)==0)continue;let u=i[c],d=this.tokens[c];if(!(r&&!u.fallback)&&((u.contextual||d.start!=t.pos||d.mask!=o||d.context!=a)&&(this.updateCachedToken(d,u,t),d.mask=o,d.context=a),d.lookAhead>d.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let p=n;if(d.extended>-1&&(n=this.addActions(t,d.extended,d.end,n)),n=this.addActions(t,d.value,d.end,n),!u.extend&&(r=d,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new SD,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new SD,{pos:r,p:s}=t;return n.start=r,n.end=Math.min(r+1,s.stream.end),n.value=r==s.stream.end?s.parser.eofTerm:0,n}updateCachedToken(t,n,r){let s=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(s,t),r),t.value>-1){let{parser:i}=r.p;for(let o=0;o<i.specialized.length;o++)if(i.specialized[o]==t.value){let a=i.specializers[o](this.stream.read(t.start,t.end),r);if(a>=0&&r.p.parser.dialect.allows(a>>1)){(a&1)==0?t.value=a>>1:t.extended=a>>1;break}}}else t.value=0,t.end=this.stream.clipPos(s+1)}putAction(t,n,r,s){for(let i=0;i<s;i+=3)if(this.actions[i]==t)return s;return this.actions[s++]=t,this.actions[s++]=n,this.actions[s++]=r,s}addActions(t,n,r,s){let{state:i}=t,{parser:o}=t.p,{data:a}=o;for(let l=0;l<2;l++)for(let c=o.stateSlot(i,l?2:1);;c+=3){if(a[c]==65535)if(a[c+1]==1)c=od(a,c+2);else{s==0&&a[c+1]==2&&(s=this.putAction(od(a,c+2),n,r,s));break}a[c]==n&&(s=this.putAction(od(a,c+1),n,r,s))}return s}}class CWe{constructor(t,n,r,s){this.parser=t,this.input=n,this.ranges=s,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new bWe(n,s),this.tokens=new SWe(t,this.stream),this.topTerm=t.top[1];let{from:i}=s[0];this.stacks=[PA.start(this,t.top[0],i)],this.fragments=r.length&&this.stream.end-i>t.bufferLength*4?new wWe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],s,i;if(this.bigReductionCount>300&&t.length==1){let[o]=t;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<t.length;o++){let a=t[o];for(;;){if(this.tokens.mainToken=null,a.pos>n)r.push(a);else{if(this.advanceStack(a,r,t))continue;{s||(s=[],i=[]),s.push(a);let l=this.tokens.getMainToken(a);i.push(l.value,l.end)}}break}}if(!r.length){let o=s&&EWe(s);if(o)return ra&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw ra&&s&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&s){let o=this.stoppedAt!=null&&s[0].pos>this.stoppedAt?s[0]:this.runRecovery(s,i,r);if(o)return ra&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(r.length>o)for(r.sort((a,l)=>l.score-a.score);r.length>o;)r.pop();r.some(a=>a.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let o=0;o<r.length-1;o++){let a=r[o];for(let l=o+1;l<r.length;l++){let c=r[l];if(a.sameState(c)||a.buffer.length>500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)r.splice(l--,1);else{r.splice(o--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let o=1;o<r.length;o++)r[o].pos<this.minStackPos&&(this.minStackPos=r[o].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,n,r){let s=t.pos,{parser:i}=this,o=ra?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&s>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let c=t.curContext&&t.curContext.tracker.strict,u=c?t.curContext.hash:0;for(let d=this.fragments.nodeAt(s);d;){let p=this.parser.nodeSet.types[d.type.id]==d.type?i.getGoto(t.state,d.type.id):-1;if(p>-1&&d.length&&(!c||(d.prop(dn.contextHash)||0)==u))return t.useNode(d,p),ra&&console.log(o+this.stackID(t)+` (via reuse of ${i.getName(d.type.id)})`),!0;if(!(d instanceof xs)||d.children.length==0||d.positions[0]>0)break;let m=d.children[0];if(m instanceof xs&&d.positions[0]==0)d=m;else break}}let a=i.stateSlot(t.state,4);if(a>0)return t.reduce(a),ra&&console.log(o+this.stackID(t)+` (via always-reduce ${i.getName(a&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let c=0;c<l.length;){let u=l[c++],d=l[c++],p=l[c++],m=c==l.length||!r,b=m?t:t.split(),x=this.tokens.mainToken;if(b.apply(u,d,x?x.start:b.pos,p),ra&&console.log(o+this.stackID(b)+` (via ${(u&65536)==0?"shift":`reduce of ${i.getName(u&65535)}`} for ${i.getName(d)} @ ${s}${b==t?"":", split"})`),m)return!0;b.pos>s?n.push(b):r.push(b)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return AG(t,n),!0}}runRecovery(t,n,r){let s=null,i=!1;for(let o=0;o<t.length;o++){let a=t[o],l=n[o<<1],c=n[(o<<1)+1],u=ra?this.stackID(a)+" -> ":"";if(a.deadEnd&&(i||(i=!0,a.restart(),ra&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,r))))continue;let d=a.split(),p=u;for(let m=0;d.forceReduce()&&m<10&&(ra&&console.log(p+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));m++)ra&&(p=this.stackID(d)+" -> ");for(let m of a.recoverByInsert(l))ra&&console.log(u+this.stackID(m)+" (via recover-insert)"),this.advanceFully(m,r);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),ra&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),AG(a,r)):(!s||s.score<a.score)&&(s=a)}return s}stackToTree(t){return t.close(),xs.build({buffer:MA.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let n=(EN||(EN=new WeakMap)).get(t);return n||EN.set(t,n=String.fromCodePoint(this.nextStackID++)),n+t}}function AG(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}class kWe{constructor(t,n,r){this.source=t,this.flags=n,this.disabled=r}allows(t){return!this.disabled||this.disabled[t]==0}}class FA extends Ble{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let a=0;a<t.repeatNodeCount;a++)n.push("");let r=Object.keys(t.topRules).map(a=>t.topRules[a][1]),s=[];for(let a=0;a<n.length;a++)s.push([]);function i(a,l,c){s[a].push([l,l.deserialize(String(c))])}if(t.nodeProps)for(let a of t.nodeProps){let l=a[0];typeof l=="string"&&(l=dn[l]);for(let c=1;c<a.length;){let u=a[c++];if(u>=0)i(u,l,a[c++]);else{let d=a[c+-u];for(let p=-u;p>0;p--)i(a[c++],l,d);c++}}}this.nodeSet=new YI(n.map((a,l)=>Wo.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:s[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Rle;let o=sE(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(TG),this.states=sE(t.states,Uint32Array),this.data=sE(t.stateData),this.goto=sE(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(a=>typeof a=="number"?new _0(o,a):a),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let s=new CWe(this,t,n,r);for(let i of this.wrappers)s=i(s,t,n,r);return s}getGoto(t,n,r=!1){let s=this.goto;if(n>=s[0])return-1;for(let i=s[n+1];;){let o=s[i++],a=o&1,l=s[i++];if(a&&r)return l;for(let c=i+(o>>1);i<c;i++)if(s[i]==t)return l;if(a)return-1}}hasAction(t,n){let r=this.data;for(let s=0;s<2;s++)for(let i=this.stateSlot(t,s?2:1),o;;i+=3){if((o=r[i])==65535)if(r[i+1]==1)o=r[i=od(r,i+2)];else{if(r[i+1]==2)return od(r,i+2);break}if(o==n||o==0)return od(r,i+1)}return 0}stateSlot(t,n){return this.states[t*6+n]}stateFlag(t,n){return(this.stateSlot(t,0)&n)>0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),s=r?n(r):void 0;for(let i=this.stateSlot(t,1);s==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=od(this.data,i+2);else break;s=n(od(this.data,i+1))}return s}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=od(this.data,r+2);else break;if((this.data[r+2]&1)==0){let s=this.data[r+1];n.some((i,o)=>o&1&&i==s)||n.push(this.data[r],s)}}return n}configure(t){let n=Object.assign(Object.create(FA.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let s=t.tokenizers.find(i=>i.from==r);return s?s.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,s)=>{let i=t.specializers.find(a=>a.from==r.external);if(!i)return r;let o=Object.assign(Object.assign({},r),{external:i.to});return n.specializers[s]=TG(o),o})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let i of t.split(" ")){let o=n.indexOf(i);o>=0&&(r[o]=!0)}let s=null;for(let i=0;i<n.length;i++)if(!r[i])for(let o=this.dialects[n[i]],a;(a=this.data[o++])!=65535;)(s||(s=new Uint8Array(this.maxTerm+1)))[a]=1;return new kWe(t,r,s)}static deserialize(t){return new FA(t)}}function od(e,t){return e[t]|e[t+1]<<16}function EWe(e){let t=null;for(let n of e){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function TG(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}let DWe=0;class La{constructor(t,n,r,s){this.name=t,this.set=n,this.base=r,this.modified=s,this.id=DWe++}toString(){let{name:t}=this;for(let n of this.modified)n.name&&(t=`${n.name}(${t})`);return t}static define(t,n){let r=typeof t=="string"?t:"?";if(t instanceof La&&(n=t),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let s=new La(r,[],null,[]);if(s.set.push(s),n)for(let i of n.set)s.set.push(i);return s}static defineModifier(t){let n=new OA(t);return r=>r.modified.indexOf(n)>-1?r:OA.get(r.base||r,r.modified.concat(n).sort((s,i)=>s.id-i.id))}}let AWe=0;class OA{constructor(t){this.name=t,this.instances=[],this.id=AWe++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(a=>a.base==t&&TWe(n,a.modified));if(r)return r;let s=[],i=new La(t.name,s,t,n);for(let a of n)a.instances.push(i);let o=_We(n);for(let a of t.set)if(!a.modified.length)for(let l of o)s.push(OA.get(a,l));return i}}function TWe(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function _We(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,s=t.length;r<s;r++)t.push(t[r].concat(e[n]));return t.sort((n,r)=>r.length-n.length)}function $le(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let s of n.split(" "))if(s){let i=[],o=2,a=s;for(let d=0;;){if(a=="..."&&d>0&&d+3==s.length){o=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!p)throw new RangeError("Invalid path: "+s);if(i.push(p[0]=="*"?"":p[0][0]=='"'?JSON.parse(p[0]):p[0]),d+=p[0].length,d==s.length)break;let m=s[d++];if(d==s.length&&m=="!"){o=0;break}if(m!="/")throw new RangeError("Invalid path: "+s);a=s.slice(d)}let l=i.length-1,c=i[l];if(!c)throw new RangeError("Invalid path: "+s);let u=new RA(r,o,l>0?i.slice(0,l):null);t[c]=u.sort(t[c])}}return zle.add(t)}const zle=new dn;class RA{constructor(t,n,r,s){this.tags=t,this.mode=n,this.context=r,this.next=s}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}RA.empty=new RA([],2,null);function Hle(e,t){let n=Object.create(null);for(let i of e)if(!Array.isArray(i.tag))n[i.tag.id]=i.class;else for(let o of i.tag)n[o.id]=i.class;let{scope:r,all:s=null}=t||{};return{style:i=>{let o=s;for(let a of i)for(let l of a.set){let c=n[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:r}}function NWe(e,t){let n=null;for(let r of e){let s=r.style(t);s&&(n=n?n+" "+s:s)}return n}function PWe(e,t,n,r=0,s=e.length){let i=new MWe(r,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),r,s,"",i.highlighters),i.flush(s)}class MWe{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,s,i){let{type:o,from:a,to:l}=t;if(a>=r||l<=n)return;o.isTop&&(i=this.highlighters.filter(m=>!m.scope||m.scope(o)));let c=s,u=FWe(t)||RA.empty,d=NWe(i,u.tags);if(d&&(c&&(c+=" "),c+=d,u.mode==1&&(s+=(s?" ":"")+d)),this.startSpan(Math.max(n,a),c),u.opaque)return;let p=t.tree&&t.tree.prop(dn.mounted);if(p&&p.overlay){let m=t.node.enter(p.overlay[0].from+a,1),b=this.highlighters.filter(C=>!C.scope||C.scope(p.tree.type)),x=t.firstChild();for(let C=0,S=a;;C++){let A=C<p.overlay.length?p.overlay[C]:null,T=A?A.from+a:l,N=Math.max(n,S),F=Math.min(r,T);if(N<F&&x)for(;t.from<F&&(this.highlightRange(t,N,F,s,i),this.startSpan(Math.min(F,t.to),c),!(t.to>=T||!t.nextSibling())););if(!A||T>r)break;S=A.to+a,S>n&&(this.highlightRange(m.cursor(),Math.max(n,A.from+a),Math.min(r,S),"",b),this.startSpan(Math.min(r,S),c))}x&&t.parent()}else if(t.firstChild()){p&&(s="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,s,i),this.startSpan(Math.min(r,t.to),c)}while(t.nextSibling());t.parent()}}}function FWe(e){let t=e.type.prop(zle);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const rt=La.define,iE=rt(),rf=rt(),_G=rt(rf),NG=rt(rf),sf=rt(),oE=rt(sf),DN=rt(sf),Tc=rt(),Qp=rt(Tc),Sc=rt(),Cc=rt(),k7=rt(),Yx=rt(k7),aE=rt(),Se={comment:iE,lineComment:rt(iE),blockComment:rt(iE),docComment:rt(iE),name:rf,variableName:rt(rf),typeName:_G,tagName:rt(_G),propertyName:NG,attributeName:rt(NG),className:rt(rf),labelName:rt(rf),namespace:rt(rf),macroName:rt(rf),literal:sf,string:oE,docString:rt(oE),character:rt(oE),attributeValue:rt(oE),number:DN,integer:rt(DN),float:rt(DN),bool:rt(sf),regexp:rt(sf),escape:rt(sf),color:rt(sf),url:rt(sf),keyword:Sc,self:rt(Sc),null:rt(Sc),atom:rt(Sc),unit:rt(Sc),modifier:rt(Sc),operatorKeyword:rt(Sc),controlKeyword:rt(Sc),definitionKeyword:rt(Sc),moduleKeyword:rt(Sc),operator:Cc,derefOperator:rt(Cc),arithmeticOperator:rt(Cc),logicOperator:rt(Cc),bitwiseOperator:rt(Cc),compareOperator:rt(Cc),updateOperator:rt(Cc),definitionOperator:rt(Cc),typeOperator:rt(Cc),controlOperator:rt(Cc),punctuation:k7,separator:rt(k7),bracket:Yx,angleBracket:rt(Yx),squareBracket:rt(Yx),paren:rt(Yx),brace:rt(Yx),content:Tc,heading:Qp,heading1:rt(Qp),heading2:rt(Qp),heading3:rt(Qp),heading4:rt(Qp),heading5:rt(Qp),heading6:rt(Qp),contentSeparator:rt(Tc),list:rt(Tc),quote:rt(Tc),emphasis:rt(Tc),strong:rt(Tc),link:rt(Tc),monospace:rt(Tc),strikethrough:rt(Tc),inserted:rt(),deleted:rt(),changed:rt(),invalid:rt(),meta:aE,documentMeta:rt(aE),annotation:rt(aE),processingInstruction:rt(aE),definition:La.defineModifier("definition"),constant:La.defineModifier("constant"),function:La.defineModifier("function"),standard:La.defineModifier("standard"),local:La.defineModifier("local"),special:La.defineModifier("special")};for(let e in Se){let t=Se[e];t instanceof La&&(t.name=e)}Hle([{tag:Se.link,class:"tok-link"},{tag:Se.heading,class:"tok-heading"},{tag:Se.emphasis,class:"tok-emphasis"},{tag:Se.strong,class:"tok-strong"},{tag:Se.keyword,class:"tok-keyword"},{tag:Se.atom,class:"tok-atom"},{tag:Se.bool,class:"tok-bool"},{tag:Se.url,class:"tok-url"},{tag:Se.labelName,class:"tok-labelName"},{tag:Se.inserted,class:"tok-inserted"},{tag:Se.deleted,class:"tok-deleted"},{tag:Se.literal,class:"tok-literal"},{tag:Se.string,class:"tok-string"},{tag:Se.number,class:"tok-number"},{tag:[Se.regexp,Se.escape,Se.special(Se.string)],class:"tok-string2"},{tag:Se.variableName,class:"tok-variableName"},{tag:Se.local(Se.variableName),class:"tok-variableName tok-local"},{tag:Se.definition(Se.variableName),class:"tok-variableName tok-definition"},{tag:Se.special(Se.variableName),class:"tok-variableName2"},{tag:Se.definition(Se.propertyName),class:"tok-propertyName tok-definition"},{tag:Se.typeName,class:"tok-typeName"},{tag:Se.namespace,class:"tok-namespace"},{tag:Se.className,class:"tok-className"},{tag:Se.macroName,class:"tok-macroName"},{tag:Se.propertyName,class:"tok-propertyName"},{tag:Se.operator,class:"tok-operator"},{tag:Se.comment,class:"tok-comment"},{tag:Se.meta,class:"tok-meta"},{tag:Se.invalid,class:"tok-invalid"},{tag:Se.punctuation,class:"tok-punctuation"}]);const OWe=$le({String:Se.string,Number:Se.number,"True False":Se.bool,PropertyName:Se.propertyName,Null:Se.null,", :":Se.separator,"[ ]":Se.squareBracket,"{ }":Se.brace}),RWe=FA.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[OWe],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});let E7=[],Vle=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?Vle:E7).push(n=n+e[t])})();function IWe(e){if(e<768)return!1;for(let t=0,n=E7.length;;){let r=t+n>>1;if(e<E7[r])n=r;else if(e>=Vle[r])t=r+1;else return!0;if(t==n)return!1}}function PG(e){return e>=127462&&e<=127487}const MG=8205;function jWe(e,t,n=!0,r=!0){return(n?Ule:LWe)(e,t,r)}function Ule(e,t,n){if(t==e.length)return t;t&&qle(e.charCodeAt(t))&&Wle(e.charCodeAt(t-1))&&t--;let r=AN(e,t);for(t+=FG(r);t<e.length;){let s=AN(e,t);if(r==MG||s==MG||n&&IWe(s))t+=FG(s),r=s;else if(PG(s)){let i=0,o=t-2;for(;o>=0&&PG(AN(e,o));)i++,o-=2;if(i%2==0)break;t+=2}else break}return t}function LWe(e,t,n){for(;t>0;){let r=Ule(e,t-2,n);if(r<t)return r;t--}return 0}function AN(e,t){let n=e.charCodeAt(t);if(!Wle(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return qle(r)?(n-55296<<10)+(r-56320)+65536:n}function qle(e){return e>=56320&&e<57344}function Wle(e){return e>=55296&&e<56320}function FG(e){return e<65536?1:2}let $n=class Gle{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=Sb(this,t,n);let s=[];return this.decompose(0,t,s,2),r.length&&r.decompose(0,r.length,s,3),this.decompose(n,this.length,s,1),jc.from(s,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=Sb(this,t,n);let r=[];return this.decompose(t,n,r,0),jc.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),s=new $1(this),i=new $1(t);for(let o=n,a=n;;){if(s.next(o),i.next(o),o=0,s.lineBreak!=i.lineBreak||s.done!=i.done||s.value!=i.value)return!1;if(a+=s.value.length,s.done||a>=r)return!0}}iter(t=1){return new $1(this,t)}iterRange(t,n=this.length){return new Yle(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let s=this.line(t).from;r=this.iterRange(s,Math.max(s,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new Xle(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?Gle.empty:t.length<=32?new os(t):jc.from(os.split(t,[]))}};class os extends $n{constructor(t,n=BWe(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,s){for(let i=0;;i++){let o=this.text[i],a=s+o.length;if((n?r:a)>=t)return new $We(s,a,r,o);s=a+1,r++}}decompose(t,n,r,s){let i=t<=0&&n>=this.length?this:new os(OG(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(s&1){let o=r.pop(),a=CD(i.text,o.text.slice(),0,i.length);if(a.length<=32)r.push(new os(a,o.length+i.length));else{let l=a.length>>1;r.push(new os(a.slice(0,l)),new os(a.slice(l)))}}else r.push(i)}replace(t,n,r){if(!(r instanceof os))return super.replace(t,n,r);[t,n]=Sb(this,t,n);let s=CD(this.text,CD(r.text,OG(this.text,0,t)),n),i=this.length+r.length-(n-t);return s.length<=32?new os(s,i):jc.from(os.split(s,[]),i)}sliceString(t,n=this.length,r=`
|
|
576
576
|
`){[t,n]=Sb(this,t,n);let s="";for(let i=0,o=0;i<=n&&o<this.text.length;o++){let a=this.text[o],l=i+a.length;i>t&&o&&(s+=r),t<l&&n>i&&(s+=a.slice(Math.max(0,t-i),n-i)),i=l+1}return s}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],s=-1;for(let i of t)r.push(i),s+=i.length+1,r.length==32&&(n.push(new os(r,s)),r=[],s=-1);return s>-1&&n.push(new os(r,s)),n}}class jc extends $n{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,s){for(let i=0;;i++){let o=this.children[i],a=s+o.length,l=r+o.lines-1;if((n?l:a)>=t)return o.lineInner(t,n,r,s);s=a+1,r=l+1}}decompose(t,n,r,s){for(let i=0,o=0;o<=n&&i<this.children.length;i++){let a=this.children[i],l=o+a.length;if(t<=l&&n>=o){let c=s&((o<=t?1:0)|(l>=n?2:0));o>=t&&l<=n&&!c?r.push(a):a.decompose(t-o,n-o,r,c)}o=l+1}}replace(t,n,r){if([t,n]=Sb(this,t,n),r.lines<this.lines)for(let s=0,i=0;s<this.children.length;s++){let o=this.children[s],a=i+o.length;if(t>=i&&n<=a){let l=o.replace(t-i,n-i,r),c=this.lines-o.lines+l.lines;if(l.lines<c>>4&&l.lines>c>>6){let u=this.children.slice();return u[s]=l,new jc(u,this.length-(n-t)+r.length)}return super.replace(i,a,l)}i=a+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=`
|
|
577
577
|
`){[t,n]=Sb(this,t,n);let s="";for(let i=0,o=0;i<this.children.length&&o<=n;i++){let a=this.children[i],l=o+a.length;o>t&&i&&(s+=r),t<l&&n>o&&(s+=a.sliceString(t-o,n-o,r)),o=l+1}return s}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof jc))return 0;let r=0,[s,i,o,a]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;s+=n,i+=n){if(s==o||i==a)return r;let l=this.children[s],c=t.children[i];if(l!=c)return r+l.scanIdentical(c,n);r+=l.length+1}}static from(t,n=t.reduce((r,s)=>r+s.length+1,-1)){let r=0;for(let m of t)r+=m.lines;if(r<32){let m=[];for(let b of t)b.flatten(m);return new os(m,n)}let s=Math.max(32,r>>5),i=s<<1,o=s>>1,a=[],l=0,c=-1,u=[];function d(m){let b;if(m.lines>i&&m instanceof jc)for(let x of m.children)d(x);else m.lines>o&&(l>o||!l)?(p(),a.push(m)):m instanceof os&&l&&(b=u[u.length-1])instanceof os&&m.lines+b.lines<=32?(l+=m.lines,c+=m.length+1,u[u.length-1]=new os(b.text.concat(m.text),b.length+1+m.length)):(l+m.lines>s&&p(),l+=m.lines,c+=m.length+1,u.push(m))}function p(){l!=0&&(a.push(u.length==1?u[0]:jc.from(u,c)),c=-1,l=u.length=0)}for(let m of t)d(m);return p(),a.length==1?a[0]:new jc(a,n)}}$n.empty=new os([""],0);function BWe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function CD(e,t,n=0,r=1e9){for(let s=0,i=0,o=!0;i<e.length&&s<=r;i++){let a=e[i],l=s+a.length;l>=n&&(l>r&&(a=a.slice(0,r-s)),s<n&&(a=a.slice(n-s)),o?(t[t.length-1]+=a,o=!1):t.push(a)),s=l+1}return t}function OG(e,t,n){return CD(e,[""],t,n)}class $1{constructor(t,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?1:(t instanceof os?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,s=this.nodes[r],i=this.offsets[r],o=i>>1,a=s instanceof os?s.text.length:s.children.length;if(o==(n>0?a:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=`
|
|
578
578
|
`,this;t--}else if(s instanceof os){let l=s.text[o+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=s.children[o+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof os?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class Yle{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new $1(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:s}=this.cursor.next(t);return this.pos+=(s.length+t)*n,this.value=s.length<=r?s:n<0?s.slice(s.length-r):s.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Xle{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:s}=this.inner.next(t);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&($n.prototype[Symbol.iterator]=function(){return this.iter()},$1.prototype[Symbol.iterator]=Yle.prototype[Symbol.iterator]=Xle.prototype[Symbol.iterator]=function(){return this});class $We{constructor(t,n,r,s){this.from=t,this.to=n,this.number=r,this.text=s}get length(){return this.to-this.from}}function Sb(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}function ai(e,t,n=!0,r=!0){return jWe(e,t,n,r)}function zWe(e){return e>=56320&&e<57344}function HWe(e){return e>=55296&&e<56320}function ko(e,t){let n=e.charCodeAt(t);if(!HWe(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return zWe(r)?(n-55296<<10)+(r-56320)+65536:n}function JI(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function Lc(e){return e<65536?1:2}const D7=/\r\n?|\n/;var Zi=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Zi||(Zi={}));class Jc{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;n<this.sections.length;n+=2)t+=this.sections[n];return t}get newLength(){let t=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];t+=r<0?this.sections[n]:r}return t}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(t){for(let n=0,r=0,s=0;n<this.sections.length;){let i=this.sections[n++],o=this.sections[n++];o<0?(t(r,s,i),s+=i):s+=o,r+=i}}iterChangedRanges(t,n=!1){A7(this,t,n)}get invertedDesc(){let t=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],s=this.sections[n++];s<0?t.push(r,s):t.push(s,r)}return new Jc(t)}composeDesc(t){return this.empty?t:t.empty?this:Kle(this,t)}mapDesc(t,n=!1){return t.empty?this:T7(this,t,n)}mapPos(t,n=-1,r=Zi.Simple){let s=0,i=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],l=this.sections[o++],c=s+a;if(l<0){if(c>t)return i+(t-s);i+=a}else{if(r!=Zi.Simple&&c>=t&&(r==Zi.TrackDel&&s<t&&c>t||r==Zi.TrackBefore&&s<t||r==Zi.TrackAfter&&c>t))return null;if(c>t||c==t&&n<0&&!a)return t==s||n<0?i:i+l;i+=l}s=c}if(t>s)throw new RangeError(`Position ${t} is out of range for changeset of length ${s}`);return i}touchesRange(t,n=t){for(let r=0,s=0;r<this.sections.length&&s<=n;){let i=this.sections[r++],o=this.sections[r++],a=s+i;if(o>=0&&s<=n&&a>=t)return s<t&&a>n?"cover":!0;s=a}return!1}toString(){let t="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],s=this.sections[n++];t+=(t?" ":"")+r+(s>=0?":"+s:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Jc(t)}static create(t){return new Jc(t)}}class Ms extends Jc{constructor(t,n){super(t),this.inserted=n}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return A7(this,(n,r,s,i,o)=>t=t.replace(s,s+(r-n),o),!1),t}mapDesc(t,n=!1){return T7(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let s=0,i=0;s<n.length;s+=2){let o=n[s],a=n[s+1];if(a>=0){n[s]=a,n[s+1]=o;let l=s>>1;for(;r.length<l;)r.push($n.empty);r.push(o?t.slice(i,i+o):$n.empty)}i+=o}return new Ms(n,r)}compose(t){return this.empty?t:t.empty?this:Kle(this,t,!0)}map(t,n=!1){return t.empty?this:T7(this,t,n,!0)}iterChanges(t,n=!1){A7(this,t,n)}get desc(){return Jc.create(this.sections)}filter(t){let n=[],r=[],s=[],i=new Nw(this);e:for(let o=0,a=0;;){let l=o==t.length?1e9:t[o++];for(;a<l||a==l&&i.len==0;){if(i.done)break e;let u=Math.min(i.len,l-a);Si(s,u,-1);let d=i.ins==-1?-1:i.off==0?i.ins:0;Si(n,u,d),d>0&&Sf(r,n,i.text),i.forward(u),a+=u}let c=t[o++];for(;a<c;){if(i.done)break e;let u=Math.min(i.len,c-a);Si(n,u,-1),Si(s,u,i.ins==-1?-1:i.off==0?i.ins:0),i.forward(u),a+=u}}return{changes:new Ms(n,r),filtered:Jc.create(s)}}toJSON(){let t=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],s=this.sections[n+1];s<0?t.push(r):s==0?t.push([r]):t.push([r].concat(this.inserted[n>>1].toJSON()))}return t}static of(t,n,r){let s=[],i=[],o=0,a=null;function l(u=!1){if(!u&&!s.length)return;o<n&&Si(s,n-o,-1);let d=new Ms(s,i);a=a?a.compose(d.map(a)):d,s=[],i=[],o=0}function c(u){if(Array.isArray(u))for(let d of u)c(d);else if(u instanceof Ms){if(u.length!=n)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${n})`);l(),a=a?a.compose(u.map(a)):u}else{let{from:d,to:p=d,insert:m}=u;if(d>p||d<0||p>n)throw new RangeError(`Invalid change range ${d} to ${p} (in doc of length ${n})`);let b=m?typeof m=="string"?$n.of(m.split(r||D7)):m:$n.empty,x=b.length;if(d==p&&x==0)return;d<o&&l(),d>o&&Si(s,d-o,-1),Si(s,p-d,x),Sf(i,s,b),o=p}}return c(t),l(!a),a}static empty(t){return new Ms(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let s=0;s<t.length;s++){let i=t[s];if(typeof i=="number")n.push(i,-1);else{if(!Array.isArray(i)||typeof i[0]!="number"||i.some((o,a)=>a&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(i.length==1)n.push(i[0],0);else{for(;r.length<s;)r.push($n.empty);r[s]=$n.of(i.slice(1)),n.push(i[0],r[s].length)}}}return new Ms(n,r)}static createSet(t,n){return new Ms(t,n)}}function Si(e,t,n,r=!1){if(t==0&&n<=0)return;let s=e.length-2;s>=0&&n<=0&&n==e[s+1]?e[s]+=t:s>=0&&t==0&&e[s]==0?e[s+1]+=n:r?(e[s]+=t,e[s+1]+=n):e.push(t,n)}function Sf(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push($n.empty);e.push(n)}}function A7(e,t,n){let r=e.inserted;for(let s=0,i=0,o=0;o<e.sections.length;){let a=e.sections[o++],l=e.sections[o++];if(l<0)s+=a,i+=a;else{let c=s,u=i,d=$n.empty;for(;c+=a,u+=l,l&&r&&(d=d.append(r[o-2>>1])),!(n||o==e.sections.length||e.sections[o+1]<0);)a=e.sections[o++],l=e.sections[o++];t(s,c,i,u,d),s=c,i=u}}}function T7(e,t,n,r=!1){let s=[],i=r?[]:null,o=new Nw(e),a=new Nw(t);for(let l=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&a.ins==-1){let c=Math.min(o.len,a.len);Si(s,c,-1),o.forward(c),a.forward(c)}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len<o.len||a.len==o.len&&!n))){let c=a.len;for(Si(s,a.ins,-1);c;){let u=Math.min(o.len,c);o.ins>=0&&l<o.i&&o.len<=u&&(Si(s,0,o.ins),i&&Sf(i,s,o.text),l=o.i),o.forward(u),c-=u}a.next()}else if(o.ins>=0){let c=0,u=o.len;for(;u;)if(a.ins==-1){let d=Math.min(u,a.len);c+=d,u-=d,a.forward(d)}else if(a.ins==0&&a.len<u)u-=a.len,a.next();else break;Si(s,c,l<o.i?o.ins:0),i&&l<o.i&&Sf(i,s,o.text),l=o.i,o.forward(o.len-u)}else{if(o.done&&a.done)return i?Ms.createSet(s,i):Jc.create(s);throw new Error("Mismatched change set lengths")}}}function Kle(e,t,n=!1){let r=[],s=n?[]:null,i=new Nw(e),o=new Nw(t);for(let a=!1;;){if(i.done&&o.done)return s?Ms.createSet(r,s):Jc.create(r);if(i.ins==0)Si(r,i.len,0,a),i.next();else if(o.len==0&&!o.done)Si(r,0,o.ins,a),s&&Sf(s,r,o.text),o.next();else{if(i.done||o.done)throw new Error("Mismatched change set lengths");{let l=Math.min(i.len2,o.len),c=r.length;if(i.ins==-1){let u=o.ins==-1?-1:o.off?0:o.ins;Si(r,l,u,a),s&&u&&Sf(s,r,o.text)}else o.ins==-1?(Si(r,i.off?0:i.len,l,a),s&&Sf(s,r,i.textBit(l))):(Si(r,i.off?0:i.len,o.off?0:o.ins,a),s&&!o.off&&Sf(s,r,o.text));a=(i.ins>l||o.ins>=0&&o.len>l)&&(a||r.length>c),i.forward2(l),o.forward(l)}}}}class Nw{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length?$n.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?$n.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class wm{constructor(t,n,r){this.from=t,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,n=-1){let r,s;return this.empty?r=s=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),s=t.mapPos(this.to,-1)),r==this.from&&s==this.to?this:new wm(r,s,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return Be.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return Be.range(this.anchor,r)}eq(t,n=!1){return this.anchor==t.anchor&&this.head==t.head&&(!n||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Be.range(t.anchor,t.head)}static create(t,n,r){return new wm(t,n,r)}}class Be{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:Be.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t,n=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(t.ranges[r],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Be([this.main],0)}addRange(t,n=!0){return Be.create([t].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(t,n=this.mainIndex){let r=this.ranges.slice();return r[n]=t,Be.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Be(t.ranges.map(n=>wm.fromJSON(n)),t.main)}static single(t,n=t){return new Be([Be.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,s=0;s<t.length;s++){let i=t[s];if(i.empty?i.from<=r:i.from<r)return Be.normalized(t.slice(),n);r=i.to}return new Be(t,n)}static cursor(t,n=0,r,s){return wm.create(t,t,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r))|(s??16777215)<<6)}static range(t,n,r,s){let i=(r??16777215)<<6|(s==null?7:Math.min(6,s));return n<t?wm.create(n,t,48|i):wm.create(t,n,(n>t?8:0)|i)}static normalized(t,n=0){let r=t[n];t.sort((s,i)=>s.from-i.from),n=t.indexOf(r);for(let s=1;s<t.length;s++){let i=t[s],o=t[s-1];if(i.empty?i.from<=o.to:i.from<o.to){let a=o.from,l=Math.max(i.to,o.to);s<=n&&n--,t.splice(--s,2,i.anchor>i.head?Be.range(l,a):Be.range(a,l))}}return new Be(t,n)}}function Zle(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let QI=0;class gt{constructor(t,n,r,s,i){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=s,this.id=QI++,this.default=t([]),this.extensions=typeof i=="function"?i(this):i}get reader(){return this}static define(t={}){return new gt(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:ej),!!t.static,t.enables)}of(t){return new kD([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new kD(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new kD(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function ej(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class kD{constructor(t,n,r,s){this.dependencies=t,this.facet=n,this.type=r,this.value=s,this.id=QI++}dynamicSlot(t){var n;let r=this.value,s=this.facet.compareInput,i=this.id,o=t[i]>>1,a=this.type==2,l=!1,c=!1,u=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?c=!0:(((n=t[d.id])!==null&&n!==void 0?n:1)&1)==0&&u.push(t[d.id]);return{create(d){return d.values[o]=r(d),1},update(d,p){if(l&&p.docChanged||c&&(p.docChanged||p.selection)||_7(d,u)){let m=r(d);if(a?!RG(m,d.values[o],s):!s(m,d.values[o]))return d.values[o]=m,1}return 0},reconfigure:(d,p)=>{let m,b=p.config.address[i];if(b!=null){let x=jA(p,b);if(this.dependencies.every(C=>C instanceof gt?p.facet(C)===d.facet(C):C instanceof hi?p.field(C,!1)==d.field(C,!1):!0)||(a?RG(m=r(d),x,s):s(m=r(d),x)))return d.values[o]=x,0}else m=r(d);return d.values[o]=m,1}}}}function RG(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function _7(e,t){let n=!1;for(let r of t)z1(e,r)&1&&(n=!0);return n}function VWe(e,t,n){let r=n.map(l=>e[l.id]),s=n.map(l=>l.type),i=r.filter(l=>!(l&1)),o=e[t.id]>>1;function a(l){let c=[];for(let u=0;u<r.length;u++){let d=jA(l,r[u]);if(s[u]==2)for(let p of d)c.push(p);else c.push(d)}return t.combine(c)}return{create(l){for(let c of r)z1(l,c);return l.values[o]=a(l),1},update(l,c){if(!_7(l,i))return 0;let u=a(l);return t.compare(u,l.values[o])?0:(l.values[o]=u,1)},reconfigure(l,c){let u=_7(l,r),d=c.config.facets[t.id],p=c.facet(t);if(d&&!u&&ej(n,d))return l.values[o]=p,0;let m=a(l);return t.compare(m,p)?(l.values[o]=p,0):(l.values[o]=m,1)}}}const lE=gt.define({static:!0});class hi{constructor(t,n,r,s,i){this.id=t,this.createF=n,this.updateF=r,this.compareF=s,this.spec=i,this.provides=void 0}static define(t){let n=new hi(QI++,t.create,t.update,t.compare||((r,s)=>r===s),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(lE).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,s)=>{let i=r.values[n],o=this.updateF(i,s);return this.compareF(i,o)?0:(r.values[n]=o,1)},reconfigure:(r,s)=>{let i=r.facet(lE),o=s.facet(lE),a;return(a=i.find(l=>l.field==this))&&a!=o.find(l=>l.field==this)?(r.values[n]=a.create(r),1):s.config.address[this.id]!=null?(r.values[n]=s.field(this),0):(r.values[n]=this.create(r),1)}}}init(t){return[this,lE.of({field:this,create:t})]}get extension(){return this}}const pm={lowest:4,low:3,default:2,high:1,highest:0};function Xx(e){return t=>new Jle(t,e)}const qg={highest:Xx(pm.highest),high:Xx(pm.high),default:Xx(pm.default),low:Xx(pm.low),lowest:Xx(pm.lowest)};class Jle{constructor(t,n){this.inner=t,this.prec=n}}class qT{of(t){return new N7(this,t)}reconfigure(t){return qT.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class N7{constructor(t,n){this.compartment=t,this.inner=n}}class IA{constructor(t,n,r,s,i,o){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=s,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(t){let n=this.address[t.id];return n==null?t.default:this.staticValues[n>>1]}static resolve(t,n,r){let s=[],i=Object.create(null),o=new Map;for(let p of UWe(t,n,o))p instanceof hi?s.push(p):(i[p.facet.id]||(i[p.facet.id]=[])).push(p);let a=Object.create(null),l=[],c=[];for(let p of s)a[p.id]=c.length<<1,c.push(m=>p.slot(m));let u=r==null?void 0:r.config.facets;for(let p in i){let m=i[p],b=m[0].facet,x=u&&u[p]||[];if(m.every(C=>C.type==0))if(a[b.id]=l.length<<1|1,ej(x,m))l.push(r.facet(b));else{let C=b.combine(m.map(S=>S.value));l.push(r&&b.compare(C,r.facet(b))?r.facet(b):C)}else{for(let C of m)C.type==0?(a[C.id]=l.length<<1|1,l.push(C.value)):(a[C.id]=c.length<<1,c.push(S=>C.dynamicSlot(S)));a[b.id]=c.length<<1,c.push(C=>VWe(C,b,m))}}let d=c.map(p=>p(a));return new IA(t,o,d,a,l,i)}}function UWe(e,t,n){let r=[[],[],[],[],[]],s=new Map;function i(o,a){let l=s.get(o);if(l!=null){if(l<=a)return;let c=r[l].indexOf(o);c>-1&&r[l].splice(c,1),o instanceof N7&&n.delete(o.compartment)}if(s.set(o,a),Array.isArray(o))for(let c of o)i(c,a);else if(o instanceof N7){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=t.get(o.compartment)||o.inner;n.set(o.compartment,c),i(c,a)}else if(o instanceof Jle)i(o.inner,o.prec);else if(o instanceof hi)r[a].push(o),o.provides&&i(o.provides,a);else if(o instanceof kD)r[a].push(o),o.facet.extensions&&i(o.facet.extensions,pm.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(c,a)}}return i(e,pm.default),r.reduce((o,a)=>o.concat(a))}function z1(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;e.status[n]=4;let s=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|s}function jA(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const Qle=gt.define(),P7=gt.define({combine:e=>e.some(t=>t),static:!0}),ece=gt.define({combine:e=>e.length?e[0]:void 0,static:!0}),tce=gt.define(),nce=gt.define(),rce=gt.define(),sce=gt.define({combine:e=>e.length?e[0]:!1});class vu{constructor(t,n){this.type=t,this.value=n}static define(){return new qWe}}class qWe{of(t){return new vu(this,t)}}class WWe{constructor(t){this.map=t}of(t){return new tn(this,t)}}class tn{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new tn(this.type,n)}is(t){return this.type==t}static define(t={}){return new WWe(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let s of t){let i=s.map(n);i&&r.push(i)}return r}}tn.reconfigure=tn.define();tn.appendConfig=tn.define();class Rs{constructor(t,n,r,s,i,o){this.startState=t,this.changes=n,this.selection=r,this.effects=s,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,r&&Zle(r,n.newLength),i.some(a=>a.type==Rs.time)||(this.annotations=i.concat(Rs.time.of(Date.now())))}static create(t,n,r,s,i,o){return new Rs(t,n,r,s,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(Rs.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}Rs.time=vu.define();Rs.userEvent=vu.define();Rs.addToHistory=vu.define();Rs.remote=vu.define();function GWe(e,t){let n=[];for(let r=0,s=0;;){let i,o;if(r<e.length&&(s==t.length||t[s]>=e[r]))i=e[r++],o=e[r++];else if(s<t.length)i=t[s++],o=t[s++];else return n;!n.length||n[n.length-1]<i?n.push(i,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function ice(e,t,n){var r;let s,i,o;return n?(s=t.changes,i=Ms.empty(t.changes.length),o=e.changes.compose(t.changes)):(s=t.changes.map(e.changes),i=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(s)),{changes:o,selection:t.selection?t.selection.map(i):(r=e.selection)===null||r===void 0?void 0:r.map(s),effects:tn.mapEffects(e.effects,s).concat(tn.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function M7(e,t,n){let r=t.selection,s=N0(t.annotations);return t.userEvent&&(s=s.concat(Rs.userEvent.of(t.userEvent))),{changes:t.changes instanceof Ms?t.changes:Ms.of(t.changes||[],n,e.facet(ece)),selection:r&&(r instanceof Be?r:Be.single(r.anchor,r.head)),effects:N0(t.effects),annotations:s,scrollIntoView:!!t.scrollIntoView}}function oce(e,t,n){let r=M7(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(n=!1);for(let i=1;i<t.length;i++){t[i].filter===!1&&(n=!1);let o=!!t[i].sequential;r=ice(r,M7(e,t[i],o?r.changes.newLength:e.doc.length),o)}let s=Rs.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return XWe(n?YWe(s):s)}function YWe(e){let t=e.startState,n=!0;for(let s of t.facet(tce)){let i=s(e);if(i===!1){n=!1;break}Array.isArray(i)&&(n=n===!0?i:GWe(n,i))}if(n!==!0){let s,i;if(n===!1)i=e.changes.invertedDesc,s=Ms.empty(t.doc.length);else{let o=e.changes.filter(n);s=o.changes,i=o.filtered.mapDesc(o.changes).invertedDesc}e=Rs.create(t,s,e.selection&&e.selection.map(i),tn.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(nce);for(let s=r.length-1;s>=0;s--){let i=r[s](e);i instanceof Rs?e=i:Array.isArray(i)&&i.length==1&&i[0]instanceof Rs?e=i[0]:e=oce(t,N0(i),!1)}return e}function XWe(e){let t=e.startState,n=t.facet(rce),r=e;for(let s=n.length-1;s>=0;s--){let i=n[s](e);i&&Object.keys(i).length&&(r=ice(r,M7(t,i,e.changes.newLength),!0))}return r==e?e:Rs.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const KWe=[];function N0(e){return e==null?KWe:Array.isArray(e)?e:[e]}var Or=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Or||(Or={}));const ZWe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let F7;try{F7=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function JWe(e){if(F7)return F7.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||ZWe.test(n)))return!0}return!1}function QWe(e){return t=>{if(!/\S/.test(t))return Or.Space;if(JWe(t))return Or.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return Or.Word;return Or.Other}}class Sn{constructor(t,n,r,s,i,o){this.config=t,this.doc=n,this.selection=r,this.values=s,this.status=t.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)z1(this,a<<1);this.computeSlot=null}field(t,n=!0){let r=this.config.address[t.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return z1(this,r),jA(this,r)}update(...t){return oce(this,t,!0)}applyTransaction(t){let n=this.config,{base:r,compartments:s}=n;for(let a of t.effects)a.is(qT.reconfigure)?(n&&(s=new Map,n.compartments.forEach((l,c)=>s.set(c,l)),n=null),s.set(a.value.compartment,a.value.extension)):a.is(tn.reconfigure)?(n=null,r=a.value):a.is(tn.appendConfig)&&(n=null,r=N0(r).concat(a.value));let i;n?i=t.startState.values.slice():(n=IA.resolve(r,s,this),i=new Sn(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,c)=>c.reconfigure(l,this),null).values);let o=t.startState.facet(P7)?t.newSelection:t.newSelection.asSingle();new Sn(n,t.newDoc,o,i,(a,l)=>l.update(a,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:Be.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),s=this.changes(r.changes),i=[r.range],o=N0(r.effects);for(let a=1;a<n.ranges.length;a++){let l=t(n.ranges[a]),c=this.changes(l.changes),u=c.map(s);for(let p=0;p<a;p++)i[p]=i[p].map(u);let d=s.mapDesc(c,!0);i.push(l.range.map(d)),s=s.compose(u),o=tn.mapEffects(o,u).concat(tn.mapEffects(N0(l.effects),d))}return{changes:s,selection:Be.create(i,n.mainIndex),effects:o}}changes(t=[]){return t instanceof Ms?t:Ms.of(t,this.doc.length,this.facet(Sn.lineSeparator))}toText(t){return $n.of(t.split(this.facet(Sn.lineSeparator)||D7))}sliceDoc(t=0,n=this.doc.length){return this.doc.sliceString(t,n,this.lineBreak)}facet(t){let n=this.config.address[t.id];return n==null?t.default:(z1(this,n),jA(this,n))}toJSON(t){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let r in t){let s=t[r];s instanceof hi&&this.config.address[s.id]!=null&&(n[r]=s.spec.toJSON(this.field(t[r]),this))}return n}static fromJSON(t,n={},r){if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(r){for(let i in r)if(Object.prototype.hasOwnProperty.call(t,i)){let o=r[i],a=t[i];s.push(o.init(l=>o.spec.fromJSON(a,l)))}}return Sn.create({doc:t.doc,selection:Be.fromJSON(t.selection),extensions:n.extensions?s.concat([n.extensions]):s})}static create(t={}){let n=IA.resolve(t.extensions||[],new Map),r=t.doc instanceof $n?t.doc:$n.of((t.doc||"").split(n.staticFacet(Sn.lineSeparator)||D7)),s=t.selection?t.selection instanceof Be?t.selection:Be.single(t.selection.anchor,t.selection.head):Be.single(0);return Zle(s,r.length),n.staticFacet(P7)||(s=s.asSingle()),new Sn(n,r,s,n.dynamicSlots.map(()=>null),(i,o)=>o.create(i),null)}get tabSize(){return this.facet(Sn.tabSize)}get lineBreak(){return this.facet(Sn.lineSeparator)||`
|
|
@@ -712,7 +712,7 @@ attempted value: ${o}
|
|
|
712
712
|
* LICENSE.md file in the root directory of this source tree.
|
|
713
713
|
*
|
|
714
714
|
* @license MIT
|
|
715
|
-
*/function tJ(e,t){return e?Gmt(e)?D.createElement(e,t):e:null}function Gmt(e){return Ymt(e)||typeof e=="function"||Xmt(e)}function Ymt(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Xmt(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function Kmt(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=D.useState(()=>({current:qmt(t)})),[r,s]=D.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:o=>{s(o),e.onStateChange==null||e.onStateChange(o)}})),n.current}const Zmt=(e,t={})=>new oI({baseUrl:e||"",headers:e?t:{...t,"x-mastra-dev-playground":"true"}}),Cge=D.createContext(void 0),Jmt=({children:e,baseUrl:t,headers:n})=>{const r=Zmt(t,n);return f.jsx(Cge.Provider,{value:{client:r},children:e})},xp=()=>{const e=D.useContext(Cge);if(e===void 0)throw new Error("useMastraClient must be used within a MastraClientProvider");return e.client};function kge(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=kge(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Yn(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=kge(e))&&(r&&(r+=" "),r+=t);return r}const nJ=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rJ=Yn,wv=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return rJ(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const p=nJ(u)||nJ(d);return s[c][p]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,p]=u;return p===void 0||(c[d]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:p,...m}=u;return Object.entries(m).every(b=>{let[x,C]=b;return Array.isArray(C)?C.includes({...i,...a}[x]):{...i,...a}[x]===C})?[...c,d,p]:c},[]);return rJ(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},NL="-",Qmt=e=>{const t=tgt(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(NL);return a[0]===""&&a.length!==1&&a.shift(),Ege(a,t)||egt(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Ege=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Ege(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(NL);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},sJ=/^\[(.+)\]$/,egt=e=>{if(sJ.test(e)){const t=sJ.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},tgt=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const s in n)cF(n[s],r,s,t);return r},cF=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:iJ(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(ngt(s)){cF(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{cF(o,iJ(t,i),n,r)})})},iJ=(e,t)=>{let n=e;return t.split(NL).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},ngt=e=>e.isThemeGetter,rgt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},uF="!",dF=":",sgt=dF.length,igt=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const i=[];let o=0,a=0,l=0,c;for(let b=0;b<s.length;b++){let x=s[b];if(o===0&&a===0){if(x===dF){i.push(s.slice(l,b)),l=b+sgt;continue}if(x==="/"){c=b;continue}}x==="["?o++:x==="]"?o--:x==="("?a++:x===")"&&a--}const u=i.length===0?s:s.substring(l),d=ogt(u),p=d!==u,m=c&&c>l?c-l:void 0;return{modifiers:i,hasImportantModifier:p,baseClassName:d,maybePostfixModifierPosition:m}};if(t){const s=t+dF,i=r;r=o=>o.startsWith(s)?i(o.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const s=r;r=i=>n({className:i,parseClassName:s})}return r},ogt=e=>e.endsWith(uF)?e.substring(0,e.length-1):e.startsWith(uF)?e.substring(1):e,agt=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const s=[];let i=[];return r.forEach(o=>{o[0]==="["||t[o]?(s.push(...i.sort(),o),i=[]):i.push(o)}),s.push(...i.sort()),s}},lgt=e=>({cache:rgt(e.cacheSize),parseClassName:igt(e),sortModifiers:agt(e),...Qmt(e)}),cgt=/\s+/,ugt=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i}=t,o=[],a=e.trim().split(cgt);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:p,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:x}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let C=!!x,S=r(C?b.substring(0,x):b);if(!S){if(!C){l=u+(l.length>0?" "+l:l);continue}if(S=r(b),!S){l=u+(l.length>0?" "+l:l);continue}C=!1}const A=i(p).join(":"),T=m?A+uF:A,N=T+S;if(o.includes(N))continue;o.push(N);const F=s(S,C);for(let M=0;M<F.length;++M){const I=F[M];o.push(T+I)}l=u+(l.length>0?" "+l:l)}return l};function dgt(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Dge(t))&&(r&&(r+=" "),r+=n);return r}const Dge=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Dge(e[r]))&&(n&&(n+=" "),n+=t);return n};function hgt(e,...t){let n,r,s,i=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=lgt(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=ugt(l,n);return s(l,u),u}return function(){return i(dgt.apply(null,arguments))}}const _s=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Age=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tge=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fgt=/^\d+\/\d+$/,pgt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mgt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ggt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ygt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bgt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vy=e=>fgt.test(e),cn=e=>!!e&&!Number.isNaN(Number(e)),Yh=e=>!!e&&Number.isInteger(Number(e)),A9=e=>e.endsWith("%")&&cn(e.slice(0,-1)),Gu=e=>pgt.test(e),vgt=()=>!0,xgt=e=>mgt.test(e)&&!ggt.test(e),_ge=()=>!1,wgt=e=>ygt.test(e),Sgt=e=>bgt.test(e),Cgt=e=>!Et(e)&&!Dt(e),kgt=e=>Sv(e,Mge,_ge),Et=e=>Age.test(e),em=e=>Sv(e,Fge,xgt),T9=e=>Sv(e,_gt,cn),oJ=e=>Sv(e,Nge,_ge),Egt=e=>Sv(e,Pge,Sgt),UE=e=>Sv(e,Oge,wgt),Dt=e=>Tge.test(e),a1=e=>Cv(e,Fge),Dgt=e=>Cv(e,Ngt),aJ=e=>Cv(e,Nge),Agt=e=>Cv(e,Mge),Tgt=e=>Cv(e,Pge),qE=e=>Cv(e,Oge,!0),Sv=(e,t,n)=>{const r=Age.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Cv=(e,t,n=!1)=>{const r=Tge.exec(e);return r?r[1]?t(r[1]):n:!1},Nge=e=>e==="position"||e==="percentage",Pge=e=>e==="image"||e==="url",Mge=e=>e==="length"||e==="size"||e==="bg-size",Fge=e=>e==="length",_gt=e=>e==="number",Ngt=e=>e==="family-name",Oge=e=>e==="shadow",Pgt=()=>{const e=_s("color"),t=_s("font"),n=_s("text"),r=_s("font-weight"),s=_s("tracking"),i=_s("leading"),o=_s("breakpoint"),a=_s("container"),l=_s("spacing"),c=_s("radius"),u=_s("shadow"),d=_s("inset-shadow"),p=_s("text-shadow"),m=_s("drop-shadow"),b=_s("blur"),x=_s("perspective"),C=_s("aspect"),S=_s("ease"),A=_s("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...N(),Dt,Et],M=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],j=()=>[Dt,Et,l],L=()=>[Vy,"full","auto",...j()],B=()=>[Yh,"none","subgrid",Dt,Et],z=()=>["auto",{span:["full",Yh,Dt,Et]},Yh,Dt,Et],G=()=>[Yh,"auto",Dt,Et],Q=()=>["auto","min","max","fr",Dt,Et],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...j()],U=()=>[Vy,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],V=()=>[e,Dt,Et],X=()=>[...N(),aJ,oJ,{position:[Dt,Et]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",Agt,kgt,{size:[Dt,Et]}],se=()=>[A9,a1,em],H=()=>["","none","full",c,Dt,Et],te=()=>["",cn,a1,em],oe=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[cn,A9,aJ,oJ],me=()=>["","none",b,Dt,Et],we=()=>["none",cn,Dt,Et],ge=()=>["none",cn,Dt,Et],je=()=>[cn,Dt,Et],Ae=()=>[Vy,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gu],breakpoint:[Gu],color:[vgt],container:[Gu],"drop-shadow":[Gu],ease:["in","out","in-out"],font:[Cgt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gu],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gu],shadow:[Gu],spacing:["px",cn],text:[Gu],"text-shadow":[Gu],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Vy,Et,Dt,C]}],container:["container"],columns:[{columns:[cn,Et,Dt,a]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Yh,"auto",Dt,Et]}],basis:[{basis:[Vy,"full","auto",a,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[cn,Vy,"auto","initial","none",Et]}],grow:[{grow:["",cn,Dt,Et]}],shrink:[{shrink:["",cn,Dt,Et]}],order:[{order:[Yh,"first","last","none",Dt,Et]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[a,"screen",...U()]}],"min-w":[{"min-w":[a,"screen","none",...U()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,a1,em]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Dt,T9]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",A9,Et]}],"font-family":[{font:[Dgt,Et,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Dt,Et]}],"line-clamp":[{"line-clamp":[cn,"none",Dt,T9]}],leading:[{leading:[i,...j()]}],"list-image":[{"list-image":["none",Dt,Et]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Dt,Et]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[cn,"from-font","auto",Dt,em]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[cn,"auto",Dt,Et]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Dt,Et]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Dt,Et]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yh,Dt,Et],radial:["",Dt,Et],conic:[Yh,Dt,Et]},Tgt,Egt]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[cn,Dt,Et]}],"outline-w":[{outline:["",cn,a1,em]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",u,qE,UE]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",d,qE,UE]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[cn,em]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",p,qE,UE]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[cn,Dt,Et]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[cn]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[Dt,Et]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[cn]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Dt,Et]}],filter:[{filter:["","none",Dt,Et]}],blur:[{blur:me()}],brightness:[{brightness:[cn,Dt,Et]}],contrast:[{contrast:[cn,Dt,Et]}],"drop-shadow":[{"drop-shadow":["","none",m,qE,UE]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",cn,Dt,Et]}],"hue-rotate":[{"hue-rotate":[cn,Dt,Et]}],invert:[{invert:["",cn,Dt,Et]}],saturate:[{saturate:[cn,Dt,Et]}],sepia:[{sepia:["",cn,Dt,Et]}],"backdrop-filter":[{"backdrop-filter":["","none",Dt,Et]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[cn,Dt,Et]}],"backdrop-contrast":[{"backdrop-contrast":[cn,Dt,Et]}],"backdrop-grayscale":[{"backdrop-grayscale":["",cn,Dt,Et]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[cn,Dt,Et]}],"backdrop-invert":[{"backdrop-invert":["",cn,Dt,Et]}],"backdrop-opacity":[{"backdrop-opacity":[cn,Dt,Et]}],"backdrop-saturate":[{"backdrop-saturate":[cn,Dt,Et]}],"backdrop-sepia":[{"backdrop-sepia":["",cn,Dt,Et]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Dt,Et]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[cn,"initial",Dt,Et]}],ease:[{ease:["linear","initial",S,Dt,Et]}],delay:[{delay:[cn,Dt,Et]}],animate:[{animate:["none",A,Dt,Et]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,Dt,Et]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:je()}],"skew-x":[{"skew-x":je()}],"skew-y":[{"skew-y":je()}],transform:[{transform:[Dt,Et,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ae()}],"translate-x":[{"translate-x":Ae()}],"translate-y":[{"translate-y":Ae()}],"translate-z":[{"translate-z":Ae()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Dt,Et]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Dt,Et]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[cn,a1,em,T9]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Mgt=hgt(Pgt);function He(...e){return Mgt(Yn(e))}const HD=wv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Gs=D.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?op:"button";return f.jsx(o,{className:He(HD({variant:t,size:n,className:e})),ref:i,...s})});Gs.displayName="Button";const PL=WR,kv=GR,Ev=YR,Wg=D.forwardRef(({className:e,sideOffset:t=4,...n},r)=>f.jsx(Qse,{children:f.jsx(MS,{ref:r,sideOffset:t,className:He("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Wg.displayName=MS.displayName;const Ff=D.forwardRef(({children:e,tooltip:t,side:n="bottom",className:r,...s},i)=>f.jsx(PL,{children:f.jsxs(kv,{children:[f.jsx(Ev,{asChild:!0,children:f.jsxs(Gs,{variant:"ghost",size:"icon",...s,className:He("size-6 p-1",r),ref:i,children:[e,f.jsx("span",{className:"sr-only",children:t})]})}),f.jsx(Wg,{side:n,children:t})]})}));Ff.displayName="TooltipIconButton";const Rge=D.forwardRef(({className:e,...t},n)=>f.jsx(lae,{ref:n,className:He("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Rge.displayName=lae.displayName;const Fgt=D.forwardRef(({className:e,...t},n)=>f.jsx(cae,{ref:n,className:He("aspect-square h-full w-full",e),...t}));Fgt.displayName=cae.displayName;const Ige=D.forwardRef(({className:e,...t},n)=>f.jsx(uae,{ref:n,className:He("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ige.displayName=uae.displayName;const Ogt=({alt:e,src:t,...n})=>{const[r,s]=D.useState(!1);return D.useEffect(()=>{s(!1)},[t]),r||!t?f.jsxs("div",{children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",width:"150",height:"150",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})}),f.jsx("p",{className:"text-xs italic text-muted-foreground -mt-[0.625rem] mb-[0.625rem]",children:"Image link is broken"})]}):f.jsx("img",{src:t,alt:e,...n,onError:()=>{s(!0)}})},Rgt=mqe({style:lWe.coldarkDark,customStyle:{margin:0,backgroundColor:"black"}}),Igt=()=>f.jsx(THe,{remarkPlugins:[Ale],className:"aui-md",components:$gt}),jgt=D.memo(Igt),Lgt=({language:e,code:t})=>{const{isCopied:n,copyToClipboard:r}=Bgt(),s=()=>{!t||n||r(t)};return f.jsxs("div",{style:{background:"hsl(0 0% 100% / 0.06)",borderTopRightRadius:"0.5rem",borderTopLeftRadius:"0.5rem",marginTop:"0.5rem",border:"1px solid hsl(0 0% 20.4%)",borderBottom:"none"},className:"flex items-center justify-between gap-4 px-4 py-2 text-sm font-semibold text-white",children:[f.jsx("span",{className:"lowercase [&>span]:text-xs",children:e}),f.jsx(Ff,{tooltip:"Copy",onClick:s,children:f.jsxs("span",{className:"grid",children:[f.jsx("span",{style:{gridArea:"1/1"},className:He("transition-transform",n?"scale-100":"scale-0"),children:f.jsx(Vg,{size:14})},"checkmark"),f.jsx("span",{style:{gridArea:"1/1"},className:He("transition-transform",n?"scale-0":"scale-100"),children:f.jsx(LS,{size:14})},"copy")]})})]})},Bgt=({copiedDuration:e=1500}={})=>{const[t,n]=D.useState(!1);return{isCopied:t,copyToClipboard:s=>{s&&navigator.clipboard.writeText(s).then(()=>{n(!0),setTimeout(()=>n(!1),e)})}}},$gt=yHe({h1:({className:e,...t})=>f.jsx("h1",{className:He("mb-8 scroll-m-20 text-4xl font-extrabold tracking-tight last:mb-0",e),...t,style:{marginBottom:"2rem"}}),h2:({className:e,...t})=>f.jsx("h2",{className:He("mb-4 mt-8 scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"2rem"}}),h3:({className:e,...t})=>f.jsx("h3",{className:He("scroll-m-20 text-2xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1.5rem"}}),h4:({className:e,...t})=>f.jsx("h4",{className:He("scroll-m-20 text-xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1.5rem"}}),h5:({className:e,...t})=>f.jsx("h5",{className:He("font-semibold first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1rem"}}),h6:({className:e,...t})=>f.jsx("h6",{className:He("font-semibold first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1rem"}}),p:({className:e,...t})=>f.jsx("p",{className:He("leading-7 first:mt-0 last:mb-0",e),...t}),a:({className:e,...t})=>f.jsx("a",{className:He("text-primary font-medium underline underline-offset-4",e),...t}),blockquote:({className:e,...t})=>f.jsx("blockquote",{className:He("border-l-2 pl-6 italic",e),...t}),ul:({className:e,...t})=>f.jsx("ul",{className:He("my-5 ml-6 list-disc [&>li]:mt-2",e),...t}),ol:({className:e,...t})=>f.jsx("ol",{className:He("my-5 ml-6 list-decimal [&>li]:mt-2",e),...t}),hr:({className:e,...t})=>f.jsx("hr",{className:He("my-5 border-b",e),...t}),table:({className:e,...t})=>f.jsx("table",{className:He("my-5 w-full border-separate border-spacing-0 overflow-y-auto",e),...t}),th:({className:e,...t})=>f.jsx("th",{className:He("bg-muted px-4 py-2 text-left font-bold first:rounded-tl-lg last:rounded-tr-lg [&[align=center]]:text-center [&[align=right]]:text-right",e),...t}),td:({className:e,...t})=>f.jsx("td",{className:He("border-b border-l px-4 py-2 text-left last:border-r [&[align=center]]:text-center [&[align=right]]:text-right",e),...t}),tr:({className:e,...t})=>f.jsx("tr",{className:He("m-0 border-b p-0 first:border-t [&:last-child>td:first-child]:rounded-bl-lg [&:last-child>td:last-child]:rounded-br-lg",e),...t}),sup:({className:e,...t})=>f.jsx("sup",{className:He("[&>a]:text-xs [&>a]:no-underline",e),...t}),pre:({className:e,...t})=>f.jsx("pre",{...t,style:{borderBottomRightRadius:"0.5rem",borderBottomLeftRadius:"0.5rem",background:"transparent",fontSize:"0.875rem",marginBottom:"0.5rem",border:"1px solid hsl(0 0% 20.4%)"},className:He("overflow-x-auto p-4 text-white",e)}),code:function({className:t,...n}){const r=nle();return f.jsxs("pre",{style:{fontSize:"0.875rem",display:"inline"},children:[f.jsx("code",{className:He(!r&&"bg-muted rounded border font-semibold",t),...n,style:{fontWeight:"400",paddingBlock:r?0:"0.1em",paddingInline:r?0:"0.3em"}})," "]})},CodeHeader:Lgt,SyntaxHighlighter:Rgt,img:Ogt}),zgt={sm:"[&>svg]:h-icon-sm [&>svg]:w-icon-sm",default:"[&>svg]:h-icon-default [&>svg]:w-icon-default",lg:"[&>svg]:h-icon-lg [&>svg]:w-icon-lg"},Nt=({children:e,className:t,size:n="default",...r})=>f.jsx("span",{className:Yn("block",zgt[n],t),...r,children:e}),lJ={default:"text-icon3",success:"text-accent1",error:"text-accent2",info:"text-accent3"},vr=({icon:e,variant:t="default",className:n,children:r,...s})=>f.jsxs("div",{className:Yn("bg-surface4 text-ui-sm gap-md h-badge-default inline-flex items-center rounded-md",e?"pl-md pr-1.5":"px-1.5",e||t==="default"?"text-icon5":lJ[t],n),...s,children:[e&&f.jsx("span",{className:lJ[t],children:f.jsx(Nt,{children:e})}),r]}),sh=e=>f.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 15C10.3565 15 12.137 14.2625 13.4497 12.9497C14.7625 11.637 15.5 9.85652 15.5 8C15.5 6.14348 14.7625 4.36301 13.4497 3.05025C12.137 1.7375 10.3565 1 8.5 1C6.64348 1 4.86301 1.7375 3.55025 3.05025C2.2375 4.36301 1.5 6.14348 1.5 8C1.5 9.85652 2.2375 11.637 3.55025 12.9497C4.86301 14.2625 6.64348 15 8.5 15ZM5.621 10.879L4.611 11.889C3.84179 11.1198 3.31794 10.1398 3.1057 9.07291C2.89346 8.00601 3.00236 6.90013 3.41864 5.89512C3.83491 4.89012 4.53986 4.03112 5.44434 3.42676C6.34881 2.8224 7.41219 2.49983 8.5 2.49983C9.58781 2.49983 10.6512 2.8224 11.5557 3.42676C12.4601 4.03112 13.1651 4.89012 13.5814 5.89512C13.9976 6.90013 14.1065 8.00601 13.8943 9.07291C13.6821 10.1398 13.1582 11.1198 12.389 11.889L11.379 10.879C11.1004 10.6003 10.7696 10.3792 10.4055 10.2284C10.0414 10.0776 9.6511 9.99995 9.257 10H7.743C7.3489 9.99995 6.95865 10.0776 6.59455 10.2284C6.23045 10.3792 5.89963 10.6003 5.621 10.879Z",fill:"currentColor"}),f.jsx("path",{d:"M8.5 4C7.96957 4 7.46086 4.21071 7.08579 4.58579C6.71071 4.96086 6.5 5.46957 6.5 6V6.5C6.5 7.03043 6.71071 7.53914 7.08579 7.91421C7.46086 8.28929 7.96957 8.5 8.5 8.5C9.03043 8.5 9.53914 8.28929 9.91421 7.91421C10.2893 7.53914 10.5 7.03043 10.5 6.5V6C10.5 5.46957 10.2893 4.96086 9.91421 4.58579C9.53914 4.21071 9.03043 4 8.5 4Z",fill:"currentColor"})]}),Hgt=e=>f.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M63.0002 0.968262C28.5152 0.968262 0.55957 15.6484 0.55957 33.7573V51.2428C0.55957 69.3517 28.5152 84.0319 63.0002 84.0319C97.4853 84.0319 125.441 69.3517 125.441 51.2428V33.7573C125.441 15.6484 97.4853 0.968262 63.0002 0.968262Z",stroke:"#707070"}),f.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636V49.8363C6.67773 65.0322 31.894 77.351 62.9998 77.351C94.1055 77.351 119.322 65.0322 119.322 49.8363V35.1636Z",fill:"#2E2E2E",fillOpacity:"0.9"}),f.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636M119.322 35.1636C119.322 19.9677 94.1055 7.64893 62.9998 7.64893C31.894 7.64893 6.67773 19.9677 6.67773 35.1636M119.322 35.1636V49.8363C119.322 65.0322 94.1055 77.351 62.9998 77.351C31.894 77.351 6.67773 65.0322 6.67773 49.8363V35.1636",stroke:"#424242"}),f.jsxs("g",{clipPath:"url(#clip0_21421_19519)",children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.5383 47.0955C45.0714 50.3122 53.9322 52.1193 63.1714 52.1193C72.4106 52.1193 81.2714 50.3122 87.8045 47.0955C94.3376 43.8787 98.0078 39.5159 98.0078 34.9668C98.0078 30.4177 94.3376 26.0549 87.8045 22.8381C81.2714 19.6214 72.4106 17.8143 63.1714 17.8143C53.9322 17.8143 45.0714 19.6214 38.5383 22.8381C32.0052 26.0549 28.3349 30.4177 28.3349 34.9668C28.3349 39.5159 32.0052 43.8787 38.5383 47.0955ZM42.9089 34.9668L35.8005 34.9668C35.8004 32.3013 37.4056 29.6956 40.4132 27.4793C43.4207 25.263 47.6956 23.5355 52.6971 22.5154C57.6986 21.4954 63.2022 21.2285 68.5118 21.7485C73.8214 22.2685 78.6986 23.552 82.5266 25.4368C86.3546 27.3216 88.9615 29.723 90.0176 32.3373C91.0737 34.9517 90.5316 37.6614 88.4599 40.1241C86.3881 42.5867 82.8797 44.6915 78.3784 46.1723C73.8771 47.6532 68.585 48.4435 63.1714 48.4435V44.9435C63.1717 43.9778 62.7855 43.0215 62.035 42.1293C61.2845 41.2372 60.1843 40.4265 58.7973 39.7438L53.4695 37.1205C52.0828 36.4376 50.4364 35.8959 48.6244 35.5263C46.8124 35.1568 44.8702 34.9667 42.9089 34.9668Z",fill:"#A9A9A9"}),f.jsx("path",{d:"M77.2474 28.0361C75.3808 27.1171 72.8492 26.6007 70.2094 26.6007C67.5696 26.6007 65.038 27.1171 63.1714 28.0361L61.4119 28.9025C59.5453 29.8215 58.4966 31.068 58.4966 32.3678C58.4966 33.6676 59.5453 34.9141 61.4119 35.8331C63.2785 36.7522 65.8101 37.2685 68.4499 37.2685C71.0897 37.2685 73.6213 36.7522 75.4879 35.8331L77.2474 34.9668C79.114 34.0477 80.1627 32.8012 80.1627 31.5015C80.1627 30.2017 79.114 28.9552 77.2474 28.0361Z",fill:"#A9A9A9"})]}),f.jsx("defs",{children:f.jsx("clipPath",{id:"clip0_21421_19519",children:f.jsx("rect",{width:"62.7591",height:"62.7591",fill:"white",transform:"matrix(0.897148 0.441731 -0.897148 0.441731 63.1714 7.24365)"})})})]}),Vgt=e=>f.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M11.0313 7.97578C11.0313 9.34436 9.92183 10.4538 8.55324 10.4538C7.18466 10.4538 6.0752 9.34436 6.0752 7.97578C6.0752 6.60719 7.18466 5.49773 8.55324 5.49773C9.92183 5.49773 11.0313 6.60719 11.0313 7.97578ZM11.0313 7.97578H14.573",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round"}),f.jsx("path",{d:"M12.967 4.46154C11.9273 3.14431 10.3165 2.29883 8.50814 2.29883C5.37277 2.29883 2.83105 4.84055 2.83105 7.97591C2.83105 11.1113 5.37277 13.653 8.50814 13.653C10.3165 13.653 11.9273 12.8075 12.967 11.4903",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round"})]}),ML=e=>f.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99982 2.0625C3.8252 2.0625 2.06232 3.82538 2.06232 6C2.06232 8.17462 3.8252 9.9375 5.99982 9.9375C8.17444 9.9375 9.93732 8.17462 9.93732 6C9.93732 3.82538 8.17444 2.0625 5.99982 2.0625ZM0.937317 6C0.937317 3.20406 3.20388 0.9375 5.99982 0.9375C8.79576 0.9375 11.0623 3.20406 11.0623 6C11.0623 8.79594 8.79576 11.0625 5.99982 11.0625C3.20388 11.0625 0.937317 8.79594 0.937317 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.97865 4.57004C8.22604 4.75795 8.27426 5.11082 8.08635 5.35821L6.05486 8.03279C5.94873 8.17251 5.78348 8.25471 5.60803 8.25505C5.43257 8.2554 5.267 8.17385 5.16032 8.03454L3.80937 6.27034C3.6205 6.02369 3.66733 5.67063 3.91398 5.48176C4.16063 5.29288 4.51369 5.33972 4.70257 5.58637L5.6051 6.76498L7.19048 4.67774C7.37839 4.43036 7.73126 4.38213 7.97865 4.57004Z",fill:"currentColor"})]}),Ugt=e=>f.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M4.60059 6.30005L8.00098 9.70005L11.3996 6.30142",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),FL=e=>f.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99982 2.0625C3.8252 2.0625 2.06232 3.82538 2.06232 6C2.06232 8.17462 3.8252 9.9375 5.99982 9.9375C8.17444 9.9375 9.93732 8.17462 9.93732 6C9.93732 3.82538 8.17444 2.0625 5.99982 2.0625ZM0.937317 6C0.937317 3.20406 3.20388 0.9375 5.99982 0.9375C8.79576 0.9375 11.0623 3.20406 11.0623 6C11.0623 8.79594 8.79576 11.0625 5.99982 11.0625C3.20388 11.0625 0.937317 8.79594 0.937317 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.89741 4.10293C8.11707 4.32261 8.11706 4.67877 7.89738 4.89843L6.79517 6.00058L7.8962 7.10155C8.11588 7.32122 8.11589 7.67737 7.89623 7.89705C7.67656 8.11673 7.32041 8.11674 7.10073 7.89707L5.99965 6.79605L4.89856 7.89707C4.67889 8.11673 4.32273 8.11672 4.10307 7.89704C3.88341 7.67737 3.88342 7.32121 4.10309 7.10155L5.20413 6.00058L4.10191 4.89843C3.88224 4.67877 3.88223 4.32262 4.10189 4.10294C4.32155 3.88326 4.67771 3.88325 4.89738 4.10292L5.99965 5.20511L7.10191 4.10291C7.32159 3.88325 7.67774 3.88326 7.89741 4.10293Z",fill:"currentColor"})]}),qgt=e=>f.jsx("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.941406 2.831V3.75745C0.941406 4.27885 1.35491 4.76002 2.05273 5.14711C2.10389 5.17549 2.15658 5.20337 2.21074 5.23071C3.23028 5.74546 4.77322 6.07356 6.50007 6.07356C8.31866 6.07356 9.93328 5.70967 10.9474 5.14711C11.6453 4.76002 12.0587 4.27886 12.0587 3.75745V2.831C12.0587 1.55185 9.57003 0.514893 6.50007 0.514893C3.4301 0.514893 0.941406 1.55185 0.941406 2.831ZM1.02052 6.14518C0.968505 6.27247 0.941406 6.40331 0.941406 6.53678V7.46322C0.941406 7.98463 1.35491 8.46579 2.05273 8.85289C3.06686 9.41542 4.68148 9.77933 6.50007 9.77933C8.22692 9.77933 9.76986 9.45128 10.7894 8.93645C10.8436 8.90912 10.8962 8.88124 10.9474 8.85289C11.6453 8.46579 12.0587 7.98462 12.0587 7.46322V6.53678C12.0587 6.40331 12.0316 6.27248 11.9796 6.14519C11.664 6.35469 11.3187 6.53063 10.9652 6.67795C9.75207 7.18337 8.17267 7.46322 6.50007 7.46322C4.82747 7.46322 3.24803 7.18337 2.03502 6.67795C1.68142 6.53063 1.3362 6.35469 1.02052 6.14518ZM1.02052 9.85095C0.968505 9.97824 0.941406 10.1091 0.941406 10.2426V11.169C0.941406 12.4481 3.4301 13.4851 6.50007 13.4851C9.57003 13.4851 12.0587 12.4481 12.0587 11.169V10.2426C12.0587 10.1091 12.0316 9.97824 11.9796 9.85095C11.664 10.0605 11.3187 10.2364 10.9652 10.3837C9.75207 10.8891 8.17267 11.169 6.50007 11.169C4.82747 11.169 3.24803 10.8891 2.03502 10.3837C1.68142 10.2364 1.3362 10.0605 1.02052 9.85095Z",fill:"currentColor"})}),Wgt=e=>f.jsxs("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M6.83531 7.0062C6.64515 7.35069 6.15 7.35069 5.95984 7.0062L2.99029 1.62664C2.7855 1.25565 3.10614 0.814077 3.5223 0.893977L6.30195 1.42765C6.36421 1.43961 6.42818 1.43961 6.49044 1.42766L9.27301 0.893806C9.68915 0.813965 10.0097 1.25552 9.80495 1.62648L6.83531 7.0062Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.77553 6.93249C4.70399 6.80288 4.52254 6.79459 4.4558 6.92674C4.30167 7.23196 4.21484 7.57697 4.21484 7.94226C4.21484 9.18814 5.22483 10.1981 6.4707 10.1981C7.71658 10.1981 8.72656 9.18814 8.72656 7.94226C8.72656 7.51818 8.60954 7.12143 8.40603 6.78254C8.33262 6.66031 8.15949 6.67411 8.09059 6.79894L7.70941 7.48947C7.13892 8.52294 5.65347 8.52293 5.08299 7.48947L4.77553 6.93249ZM5.56313 5.8764C5.46196 5.92091 5.42707 6.04354 5.48048 6.1403L5.95846 7.0062C6.14862 7.35069 6.64377 7.35069 6.83393 7.0062L7.33905 6.09115C7.39467 5.99039 7.35417 5.86275 7.2461 5.8232C7.00431 5.7347 6.74315 5.6864 6.4707 5.6864C6.14785 5.6864 5.84083 5.75423 5.56313 5.8764Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.01974 3.49407C4.17993 3.78426 4.54405 3.88541 4.85312 3.76562C5.35484 3.57118 5.90031 3.46453 6.4707 3.46453C7.0005 3.46453 7.50881 3.55654 7.98052 3.72545C8.28711 3.83523 8.64168 3.73133 8.79906 3.44623C8.96234 3.15043 8.85109 2.77497 8.5364 2.652C7.89621 2.40184 7.19949 2.26453 6.4707 2.26453C5.69013 2.26453 4.94634 2.42205 4.2694 2.70703C3.96395 2.83562 3.85958 3.20392 4.01974 3.49407ZM9.9461 4.47216C9.81565 4.70848 9.85645 4.99948 10.0211 5.21339C10.6026 5.96887 10.9484 6.91518 10.9484 7.94226C10.9484 10.4152 8.94369 12.42 6.4707 12.42C3.99772 12.42 1.99297 10.4152 1.99297 7.94226C1.99297 6.96004 2.30923 6.05168 2.84547 5.31345C3.0006 5.09989 3.03605 4.81591 2.90848 4.58482C2.70986 4.22501 2.22216 4.15342 1.97124 4.47893C1.2324 5.43738 0.792968 6.6385 0.792968 7.94226C0.792969 11.078 3.33498 13.62 6.4707 13.62C9.60643 13.62 12.1484 11.078 12.1484 7.94226C12.1484 6.58193 11.67 5.33333 10.8723 4.35553C10.6173 4.04298 10.141 4.11901 9.9461 4.47216Z",fill:"currentColor"})]}),Ggt=e=>f.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M8.5 3V13",stroke:"currentColor",strokeWidth:"0.5"})}),Ygt=e=>f.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("g",{clipPath:"url(#clip0_21999_22095)",children:f.jsx("path",{d:"M7.5 0.75C3.6325 0.75 0.5 3.8825 0.5 7.75C0.5 10.8475 2.50375 13.4637 5.28625 14.3912C5.63625 14.4525 5.7675 14.2425 5.7675 14.0587C5.7675 13.8925 5.75875 13.3412 5.75875 12.755C4 13.0787 3.545 12.3262 3.405 11.9325C3.32625 11.7312 2.985 11.11 2.6875 10.9437C2.4425 10.8125 2.0925 10.4887 2.67875 10.48C3.23 10.4712 3.62375 10.9875 3.755 11.1975C4.385 12.2562 5.39125 11.9587 5.79375 11.775C5.855 11.32 6.03875 11.0137 6.24 10.8387C4.6825 10.6637 3.055 10.06 3.055 7.3825C3.055 6.62125 3.32625 5.99125 3.7725 5.50125C3.7025 5.32625 3.4575 4.60875 3.8425 3.64625C3.8425 3.64625 4.42875 3.4625 5.7675 4.36375C6.3275 4.20625 6.9225 4.1275 7.5175 4.1275C8.1125 4.1275 8.7075 4.20625 9.2675 4.36375C10.6062 3.45375 11.1925 3.64625 11.1925 3.64625C11.5775 4.60875 11.3325 5.32625 11.2625 5.50125C11.7087 5.99125 11.98 6.6125 11.98 7.3825C11.98 10.0687 10.3438 10.6637 8.78625 10.8387C9.04 11.0575 9.25875 11.4775 9.25875 12.1337C9.25875 13.07 9.25 13.8225 9.25 14.0587C9.25 14.2425 9.38125 14.4612 9.73125 14.3912C11.1209 13.9221 12.3284 13.029 13.1839 11.8377C14.0393 10.6463 14.4996 9.21668 14.5 7.75C14.5 3.8825 11.3675 0.75 7.5 0.75Z",fill:"currentColor"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"clip0_21999_22095",children:f.jsx("rect",{width:"14",height:"14",fill:"currentColor",transform:"translate(0.5 0.75)"})})})]}),Xgt=e=>f.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M7.07303 7.39921C6.65882 7.39921 6.32303 7.735 6.32303 8.14921C6.32303 8.56343 6.65882 8.89921 7.07303 8.89921H7.75V10.6187C7.75 11.0329 8.08579 11.3687 8.5 11.3687C8.91421 11.3687 9.25 11.0329 9.25 10.6187V8.14921C9.25 7.735 8.91421 7.39921 8.5 7.39921H7.07303Z",fill:"currentColor"}),f.jsx("path",{d:"M8.50309 4.72995C7.9971 4.72995 7.58691 5.14014 7.58691 5.64613C7.58691 6.15212 7.9971 6.56231 8.50309 6.56231C9.00908 6.56231 9.41927 6.15212 9.41927 5.64613C9.41927 5.14014 9.00908 4.72995 8.50309 4.72995Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.75293C5.04984 1.75293 2.25293 4.54984 2.25293 8C2.25293 11.4502 5.04984 14.2471 8.5 14.2471C11.9502 14.2471 14.7471 11.4502 14.7471 8C14.7471 4.54984 11.9502 1.75293 8.5 1.75293ZM3.75293 8C3.75293 5.37827 5.87827 3.25293 8.5 3.25293C11.1218 3.25293 13.2471 5.37826 13.2471 8C13.2471 10.6218 11.1218 12.7471 8.5 12.7471C5.87826 12.7471 3.75293 10.6218 3.75293 8Z",fill:"currentColor"})]}),jge=e=>f.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M3.8674 9.19968L4.14554 10.8649C4.23965 11.4283 4.75254 11.8237 5.32137 11.7713L5.58252 11.7472C6.56555 11.6567 7.43309 12.3868 7.51181 13.3708L7.59308 14.3867C7.60422 14.5259 7.71868 14.6342 7.85825 14.6376L9.91053 14.6876C10.1066 14.6924 10.2434 14.4948 10.17 14.3129L8.90452 11.1782C8.80956 10.9429 8.65085 10.7389 8.44626 10.5889L7.90134 10.1895C7.70604 10.0464 7.55223 9.85411 7.45759 9.63124C7.15011 8.90712 6.6579 7.71234 6.37054 6.88944C6.19204 6.3783 5.79931 6.29158 5.45492 6.21553C4.98179 6.11106 4.5999 6.02673 4.99001 4.88985C5.66408 2.92541 8.06015 2.07904 10.6601 3.33088C12.6488 4.2884 13.1187 6.35416 13.0328 7.58237C13.0297 7.62768 13.0214 7.67186 13.0094 7.71566C12.8829 8.17534 12.368 8.40491 11.9415 8.19169L10.3022 7.37201C10.2069 7.32439 10.0927 7.33657 10.0096 7.40322L8.64809 8.49559C8.55405 8.57104 8.52072 8.69931 8.56615 8.811L10.8995 14.5478C10.9404 14.6483 11.0369 14.715 11.1454 14.7177L12.0572 14.7399C12.2581 14.7448 12.3951 14.5382 12.3124 14.3551L11.8681 13.3706C11.4211 12.3803 11.6047 11.2192 12.3354 10.4151L13.4616 9.17575C13.7473 8.86125 13.9224 8.46187 13.9599 8.03858L13.9763 7.85359C14.2866 4.35298 11.377 1.41272 7.87336 1.68639C6.03919 1.82965 4.45399 3.02228 3.80807 4.74492L3.70275 5.02579C3.5828 5.34571 3.62741 5.70411 3.82213 5.98485L3.88946 6.08192C4.12183 6.41695 4.0958 6.86726 3.82637 7.17328L3.06705 8.03572C2.96261 8.15435 2.98058 8.33664 3.10617 8.43259L3.66059 8.85617C3.77064 8.94026 3.84458 9.06307 3.8674 9.19968Z",fill:"currentColor"})}),Kgt=e=>f.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12V11C3 10.6022 3.15804 10.2206 3.43934 9.93934C3.72064 9.65804 4.10218 9.5 4.5 9.5C4.89782 9.5 5.27936 9.65804 5.56066 9.93934C5.84196 10.2206 6 10.6022 6 11V12C6 12.3978 5.84196 12.7794 5.56066 13.0607C5.27936 13.342 4.89782 13.5 4.5 13.5C4.10218 13.5 3.72064 13.342 3.43934 13.0607C3.15804 12.7794 3 12.3978 3 12ZM7 12V8.5C7 8.10218 7.15804 7.72064 7.43934 7.43934C7.72064 7.15804 8.10218 7 8.5 7C8.89782 7 9.27936 7.15804 9.56066 7.43934C9.84196 7.72064 10 8.10218 10 8.5V12C10 12.3978 9.84196 12.7794 9.56066 13.0607C9.27936 13.342 8.89782 13.5 8.5 13.5C8.10218 13.5 7.72064 13.342 7.43934 13.0607C7.15804 12.7794 7 12.3978 7 12ZM11 12V4C11 3.60218 11.158 3.22064 11.4393 2.93934C11.7206 2.65804 12.1022 2.5 12.5 2.5C12.8978 2.5 13.2794 2.65804 13.5607 2.93934C13.842 3.22064 14 3.60218 14 4V12C14 12.3978 13.842 12.7794 13.5607 13.0607C13.2794 13.342 12.8978 13.5 12.5 13.5C12.1022 13.5 11.7206 13.342 11.4393 13.0607C11.158 12.7794 11 12.3978 11 12Z",fill:"currentColor"})}),Zgt=e=>f.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M5.25684 12.6387L10.4003 3.36133H11.7432L6.5997 12.6387H5.25684Z",fill:"currentColor"})}),Bd=e=>f.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5605 1.42351C8.0791 0.904904 8.92215 0.906157 9.4395 1.42351L10.6922 2.67617C11.2108 3.19477 11.2095 4.03782 10.6922 4.55517L9.4395 5.80783C8.9209 6.32643 8.07785 6.32518 7.5605 5.80783L6.30784 4.55517C5.78923 4.03656 5.79049 3.19352 6.30784 2.67617L7.5605 1.42351ZM3.17618 5.80783C3.69478 5.28923 4.53782 5.29048 5.05517 5.80783L6.30784 7.0605C6.82644 7.5791 6.82519 8.42214 6.30784 8.93949L5.05517 10.1922C4.53657 10.7108 3.69353 10.7095 3.17618 10.1922L1.92351 8.93949C1.40491 8.42089 1.40616 7.57785 1.92351 7.0605L3.17618 5.80783ZM11.9448 5.80783C12.4634 5.28923 13.3065 5.29048 13.8238 5.80783L15.0765 7.0605C15.5951 7.5791 15.5938 8.42214 15.0765 8.93949L13.8238 10.1922C13.3052 10.7108 12.4622 10.7095 11.9448 10.1922L10.6922 8.93949C10.1736 8.42089 10.1748 7.57785 10.6922 7.0605L11.9448 5.80783ZM7.5605 10.1922C8.0791 9.67355 8.92215 9.67481 9.4395 10.1922L10.6922 11.4448C11.2108 11.9634 11.2095 12.8065 10.6922 13.3238L9.4395 14.5765C8.9209 15.0951 8.07785 15.0938 7.5605 14.5765L6.30784 13.3238C5.78923 12.8052 5.79049 11.9622 6.30784 11.4448L7.5605 10.1922Z",fill:"currentColor"})}),hF=e=>f.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M3.0498 3.17139V7.95137M6.91346 12.8737L4.04984 12.8738C3.49754 12.8738 3.0498 12.4261 3.0498 11.8738V7.95137M3.0498 7.95137L6.85968 7.95125",stroke:"currentColor",strokeLinecap:"round"}),f.jsx("path",{d:"M6.59668 3.12631L13.9507 3.12631",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),f.jsx("path",{d:"M10.293 7.95099L13.8072 7.95099",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),f.jsx("path",{d:"M10.293 12.8025L13.8072 12.8025",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),wp=e=>f.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.24388 2.4018C6.24388 2.0394 6.53767 1.74561 6.90008 1.74561H10.0991C10.4614 1.74561 10.7553 2.0394 10.7553 2.4018V4.57546C10.7553 4.93787 10.4614 5.23166 10.0991 5.23166H9.31982V7.35469L10.0033 9.22664C9.90442 9.20146 9.80035 9.1761 9.6915 9.14986L9.62652 9.13422C9.30473 9.05687 8.92256 8.96501 8.61993 8.84491C8.5819 8.82981 8.54147 8.81292 8.49957 8.79391C8.45767 8.81292 8.41724 8.82981 8.3792 8.84491C8.07657 8.96501 7.6944 9.05687 7.37261 9.13422L7.30763 9.14986C7.19879 9.1761 7.09471 9.20146 6.99577 9.22664L7.67932 7.35469V5.23166H6.90008C6.53767 5.23166 6.24388 4.93787 6.24388 4.57546V2.4018ZM6.99577 9.22664C6.99577 9.22664 6.99578 9.22664 6.99577 9.22664L6.43283 10.7683H6.81806C7.18047 10.7683 7.47426 11.0622 7.47426 11.4245V13.5982C7.47426 13.9606 7.18047 14.2544 6.81806 14.2544H3.61909C3.25668 14.2544 2.96289 13.9606 2.96289 13.5982V11.4245C2.96289 11.0622 3.25668 10.7683 3.61909 10.7683H4.26617C4.2921 10.4663 4.32783 10.1494 4.37744 9.85171C4.43762 9.49063 4.52982 9.08135 4.68998 8.76102C4.93975 8.2615 5.44743 8.01751 5.7771 7.88788C6.14684 7.74249 6.57537 7.63889 6.92317 7.55505C7.24707 7.47696 7.49576 7.41679 7.67932 7.35469L6.99577 9.22664ZM6.43283 10.7683L6.99577 9.22664C6.75846 9.28705 6.55067 9.34646 6.37745 9.41458C6.22784 9.47341 6.1623 9.51712 6.14023 9.53254C6.09752 9.63631 6.04409 9.83055 5.99562 10.1214C5.96201 10.3231 5.93498 10.5439 5.91341 10.7683H6.43283ZM10.0033 9.22664L9.31982 7.35469C9.50338 7.41679 9.75206 7.47696 10.076 7.55505C10.4238 7.63889 10.8523 7.74249 11.2221 7.88788C11.5517 8.01751 12.0594 8.2615 12.3091 8.76102C12.4693 9.08135 12.5615 9.49063 12.6217 9.85171C12.6713 10.1494 12.707 10.4663 12.733 10.7683H13.38C13.7424 10.7683 14.0362 11.0622 14.0362 11.4245V13.5982C14.0362 13.9606 13.7424 14.2544 13.38 14.2544H10.1811C9.81867 14.2544 9.52488 13.9606 9.52488 13.5982V11.4245C9.52488 11.0622 9.81867 10.7683 10.1811 10.7683H10.5663L10.0033 9.22664ZM10.0033 9.22664L10.5663 10.7683H11.0857C11.0642 10.5439 11.0372 10.3231 11.0035 10.1214C10.9551 9.83055 10.9016 9.63631 10.8589 9.53254C10.8369 9.51712 10.7713 9.47341 10.6217 9.41458C10.4485 9.34646 10.2407 9.28705 10.0033 9.22664Z",fill:"currentColor"})}),Jgt=e=>f.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636V49.8363C6.67773 65.0322 31.894 77.351 62.9998 77.351C94.1055 77.351 119.322 65.0322 119.322 49.8363V35.1636Z",fill:"#2E2E2E",fillOpacity:"0.9"}),f.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636M119.322 35.1636C119.322 19.9677 94.1055 7.64893 62.9998 7.64893C31.894 7.64893 6.67773 19.9677 6.67773 35.1636M119.322 35.1636V49.8363C119.322 65.0322 94.1055 77.351 62.9998 77.351C31.894 77.351 6.67773 65.0322 6.67773 49.8363V35.1636",stroke:"#424242"}),f.jsx("path",{d:"M63.0002 0.968262C28.5152 0.968262 0.55957 15.6484 0.55957 33.7573V51.2428C0.55957 69.3517 28.5152 84.0319 63.0002 84.0319C97.4853 84.0319 125.441 69.3517 125.441 51.2428V33.7573C125.441 15.6484 97.4853 0.968262 63.0002 0.968262Z",stroke:"#707070"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.9374 21.357C76.2127 20.7291 78.2804 20.7291 79.5557 21.357L90.8129 26.8997C92.0882 27.5276 92.0882 28.5458 90.8129 29.1737L83.1638 32.9399C81.8885 33.5678 79.8207 33.5678 78.5454 32.9399L75.8033 31.5898L68.3324 35.2682L64.1502 39.696C63.8908 39.481 63.6138 39.2568 63.3231 39.0227L63.1495 38.883C62.2893 38.1914 61.2677 37.3701 60.6254 36.6376C60.5446 36.5456 60.4618 36.4463 60.3812 36.3407C60.1669 36.3011 59.9652 36.2603 59.7782 36.2205C58.2906 35.9043 56.6225 35.4013 55.2179 34.9777L54.9342 34.8922C54.4589 34.7491 54.0034 34.6127 53.5666 34.4849L62.5594 32.4258L70.0304 28.7473L67.2882 27.3972C66.0129 26.7692 66.0129 25.7512 67.2882 25.1232L74.9374 21.357ZM53.5666 34.4849C53.5666 34.4849 53.5666 34.4849 53.5666 34.4849L46.1603 36.1808L47.516 36.8483C48.7913 37.4762 48.7912 38.4943 47.516 39.1222L39.8668 42.8884C38.5916 43.5163 36.5238 43.5164 35.2485 42.8884L23.9913 37.3457C22.7159 36.7177 22.716 35.6996 23.9913 35.0717L31.6404 31.3055C32.9156 30.6776 34.9834 30.6776 36.2587 31.3055L38.5358 32.4267C39.6899 31.9483 40.9309 31.4611 42.153 31.0313C43.6354 30.5099 45.4001 29.9605 47.091 29.683C49.7278 29.2502 52.3729 29.7072 53.9892 30.0537C55.8019 30.4425 57.6745 31.0055 59.1934 31.4628C60.6081 31.8887 61.6949 32.2154 62.5594 32.4258L53.5666 34.4849ZM46.1603 36.1808L53.5666 34.4849C52.5189 34.1784 51.5786 33.9213 50.7293 33.7392C49.9958 33.5819 49.6114 33.5441 49.4794 33.5326C48.964 33.6384 48.0924 33.8823 46.8983 34.3023C46.0703 34.5936 45.1981 34.9293 44.3325 35.2808L46.1603 36.1808ZM64.1502 39.696L68.3324 35.2682C68.7598 35.6939 69.4232 36.229 70.2883 36.9256C71.2171 37.6735 72.3605 38.5954 73.15 39.488C73.8539 40.2838 74.7818 41.5862 73.9029 42.8844C73.3394 43.717 72.2235 44.5859 71.1648 45.3159C70.2916 45.9175 69.3021 46.5286 68.3305 47.0968L70.6077 48.218C71.8829 48.8459 71.8829 49.864 70.6077 50.4919L62.9585 54.2582C61.6833 54.8861 59.6154 54.8861 58.3402 54.2582L47.083 48.7154C45.8077 48.0875 45.8077 47.0694 47.083 46.4415L54.7321 42.6752C56.0074 42.0474 58.0751 42.0473 59.3505 42.6752L60.7062 43.3428L64.1502 39.696ZM64.1502 39.696L60.7062 43.3428L62.5339 44.2427C63.2478 43.8165 63.9298 43.3871 64.5213 42.9794C65.3742 42.3914 65.8695 41.9622 66.0846 41.7085C66.0613 41.6436 65.9844 41.4543 65.6649 41.0931C65.295 40.6749 64.773 40.212 64.1502 39.696Z",fill:"#A9A9A9"})]}),Qgt=e=>f.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M2.0625 5.99976C2.0625 3.82513 3.82538 2.06226 6 2.06226C6.58712 2.06226 7.14423 2.19076 7.64473 2.42117V1.21042C7.12905 1.03337 6.57575 0.937256 6 0.937256C3.20406 0.937256 0.9375 3.20381 0.9375 5.99976C0.9375 8.7957 3.20406 11.0623 6 11.0623C8.79594 11.0623 11.0625 8.7957 11.0625 5.99976H9.9375C9.9375 8.17438 8.17462 9.93726 6 9.93726C3.82538 9.93726 2.0625 8.17438 2.0625 5.99976Z",fill:"currentColor"}),f.jsx("path",{d:"M9.28577 4.3986C9.08709 4.3986 8.92603 4.23753 8.92603 4.03885V0.978563C8.92603 0.681899 9.16652 0.441406 9.46318 0.441406C9.75985 0.441406 10.0003 0.6819 10.0003 0.978564V3.25858C10.0003 3.33638 10.0634 3.39944 10.1412 3.39944H11.2091C11.485 3.39944 11.7087 3.62311 11.7087 3.89902C11.7087 4.17493 11.485 4.3986 11.2091 4.3986H9.28577Z",fill:"currentColor"}),f.jsx("path",{d:"M6.57568 3.69244C6.57568 3.38178 6.32384 3.12994 6.01318 3.12994C5.70252 3.12994 5.45068 3.38178 5.45068 3.69244V6.22272L6.7242 7.88675C6.91301 8.13346 7.26606 8.18039 7.51276 7.99159C7.75946 7.80278 7.8064 7.44973 7.61759 7.20303L6.57568 5.84162V3.69244Z",fill:"currentColor"})]}),Y3=e=>f.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M6.53918 9.32122C6.34324 9.51508 6.02724 9.51338 5.83338 9.31744C5.63952 9.1215 5.6412 8.80551 5.83713 8.61164L10.1958 4.29931C10.7996 3.70186 10.8017 2.72852 10.2041 2.12839L10.1899 2.11428C9.58767 1.52481 8.62251 1.53208 8.0292 2.13052L2.29396 7.91536C2.0999 8.1111 1.78388 8.11246 1.58813 7.9184C1.39239 7.72433 1.39103 7.40831 1.58509 7.21257L7.32036 1.42774C8.30005 0.439581 9.89369 0.427613 10.8881 1.40094L10.9116 1.42425C11.4942 2.00929 11.7316 2.80913 11.6232 3.56922C12.389 3.44866 13.1999 3.67918 13.7961 4.26273C14.804 5.24929 14.8147 6.86824 13.82 7.86808L8.5531 13.1619C8.50045 13.2148 8.50024 13.3002 8.55263 13.3534L9.65448 14.4717C9.84794 14.668 9.8456 14.984 9.64925 15.1775C9.45291 15.3709 9.13691 15.3686 8.94345 15.1723L7.84163 14.054C7.40505 13.6109 7.40677 12.8988 7.8455 12.4579L13.1124 7.16405C13.7161 6.55727 13.7095 5.57478 13.0979 4.97606C12.4925 4.38347 11.4942 4.40725 10.8978 5.00886L6.53918 9.32122Z",fill:"currentColor"}),f.jsx("path",{d:"M8.84622 2.75411C9.04697 2.56188 9.36555 2.56381 9.56395 2.76076C9.76234 2.95771 9.76658 3.27625 9.57582 3.4784L9.56661 3.48794L5.25912 7.82701C4.67023 8.42022 4.672 9.37798 5.26305 9.96904C5.85624 10.5622 6.81818 10.5615 7.41052 9.9675L11.6299 5.73599L11.6395 5.72671C11.8406 5.53493 12.1592 5.53756 12.3572 5.73496C12.5583 5.93548 12.5587 6.26104 12.3582 6.46214L8.13877 10.6937C7.14498 11.6903 5.53105 11.6915 4.53584 10.6963C3.5442 9.70461 3.54127 8.09774 4.52928 7.10248L8.83677 2.76342L8.84622 2.75411Z",fill:"currentColor"})]}),eyt=e=>f.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M1.5 8.5V8C1.5 7.60218 1.65804 7.22064 1.93934 6.93934C2.22064 6.65804 2.60218 6.5 3 6.5H13C13.3978 6.5 13.7794 6.65804 14.0607 6.93934C14.342 7.22064 14.5 7.60218 14.5 8V8.5M8.70667 4.20667L7.29333 2.79333C7.20048 2.70037 7.09022 2.62661 6.96886 2.57628C6.84749 2.52595 6.71739 2.50003 6.586 2.5H3C2.60218 2.5 2.22064 2.65804 1.93934 2.93934C1.65804 3.22064 1.5 3.60218 1.5 4V12C1.5 12.3978 1.65804 12.7794 1.93934 13.0607C2.22064 13.342 2.60218 13.5 3 13.5H13C13.3978 13.5 13.7794 13.342 14.0607 13.0607C14.342 12.7794 14.5 12.3978 14.5 12V6C14.5 5.60218 14.342 5.22064 14.0607 4.93934C13.7794 4.65804 13.3978 4.5 13 4.5H9.414C9.14887 4.49977 8.89402 4.39426 8.70667 4.20667Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),tyt=e=>f.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641V49.8368C6.67773 65.0327 31.894 77.3514 62.9998 77.3514C94.1055 77.3514 119.322 65.0327 119.322 49.8368V35.1641Z",fill:"#2E2E2E",fillOpacity:"0.9"}),f.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641M119.322 35.1641C119.322 19.9681 94.1055 7.64941 62.9998 7.64941C31.894 7.64941 6.67773 19.9681 6.67773 35.1641M119.322 35.1641V49.8368C119.322 65.0327 94.1055 77.3514 62.9998 77.3514C31.894 77.3514 6.67773 65.0327 6.67773 49.8368V35.1641",stroke:"#424242"}),f.jsx("path",{d:"M63.0002 0.96875C28.5152 0.96875 0.55957 15.6489 0.55957 33.7578V51.2433C0.55957 69.3522 28.5152 84.0323 63.0002 84.0323C97.4853 84.0323 125.441 69.3522 125.441 51.2433V33.7578C125.441 15.6489 97.4853 0.96875 63.0002 0.96875Z",stroke:"#707070"}),f.jsx("path",{d:"M51.5215 39.9726C50.5464 40.4477 48.9738 40.4435 48.009 39.9634C47.0442 39.4833 47.0526 38.709 48.0277 38.2339L69.7191 27.6672C72.7243 26.2032 72.7347 23.8181 69.7605 22.3476L69.6898 22.313C66.6927 20.8686 61.8895 20.8864 58.9368 22.3528L30.3946 36.5278C29.4288 37.0074 27.8561 37.0107 26.882 36.5352C25.9078 36.0597 25.901 35.2853 26.8668 34.8057L55.4092 20.6308C60.2847 18.2094 68.2157 18.1801 73.1645 20.5651L73.2814 20.6222C76.1808 22.0558 77.3624 24.0157 76.8227 25.8782C80.6339 25.5828 84.6694 26.1476 87.6364 27.5775C92.6525 29.9949 92.7059 33.962 87.7554 36.4119L61.5441 49.3836C61.282 49.5133 61.281 49.7227 61.5417 49.853L67.0252 52.5932C67.988 53.0743 67.9763 53.8486 66.9992 54.3226C66.0221 54.7966 64.4495 54.7909 63.4867 54.3098L58.0033 51.5695C55.8306 50.4838 55.8392 48.7391 58.0226 47.6585L84.2339 34.6868C87.2382 33.2 87.2058 30.7925 84.1617 29.3254C81.1488 27.8734 76.1811 27.9317 73.2127 29.4058L51.5215 39.9726Z",fill:"#A9A9A9"}),f.jsx("path",{d:"M63.0028 23.8809C64.0019 23.4098 65.5873 23.4146 66.5747 23.8972C67.562 24.3798 67.5831 25.1603 66.6338 25.6556L66.5879 25.679L45.1511 36.3113C42.2204 37.7649 42.2292 40.1117 45.1707 41.56C48.1228 43.0135 52.91 43.0118 55.8578 41.5563L76.8564 31.1875L76.9037 31.1648C77.9049 30.6949 79.4903 30.7013 80.4755 31.185C81.4763 31.6764 81.4785 32.4741 80.4806 32.9669L59.4821 43.3356C54.5363 45.7777 46.5044 45.7806 41.5516 43.342C36.6166 40.9121 36.602 36.9747 41.519 34.5359L62.9558 23.9037L63.0028 23.8809Z",fill:"#A9A9A9"})]}),nyt=e=>f.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641V49.8368C6.67773 65.0327 31.894 77.3514 62.9998 77.3514C94.1055 77.3514 119.322 65.0327 119.322 49.8368V35.1641Z",fill:"#2E2E2E",fillOpacity:"0.9"}),f.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641M119.322 35.1641C119.322 19.9681 94.1055 7.64941 62.9998 7.64941C31.894 7.64941 6.67773 19.9681 6.67773 35.1641M119.322 35.1641V49.8368C119.322 65.0327 94.1055 77.3514 62.9998 77.3514C31.894 77.3514 6.67773 65.0327 6.67773 49.8368V35.1641",stroke:"#424242"}),f.jsx("path",{d:"M63.0002 0.96875C28.5152 0.96875 0.55957 15.6489 0.55957 33.7578V51.2433C0.55957 69.3522 28.5152 84.0323 63.0002 84.0323C97.4853 84.0323 125.441 69.3522 125.441 51.2433V33.7578C125.441 15.6489 97.4853 0.96875 63.0002 0.96875Z",stroke:"#707070"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.8997 32.6647C98.4806 33.9355 98.4744 36.0012 95.8997 37.2689L89.6657 40.3384C87.0848 41.6091 82.8892 41.6061 80.3146 40.3384L74.0805 37.2689C71.4996 35.9981 71.5059 33.9324 74.0805 32.6647L80.3146 29.5952C82.8955 28.3244 87.091 28.3275 89.6657 29.5952L95.8997 32.6647ZM74.0805 21.9215C76.6614 23.1923 76.6552 25.258 74.0805 26.5257L67.8465 29.5952C65.2656 30.866 61.0701 30.8629 58.4954 29.5952L52.2613 26.5257C49.6804 25.255 49.6867 23.1892 52.2613 21.9215L58.4954 18.852C61.0763 17.5813 65.2718 17.5843 67.8465 18.852L74.0805 21.9215ZM74.0805 43.4079C76.6614 44.6786 76.6552 46.7444 74.0805 48.0121L67.8465 51.0816C65.2656 52.3523 61.0701 52.3493 58.4954 51.0816L52.2613 48.0121C49.6804 46.7413 49.6867 44.6756 52.2613 43.4079L58.4954 40.3384C61.0763 39.0676 65.2718 39.0707 67.8465 40.3384L74.0805 43.4079ZM52.2613 32.6647C54.8422 33.9355 54.836 36.0012 52.2613 37.2689L46.0273 40.3384C43.4464 41.6091 39.2509 41.6061 36.6762 40.3384L30.4422 37.2689C27.8613 35.9981 27.8675 33.9324 30.4422 32.6647L36.6762 29.5952C39.2571 28.3244 43.4526 28.3275 46.0273 29.5952L52.2613 32.6647Z",fill:"#A9A9A9"})]}),ryt=e=>f.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641V49.8368C6.67773 65.0327 31.894 77.3514 62.9998 77.3514C94.1055 77.3514 119.322 65.0327 119.322 49.8368V35.1641Z",fill:"#2E2E2E",fillOpacity:"0.9"}),f.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641M119.322 35.1641C119.322 19.9681 94.1055 7.64941 62.9998 7.64941C31.894 7.64941 6.67773 19.9681 6.67773 35.1641M119.322 35.1641V49.8368C119.322 65.0327 94.1055 77.3514 62.9998 77.3514C31.894 77.3514 6.67773 65.0327 6.67773 49.8368V35.1641",stroke:"#424242"}),f.jsx("path",{d:"M63.0002 0.96875C28.5152 0.96875 0.55957 15.6489 0.55957 33.7578V51.2433C0.55957 69.3522 28.5152 84.0323 63.0002 84.0323C97.4853 84.0323 125.441 69.3522 125.441 51.2433V33.7578C125.441 15.6489 97.4853 0.96875 63.0002 0.96875Z",stroke:"#707070"}),f.jsx("g",{clipPath:"url(#clip0_23333_14744)",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M79.2946 17.9539C83.0143 19.7854 83.016 22.7559 79.2979 24.5879C77.0214 25.7087 73.8794 26.1385 70.9301 25.8878L67.5296 30.2202C68.0944 30.3987 68.6321 30.6075 69.1262 30.8507C71.0847 31.815 72.0009 33.0948 71.8979 34.3581L77.2504 35.1977C77.6452 34.8727 78.1174 34.5635 78.6856 34.2835C82.4066 32.4514 88.4403 32.4485 92.1623 34.2803C95.8842 36.1128 95.8805 39.0851 92.159 40.9175C88.4373 42.7488 82.4002 42.7513 78.679 40.9191C76.7415 39.9647 75.8248 38.7009 75.9073 37.4506L70.5219 36.6045C70.1354 36.9168 69.6777 37.2145 69.1295 37.4846C68.345 37.8708 67.4527 38.1705 66.5059 38.3939L67.9312 41.984C70.1507 42.0573 72.3276 42.5087 74.0244 43.3438C77.7444 45.1754 77.7467 48.1458 74.0277 49.9778C70.3071 51.8092 64.2712 51.8095 60.551 49.9778C56.8323 48.1459 56.8351 45.1755 60.5543 43.3438C61.3581 42.9482 62.2741 42.6414 63.247 42.4167L61.8282 38.8428C59.5803 38.7777 57.3696 38.3299 55.6527 37.4846C54.1264 36.7327 53.2395 35.7882 52.9666 34.8103L43.924 34.0469C43.4596 34.6259 42.7547 35.1702 41.8041 35.6385C38.0834 37.4696 32.0473 37.4701 28.3273 35.6385C24.6089 33.8068 24.6123 30.8363 28.3306 29.0046C32.0508 27.1737 38.0806 27.1737 41.8008 29.0046C43.3459 29.7653 44.2412 30.7224 44.5033 31.7129L53.5098 32.4747C53.9742 31.8832 54.6868 31.3279 55.656 30.8507C57.6687 29.8601 60.357 29.4079 62.9902 29.4892L66.5783 24.9218C66.3174 24.8179 66.0637 24.7073 65.8212 24.5879C62.1022 22.7559 62.1045 19.7856 65.8245 17.9539C69.5447 16.1235 75.5747 16.1232 79.2946 17.9539ZM38.4299 30.6643C36.5715 29.75 33.5599 29.75 31.7015 30.6643C29.8447 31.5793 29.8414 33.0638 31.6982 33.9788C33.5565 34.8938 36.5742 34.8933 38.4332 33.9788C40.2906 33.0635 40.2883 31.5793 38.4299 30.6643ZM70.6536 45.0035C68.7951 44.0893 65.7836 44.0893 63.9251 45.0035C62.0676 45.9185 62.0647 47.4029 63.9218 48.318C65.7804 49.2332 68.7979 49.2329 70.6569 48.3181C72.5142 47.4027 72.5119 45.9185 70.6536 45.0035ZM65.7553 32.5104C63.8969 31.5961 60.8853 31.5961 59.0269 32.5104C57.1685 33.4254 57.1662 34.9096 59.0236 35.8249C60.8824 36.7402 63.8998 36.7402 65.7586 35.8249C67.616 34.9096 67.6137 33.4254 65.7553 32.5104ZM88.7915 35.94C86.9338 35.0261 83.9184 35.0264 82.0564 35.9432C80.1965 36.8601 80.1945 38.3451 82.0498 39.2594C83.9067 40.1736 86.9255 40.1738 88.7882 39.2578C90.6507 38.3407 90.649 36.8546 88.7915 35.94ZM75.9238 19.6136C74.0656 18.6995 71.0538 18.6998 69.1953 19.6136C67.3369 20.5286 67.3347 22.0129 69.192 22.9282C71.0509 23.8434 74.0682 23.8434 75.9271 22.9282C77.7836 22.0128 77.7818 20.5285 75.9238 19.6136Z",fill:"#A9A9A9"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"clip0_23333_14744",children:f.jsx("rect",{width:"59.3185",height:"59.3185",fill:"white",transform:"matrix(0.897148 0.441731 -0.897148 0.441731 65.3042 6.51953)"})})})]});function Lge({text:e,copyMessage:t="Copied to clipboard!"}){const[n,r]=D.useState(!1),s=D.useRef(null),i=D.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{Qf.success(t),r(!0),s.current&&(clearTimeout(s.current),s.current=null),s.current=setTimeout(()=>{r(!1)},2e3)}).catch(()=>{Qf.error("Failed to copy to clipboard.")})},[e,t]);return{isCopied:n,handleCopy:i}}function K1({content:e,copyMessage:t,className:n}){const{isCopied:r,handleCopy:s}=Lge({text:e,copyMessage:t});return f.jsxs(Gs,{variant:"ghost",size:"icon",className:He("relative h-6 w-6",n),"aria-label":"Copy to clipboard",onClick:s,children:[f.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:f.jsx(Vg,{className:He("h-4 w-4 transition-transform ease-in-out",r?"scale-100":"scale-0")})}),f.jsx(LS,{className:He("h-4 w-4 transition-transform ease-in-out",r?"scale-0":"scale-100")})]})}const syt=()=>D.useMemo(()=>QT({settings:{fontFamily:"var(--geist-mono)",fontSize:"0.8rem",lineHighlight:"transparent",gutterBackground:"transparent",background:"transparent",gutterForeground:"#939393"},styles:[{tag:[Se.className,Se.propertyName]}]}),[]),fF=({data:e,className:t})=>{const n=JSON.stringify(e,null,2),r=syt();return f.jsxs("div",{className:Yn("rounded-md bg-surface4 p-1 font-mono relative",t),children:[f.jsx(K1,{content:n,className:"absolute top-2 right-2"}),f.jsx(bd,{value:n,theme:r,extensions:[cg]})]})};async function iyt(e,t){const{codeToTokens:n,bundledLanguages:r}=await aie(async()=>{const{codeToTokens:i,bundledLanguages:o}=await import("./index-C6ixzzJo.js");return{codeToTokens:i,bundledLanguages:o}},[]);if(!(t in r))return null;const{tokens:s}=await n(e,{lang:t,defaultColor:!1,themes:{light:"github-light",dark:"github-dark"}});return s}const oyt=({toolName:e,argsText:t,result:n})=>{const[r,s]=D.useState(!0);let i;try{const o=JSON.parse(t);i=f.jsx(fF,{data:o})}catch{i=f.jsx("pre",{className:"whitespace-pre-wrap",children:t})}return f.jsxs("div",{children:[f.jsxs("button",{onClick:()=>s(o=>!o),className:"flex items-center gap-2",children:[f.jsx(Nt,{children:f.jsx(LT,{className:He("transition-all",r?"rotate-90":"rotate-180")})}),f.jsx(vr,{icon:f.jsx(Bd,{className:"text-[#ECB047]"}),children:e})]}),!r&&f.jsx("div",{className:"pt-2",children:f.jsxs("div",{className:"border-sm border-border1 rounded-lg bg-surface4",children:[f.jsxs("div",{className:"px-4 border-b-sm border-border1 py-2",children:[f.jsx("p",{className:"font-medium pb-2",children:"Tool arguments"}),i]}),n!==void 0&&f.jsxs("div",{className:"px-4 py-2",children:[f.jsx("p",{className:"font-medium pb-2",children:"Tool result"}),typeof n=="string"?f.jsx("pre",{className:"whitespace-pre-wrap",children:n}):f.jsx(fF,{data:n})]})]})})]})},ayt=({ToolFallback:e})=>{const t=Hg(),n=t.content.length===1&&t.content[0].type==="tool-call";return f.jsxs(vI,{className:"max-w-full",children:[f.jsx("div",{className:"text-icon6 text-ui-lg leading-ui-lg",children:f.jsx(xI,{components:{Text:jgt,tools:{Fallback:e||oyt}}})}),f.jsx("div",{className:"h-6 pt-1",children:!n&&f.jsx(lyt,{})})]})},lyt=()=>f.jsx(koe,{hideWhenRunning:!0,autohide:"always",autohideFloat:"single-branch",className:"flex gap-1 items-center transition-all relative",children:f.jsx(Eoe,{asChild:!0,children:f.jsxs(Ff,{tooltip:"Copy",className:"bg-transparent text-icon3 hover:text-icon6",children:[f.jsx(o7,{copied:!0,children:f.jsx(Vg,{})}),f.jsx(o7,{copied:!1,children:f.jsx(LS,{})})]})})}),ya=yT,cyt=wse,uC=bT,OL=D.forwardRef(({className:e,...t},n)=>f.jsx(Og,{ref:n,className:He("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));OL.displayName=Og.displayName;const Ro=D.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(uC,{children:[f.jsx(OL,{}),f.jsxs(Rg,{ref:r,className:He("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,f.jsxs(_S,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(xb,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ro.displayName=Rg.displayName;const Io=D.forwardRef(({className:e,...t},n)=>f.jsx(Ig,{ref:n,className:Yn("text-lg font-semibold leading-none tracking-tight",e),...t}));Io.displayName=Ig.displayName;const uyt=D.forwardRef(({className:e,...t},n)=>f.jsx(jg,{ref:n,className:He("text-sm text-muted-foreground",e),...t}));uyt.displayName=jg.displayName;const dyt=()=>{const e=eh(),[t,n]=D.useState(!1);return D.useEffect(()=>{e.subscribe(()=>{const r=e.getState().attachments;n(r.length>0)})},[e]),t},hyt=e=>{const[t,n]=D.useState(void 0);return D.useEffect(()=>{if(!e){n(void 0);return}const r=URL.createObjectURL(e);return n(r),()=>{URL.revokeObjectURL(r)}},[e]),t},RL=()=>{const{file:e,src:t}=Bm(cje(n=>{var s,i;if(n.type!=="image")return{};if(n.file)return{file:n.file};const r=(i=(s=n.content)==null?void 0:s.filter(o=>o.type==="image")[0])==null?void 0:i.image;return r?{src:r}:{}}));return hyt(e)??t},fyt=({src:e})=>f.jsx("div",{className:"overflow-hidden w-full",children:f.jsx("img",{src:e,className:"object-contain aspect-ratio h-full w-full",alt:"Preview"})}),Bge=({children:e})=>{const t=RL();return t?f.jsxs(ya,{children:[f.jsx(cyt,{className:"hover:bg-accent/50 cursor-pointer transition-colors",asChild:!0,children:e}),f.jsxs(uC,{children:[f.jsx(OL,{}),f.jsxs(Ro,{className:"max-w-5xl w-full max-h-[80%]",children:[f.jsx(Io,{className:"aui-sr-only",children:"Image Attachment Preview"}),f.jsx(fyt,{src:t})]})]})]}):e},pyt=()=>{const e=Bm(s=>s.type==="image"),t=Bm(s=>s.type==="document"?s:void 0),n=RL(),r=Bm(s=>s.source!=="message");return f.jsx(DT,{children:f.jsxs(kv,{children:[f.jsxs(gI,{className:"relative",children:[f.jsx(Bge,{children:f.jsx(Ev,{asChild:!0,children:f.jsx("div",{className:"h-full w-full aspect-ratio overflow-hidden rounded-lg",children:e?f.jsx("div",{className:"rounded-lg border-sm border-border1 overflow-hidden",children:f.jsx("img",{src:n,className:"object-cover aspect-ratio size-16",alt:"Preview",height:64,width:64})}):(t==null?void 0:t.contentType)==="application/pdf"?f.jsx("div",{className:"rounded-lg border-sm border-border1 flex items-center justify-center",children:f.jsx(mae,{className:"text-accent2"})}):f.jsx("div",{className:"rounded-lg border-sm border-border1 flex items-center justify-center",children:f.jsx(gae,{className:"text-icon3"})})})})}),r&&f.jsx(myt,{})]}),f.jsx(Wg,{side:"top",children:f.jsx(yI,{})})]})})},myt=()=>f.jsx(JRe,{asChild:!0,children:f.jsx(Ff,{tooltip:"Remove file",className:"absolute -right-3 -top-3 hover:bg-transparent rounded-full bg-surface1 rounded-full p-1",side:"top",children:f.jsx(Nt,{children:f.jsx(pae,{})})})}),gyt=()=>f.jsx(Voe,{components:{Attachment:yyt}}),yyt=()=>{const e=Bm(r=>r.type==="image"),t=Bm(r=>r.type==="document"?r:void 0),n=RL();return f.jsx(DT,{children:f.jsxs(kv,{children:[f.jsx(gI,{className:"relative pt-4",children:f.jsx(Bge,{children:f.jsx(Ev,{asChild:!0,children:f.jsx("div",{className:"h-full w-full aspect-ratio overflow-hidden rounded-lg",children:e?f.jsx("div",{className:"rounded-lg border-sm border-border1 overflow-hidden",children:f.jsx("img",{src:n,className:"object-cover aspect-ratio max-h-[140px] max-w-[320px]",alt:"Preview"})}):(t==null?void 0:t.contentType)==="application/pdf"?f.jsx("div",{className:"rounded-lg border-sm border-border1 flex items-center justify-center p-4",children:f.jsx(mae,{className:"text-accent2"})}):f.jsx("div",{className:"rounded-lg border-sm border-border1 flex items-center justify-center p-4",children:f.jsx(gae,{className:"text-icon3"})})})})})}),f.jsx(Wg,{side:"top",children:f.jsx(yI,{})})]})})},byt=()=>dyt()?f.jsx("div",{className:"flex w-full flex-row items-center gap-4 h-24",children:f.jsx(Yoe,{components:{Attachment:pyt}})}):null,vyt=()=>f.jsxs(vI,{className:"w-full flex items-end pb-4 flex-col",children:[f.jsx("div",{className:"max-w-[366px] px-5 py-3 text-icon6 text-ui-lg leading-ui-lg rounded-lg bg-surface3",children:f.jsx(xI,{})}),f.jsx(gyt,{})]}),$ge=(e,{enabled:t=!0})=>{const n=D.useRef(t);Ce.useEffect(()=>{if(!t||!(e!=null&&e.current))return;const r=e.current,s=new MutationObserver(()=>{n.current&&r.scrollTo({top:r.scrollHeight,behavior:"smooth"})});s.observe(r,{childList:!0,subtree:!0,characterData:!0});const i=o=>{const a=o.target,l=a.scrollTop+a.clientHeight,c=a.scrollHeight;l>=c-1?n.current=!0:n.current=!1};return r.addEventListener("scroll",i),()=>{r.removeEventListener("scroll",i),s.disconnect()}},[t,e])},xyt={"header-md":"text-header-md leading-header-md","ui-lg":"text-ui-lg leading-ui-lg","ui-md":"text-ui-md leading-ui-md","ui-sm":"text-ui-sm leading-ui-sm","ui-xs":"text-ui-xs leading-ui-xs"},wyt={mono:"font-mono"},tt=({as:e="p",className:t,variant:n="ui-md",font:r,...s})=>f.jsx(e,{className:Yn(xyt[n],r&&wyt[r],t),...s}),Syt=({language:e="en-US"}={})=>{const t=D.useRef(null),[n,r]=D.useState({isListening:!1,transcript:"",error:null}),s=()=>{t.current&&t.current.start()},i=()=>{t.current&&t.current.stop()};return D.useEffect(()=>{if(!("webkitSpeechRecognition"in window)&&!("SpeechRecognition"in window)){r(l=>({...l,error:"Speech Recognition not supported in this browser"}));return}const o=window.SpeechRecognition||window.webkitSpeechRecognition,a=new o;t.current=a,a.continuous=!0,a.lang=e,a.onstart=()=>{r(l=>({...l,isListening:!0}))},a.onresult=l=>{let c="";for(let u=l.resultIndex;u<l.results.length;u++){const d=l.results[u][0].transcript;l.results[u].isFinal&&(c+=d+" ")}r(u=>({...u,transcript:c}))},a.onerror=l=>{r(c=>({...c,error:`Error: ${l.error}`}))},a.onend=()=>r(l=>({...l,isListening:!1}))},[e]),{...n,start:s,stop:i}},zge=({ToolFallback:e,agentName:t,hasMemory:n,showFileSupport:r})=>{const s=D.useRef(null);$ge(s,{enabled:!0});const i=o=>f.jsx(ayt,{...o,ToolFallback:e});return f.jsxs(Cyt,{children:[f.jsxs(Zoe,{ref:s,autoScroll:!1,className:"overflow-y-scroll scroll-smooth h-full",children:[f.jsx(kyt,{agentName:t}),f.jsx("div",{className:"max-w-[568px] w-full mx-auto px-4 pb-7",children:f.jsx(eje,{components:{UserMessage:vyt,EditComposer:Tyt,AssistantMessage:i}})}),f.jsx(CA,{empty:!1,children:f.jsx("div",{})})]}),f.jsx(Eyt,{hasMemory:n,showFileSupport:r})]})},Cyt=({children:e})=>f.jsx(Xoe,{className:"grid grid-rows-[1fr_auto] h-full overflow-y-auto",children:e}),kyt=({agentName:e})=>{const t=e??"",n=t.split(" ")??[];let r="A";return n.length===2?r=`${n[0][0]}${n[1][0]}`:t.length>0?r=`${t[0]}`:r="A",f.jsx(Koe,{children:f.jsxs("div",{className:"flex w-full flex-grow flex-col items-center justify-center",children:[f.jsx(Rge,{children:f.jsx(Ige,{children:r})}),f.jsx("p",{className:"mt-4 font-medium",children:"How can I help you today?"})]})})},Eyt=({hasMemory:e,showFileSupport:t})=>f.jsxs("div",{className:"mx-4",children:[f.jsxs(wI,{children:[f.jsx("div",{className:"max-w-[568px] w-full mx-auto px-2 py-3",children:f.jsx(byt,{})}),f.jsxs("div",{className:"bg-surface3 rounded-lg border-sm border-border1 py-4 mt-auto max-w-[568px] w-full mx-auto px-4",children:[f.jsx(kI,{asChild:!0,className:"w-full",children:f.jsx("textarea",{className:"text-ui-lg leading-ui-lg placeholder:text-icon3 text-icon6 bg-transparent focus:outline-none resize-none",autoFocus:!0,placeholder:"Enter your message...",name:"",id:""})}),f.jsxs("div",{className:"flex justify-end gap-2",children:[f.jsx(Dyt,{}),f.jsx(Ayt,{showFileSupport:t})]})]})]}),!e&&f.jsxs(tt,{variant:"ui-sm",className:"text-icon3 flex gap-2 pt-1 max-w-[568px] w-full mx-auto border-t items-start",children:[f.jsx(Nt,{className:"transform translate-y-[0.1rem]",children:f.jsx(Xgt,{})}),"Memory is not enabled. The conversation will not be persisted."]})]}),Dyt=()=>{const e=eh(),{start:t,stop:n,isListening:r,transcript:s}=Syt();return D.useEffect(()=>{s&&e.setText(s)},[e,s]),f.jsx(Ff,{type:"button",tooltip:r?"Stop dictation":"Start dictation",variant:"ghost",className:"rounded-full",onClick:()=>r?n():t(),children:r?f.jsx(Hge,{}):f.jsx(Uje,{className:"h-6 w-6 text-[#898989] hover:text-[#fff]"})})},Ayt=({showFileSupport:e})=>f.jsxs(f.Fragment,{children:[e&&f.jsx(IIe,{asChild:!0,children:f.jsx(Ff,{tooltip:"Add attachment",variant:"ghost",className:"rounded-full",children:f.jsx(BT,{className:"h-6 w-6 text-[#898989] hover:text-[#fff]"})})}),f.jsx(CA,{running:!1,children:f.jsx(qoe,{asChild:!0,children:f.jsx(Ff,{tooltip:"Send",variant:"default",className:"rounded-full border-sm border-[#363636] bg-[#292929]",children:f.jsx(bje,{className:"h-6 w-6 text-[#898989] hover:text-[#fff]"})})})}),f.jsx(CA,{running:!0,children:f.jsx(Goe,{asChild:!0,children:f.jsx(Ff,{tooltip:"Cancel",variant:"default",children:f.jsx(Hge,{})})})})]}),Tyt=()=>f.jsxs(wI,{children:[f.jsx(kI,{}),f.jsxs("div",{children:[f.jsx(Goe,{asChild:!0,children:f.jsx(Gs,{variant:"ghost",children:"Cancel"})}),f.jsx(qoe,{asChild:!0,children:f.jsx(Gs,{children:"Send"})})]})]}),Hge=()=>f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",children:f.jsx("rect",{width:"10",height:"10",x:"3",y:"3",rx:"2"})}),_yt=async e=>new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{const s=r.result;typeof s=="string"?t(s):n(new Error("Failed to convert file to base64."))},r.onerror=s=>{n(s)},r.readAsDataURL(e)});class Nyt{constructor(){Ie(this,"accept","application/pdf")}async add({file:t}){if(t.size>20971520)throw new Error("PDF size exceeds 20MB limit");return{id:crypto.randomUUID(),type:"document",name:t.name,file:t,status:{type:"running",reason:"uploading",progress:0},contentType:"application/pdf"}}async send(t){const n=await this.fileToBase64(t.file);return{id:t.id,type:"document",name:t.name,content:[{type:"text",text:n}],status:{type:"complete"},contentType:"application/pdf"}}async remove(t){}async fileToBase64(t){const n=await t.arrayBuffer(),r=new Uint8Array(n);let s="";return r.forEach(i=>{s+=String.fromCharCode(i)}),btoa(s)}async extractTextFromPDF(t){return"Extracted PDF text content"}}const Pyt=e=>e,Myt=async e=>{const t=e.filter(n=>n.type==="image"||n.type==="document").map(async n=>{var r,s,i;return n.type==="document"?n.contentType==="application/pdf"?{role:"user",content:[{type:"file",data:((s=(r=n.content)==null?void 0:r[0])==null?void 0:s.text)||"",mimeType:n.contentType,filename:n.name}]}:{role:"user",content:((i=n.content[0])==null?void 0:i.text)||""}:{role:"user",content:[{type:"image",image:await _yt(n.file),mimeType:n.file.type}]}});return Promise.all(t)};function Fyt({children:e,agentId:t,initialMessages:n,agentName:r,memory:s,threadId:i,refreshThreadList:o,modelSettings:a={},chatWithGenerate:l,runtimeContext:c}){const[u,d]=D.useState(!1),[p,m]=D.useState([]),[b,x]=D.useState(i),{frequencyPenalty:C,presencePenalty:S,maxRetries:A,maxSteps:T,maxTokens:N,temperature:F,topK:M,topP:I,instructions:j}=a,L=new tg;Object.entries(c??{}).forEach(([$,J])=>{L.set($,J)}),D.useEffect(()=>{const $=n&&(n==null?void 0:n.length)>(p==null?void 0:p.length);if((p.length===0||b!==i||$&&b===i)&&n&&i&&s){const J=n==null?void 0:n.map(q=>{const U=(q.toolInvocations||[]).map(X=>({type:"tool-call",toolCallId:X==null?void 0:X.toolCallId,toolName:X==null?void 0:X.toolName,args:X==null?void 0:X.args,result:X==null?void 0:X.result})),V=(q.experimental_attachments||[]).map(X=>({type:X.contentType.startsWith("image/")?"image":X.contentType.startsWith("audio/")?"audio":"file",mimeType:X.contentType,image:X.url}));return{...q,content:[...typeof q.content=="string"?[{type:"text",text:q.content}]:[],...U,...V]}}).filter(Boolean);m(J),x(i)}},[n,i,s]);const z=xp().getAgent(t),Q=voe({isRunning:u,messages:p,convertMessage:Pyt,onNew:async $=>{var U;if(((U=$.content[0])==null?void 0:U.type)!=="text")throw new Error("Only text messages are supported");const J=await Myt($.attachments),q=$.content[0].text;m(V=>[...V,{role:"user",content:q,attachments:$.attachments}]),d(!0);try{if(l){const V=await z.generate({messages:[{role:"user",content:q},...J],runId:t,frequencyPenalty:C,presencePenalty:S,maxRetries:A,maxSteps:T,maxTokens:N,temperature:F,topK:M,topP:I,instructions:j,runtimeContext:L,...s?{threadId:i,resourceId:t}:{}});if(V.response){const X=V.response.messages.reduce((W,K)=>{const se=Array.isArray(W.content)?W.content:[];if(typeof K.content=="string")return{...W,content:[...se,{type:"text",text:K.content}]};if(K.role==="assistant"){const H=Array.isArray(K.content)?K.content.find(oe=>oe.type==="tool-call"):void 0;if(H){const oe=se.map(ne=>ne.type==="tool-call"&&ne.toolCallId===(H==null?void 0:H.toolCallId)?{...ne,...H}:ne),le=oe.some(ne=>ne.type==="tool-call");return{...W,content:le?oe:[...se,H]}}const te=Array.isArray(K.content)?K.content.find(oe=>oe.type==="text"&&oe.text):void 0;if(te)return{...W,content:[...se,te]}}if(K.role==="tool"){const H=Array.isArray(K.content)?K.content.find(te=>te.type==="tool-result"):void 0;if(H){const te=se.map(le=>le.type==="tool-call"&&le.toolCallId===(H==null?void 0:H.toolCallId)?{...le,result:H.result}:le),oe=te.some(le=>le.type==="tool-call");return{...W,content:oe?te:[...se,{type:"tool-result",toolCallId:H.toolCallId,result:H.result}]}}return{...W,content:[...se,H]}}return W},{role:"assistant",content:[]});m(W=>[...W,X])}}else{let V=function(){m(te=>{const oe={role:"assistant",content:[{type:"text",text:W}]};return K?se?(se=!1,[...te,oe]):[...te.slice(0,-1),oe]:(K=!0,se&&(se=!1),[...te,oe])})};const X=await z.stream({messages:[{role:"user",content:q},...J],runId:t,frequencyPenalty:C,presencePenalty:S,maxRetries:A,maxSteps:T,maxTokens:N,temperature:F,topK:M,topP:I,instructions:j,runtimeContext:L,...s?{threadId:i,resourceId:t}:{}});if(!X.body)throw new Error("No response body");let W="",K=!1,se=!1,H=!1;await X.processDataStream({onTextPart(te){H?(H=!1,W=te):W+=te,V()},async onToolCallPart(te){m(oe=>{const le=oe[oe.length-1];if(le&&le.role==="assistant"){const me={...le,content:Array.isArray(le.content)?[...le.content,{type:"tool-call",toolCallId:te.toolCallId,toolName:te.toolName,args:te.args}]:[...typeof le.content=="string"?[{type:"text",text:le.content}]:[],{type:"tool-call",toolCallId:te.toolCallId,toolName:te.toolName,args:te.args}]};return se=!0,H=!0,[...oe.slice(0,-1),me]}const ne={role:"assistant",content:[{type:"text",text:W},{type:"tool-call",toolCallId:te.toolCallId,toolName:te.toolName,args:te.args}]};return se=!0,H=!0,[...oe,ne]})},async onToolResultPart(te){m(oe=>{const le=oe[oe.length-1];if(le&&le.role==="assistant"&&Array.isArray(le.content)){const ne=le.content.map(we=>typeof we=="object"&&we.type==="tool-call"&&we.toolCallId===te.toolCallId?{...we,result:te.result}:we),me={...le,content:ne};return[...oe.slice(0,-1),me]}return oe})},onErrorPart(te){throw new Error(te)}})}d(!1),setTimeout(()=>{o==null||o()},500)}catch(V){console.error("Error occurred in MastraRuntimeProvider",V),d(!1),m(X=>[...X,{role:"assistant",content:[{type:"text",text:`Error: ${V}`}]}])}},adapters:{attachments:new iRe([new tRe,new rRe,new Nyt])}});return f.jsxs(noe,{runtime:Q,children:[" ",e," "]})}const Oyt=qo()(Fde(e=>({modelSettings:{},setModelSettings:t=>e(n=>({modelSettings:{...n.modelSettings,...t}})),chatWithGenerate:{},setChatWithGenerate:t=>e(n=>({chatWithGenerate:{...n.chatWithGenerate,...t}}))}),{name:"mastra-agent-store"})),Xh={maxRetries:2,maxSteps:5,temperature:.5,topP:1},X3=D.createContext({});function Ryt({agentId:e,defaultGenerateOptions:t,defaultStreamOptions:n,children:r}){const{modelSettings:s,setModelSettings:i,chatWithGenerate:o,setChatWithGenerate:a}=Oyt(),l=o[e]||!1,c=m=>{a({[e]:m})},u=D.useMemo(()=>s[e]?s[e]:l?{maxRetries:(t==null?void 0:t.maxRetries)??Xh.maxRetries,maxSteps:(t==null?void 0:t.maxSteps)??Xh.maxSteps,temperature:(t==null?void 0:t.temperature)??Xh.temperature,topP:(t==null?void 0:t.topP)??Xh.topP,...t}:{maxRetries:(n==null?void 0:n.maxRetries)??Xh.maxRetries,maxSteps:(n==null?void 0:n.maxSteps)??Xh.maxSteps,temperature:(n==null?void 0:n.temperature)??Xh.temperature,topP:(n==null?void 0:n.topP)??Xh.topP,...n},[e,t,n,l,s]),d=m=>{i({[e]:m})},p=()=>{i({[e]:null})};return f.jsx(X3.Provider,{value:{modelSettings:u,setModelSettings:d,resetModelSettings:p,chatWithGenerate:l,setChatWithGenerate:c},children:r})}const Dv=qo()(Fde(e=>({runtimeContext:{},setRuntimeContext:t=>e({runtimeContext:t})}),{name:"mastra-playground-store"})),Iyt=({agentId:e,agentName:t,threadId:n,initialMessages:r,memory:s,refreshThreadList:i,showFileSupport:o})=>{const{modelSettings:a,chatWithGenerate:l}=D.useContext(X3),{runtimeContext:c}=Dv();return f.jsx(Fyt,{agentId:e,agentName:t,threadId:n,initialMessages:r,memory:s,refreshThreadList:i,modelSettings:a,chatWithGenerate:l,runtimeContext:c,children:f.jsx(zge,{agentName:t??"",hasMemory:s,showFileSupport:o})})},jyt=wv("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function VD({className:e,variant:t,...n}){return f.jsx("div",{className:He(jyt({variant:t}),e),...n})}function WE({content:e,label:t,multiline:n=!1}){const r=()=>{navigator.clipboard.writeText(e)};return f.jsxs("div",{className:"group relative flex items-start gap-2",children:[f.jsx("span",{className:He("text-sm text-mastra-el-4",n?"whitespace-pre-wrap":"truncate"),children:e}),f.jsx(Gs,{variant:"ghost",size:"sm",className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0 -mt-1",onClick:s=>{s.stopPropagation(),r()},"aria-label":`Copy ${t}`,children:f.jsx(LS,{className:"h-3 w-3"})})]})}function Lyt({date:e}){const t={relativeTime:ett(new Date(e),{addSuffix:!0}),fullDate:no(new Date(e),"PPpp")};return f.jsx(PL,{children:f.jsxs(kv,{children:[f.jsx(Ev,{className:"text-left text-sm text-mastra-el-4",children:t.relativeTime}),f.jsx(Wg,{className:"bg-mastra-bg-1 text-mastra-el-1",children:f.jsx("p",{className:"text-sm",children:t.fullDate})})]})})}const Byt=wv("flex w-full text-icon6 rounded-lg border bg-transparent shadow-sm focus-visible:ring-ring transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-sm border-border1 placeholder:text-icon3",filled:"border-sm bg-inputFill border-border1 placeholder:text-icon3",unstyled:"border-0 bg-transparent placeholder:text-icon3 focus-visible:ring-transparent focus-visible:outline-none"},customSize:{default:"px-[13px] text-[calc(13_/_16_*_1rem)] h-8",sm:"h-[30px] px-[13px] text-xs",lg:"h-10 px-[17px] text-[calc(13_/_16_*_1rem)]"}},defaultVariants:{variant:"default",customSize:"default"}}),$d=D.forwardRef(({className:e,customSize:t,testId:n,variant:r,type:s,...i},o)=>f.jsx("input",{type:s,className:Yn(e,Byt({variant:r,customSize:t,className:e})),"data-testid":n,ref:o,...i}));$d.displayName="Input";function cJ({score:e}){return f.jsx(VD,{variant:"secondary",children:e.toFixed(2)})}function da({className:e,...t}){return f.jsx("div",{className:He("animate-pulse rounded-md bg-muted/50",e),...t})}const pF=D.forwardRef(({className:e,...t},n)=>f.jsx("table",{ref:n,className:He("w-full caption-bottom text-sm border-spacing-0",e),...t}));pF.displayName="Table";const mF=D.forwardRef(({className:e,...t},n)=>f.jsx("thead",{ref:n,className:He("[&_tr]:border-b-[0.5px]",e),...t}));mF.displayName="TableHeader";const gF=D.forwardRef(({className:e,...t},n)=>f.jsx("tbody",{ref:n,className:He("[&_tr:last-child]:border-0",e),...t}));gF.displayName="TableBody";const $yt=D.forwardRef(({className:e,...t},n)=>f.jsx("tfoot",{ref:n,className:He("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));$yt.displayName="TableFooter";const ef=D.forwardRef(({className:e,...t},n)=>f.jsx("tr",{ref:n,className:He("border-b-[0.5px] border-mastra-border-1 transition-colors hover:bg-muted/50 data-[state=selected]:bg-mastra-bg-4/70",e),...t}));ef.displayName="TableRow";const aa=D.forwardRef(({className:e,...t},n)=>f.jsx("th",{ref:n,className:He("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));aa.displayName="TableHead";const is=D.forwardRef(({className:e,...t},n)=>f.jsx("td",{ref:n,className:He("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));is.displayName="TableCell";const zyt=D.forwardRef(({className:e,...t},n)=>f.jsx("caption",{ref:n,className:He("mt-4 text-sm text-muted-foreground",e),...t}));zyt.displayName="TableCaption";const Hyt=ihe,Vge=D.forwardRef(({className:e,...t},n)=>f.jsx(l3,{ref:n,className:He(e),...t}));Vge.displayName=l3.displayName;const yF=D.forwardRef(({className:e,...t},n)=>f.jsx(c3,{ref:n,className:He(e),...t}));yF.displayName=c3.displayName;const bF=D.forwardRef(({className:e,...t},n)=>f.jsx(u3,{ref:n,className:He("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));bF.displayName=u3.displayName;const uJ=(e,t)=>{const[n,r]=D.useState([]),[s,i]=D.useState(!0),o=xp(),a=async l=>{i(!0);const c=l??e;try{const u=t==="live"?await o.getAgent(c).liveEvals():await o.getAgent(c).evals();r(u.evals)}catch(u){r([]),console.error("Error fetching evals",u),Qf.error("Error fetching evals")}finally{i(!1)}};return D.useEffect(()=>{a(e)},[e]),{evals:n,isLoading:s,refetchEvals:a}},Uge=D.createContext({handleRefresh:()=>{},isLoading:!0}),GE=He("relative overflow-y-auto overflow-x-hidden invisible hover:visible focus:visible","[&::-webkit-scrollbar]:w-1","[&::-webkit-scrollbar-track]:bg-transparent","[&::-webkit-scrollbar-thumb]:rounded-full","[&::-webkit-scrollbar-thumb]:bg-mastra-border/20","[&>*]:visible"),dJ=He("px-4 py-2 text-sm transition-all border-b-2 border-transparent","data-[state=active]:border-white data-[state=active]:text-white font-medium","data-[state=inactive]:text-mastra-el-4 hover:data-[state=inactive]:text-mastra-el-2","focus-visible:outline-none"),hJ=He("data-[state=inactive]:mt-0 min-h-0 h-full grid grid-rows-[1fr]");function Vyt({agentId:e}){const[t,n]=D.useState("live"),{evals:r,isLoading:s,refetchEvals:i}=uJ(e,"live"),{evals:o,isLoading:a,refetchEvals:l}=uJ(e,"ci"),c={handleRefresh:u,isLoading:t==="live"?s:a};function u(){t==="live"?i():l()}return f.jsx(Uge.Provider,{value:c,children:f.jsxs(Hyt,{value:t,onValueChange:d=>n(d),className:"grid grid-rows-[auto_1fr] h-full min-h-0 pb-2",children:[f.jsx("div",{className:"border-b border-mastra-border/10",children:f.jsxs(Vge,{className:"bg-transparent border-0 h-auto mx-4",children:[f.jsx(yF,{value:"live",className:dJ,children:"Live"}),f.jsx(yF,{value:"ci",className:dJ,children:"CI"})]})}),f.jsx(bF,{value:"live",className:hJ,children:f.jsx(fJ,{evals:r,isCIMode:!1})}),f.jsx(bF,{value:"ci",className:hJ,children:f.jsx(fJ,{evals:o,isCIMode:!0})})]})})}function fJ({evals:e,isCIMode:t=!1}){const{handleRefresh:n,isLoading:r}=D.useContext(Uge),[s,i]=D.useState(new Set),[o,a]=D.useState(""),[l,c]=D.useState({field:"metricName",direction:"asc"});return f.jsxs("div",{className:"min-h-0 grid grid-rows-[auto_1fr]",children:[f.jsxs("div",{className:"flex items-center gap-4 p-4 rounded-lg",children:[f.jsxs("div",{className:"relative flex-1",children:[f.jsx(Tq,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-mastra-el-3"}),f.jsx($d,{id:"search-input",placeholder:"Search metrics, inputs, or outputs...",value:o,onChange:x=>a(x.target.value),className:"pl-10"})]}),f.jsxs(VD,{variant:"secondary",className:"text-xs",children:[e.length," Total Evaluations"]}),f.jsx(Gs,{variant:"ghost",size:"icon",onClick:n,disabled:r,className:"h-9 w-9",children:r?f.jsx(Aq,{className:"h-4 w-4 animate-spin"}):f.jsx(Aq,{className:"h-4 w-4"})})]}),f.jsx("div",{className:"overflow-auto",children:f.jsxs(pF,{className:"w-full",children:[f.jsx(mF,{className:"bg-mastra-bg-2 h-[var(--table-header-height)] sticky top-0 z-10",children:f.jsxs(ef,{className:"border-gray-6 border-b-[0.1px] text-[0.8125rem]",children:[f.jsx(aa,{className:"w-12 h-12"}),f.jsx(aa,{className:"min-w-[200px] max-w-[30%] text-mastra-el-3 cursor-pointer",onClick:()=>p("metricName"),children:f.jsxs("div",{className:"flex items-center",children:["Metric ",m("metricName")]})}),f.jsx(aa,{className:"flex-1 text-mastra-el-3"}),f.jsx(aa,{className:"w-48 text-mastra-el-3 cursor-pointer",onClick:()=>p("averageScore"),children:f.jsxs("div",{className:"flex items-center",children:["Average Score ",m("averageScore")]})}),f.jsx(aa,{className:"w-48 text-mastra-el-3",children:"Evaluations"})]})}),f.jsx(gF,{className:"border-b border-gray-6 relative",children:f.jsx(Ntt,{mode:"wait",presenceAffectsLayout:!1,children:r?Array.from({length:3}).map((x,C)=>f.jsxs(ef,{className:"border-b-gray-6 border-b-[0.1px] text-[0.8125rem]",children:[f.jsx(is,{className:"w-12 h-12",children:f.jsx(da,{className:"h-8 w-8 rounded-full"})}),f.jsx(is,{className:"min-w-[200px] max-w-[30%]",children:f.jsx(da,{className:"h-4 w-3/4"})}),f.jsx(is,{className:"flex-1",children:f.jsx(da,{className:"h-4 w-full"})}),f.jsx(is,{className:"w-48",children:f.jsx(da,{className:"h-4 w-20"})}),f.jsx(is,{className:"w-48",children:f.jsx(da,{className:"h-4 w-20"})})]},C)):b(e).length===0?f.jsxs(ef,{children:[f.jsx(is,{className:"h-12 w-16"}),f.jsx(is,{colSpan:4,className:"h-32 px-4 text-center text-mastra-el-3",children:f.jsxs("div",{className:"flex flex-col items-center gap-2",children:[f.jsx(Tq,{className:"size-5"}),f.jsx("p",{children:"No evaluations found"}),o&&f.jsx("p",{className:"text-sm",children:"Try adjusting your search terms"})]})})]}):b(e).map(x=>f.jsxs(Ce.Fragment,{children:[f.jsxs(ef,{className:"border-b-gray-6 border-b-[0.1px] text-[0.8125rem] cursor-pointer hover:bg-mastra-bg-3",onClick:()=>d(x.metricName),children:[f.jsx(is,{className:"w-12",children:f.jsx("div",{className:"h-8 w-full flex items-center justify-center",children:f.jsx("div",{className:He("transform transition-transform duration-200",s.has(x.metricName)?"rotate-90":""),children:f.jsx(Aje,{className:"h-4 w-4 text-mastra-el-5"})})})}),f.jsx(is,{className:"min-w-[200px] max-w-[30%] font-medium text-mastra-el-5",children:x.metricName}),f.jsx(is,{className:"flex-1 text-mastra-el-5"}),f.jsx(is,{className:"w-48 text-mastra-el-5",children:f.jsx(cJ,{score:x.averageScore})}),f.jsx(is,{className:"w-48 text-mastra-el-5",children:f.jsx(VD,{variant:"secondary",children:x.evals.length})})]}),s.has(x.metricName)&&f.jsx(ef,{children:f.jsx(is,{colSpan:5+(u(x.evals)?1:0)+(t?1:0),className:"p-0",children:f.jsx("div",{className:"bg-mastra-bg-3 rounded-lg m-2",children:f.jsx("div",{className:"w-full",children:f.jsxs(pF,{className:"w-full",children:[f.jsx(mF,{children:f.jsxs(ef,{className:"text-[0.7rem] text-mastra-el-3 hover:bg-transparent",children:[f.jsx(aa,{className:"pl-12 w-[120px]",children:"Timestamp"}),f.jsx(aa,{className:"w-[300px]",children:"Instructions"}),f.jsx(aa,{className:"w-[300px]",children:"Input"}),f.jsx(aa,{className:"w-[300px]",children:"Output"}),f.jsx(aa,{className:"w-[80px]",children:"Score"}),u(x.evals)&&f.jsx(aa,{className:"w-[250px]",children:"Reason"}),t&&f.jsx(aa,{className:"w-[120px]",children:"Test Name"})]})}),f.jsx(gF,{children:x.evals.map((C,S)=>{var A,T;return f.jsxs(ef,{className:"text-[0.8125rem] hover:bg-mastra-bg-2/50",children:[f.jsx(is,{className:"pl-12 text-mastra-el-4 align-top py-4",children:f.jsx(Lyt,{date:C.createdAt})}),f.jsx(is,{className:"text-mastra-el-4 align-top py-4",children:f.jsx("div",{className:He("max-w-[300px] max-h-[200px]",GE),children:f.jsx(WE,{content:C.instructions,label:"instructions",multiline:!0})})}),f.jsx(is,{className:"text-mastra-el-4 align-top py-4",children:f.jsx("div",{className:He("max-w-[300px] max-h-[200px]",GE),children:f.jsx(WE,{content:C.input,label:"input",multiline:!0})})}),f.jsx(is,{className:"text-mastra-el-4 align-top py-4",children:f.jsx("div",{className:He("max-w-[300px] max-h-[200px]",GE),children:f.jsx(WE,{content:C.output,label:"output",multiline:!0})})}),f.jsx(is,{className:"text-mastra-el-4 align-top py-4",children:f.jsx(cJ,{score:C.result.score})}),u(x.evals)&&f.jsx(is,{className:"text-mastra-el-4 align-top py-4",children:f.jsx("div",{className:He("max-w-[300px] max-h-[200px]",GE),children:f.jsx(WE,{content:((A=C.result.info)==null?void 0:A.reason)||"",label:"reason",multiline:!0})})}),t&&f.jsx(is,{className:"text-mastra-el-4 align-top py-4",children:((T=C.testInfo)==null?void 0:T.testName)&&f.jsx(VD,{variant:"secondary",className:"text-xs",children:C.testInfo.testName})})]},`${x.metricName}-${S}`)})})]})})})})})]},x.metricName))})})]})})]});function u(x){return x.some(C=>{var S;return(S=C.result.info)==null?void 0:S.reason})}function d(x){const C=new Set(s);C.has(x)?C.delete(x):C.add(x),i(C)}function p(x){c(C=>({field:x,direction:C.field===x&&C.direction==="asc"?"desc":"asc"}))}function m(x){return l.field!==x?null:l.direction==="asc"?f.jsx(gje,{className:"h-4 w-4 ml-1"}):f.jsx(pje,{className:"h-4 w-4 ml-1"})}function b(x){let C=x.reduce((S,A)=>{const T=S.find(N=>N.metricName===A.metricName);return T?(T.evals.push(A),T.averageScore=T.evals.reduce((N,F)=>N+F.result.score,0)/T.evals.length):S.push({metricName:A.metricName,averageScore:A.result.score,evals:[A]}),S},[]);return o&&(C=C.filter(S=>S.metricName.toLowerCase().includes(o.toLowerCase())||S.evals.some(A=>{var T,N,F;return((T=A.input)==null?void 0:T.toLowerCase().includes(o.toLowerCase()))||((N=A.output)==null?void 0:N.toLowerCase().includes(o.toLowerCase()))||((F=A.instructions)==null?void 0:F.toLowerCase().includes(o.toLowerCase()))}))),C.sort((S,A)=>{const T=l.direction==="asc"?1:-1;switch(l.field){case"metricName":return T*S.metricName.localeCompare(A.metricName);case"averageScore":return T*(S.averageScore-A.averageScore);default:return 0}}),C}}const ih=D.createContext({});function qge({children:e,initialTraces:t=[]}){const[n,r]=D.useState(!1),[s,i]=D.useState(null),[o,a]=D.useState(0),[l,c]=D.useState(null),u=()=>{if(o<t.length-1){const m=o+1;a(m);const b=t[m].trace;i(b);const x=b.find(C=>C.parentSpanId===null)||b[0];c(x)}},d=()=>{if(o>0){const m=o-1;a(m);const b=t[m].trace;i(b);const x=b.find(C=>C.parentSpanId===null)||b[0];c(x)}},p=()=>{r(!1),i(null),c(null)};return f.jsx(ih.Provider,{value:{isOpen:n,setIsOpen:r,trace:s,setTrace:i,traces:t,currentTraceIndex:o,setCurrentTraceIndex:a,nextTrace:u,prevTrace:d,span:l,setSpan:c,clearData:p},children:e})}const Uyt={default:"[&>tbody>tr]:h-table-row",small:"[&>tbody>tr]:h-table-row-small"},Wge=({className:e,children:t,size:n="default"})=>f.jsx("table",{className:Yn("w-full",Uyt[n],e),children:t}),Gge=({className:e,children:t})=>f.jsx("thead",{children:f.jsx("tr",{className:Yn("h-table-header border-b-sm border-border1",e),children:t})}),Qy=({className:e,children:t,...n})=>f.jsx("th",{className:Yn("text-icon3 text-ui-sm h-full text-left font-normal uppercase first:pl-5 last:pr-5 whitespace-nowrap",e),...n,children:t}),K3=({className:e,children:t})=>f.jsx("tbody",{className:Yn("",e),children:t}),L0=({className:e,children:t,selected:n=!1,onClick:r})=>f.jsx("tr",{className:Yn("border-b-sm border-border1 hover:bg-surface3",n&&"bg-surface4",r&&"cursor-pointer",e),onClick:r,children:t}),qyt=e=>{const t=new Intl.DateTimeFormat("en-US",{month:"short"}).format(e).toUpperCase(),n=e.getDate(),r=`${t} ${n}`,s=new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e);return{day:r,time:s}},Go=({className:e,children:t,...n})=>f.jsx("td",{className:Yn("text-icon5 first:pl-5 last:pr-5",e),...n,children:f.jsx("div",{className:Yn("flex h-full w-full shrink-0 items-center"),children:t})}),Wyt=({className:e,children:t})=>f.jsx(Go,{className:e,children:f.jsx(tt,{as:"span",variant:"ui-md",className:"w-full truncate",children:t})}),Gyt=({className:e,children:t,unit:n})=>f.jsx(Go,{className:e,children:f.jsxs("div",{className:"flex min-w-0 items-center",children:[f.jsx(tt,{as:"span",variant:"ui-md",className:"shrink-0",children:t}),f.jsx(tt,{as:"span",variant:"ui-sm",className:"text-icon3 w-full truncate",children:n})]})}),Yyt=({dateTime:e,...t})=>{const{day:n,time:r}=qyt(e);return f.jsx(Go,{...t,children:f.jsxs("div",{className:"shrink-0",children:[f.jsx(tt,{as:"span",variant:"ui-sm",className:"text-icon3",children:n})," ",f.jsx(tt,{as:"span",variant:"ui-md",children:r})]})})},IL=({name:e,description:t,icon:n,meta:r,...s})=>f.jsx(Go,{...s,children:f.jsxs("div",{className:"flex items-center gap-[14px]",children:[f.jsx(Nt,{size:"lg",className:"text-icon5",children:n}),f.jsxs("div",{className:"flex flex-col gap-0",children:[f.jsx(tt,{as:"span",variant:"ui-md",className:"text-icon6 font-medium !leading-tight",children:e}),t&&f.jsx(tt,{as:"span",variant:"ui-xs",className:"text-icon3 w-full max-w-[300px] truncate !leading-tight",children:t})]}),r]})}),Xyt=()=>{const{setTrace:e,isOpen:t,setIsOpen:n,trace:r,setSpan:s,setCurrentTraceIndex:i}=D.useContext(ih);return{openTrace:(a,l)=>{var u;e(a);const c=a.find(d=>d.parentSpanId===null)||a[0];s(c),i(l),!(t&&((u=r==null?void 0:r[0])==null?void 0:u.id)!==a[0].id)&&n(d=>!d)}}},iS=(e,t)=>Number(e.toPrecision(t)),Kyt=({colsCount:e})=>f.jsx(K3,{children:f.jsx(L0,{children:f.jsx(Go,{colSpan:e,className:"text-center py-4",children:f.jsx(tt,{children:"No traces found"})})})}),Zyt=({error:e,colsCount:t})=>f.jsx(K3,{children:f.jsx(L0,{children:f.jsx(Go,{colSpan:t,className:"text-center py-4",children:f.jsx(tt,{children:e.message})})})}),Jyt=({trace:e,index:t,isActive:n})=>{const{openTrace:r}=Xyt(),s=e.trace.some(i=>i.status.code!==0);return f.jsxs(L0,{className:n?"bg-surface4":"",onClick:()=>r(e.trace,t),children:[f.jsx(Yyt,{dateTime:new Date(e.started/1e3)}),f.jsxs(Wyt,{title:e.traceId,children:[e.traceId.substring(0,7),"..."]}),f.jsx(Gyt,{unit:"ms",children:iS(e.duration/1e3,3)}),f.jsx(Go,{children:f.jsx("button",{onClick:()=>r(e.trace,t),children:f.jsx(vr,{icon:f.jsx(hF,{}),children:e.trace.length})})}),f.jsx(Go,{children:s?f.jsx(vr,{variant:"error",icon:f.jsx(xb,{}),children:"Failed"}):f.jsx(vr,{icon:f.jsx(Vg,{}),variant:"success",children:"Success"})})]})},Yge=({traces:e,error:t})=>{const n=!e||e.length===0,{currentTraceIndex:r}=D.useContext(ih),s=4;return f.jsxs(Wge,{size:"small",children:[f.jsxs(Gge,{children:[f.jsx(Qy,{width:120,children:"Time"}),f.jsx(Qy,{width:"auto",children:"Trace Id"}),f.jsx(Qy,{width:120,children:"Duration"}),f.jsx(Qy,{width:120,children:"Spans"}),f.jsx(Qy,{width:120,children:"Status"})]}),t?f.jsx(Zyt,{error:t,colsCount:s}):n?f.jsx(Kyt,{colsCount:s}):f.jsx(f.Fragment,{children:f.jsx(K3,{children:e.map((i,o)=>f.jsx(Jyt,{trace:i,index:o,isActive:o===r},i.traceId))})})]})},Qyt=({defaultWidth:e,minimumWidth:t,maximumWidth:n,setCurrentWidth:r})=>{const[s,i]=D.useState(!1),[o,a]=D.useState(e),l=D.useRef(null),c=D.useRef(0),u=D.useRef(0),d=p=>{p.preventDefault(),i(!0),c.current=p.clientX,u.current=o};return D.useEffect(()=>{a(e),r==null||r(e)},[e]),D.useEffect(()=>{const p=b=>{if(!s||!l.current)return;const x=l.current.offsetWidth,S=(c.current-b.clientX)/x*100,A=Math.min(Math.max(u.current+S,t),n);a(A),r==null||r(A)},m=()=>{i(!1)};return s&&(window.addEventListener("mousemove",p),window.addEventListener("mouseup",m)),()=>{window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",m)}},[s]),{sidebarWidth:o,isDragging:s,handleMouseDown:d,containerRef:l}},Xge=({children:e,defaultWidth:t,minimumWidth:n,maximumWidth:r,className:s,disabled:i=!1,setCurrentWidth:o,dividerPosition:a="left"})=>{const{sidebarWidth:l,isDragging:c,handleMouseDown:u,containerRef:d}=Qyt({defaultWidth:i?100:t,minimumWidth:n,maximumWidth:r,setCurrentWidth:o});return f.jsxs("div",{className:He("w-full h-full relative",s),ref:d,style:{width:`${l}%`},children:[!i&&a==="left"?f.jsx("div",{className:`w-px bg-border1 h-full cursor-col-resize hover:w-1.5 hover:bg-mastra-border-2 hover:bg-[#424242] active:bg-mastra-border-3 active:bg-[#3e3e3e] transition-colors absolute inset-y-0 z-10
|
|
715
|
+
*/function tJ(e,t){return e?Gmt(e)?D.createElement(e,t):e:null}function Gmt(e){return Ymt(e)||typeof e=="function"||Xmt(e)}function Ymt(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Xmt(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function Kmt(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=D.useState(()=>({current:qmt(t)})),[r,s]=D.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:o=>{s(o),e.onStateChange==null||e.onStateChange(o)}})),n.current}const Zmt=(e,t={})=>new oI({baseUrl:e||"",headers:e?t:{...t,"x-mastra-dev-playground":"true"}}),Cge=D.createContext(void 0),Jmt=({children:e,baseUrl:t,headers:n})=>{const r=Zmt(t,n);return f.jsx(Cge.Provider,{value:{client:r},children:e})},xp=()=>{const e=D.useContext(Cge);if(e===void 0)throw new Error("useMastraClient must be used within a MastraClientProvider");return e.client};function kge(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=kge(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Yn(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=kge(e))&&(r&&(r+=" "),r+=t);return r}const nJ=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rJ=Yn,wv=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return rJ(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const p=nJ(u)||nJ(d);return s[c][p]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,p]=u;return p===void 0||(c[d]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:p,...m}=u;return Object.entries(m).every(b=>{let[x,C]=b;return Array.isArray(C)?C.includes({...i,...a}[x]):{...i,...a}[x]===C})?[...c,d,p]:c},[]);return rJ(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},NL="-",Qmt=e=>{const t=tgt(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(NL);return a[0]===""&&a.length!==1&&a.shift(),Ege(a,t)||egt(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},Ege=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Ege(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(NL);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},sJ=/^\[(.+)\]$/,egt=e=>{if(sJ.test(e)){const t=sJ.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},tgt=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const s in n)cF(n[s],r,s,t);return r},cF=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:iJ(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(ngt(s)){cF(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{cF(o,iJ(t,i),n,r)})})},iJ=(e,t)=>{let n=e;return t.split(NL).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},ngt=e=>e.isThemeGetter,rgt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},uF="!",dF=":",sgt=dF.length,igt=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const i=[];let o=0,a=0,l=0,c;for(let b=0;b<s.length;b++){let x=s[b];if(o===0&&a===0){if(x===dF){i.push(s.slice(l,b)),l=b+sgt;continue}if(x==="/"){c=b;continue}}x==="["?o++:x==="]"?o--:x==="("?a++:x===")"&&a--}const u=i.length===0?s:s.substring(l),d=ogt(u),p=d!==u,m=c&&c>l?c-l:void 0;return{modifiers:i,hasImportantModifier:p,baseClassName:d,maybePostfixModifierPosition:m}};if(t){const s=t+dF,i=r;r=o=>o.startsWith(s)?i(o.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const s=r;r=i=>n({className:i,parseClassName:s})}return r},ogt=e=>e.endsWith(uF)?e.substring(0,e.length-1):e.startsWith(uF)?e.substring(1):e,agt=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const s=[];let i=[];return r.forEach(o=>{o[0]==="["||t[o]?(s.push(...i.sort(),o),i=[]):i.push(o)}),s.push(...i.sort()),s}},lgt=e=>({cache:rgt(e.cacheSize),parseClassName:igt(e),sortModifiers:agt(e),...Qmt(e)}),cgt=/\s+/,ugt=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i}=t,o=[],a=e.trim().split(cgt);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:p,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:x}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let C=!!x,S=r(C?b.substring(0,x):b);if(!S){if(!C){l=u+(l.length>0?" "+l:l);continue}if(S=r(b),!S){l=u+(l.length>0?" "+l:l);continue}C=!1}const A=i(p).join(":"),T=m?A+uF:A,N=T+S;if(o.includes(N))continue;o.push(N);const F=s(S,C);for(let M=0;M<F.length;++M){const I=F[M];o.push(T+I)}l=u+(l.length>0?" "+l:l)}return l};function dgt(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Dge(t))&&(r&&(r+=" "),r+=n);return r}const Dge=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Dge(e[r]))&&(n&&(n+=" "),n+=t);return n};function hgt(e,...t){let n,r,s,i=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return n=lgt(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=ugt(l,n);return s(l,u),u}return function(){return i(dgt.apply(null,arguments))}}const _s=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Age=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tge=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fgt=/^\d+\/\d+$/,pgt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mgt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ggt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ygt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bgt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vy=e=>fgt.test(e),cn=e=>!!e&&!Number.isNaN(Number(e)),Yh=e=>!!e&&Number.isInteger(Number(e)),A9=e=>e.endsWith("%")&&cn(e.slice(0,-1)),Gu=e=>pgt.test(e),vgt=()=>!0,xgt=e=>mgt.test(e)&&!ggt.test(e),_ge=()=>!1,wgt=e=>ygt.test(e),Sgt=e=>bgt.test(e),Cgt=e=>!Et(e)&&!Dt(e),kgt=e=>Sv(e,Mge,_ge),Et=e=>Age.test(e),em=e=>Sv(e,Fge,xgt),T9=e=>Sv(e,_gt,cn),oJ=e=>Sv(e,Nge,_ge),Egt=e=>Sv(e,Pge,Sgt),UE=e=>Sv(e,Oge,wgt),Dt=e=>Tge.test(e),a1=e=>Cv(e,Fge),Dgt=e=>Cv(e,Ngt),aJ=e=>Cv(e,Nge),Agt=e=>Cv(e,Mge),Tgt=e=>Cv(e,Pge),qE=e=>Cv(e,Oge,!0),Sv=(e,t,n)=>{const r=Age.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Cv=(e,t,n=!1)=>{const r=Tge.exec(e);return r?r[1]?t(r[1]):n:!1},Nge=e=>e==="position"||e==="percentage",Pge=e=>e==="image"||e==="url",Mge=e=>e==="length"||e==="size"||e==="bg-size",Fge=e=>e==="length",_gt=e=>e==="number",Ngt=e=>e==="family-name",Oge=e=>e==="shadow",Pgt=()=>{const e=_s("color"),t=_s("font"),n=_s("text"),r=_s("font-weight"),s=_s("tracking"),i=_s("leading"),o=_s("breakpoint"),a=_s("container"),l=_s("spacing"),c=_s("radius"),u=_s("shadow"),d=_s("inset-shadow"),p=_s("text-shadow"),m=_s("drop-shadow"),b=_s("blur"),x=_s("perspective"),C=_s("aspect"),S=_s("ease"),A=_s("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...N(),Dt,Et],M=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],j=()=>[Dt,Et,l],L=()=>[Vy,"full","auto",...j()],B=()=>[Yh,"none","subgrid",Dt,Et],z=()=>["auto",{span:["full",Yh,Dt,Et]},Yh,Dt,Et],G=()=>[Yh,"auto",Dt,Et],Q=()=>["auto","min","max","fr",Dt,Et],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...j()],U=()=>[Vy,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],V=()=>[e,Dt,Et],X=()=>[...N(),aJ,oJ,{position:[Dt,Et]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",Agt,kgt,{size:[Dt,Et]}],se=()=>[A9,a1,em],H=()=>["","none","full",c,Dt,Et],te=()=>["",cn,a1,em],oe=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[cn,A9,aJ,oJ],me=()=>["","none",b,Dt,Et],we=()=>["none",cn,Dt,Et],ge=()=>["none",cn,Dt,Et],je=()=>[cn,Dt,Et],Ae=()=>[Vy,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gu],breakpoint:[Gu],color:[vgt],container:[Gu],"drop-shadow":[Gu],ease:["in","out","in-out"],font:[Cgt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gu],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gu],shadow:[Gu],spacing:["px",cn],text:[Gu],"text-shadow":[Gu],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Vy,Et,Dt,C]}],container:["container"],columns:[{columns:[cn,Et,Dt,a]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Yh,"auto",Dt,Et]}],basis:[{basis:[Vy,"full","auto",a,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[cn,Vy,"auto","initial","none",Et]}],grow:[{grow:["",cn,Dt,Et]}],shrink:[{shrink:["",cn,Dt,Et]}],order:[{order:[Yh,"first","last","none",Dt,Et]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[a,"screen",...U()]}],"min-w":[{"min-w":[a,"screen","none",...U()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,a1,em]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Dt,T9]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",A9,Et]}],"font-family":[{font:[Dgt,Et,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Dt,Et]}],"line-clamp":[{"line-clamp":[cn,"none",Dt,T9]}],leading:[{leading:[i,...j()]}],"list-image":[{"list-image":["none",Dt,Et]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Dt,Et]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[cn,"from-font","auto",Dt,em]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[cn,"auto",Dt,Et]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Dt,Et]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Dt,Et]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yh,Dt,Et],radial:["",Dt,Et],conic:[Yh,Dt,Et]},Tgt,Egt]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[cn,Dt,Et]}],"outline-w":[{outline:["",cn,a1,em]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",u,qE,UE]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",d,qE,UE]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[cn,em]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",p,qE,UE]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[cn,Dt,Et]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[cn]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[Dt,Et]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[cn]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Dt,Et]}],filter:[{filter:["","none",Dt,Et]}],blur:[{blur:me()}],brightness:[{brightness:[cn,Dt,Et]}],contrast:[{contrast:[cn,Dt,Et]}],"drop-shadow":[{"drop-shadow":["","none",m,qE,UE]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",cn,Dt,Et]}],"hue-rotate":[{"hue-rotate":[cn,Dt,Et]}],invert:[{invert:["",cn,Dt,Et]}],saturate:[{saturate:[cn,Dt,Et]}],sepia:[{sepia:["",cn,Dt,Et]}],"backdrop-filter":[{"backdrop-filter":["","none",Dt,Et]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[cn,Dt,Et]}],"backdrop-contrast":[{"backdrop-contrast":[cn,Dt,Et]}],"backdrop-grayscale":[{"backdrop-grayscale":["",cn,Dt,Et]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[cn,Dt,Et]}],"backdrop-invert":[{"backdrop-invert":["",cn,Dt,Et]}],"backdrop-opacity":[{"backdrop-opacity":[cn,Dt,Et]}],"backdrop-saturate":[{"backdrop-saturate":[cn,Dt,Et]}],"backdrop-sepia":[{"backdrop-sepia":["",cn,Dt,Et]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Dt,Et]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[cn,"initial",Dt,Et]}],ease:[{ease:["linear","initial",S,Dt,Et]}],delay:[{delay:[cn,Dt,Et]}],animate:[{animate:["none",A,Dt,Et]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,Dt,Et]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:je()}],"skew-x":[{"skew-x":je()}],"skew-y":[{"skew-y":je()}],transform:[{transform:[Dt,Et,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ae()}],"translate-x":[{"translate-x":Ae()}],"translate-y":[{"translate-y":Ae()}],"translate-z":[{"translate-z":Ae()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Dt,Et]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Dt,Et]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[cn,a1,em,T9]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Mgt=hgt(Pgt);function He(...e){return Mgt(Yn(e))}const HD=wv("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Gs=D.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?op:"button";return f.jsx(o,{className:He(HD({variant:t,size:n,className:e})),ref:i,...s})});Gs.displayName="Button";const PL=WR,kv=GR,Ev=YR,Wg=D.forwardRef(({className:e,sideOffset:t=4,...n},r)=>f.jsx(Qse,{children:f.jsx(MS,{ref:r,sideOffset:t,className:He("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Wg.displayName=MS.displayName;const Ff=D.forwardRef(({children:e,tooltip:t,side:n="bottom",className:r,...s},i)=>f.jsx(PL,{children:f.jsxs(kv,{children:[f.jsx(Ev,{asChild:!0,children:f.jsxs(Gs,{variant:"ghost",size:"icon",...s,className:He("size-6 p-1",r),ref:i,children:[e,f.jsx("span",{className:"sr-only",children:t})]})}),f.jsx(Wg,{side:n,children:t})]})}));Ff.displayName="TooltipIconButton";const Rge=D.forwardRef(({className:e,...t},n)=>f.jsx(lae,{ref:n,className:He("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Rge.displayName=lae.displayName;const Fgt=D.forwardRef(({className:e,...t},n)=>f.jsx(cae,{ref:n,className:He("aspect-square h-full w-full",e),...t}));Fgt.displayName=cae.displayName;const Ige=D.forwardRef(({className:e,...t},n)=>f.jsx(uae,{ref:n,className:He("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ige.displayName=uae.displayName;const Ogt=({alt:e,src:t,...n})=>{const[r,s]=D.useState(!1);return D.useEffect(()=>{s(!1)},[t]),r||!t?f.jsxs("div",{children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",width:"150",height:"150",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})}),f.jsx("p",{className:"text-xs italic text-muted-foreground -mt-[0.625rem] mb-[0.625rem]",children:"Image link is broken"})]}):f.jsx("img",{src:t,alt:e,...n,onError:()=>{s(!0)}})},Rgt=mqe({style:lWe.coldarkDark,customStyle:{margin:0,backgroundColor:"black"}}),Igt=()=>f.jsx(THe,{remarkPlugins:[Ale],className:"aui-md",components:$gt}),jgt=D.memo(Igt),Lgt=({language:e,code:t})=>{const{isCopied:n,copyToClipboard:r}=Bgt(),s=()=>{!t||n||r(t)};return f.jsxs("div",{style:{background:"hsl(0 0% 100% / 0.06)",borderTopRightRadius:"0.5rem",borderTopLeftRadius:"0.5rem",marginTop:"0.5rem",border:"1px solid hsl(0 0% 20.4%)",borderBottom:"none"},className:"flex items-center justify-between gap-4 px-4 py-2 text-sm font-semibold text-white",children:[f.jsx("span",{className:"lowercase [&>span]:text-xs",children:e}),f.jsx(Ff,{tooltip:"Copy",onClick:s,children:f.jsxs("span",{className:"grid",children:[f.jsx("span",{style:{gridArea:"1/1"},className:He("transition-transform",n?"scale-100":"scale-0"),children:f.jsx(Vg,{size:14})},"checkmark"),f.jsx("span",{style:{gridArea:"1/1"},className:He("transition-transform",n?"scale-0":"scale-100"),children:f.jsx(LS,{size:14})},"copy")]})})]})},Bgt=({copiedDuration:e=1500}={})=>{const[t,n]=D.useState(!1);return{isCopied:t,copyToClipboard:s=>{s&&navigator.clipboard.writeText(s).then(()=>{n(!0),setTimeout(()=>n(!1),e)})}}},$gt=yHe({h1:({className:e,...t})=>f.jsx("h1",{className:He("mb-8 scroll-m-20 text-4xl font-extrabold tracking-tight last:mb-0",e),...t,style:{marginBottom:"2rem"}}),h2:({className:e,...t})=>f.jsx("h2",{className:He("mb-4 mt-8 scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"2rem"}}),h3:({className:e,...t})=>f.jsx("h3",{className:He("scroll-m-20 text-2xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1.5rem"}}),h4:({className:e,...t})=>f.jsx("h4",{className:He("scroll-m-20 text-xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1.5rem"}}),h5:({className:e,...t})=>f.jsx("h5",{className:He("font-semibold first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1rem"}}),h6:({className:e,...t})=>f.jsx("h6",{className:He("font-semibold first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1rem"}}),p:({className:e,...t})=>f.jsx("p",{className:He("leading-7 first:mt-0 last:mb-0",e),...t}),a:({className:e,...t})=>f.jsx("a",{className:He("text-primary font-medium underline underline-offset-4",e),...t}),blockquote:({className:e,...t})=>f.jsx("blockquote",{className:He("border-l-2 pl-6 italic",e),...t}),ul:({className:e,...t})=>f.jsx("ul",{className:He("my-5 ml-6 list-disc [&>li]:mt-2",e),...t}),ol:({className:e,...t})=>f.jsx("ol",{className:He("my-5 ml-6 list-decimal [&>li]:mt-2",e),...t}),hr:({className:e,...t})=>f.jsx("hr",{className:He("my-5 border-b",e),...t}),table:({className:e,...t})=>f.jsx("table",{className:He("my-5 w-full border-separate border-spacing-0 overflow-y-auto",e),...t}),th:({className:e,...t})=>f.jsx("th",{className:He("bg-muted px-4 py-2 text-left font-bold first:rounded-tl-lg last:rounded-tr-lg [&[align=center]]:text-center [&[align=right]]:text-right",e),...t}),td:({className:e,...t})=>f.jsx("td",{className:He("border-b border-l px-4 py-2 text-left last:border-r [&[align=center]]:text-center [&[align=right]]:text-right",e),...t}),tr:({className:e,...t})=>f.jsx("tr",{className:He("m-0 border-b p-0 first:border-t [&:last-child>td:first-child]:rounded-bl-lg [&:last-child>td:last-child]:rounded-br-lg",e),...t}),sup:({className:e,...t})=>f.jsx("sup",{className:He("[&>a]:text-xs [&>a]:no-underline",e),...t}),pre:({className:e,...t})=>f.jsx("pre",{...t,style:{borderBottomRightRadius:"0.5rem",borderBottomLeftRadius:"0.5rem",background:"transparent",fontSize:"0.875rem",marginBottom:"0.5rem",border:"1px solid hsl(0 0% 20.4%)"},className:He("overflow-x-auto p-4 text-white",e)}),code:function({className:t,...n}){const r=nle();return f.jsxs("pre",{style:{fontSize:"0.875rem",display:"inline"},children:[f.jsx("code",{className:He(!r&&"bg-muted rounded border font-semibold",t),...n,style:{fontWeight:"400",paddingBlock:r?0:"0.1em",paddingInline:r?0:"0.3em"}})," "]})},CodeHeader:Lgt,SyntaxHighlighter:Rgt,img:Ogt}),zgt={sm:"[&>svg]:h-icon-sm [&>svg]:w-icon-sm",default:"[&>svg]:h-icon-default [&>svg]:w-icon-default",lg:"[&>svg]:h-icon-lg [&>svg]:w-icon-lg"},Nt=({children:e,className:t,size:n="default",...r})=>f.jsx("span",{className:Yn("block",zgt[n],t),...r,children:e}),lJ={default:"text-icon3",success:"text-accent1",error:"text-accent2",info:"text-accent3"},vr=({icon:e,variant:t="default",className:n,children:r,...s})=>f.jsxs("div",{className:Yn("bg-surface4 text-ui-sm gap-md h-badge-default inline-flex items-center rounded-md",e?"pl-md pr-1.5":"px-1.5",e||t==="default"?"text-icon5":lJ[t],n),...s,children:[e&&f.jsx("span",{className:lJ[t],children:f.jsx(Nt,{children:e})}),r]}),sh=e=>f.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 15C10.3565 15 12.137 14.2625 13.4497 12.9497C14.7625 11.637 15.5 9.85652 15.5 8C15.5 6.14348 14.7625 4.36301 13.4497 3.05025C12.137 1.7375 10.3565 1 8.5 1C6.64348 1 4.86301 1.7375 3.55025 3.05025C2.2375 4.36301 1.5 6.14348 1.5 8C1.5 9.85652 2.2375 11.637 3.55025 12.9497C4.86301 14.2625 6.64348 15 8.5 15ZM5.621 10.879L4.611 11.889C3.84179 11.1198 3.31794 10.1398 3.1057 9.07291C2.89346 8.00601 3.00236 6.90013 3.41864 5.89512C3.83491 4.89012 4.53986 4.03112 5.44434 3.42676C6.34881 2.8224 7.41219 2.49983 8.5 2.49983C9.58781 2.49983 10.6512 2.8224 11.5557 3.42676C12.4601 4.03112 13.1651 4.89012 13.5814 5.89512C13.9976 6.90013 14.1065 8.00601 13.8943 9.07291C13.6821 10.1398 13.1582 11.1198 12.389 11.889L11.379 10.879C11.1004 10.6003 10.7696 10.3792 10.4055 10.2284C10.0414 10.0776 9.6511 9.99995 9.257 10H7.743C7.3489 9.99995 6.95865 10.0776 6.59455 10.2284C6.23045 10.3792 5.89963 10.6003 5.621 10.879Z",fill:"currentColor"}),f.jsx("path",{d:"M8.5 4C7.96957 4 7.46086 4.21071 7.08579 4.58579C6.71071 4.96086 6.5 5.46957 6.5 6V6.5C6.5 7.03043 6.71071 7.53914 7.08579 7.91421C7.46086 8.28929 7.96957 8.5 8.5 8.5C9.03043 8.5 9.53914 8.28929 9.91421 7.91421C10.2893 7.53914 10.5 7.03043 10.5 6.5V6C10.5 5.46957 10.2893 4.96086 9.91421 4.58579C9.53914 4.21071 9.03043 4 8.5 4Z",fill:"currentColor"})]}),Hgt=e=>f.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M63.0002 0.968262C28.5152 0.968262 0.55957 15.6484 0.55957 33.7573V51.2428C0.55957 69.3517 28.5152 84.0319 63.0002 84.0319C97.4853 84.0319 125.441 69.3517 125.441 51.2428V33.7573C125.441 15.6484 97.4853 0.968262 63.0002 0.968262Z",stroke:"#707070"}),f.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636V49.8363C6.67773 65.0322 31.894 77.351 62.9998 77.351C94.1055 77.351 119.322 65.0322 119.322 49.8363V35.1636Z",fill:"#2E2E2E",fillOpacity:"0.9"}),f.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636M119.322 35.1636C119.322 19.9677 94.1055 7.64893 62.9998 7.64893C31.894 7.64893 6.67773 19.9677 6.67773 35.1636M119.322 35.1636V49.8363C119.322 65.0322 94.1055 77.351 62.9998 77.351C31.894 77.351 6.67773 65.0322 6.67773 49.8363V35.1636",stroke:"#424242"}),f.jsxs("g",{clipPath:"url(#clip0_21421_19519)",children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.5383 47.0955C45.0714 50.3122 53.9322 52.1193 63.1714 52.1193C72.4106 52.1193 81.2714 50.3122 87.8045 47.0955C94.3376 43.8787 98.0078 39.5159 98.0078 34.9668C98.0078 30.4177 94.3376 26.0549 87.8045 22.8381C81.2714 19.6214 72.4106 17.8143 63.1714 17.8143C53.9322 17.8143 45.0714 19.6214 38.5383 22.8381C32.0052 26.0549 28.3349 30.4177 28.3349 34.9668C28.3349 39.5159 32.0052 43.8787 38.5383 47.0955ZM42.9089 34.9668L35.8005 34.9668C35.8004 32.3013 37.4056 29.6956 40.4132 27.4793C43.4207 25.263 47.6956 23.5355 52.6971 22.5154C57.6986 21.4954 63.2022 21.2285 68.5118 21.7485C73.8214 22.2685 78.6986 23.552 82.5266 25.4368C86.3546 27.3216 88.9615 29.723 90.0176 32.3373C91.0737 34.9517 90.5316 37.6614 88.4599 40.1241C86.3881 42.5867 82.8797 44.6915 78.3784 46.1723C73.8771 47.6532 68.585 48.4435 63.1714 48.4435V44.9435C63.1717 43.9778 62.7855 43.0215 62.035 42.1293C61.2845 41.2372 60.1843 40.4265 58.7973 39.7438L53.4695 37.1205C52.0828 36.4376 50.4364 35.8959 48.6244 35.5263C46.8124 35.1568 44.8702 34.9667 42.9089 34.9668Z",fill:"#A9A9A9"}),f.jsx("path",{d:"M77.2474 28.0361C75.3808 27.1171 72.8492 26.6007 70.2094 26.6007C67.5696 26.6007 65.038 27.1171 63.1714 28.0361L61.4119 28.9025C59.5453 29.8215 58.4966 31.068 58.4966 32.3678C58.4966 33.6676 59.5453 34.9141 61.4119 35.8331C63.2785 36.7522 65.8101 37.2685 68.4499 37.2685C71.0897 37.2685 73.6213 36.7522 75.4879 35.8331L77.2474 34.9668C79.114 34.0477 80.1627 32.8012 80.1627 31.5015C80.1627 30.2017 79.114 28.9552 77.2474 28.0361Z",fill:"#A9A9A9"})]}),f.jsx("defs",{children:f.jsx("clipPath",{id:"clip0_21421_19519",children:f.jsx("rect",{width:"62.7591",height:"62.7591",fill:"white",transform:"matrix(0.897148 0.441731 -0.897148 0.441731 63.1714 7.24365)"})})})]}),Vgt=e=>f.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M11.0313 7.97578C11.0313 9.34436 9.92183 10.4538 8.55324 10.4538C7.18466 10.4538 6.0752 9.34436 6.0752 7.97578C6.0752 6.60719 7.18466 5.49773 8.55324 5.49773C9.92183 5.49773 11.0313 6.60719 11.0313 7.97578ZM11.0313 7.97578H14.573",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round"}),f.jsx("path",{d:"M12.967 4.46154C11.9273 3.14431 10.3165 2.29883 8.50814 2.29883C5.37277 2.29883 2.83105 4.84055 2.83105 7.97591C2.83105 11.1113 5.37277 13.653 8.50814 13.653C10.3165 13.653 11.9273 12.8075 12.967 11.4903",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round"})]}),ML=e=>f.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99982 2.0625C3.8252 2.0625 2.06232 3.82538 2.06232 6C2.06232 8.17462 3.8252 9.9375 5.99982 9.9375C8.17444 9.9375 9.93732 8.17462 9.93732 6C9.93732 3.82538 8.17444 2.0625 5.99982 2.0625ZM0.937317 6C0.937317 3.20406 3.20388 0.9375 5.99982 0.9375C8.79576 0.9375 11.0623 3.20406 11.0623 6C11.0623 8.79594 8.79576 11.0625 5.99982 11.0625C3.20388 11.0625 0.937317 8.79594 0.937317 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.97865 4.57004C8.22604 4.75795 8.27426 5.11082 8.08635 5.35821L6.05486 8.03279C5.94873 8.17251 5.78348 8.25471 5.60803 8.25505C5.43257 8.2554 5.267 8.17385 5.16032 8.03454L3.80937 6.27034C3.6205 6.02369 3.66733 5.67063 3.91398 5.48176C4.16063 5.29288 4.51369 5.33972 4.70257 5.58637L5.6051 6.76498L7.19048 4.67774C7.37839 4.43036 7.73126 4.38213 7.97865 4.57004Z",fill:"currentColor"})]}),Ugt=e=>f.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M4.60059 6.30005L8.00098 9.70005L11.3996 6.30142",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),FL=e=>f.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99982 2.0625C3.8252 2.0625 2.06232 3.82538 2.06232 6C2.06232 8.17462 3.8252 9.9375 5.99982 9.9375C8.17444 9.9375 9.93732 8.17462 9.93732 6C9.93732 3.82538 8.17444 2.0625 5.99982 2.0625ZM0.937317 6C0.937317 3.20406 3.20388 0.9375 5.99982 0.9375C8.79576 0.9375 11.0623 3.20406 11.0623 6C11.0623 8.79594 8.79576 11.0625 5.99982 11.0625C3.20388 11.0625 0.937317 8.79594 0.937317 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.89741 4.10293C8.11707 4.32261 8.11706 4.67877 7.89738 4.89843L6.79517 6.00058L7.8962 7.10155C8.11588 7.32122 8.11589 7.67737 7.89623 7.89705C7.67656 8.11673 7.32041 8.11674 7.10073 7.89707L5.99965 6.79605L4.89856 7.89707C4.67889 8.11673 4.32273 8.11672 4.10307 7.89704C3.88341 7.67737 3.88342 7.32121 4.10309 7.10155L5.20413 6.00058L4.10191 4.89843C3.88224 4.67877 3.88223 4.32262 4.10189 4.10294C4.32155 3.88326 4.67771 3.88325 4.89738 4.10292L5.99965 5.20511L7.10191 4.10291C7.32159 3.88325 7.67774 3.88326 7.89741 4.10293Z",fill:"currentColor"})]}),qgt=e=>f.jsx("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.941406 2.831V3.75745C0.941406 4.27885 1.35491 4.76002 2.05273 5.14711C2.10389 5.17549 2.15658 5.20337 2.21074 5.23071C3.23028 5.74546 4.77322 6.07356 6.50007 6.07356C8.31866 6.07356 9.93328 5.70967 10.9474 5.14711C11.6453 4.76002 12.0587 4.27886 12.0587 3.75745V2.831C12.0587 1.55185 9.57003 0.514893 6.50007 0.514893C3.4301 0.514893 0.941406 1.55185 0.941406 2.831ZM1.02052 6.14518C0.968505 6.27247 0.941406 6.40331 0.941406 6.53678V7.46322C0.941406 7.98463 1.35491 8.46579 2.05273 8.85289C3.06686 9.41542 4.68148 9.77933 6.50007 9.77933C8.22692 9.77933 9.76986 9.45128 10.7894 8.93645C10.8436 8.90912 10.8962 8.88124 10.9474 8.85289C11.6453 8.46579 12.0587 7.98462 12.0587 7.46322V6.53678C12.0587 6.40331 12.0316 6.27248 11.9796 6.14519C11.664 6.35469 11.3187 6.53063 10.9652 6.67795C9.75207 7.18337 8.17267 7.46322 6.50007 7.46322C4.82747 7.46322 3.24803 7.18337 2.03502 6.67795C1.68142 6.53063 1.3362 6.35469 1.02052 6.14518ZM1.02052 9.85095C0.968505 9.97824 0.941406 10.1091 0.941406 10.2426V11.169C0.941406 12.4481 3.4301 13.4851 6.50007 13.4851C9.57003 13.4851 12.0587 12.4481 12.0587 11.169V10.2426C12.0587 10.1091 12.0316 9.97824 11.9796 9.85095C11.664 10.0605 11.3187 10.2364 10.9652 10.3837C9.75207 10.8891 8.17267 11.169 6.50007 11.169C4.82747 11.169 3.24803 10.8891 2.03502 10.3837C1.68142 10.2364 1.3362 10.0605 1.02052 9.85095Z",fill:"currentColor"})}),Wgt=e=>f.jsxs("svg",{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M6.83531 7.0062C6.64515 7.35069 6.15 7.35069 5.95984 7.0062L2.99029 1.62664C2.7855 1.25565 3.10614 0.814077 3.5223 0.893977L6.30195 1.42765C6.36421 1.43961 6.42818 1.43961 6.49044 1.42766L9.27301 0.893806C9.68915 0.813965 10.0097 1.25552 9.80495 1.62648L6.83531 7.0062Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.77553 6.93249C4.70399 6.80288 4.52254 6.79459 4.4558 6.92674C4.30167 7.23196 4.21484 7.57697 4.21484 7.94226C4.21484 9.18814 5.22483 10.1981 6.4707 10.1981C7.71658 10.1981 8.72656 9.18814 8.72656 7.94226C8.72656 7.51818 8.60954 7.12143 8.40603 6.78254C8.33262 6.66031 8.15949 6.67411 8.09059 6.79894L7.70941 7.48947C7.13892 8.52294 5.65347 8.52293 5.08299 7.48947L4.77553 6.93249ZM5.56313 5.8764C5.46196 5.92091 5.42707 6.04354 5.48048 6.1403L5.95846 7.0062C6.14862 7.35069 6.64377 7.35069 6.83393 7.0062L7.33905 6.09115C7.39467 5.99039 7.35417 5.86275 7.2461 5.8232C7.00431 5.7347 6.74315 5.6864 6.4707 5.6864C6.14785 5.6864 5.84083 5.75423 5.56313 5.8764Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.01974 3.49407C4.17993 3.78426 4.54405 3.88541 4.85312 3.76562C5.35484 3.57118 5.90031 3.46453 6.4707 3.46453C7.0005 3.46453 7.50881 3.55654 7.98052 3.72545C8.28711 3.83523 8.64168 3.73133 8.79906 3.44623C8.96234 3.15043 8.85109 2.77497 8.5364 2.652C7.89621 2.40184 7.19949 2.26453 6.4707 2.26453C5.69013 2.26453 4.94634 2.42205 4.2694 2.70703C3.96395 2.83562 3.85958 3.20392 4.01974 3.49407ZM9.9461 4.47216C9.81565 4.70848 9.85645 4.99948 10.0211 5.21339C10.6026 5.96887 10.9484 6.91518 10.9484 7.94226C10.9484 10.4152 8.94369 12.42 6.4707 12.42C3.99772 12.42 1.99297 10.4152 1.99297 7.94226C1.99297 6.96004 2.30923 6.05168 2.84547 5.31345C3.0006 5.09989 3.03605 4.81591 2.90848 4.58482C2.70986 4.22501 2.22216 4.15342 1.97124 4.47893C1.2324 5.43738 0.792968 6.6385 0.792968 7.94226C0.792969 11.078 3.33498 13.62 6.4707 13.62C9.60643 13.62 12.1484 11.078 12.1484 7.94226C12.1484 6.58193 11.67 5.33333 10.8723 4.35553C10.6173 4.04298 10.141 4.11901 9.9461 4.47216Z",fill:"currentColor"})]}),Ggt=e=>f.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M8.5 3V13",stroke:"currentColor",strokeWidth:"0.5"})}),Ygt=e=>f.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("g",{clipPath:"url(#clip0_21999_22095)",children:f.jsx("path",{d:"M7.5 0.75C3.6325 0.75 0.5 3.8825 0.5 7.75C0.5 10.8475 2.50375 13.4637 5.28625 14.3912C5.63625 14.4525 5.7675 14.2425 5.7675 14.0587C5.7675 13.8925 5.75875 13.3412 5.75875 12.755C4 13.0787 3.545 12.3262 3.405 11.9325C3.32625 11.7312 2.985 11.11 2.6875 10.9437C2.4425 10.8125 2.0925 10.4887 2.67875 10.48C3.23 10.4712 3.62375 10.9875 3.755 11.1975C4.385 12.2562 5.39125 11.9587 5.79375 11.775C5.855 11.32 6.03875 11.0137 6.24 10.8387C4.6825 10.6637 3.055 10.06 3.055 7.3825C3.055 6.62125 3.32625 5.99125 3.7725 5.50125C3.7025 5.32625 3.4575 4.60875 3.8425 3.64625C3.8425 3.64625 4.42875 3.4625 5.7675 4.36375C6.3275 4.20625 6.9225 4.1275 7.5175 4.1275C8.1125 4.1275 8.7075 4.20625 9.2675 4.36375C10.6062 3.45375 11.1925 3.64625 11.1925 3.64625C11.5775 4.60875 11.3325 5.32625 11.2625 5.50125C11.7087 5.99125 11.98 6.6125 11.98 7.3825C11.98 10.0687 10.3438 10.6637 8.78625 10.8387C9.04 11.0575 9.25875 11.4775 9.25875 12.1337C9.25875 13.07 9.25 13.8225 9.25 14.0587C9.25 14.2425 9.38125 14.4612 9.73125 14.3912C11.1209 13.9221 12.3284 13.029 13.1839 11.8377C14.0393 10.6463 14.4996 9.21668 14.5 7.75C14.5 3.8825 11.3675 0.75 7.5 0.75Z",fill:"currentColor"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"clip0_21999_22095",children:f.jsx("rect",{width:"14",height:"14",fill:"currentColor",transform:"translate(0.5 0.75)"})})})]}),Xgt=e=>f.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M7.07303 7.39921C6.65882 7.39921 6.32303 7.735 6.32303 8.14921C6.32303 8.56343 6.65882 8.89921 7.07303 8.89921H7.75V10.6187C7.75 11.0329 8.08579 11.3687 8.5 11.3687C8.91421 11.3687 9.25 11.0329 9.25 10.6187V8.14921C9.25 7.735 8.91421 7.39921 8.5 7.39921H7.07303Z",fill:"currentColor"}),f.jsx("path",{d:"M8.50309 4.72995C7.9971 4.72995 7.58691 5.14014 7.58691 5.64613C7.58691 6.15212 7.9971 6.56231 8.50309 6.56231C9.00908 6.56231 9.41927 6.15212 9.41927 5.64613C9.41927 5.14014 9.00908 4.72995 8.50309 4.72995Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.75293C5.04984 1.75293 2.25293 4.54984 2.25293 8C2.25293 11.4502 5.04984 14.2471 8.5 14.2471C11.9502 14.2471 14.7471 11.4502 14.7471 8C14.7471 4.54984 11.9502 1.75293 8.5 1.75293ZM3.75293 8C3.75293 5.37827 5.87827 3.25293 8.5 3.25293C11.1218 3.25293 13.2471 5.37826 13.2471 8C13.2471 10.6218 11.1218 12.7471 8.5 12.7471C5.87826 12.7471 3.75293 10.6218 3.75293 8Z",fill:"currentColor"})]}),jge=e=>f.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M3.8674 9.19968L4.14554 10.8649C4.23965 11.4283 4.75254 11.8237 5.32137 11.7713L5.58252 11.7472C6.56555 11.6567 7.43309 12.3868 7.51181 13.3708L7.59308 14.3867C7.60422 14.5259 7.71868 14.6342 7.85825 14.6376L9.91053 14.6876C10.1066 14.6924 10.2434 14.4948 10.17 14.3129L8.90452 11.1782C8.80956 10.9429 8.65085 10.7389 8.44626 10.5889L7.90134 10.1895C7.70604 10.0464 7.55223 9.85411 7.45759 9.63124C7.15011 8.90712 6.6579 7.71234 6.37054 6.88944C6.19204 6.3783 5.79931 6.29158 5.45492 6.21553C4.98179 6.11106 4.5999 6.02673 4.99001 4.88985C5.66408 2.92541 8.06015 2.07904 10.6601 3.33088C12.6488 4.2884 13.1187 6.35416 13.0328 7.58237C13.0297 7.62768 13.0214 7.67186 13.0094 7.71566C12.8829 8.17534 12.368 8.40491 11.9415 8.19169L10.3022 7.37201C10.2069 7.32439 10.0927 7.33657 10.0096 7.40322L8.64809 8.49559C8.55405 8.57104 8.52072 8.69931 8.56615 8.811L10.8995 14.5478C10.9404 14.6483 11.0369 14.715 11.1454 14.7177L12.0572 14.7399C12.2581 14.7448 12.3951 14.5382 12.3124 14.3551L11.8681 13.3706C11.4211 12.3803 11.6047 11.2192 12.3354 10.4151L13.4616 9.17575C13.7473 8.86125 13.9224 8.46187 13.9599 8.03858L13.9763 7.85359C14.2866 4.35298 11.377 1.41272 7.87336 1.68639C6.03919 1.82965 4.45399 3.02228 3.80807 4.74492L3.70275 5.02579C3.5828 5.34571 3.62741 5.70411 3.82213 5.98485L3.88946 6.08192C4.12183 6.41695 4.0958 6.86726 3.82637 7.17328L3.06705 8.03572C2.96261 8.15435 2.98058 8.33664 3.10617 8.43259L3.66059 8.85617C3.77064 8.94026 3.84458 9.06307 3.8674 9.19968Z",fill:"currentColor"})}),Kgt=e=>f.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12V11C3 10.6022 3.15804 10.2206 3.43934 9.93934C3.72064 9.65804 4.10218 9.5 4.5 9.5C4.89782 9.5 5.27936 9.65804 5.56066 9.93934C5.84196 10.2206 6 10.6022 6 11V12C6 12.3978 5.84196 12.7794 5.56066 13.0607C5.27936 13.342 4.89782 13.5 4.5 13.5C4.10218 13.5 3.72064 13.342 3.43934 13.0607C3.15804 12.7794 3 12.3978 3 12ZM7 12V8.5C7 8.10218 7.15804 7.72064 7.43934 7.43934C7.72064 7.15804 8.10218 7 8.5 7C8.89782 7 9.27936 7.15804 9.56066 7.43934C9.84196 7.72064 10 8.10218 10 8.5V12C10 12.3978 9.84196 12.7794 9.56066 13.0607C9.27936 13.342 8.89782 13.5 8.5 13.5C8.10218 13.5 7.72064 13.342 7.43934 13.0607C7.15804 12.7794 7 12.3978 7 12ZM11 12V4C11 3.60218 11.158 3.22064 11.4393 2.93934C11.7206 2.65804 12.1022 2.5 12.5 2.5C12.8978 2.5 13.2794 2.65804 13.5607 2.93934C13.842 3.22064 14 3.60218 14 4V12C14 12.3978 13.842 12.7794 13.5607 13.0607C13.2794 13.342 12.8978 13.5 12.5 13.5C12.1022 13.5 11.7206 13.342 11.4393 13.0607C11.158 12.7794 11 12.3978 11 12Z",fill:"currentColor"})}),Zgt=e=>f.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M5.25684 12.6387L10.4003 3.36133H11.7432L6.5997 12.6387H5.25684Z",fill:"currentColor"})}),Bd=e=>f.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5605 1.42351C8.0791 0.904904 8.92215 0.906157 9.4395 1.42351L10.6922 2.67617C11.2108 3.19477 11.2095 4.03782 10.6922 4.55517L9.4395 5.80783C8.9209 6.32643 8.07785 6.32518 7.5605 5.80783L6.30784 4.55517C5.78923 4.03656 5.79049 3.19352 6.30784 2.67617L7.5605 1.42351ZM3.17618 5.80783C3.69478 5.28923 4.53782 5.29048 5.05517 5.80783L6.30784 7.0605C6.82644 7.5791 6.82519 8.42214 6.30784 8.93949L5.05517 10.1922C4.53657 10.7108 3.69353 10.7095 3.17618 10.1922L1.92351 8.93949C1.40491 8.42089 1.40616 7.57785 1.92351 7.0605L3.17618 5.80783ZM11.9448 5.80783C12.4634 5.28923 13.3065 5.29048 13.8238 5.80783L15.0765 7.0605C15.5951 7.5791 15.5938 8.42214 15.0765 8.93949L13.8238 10.1922C13.3052 10.7108 12.4622 10.7095 11.9448 10.1922L10.6922 8.93949C10.1736 8.42089 10.1748 7.57785 10.6922 7.0605L11.9448 5.80783ZM7.5605 10.1922C8.0791 9.67355 8.92215 9.67481 9.4395 10.1922L10.6922 11.4448C11.2108 11.9634 11.2095 12.8065 10.6922 13.3238L9.4395 14.5765C8.9209 15.0951 8.07785 15.0938 7.5605 14.5765L6.30784 13.3238C5.78923 12.8052 5.79049 11.9622 6.30784 11.4448L7.5605 10.1922Z",fill:"currentColor"})}),hF=e=>f.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M3.0498 3.17139V7.95137M6.91346 12.8737L4.04984 12.8738C3.49754 12.8738 3.0498 12.4261 3.0498 11.8738V7.95137M3.0498 7.95137L6.85968 7.95125",stroke:"currentColor",strokeLinecap:"round"}),f.jsx("path",{d:"M6.59668 3.12631L13.9507 3.12631",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),f.jsx("path",{d:"M10.293 7.95099L13.8072 7.95099",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),f.jsx("path",{d:"M10.293 12.8025L13.8072 12.8025",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),wp=e=>f.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.24388 2.4018C6.24388 2.0394 6.53767 1.74561 6.90008 1.74561H10.0991C10.4614 1.74561 10.7553 2.0394 10.7553 2.4018V4.57546C10.7553 4.93787 10.4614 5.23166 10.0991 5.23166H9.31982V7.35469L10.0033 9.22664C9.90442 9.20146 9.80035 9.1761 9.6915 9.14986L9.62652 9.13422C9.30473 9.05687 8.92256 8.96501 8.61993 8.84491C8.5819 8.82981 8.54147 8.81292 8.49957 8.79391C8.45767 8.81292 8.41724 8.82981 8.3792 8.84491C8.07657 8.96501 7.6944 9.05687 7.37261 9.13422L7.30763 9.14986C7.19879 9.1761 7.09471 9.20146 6.99577 9.22664L7.67932 7.35469V5.23166H6.90008C6.53767 5.23166 6.24388 4.93787 6.24388 4.57546V2.4018ZM6.99577 9.22664C6.99577 9.22664 6.99578 9.22664 6.99577 9.22664L6.43283 10.7683H6.81806C7.18047 10.7683 7.47426 11.0622 7.47426 11.4245V13.5982C7.47426 13.9606 7.18047 14.2544 6.81806 14.2544H3.61909C3.25668 14.2544 2.96289 13.9606 2.96289 13.5982V11.4245C2.96289 11.0622 3.25668 10.7683 3.61909 10.7683H4.26617C4.2921 10.4663 4.32783 10.1494 4.37744 9.85171C4.43762 9.49063 4.52982 9.08135 4.68998 8.76102C4.93975 8.2615 5.44743 8.01751 5.7771 7.88788C6.14684 7.74249 6.57537 7.63889 6.92317 7.55505C7.24707 7.47696 7.49576 7.41679 7.67932 7.35469L6.99577 9.22664ZM6.43283 10.7683L6.99577 9.22664C6.75846 9.28705 6.55067 9.34646 6.37745 9.41458C6.22784 9.47341 6.1623 9.51712 6.14023 9.53254C6.09752 9.63631 6.04409 9.83055 5.99562 10.1214C5.96201 10.3231 5.93498 10.5439 5.91341 10.7683H6.43283ZM10.0033 9.22664L9.31982 7.35469C9.50338 7.41679 9.75206 7.47696 10.076 7.55505C10.4238 7.63889 10.8523 7.74249 11.2221 7.88788C11.5517 8.01751 12.0594 8.2615 12.3091 8.76102C12.4693 9.08135 12.5615 9.49063 12.6217 9.85171C12.6713 10.1494 12.707 10.4663 12.733 10.7683H13.38C13.7424 10.7683 14.0362 11.0622 14.0362 11.4245V13.5982C14.0362 13.9606 13.7424 14.2544 13.38 14.2544H10.1811C9.81867 14.2544 9.52488 13.9606 9.52488 13.5982V11.4245C9.52488 11.0622 9.81867 10.7683 10.1811 10.7683H10.5663L10.0033 9.22664ZM10.0033 9.22664L10.5663 10.7683H11.0857C11.0642 10.5439 11.0372 10.3231 11.0035 10.1214C10.9551 9.83055 10.9016 9.63631 10.8589 9.53254C10.8369 9.51712 10.7713 9.47341 10.6217 9.41458C10.4485 9.34646 10.2407 9.28705 10.0033 9.22664Z",fill:"currentColor"})}),Jgt=e=>f.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636V49.8363C6.67773 65.0322 31.894 77.351 62.9998 77.351C94.1055 77.351 119.322 65.0322 119.322 49.8363V35.1636Z",fill:"#2E2E2E",fillOpacity:"0.9"}),f.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636M119.322 35.1636C119.322 19.9677 94.1055 7.64893 62.9998 7.64893C31.894 7.64893 6.67773 19.9677 6.67773 35.1636M119.322 35.1636V49.8363C119.322 65.0322 94.1055 77.351 62.9998 77.351C31.894 77.351 6.67773 65.0322 6.67773 49.8363V35.1636",stroke:"#424242"}),f.jsx("path",{d:"M63.0002 0.968262C28.5152 0.968262 0.55957 15.6484 0.55957 33.7573V51.2428C0.55957 69.3517 28.5152 84.0319 63.0002 84.0319C97.4853 84.0319 125.441 69.3517 125.441 51.2428V33.7573C125.441 15.6484 97.4853 0.968262 63.0002 0.968262Z",stroke:"#707070"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.9374 21.357C76.2127 20.7291 78.2804 20.7291 79.5557 21.357L90.8129 26.8997C92.0882 27.5276 92.0882 28.5458 90.8129 29.1737L83.1638 32.9399C81.8885 33.5678 79.8207 33.5678 78.5454 32.9399L75.8033 31.5898L68.3324 35.2682L64.1502 39.696C63.8908 39.481 63.6138 39.2568 63.3231 39.0227L63.1495 38.883C62.2893 38.1914 61.2677 37.3701 60.6254 36.6376C60.5446 36.5456 60.4618 36.4463 60.3812 36.3407C60.1669 36.3011 59.9652 36.2603 59.7782 36.2205C58.2906 35.9043 56.6225 35.4013 55.2179 34.9777L54.9342 34.8922C54.4589 34.7491 54.0034 34.6127 53.5666 34.4849L62.5594 32.4258L70.0304 28.7473L67.2882 27.3972C66.0129 26.7692 66.0129 25.7512 67.2882 25.1232L74.9374 21.357ZM53.5666 34.4849C53.5666 34.4849 53.5666 34.4849 53.5666 34.4849L46.1603 36.1808L47.516 36.8483C48.7913 37.4762 48.7912 38.4943 47.516 39.1222L39.8668 42.8884C38.5916 43.5163 36.5238 43.5164 35.2485 42.8884L23.9913 37.3457C22.7159 36.7177 22.716 35.6996 23.9913 35.0717L31.6404 31.3055C32.9156 30.6776 34.9834 30.6776 36.2587 31.3055L38.5358 32.4267C39.6899 31.9483 40.9309 31.4611 42.153 31.0313C43.6354 30.5099 45.4001 29.9605 47.091 29.683C49.7278 29.2502 52.3729 29.7072 53.9892 30.0537C55.8019 30.4425 57.6745 31.0055 59.1934 31.4628C60.6081 31.8887 61.6949 32.2154 62.5594 32.4258L53.5666 34.4849ZM46.1603 36.1808L53.5666 34.4849C52.5189 34.1784 51.5786 33.9213 50.7293 33.7392C49.9958 33.5819 49.6114 33.5441 49.4794 33.5326C48.964 33.6384 48.0924 33.8823 46.8983 34.3023C46.0703 34.5936 45.1981 34.9293 44.3325 35.2808L46.1603 36.1808ZM64.1502 39.696L68.3324 35.2682C68.7598 35.6939 69.4232 36.229 70.2883 36.9256C71.2171 37.6735 72.3605 38.5954 73.15 39.488C73.8539 40.2838 74.7818 41.5862 73.9029 42.8844C73.3394 43.717 72.2235 44.5859 71.1648 45.3159C70.2916 45.9175 69.3021 46.5286 68.3305 47.0968L70.6077 48.218C71.8829 48.8459 71.8829 49.864 70.6077 50.4919L62.9585 54.2582C61.6833 54.8861 59.6154 54.8861 58.3402 54.2582L47.083 48.7154C45.8077 48.0875 45.8077 47.0694 47.083 46.4415L54.7321 42.6752C56.0074 42.0474 58.0751 42.0473 59.3505 42.6752L60.7062 43.3428L64.1502 39.696ZM64.1502 39.696L60.7062 43.3428L62.5339 44.2427C63.2478 43.8165 63.9298 43.3871 64.5213 42.9794C65.3742 42.3914 65.8695 41.9622 66.0846 41.7085C66.0613 41.6436 65.9844 41.4543 65.6649 41.0931C65.295 40.6749 64.773 40.212 64.1502 39.696Z",fill:"#A9A9A9"})]}),Qgt=e=>f.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M2.0625 5.99976C2.0625 3.82513 3.82538 2.06226 6 2.06226C6.58712 2.06226 7.14423 2.19076 7.64473 2.42117V1.21042C7.12905 1.03337 6.57575 0.937256 6 0.937256C3.20406 0.937256 0.9375 3.20381 0.9375 5.99976C0.9375 8.7957 3.20406 11.0623 6 11.0623C8.79594 11.0623 11.0625 8.7957 11.0625 5.99976H9.9375C9.9375 8.17438 8.17462 9.93726 6 9.93726C3.82538 9.93726 2.0625 8.17438 2.0625 5.99976Z",fill:"currentColor"}),f.jsx("path",{d:"M9.28577 4.3986C9.08709 4.3986 8.92603 4.23753 8.92603 4.03885V0.978563C8.92603 0.681899 9.16652 0.441406 9.46318 0.441406C9.75985 0.441406 10.0003 0.6819 10.0003 0.978564V3.25858C10.0003 3.33638 10.0634 3.39944 10.1412 3.39944H11.2091C11.485 3.39944 11.7087 3.62311 11.7087 3.89902C11.7087 4.17493 11.485 4.3986 11.2091 4.3986H9.28577Z",fill:"currentColor"}),f.jsx("path",{d:"M6.57568 3.69244C6.57568 3.38178 6.32384 3.12994 6.01318 3.12994C5.70252 3.12994 5.45068 3.38178 5.45068 3.69244V6.22272L6.7242 7.88675C6.91301 8.13346 7.26606 8.18039 7.51276 7.99159C7.75946 7.80278 7.8064 7.44973 7.61759 7.20303L6.57568 5.84162V3.69244Z",fill:"currentColor"})]}),Y3=e=>f.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M6.53918 9.32122C6.34324 9.51508 6.02724 9.51338 5.83338 9.31744C5.63952 9.1215 5.6412 8.80551 5.83713 8.61164L10.1958 4.29931C10.7996 3.70186 10.8017 2.72852 10.2041 2.12839L10.1899 2.11428C9.58767 1.52481 8.62251 1.53208 8.0292 2.13052L2.29396 7.91536C2.0999 8.1111 1.78388 8.11246 1.58813 7.9184C1.39239 7.72433 1.39103 7.40831 1.58509 7.21257L7.32036 1.42774C8.30005 0.439581 9.89369 0.427613 10.8881 1.40094L10.9116 1.42425C11.4942 2.00929 11.7316 2.80913 11.6232 3.56922C12.389 3.44866 13.1999 3.67918 13.7961 4.26273C14.804 5.24929 14.8147 6.86824 13.82 7.86808L8.5531 13.1619C8.50045 13.2148 8.50024 13.3002 8.55263 13.3534L9.65448 14.4717C9.84794 14.668 9.8456 14.984 9.64925 15.1775C9.45291 15.3709 9.13691 15.3686 8.94345 15.1723L7.84163 14.054C7.40505 13.6109 7.40677 12.8988 7.8455 12.4579L13.1124 7.16405C13.7161 6.55727 13.7095 5.57478 13.0979 4.97606C12.4925 4.38347 11.4942 4.40725 10.8978 5.00886L6.53918 9.32122Z",fill:"currentColor"}),f.jsx("path",{d:"M8.84622 2.75411C9.04697 2.56188 9.36555 2.56381 9.56395 2.76076C9.76234 2.95771 9.76658 3.27625 9.57582 3.4784L9.56661 3.48794L5.25912 7.82701C4.67023 8.42022 4.672 9.37798 5.26305 9.96904C5.85624 10.5622 6.81818 10.5615 7.41052 9.9675L11.6299 5.73599L11.6395 5.72671C11.8406 5.53493 12.1592 5.53756 12.3572 5.73496C12.5583 5.93548 12.5587 6.26104 12.3582 6.46214L8.13877 10.6937C7.14498 11.6903 5.53105 11.6915 4.53584 10.6963C3.5442 9.70461 3.54127 8.09774 4.52928 7.10248L8.83677 2.76342L8.84622 2.75411Z",fill:"currentColor"})]}),eyt=e=>f.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M1.5 8.5V8C1.5 7.60218 1.65804 7.22064 1.93934 6.93934C2.22064 6.65804 2.60218 6.5 3 6.5H13C13.3978 6.5 13.7794 6.65804 14.0607 6.93934C14.342 7.22064 14.5 7.60218 14.5 8V8.5M8.70667 4.20667L7.29333 2.79333C7.20048 2.70037 7.09022 2.62661 6.96886 2.57628C6.84749 2.52595 6.71739 2.50003 6.586 2.5H3C2.60218 2.5 2.22064 2.65804 1.93934 2.93934C1.65804 3.22064 1.5 3.60218 1.5 4V12C1.5 12.3978 1.65804 12.7794 1.93934 13.0607C2.22064 13.342 2.60218 13.5 3 13.5H13C13.3978 13.5 13.7794 13.342 14.0607 13.0607C14.342 12.7794 14.5 12.3978 14.5 12V6C14.5 5.60218 14.342 5.22064 14.0607 4.93934C13.7794 4.65804 13.3978 4.5 13 4.5H9.414C9.14887 4.49977 8.89402 4.39426 8.70667 4.20667Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),tyt=e=>f.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641V49.8368C6.67773 65.0327 31.894 77.3514 62.9998 77.3514C94.1055 77.3514 119.322 65.0327 119.322 49.8368V35.1641Z",fill:"#2E2E2E",fillOpacity:"0.9"}),f.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641M119.322 35.1641C119.322 19.9681 94.1055 7.64941 62.9998 7.64941C31.894 7.64941 6.67773 19.9681 6.67773 35.1641M119.322 35.1641V49.8368C119.322 65.0327 94.1055 77.3514 62.9998 77.3514C31.894 77.3514 6.67773 65.0327 6.67773 49.8368V35.1641",stroke:"#424242"}),f.jsx("path",{d:"M63.0002 0.96875C28.5152 0.96875 0.55957 15.6489 0.55957 33.7578V51.2433C0.55957 69.3522 28.5152 84.0323 63.0002 84.0323C97.4853 84.0323 125.441 69.3522 125.441 51.2433V33.7578C125.441 15.6489 97.4853 0.96875 63.0002 0.96875Z",stroke:"#707070"}),f.jsx("path",{d:"M51.5215 39.9726C50.5464 40.4477 48.9738 40.4435 48.009 39.9634C47.0442 39.4833 47.0526 38.709 48.0277 38.2339L69.7191 27.6672C72.7243 26.2032 72.7347 23.8181 69.7605 22.3476L69.6898 22.313C66.6927 20.8686 61.8895 20.8864 58.9368 22.3528L30.3946 36.5278C29.4288 37.0074 27.8561 37.0107 26.882 36.5352C25.9078 36.0597 25.901 35.2853 26.8668 34.8057L55.4092 20.6308C60.2847 18.2094 68.2157 18.1801 73.1645 20.5651L73.2814 20.6222C76.1808 22.0558 77.3624 24.0157 76.8227 25.8782C80.6339 25.5828 84.6694 26.1476 87.6364 27.5775C92.6525 29.9949 92.7059 33.962 87.7554 36.4119L61.5441 49.3836C61.282 49.5133 61.281 49.7227 61.5417 49.853L67.0252 52.5932C67.988 53.0743 67.9763 53.8486 66.9992 54.3226C66.0221 54.7966 64.4495 54.7909 63.4867 54.3098L58.0033 51.5695C55.8306 50.4838 55.8392 48.7391 58.0226 47.6585L84.2339 34.6868C87.2382 33.2 87.2058 30.7925 84.1617 29.3254C81.1488 27.8734 76.1811 27.9317 73.2127 29.4058L51.5215 39.9726Z",fill:"#A9A9A9"}),f.jsx("path",{d:"M63.0028 23.8809C64.0019 23.4098 65.5873 23.4146 66.5747 23.8972C67.562 24.3798 67.5831 25.1603 66.6338 25.6556L66.5879 25.679L45.1511 36.3113C42.2204 37.7649 42.2292 40.1117 45.1707 41.56C48.1228 43.0135 52.91 43.0118 55.8578 41.5563L76.8564 31.1875L76.9037 31.1648C77.9049 30.6949 79.4903 30.7013 80.4755 31.185C81.4763 31.6764 81.4785 32.4741 80.4806 32.9669L59.4821 43.3356C54.5363 45.7777 46.5044 45.7806 41.5516 43.342C36.6166 40.9121 36.602 36.9747 41.519 34.5359L62.9558 23.9037L63.0028 23.8809Z",fill:"#A9A9A9"})]}),nyt=e=>f.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641V49.8368C6.67773 65.0327 31.894 77.3514 62.9998 77.3514C94.1055 77.3514 119.322 65.0327 119.322 49.8368V35.1641Z",fill:"#2E2E2E",fillOpacity:"0.9"}),f.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641M119.322 35.1641C119.322 19.9681 94.1055 7.64941 62.9998 7.64941C31.894 7.64941 6.67773 19.9681 6.67773 35.1641M119.322 35.1641V49.8368C119.322 65.0327 94.1055 77.3514 62.9998 77.3514C31.894 77.3514 6.67773 65.0327 6.67773 49.8368V35.1641",stroke:"#424242"}),f.jsx("path",{d:"M63.0002 0.96875C28.5152 0.96875 0.55957 15.6489 0.55957 33.7578V51.2433C0.55957 69.3522 28.5152 84.0323 63.0002 84.0323C97.4853 84.0323 125.441 69.3522 125.441 51.2433V33.7578C125.441 15.6489 97.4853 0.96875 63.0002 0.96875Z",stroke:"#707070"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.8997 32.6647C98.4806 33.9355 98.4744 36.0012 95.8997 37.2689L89.6657 40.3384C87.0848 41.6091 82.8892 41.6061 80.3146 40.3384L74.0805 37.2689C71.4996 35.9981 71.5059 33.9324 74.0805 32.6647L80.3146 29.5952C82.8955 28.3244 87.091 28.3275 89.6657 29.5952L95.8997 32.6647ZM74.0805 21.9215C76.6614 23.1923 76.6552 25.258 74.0805 26.5257L67.8465 29.5952C65.2656 30.866 61.0701 30.8629 58.4954 29.5952L52.2613 26.5257C49.6804 25.255 49.6867 23.1892 52.2613 21.9215L58.4954 18.852C61.0763 17.5813 65.2718 17.5843 67.8465 18.852L74.0805 21.9215ZM74.0805 43.4079C76.6614 44.6786 76.6552 46.7444 74.0805 48.0121L67.8465 51.0816C65.2656 52.3523 61.0701 52.3493 58.4954 51.0816L52.2613 48.0121C49.6804 46.7413 49.6867 44.6756 52.2613 43.4079L58.4954 40.3384C61.0763 39.0676 65.2718 39.0707 67.8465 40.3384L74.0805 43.4079ZM52.2613 32.6647C54.8422 33.9355 54.836 36.0012 52.2613 37.2689L46.0273 40.3384C43.4464 41.6091 39.2509 41.6061 36.6762 40.3384L30.4422 37.2689C27.8613 35.9981 27.8675 33.9324 30.4422 32.6647L36.6762 29.5952C39.2571 28.3244 43.4526 28.3275 46.0273 29.5952L52.2613 32.6647Z",fill:"#A9A9A9"})]}),ryt=e=>f.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641V49.8368C6.67773 65.0327 31.894 77.3514 62.9998 77.3514C94.1055 77.3514 119.322 65.0327 119.322 49.8368V35.1641Z",fill:"#2E2E2E",fillOpacity:"0.9"}),f.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641M119.322 35.1641C119.322 19.9681 94.1055 7.64941 62.9998 7.64941C31.894 7.64941 6.67773 19.9681 6.67773 35.1641M119.322 35.1641V49.8368C119.322 65.0327 94.1055 77.3514 62.9998 77.3514C31.894 77.3514 6.67773 65.0327 6.67773 49.8368V35.1641",stroke:"#424242"}),f.jsx("path",{d:"M63.0002 0.96875C28.5152 0.96875 0.55957 15.6489 0.55957 33.7578V51.2433C0.55957 69.3522 28.5152 84.0323 63.0002 84.0323C97.4853 84.0323 125.441 69.3522 125.441 51.2433V33.7578C125.441 15.6489 97.4853 0.96875 63.0002 0.96875Z",stroke:"#707070"}),f.jsx("g",{clipPath:"url(#clip0_23333_14744)",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M79.2946 17.9539C83.0143 19.7854 83.016 22.7559 79.2979 24.5879C77.0214 25.7087 73.8794 26.1385 70.9301 25.8878L67.5296 30.2202C68.0944 30.3987 68.6321 30.6075 69.1262 30.8507C71.0847 31.815 72.0009 33.0948 71.8979 34.3581L77.2504 35.1977C77.6452 34.8727 78.1174 34.5635 78.6856 34.2835C82.4066 32.4514 88.4403 32.4485 92.1623 34.2803C95.8842 36.1128 95.8805 39.0851 92.159 40.9175C88.4373 42.7488 82.4002 42.7513 78.679 40.9191C76.7415 39.9647 75.8248 38.7009 75.9073 37.4506L70.5219 36.6045C70.1354 36.9168 69.6777 37.2145 69.1295 37.4846C68.345 37.8708 67.4527 38.1705 66.5059 38.3939L67.9312 41.984C70.1507 42.0573 72.3276 42.5087 74.0244 43.3438C77.7444 45.1754 77.7467 48.1458 74.0277 49.9778C70.3071 51.8092 64.2712 51.8095 60.551 49.9778C56.8323 48.1459 56.8351 45.1755 60.5543 43.3438C61.3581 42.9482 62.2741 42.6414 63.247 42.4167L61.8282 38.8428C59.5803 38.7777 57.3696 38.3299 55.6527 37.4846C54.1264 36.7327 53.2395 35.7882 52.9666 34.8103L43.924 34.0469C43.4596 34.6259 42.7547 35.1702 41.8041 35.6385C38.0834 37.4696 32.0473 37.4701 28.3273 35.6385C24.6089 33.8068 24.6123 30.8363 28.3306 29.0046C32.0508 27.1737 38.0806 27.1737 41.8008 29.0046C43.3459 29.7653 44.2412 30.7224 44.5033 31.7129L53.5098 32.4747C53.9742 31.8832 54.6868 31.3279 55.656 30.8507C57.6687 29.8601 60.357 29.4079 62.9902 29.4892L66.5783 24.9218C66.3174 24.8179 66.0637 24.7073 65.8212 24.5879C62.1022 22.7559 62.1045 19.7856 65.8245 17.9539C69.5447 16.1235 75.5747 16.1232 79.2946 17.9539ZM38.4299 30.6643C36.5715 29.75 33.5599 29.75 31.7015 30.6643C29.8447 31.5793 29.8414 33.0638 31.6982 33.9788C33.5565 34.8938 36.5742 34.8933 38.4332 33.9788C40.2906 33.0635 40.2883 31.5793 38.4299 30.6643ZM70.6536 45.0035C68.7951 44.0893 65.7836 44.0893 63.9251 45.0035C62.0676 45.9185 62.0647 47.4029 63.9218 48.318C65.7804 49.2332 68.7979 49.2329 70.6569 48.3181C72.5142 47.4027 72.5119 45.9185 70.6536 45.0035ZM65.7553 32.5104C63.8969 31.5961 60.8853 31.5961 59.0269 32.5104C57.1685 33.4254 57.1662 34.9096 59.0236 35.8249C60.8824 36.7402 63.8998 36.7402 65.7586 35.8249C67.616 34.9096 67.6137 33.4254 65.7553 32.5104ZM88.7915 35.94C86.9338 35.0261 83.9184 35.0264 82.0564 35.9432C80.1965 36.8601 80.1945 38.3451 82.0498 39.2594C83.9067 40.1736 86.9255 40.1738 88.7882 39.2578C90.6507 38.3407 90.649 36.8546 88.7915 35.94ZM75.9238 19.6136C74.0656 18.6995 71.0538 18.6998 69.1953 19.6136C67.3369 20.5286 67.3347 22.0129 69.192 22.9282C71.0509 23.8434 74.0682 23.8434 75.9271 22.9282C77.7836 22.0128 77.7818 20.5285 75.9238 19.6136Z",fill:"#A9A9A9"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"clip0_23333_14744",children:f.jsx("rect",{width:"59.3185",height:"59.3185",fill:"white",transform:"matrix(0.897148 0.441731 -0.897148 0.441731 65.3042 6.51953)"})})})]});function Lge({text:e,copyMessage:t="Copied to clipboard!"}){const[n,r]=D.useState(!1),s=D.useRef(null),i=D.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{Qf.success(t),r(!0),s.current&&(clearTimeout(s.current),s.current=null),s.current=setTimeout(()=>{r(!1)},2e3)}).catch(()=>{Qf.error("Failed to copy to clipboard.")})},[e,t]);return{isCopied:n,handleCopy:i}}function K1({content:e,copyMessage:t,className:n}){const{isCopied:r,handleCopy:s}=Lge({text:e,copyMessage:t});return f.jsxs(Gs,{variant:"ghost",size:"icon",className:He("relative h-6 w-6",n),"aria-label":"Copy to clipboard",onClick:s,children:[f.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:f.jsx(Vg,{className:He("h-4 w-4 transition-transform ease-in-out",r?"scale-100":"scale-0")})}),f.jsx(LS,{className:He("h-4 w-4 transition-transform ease-in-out",r?"scale-0":"scale-100")})]})}const syt=()=>D.useMemo(()=>QT({settings:{fontFamily:"var(--geist-mono)",fontSize:"0.8rem",lineHighlight:"transparent",gutterBackground:"transparent",background:"transparent",gutterForeground:"#939393"},styles:[{tag:[Se.className,Se.propertyName]}]}),[]),fF=({data:e,className:t})=>{const n=JSON.stringify(e,null,2),r=syt();return f.jsxs("div",{className:Yn("rounded-md bg-surface4 p-1 font-mono relative",t),children:[f.jsx(K1,{content:n,className:"absolute top-2 right-2"}),f.jsx(bd,{value:n,theme:r,extensions:[cg]})]})};async function iyt(e,t){const{codeToTokens:n,bundledLanguages:r}=await aie(async()=>{const{codeToTokens:i,bundledLanguages:o}=await import("./index-otmcLOyZ.js");return{codeToTokens:i,bundledLanguages:o}},[]);if(!(t in r))return null;const{tokens:s}=await n(e,{lang:t,defaultColor:!1,themes:{light:"github-light",dark:"github-dark"}});return s}const oyt=({toolName:e,argsText:t,result:n})=>{const[r,s]=D.useState(!0);let i;try{const o=JSON.parse(t);i=f.jsx(fF,{data:o})}catch{i=f.jsx("pre",{className:"whitespace-pre-wrap",children:t})}return f.jsxs("div",{children:[f.jsxs("button",{onClick:()=>s(o=>!o),className:"flex items-center gap-2",children:[f.jsx(Nt,{children:f.jsx(LT,{className:He("transition-all",r?"rotate-90":"rotate-180")})}),f.jsx(vr,{icon:f.jsx(Bd,{className:"text-[#ECB047]"}),children:e})]}),!r&&f.jsx("div",{className:"pt-2",children:f.jsxs("div",{className:"border-sm border-border1 rounded-lg bg-surface4",children:[f.jsxs("div",{className:"px-4 border-b-sm border-border1 py-2",children:[f.jsx("p",{className:"font-medium pb-2",children:"Tool arguments"}),i]}),n!==void 0&&f.jsxs("div",{className:"px-4 py-2",children:[f.jsx("p",{className:"font-medium pb-2",children:"Tool result"}),typeof n=="string"?f.jsx("pre",{className:"whitespace-pre-wrap",children:n}):f.jsx(fF,{data:n})]})]})})]})},ayt=({ToolFallback:e})=>{const t=Hg(),n=t.content.length===1&&t.content[0].type==="tool-call";return f.jsxs(vI,{className:"max-w-full",children:[f.jsx("div",{className:"text-icon6 text-ui-lg leading-ui-lg",children:f.jsx(xI,{components:{Text:jgt,tools:{Fallback:e||oyt}}})}),f.jsx("div",{className:"h-6 pt-1",children:!n&&f.jsx(lyt,{})})]})},lyt=()=>f.jsx(koe,{hideWhenRunning:!0,autohide:"always",autohideFloat:"single-branch",className:"flex gap-1 items-center transition-all relative",children:f.jsx(Eoe,{asChild:!0,children:f.jsxs(Ff,{tooltip:"Copy",className:"bg-transparent text-icon3 hover:text-icon6",children:[f.jsx(o7,{copied:!0,children:f.jsx(Vg,{})}),f.jsx(o7,{copied:!1,children:f.jsx(LS,{})})]})})}),ya=yT,cyt=wse,uC=bT,OL=D.forwardRef(({className:e,...t},n)=>f.jsx(Og,{ref:n,className:He("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));OL.displayName=Og.displayName;const Ro=D.forwardRef(({className:e,children:t,...n},r)=>f.jsxs(uC,{children:[f.jsx(OL,{}),f.jsxs(Rg,{ref:r,className:He("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,f.jsxs(_S,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(xb,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ro.displayName=Rg.displayName;const Io=D.forwardRef(({className:e,...t},n)=>f.jsx(Ig,{ref:n,className:Yn("text-lg font-semibold leading-none tracking-tight",e),...t}));Io.displayName=Ig.displayName;const uyt=D.forwardRef(({className:e,...t},n)=>f.jsx(jg,{ref:n,className:He("text-sm text-muted-foreground",e),...t}));uyt.displayName=jg.displayName;const dyt=()=>{const e=eh(),[t,n]=D.useState(!1);return D.useEffect(()=>{e.subscribe(()=>{const r=e.getState().attachments;n(r.length>0)})},[e]),t},hyt=e=>{const[t,n]=D.useState(void 0);return D.useEffect(()=>{if(!e){n(void 0);return}const r=URL.createObjectURL(e);return n(r),()=>{URL.revokeObjectURL(r)}},[e]),t},RL=()=>{const{file:e,src:t}=Bm(cje(n=>{var s,i;if(n.type!=="image")return{};if(n.file)return{file:n.file};const r=(i=(s=n.content)==null?void 0:s.filter(o=>o.type==="image")[0])==null?void 0:i.image;return r?{src:r}:{}}));return hyt(e)??t},fyt=({src:e})=>f.jsx("div",{className:"overflow-hidden w-full",children:f.jsx("img",{src:e,className:"object-contain aspect-ratio h-full w-full",alt:"Preview"})}),Bge=({children:e})=>{const t=RL();return t?f.jsxs(ya,{children:[f.jsx(cyt,{className:"hover:bg-accent/50 cursor-pointer transition-colors",asChild:!0,children:e}),f.jsxs(uC,{children:[f.jsx(OL,{}),f.jsxs(Ro,{className:"max-w-5xl w-full max-h-[80%]",children:[f.jsx(Io,{className:"aui-sr-only",children:"Image Attachment Preview"}),f.jsx(fyt,{src:t})]})]})]}):e},pyt=()=>{const e=Bm(s=>s.type==="image"),t=Bm(s=>s.type==="document"?s:void 0),n=RL(),r=Bm(s=>s.source!=="message");return f.jsx(DT,{children:f.jsxs(kv,{children:[f.jsxs(gI,{className:"relative",children:[f.jsx(Bge,{children:f.jsx(Ev,{asChild:!0,children:f.jsx("div",{className:"h-full w-full aspect-ratio overflow-hidden rounded-lg",children:e?f.jsx("div",{className:"rounded-lg border-sm border-border1 overflow-hidden",children:f.jsx("img",{src:n,className:"object-cover aspect-ratio size-16",alt:"Preview",height:64,width:64})}):(t==null?void 0:t.contentType)==="application/pdf"?f.jsx("div",{className:"rounded-lg border-sm border-border1 flex items-center justify-center",children:f.jsx(mae,{className:"text-accent2"})}):f.jsx("div",{className:"rounded-lg border-sm border-border1 flex items-center justify-center",children:f.jsx(gae,{className:"text-icon3"})})})})}),r&&f.jsx(myt,{})]}),f.jsx(Wg,{side:"top",children:f.jsx(yI,{})})]})})},myt=()=>f.jsx(JRe,{asChild:!0,children:f.jsx(Ff,{tooltip:"Remove file",className:"absolute -right-3 -top-3 hover:bg-transparent rounded-full bg-surface1 rounded-full p-1",side:"top",children:f.jsx(Nt,{children:f.jsx(pae,{})})})}),gyt=()=>f.jsx(Voe,{components:{Attachment:yyt}}),yyt=()=>{const e=Bm(r=>r.type==="image"),t=Bm(r=>r.type==="document"?r:void 0),n=RL();return f.jsx(DT,{children:f.jsxs(kv,{children:[f.jsx(gI,{className:"relative pt-4",children:f.jsx(Bge,{children:f.jsx(Ev,{asChild:!0,children:f.jsx("div",{className:"h-full w-full aspect-ratio overflow-hidden rounded-lg",children:e?f.jsx("div",{className:"rounded-lg border-sm border-border1 overflow-hidden",children:f.jsx("img",{src:n,className:"object-cover aspect-ratio max-h-[140px] max-w-[320px]",alt:"Preview"})}):(t==null?void 0:t.contentType)==="application/pdf"?f.jsx("div",{className:"rounded-lg border-sm border-border1 flex items-center justify-center p-4",children:f.jsx(mae,{className:"text-accent2"})}):f.jsx("div",{className:"rounded-lg border-sm border-border1 flex items-center justify-center p-4",children:f.jsx(gae,{className:"text-icon3"})})})})})}),f.jsx(Wg,{side:"top",children:f.jsx(yI,{})})]})})},byt=()=>dyt()?f.jsx("div",{className:"flex w-full flex-row items-center gap-4 h-24",children:f.jsx(Yoe,{components:{Attachment:pyt}})}):null,vyt=()=>f.jsxs(vI,{className:"w-full flex items-end pb-4 flex-col",children:[f.jsx("div",{className:"max-w-[366px] px-5 py-3 text-icon6 text-ui-lg leading-ui-lg rounded-lg bg-surface3",children:f.jsx(xI,{})}),f.jsx(gyt,{})]}),$ge=(e,{enabled:t=!0})=>{const n=D.useRef(t);Ce.useEffect(()=>{if(!t||!(e!=null&&e.current))return;const r=e.current,s=new MutationObserver(()=>{n.current&&r.scrollTo({top:r.scrollHeight,behavior:"smooth"})});s.observe(r,{childList:!0,subtree:!0,characterData:!0});const i=o=>{const a=o.target,l=a.scrollTop+a.clientHeight,c=a.scrollHeight;l>=c-1?n.current=!0:n.current=!1};return r.addEventListener("scroll",i),()=>{r.removeEventListener("scroll",i),s.disconnect()}},[t,e])},xyt={"header-md":"text-header-md leading-header-md","ui-lg":"text-ui-lg leading-ui-lg","ui-md":"text-ui-md leading-ui-md","ui-sm":"text-ui-sm leading-ui-sm","ui-xs":"text-ui-xs leading-ui-xs"},wyt={mono:"font-mono"},tt=({as:e="p",className:t,variant:n="ui-md",font:r,...s})=>f.jsx(e,{className:Yn(xyt[n],r&&wyt[r],t),...s}),Syt=({language:e="en-US"}={})=>{const t=D.useRef(null),[n,r]=D.useState({isListening:!1,transcript:"",error:null}),s=()=>{t.current&&t.current.start()},i=()=>{t.current&&t.current.stop()};return D.useEffect(()=>{if(!("webkitSpeechRecognition"in window)&&!("SpeechRecognition"in window)){r(l=>({...l,error:"Speech Recognition not supported in this browser"}));return}const o=window.SpeechRecognition||window.webkitSpeechRecognition,a=new o;t.current=a,a.continuous=!0,a.lang=e,a.onstart=()=>{r(l=>({...l,isListening:!0}))},a.onresult=l=>{let c="";for(let u=l.resultIndex;u<l.results.length;u++){const d=l.results[u][0].transcript;l.results[u].isFinal&&(c+=d+" ")}r(u=>({...u,transcript:c}))},a.onerror=l=>{r(c=>({...c,error:`Error: ${l.error}`}))},a.onend=()=>r(l=>({...l,isListening:!1}))},[e]),{...n,start:s,stop:i}},zge=({ToolFallback:e,agentName:t,hasMemory:n,showFileSupport:r})=>{const s=D.useRef(null);$ge(s,{enabled:!0});const i=o=>f.jsx(ayt,{...o,ToolFallback:e});return f.jsxs(Cyt,{children:[f.jsxs(Zoe,{ref:s,autoScroll:!1,className:"overflow-y-scroll scroll-smooth h-full",children:[f.jsx(kyt,{agentName:t}),f.jsx("div",{className:"max-w-[568px] w-full mx-auto px-4 pb-7",children:f.jsx(eje,{components:{UserMessage:vyt,EditComposer:Tyt,AssistantMessage:i}})}),f.jsx(CA,{empty:!1,children:f.jsx("div",{})})]}),f.jsx(Eyt,{hasMemory:n,showFileSupport:r})]})},Cyt=({children:e})=>f.jsx(Xoe,{className:"grid grid-rows-[1fr_auto] h-full overflow-y-auto",children:e}),kyt=({agentName:e})=>{const t=e??"",n=t.split(" ")??[];let r="A";return n.length===2?r=`${n[0][0]}${n[1][0]}`:t.length>0?r=`${t[0]}`:r="A",f.jsx(Koe,{children:f.jsxs("div",{className:"flex w-full flex-grow flex-col items-center justify-center",children:[f.jsx(Rge,{children:f.jsx(Ige,{children:r})}),f.jsx("p",{className:"mt-4 font-medium",children:"How can I help you today?"})]})})},Eyt=({hasMemory:e,showFileSupport:t})=>f.jsxs("div",{className:"mx-4",children:[f.jsxs(wI,{children:[f.jsx("div",{className:"max-w-[568px] w-full mx-auto px-2 py-3",children:f.jsx(byt,{})}),f.jsxs("div",{className:"bg-surface3 rounded-lg border-sm border-border1 py-4 mt-auto max-w-[568px] w-full mx-auto px-4",children:[f.jsx(kI,{asChild:!0,className:"w-full",children:f.jsx("textarea",{className:"text-ui-lg leading-ui-lg placeholder:text-icon3 text-icon6 bg-transparent focus:outline-none resize-none",autoFocus:!0,placeholder:"Enter your message...",name:"",id:""})}),f.jsxs("div",{className:"flex justify-end gap-2",children:[f.jsx(Dyt,{}),f.jsx(Ayt,{showFileSupport:t})]})]})]}),!e&&f.jsxs(tt,{variant:"ui-sm",className:"text-icon3 flex gap-2 pt-1 max-w-[568px] w-full mx-auto border-t items-start",children:[f.jsx(Nt,{className:"transform translate-y-[0.1rem]",children:f.jsx(Xgt,{})}),"Memory is not enabled. The conversation will not be persisted."]})]}),Dyt=()=>{const e=eh(),{start:t,stop:n,isListening:r,transcript:s}=Syt();return D.useEffect(()=>{s&&e.setText(s)},[e,s]),f.jsx(Ff,{type:"button",tooltip:r?"Stop dictation":"Start dictation",variant:"ghost",className:"rounded-full",onClick:()=>r?n():t(),children:r?f.jsx(Hge,{}):f.jsx(Uje,{className:"h-6 w-6 text-[#898989] hover:text-[#fff]"})})},Ayt=({showFileSupport:e})=>f.jsxs(f.Fragment,{children:[e&&f.jsx(IIe,{asChild:!0,children:f.jsx(Ff,{tooltip:"Add attachment",variant:"ghost",className:"rounded-full",children:f.jsx(BT,{className:"h-6 w-6 text-[#898989] hover:text-[#fff]"})})}),f.jsx(CA,{running:!1,children:f.jsx(qoe,{asChild:!0,children:f.jsx(Ff,{tooltip:"Send",variant:"default",className:"rounded-full border-sm border-[#363636] bg-[#292929]",children:f.jsx(bje,{className:"h-6 w-6 text-[#898989] hover:text-[#fff]"})})})}),f.jsx(CA,{running:!0,children:f.jsx(Goe,{asChild:!0,children:f.jsx(Ff,{tooltip:"Cancel",variant:"default",children:f.jsx(Hge,{})})})})]}),Tyt=()=>f.jsxs(wI,{children:[f.jsx(kI,{}),f.jsxs("div",{children:[f.jsx(Goe,{asChild:!0,children:f.jsx(Gs,{variant:"ghost",children:"Cancel"})}),f.jsx(qoe,{asChild:!0,children:f.jsx(Gs,{children:"Send"})})]})]}),Hge=()=>f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",children:f.jsx("rect",{width:"10",height:"10",x:"3",y:"3",rx:"2"})}),_yt=async e=>new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{const s=r.result;typeof s=="string"?t(s):n(new Error("Failed to convert file to base64."))},r.onerror=s=>{n(s)},r.readAsDataURL(e)});class Nyt{constructor(){Ie(this,"accept","application/pdf")}async add({file:t}){if(t.size>20971520)throw new Error("PDF size exceeds 20MB limit");return{id:crypto.randomUUID(),type:"document",name:t.name,file:t,status:{type:"running",reason:"uploading",progress:0},contentType:"application/pdf"}}async send(t){const n=await this.fileToBase64(t.file);return{id:t.id,type:"document",name:t.name,content:[{type:"text",text:n}],status:{type:"complete"},contentType:"application/pdf"}}async remove(t){}async fileToBase64(t){const n=await t.arrayBuffer(),r=new Uint8Array(n);let s="";return r.forEach(i=>{s+=String.fromCharCode(i)}),btoa(s)}async extractTextFromPDF(t){return"Extracted PDF text content"}}const Pyt=e=>e,Myt=async e=>{const t=e.filter(n=>n.type==="image"||n.type==="document").map(async n=>{var r,s,i;return n.type==="document"?n.contentType==="application/pdf"?{role:"user",content:[{type:"file",data:((s=(r=n.content)==null?void 0:r[0])==null?void 0:s.text)||"",mimeType:n.contentType,filename:n.name}]}:{role:"user",content:((i=n.content[0])==null?void 0:i.text)||""}:{role:"user",content:[{type:"image",image:await _yt(n.file),mimeType:n.file.type}]}});return Promise.all(t)};function Fyt({children:e,agentId:t,initialMessages:n,agentName:r,memory:s,threadId:i,refreshThreadList:o,modelSettings:a={},chatWithGenerate:l,runtimeContext:c}){const[u,d]=D.useState(!1),[p,m]=D.useState([]),[b,x]=D.useState(i),{frequencyPenalty:C,presencePenalty:S,maxRetries:A,maxSteps:T,maxTokens:N,temperature:F,topK:M,topP:I,instructions:j}=a,L=new tg;Object.entries(c??{}).forEach(([$,J])=>{L.set($,J)}),D.useEffect(()=>{const $=n&&(n==null?void 0:n.length)>(p==null?void 0:p.length);if((p.length===0||b!==i||$&&b===i)&&n&&i&&s){const J=n==null?void 0:n.map(q=>{const U=(q.toolInvocations||[]).map(X=>({type:"tool-call",toolCallId:X==null?void 0:X.toolCallId,toolName:X==null?void 0:X.toolName,args:X==null?void 0:X.args,result:X==null?void 0:X.result})),V=(q.experimental_attachments||[]).map(X=>({type:X.contentType.startsWith("image/")?"image":X.contentType.startsWith("audio/")?"audio":"file",mimeType:X.contentType,image:X.url}));return{...q,content:[...typeof q.content=="string"?[{type:"text",text:q.content}]:[],...U,...V]}}).filter(Boolean);m(J),x(i)}},[n,i,s]);const z=xp().getAgent(t),Q=voe({isRunning:u,messages:p,convertMessage:Pyt,onNew:async $=>{var U;if(((U=$.content[0])==null?void 0:U.type)!=="text")throw new Error("Only text messages are supported");const J=await Myt($.attachments),q=$.content[0].text;m(V=>[...V,{role:"user",content:q,attachments:$.attachments}]),d(!0);try{if(l){const V=await z.generate({messages:[{role:"user",content:q},...J],runId:t,frequencyPenalty:C,presencePenalty:S,maxRetries:A,maxSteps:T,maxTokens:N,temperature:F,topK:M,topP:I,instructions:j,runtimeContext:L,...s?{threadId:i,resourceId:t}:{}});if(V.response){const X=V.response.messages.reduce((W,K)=>{const se=Array.isArray(W.content)?W.content:[];if(typeof K.content=="string")return{...W,content:[...se,{type:"text",text:K.content}]};if(K.role==="assistant"){const H=Array.isArray(K.content)?K.content.find(oe=>oe.type==="tool-call"):void 0;if(H){const oe=se.map(ne=>ne.type==="tool-call"&&ne.toolCallId===(H==null?void 0:H.toolCallId)?{...ne,...H}:ne),le=oe.some(ne=>ne.type==="tool-call");return{...W,content:le?oe:[...se,H]}}const te=Array.isArray(K.content)?K.content.find(oe=>oe.type==="text"&&oe.text):void 0;if(te)return{...W,content:[...se,te]}}if(K.role==="tool"){const H=Array.isArray(K.content)?K.content.find(te=>te.type==="tool-result"):void 0;if(H){const te=se.map(le=>le.type==="tool-call"&&le.toolCallId===(H==null?void 0:H.toolCallId)?{...le,result:H.result}:le),oe=te.some(le=>le.type==="tool-call");return{...W,content:oe?te:[...se,{type:"tool-result",toolCallId:H.toolCallId,result:H.result}]}}return{...W,content:[...se,H]}}return W},{role:"assistant",content:[]});m(W=>[...W,X])}}else{let V=function(){m(te=>{const oe={role:"assistant",content:[{type:"text",text:W}]};return K?se?(se=!1,[...te,oe]):[...te.slice(0,-1),oe]:(K=!0,se&&(se=!1),[...te,oe])})};const X=await z.stream({messages:[{role:"user",content:q},...J],runId:t,frequencyPenalty:C,presencePenalty:S,maxRetries:A,maxSteps:T,maxTokens:N,temperature:F,topK:M,topP:I,instructions:j,runtimeContext:L,...s?{threadId:i,resourceId:t}:{}});if(!X.body)throw new Error("No response body");let W="",K=!1,se=!1,H=!1;await X.processDataStream({onTextPart(te){H?(H=!1,W=te):W+=te,V()},async onToolCallPart(te){m(oe=>{const le=oe[oe.length-1];if(le&&le.role==="assistant"){const me={...le,content:Array.isArray(le.content)?[...le.content,{type:"tool-call",toolCallId:te.toolCallId,toolName:te.toolName,args:te.args}]:[...typeof le.content=="string"?[{type:"text",text:le.content}]:[],{type:"tool-call",toolCallId:te.toolCallId,toolName:te.toolName,args:te.args}]};return se=!0,H=!0,[...oe.slice(0,-1),me]}const ne={role:"assistant",content:[{type:"text",text:W},{type:"tool-call",toolCallId:te.toolCallId,toolName:te.toolName,args:te.args}]};return se=!0,H=!0,[...oe,ne]})},async onToolResultPart(te){m(oe=>{const le=oe[oe.length-1];if(le&&le.role==="assistant"&&Array.isArray(le.content)){const ne=le.content.map(we=>typeof we=="object"&&we.type==="tool-call"&&we.toolCallId===te.toolCallId?{...we,result:te.result}:we),me={...le,content:ne};return[...oe.slice(0,-1),me]}return oe})},onErrorPart(te){throw new Error(te)}})}d(!1),setTimeout(()=>{o==null||o()},500)}catch(V){console.error("Error occurred in MastraRuntimeProvider",V),d(!1),m(X=>[...X,{role:"assistant",content:[{type:"text",text:`Error: ${V}`}]}])}},adapters:{attachments:new iRe([new tRe,new rRe,new Nyt])}});return f.jsxs(noe,{runtime:Q,children:[" ",e," "]})}const Oyt=qo()(Fde(e=>({modelSettings:{},setModelSettings:t=>e(n=>({modelSettings:{...n.modelSettings,...t}})),chatWithGenerate:{},setChatWithGenerate:t=>e(n=>({chatWithGenerate:{...n.chatWithGenerate,...t}}))}),{name:"mastra-agent-store"})),Xh={maxRetries:2,maxSteps:5,temperature:.5,topP:1},X3=D.createContext({});function Ryt({agentId:e,defaultGenerateOptions:t,defaultStreamOptions:n,children:r}){const{modelSettings:s,setModelSettings:i,chatWithGenerate:o,setChatWithGenerate:a}=Oyt(),l=o[e]||!1,c=m=>{a({[e]:m})},u=D.useMemo(()=>s[e]?s[e]:l?{maxRetries:(t==null?void 0:t.maxRetries)??Xh.maxRetries,maxSteps:(t==null?void 0:t.maxSteps)??Xh.maxSteps,temperature:(t==null?void 0:t.temperature)??Xh.temperature,topP:(t==null?void 0:t.topP)??Xh.topP,...t}:{maxRetries:(n==null?void 0:n.maxRetries)??Xh.maxRetries,maxSteps:(n==null?void 0:n.maxSteps)??Xh.maxSteps,temperature:(n==null?void 0:n.temperature)??Xh.temperature,topP:(n==null?void 0:n.topP)??Xh.topP,...n},[e,t,n,l,s]),d=m=>{i({[e]:m})},p=()=>{i({[e]:null})};return f.jsx(X3.Provider,{value:{modelSettings:u,setModelSettings:d,resetModelSettings:p,chatWithGenerate:l,setChatWithGenerate:c},children:r})}const Dv=qo()(Fde(e=>({runtimeContext:{},setRuntimeContext:t=>e({runtimeContext:t})}),{name:"mastra-playground-store"})),Iyt=({agentId:e,agentName:t,threadId:n,initialMessages:r,memory:s,refreshThreadList:i,showFileSupport:o})=>{const{modelSettings:a,chatWithGenerate:l}=D.useContext(X3),{runtimeContext:c}=Dv();return f.jsx(Fyt,{agentId:e,agentName:t,threadId:n,initialMessages:r,memory:s,refreshThreadList:i,modelSettings:a,chatWithGenerate:l,runtimeContext:c,children:f.jsx(zge,{agentName:t??"",hasMemory:s,showFileSupport:o})})},jyt=wv("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function VD({className:e,variant:t,...n}){return f.jsx("div",{className:He(jyt({variant:t}),e),...n})}function WE({content:e,label:t,multiline:n=!1}){const r=()=>{navigator.clipboard.writeText(e)};return f.jsxs("div",{className:"group relative flex items-start gap-2",children:[f.jsx("span",{className:He("text-sm text-mastra-el-4",n?"whitespace-pre-wrap":"truncate"),children:e}),f.jsx(Gs,{variant:"ghost",size:"sm",className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0 -mt-1",onClick:s=>{s.stopPropagation(),r()},"aria-label":`Copy ${t}`,children:f.jsx(LS,{className:"h-3 w-3"})})]})}function Lyt({date:e}){const t={relativeTime:ett(new Date(e),{addSuffix:!0}),fullDate:no(new Date(e),"PPpp")};return f.jsx(PL,{children:f.jsxs(kv,{children:[f.jsx(Ev,{className:"text-left text-sm text-mastra-el-4",children:t.relativeTime}),f.jsx(Wg,{className:"bg-mastra-bg-1 text-mastra-el-1",children:f.jsx("p",{className:"text-sm",children:t.fullDate})})]})})}const Byt=wv("flex w-full text-icon6 rounded-lg border bg-transparent shadow-sm focus-visible:ring-ring transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-sm border-border1 placeholder:text-icon3",filled:"border-sm bg-inputFill border-border1 placeholder:text-icon3",unstyled:"border-0 bg-transparent placeholder:text-icon3 focus-visible:ring-transparent focus-visible:outline-none"},customSize:{default:"px-[13px] text-[calc(13_/_16_*_1rem)] h-8",sm:"h-[30px] px-[13px] text-xs",lg:"h-10 px-[17px] text-[calc(13_/_16_*_1rem)]"}},defaultVariants:{variant:"default",customSize:"default"}}),$d=D.forwardRef(({className:e,customSize:t,testId:n,variant:r,type:s,...i},o)=>f.jsx("input",{type:s,className:Yn(e,Byt({variant:r,customSize:t,className:e})),"data-testid":n,ref:o,...i}));$d.displayName="Input";function cJ({score:e}){return f.jsx(VD,{variant:"secondary",children:e.toFixed(2)})}function da({className:e,...t}){return f.jsx("div",{className:He("animate-pulse rounded-md bg-muted/50",e),...t})}const pF=D.forwardRef(({className:e,...t},n)=>f.jsx("table",{ref:n,className:He("w-full caption-bottom text-sm border-spacing-0",e),...t}));pF.displayName="Table";const mF=D.forwardRef(({className:e,...t},n)=>f.jsx("thead",{ref:n,className:He("[&_tr]:border-b-[0.5px]",e),...t}));mF.displayName="TableHeader";const gF=D.forwardRef(({className:e,...t},n)=>f.jsx("tbody",{ref:n,className:He("[&_tr:last-child]:border-0",e),...t}));gF.displayName="TableBody";const $yt=D.forwardRef(({className:e,...t},n)=>f.jsx("tfoot",{ref:n,className:He("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));$yt.displayName="TableFooter";const ef=D.forwardRef(({className:e,...t},n)=>f.jsx("tr",{ref:n,className:He("border-b-[0.5px] border-mastra-border-1 transition-colors hover:bg-muted/50 data-[state=selected]:bg-mastra-bg-4/70",e),...t}));ef.displayName="TableRow";const aa=D.forwardRef(({className:e,...t},n)=>f.jsx("th",{ref:n,className:He("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));aa.displayName="TableHead";const is=D.forwardRef(({className:e,...t},n)=>f.jsx("td",{ref:n,className:He("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));is.displayName="TableCell";const zyt=D.forwardRef(({className:e,...t},n)=>f.jsx("caption",{ref:n,className:He("mt-4 text-sm text-muted-foreground",e),...t}));zyt.displayName="TableCaption";const Hyt=ihe,Vge=D.forwardRef(({className:e,...t},n)=>f.jsx(l3,{ref:n,className:He(e),...t}));Vge.displayName=l3.displayName;const yF=D.forwardRef(({className:e,...t},n)=>f.jsx(c3,{ref:n,className:He(e),...t}));yF.displayName=c3.displayName;const bF=D.forwardRef(({className:e,...t},n)=>f.jsx(u3,{ref:n,className:He("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));bF.displayName=u3.displayName;const uJ=(e,t)=>{const[n,r]=D.useState([]),[s,i]=D.useState(!0),o=xp(),a=async l=>{i(!0);const c=l??e;try{const u=t==="live"?await o.getAgent(c).liveEvals():await o.getAgent(c).evals();r(u.evals)}catch(u){r([]),console.error("Error fetching evals",u),Qf.error("Error fetching evals")}finally{i(!1)}};return D.useEffect(()=>{a(e)},[e]),{evals:n,isLoading:s,refetchEvals:a}},Uge=D.createContext({handleRefresh:()=>{},isLoading:!0}),GE=He("relative overflow-y-auto overflow-x-hidden invisible hover:visible focus:visible","[&::-webkit-scrollbar]:w-1","[&::-webkit-scrollbar-track]:bg-transparent","[&::-webkit-scrollbar-thumb]:rounded-full","[&::-webkit-scrollbar-thumb]:bg-mastra-border/20","[&>*]:visible"),dJ=He("px-4 py-2 text-sm transition-all border-b-2 border-transparent","data-[state=active]:border-white data-[state=active]:text-white font-medium","data-[state=inactive]:text-mastra-el-4 hover:data-[state=inactive]:text-mastra-el-2","focus-visible:outline-none"),hJ=He("data-[state=inactive]:mt-0 min-h-0 h-full grid grid-rows-[1fr]");function Vyt({agentId:e}){const[t,n]=D.useState("live"),{evals:r,isLoading:s,refetchEvals:i}=uJ(e,"live"),{evals:o,isLoading:a,refetchEvals:l}=uJ(e,"ci"),c={handleRefresh:u,isLoading:t==="live"?s:a};function u(){t==="live"?i():l()}return f.jsx(Uge.Provider,{value:c,children:f.jsxs(Hyt,{value:t,onValueChange:d=>n(d),className:"grid grid-rows-[auto_1fr] h-full min-h-0 pb-2",children:[f.jsx("div",{className:"border-b border-mastra-border/10",children:f.jsxs(Vge,{className:"bg-transparent border-0 h-auto mx-4",children:[f.jsx(yF,{value:"live",className:dJ,children:"Live"}),f.jsx(yF,{value:"ci",className:dJ,children:"CI"})]})}),f.jsx(bF,{value:"live",className:hJ,children:f.jsx(fJ,{evals:r,isCIMode:!1})}),f.jsx(bF,{value:"ci",className:hJ,children:f.jsx(fJ,{evals:o,isCIMode:!0})})]})})}function fJ({evals:e,isCIMode:t=!1}){const{handleRefresh:n,isLoading:r}=D.useContext(Uge),[s,i]=D.useState(new Set),[o,a]=D.useState(""),[l,c]=D.useState({field:"metricName",direction:"asc"});return f.jsxs("div",{className:"min-h-0 grid grid-rows-[auto_1fr]",children:[f.jsxs("div",{className:"flex items-center gap-4 p-4 rounded-lg",children:[f.jsxs("div",{className:"relative flex-1",children:[f.jsx(Tq,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-mastra-el-3"}),f.jsx($d,{id:"search-input",placeholder:"Search metrics, inputs, or outputs...",value:o,onChange:x=>a(x.target.value),className:"pl-10"})]}),f.jsxs(VD,{variant:"secondary",className:"text-xs",children:[e.length," Total Evaluations"]}),f.jsx(Gs,{variant:"ghost",size:"icon",onClick:n,disabled:r,className:"h-9 w-9",children:r?f.jsx(Aq,{className:"h-4 w-4 animate-spin"}):f.jsx(Aq,{className:"h-4 w-4"})})]}),f.jsx("div",{className:"overflow-auto",children:f.jsxs(pF,{className:"w-full",children:[f.jsx(mF,{className:"bg-mastra-bg-2 h-[var(--table-header-height)] sticky top-0 z-10",children:f.jsxs(ef,{className:"border-gray-6 border-b-[0.1px] text-[0.8125rem]",children:[f.jsx(aa,{className:"w-12 h-12"}),f.jsx(aa,{className:"min-w-[200px] max-w-[30%] text-mastra-el-3 cursor-pointer",onClick:()=>p("metricName"),children:f.jsxs("div",{className:"flex items-center",children:["Metric ",m("metricName")]})}),f.jsx(aa,{className:"flex-1 text-mastra-el-3"}),f.jsx(aa,{className:"w-48 text-mastra-el-3 cursor-pointer",onClick:()=>p("averageScore"),children:f.jsxs("div",{className:"flex items-center",children:["Average Score ",m("averageScore")]})}),f.jsx(aa,{className:"w-48 text-mastra-el-3",children:"Evaluations"})]})}),f.jsx(gF,{className:"border-b border-gray-6 relative",children:f.jsx(Ntt,{mode:"wait",presenceAffectsLayout:!1,children:r?Array.from({length:3}).map((x,C)=>f.jsxs(ef,{className:"border-b-gray-6 border-b-[0.1px] text-[0.8125rem]",children:[f.jsx(is,{className:"w-12 h-12",children:f.jsx(da,{className:"h-8 w-8 rounded-full"})}),f.jsx(is,{className:"min-w-[200px] max-w-[30%]",children:f.jsx(da,{className:"h-4 w-3/4"})}),f.jsx(is,{className:"flex-1",children:f.jsx(da,{className:"h-4 w-full"})}),f.jsx(is,{className:"w-48",children:f.jsx(da,{className:"h-4 w-20"})}),f.jsx(is,{className:"w-48",children:f.jsx(da,{className:"h-4 w-20"})})]},C)):b(e).length===0?f.jsxs(ef,{children:[f.jsx(is,{className:"h-12 w-16"}),f.jsx(is,{colSpan:4,className:"h-32 px-4 text-center text-mastra-el-3",children:f.jsxs("div",{className:"flex flex-col items-center gap-2",children:[f.jsx(Tq,{className:"size-5"}),f.jsx("p",{children:"No evaluations found"}),o&&f.jsx("p",{className:"text-sm",children:"Try adjusting your search terms"})]})})]}):b(e).map(x=>f.jsxs(Ce.Fragment,{children:[f.jsxs(ef,{className:"border-b-gray-6 border-b-[0.1px] text-[0.8125rem] cursor-pointer hover:bg-mastra-bg-3",onClick:()=>d(x.metricName),children:[f.jsx(is,{className:"w-12",children:f.jsx("div",{className:"h-8 w-full flex items-center justify-center",children:f.jsx("div",{className:He("transform transition-transform duration-200",s.has(x.metricName)?"rotate-90":""),children:f.jsx(Aje,{className:"h-4 w-4 text-mastra-el-5"})})})}),f.jsx(is,{className:"min-w-[200px] max-w-[30%] font-medium text-mastra-el-5",children:x.metricName}),f.jsx(is,{className:"flex-1 text-mastra-el-5"}),f.jsx(is,{className:"w-48 text-mastra-el-5",children:f.jsx(cJ,{score:x.averageScore})}),f.jsx(is,{className:"w-48 text-mastra-el-5",children:f.jsx(VD,{variant:"secondary",children:x.evals.length})})]}),s.has(x.metricName)&&f.jsx(ef,{children:f.jsx(is,{colSpan:5+(u(x.evals)?1:0)+(t?1:0),className:"p-0",children:f.jsx("div",{className:"bg-mastra-bg-3 rounded-lg m-2",children:f.jsx("div",{className:"w-full",children:f.jsxs(pF,{className:"w-full",children:[f.jsx(mF,{children:f.jsxs(ef,{className:"text-[0.7rem] text-mastra-el-3 hover:bg-transparent",children:[f.jsx(aa,{className:"pl-12 w-[120px]",children:"Timestamp"}),f.jsx(aa,{className:"w-[300px]",children:"Instructions"}),f.jsx(aa,{className:"w-[300px]",children:"Input"}),f.jsx(aa,{className:"w-[300px]",children:"Output"}),f.jsx(aa,{className:"w-[80px]",children:"Score"}),u(x.evals)&&f.jsx(aa,{className:"w-[250px]",children:"Reason"}),t&&f.jsx(aa,{className:"w-[120px]",children:"Test Name"})]})}),f.jsx(gF,{children:x.evals.map((C,S)=>{var A,T;return f.jsxs(ef,{className:"text-[0.8125rem] hover:bg-mastra-bg-2/50",children:[f.jsx(is,{className:"pl-12 text-mastra-el-4 align-top py-4",children:f.jsx(Lyt,{date:C.createdAt})}),f.jsx(is,{className:"text-mastra-el-4 align-top py-4",children:f.jsx("div",{className:He("max-w-[300px] max-h-[200px]",GE),children:f.jsx(WE,{content:C.instructions,label:"instructions",multiline:!0})})}),f.jsx(is,{className:"text-mastra-el-4 align-top py-4",children:f.jsx("div",{className:He("max-w-[300px] max-h-[200px]",GE),children:f.jsx(WE,{content:C.input,label:"input",multiline:!0})})}),f.jsx(is,{className:"text-mastra-el-4 align-top py-4",children:f.jsx("div",{className:He("max-w-[300px] max-h-[200px]",GE),children:f.jsx(WE,{content:C.output,label:"output",multiline:!0})})}),f.jsx(is,{className:"text-mastra-el-4 align-top py-4",children:f.jsx(cJ,{score:C.result.score})}),u(x.evals)&&f.jsx(is,{className:"text-mastra-el-4 align-top py-4",children:f.jsx("div",{className:He("max-w-[300px] max-h-[200px]",GE),children:f.jsx(WE,{content:((A=C.result.info)==null?void 0:A.reason)||"",label:"reason",multiline:!0})})}),t&&f.jsx(is,{className:"text-mastra-el-4 align-top py-4",children:((T=C.testInfo)==null?void 0:T.testName)&&f.jsx(VD,{variant:"secondary",className:"text-xs",children:C.testInfo.testName})})]},`${x.metricName}-${S}`)})})]})})})})})]},x.metricName))})})]})})]});function u(x){return x.some(C=>{var S;return(S=C.result.info)==null?void 0:S.reason})}function d(x){const C=new Set(s);C.has(x)?C.delete(x):C.add(x),i(C)}function p(x){c(C=>({field:x,direction:C.field===x&&C.direction==="asc"?"desc":"asc"}))}function m(x){return l.field!==x?null:l.direction==="asc"?f.jsx(gje,{className:"h-4 w-4 ml-1"}):f.jsx(pje,{className:"h-4 w-4 ml-1"})}function b(x){let C=x.reduce((S,A)=>{const T=S.find(N=>N.metricName===A.metricName);return T?(T.evals.push(A),T.averageScore=T.evals.reduce((N,F)=>N+F.result.score,0)/T.evals.length):S.push({metricName:A.metricName,averageScore:A.result.score,evals:[A]}),S},[]);return o&&(C=C.filter(S=>S.metricName.toLowerCase().includes(o.toLowerCase())||S.evals.some(A=>{var T,N,F;return((T=A.input)==null?void 0:T.toLowerCase().includes(o.toLowerCase()))||((N=A.output)==null?void 0:N.toLowerCase().includes(o.toLowerCase()))||((F=A.instructions)==null?void 0:F.toLowerCase().includes(o.toLowerCase()))}))),C.sort((S,A)=>{const T=l.direction==="asc"?1:-1;switch(l.field){case"metricName":return T*S.metricName.localeCompare(A.metricName);case"averageScore":return T*(S.averageScore-A.averageScore);default:return 0}}),C}}const ih=D.createContext({});function qge({children:e,initialTraces:t=[]}){const[n,r]=D.useState(!1),[s,i]=D.useState(null),[o,a]=D.useState(0),[l,c]=D.useState(null),u=()=>{if(o<t.length-1){const m=o+1;a(m);const b=t[m].trace;i(b);const x=b.find(C=>C.parentSpanId===null)||b[0];c(x)}},d=()=>{if(o>0){const m=o-1;a(m);const b=t[m].trace;i(b);const x=b.find(C=>C.parentSpanId===null)||b[0];c(x)}},p=()=>{r(!1),i(null),c(null)};return f.jsx(ih.Provider,{value:{isOpen:n,setIsOpen:r,trace:s,setTrace:i,traces:t,currentTraceIndex:o,setCurrentTraceIndex:a,nextTrace:u,prevTrace:d,span:l,setSpan:c,clearData:p},children:e})}const Uyt={default:"[&>tbody>tr]:h-table-row",small:"[&>tbody>tr]:h-table-row-small"},Wge=({className:e,children:t,size:n="default"})=>f.jsx("table",{className:Yn("w-full",Uyt[n],e),children:t}),Gge=({className:e,children:t})=>f.jsx("thead",{children:f.jsx("tr",{className:Yn("h-table-header border-b-sm border-border1",e),children:t})}),Qy=({className:e,children:t,...n})=>f.jsx("th",{className:Yn("text-icon3 text-ui-sm h-full text-left font-normal uppercase first:pl-5 last:pr-5 whitespace-nowrap",e),...n,children:t}),K3=({className:e,children:t})=>f.jsx("tbody",{className:Yn("",e),children:t}),L0=({className:e,children:t,selected:n=!1,onClick:r})=>f.jsx("tr",{className:Yn("border-b-sm border-border1 hover:bg-surface3",n&&"bg-surface4",r&&"cursor-pointer",e),onClick:r,children:t}),qyt=e=>{const t=new Intl.DateTimeFormat("en-US",{month:"short"}).format(e).toUpperCase(),n=e.getDate(),r=`${t} ${n}`,s=new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(e);return{day:r,time:s}},Go=({className:e,children:t,...n})=>f.jsx("td",{className:Yn("text-icon5 first:pl-5 last:pr-5",e),...n,children:f.jsx("div",{className:Yn("flex h-full w-full shrink-0 items-center"),children:t})}),Wyt=({className:e,children:t})=>f.jsx(Go,{className:e,children:f.jsx(tt,{as:"span",variant:"ui-md",className:"w-full truncate",children:t})}),Gyt=({className:e,children:t,unit:n})=>f.jsx(Go,{className:e,children:f.jsxs("div",{className:"flex min-w-0 items-center",children:[f.jsx(tt,{as:"span",variant:"ui-md",className:"shrink-0",children:t}),f.jsx(tt,{as:"span",variant:"ui-sm",className:"text-icon3 w-full truncate",children:n})]})}),Yyt=({dateTime:e,...t})=>{const{day:n,time:r}=qyt(e);return f.jsx(Go,{...t,children:f.jsxs("div",{className:"shrink-0",children:[f.jsx(tt,{as:"span",variant:"ui-sm",className:"text-icon3",children:n})," ",f.jsx(tt,{as:"span",variant:"ui-md",children:r})]})})},IL=({name:e,description:t,icon:n,meta:r,...s})=>f.jsx(Go,{...s,children:f.jsxs("div",{className:"flex items-center gap-[14px]",children:[f.jsx(Nt,{size:"lg",className:"text-icon5",children:n}),f.jsxs("div",{className:"flex flex-col gap-0",children:[f.jsx(tt,{as:"span",variant:"ui-md",className:"text-icon6 font-medium !leading-tight",children:e}),t&&f.jsx(tt,{as:"span",variant:"ui-xs",className:"text-icon3 w-full max-w-[300px] truncate !leading-tight",children:t})]}),r]})}),Xyt=()=>{const{setTrace:e,isOpen:t,setIsOpen:n,trace:r,setSpan:s,setCurrentTraceIndex:i}=D.useContext(ih);return{openTrace:(a,l)=>{var u;e(a);const c=a.find(d=>d.parentSpanId===null)||a[0];s(c),i(l),!(t&&((u=r==null?void 0:r[0])==null?void 0:u.id)!==a[0].id)&&n(d=>!d)}}},iS=(e,t)=>Number(e.toPrecision(t)),Kyt=({colsCount:e})=>f.jsx(K3,{children:f.jsx(L0,{children:f.jsx(Go,{colSpan:e,className:"text-center py-4",children:f.jsx(tt,{children:"No traces found"})})})}),Zyt=({error:e,colsCount:t})=>f.jsx(K3,{children:f.jsx(L0,{children:f.jsx(Go,{colSpan:t,className:"text-center py-4",children:f.jsx(tt,{children:e.message})})})}),Jyt=({trace:e,index:t,isActive:n})=>{const{openTrace:r}=Xyt(),s=e.trace.some(i=>i.status.code!==0);return f.jsxs(L0,{className:n?"bg-surface4":"",onClick:()=>r(e.trace,t),children:[f.jsx(Yyt,{dateTime:new Date(e.started/1e3)}),f.jsxs(Wyt,{title:e.traceId,children:[e.traceId.substring(0,7),"..."]}),f.jsx(Gyt,{unit:"ms",children:iS(e.duration/1e3,3)}),f.jsx(Go,{children:f.jsx("button",{onClick:()=>r(e.trace,t),children:f.jsx(vr,{icon:f.jsx(hF,{}),children:e.trace.length})})}),f.jsx(Go,{children:s?f.jsx(vr,{variant:"error",icon:f.jsx(xb,{}),children:"Failed"}):f.jsx(vr,{icon:f.jsx(Vg,{}),variant:"success",children:"Success"})})]})},Yge=({traces:e,error:t})=>{const n=!e||e.length===0,{currentTraceIndex:r}=D.useContext(ih),s=4;return f.jsxs(Wge,{size:"small",children:[f.jsxs(Gge,{children:[f.jsx(Qy,{width:120,children:"Time"}),f.jsx(Qy,{width:"auto",children:"Trace Id"}),f.jsx(Qy,{width:120,children:"Duration"}),f.jsx(Qy,{width:120,children:"Spans"}),f.jsx(Qy,{width:120,children:"Status"})]}),t?f.jsx(Zyt,{error:t,colsCount:s}):n?f.jsx(Kyt,{colsCount:s}):f.jsx(f.Fragment,{children:f.jsx(K3,{children:e.map((i,o)=>f.jsx(Jyt,{trace:i,index:o,isActive:o===r},i.traceId))})})]})},Qyt=({defaultWidth:e,minimumWidth:t,maximumWidth:n,setCurrentWidth:r})=>{const[s,i]=D.useState(!1),[o,a]=D.useState(e),l=D.useRef(null),c=D.useRef(0),u=D.useRef(0),d=p=>{p.preventDefault(),i(!0),c.current=p.clientX,u.current=o};return D.useEffect(()=>{a(e),r==null||r(e)},[e]),D.useEffect(()=>{const p=b=>{if(!s||!l.current)return;const x=l.current.offsetWidth,S=(c.current-b.clientX)/x*100,A=Math.min(Math.max(u.current+S,t),n);a(A),r==null||r(A)},m=()=>{i(!1)};return s&&(window.addEventListener("mousemove",p),window.addEventListener("mouseup",m)),()=>{window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",m)}},[s]),{sidebarWidth:o,isDragging:s,handleMouseDown:d,containerRef:l}},Xge=({children:e,defaultWidth:t,minimumWidth:n,maximumWidth:r,className:s,disabled:i=!1,setCurrentWidth:o,dividerPosition:a="left"})=>{const{sidebarWidth:l,isDragging:c,handleMouseDown:u,containerRef:d}=Qyt({defaultWidth:i?100:t,minimumWidth:n,maximumWidth:r,setCurrentWidth:o});return f.jsxs("div",{className:He("w-full h-full relative",s),ref:d,style:{width:`${l}%`},children:[!i&&a==="left"?f.jsx("div",{className:`w-px bg-border1 h-full cursor-col-resize hover:w-1.5 hover:bg-mastra-border-2 hover:bg-[#424242] active:bg-mastra-border-3 active:bg-[#3e3e3e] transition-colors absolute inset-y-0 z-10
|
|
716
716
|
${c?"bg-border2 w-1.5 cursor- col-resize":""}`,onMouseDown:u}):null,e,!i&&a==="right"?f.jsx("div",{className:`w-px bg-border1 h-full cursor-col-resize hover:w-1.5 hover:bg-border2 active:bg-border3 transition-colors absolute inset-y-0 z-10
|
|
717
717
|
${c?"bg-border2 w-1.5 cursor- col-resize":""}`,onMouseDown:u}):null]})},e0t={md:"h-button-md gap-md",lg:"h-button-lg gap-lg"},t0t={default:"bg-surface2 hover:bg-surface4 text-icon3 hover:text-icon6",light:"bg-surface3 hover:bg-surface5 text-icon6"},vn=({className:e,as:t,size:n="md",variant:r="default",...s})=>{const i=t||"button";return f.jsx(i,{className:Yn("bg-surface2 border-sm border-border1 px-lg text-ui-md inline-flex items-center justify-center rounded-md border",t0t[r],e0t[n],e),...s})},n0t=({children:e})=>f.jsx("ol",{children:e}),r0t={agent:"bg-accent1"},s0t=({durationMs:e,tokenCount:t,variant:n,progressPercent:r,offsetPercent:s})=>{const i=n?r0t[n]:"bg-accent3",o=Math.min(100,r);return f.jsxs("div",{className:"w-[80px] xl:w-[166px] shrink-0",children:[f.jsx("div",{className:"bg-surface4 relative h-[6px] w-full rounded-full p-px overflow-hidden",children:f.jsx("div",{className:Yn("absolute h-1 rounded-full",i),style:{width:`${o}%`,left:`${s}%`}})}),f.jsxs("div",{className:"flex items-center gap-4 pt-0.5",children:[f.jsxs(tt,{variant:"ui-sm",className:"text-icon2 font-medium",children:[iS(e,3),"ms"]}),t&&f.jsxs(tt,{variant:"ui-sm",className:"text-icon2 font-medium",children:[t,"t"]})]})]})},Kge={tool:Bd,agent:sh,workflow:wp,memory:jge,rag:hF,storage:qgt,eval:Kgt,other:hF},Zge={tool:"text-[#ECB047]",agent:"text-accent1",workflow:"text-accent3",memory:"text-accent2",rag:"text-accent2",storage:"text-accent2",eval:"text-accent4",other:"text-icon6"},Jge=({children:e,durationMs:t,variant:n,tokenCount:r,spans:s,isRoot:i,onClick:o,isActive:a,offsetMs:l,totalDurationMs:c})=>{const[u,d]=D.useState(!0),p=Kge[n],m=Zge[n],b=t/c*100,x=l/c*100,C=o?"button":"div";return f.jsxs("li",{children:[f.jsxs("div",{className:Yn("flex justify-between items-center gap-2 rounded-md pl-2",a&&"bg-surface4"),children:[f.jsxs("div",{className:"flex h-8 items-center gap-1 min-w-0",children:[s?f.jsx("button",{type:"button","aria-label":u?"Collapse span":"Expand span","aria-expanded":u,className:"text-icon3 flex h-4 w-4",onClick:()=>d(!u),children:f.jsx(Nt,{children:f.jsx(Ugt,{className:Yn("transition-transform -rotate-90",{"rotate-0":u})})})}):f.jsx("div",{"aria-hidden":!0,className:"h-full w-4",children:!i&&f.jsx("div",{className:"ml-[7px] h-full w-px rounded-full"})}),f.jsxs(C,{className:"flex items-center gap-2 min-w-0",onClick:o,children:[f.jsx("div",{className:Yn("bg-surface4 flex items-center justify-center rounded-md p-[3px]",m),children:f.jsx(Nt,{children:f.jsx(p,{})})}),f.jsx(tt,{variant:"ui-md",className:"text-icon6 truncate",children:e})]})]}),f.jsx(s0t,{durationMs:t,tokenCount:r,variant:n==="agent"?"agent":void 0,progressPercent:b,offsetPercent:x})]}),u&&s&&f.jsx("div",{className:"ml-4",children:s})]})},Qge=({children:e})=>f.jsx("ol",{children:e}),i0t=({name:e,spans:t,durationMs:n,tokenCount:r,onClick:s,variant:i,isActive:o,totalDurationMs:a})=>f.jsx(Jge,{isRoot:!0,durationMs:n,variant:i,spans:f.jsx(Qge,{children:t}),onClick:s,isActive:o,offsetMs:0,totalDurationMs:a,children:e}),T2=e=>{const t=Object.keys(e.attributes||{}).map(a=>a.toLowerCase()),n=e.name.toLowerCase();return n.startsWith("ai.")?n.includes("tool")?"tool":"other":t.some(a=>a.includes("memory")||a.includes("storage"))?"memory":t.some(a=>a.includes("tool"))?"tool":t.some(a=>a.includes("agent."))?"agent":n.includes(".insert")&&t.find(l=>{var c,u;return(u=String((c=e.attributes)==null?void 0:c[l]))==null?void 0:u.includes("mastra_evals")})?"eval":"other"};function eye(e,t,n,r=null){return e.filter(s=>s.parentSpanId===r).map(s=>({...s,children:eye(e,t,n,s.id),offset:(s.startTime-t)/1e3,duration:s.duration/1e3,totalDurationMs:n}))}const o0t=e=>{if(e.length===0)return[];let t,n;const r=[],s=e.length;for(let o=s-1;o>=0;o--){const a=e[o];(!t||a.startTime<t)&&(t=a.startTime),(!n||a.endTime>n)&&(n=a.endTime),a.name!==".insert"&&a.name!=="mastra.getStorage"&&r.push(a)}if(!t||!n)return[];const i=(n-t)/1e3;return eye(r,t,i)},tye=({spanNodes:e})=>{const{span:t,setSpan:n}=D.useContext(ih);return f.jsx(Qge,{children:e.map(r=>{const s=r.id===(t==null?void 0:t.id);return f.jsx(Jge,{spans:r.children.length>0&&f.jsx(tye,{spanNodes:r.children}),durationMs:r.duration,offsetMs:r.offset,variant:T2(r),isActive:s,onClick:()=>n(r),totalDurationMs:r.totalDurationMs,children:r.name},r.id)})})};function a0t({trace:e}){const{span:t,setSpan:n}=D.useContext(ih),r=o0t(e);return f.jsx(n0t,{children:r.map(s=>f.jsx(i0t,{name:s.name,durationMs:s.duration,totalDurationMs:s.totalDurationMs,spans:f.jsx(tye,{spanNodes:s.children}),variant:T2(s),isActive:s.id===(t==null?void 0:t.id),onClick:()=>n(s)}))})}const ts=({children:e,border:t=!0})=>f.jsx("header",{className:Yn("h-header-default z-50 flex w-full items-center gap-[18px] bg-transparent px-5",{"border-b-sm border-border1":t}),children:e}),ec=({children:e})=>f.jsx(tt,{as:"h1",variant:"ui-lg",className:"font-medium text-white",children:e}),l0t=({children:e})=>f.jsx("div",{className:"ml-auto",children:e}),jL=({children:e})=>f.jsx("div",{className:"gap-lg flex items-center",children:e});function c0t(){const{trace:e,currentTraceIndex:t,prevTrace:n,nextTrace:r,traces:s}=D.useContext(ih),i=s[t];if(!i||!e)return null;const o=e.some(a=>a.status.code!==0);return f.jsxs("aside",{children:[f.jsxs(ts,{children:[f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(vn,{className:"bg-transparent border-none",onClick:n,disabled:t===0,children:f.jsx(Nt,{children:f.jsx(LT,{})})}),f.jsx(vn,{className:"bg-transparent border-none",onClick:r,disabled:t===s.length-1,children:f.jsx(Nt,{children:f.jsx(uv,{})})})]}),f.jsxs("div",{className:"flex items-center gap-1 justify-between w-full",children:[f.jsxs(tt,{variant:"ui-lg",className:"font-medium text-icon5 shrink-0",children:["Trace ",f.jsx("span",{className:"ml-2 text-icon3",children:i.traceId.substring(0,7)})]}),o&&f.jsx(vr,{variant:"error",icon:f.jsx(xb,{}),children:"Failed"})]})]}),f.jsx("div",{className:"p-5",children:f.jsx(a0t,{trace:e})})]})}const nye=()=>D.useMemo(()=>QT({settings:{fontFamily:"var(--geist-mono)",fontSize:"0.8rem",lineHighlight:"transparent",gutterBackground:"transparent",gutterForeground:Ptt.surface3,background:"transparent"},styles:[{tag:[Se.className,Se.propertyName]}]}),[]),pJ=({data:e})=>{const t=JSON.stringify(e,null,2),n=nye();return f.jsx("div",{className:"rounded-md bg-[#1a1a1a] p-1 font-mono",children:f.jsx(bd,{value:t,theme:n,extensions:[cg]})})};function u0t(e){const t=new Date(e/1e3);return new Intl.DateTimeFormat("en-US",{month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0}).format(t)}function d0t(e){const t=new Date(e/1e6);return new Intl.DateTimeFormat("en-US",{month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0}).format(t)}function rye(e){if(e.includes(".argument."))return"Input";if(e.includes(".result"))return"Output";const t=e.split(".").join(" ").split("_").join(" ").replaceAll("ai","AI");return t.substring(0,1).toUpperCase()+t.substring(1)}function h0t(){var l;const{span:e,setSpan:t,trace:n,setIsOpen:r}=D.useContext(ih);if(!e||!n)return null;const s=()=>{const c=n.findIndex(u=>u.id===e.id);c!==-1&&c<n.length-1&&t(n[c+1])},i=()=>{const c=n.findIndex(u=>u.id===e.id);c!==-1&&c>0&&t(n[c-1])},o=Kge[T2(e)],a=Zge[T2(e)];return f.jsxs("aside",{children:[f.jsxs(ts,{children:[f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(vn,{className:"bg-transparent border-none",onClick:s,children:f.jsx(Nt,{children:f.jsx(LT,{})})}),f.jsx(vn,{className:"bg-transparent border-none",onClick:i,children:f.jsx(Nt,{children:f.jsx(uv,{})})})]}),f.jsx("div",{children:f.jsxs(tt,{variant:"ui-lg",className:"font-medium text-icon5",as:"h2",children:["Span ",f.jsx("span",{className:"ml-2 text-icon3",children:e.id.substring(0,7)})]})}),f.jsx("div",{className:"ml-auto flex items-center gap-2",children:f.jsx(vn,{className:"bg-transparent border-none",onClick:()=>r(!1),children:f.jsx(Nt,{children:f.jsx(xb,{})})})})]}),f.jsxs("div",{className:"p-5",children:[f.jsxs(tt,{variant:"header-md",as:"h3",className:"text-icon-6 flex items-center gap-4 pb-3",children:[f.jsx(Nt,{size:"lg",className:"bg-surface4 p-1 rounded-md",children:f.jsx(o,{className:a})}),e.name]}),f.jsx("div",{className:"flex flex-row gap-2 items-center",children:e.status.code===0?f.jsxs(vr,{icon:f.jsx(Qgt,{}),variant:"success",children:[iS(e.duration/1e3,3),"ms"]}):f.jsxs(vr,{variant:"error",icon:f.jsx(xb,{}),children:["Failed in ",iS(e.duration/1e3,3),"ms"]})}),f.jsx("hr",{className:"border-border1 border-sm my-5"}),f.jsxs("dl",{className:"grid grid-cols-2 justify-between gap-2",children:[f.jsx("dt",{className:"font-medium text-ui-md text-icon3",children:"ID"}),f.jsx("dd",{className:"text-ui-md text-icon6",children:e.id}),f.jsx("dt",{className:"font-medium text-ui-md text-icon3",children:"Created at"}),f.jsx("dd",{className:"text-ui-md text-icon6",children:e.startTime?u0t(e.startTime):""})]}),e.attributes&&f.jsx(f0t,{attributes:e.attributes}),((l=e.events)==null?void 0:l.length)>0&&f.jsx(p0t,{span:e})]})]})}function f0t({attributes:e}){if(!e)return null;const t=Object.entries(e);if(t.length===0)return null;const n=["http.request_id","componentName"];return f.jsx("div",{children:t.filter(([r])=>!n.includes(r)).map(([r,s])=>f.jsxs("div",{children:[f.jsx("hr",{className:"border-border1 border-sm my-5"}),f.jsx(tt,{as:"h4",variant:"ui-md",className:"text-icon3 pb-2",children:rye(r)}),f.jsx(sye,{value:s})]},r))})}const sye=({value:e})=>{if(!e)return f.jsx(tt,{as:"p",variant:"ui-md",className:"text-icon6",children:"N/A"});if(typeof e=="number"||typeof e=="boolean")return f.jsx(tt,{as:"p",variant:"ui-md",className:"text-icon6",children:String(e)});if(typeof e=="object")return f.jsx(pJ,{data:e});try{return f.jsx(pJ,{data:JSON.parse(e)})}catch{return f.jsx(tt,{as:"p",variant:"ui-md",className:"text-icon6",children:String(e)})}};function p0t({span:e}){return e.events?f.jsxs("div",{children:[f.jsx("hr",{className:"border-border1 border-sm my-5"}),f.jsx(tt,{as:"p",variant:"ui-md",className:"text-icon6 pb-2",children:"Events"}),e.events.map(t=>{var r;const n=t===e.events[e.events.length-1];return f.jsxs(Ce.Fragment,{children:[f.jsxs("div",{children:[f.jsxs("dl",{className:"grid grid-cols-2 justify-between gap-2 pb-2",children:[f.jsx("dt",{className:"font-medium text-ui-md text-icon3",children:"Name"}),f.jsx("dd",{className:"text-ui-md text-icon6",children:t.name}),f.jsx("dt",{className:"font-medium text-ui-md text-icon3",children:"Time"}),f.jsx("dd",{className:"text-ui-md text-icon6",children:t.timeUnixNano?d0t(Number(t.timeUnixNano)):"N/A"})]}),((r=t.attributes)==null?void 0:r.length)>0?f.jsx("ul",{className:"space-y-2",children:t.attributes.filter(s=>s!==null).map(s=>f.jsxs("li",{children:[f.jsx(tt,{as:"h4",variant:"ui-md",className:"text-icon3 pb-2",children:rye(s.key)}),f.jsx(sye,{value:s.value})]},s.key))}):null]},t.name),!n&&f.jsx("hr",{className:"border-border1 border-sm my-5"})]},t.name)})]}):null}const iye=({onResize:e})=>f.jsx(Xge,{className:"h-full absolute right-0 inset-y-0 bg-surface2",defaultWidth:80,minimumWidth:50,maximumWidth:80,setCurrentWidth:e,children:f.jsxs("div",{className:"h-full grid grid-cols-2",children:[f.jsx("div",{className:"overflow-x-scroll w-full h-[calc(100%-40px)]",children:f.jsx(c0t,{})}),f.jsx("div",{className:"h-[calc(100%-40px)] overflow-x-scroll w-full border-l border-border1",children:f.jsx(h0t,{})})]})});function m0t({className:e,traces:t,error:n}){return f.jsx(qge,{initialTraces:t||[],children:f.jsx(g0t,{className:e,traces:t,error:n})})}function g0t({className:e,traces:t,error:n}){const[r,s]=D.useState(100),{isOpen:i}=D.useContext(ih);return f.jsxs("div",{className:Yn("h-full relative overflow-hidden flex",e),children:[f.jsx("div",{className:"h-full overflow-y-scroll w-full",children:f.jsx(Yge,{traces:t,error:n})}),i&&f.jsx(iye,{width:r,onResize:s})]})}const y0t=e=>e;function b0t({children:e,agentId:t,initialMessages:n,memory:r,threadId:s,refreshThreadList:i,modelSettings:o={}}){const[a,l]=D.useState(!1),[c,u]=D.useState(n||[]),[d,p]=D.useState(s),{frequencyPenalty:m,presencePenalty:b,maxRetries:x,maxSteps:C,maxTokens:S,temperature:A,topK:T,topP:N,instructions:F}=o;D.useEffect(()=>{(c.length===0||d!==s)&&n&&s&&r&&(u(n),p(s))},[n,s,r,c]);const I=xp().getNetwork(t),L=voe({isRunning:a,messages:c,convertMessage:y0t,onNew:async B=>{var G;if(((G=B.content[0])==null?void 0:G.type)!=="text")throw new Error("Only text messages are supported");const z=B.content[0].text;u(Q=>[...Q,{role:"user",content:z}]),l(!0);try{let Q=function(){u(X=>{const W={role:"assistant",content:[{type:"text",text:q}]};return V?[...X.slice(0,-1),W]:(V=!0,[...X,W])})};const $=await I.stream({messages:[{role:"user",content:z}],runId:t,frequencyPenalty:m,presencePenalty:b,maxRetries:x,maxSteps:C,maxTokens:S,temperature:A,topK:T,topP:N,instructions:F,...r?{threadId:s,resourceId:t}:{}});if(!$.body)throw new Error("No response body");const J=[];let q="",U=null,V=!1;await iI({stream:$.body,onTextPart(X){U==null?(U={type:"text",text:X},J.push(U)):U.text+=X,q+=X,Q()},async onToolCallPart(X){console.log("Tool call received:",X),u(W=>{const K=W[W.length-1];if(K&&K.role==="assistant"){const H={...K,content:Array.isArray(K.content)?[...K.content,{type:"tool-call",toolCallId:X.toolCallId,toolName:X.toolName,args:X.args}]:[...typeof K.content=="string"?[{type:"text",text:K.content}]:[],{type:"tool-call",toolCallId:X.toolCallId,toolName:X.toolName,args:X.args}]};return[...W.slice(0,-1),H]}const se={role:"assistant",content:[{type:"text",text:q},{type:"tool-call",toolCallId:X.toolCallId,toolName:X.toolName,args:X.args}]};return[...W,se]})},async onToolResultPart(X){console.log("Tool call result received:",X),u(W=>{const K=W[W.length-1];if(K&&K.role==="assistant"&&Array.isArray(K.content)){const se=K.content.map(te=>typeof te=="object"&&te.type==="tool-call"&&te.toolCallId===X.toolCallId?{...te,result:X.result}:te),H={...K,content:se};return[...W.slice(0,-1),H]}return W})},onErrorPart(X){throw new Error(X)}}),console.log(c),l(!1)}catch(Q){console.error("Error occurred in MastraRuntimeProvider",Q),l(!1)}}});return f.jsxs(noe,{runtime:L,children:[" ",e," "]})}function v0t({children:e}){const t=e.replace(/\\n/g,`
|
|
718
718
|
`);return f.jsx(tle,{remarkPlugins:[Ale],components:w0t,className:"space-y-3",children:t})}const oye=Ce.memo(({children:e,language:t,...n})=>{const[r,s]=D.useState([]);return D.useEffect(()=>{iyt(e,t).then(i=>{i&&s(i)})},[e,t]),r.length?f.jsx("pre",{...n,children:f.jsx("code",{children:r.map((i,o)=>f.jsxs(f.Fragment,{children:[f.jsx("span",{children:i.map((a,l)=>{const c=typeof a.htmlStyle=="string"?void 0:a.htmlStyle;return f.jsx("span",{className:"text-shiki-light bg-shiki-light-bg dark:text-shiki-dark dark:bg-shiki-dark-bg",style:c,children:a.content},l)})},o),o!==r.length-1&&`
|
|
@@ -726,7 +726,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
726
726
|
`);return f.jsxs("div",{className:`rounded-md border ${n?"border-mastra-purple/30":"border-mastra-bg-3"} bg-mastra-bg-2`,children:[f.jsxs("div",{className:"p-2 flex items-center justify-between cursor-pointer hover:bg-mastra-bg-3/50",onClick:i,children:[f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx(Pk,{className:`h-3 w-3 transition-transform ${n?"rotate-90 text-mastra-purple":""}`}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsxs("p",{className:"text-xs font-medium text-mastra-el-4",children:["Version ",t+1]}),e.status==="active"&&f.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-green-500/20 text-green-500",children:"Active"}),e.status==="original"&&f.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-blue-500/20 text-blue-500",children:"Original"}),e.status==="draft"&&f.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-yellow-500/20 text-yellow-500",children:"Draft"})]}),f.jsx("p",{className:"text-[10px] text-mastra-el-3",children:e.timestamp.toLocaleString()})]})]}),f.jsx(Tvt,{version:e,index:t,isUpdating:s,isAnalysisExpanded:r===t,onSetActive:a,onDelete:l,onToggleAnalysis:o})]}),n&&f.jsx(_v,{className:"h-[250px]",children:f.jsxs("div",{className:"px-2 pb-2 space-y-2",children:[f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center space-x-1 cursor-pointer hover:bg-mastra-bg-3/50 p-1 rounded-md mb-2",onClick:A=>{A.stopPropagation(),p(!d)},children:[f.jsx(Pk,{className:`h-3 w-3 transition-transform ${d?"rotate-90":""}`}),f.jsx("p",{className:"text-xs font-medium text-mastra-el-4",children:"Instructions"})]}),d&&f.jsx("div",{className:"rounded-md border border-mastra-bg-3",children:f.jsx("div",{className:"mt-2",children:f.jsx(R0e,{content:S(e.content),isCopied:C,onCopy:x})})})]}),e.analysis&&f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center space-x-1 cursor-pointer hover:bg-mastra-bg-3/50 p-1 rounded-md mb-2",onClick:A=>{A.stopPropagation(),b(!m)},children:[f.jsx(Pk,{className:`h-3 w-3 transition-transform ${m?"rotate-90":""}`}),f.jsx("p",{className:"text-xs font-medium text-mastra-el-4",children:"Analysis"})]}),m&&f.jsx("div",{className:"rounded-md border border-mastra-bg-3",children:f.jsx("div",{className:"p-2",children:f.jsx("pre",{className:"text-[10px] text-mastra-el-4 whitespace-pre-wrap font-mono",children:S(e.analysis||"")})})})]}),e.evals&&e.evals.length>0&&f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex items-center space-x-1 cursor-pointer hover:bg-mastra-bg-3/50 p-1 rounded-md",onClick:A=>{A.stopPropagation(),u(!c)},children:[f.jsx(Pk,{className:`h-3 w-3 transition-transform ${c?"rotate-90":""}`}),f.jsxs("p",{className:"text-xs font-medium text-mastra-el-4",children:["Evaluations (",e.evals.length,")"]})]}),c&&f.jsx("div",{className:"pl-4",children:f.jsx("div",{className:"space-y-1 pr-4",children:e.evals.map((A,T)=>f.jsxs("div",{className:"rounded-md border border-mastra-bg-3 p-1.5 text-[10px]",children:[f.jsx("div",{className:"flex items-center justify-between",children:f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx("span",{className:`px-1.5 py-0.5 rounded-full min-w-[32px] text-center ${A.result.score>=.7?"bg-green-500/20 text-green-500":A.result.score>=.4?"bg-yellow-500/20 text-yellow-500":"bg-red-500/20 text-red-500"}`,children:A.result.score.toFixed(2)}),f.jsx("span",{className:"text-mastra-el-3 text-[9px]",children:new Date(A.createdAt).toLocaleTimeString()})]})}),f.jsxs("div",{className:"mt-1 space-y-1",children:[f.jsxs("div",{className:"flex gap-1.5",children:[f.jsx("span",{className:"text-mastra-el-3 shrink-0",children:"→"}),f.jsx("span",{className:"text-mastra-el-4",children:A.input})]}),f.jsxs("div",{className:"flex gap-1.5",children:[f.jsx("span",{className:"text-mastra-el-3 shrink-0",children:"←"}),f.jsx("span",{className:"text-mastra-el-4",children:A.output})]}),f.jsxs("div",{className:"flex gap-1.5 text-[9px] text-mastra-el-3",children:[f.jsx("span",{className:"shrink-0",children:"⚬"}),f.jsx("span",{children:A.result.info.reason})]})]})]},T))})})]})]})})]})}function Nvt({versions:e,isUpdating:t,copiedVersions:n,onCopy:r,onSetActive:s,onDelete:i}){const[o,a]=D.useState(null),[l,c]=D.useState(null);return f.jsx(_v,{className:"flex-1",children:f.jsx("div",{className:"space-y-2 pr-4",children:e.map((u,d)=>f.jsx(_vt,{version:u,index:d,isExpanded:o===d,isAnalysisExpanded:l,isUpdating:t,copiedVersions:n,onToggleExpand:()=>{if(o===d)return a(null);a(d)},onToggleAnalysis:()=>{if(l===d)return c(null);c(d)},onCopy:r,onSetActive:s,onDelete:i},d))})})}const Pvt=({open:e,onOpenChange:t,onDelete:n,onSetActive:r,versions:s,isUpdating:i})=>f.jsx(Dvt,{open:e,onOpenChange:t,children:f.jsxs(j0e,{children:[f.jsxs(L0e,{children:[f.jsx(B0e,{children:"Version History"}),f.jsx($0e,{children:"View the history of changes to the agent's instructions."})]}),f.jsx(Nvt,{versions:s,isUpdating:i,copiedVersions:{},onSetActive:r,onDelete:n})]})});function Mvt({agentId:e}){const{agent:t}=Av(e),[n,r]=D.useState(!1),{versions:s,isUpdating:i,versionToDelete:o,setVersions:a,setVersionToDelete:l,deleteVersion:c,updateVersion:u,setVersionActive:d}=Evt(e,t==null?void 0:t.instructions),{enhancedPrompt:p,isEnhancing:m,userComment:b,enhancePrompt:x,setUserComment:C,clearEnhancement:S,applyChanges:A}=kvt({agentId:e,instructions:t==null?void 0:t.instructions,versions:s,onVersionCreate:T=>{a(N=>[...N,T])},onVersionUpdate:u});return t?f.jsxs(f.Fragment,{children:[f.jsx(Cvt,{instructions:t.instructions,enhancedPrompt:p,isEnhancing:m,userComment:b,onEnhance:x,onCancel:S,onSave:A,onCommentChange:C,agentId:e,onShowHistory:()=>r(!0)}),f.jsx(Pvt,{versions:s,isUpdating:i,onSetActive:d,onDelete:l,open:n,onOpenChange:r}),f.jsx(br,{open:o!==null,onOpenChange:()=>l(null),children:f.jsxs(br.Content,{children:[f.jsxs(br.Header,{children:[f.jsxs(br.Title,{children:["Delete Version ",o!==null?o+1:""]}),f.jsx(br.Description,{children:"Are you sure you want to delete this version? This action cannot be undone."})]}),f.jsxs(br.Footer,{children:[f.jsx(br.Cancel,{children:"Cancel"}),f.jsx(br.Action,{className:"bg-red-500 hover:bg-red-600",onClick:()=>{o!==null&&c(o)},children:"Delete"})]})]})})]}):null}function Fvt({tools:e,agentId:t}){return f.jsx("ul",{className:"space-y-2",children:e.map(n=>f.jsx("li",{children:f.jsx(Ovt,{tool:n,agentId:t})},n.id))})}const Ovt=({tool:e,agentId:t})=>{const n=D.useRef(null);return f.jsxs(n_,{onClick:()=>{var r;return(r=n.current)==null?void 0:r.click()},children:[f.jsx(r_,{children:f.jsx(Bd,{className:"group-hover/entity:text-[#ECB047]"})}),f.jsxs(o_,{children:[f.jsx(s_,{children:f.jsx(Xt,{ref:n,to:`/tools/${t}/${e.id}`,children:e.name})}),f.jsx(i_,{children:e.description})]})]})};function Rvt({workflows:e,agentId:t}){return f.jsx("ul",{children:e.map(n=>f.jsx("li",{children:f.jsx(Ivt,{workflow:n,agentId:t})},n.id))})}const Ivt=({workflow:e,agentId:t})=>{const n=D.useRef(null);return f.jsxs(n_,{onClick:()=>{var r;return(r=n.current)==null?void 0:r.click()},children:[f.jsx(r_,{children:f.jsx(wp,{className:"group-hover/entity:text-accent3"})}),f.jsxs(o_,{children:[f.jsx(s_,{children:f.jsx(Xt,{ref:n,to:`/workflows/${t}/${e.id}`,children:e.id})}),f.jsx(i_,{children:e.description})]})]})},jvt=({agent:e,agentId:t})=>{const n=Object.entries((e==null?void 0:e.tools)??{}).map(([s,i])=>({name:s,id:i.id,description:i.description})),r=Object.entries((e==null?void 0:e.workflows)??{}).map(([s,i])=>({id:s,description:`Contains ${Object.keys(i.steps||{}).length} steps`}));return f.jsxs("div",{className:"py-2 overflow-y-auto h-full",children:[f.jsx("div",{className:"px-5",children:f.jsx(Mvt,{agentId:t})}),f.jsx("hr",{className:"border-border1 border-sm my-5"}),f.jsxs("div",{className:"px-5",children:[f.jsx(tt,{as:"h3",variant:"ui-md",className:"text-icon3 pb-1",children:"Agent Tools"}),n.length>0?f.jsx(Fvt,{tools:n,agentId:t}):f.jsxs(tt,{as:"p",variant:"ui-lg",className:"text-icon6",children:["No tools found. You can add tools by following the"," ",f.jsx(Xt,{to:"https://mastra.ai/en/docs/agents/using-tools-and-mcp",className:"underline",target:"_blank",children:"Agents and Tools"})," ","documentation."]})]}),f.jsx("hr",{className:"border-border1 border-sm my-5"}),f.jsxs("div",{className:"px-5",children:[f.jsx(tt,{as:"h3",variant:"ui-md",className:"text-icon3 pb-1",children:"Agent Workflows"}),r.length>0?f.jsx(Rvt,{workflows:r,agentId:t}):f.jsx(tt,{as:"p",variant:"ui-lg",className:"text-icon6",children:"No workflows were attached to this agent."})]})]})},z0e=0,H0e=1,V0e=2,SJ=3;var CJ=Object.prototype.hasOwnProperty;function EF(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&EF(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(CJ.call(e,n)&&++r&&!CJ.call(t,n)||!(n in t)||!EF(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const hd=new WeakMap,Af=()=>{},Yi=Af(),DF=Object,Fn=e=>e===Yi,$c=e=>typeof e=="function",rp=(e,t)=>({...e,...t}),U0e=e=>$c(e.then),N9={},YE={},GL="undefined",mC=typeof window!=GL,AF=typeof document!=GL,Lvt=mC&&"Deno"in window,Bvt=()=>mC&&typeof window.requestAnimationFrame!=GL,q0e=(e,t)=>{const n=hd.get(e);return[()=>!Fn(t)&&e.get(t)||N9,r=>{if(!Fn(t)){const s=e.get(t);t in YE||(YE[t]=s),n[5](t,rp(s,r),s||N9)}},n[6],()=>!Fn(t)&&t in YE?YE[t]:!Fn(t)&&e.get(t)||N9]};let TF=!0;const $vt=()=>TF,[_F,NF]=mC&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Af,Af],zvt=()=>{const e=AF&&document.visibilityState;return Fn(e)||e!=="hidden"},Hvt=e=>(AF&&document.addEventListener("visibilitychange",e),_F("focus",e),()=>{AF&&document.removeEventListener("visibilitychange",e),NF("focus",e)}),Vvt=e=>{const t=()=>{TF=!0,e()},n=()=>{TF=!1};return _F("online",t),_F("offline",n),()=>{NF("online",t),NF("offline",n)}},Uvt={isOnline:$vt,isVisible:zvt},qvt={initFocus:Hvt,initReconnect:Vvt},kJ=!Ce.useId,lS=!mC||Lvt,Wvt=e=>Bvt()?window.requestAnimationFrame(e):setTimeout(e,1),P9=lS?D.useEffect:D.useLayoutEffect,M9=typeof navigator<"u"&&navigator.connection,EJ=!lS&&M9&&(["slow-2g","2g"].includes(M9.effectiveType)||M9.saveData),XE=new WeakMap,F9=(e,t)=>DF.prototype.toString.call(e)===`[object ${t}]`;let Gvt=0;const PF=e=>{const t=typeof e,n=F9(e,"Date"),r=F9(e,"RegExp"),s=F9(e,"Object");let i,o;if(DF(e)===e&&!n&&!r){if(i=XE.get(e),i)return i;if(i=++Gvt+"~",XE.set(e,i),Array.isArray(e)){for(i="@",o=0;o<e.length;o++)i+=PF(e[o])+",";XE.set(e,i)}if(s){i="#";const a=DF.keys(e).sort();for(;!Fn(o=a.pop());)Fn(e[o])||(i+=o+":"+PF(e[o])+",");XE.set(e,i)}}else i=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},YL=e=>{if($c(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?PF(e):"",[e,t]};let Yvt=0;const MF=()=>++Yvt;async function W0e(...e){const[t,n,r,s]=e,i=rp({populateCache:!0,throwOnError:!0},typeof s=="boolean"?{revalidate:s}:s||{});let o=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const c=p=>typeof a=="function"?a(p):a!==!1,u=i.throwOnError;if($c(n)){const p=n,m=[],b=t.keys();for(const x of b)!/^\$(inf|sub)\$/.test(x)&&p(t.get(x)._k)&&m.push(x);return Promise.all(m.map(d))}return d(n);async function d(p){const[m]=YL(p);if(!m)return;const[b,x]=q0e(t,m),[C,S,A,T]=hd.get(t),N=()=>{const Q=C[m];return($c(i.revalidate)?i.revalidate(b().data,p):i.revalidate!==!1)&&(delete A[m],delete T[m],Q&&Q[0])?Q[0](V0e).then(()=>b().data):b().data};if(e.length<3)return N();let F=r,M;const I=MF();S[m]=[I,0];const j=!Fn(l),L=b(),B=L.data,z=L._c,G=Fn(z)?B:z;if(j&&(l=$c(l)?l(G,B):l,x({data:l,_c:G})),$c(F))try{F=F(G)}catch(Q){M=Q}if(F&&U0e(F))if(F=await F.catch(Q=>{M=Q}),I!==S[m][0]){if(M)throw M;return F}else M&&j&&c(M)&&(o=!0,x({data:G,_c:Yi}));if(o&&!M)if($c(o)){const Q=o(F,G);x({data:Q,error:Yi,_c:Yi})}else x({data:F,error:Yi,_c:Yi});if(S[m][1]=MF(),Promise.resolve(N()).then(()=>{x({_c:Yi})}),M){if(u)throw M;return}return F}}const DJ=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Xvt=(e,t)=>{if(!hd.has(e)){const n=rp(qvt,t),r=Object.create(null),s=W0e.bind(Yi,e);let i=Af;const o=Object.create(null),a=(u,d)=>{const p=o[u]||[];return o[u]=p,p.push(d),()=>p.splice(p.indexOf(d),1)},l=(u,d,p)=>{e.set(u,d);const m=o[u];if(m)for(const b of m)b(d,p)},c=()=>{if(!hd.has(e)&&(hd.set(e,[r,Object.create(null),Object.create(null),Object.create(null),s,l,a]),!lS)){const u=n.initFocus(setTimeout.bind(Yi,DJ.bind(Yi,r,z0e))),d=n.initReconnect(setTimeout.bind(Yi,DJ.bind(Yi,r,H0e)));i=()=>{u&&u(),d&&d(),hd.delete(e)}}};return c(),[e,s,c,i]}return[e,hd.get(e)[4]]},Kvt=(e,t,n,r,s)=>{const i=n.errorRetryCount,o=s.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!Fn(i)&&o>i||setTimeout(r,a,s)},Zvt=EF,[G0e,Jvt]=Xvt(new Map),Qvt=rp({onLoadingSlow:Af,onSuccess:Af,onError:Af,onErrorRetry:Kvt,onDiscarded:Af,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:EJ?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:EJ?5e3:3e3,compare:Zvt,isPaused:()=>!1,cache:G0e,mutate:Jvt,fallback:{}},Uvt),ext=(e,t)=>{const n=rp(e,t);if(t){const{use:r,fallback:s}=e,{use:i,fallback:o}=t;r&&i&&(n.use=r.concat(i)),s&&o&&(n.fallback=rp(s,o))}return n},txt=D.createContext({}),nxt="$inf$",Y0e=mC&&window.__SWR_DEVTOOLS_USE__,rxt=Y0e?window.__SWR_DEVTOOLS_USE__:[],sxt=()=>{Y0e&&(window.__SWR_DEVTOOLS_REACT__=Ce)},ixt=e=>$c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],X0e=()=>rp(Qvt,D.useContext(txt)),oxt=e=>(t,n,r)=>e(t,n&&((...i)=>{const[o]=YL(t),[,,,a]=hd.get(G0e);if(o.startsWith(nxt))return n(...i);const l=a[o];return Fn(l)?n(...i):(delete a[o],l)}),r),axt=rxt.concat(oxt),lxt=e=>function(...n){const r=X0e(),[s,i,o]=ixt(n),a=ext(r,o);let l=e;const{use:c}=a,u=(c||[]).concat(axt);for(let d=u.length;d--;)l=u[d](l);return l(s,i||a.fetcher||null,a)},cxt=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const s=r.indexOf(n);s>=0&&(r[s]=r[r.length-1],r.pop())}};sxt();const O9=Ce.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),R9={dedupe:!0},uxt=(e,t,n)=>{const{cache:r,compare:s,suspense:i,fallbackData:o,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:p}=n,[m,b,x,C]=hd.get(r),[S,A]=YL(e),T=D.useRef(!1),N=D.useRef(!1),F=D.useRef(S),M=D.useRef(t),I=D.useRef(n),j=()=>I.current,L=()=>j().isVisible()&&j().isOnline(),[B,z,G,Q]=q0e(r,S),$=D.useRef({}).current,J=Fn(o)?Fn(n.fallback)?Yi:n.fallback[S]:o,q=(qe,Xe)=>{for(const wt in $){const Ct=wt;if(Ct==="data"){if(!s(qe[Ct],Xe[Ct])&&(!Fn(qe[Ct])||!s(oe,Xe[Ct])))return!1}else if(Xe[Ct]!==qe[Ct])return!1}return!0},U=D.useMemo(()=>{const qe=!S||!t?!1:Fn(a)?j().isPaused()||i?!1:l!==!1:a,Xe=ue=>{const be=rp(ue);return delete be._k,qe?{isValidating:!0,isLoading:!0,...be}:be},wt=B(),Ct=Q(),Rt=Xe(wt),xn=wt===Ct?Rt:Xe(Ct);let Kt=Rt;return[()=>{const ue=Xe(B());return q(ue,Kt)?(Kt.data=ue.data,Kt.isLoading=ue.isLoading,Kt.isValidating=ue.isValidating,Kt.error=ue.error,Kt):(Kt=ue,ue)},()=>xn]},[r,S]),V=tae.useSyncExternalStore(D.useCallback(qe=>G(S,(Xe,wt)=>{q(wt,Xe)||qe()}),[r,S]),U[0],U[1]),X=!T.current,W=m[S]&&m[S].length>0,K=V.data,se=Fn(K)?J&&U0e(J)?O9(J):J:K,H=V.error,te=D.useRef(se),oe=p?Fn(K)?Fn(te.current)?se:te.current:K:se,le=W&&!Fn(H)?!1:X&&!Fn(a)?a:j().isPaused()?!1:i?Fn(se)?!1:l:Fn(se)||l,ne=!!(S&&t&&X&&le),me=Fn(V.isValidating)?ne:V.isValidating,we=Fn(V.isLoading)?ne:V.isLoading,ge=D.useCallback(async qe=>{const Xe=M.current;if(!S||!Xe||N.current||j().isPaused())return!1;let wt,Ct,Rt=!0;const xn=qe||{},Kt=!x[S]||!xn.dedupe,ue=()=>kJ?!N.current&&S===F.current&&T.current:S===F.current,be={isValidating:!1,isLoading:!1},_e=()=>{z(be)},Ke=()=>{const Fe=x[S];Fe&&Fe[1]===Ct&&delete x[S]},Ze={isValidating:!0};Fn(B().data)&&(Ze.isLoading=!0);try{if(Kt&&(z(Ze),n.loadingTimeout&&Fn(B().data)&&setTimeout(()=>{Rt&&ue()&&j().onLoadingSlow(S,n)},n.loadingTimeout),x[S]=[Xe(A),MF()]),[wt,Ct]=x[S],wt=await wt,Kt&&setTimeout(Ke,n.dedupingInterval),!x[S]||x[S][1]!==Ct)return Kt&&ue()&&j().onDiscarded(S),!1;be.error=Yi;const Fe=b[S];if(!Fn(Fe)&&(Ct<=Fe[0]||Ct<=Fe[1]||Fe[1]===0))return _e(),Kt&&ue()&&j().onDiscarded(S),!1;const fe=B().data;be.data=s(fe,wt)?fe:wt,Kt&&ue()&&j().onSuccess(wt,S,n)}catch(Fe){Ke();const fe=j(),{shouldRetryOnError:Ne}=fe;fe.isPaused()||(be.error=Fe,Kt&&ue()&&(fe.onError(Fe,S,fe),(Ne===!0||$c(Ne)&&Ne(Fe))&&(!j().revalidateOnFocus||!j().revalidateOnReconnect||L())&&fe.onErrorRetry(Fe,S,fe,Ge=>{const st=m[S];st&&st[0]&&st[0](SJ,Ge)},{retryCount:(xn.retryCount||0)+1,dedupe:!0})))}return Rt=!1,_e(),!0},[S,r]),je=D.useCallback((...qe)=>W0e(r,F.current,...qe),[]);if(P9(()=>{M.current=t,I.current=n,Fn(K)||(te.current=K)}),P9(()=>{if(!S)return;const qe=ge.bind(Yi,R9);let Xe=0;j().revalidateOnFocus&&(Xe=Date.now()+j().focusThrottleInterval);const Ct=cxt(S,m,(Rt,xn={})=>{if(Rt==z0e){const Kt=Date.now();j().revalidateOnFocus&&Kt>Xe&&L()&&(Xe=Kt+j().focusThrottleInterval,qe())}else if(Rt==H0e)j().revalidateOnReconnect&&L()&&qe();else{if(Rt==V0e)return ge();if(Rt==SJ)return ge(xn)}});return N.current=!1,F.current=S,T.current=!0,z({_k:A}),le&&(Fn(se)||lS?qe():Wvt(qe)),()=>{N.current=!0,Ct()}},[S]),P9(()=>{let qe;function Xe(){const Ct=$c(c)?c(B().data):c;Ct&&qe!==-1&&(qe=setTimeout(wt,Ct))}function wt(){!B().error&&(u||j().isVisible())&&(d||j().isOnline())?ge(R9).then(Xe):Xe()}return Xe(),()=>{qe&&(clearTimeout(qe),qe=-1)}},[c,u,d,S]),D.useDebugValue(oe),i&&Fn(se)&&S){if(!kJ&&lS)throw new Error("Fallback data is required when using Suspense in SSR.");M.current=t,I.current=n,N.current=!1;const qe=C[S];if(!Fn(qe)){const Xe=je(qe);O9(Xe)}if(Fn(H)){const Xe=ge(R9);Fn(oe)||(Xe.status="fulfilled",Xe.value=!0),O9(Xe)}else throw H}return{mutate:je,get data(){return $.data=!0,oe},get error(){return $.error=!0,H},get isValidating(){return $.isValidating=!0,me},get isLoading(){return $.isLoading=!0,we}}},XL=lxt(uxt),K0e=e=>{const{data:t,isLoading:n,mutate:r}=XL(`/api/memory/status?agentId=${e}`,kR,{fallbackData:{result:!1},isPaused:()=>!e});return{memory:t,isLoading:n,mutate:r}},dxt=({resourceid:e,agentId:t,isMemoryEnabled:n})=>{const{data:r,isLoading:s,mutate:i}=XL(`/api/memory/threads?resourceid=${e}&agentId=${t}`,kR,{fallbackData:[],isPaused:()=>!e||!t||!n,revalidateOnFocus:!1});return D.useEffect(()=>{e&&t&&n&&i()},[e,t,n]),D.useEffect(()=>{var a,l;const o=async(c=0)=>{var d,p;const u=await i();if(u!=null&&u.length){const m=u[u.length-1];c=c+1,(p=(d=m==null?void 0:m.title)==null?void 0:d.toLowerCase())!=null&&p.includes("new thread")&&c<3&&setTimeout(()=>{o(c)},500)}};if(r!=null&&r.length){const c=r[r.length-1];(l=(a=c==null?void 0:c.title)==null?void 0:a.toLowerCase())!=null&&l.includes("new thread")&&setTimeout(()=>{o()},500)}},[r]),{threads:r,isLoading:s,mutate:i}},Z0e=({threadId:e,memory:t,agentId:n})=>{const{data:r,isLoading:s,mutate:i}=XL(`/api/memory/threads/${e}/messages?agentId=${n}`,o=>kR(o,!0),{fallbackData:{uiMessages:[],messages:[]},revalidateOnFocus:!1,isPaused:()=>!e||!n,shouldRetryOnError:!1});return D.useEffect(()=>{e&&t&&i()},[e,t]),{messages:r==null?void 0:r.uiMessages,isLoading:s,mutate:i}},hxt=()=>{const{mutate:e}=X0e();return{deleteThread:async({threadId:n,resourceid:r,agentId:s})=>{const i=fetch(`/api/memory/threads/${n}?agentId=${s}`,{method:"DELETE",headers:{"Content-Type":"application/json","x-mastra-dev-playground":"true"}});Wn.promise(i,{loading:"Deleting chat...",success:()=>(e(`/api/memory/threads?resourceid=${r}&agentId=${s}`),"Chat deleted successfully"),error:"Failed to delete chat"})}}};function fxt({agentId:e}){var a;const{agent:t,isLoading:n}=Av(e),{memory:r,isLoading:s}=K0e(e),{handleCopy:i}=Tv({text:e}),o=zye[(t==null?void 0:t.provider)||"openai.chat"];return f.jsxs("div",{className:"grid grid-rows-[auto_1fr] h-full items-start overflow-y-auto border-l-sm border-border1",children:[f.jsxs("div",{className:"p-5 border-b-sm border-border1",children:[f.jsxs("div",{className:"text-icon6 flex items-center gap-2 min-w-0",children:[f.jsx(Nt,{size:"lg",className:"bg-surface4 rounded-md p-1",children:f.jsx(sh,{})}),n||s?f.jsx(Cr,{className:"h-3 w-1/3"}):f.jsx(tt,{variant:"header-md",as:"h2",className:"font-medium truncate",children:t==null?void 0:t.name})]}),f.jsxs("div",{className:"flex items-center gap-2 pt-2 flex-wrap",children:[f.jsxs(ha,{children:[f.jsx(fa,{asChild:!0,children:f.jsx("button",{onClick:i,className:"h-badge-default shrink-0",children:f.jsx(vr,{icon:f.jsx(Y2,{}),variant:"default",children:e})})}),f.jsx(_o,{children:"Copy Agent ID for use in code"})]}),f.jsx(vr,{className:"capitalize shrink-0",icon:o,children:(a=t==null?void 0:t.provider)==null?void 0:a.split(".")[0]}),f.jsx(vr,{className:"shrink-0",children:t==null?void 0:t.modelId}),f.jsxs(ha,{children:[f.jsx(fa,{asChild:!0,children:f.jsx(vr,{icon:f.jsx(jge,{}),variant:r!=null&&r.result?"success":"error",className:"shrink-0",children:r!=null&&r.result?"Memory is On":"Memory is Off"})}),f.jsx(_o,{children:r!=null&&r.result?"Memory is active, your messages will be persisted.":f.jsxs(f.Fragment,{children:[f.jsx("p",{children:"Memory is off, your messages will not be persisted neither available in the context."}),f.jsx("p",{children:f.jsx(Xt,{to:"https://mastra.ai/en/docs/memory/overview",target:"_blank",className:"underline",children:"See documentation to enable memory"})})]})})]})]})]}),f.jsxs(a_,{defaultValue:"overview",className:"overflow-y-auto grid grid-rows-[auto_1fr] h-full",children:[f.jsxs(pC,{className:"flex border-b overflow-x-auto pl-5",children:[f.jsx(ba,{value:"overview",className:"group",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Overview"})}),f.jsx(ba,{value:"model-settings",className:"group",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Model settings"})}),f.jsx(ba,{value:"endpoints",className:"group",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Endpoints"})}),f.jsx(ba,{value:"logs",className:"group ",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Log Drains"})})]}),f.jsxs("div",{className:"overflow-y-auto",children:[f.jsxs(va,{value:"overview",children:[n&&f.jsx(Cr,{className:"h-full"}),t&&f.jsx(jvt,{agent:t,agentId:e})]}),f.jsxs(va,{value:"model-settings",children:[n&&f.jsx(Cr,{className:"h-full"}),t&&f.jsx(ivt,{agent:t})]}),f.jsx(va,{value:"endpoints",children:n?f.jsx(Cr,{className:"h-full"}):f.jsx(ovt,{agentId:e})}),f.jsx(va,{value:"logs",children:n?f.jsx(Cr,{className:"h-full"}):f.jsx(lvt,{agentId:e})})]})]})]})}const pxt=e=>{const t={month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};return new Date(e).toLocaleString("en-us",t).replace(","," at")};function mxt({agentId:e,threadId:t,threads:n,isLoading:r}){const{deleteThread:s}=hxt(),i=Hd(),[o,a]=D.useState(null),l=async()=>{await s({threadId:o,resourceid:e,agentId:e}),a(null),o===t&&i(`/agents/${e}/chat/${Dm()}`)};if(r)return f.jsxs("div",{className:"p-4 w-full h-full space-y-2",children:[f.jsx("div",{className:"flex justify-end",children:f.jsx(Cr,{className:"h-9 w-9"})}),f.jsx(Cr,{className:"h-4"}),f.jsx(Cr,{className:"h-4"}),f.jsx(Cr,{className:"h-4"}),f.jsx(Cr,{className:"h-4"}),f.jsx(Cr,{className:"h-4"})]});const c=[...n||[]].reverse();return f.jsxs("div",{className:"overflow-y-auto h-full w-full",children:[f.jsx(Sbt,{children:f.jsxs(Cbt,{children:[f.jsx(vJ,{children:f.jsx(bJ,{as:Xt,to:`/agents/${e}/chat/${Dm()}`,children:f.jsxs("span",{className:"text-accent1 flex items-center gap-4",children:[f.jsx(Nt,{className:"bg-surface4 rounded-lg",size:"lg",children:f.jsx(Qwe,{})}),"New Chat"]})})}),c.length===0&&f.jsxs(tt,{as:"p",variant:"ui-sm",className:"text-icon3 py-3 px-5",children:["Your conversations will appear here",f.jsx("br",{})," once you start chatting!"]}),c.map(u=>{const d=u.id===t;return f.jsxs(vJ,{isActive:d,children:[f.jsxs(bJ,{as:Xt,to:`/agents/${e}/chat/${u.id}`,children:[f.jsx("span",{className:"text-muted-foreground",children:"Chat from"}),f.jsx("span",{children:pxt(u.createdAt)})]}),f.jsx(kbt,{onClick:()=>a(u.id)})]},u.id)})]})}),f.jsx(br,{open:!!o,onOpenChange:()=>a(null),children:f.jsxs(br.Content,{children:[f.jsxs(br.Header,{children:[f.jsx(br.Title,{children:"Are you absolutely sure?"}),f.jsx(br.Description,{children:"This action cannot be undone. This will permanently delete your chat and remove it from our servers."})]}),f.jsxs(br.Footer,{children:[f.jsx(br.Cancel,{children:"Cancel"}),f.jsx(br.Action,{onClick:l,children:"Continue"})]})]})})]})}var Te=typeof window<"u"?window:void 0,jo=typeof globalThis<"u"?globalThis:Te,J0e=Array.prototype,AJ=J0e.forEach,TJ=J0e.indexOf,xa=jo==null?void 0:jo.navigator,bt=jo==null?void 0:jo.document,To=jo==null?void 0:jo.location,FF=jo==null?void 0:jo.fetch,OF=jo!=null&&jo.XMLHttpRequest&&"withCredentials"in new jo.XMLHttpRequest?jo.XMLHttpRequest:void 0,_J=jo==null?void 0:jo.AbortController,So=xa==null?void 0:xa.userAgent,sn=Te??{},ad={DEBUG:!1,LIB_VERSION:"1.249.4"},I9="$copy_autocapture",gxt=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],fd=function(e){return e.GZipJS="gzip-js",e.Base64="base64",e}({}),yxt=["fatal","error","warning","log","info","debug"];function gn(e,t){return e.indexOf(t)!==-1}var c_=function(e){return e.trim()},RF=function(e){return e.replace(/^\$/,"")},bxt=Array.isArray,Q0e=Object.prototype,ebe=Q0e.hasOwnProperty,u_=Q0e.toString,Mr=bxt||function(e){return u_.call(e)==="[object Array]"},Wa=e=>typeof e=="function",Zr=e=>e===Object(e)&&!Mr(e),v0=e=>{if(Zr(e)){for(var t in e)if(ebe.call(e,t))return!1;return!0}return!1},at=e=>e===void 0,Qr=e=>u_.call(e)=="[object String]",IF=e=>Qr(e)&&e.trim().length===0,Sp=e=>e===null,zn=e=>at(e)||Sp(e),Ci=e=>u_.call(e)=="[object Number]",Yc=e=>u_.call(e)==="[object Boolean]",vxt=e=>e instanceof FormData,xxt=e=>gn(gxt,e),tbe=e=>{var t={t:function(n){if(Te&&(ad.DEBUG||sn.POSTHOG_DEBUG)&&!at(Te.console)&&Te.console){for(var r=("__rrweb_original__"in Te.console[n])?Te.console[n].__rrweb_original__:Te.console[n],s=arguments.length,i=new Array(s>1?s-1:0),o=1;o<s;o++)i[o-1]=arguments[o];r(e,...i)}},info:function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];t.t("log",...r)},warn:function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];t.t("warn",...r)},error:function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];t.t("error",...r)},critical:function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];console.error(e,...r)},uninitializedWarning:n=>{t.error("You must initialize PostHog before calling "+n)},createLogger:n=>tbe(e+" "+n)};return t},Tt=tbe("[PostHog.js]"),fi=Tt.createLogger,wxt=fi("[ExternalScriptsLoader]"),NJ=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return wxt.warn(t+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=bt==null?void 0:bt.querySelectorAll("script");if(r){for(var s=0;s<r.length;s++)if(r[s].src===t)return n()}var i=()=>{if(!bt)return n("document not found");var o=bt.createElement("script");if(o.type="text/javascript",o.crossOrigin="anonymous",o.src=t,o.onload=c=>n(void 0,c),o.onerror=c=>n(c),e.config.prepare_external_dependency_script&&(o=e.config.prepare_external_dependency_script(o)),!o)return n("prepare_external_dependency_script returned null");var a,l=bt.querySelectorAll("body > script");l.length>0?(a=l[0].parentNode)==null||a.insertBefore(o,l[0]):bt.body.appendChild(o)};bt!=null&&bt.body?i():bt==null||bt.addEventListener("DOMContentLoaded",i)};function ut(){return ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ut.apply(null,arguments)}function nbe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}sn.__PosthogExtensions__=sn.__PosthogExtensions__||{},sn.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{var r="/static/"+t+".js?v="+e.version;if(t==="remote-config"&&(r="/array/"+e.config.token+"/config.js"),t==="toolbar"){var s=3e5;r=r+"&t="+Math.floor(Date.now()/s)*s}var i=e.requestRouter.endpointFor("assets",r);NJ(e,i,n)},sn.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{var r=e.requestRouter.endpointFor("api",t);NJ(e,r,n)};var _2={};function Of(e,t,n){if(Mr(e)){if(AJ&&e.forEach===AJ)e.forEach(t,n);else if("length"in e&&e.length===+e.length){for(var r=0,s=e.length;r<s;r++)if(r in e&&t.call(n,e[r],r)===_2)return}}}function dr(e,t,n){if(!zn(e)){if(Mr(e))return Of(e,t,n);if(vxt(e)){for(var r of e.entries())if(t.call(n,r[1],r[0])===_2)return}else for(var s in e)if(ebe.call(e,s)&&t.call(n,e[s],s)===_2)return}}var vs=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Of(n,function(s){for(var i in s)s[i]!==void 0&&(e[i]=s[i])}),e},d_=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Of(n,function(s){Of(s,function(i){e.push(i)})}),e};function UD(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}var PJ=function(e){try{return e()}catch{return}},Sxt=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}catch(s){Tt.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Tt.critical(s)}}},KL=function(e){var t={};return dr(e,function(n,r){(Qr(n)&&n.length>0||Ci(n))&&(t[r]=n)}),t};function Cxt(e,t){return n=e,r=i=>Qr(i)&&!Sp(t)?i.slice(0,t):i,s=new Set,function i(o,a){return o!==Object(o)?r?r(o,a):o:s.has(o)?void 0:(s.add(o),Mr(o)?(l=[],Of(o,c=>{l.push(i(c))})):(l={},dr(o,(c,u)=>{s.has(c)||(l[u]=i(c,u))})),l);var l}(n);var n,r,s}var kxt=["herokuapp.com","vercel.app","netlify.app"];function Ext(e){var t=e==null?void 0:e.hostname;if(!Qr(t))return!1;var n=t.split(".").slice(-2).join(".");for(var r of kxt)if(n===r)return!1;return!0}function rbe(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function Hr(e,t,n,r){var{capture:s=!1,passive:i=!0}=r??{};e==null||e.addEventListener(t,n,{capture:s,passive:i})}var sbe="$people_distinct_id",C1="__alias",k1="__timers",MJ="$autocapture_disabled_server_side",jF="$heatmaps_enabled_server_side",FJ="$exception_capture_enabled_server_side",LF="$error_tracking_suppression_rules",OJ="$web_vitals_enabled_server_side",ibe="$dead_clicks_enabled_server_side",RJ="$web_vitals_allowed_metrics",BF="$session_recording_enabled_server_side",IJ="$console_log_recording_enabled_server_side",jJ="$session_recording_network_payload_capture",LJ="$session_recording_masking",BJ="$session_recording_canvas_recording",$J="$replay_sample_rate",zJ="$replay_minimum_duration",HJ="$replay_script_config",N2="$sesid",E1="$session_is_sampled",$F="$session_recording_url_trigger_activated_session",zF="$session_recording_event_trigger_activated_session",x0="$enabled_feature_flags",qD="$early_access_features",HF="$feature_flag_details",D1="$stored_person_properties",hm="$stored_group_properties",VF="$surveys",KE="$surveys_activated",P2="$flag_call_reported",td="$user_state",UF="$client_session_props",qF="$capture_rate_limit",WF="$initial_campaign_params",GF="$initial_referrer_info",M2="$initial_person_info",F2="$epp",obe="__POSTHOG_TOOLBAR__",VJ="$posthog_cookieless",Dxt=[sbe,C1,"__cmpns",k1,BF,jF,N2,x0,LF,td,qD,HF,hm,D1,VF,P2,UF,qF,WF,GF,F2,M2];function UJ(e){return e instanceof Element&&(e.id===obe||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function h_(e){return!!e&&e.nodeType===1}function Rf(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function abe(e){return!!e&&e.nodeType===3}function lbe(e){return!!e&&e.nodeType===11}function ZL(e){return e?c_(e).split(/\s+/):[]}function qJ(e){var t=Te==null?void 0:Te.location.href;return!!(t&&e&&e.some(n=>t.match(n)))}function O2(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return ZL(t)}function cbe(e){return zn(e)?null:c_(e).split(/(\s+)/).filter(t=>Hb(t)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function f_(e){var t="";return XF(e)&&!hbe(e)&&e.childNodes&&e.childNodes.length&&dr(e.childNodes,function(n){var r;abe(n)&&n.textContent&&(t+=(r=cbe(n.textContent))!==null&&r!==void 0?r:"")}),c_(t)}function ube(e){return at(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var YF=["a","button","form","input","select","textarea","label"];function dbe(e){var t=e.parentNode;return!(!t||!h_(t))&&t}function Axt(e,t,n,r,s){var i,o,a;if(n===void 0&&(n=void 0),!Te||!e||Rf(e,"html")||!h_(e)||(i=n)!=null&&i.url_allowlist&&!qJ(n.url_allowlist)||(o=n)!=null&&o.url_ignorelist&&qJ(n.url_ignorelist))return!1;if((a=n)!=null&&a.dom_event_allowlist){var l=n.dom_event_allowlist;if(l&&!l.some(C=>t.type===C))return!1}for(var c=!1,u=[e],d=!0,p=e;p.parentNode&&!Rf(p,"body");)if(lbe(p.parentNode))u.push(p.parentNode.host),p=p.parentNode.host;else{if(!(d=dbe(p)))break;if(r||YF.indexOf(d.tagName.toLowerCase())>-1)c=!0;else{var m=Te.getComputedStyle(d);m&&m.getPropertyValue("cursor")==="pointer"&&(c=!0)}u.push(d),p=d}if(!function(C,S){var A=S==null?void 0:S.element_allowlist;if(at(A))return!0;var T,N=function(M){if(A.some(I=>M.tagName.toLowerCase()===I))return{v:!0}};for(var F of C)if(T=N(F))return T.v;return!1}(u,n)||!function(C,S){var A=S==null?void 0:S.css_selector_allowlist;if(at(A))return!0;var T,N=function(M){if(A.some(I=>M.matches(I)))return{v:!0}};for(var F of C)if(T=N(F))return T.v;return!1}(u,n))return!1;var b=Te.getComputedStyle(e);if(b&&b.getPropertyValue("cursor")==="pointer"&&t.type==="click")return!0;var x=e.tagName.toLowerCase();switch(x){case"html":return!1;case"form":return(s||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(s||["change","click"]).indexOf(t.type)>=0;default:return c?(s||["click"]).indexOf(t.type)>=0:(s||["click"]).indexOf(t.type)>=0&&(YF.indexOf(x)>-1||e.getAttribute("contenteditable")==="true")}}function XF(e){for(var t=e;t.parentNode&&!Rf(t,"body");t=t.parentNode){var n=O2(t);if(gn(n,"ph-sensitive")||gn(n,"ph-no-capture"))return!1}if(gn(O2(e),"ph-include"))return!0;var r=e.type||"";if(Qr(r))switch(r.toLowerCase()){case"hidden":case"password":return!1}var s=e.name||e.id||"";return!(Qr(s)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(s.replace(/[^a-zA-Z0-9]/g,"")))}function hbe(e){return!!(Rf(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Rf(e,"select")||Rf(e,"textarea")||e.getAttribute("contenteditable")==="true")}var fbe="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",Txt=new RegExp("^(?:"+fbe+")$"),_xt=new RegExp(fbe),pbe="\\d{3}-?\\d{2}-?\\d{4}",Nxt=new RegExp("^("+pbe+")$"),Pxt=new RegExp("("+pbe+")");function Hb(e,t){return t===void 0&&(t=!0),!(zn(e)||Qr(e)&&(e=c_(e),(t?Txt:_xt).test((e||"").replace(/[- ]/g,""))||(t?Nxt:Pxt).test(e)))}function mbe(e){var t=f_(e);return Hb(t=(t+" "+gbe(e)).trim())?t:""}function gbe(e){var t="";return e&&e.childNodes&&e.childNodes.length&&dr(e.childNodes,function(n){var r;if(n&&((r=n.tagName)==null?void 0:r.toLowerCase())==="span")try{var s=f_(n);t=(t+" "+s).trim(),n.childNodes&&n.childNodes.length&&(t=(t+" "+gbe(n)).trim())}catch(i){Tt.error("[AutoCapture]",i)}}),t}function Mxt(e){return function(t){var n=t.map(r=>{var s,i,o="";if(r.tag_name&&(o+=r.tag_name),r.attr_class)for(var a of(r.attr_class.sort(),r.attr_class))o+="."+a.replace(/"/g,"");var l=ut({},r.text?{text:r.text}:{},{"nth-child":(s=r.nth_child)!==null&&s!==void 0?s:0,"nth-of-type":(i=r.nth_of_type)!==null&&i!==void 0?i:0},r.href?{href:r.href}:{},r.attr_id?{attr_id:r.attr_id}:{},r.attributes),c={};return UD(l).sort((u,d)=>{var[p]=u,[m]=d;return p.localeCompare(m)}).forEach(u=>{var[d,p]=u;return c[WJ(d.toString())]=WJ(p.toString())}),o+=":",o+=UD(c).map(u=>{var[d,p]=u;return d+'="'+p+'"'}).join("")});return n.join(";")}(function(t){return t.map(n=>{var r,s,i={text:(r=n.$el_text)==null?void 0:r.slice(0,400),tag_name:n.tag_name,href:(s=n.attr__href)==null?void 0:s.slice(0,2048),attr_class:Fxt(n),attr_id:n.attr__id,nth_child:n.nth_child,nth_of_type:n.nth_of_type,attributes:{}};return UD(n).filter(o=>{var[a]=o;return a.indexOf("attr__")===0}).forEach(o=>{var[a,l]=o;return i.attributes[a]=l}),i})}(e))}function WJ(e){return e.replace(/"|\\"/g,'\\"')}function Fxt(e){var t=e.attr__class;return t?Mr(t)?t:ZL(t):void 0}class ybe{constructor(){this.clicks=[]}isRageClick(t,n,r){var s=this.clicks[this.clicks.length-1];if(s&&Math.abs(t-s.x)+Math.abs(n-s.y)<30&&r-s.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}var Oxt=["localhost","127.0.0.1"],Vb=e=>{var t=bt==null?void 0:bt.createElement("a");return at(t)?null:(t.href=e,t)},Rxt=function(e,t){var n,r;t===void 0&&(t="&");var s=[];return dr(e,function(i,o){at(i)||at(o)||o==="undefined"||(n=encodeURIComponent((a=>a instanceof File)(i)?i.name:i.toString()),r=encodeURIComponent(o),s[s.length]=r+"="+n)}),s.join(t)},R2=function(e,t){for(var n,r=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),s=0;s<r.length;s++){var i=r[s].split("=");if(i[0]===t){n=i;break}}if(!Mr(n)||n.length<2)return"";var o=n[1];try{o=decodeURIComponent(o)}catch{Tt.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},JL=function(e,t,n){if(!e||!t||!t.length)return e;for(var r=e.split("#"),s=r[0]||"",i=r[1],o=s.split("?"),a=o[1],l=o[0],c=(a||"").split("&"),u=[],d=0;d<c.length;d++){var p=c[d].split("=");Mr(p)&&(t.includes(p[0])?u.push(p[0]+"="+n):u.push(c[d]))}var m=l;return a!=null&&(m+="?"+u.join("&")),i!=null&&(m+="#"+i),m},I2=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},GJ=fi("[AutoCapture]");function j9(e,t){return t.length>e?t.slice(0,e)+"...":t}function Ixt(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!h_(t));return t}function jxt(e,t,n,r){var s=e.tagName.toLowerCase(),i={tag_name:s};YF.indexOf(s)>-1&&!n&&(s.toLowerCase()==="a"||s.toLowerCase()==="button"?i.$el_text=j9(1024,mbe(e)):i.$el_text=j9(1024,f_(e)));var o=O2(e);o.length>0&&(i.classes=o.filter(function(u){return u!==""})),dr(e.attributes,function(u){var d;if((!hbe(e)||["name","id","class","aria-label"].indexOf(u.name)!==-1)&&(r==null||!r.includes(u.name))&&!t&&Hb(u.value)&&(d=u.name,!Qr(d)||d.substring(0,10)!=="_ngcontent"&&d.substring(0,7)!=="_nghost")){var p=u.value;u.name==="class"&&(p=ZL(p).join(" ")),i["attr__"+u.name]=j9(1024,p)}});for(var a=1,l=1,c=e;c=Ixt(c);)a++,c.tagName===e.tagName&&l++;return i.nth_child=a,i.nth_of_type=l,i}function Lxt(e,t){for(var n,r,{e:s,maskAllElementAttributes:i,maskAllText:o,elementAttributeIgnoreList:a,elementsChainAsString:l}=t,c=[e],u=e;u.parentNode&&!Rf(u,"body");)lbe(u.parentNode)?(c.push(u.parentNode.host),u=u.parentNode.host):(c.push(u.parentNode),u=u.parentNode);var d,p=[],m={},b=!1,x=!1;if(dr(c,N=>{var F=XF(N);N.tagName.toLowerCase()==="a"&&(b=N.getAttribute("href"),b=F&&b&&Hb(b)&&b),gn(O2(N),"ph-no-capture")&&(x=!0),p.push(jxt(N,i,o,a));var M=function(I){if(!XF(I))return{};var j={};return dr(I.attributes,function(L){if(L.name&&L.name.indexOf("data-ph-capture-attribute")===0){var B=L.name.replace("data-ph-capture-attribute-",""),z=L.value;B&&z&&Hb(z)&&(j[B]=z)}}),j}(N);vs(m,M)}),x)return{props:{},explicitNoCapture:x};if(o||(e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?p[0].$el_text=mbe(e):p[0].$el_text=f_(e)),b){var C,S;p[0].attr__href=b;var A=(C=Vb(b))==null?void 0:C.host,T=Te==null||(S=Te.location)==null?void 0:S.host;A&&T&&A!==T&&(d=b)}return{props:vs({$event_type:s.type,$ce_version:1},l?{}:{$elements:p},{$elements_chain:Mxt(p)},(n=p[0])!=null&&n.$el_text?{$el_text:(r=p[0])==null?void 0:r.$el_text}:{},d&&s.type==="click"?{$external_click_url:d}:{},m)}}class Bxt{constructor(t){this.i=!1,this.o=null,this.rageclicks=new ybe,this.h=!1,this.instance=t,this.m=null}get S(){var t,n,r=Zr(this.instance.config.autocapture)?this.instance.config.autocapture:{};return r.url_allowlist=(t=r.url_allowlist)==null?void 0:t.map(s=>new RegExp(s)),r.url_ignorelist=(n=r.url_ignorelist)==null?void 0:n.map(s=>new RegExp(s)),r}$(){if(this.isBrowserSupported()){if(Te&&bt){var t=r=>{r=r||(Te==null?void 0:Te.event);try{this.k(r)}catch(s){GJ.error("Failed to capture event",s)}};if(Hr(bt,"submit",t,{capture:!0}),Hr(bt,"change",t,{capture:!0}),Hr(bt,"click",t,{capture:!0}),this.S.capture_copied_text){var n=r=>{r=r||(Te==null?void 0:Te.event),this.k(r,I9)};Hr(bt,"copy",n,{capture:!0}),Hr(bt,"cut",n,{capture:!0})}}}else GJ.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.i&&(this.$(),this.i=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.h=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[MJ]:!!t.autocapture_opt_out}),this.o=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.m=t}getElementSelectors(t){var n,r=[];return(n=this.m)==null||n.forEach(s=>{var i=bt==null?void 0:bt.querySelectorAll(s);i==null||i.forEach(o=>{t===o&&r.push(s)})}),r}get isEnabled(){var t,n,r=(t=this.instance.persistence)==null?void 0:t.props[MJ],s=this.o;if(Sp(s)&&!Yc(r)&&!this.instance.config.advanced_disable_decide)return!1;var i=(n=this.o)!==null&&n!==void 0?n:!!r;return!!this.instance.config.autocapture&&!i}k(t,n){if(n===void 0&&(n="$autocapture"),this.isEnabled){var r,s=ube(t);abe(s)&&(s=s.parentNode||null),n==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(r=this.rageclicks)!=null&&r.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.k(t,"$rageclick");var i=n===I9;if(s&&Axt(s,t,this.S,i,i?["copy","cut"]:void 0)){var{props:o,explicitNoCapture:a}=Lxt(s,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.S.element_attribute_ignorelist,elementsChainAsString:this.h});if(a)return!1;var l=this.getElementSelectors(s);if(l&&l.length>0&&(o.$element_selectors=l),n===I9){var c,u=cbe(Te==null||(c=Te.getSelection())==null?void 0:c.toString()),d=t.type||"clipboard";if(!u)return!1;o.$selected_content=u,o.$copy_type=d}return this.instance.capture(n,o),!0}}}isBrowserSupported(){return Wa(bt==null?void 0:bt.querySelectorAll)}}Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Ci(e)&&isFinite(e)&&Math.floor(e)===e});var YJ="0123456789abcdef";class j2{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,n,r,s){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(s)||t<0||n<0||r<0||s<0||t>0xffffffffffff||n>4095||r>1073741823||s>4294967295)throw new RangeError("invalid field value");var i=new Uint8Array(16);return i[0]=t/Math.pow(2,40),i[1]=t/Math.pow(2,32),i[2]=t/Math.pow(2,24),i[3]=t/Math.pow(2,16),i[4]=t/Math.pow(2,8),i[5]=t,i[6]=112|n>>>8,i[7]=n,i[8]=128|r>>>24,i[9]=r>>>16,i[10]=r>>>8,i[11]=r,i[12]=s>>>24,i[13]=s>>>16,i[14]=s>>>8,i[15]=s,new j2(i)}toString(){for(var t="",n=0;n<this.bytes.length;n++)t=t+YJ.charAt(this.bytes[n]>>>4)+YJ.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new j2(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var n=0;n<16;n++){var r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class $xt{constructor(){this.I=0,this.P=0,this.R=new zxt}generate(){var t=this.generateOrAbort();if(at(t)){this.I=0;var n=this.generateOrAbort();if(at(n))throw new Error("Could not generate UUID after timestamp reset");return n}return t}generateOrAbort(){var t=Date.now();if(t>this.I)this.I=t,this.T();else{if(!(t+1e4>this.I))return;this.P++,this.P>4398046511103&&(this.I++,this.T())}return j2.fromFieldsV7(this.I,Math.trunc(this.P/Math.pow(2,30)),this.P&Math.pow(2,30)-1,this.R.nextUint32())}T(){this.P=1024*this.R.nextUint32()+(1023&this.R.nextUint32())}}var XJ,bbe=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};Te&&!at(Te.crypto)&&crypto.getRandomValues&&(bbe=e=>crypto.getRandomValues(e));class zxt{constructor(){this.M=new Uint32Array(8),this.C=1/0}nextUint32(){return this.C>=this.M.length&&(bbe(this.M),this.C=0),this.M[this.C++]}}var Tf=()=>Hxt().toString(),Hxt=()=>(XJ||(XJ=new $xt)).generate(),l1="",Vxt=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;function Uxt(e,t){if(t){var n=function(s,i){if(i===void 0&&(i=bt),l1)return l1;if(!i||["localhost","127.0.0.1"].includes(s))return"";for(var o=s.split("."),a=Math.min(o.length,8),l="dmn_chk_"+Tf();!l1&&a--;){var c=o.slice(a).join("."),u=l+"=1;domain=."+c+";path=/";i.cookie=u+";max-age=3",i.cookie.includes(l)&&(i.cookie=u+";max-age=0",l1=c)}return l1}(e);if(!n){var r=(s=>{var i=s.match(Vxt);return i?i[0]:""})(e);r!==n&&Tt.info("Warning: cookie subdomain discovery mismatch",r,n),n=r}return n?"; domain=."+n:""}return""}var wd={O:()=>!!bt,F:function(e){Tt.error("cookieStore error: "+e)},A:function(e){if(bt){try{for(var t=e+"=",n=bt.cookie.split(";").filter(i=>i.length),r=0;r<n.length;r++){for(var s=n[r];s.charAt(0)==" ";)s=s.substring(1,s.length);if(s.indexOf(t)===0)return decodeURIComponent(s.substring(t.length,s.length))}}catch{}return null}},D:function(e){var t;try{t=JSON.parse(wd.A(e))||{}}catch{}return t},L:function(e,t,n,r,s){if(bt)try{var i="",o="",a=Uxt(bt.location.hostname,r);if(n){var l=new Date;l.setTime(l.getTime()+24*n*60*60*1e3),i="; expires="+l.toUTCString()}s&&(o="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+i+"; SameSite=Lax; path=/"+a+o;return c.length>3686.4&&Tt.warn("cookieStore warning: large cookie, len="+c.length),bt.cookie=c,c}catch{return}},N:function(e,t){try{wd.L(e,"",-1,t)}catch{return}}},L9=null,Fs={O:function(){if(!Sp(L9))return L9;var e=!0;if(at(Te))e=!1;else try{var t="__mplssupport__";Fs.L(t,"xyz"),Fs.A(t)!=='"xyz"'&&(e=!1),Fs.N(t)}catch{e=!1}return e||Tt.error("localStorage unsupported; falling back to cookie store"),L9=e,e},F:function(e){Tt.error("localStorage error: "+e)},A:function(e){try{return Te==null?void 0:Te.localStorage.getItem(e)}catch(t){Fs.F(t)}return null},D:function(e){try{return JSON.parse(Fs.A(e))||{}}catch{}return null},L:function(e,t){try{Te==null||Te.localStorage.setItem(e,JSON.stringify(t))}catch(n){Fs.F(n)}},N:function(e){try{Te==null||Te.localStorage.removeItem(e)}catch(t){Fs.F(t)}}},qxt=["distinct_id",N2,E1,F2,M2],ZE=ut({},Fs,{D:function(e){try{var t={};try{t=wd.D(e)||{}}catch{}var n=vs(t,JSON.parse(Fs.A(e)||"{}"));return Fs.L(e,n),n}catch{}return null},L:function(e,t,n,r,s,i){try{Fs.L(e,t,void 0,void 0,i);var o={};qxt.forEach(a=>{t[a]&&(o[a]=t[a])}),Object.keys(o).length&&wd.L(e,o,n,r,s,i)}catch(a){Fs.F(a)}},N:function(e,t){try{Te==null||Te.localStorage.removeItem(e),wd.N(e,t)}catch(n){Fs.F(n)}}}),JE={},Wxt={O:function(){return!0},F:function(e){Tt.error("memoryStorage error: "+e)},A:function(e){return JE[e]||null},D:function(e){return JE[e]||null},L:function(e,t){JE[e]=t},N:function(e){delete JE[e]}},nm=null,si={O:function(){if(!Sp(nm))return nm;if(nm=!0,at(Te))nm=!1;else try{var e="__support__";si.L(e,"xyz"),si.A(e)!=='"xyz"'&&(nm=!1),si.N(e)}catch{nm=!1}return nm},F:function(e){Tt.error("sessionStorage error: ",e)},A:function(e){try{return Te==null?void 0:Te.sessionStorage.getItem(e)}catch(t){si.F(t)}return null},D:function(e){try{return JSON.parse(si.A(e))||null}catch{}return null},L:function(e,t){try{Te==null||Te.sessionStorage.setItem(e,JSON.stringify(t))}catch(n){si.F(n)}},N:function(e){try{Te==null||Te.sessionStorage.removeItem(e)}catch(t){si.F(t)}}},Uy=function(e){return e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED",e}({});class Gxt{constructor(t){this._instance=t}get S(){return this._instance.config}get consent(){return this.j()?Uy.DENIED:this.U}isOptedOut(){return this.consent===Uy.DENIED||this.consent===Uy.PENDING&&this.S.opt_out_capturing_by_default}isOptedIn(){return!this.isOptedOut()}optInOut(t){this.q.L(this.B,t?1:0,this.S.cookie_expiration,this.S.cross_subdomain_cookie,this.S.secure_cookie)}reset(){this.q.N(this.B,this.S.cross_subdomain_cookie)}get B(){var{token:t,opt_out_capturing_cookie_prefix:n}=this._instance.config;return(n||"__ph_opt_in_out_")+t}get U(){var t=this.q.A(this.B);return t==="1"?Uy.GRANTED:t==="0"?Uy.DENIED:Uy.PENDING}get q(){if(!this.H){var t=this.S.opt_out_capturing_persistence_type;this.H=t==="localStorage"?Fs:wd;var n=t==="localStorage"?wd:Fs;n.A(this.B)&&(this.H.A(this.B)||this.optInOut(n.A(this.B)==="1"),n.N(this.B,this.S.cross_subdomain_cookie))}return this.H}j(){return!!this.S.respect_dnt&&!!rbe([xa==null?void 0:xa.doNotTrack,xa==null?void 0:xa.msDoNotTrack,sn.doNotTrack],t=>gn([!0,1,"1","yes"],t))}}var QE=fi("[Dead Clicks]"),Yxt=()=>!0,Xxt=e=>{var t,n=!((t=e.instance.persistence)==null||!t.get_property(ibe)),r=e.instance.config.capture_dead_clicks;return Yc(r)?r:n};class vbe{get lazyLoadedDeadClicksAutocapture(){return this.W}constructor(t,n,r){this.instance=t,this.isEnabled=n,this.onCapture=r,this.startIfEnabled()}onRemoteConfig(t){this.instance.persistence&&this.instance.persistence.register({[ibe]:t==null?void 0:t.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.G(()=>{this.J()})}G(t){var n,r;(n=sn.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture&&t(),(r=sn.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",s=>{s?QE.error("failed to load script",s):t()})}J(){var t;if(bt){if(!this.W&&(t=sn.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var n=Zr(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.W=sn.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.W.start(bt),QE.info("starting...")}}else QE.error("`document` not found. Cannot start.")}stop(){this.W&&(this.W.stop(),this.W=void 0,QE.info("stopping..."))}}var B9=fi("[ExceptionAutocapture]");class Kxt{constructor(t){var n;this.V=()=>{var r;if(Te&&this.isEnabled&&(r=sn.__PosthogExtensions__)!=null&&r.errorWrappingFunctions){var s=sn.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,i=sn.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,o=sn.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.K&&this.S.capture_unhandled_errors&&(this.K=s(this.captureException.bind(this))),!this.Y&&this.S.capture_unhandled_rejections&&(this.Y=i(this.captureException.bind(this))),!this.X&&this.S.capture_console_errors&&(this.X=o(this.captureException.bind(this)))}catch(a){B9.error("failed to start",a),this.Z()}}},this._instance=t,this.tt=!((n=this._instance.persistence)==null||!n.props[FJ]),this.S=this.it(),this.startIfEnabled()}it(){var t=this._instance.config.capture_exceptions,n={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Zr(t)?n=ut({},n,t):(at(t)?this.tt:t)&&(n=ut({},n,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),n}get isEnabled(){return this.S.capture_console_errors||this.S.capture_unhandled_errors||this.S.capture_unhandled_rejections}startIfEnabled(){this.isEnabled&&(B9.info("enabled"),this.G(this.V))}G(t){var n,r;(n=sn.__PosthogExtensions__)!=null&&n.errorWrappingFunctions&&t(),(r=sn.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"exception-autocapture",s=>{if(s)return B9.error("failed to load script",s);t()})}Z(){var t,n,r;(t=this.K)==null||t.call(this),this.K=void 0,(n=this.Y)==null||n.call(this),this.Y=void 0,(r=this.X)==null||r.call(this),this.X=void 0}onRemoteConfig(t){var n=t.autocaptureExceptions;this.tt=!!n||!1,this.S=this.it(),this._instance.persistence&&this._instance.persistence.register({[FJ]:this.tt}),this.startIfEnabled()}captureException(t){var n=this._instance.requestRouter.endpointFor("ui");t.$exception_personURL=n+"/project/"+this._instance.config.token+"/person/"+this._instance.get_distinct_id(),this._instance.exceptions.sendExceptionEvent(t)}}function xbe(e){return!at(Event)&&wbe(e,Event)}function wbe(e,t){try{return e instanceof t}catch{return!1}}function Sbe(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object DOMError]":return!0;default:return wbe(e,Error)}}function WD(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function $9(e){return WD(e,"DOMError")}var KJ=/\(error: (.*)\)/,ZJ=50,w0="?";function z9(e,t,n,r){var s={platform:"web:javascript",filename:e,function:t==="<anonymous>"?w0:t,in_app:!0};return at(n)||(s.lineno=n),at(r)||(s.colno=r),s}var Zxt=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Jxt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Qxt=/\((\S*)(?::(\d+))(?::(\d+))\)/,e1t=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,t1t=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,n1t=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.sort((s,i)=>s[0]-i[0]).map(s=>s[1]);return function(s,i){i===void 0&&(i=0);for(var o=[],a=s.split(`
|
|
727
727
|
`),l=i;l<a.length;l++){var c=a[l];if(!(c.length>1024)){var u=KJ.test(c)?c.replace(KJ,"$1"):c;if(!u.match(/\S*Error: /)){for(var d of r){var p=d(u);if(p){o.push(p);break}}if(o.length>=ZJ)break}}}return function(m){if(!m.length)return[];var b=Array.from(m);return b.reverse(),b.slice(0,ZJ).map(x=>ut({},x,{filename:x.filename||r1t(b).filename,function:x.function||w0}))}(o)}}([30,e=>{var t=Zxt.exec(e);if(t){var[,n,r,s]=t;return z9(n,w0,+r,+s)}var i=Jxt.exec(e);if(i){if(i[2]&&i[2].indexOf("eval")===0){var o=Qxt.exec(i[2]);o&&(i[2]=o[1],i[3]=o[2],i[4]=o[3])}var[a,l]=QJ(i[1]||w0,i[2]);return z9(l,a,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}}],[50,e=>{var t=e1t.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=t1t.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var r=t[3],s=t[1]||w0;return[s,r]=QJ(s,r),z9(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]);function r1t(e){return e[e.length-1]||{}}var eD,JJ,H9,QJ=(e,t)=>{var n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:w0,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},s1t=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;function QL(e,t){t===void 0&&(t=0);var n=e.stacktrace||e.stack||"",r=function(o){return o&&i1t.test(o.message)?1:0}(e);try{var s=n1t,i=function(o,a){var l=function(c){var u=globalThis._posthogChunkIds;if(!u)return{};var d=Object.keys(u);return H9&&d.length===JJ||(JJ=d.length,H9=d.reduce((p,m)=>{eD||(eD={});var b=eD[m];if(b)p[b[0]]=b[1];else for(var x=c(m),C=x.length-1;C>=0;C--){var S=x[C],A=S==null?void 0:S.filename,T=u[m];if(A&&T){p[A]=T,eD[m]=[A,T];break}}return p},{})),H9}(a);return o.forEach(c=>{c.filename&&(c.chunk_id=l[c.filename])}),o}(s(n,r),s);return i.slice(0,i.length-t)}catch{}return[]}var i1t=/Minified React error #\d+;/i;function o1t(e,t){var n,r,s=QL(e),i=(n=t==null?void 0:t.handled)===null||n===void 0||n,o=(r=t==null?void 0:t.synthetic)!==null&&r!==void 0&&r;return{type:t!=null&&t.overrideExceptionType?t.overrideExceptionType:e.name,value:function(a){var l=a.message;return l.error&&typeof l.error.message=="string"?String(l.error.message):String(l)}(e),stacktrace:{frames:s,type:"raw"},mechanism:{handled:i,synthetic:o}}}function Cbe(e,t){var n=o1t(e,t);return e.cause&&Sbe(e.cause)&&e.cause!==e?[n,...Cbe(e.cause,{handled:t==null?void 0:t.handled,synthetic:t==null?void 0:t.synthetic})]:[n]}function V9(e,t){return{$exception_list:Cbe(e,t),$exception_level:"error"}}function U9(e,t){var n,r,s,i=(n=t==null?void 0:t.handled)===null||n===void 0||n,o=(r=t==null?void 0:t.synthetic)===null||r===void 0||r,a={type:t!=null&&t.overrideExceptionType?t.overrideExceptionType:(s=t==null?void 0:t.defaultExceptionType)!==null&&s!==void 0?s:"Error",value:e||(t==null?void 0:t.defaultExceptionMessage),mechanism:{handled:i,synthetic:o}};if(t!=null&&t.syntheticException){var l=QL(t.syntheticException,1);l.length&&(a.stacktrace={frames:l,type:"raw"})}return{$exception_list:[a],$exception_level:"error"}}function a1t(e){return Qr(e)&&!IF(e)&&yxt.indexOf(e)>=0}function l1t(e,t){var n,r,s=(n=t==null?void 0:t.handled)===null||n===void 0||n,i=(r=t==null?void 0:t.synthetic)===null||r===void 0||r,o=t!=null&&t.overrideExceptionType?t.overrideExceptionType:xbe(e)?e.constructor.name:"Error",a="Non-Error 'exception' captured with keys: "+function(u,d){d===void 0&&(d=40);var p=Object.keys(u);if(p.sort(),!p.length)return"[object has no keys]";for(var m=p.length;m>0;m--){var b=p.slice(0,m).join(", ");if(!(b.length>d))return m===p.length||b.length<=d?b:b.slice(0,d)+"..."}return""}(e),l={type:o,value:a,mechanism:{handled:s,synthetic:i}};if(t!=null&&t.syntheticException){var c=QL(t==null?void 0:t.syntheticException,1);c.length&&(l.stacktrace={frames:c,type:"raw"})}return{$exception_list:[l],$exception_level:a1t(e.level)?e.level:"error"}}function c1t(e,t){var{error:n,event:r}=e,s={$exception_list:[]},i=n||r;if($9(i)||function(p){return WD(p,"DOMException")}(i)){var o=i;if(function(p){return"stack"in p}(i))s=V9(i,t);else{var a=o.name||($9(o)?"DOMError":"DOMException"),l=o.message?a+": "+o.message:a;s=U9(l,ut({},t,{overrideExceptionType:$9(o)?"DOMError":"DOMException",defaultExceptionMessage:l}))}return"code"in o&&(s.$exception_DOMException_code=""+o.code),s}if(function(p){return WD(p,"ErrorEvent")}(i)&&i.error)return V9(i.error,t);if(Sbe(i))return V9(i,t);if(function(p){return WD(p,"Object")}(i)||xbe(i))return l1t(i,t);if(at(n)&&Qr(r)){var c="Error",u=r,d=r.match(s1t);return d&&(c=d[1],u=d[2]),U9(u,ut({},t,{overrideExceptionType:c,defaultExceptionMessage:u}))}return U9(i,t)}function eQ(e,t,n){try{if(!(t in e))return()=>{};var r=e[t],s=n(r);return Wa(s)&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}class u1t{constructor(t){var n;this._instance=t,this.et=(Te==null||(n=Te.location)==null?void 0:n.pathname)||""}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Tt.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.rt&&this.rt(),this.rt=void 0,Tt.info("History API monitoring stopped")}monitorHistoryChanges(){var t,n;if(Te&&Te.history){var r=this;(t=Te.history.pushState)!=null&&t.__posthog_wrapped__||eQ(Te.history,"pushState",s=>function(i,o,a){s.call(this,i,o,a),r.st("pushState")}),(n=Te.history.replaceState)!=null&&n.__posthog_wrapped__||eQ(Te.history,"replaceState",s=>function(i,o,a){s.call(this,i,o,a),r.st("replaceState")}),this.nt()}}st(t){try{var n,r=Te==null||(n=Te.location)==null?void 0:n.pathname;if(!r)return;r!==this.et&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:t}),this.et=r}catch(s){Tt.error("Error capturing "+t+" pageview",s)}}nt(){if(!this.rt){var t=()=>{this.st("popstate")};Hr(Te,"popstate",t),this.rt=()=>{Te&&Te.removeEventListener("popstate",t)}}}}function L2(e){var t,n;return((t=JSON.stringify(e,(n=[],function(r,s){if(Zr(s)){for(;n.length>0&&n[n.length-1]!==this;)n.pop();return n.includes(s)?"[Circular]":(n.push(s),s)}return s})))==null?void 0:t.length)||0}function KF(e,t){if(t===void 0&&(t=66060288e-1),e.size>=t&&e.data.length>1){var n=Math.floor(e.data.length/2),r=e.data.slice(0,n),s=e.data.slice(n);return[KF({size:L2(r),data:r,sessionId:e.sessionId,windowId:e.windowId}),KF({size:L2(s),data:s,sessionId:e.sessionId,windowId:e.windowId})].flatMap(i=>i)}return[e]}var nd=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(nd||{}),kl=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(kl||{}),ZF="[SessionRecording]",JF="redacted",tD={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:e=>e,recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6,payloadHostDenyList:[".lr-ingest.io",".ingest.sentry.io",".clarity.ms","analytics.google.com","bam.nr-data.net"]},d1t=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],h1t=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],f1t=["/s/","/e/","/i/"];function tQ(e,t,n,r){if(zn(e))return e;var s=(t==null?void 0:t["content-length"])||function(i){return new Blob([i]).size}(e);return Qr(s)&&(s=parseInt(s)),s>n?ZF+" "+r+" body too large to record ("+s+" bytes)":e}function nQ(e,t){if(zn(e))return e;var n=e;return Hb(n,!1)||(n=ZF+" "+t+" body "+JF),dr(h1t,r=>{var s,i;(s=n)!=null&&s.length&&((i=n)==null?void 0:i.indexOf(r))!==-1&&(n=ZF+" "+t+" body "+JF+" as might contain: "+r)}),n}var p1t=(e,t)=>{var n,r,s,i={payloadSizeLimitBytes:tD.payloadSizeLimitBytes,performanceEntryTypeToObserve:[...tD.performanceEntryTypeToObserve],payloadHostDenyList:[...t.payloadHostDenyList||[],...tD.payloadHostDenyList]},o=e.session_recording.recordHeaders!==!1&&t.recordHeaders,a=e.session_recording.recordBody!==!1&&t.recordBody,l=e.capture_performance!==!1&&t.recordPerformance,c=(n=i,s=Math.min(1e6,(r=n.payloadSizeLimitBytes)!==null&&r!==void 0?r:1e6),p=>(p!=null&&p.requestBody&&(p.requestBody=tQ(p.requestBody,p.requestHeaders,s,"Request")),p!=null&&p.responseBody&&(p.responseBody=tQ(p.responseBody,p.responseHeaders,s,"Response")),p)),u=p=>{return c(((x,C)=>{var S,A=Vb(x.name),T=C.indexOf("http")===0?(S=Vb(C))==null?void 0:S.pathname:C;T==="/"&&(T="");var N=A==null?void 0:A.pathname.replace(T||"","");if(!(A&&N&&f1t.some(F=>N.indexOf(F)===0)))return x})((b=(m=p).requestHeaders,zn(b)||dr(Object.keys(b??{}),x=>{d1t.includes(x.toLowerCase())&&(b[x]=JF)}),m),e.api_host));var m,b},d=Wa(e.session_recording.maskNetworkRequestFn);return d&&Wa(e.session_recording.maskCapturedNetworkRequestFn)&&Tt.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),d&&(e.session_recording.maskCapturedNetworkRequestFn=p=>{var m=e.session_recording.maskNetworkRequestFn({url:p.name});return ut({},p,{name:m==null?void 0:m.url})}),i.maskRequestFn=Wa(e.session_recording.maskCapturedNetworkRequestFn)?p=>{var m,b=u(p);return b&&(m=e.session_recording.maskCapturedNetworkRequestFn==null?void 0:e.session_recording.maskCapturedNetworkRequestFn(b))!==null&&m!==void 0?m:void 0}:p=>function(m){if(!at(m))return m.requestBody=nQ(m.requestBody,"Request"),m.responseBody=nQ(m.responseBody,"Response"),m}(u(p)),ut({},tD,i,{recordHeaders:o,recordBody:a,recordPerformance:l,recordInitialRequests:l})};function Ha(e,t,n,r,s){return t>n&&(Tt.warn("min cannot be greater than max."),t=n),Ci(e)?e>n?(r&&Tt.warn(r+" cannot be greater than max: "+n+". Using max value instead."),n):e<t?(r&&Tt.warn(r+" cannot be less than min: "+t+". Using min value instead."),t):e:(r&&Tt.warn(r+" must be a number. using max or fallback. max: "+n+", fallback: "+s),Ha(s||n,t,n,r))}class m1t{constructor(t,n){var r,s;n===void 0&&(n={}),this.ot=100,this.lt=10,this.ut={},this.ht={},this.dt=()=>{Object.keys(this.ut).forEach(i=>{this.ut[i]=this.ut[i]+this.lt,this.ut[i]>=this.ot&&delete this.ut[i]})},this.vt=i=>{var o=this._rrweb.mirror.getNode(i);if((o==null?void 0:o.nodeName)!=="svg"&&o instanceof Element){var a=o.closest("svg");if(a)return[this._rrweb.mirror.getId(a),a]}return[i,o]},this.ct=i=>{var o,a,l,c,u,d,p,m;return((o=(a=i.removes)==null?void 0:a.length)!==null&&o!==void 0?o:0)+((l=(c=i.attributes)==null?void 0:c.length)!==null&&l!==void 0?l:0)+((u=(d=i.texts)==null?void 0:d.length)!==null&&u!==void 0?u:0)+((p=(m=i.adds)==null?void 0:m.length)!==null&&p!==void 0?p:0)},this.throttleMutations=i=>{if(i.type!==3||i.data.source!==0)return i;var o=i.data,a=this.ct(o);o.attributes&&(o.attributes=o.attributes.filter(c=>{var u,d,p,[m,b]=this.vt(c.id);return this.ut[m]===0?!1:(this.ut[m]=(u=this.ut[m])!==null&&u!==void 0?u:this.ot,this.ut[m]=Math.max(this.ut[m]-1,0),this.ut[m]===0&&(this.ht[m]||(this.ht[m]=!0,(d=(p=this.ft).onBlockedNode)==null||d.call(p,m,b))),c)}));var l=this.ct(o);return l!==0||a===l?i:void 0},this._rrweb=t,this.ft=n,this.lt=Ha((r=this.ft.refillRate)!==null&&r!==void 0?r:this.lt,0,100,"mutation throttling refill rate"),this.ot=Ha((s=this.ft.bucketSize)!==null&&s!==void 0?s:this.ot,0,100,"mutation throttling bucket size"),setInterval(()=>{this.dt()},1e3)}}var Ga=Uint8Array,Lo=Uint16Array,Ub=Uint32Array,eB=new Ga([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),tB=new Ga([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),rQ=new Ga([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),kbe=function(e,t){for(var n=new Lo(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var s=new Ub(n[30]);for(r=1;r<30;++r)for(var i=n[r];i<n[r+1];++i)s[i]=i-n[r]<<5|r;return[n,s]},Ebe=kbe(eB,2),g1t=Ebe[0],QF=Ebe[1];g1t[28]=258,QF[258]=28;for(var sQ=kbe(tB,0)[1],Dbe=new Lo(32768),kr=0;kr<32768;++kr){var rm=(43690&kr)>>>1|(21845&kr)<<1;rm=(61680&(rm=(52428&rm)>>>2|(13107&rm)<<2))>>>4|(3855&rm)<<4,Dbe[kr]=((65280&rm)>>>8|(255&rm)<<8)>>>1}var Z1=function(e,t,n){for(var r=e.length,s=0,i=new Lo(t);s<r;++s)++i[e[s]-1];var o,a=new Lo(t);for(s=0;s<t;++s)a[s]=a[s-1]+i[s-1]<<1;for(o=new Lo(r),s=0;s<r;++s)o[s]=Dbe[a[e[s]-1]++]>>>15-e[s];return o},yg=new Ga(288);for(kr=0;kr<144;++kr)yg[kr]=8;for(kr=144;kr<256;++kr)yg[kr]=9;for(kr=256;kr<280;++kr)yg[kr]=7;for(kr=280;kr<288;++kr)yg[kr]=8;var B2=new Ga(32);for(kr=0;kr<32;++kr)B2[kr]=5;var y1t=Z1(yg,9),b1t=Z1(B2,5),Abe=function(e){return(e/8>>0)+(7&e&&1)},Tbe=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof Lo?Lo:e instanceof Ub?Ub:Ga)(n-t);return r.set(e.subarray(t,n)),r},Yu=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},c1=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},q9=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var s=n.length,i=n.slice();if(!s)return[new Ga(0),0];if(s==1){var o=new Ga(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort(function(F,M){return F.f-M.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],c=0,u=1,d=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};u!=s-1;)a=n[n[c].f<n[d].f?c++:d++],l=n[c!=u&&n[c].f<n[d].f?c++:d++],n[u++]={s:-1,f:a.f+l.f,l:a,r:l};var p=i[0].s;for(r=1;r<s;++r)i[r].s>p&&(p=i[r].s);var m=new Lo(p+1),b=eO(n[u-1],m,0);if(b>t){r=0;var x=0,C=b-t,S=1<<C;for(i.sort(function(F,M){return m[M.s]-m[F.s]||F.f-M.f});r<s;++r){var A=i[r].s;if(!(m[A]>t))break;x+=S-(1<<b-m[A]),m[A]=t}for(x>>>=C;x>0;){var T=i[r].s;m[T]<t?x-=1<<t-m[T]++-1:++r}for(;r>=0&&x;--r){var N=i[r].s;m[N]==t&&(--m[N],++x)}b=t}return[new Ga(m),b]},eO=function(e,t,n){return e.s==-1?Math.max(eO(e.l,t,n+1),eO(e.r,t,n+1)):t[e.s]=n},iQ=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Lo(++t),r=0,s=e[0],i=1,o=function(l){n[r++]=l},a=1;a<=t;++a)if(e[a]==s&&a!=t)++i;else{if(!s&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(s),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(s);i=1,s=e[a]}return[n.subarray(0,r),t]},u1=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},tO=function(e,t,n){var r=n.length,s=Abe(t+2);e[s]=255&r,e[s+1]=r>>>8,e[s+2]=255^e[s],e[s+3]=255^e[s+1];for(var i=0;i<r;++i)e[s+i+4]=n[i];return 8*(s+4+r)},oQ=function(e,t,n,r,s,i,o,a,l,c,u){Yu(t,u++,n),++s[256];for(var d=q9(s,15),p=d[0],m=d[1],b=q9(i,15),x=b[0],C=b[1],S=iQ(p),A=S[0],T=S[1],N=iQ(x),F=N[0],M=N[1],I=new Lo(19),j=0;j<A.length;++j)I[31&A[j]]++;for(j=0;j<F.length;++j)I[31&F[j]]++;for(var L=q9(I,7),B=L[0],z=L[1],G=19;G>4&&!B[rQ[G-1]];--G);var Q,$,J,q,U=c+5<<3,V=u1(s,yg)+u1(i,B2)+o,X=u1(s,p)+u1(i,x)+o+14+3*G+u1(I,B)+(2*I[16]+3*I[17]+7*I[18]);if(U<=V&&U<=X)return tO(t,u,e.subarray(l,l+c));if(Yu(t,u,1+(X<V)),u+=2,X<V){Q=Z1(p,m),$=p,J=Z1(x,C),q=x;var W=Z1(B,z);for(Yu(t,u,T-257),Yu(t,u+5,M-1),Yu(t,u+10,G-4),u+=14,j=0;j<G;++j)Yu(t,u+3*j,B[rQ[j]]);u+=3*G;for(var K=[A,F],se=0;se<2;++se){var H=K[se];for(j=0;j<H.length;++j){var te=31&H[j];Yu(t,u,W[te]),u+=B[te],te>15&&(Yu(t,u,H[j]>>>5&127),u+=H[j]>>>12)}}}else Q=y1t,$=yg,J=b1t,q=B2;for(j=0;j<a;++j)if(r[j]>255){te=r[j]>>>18&31,c1(t,u,Q[te+257]),u+=$[te+257],te>7&&(Yu(t,u,r[j]>>>23&31),u+=eB[te]);var oe=31&r[j];c1(t,u,J[oe]),u+=q[oe],oe>3&&(c1(t,u,r[j]>>>5&8191),u+=tB[oe])}else c1(t,u,Q[r[j]]),u+=$[r[j]];return c1(t,u,Q[256]),u+$[256]},v1t=new Ub([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),x1t=function(){for(var e=new Ub(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),w1t=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=x1t[255&n^t[r]]^n>>>8;e=n},d:function(){return 4294967295^e}}},S1t=function(e,t,n,r,s){return function(i,o,a,l,c,u){var d=i.length,p=new Ga(l+d+5*(1+Math.floor(d/7e3))+c),m=p.subarray(l,p.length-c),b=0;if(!o||d<8)for(var x=0;x<=d;x+=65535){var C=x+65535;C<d?b=tO(m,b,i.subarray(x,C)):(m[x]=u,b=tO(m,b,i.subarray(x,d)))}else{for(var S=v1t[o-1],A=S>>>13,T=8191&S,N=(1<<a)-1,F=new Lo(32768),M=new Lo(N+1),I=Math.ceil(a/3),j=2*I,L=function(Rt){return(i[Rt]^i[Rt+1]<<I^i[Rt+2]<<j)&N},B=new Ub(25e3),z=new Lo(288),G=new Lo(32),Q=0,$=0,J=(x=0,0),q=0,U=0;x<d;++x){var V=L(x),X=32767&x,W=M[V];if(F[X]=W,M[V]=X,q<=x){var K=d-x;if((Q>7e3||J>24576)&&K>423){b=oQ(i,m,0,B,z,G,$,J,U,x-U,b),J=Q=$=0,U=x;for(var se=0;se<286;++se)z[se]=0;for(se=0;se<30;++se)G[se]=0}var H=2,te=0,oe=T,le=X-W&32767;if(K>2&&V==L(x-le))for(var ne=Math.min(A,K)-1,me=Math.min(32767,x),we=Math.min(258,K);le<=me&&--oe&&X!=W;){if(i[x+H]==i[x+H-le]){for(var ge=0;ge<we&&i[x+ge]==i[x+ge-le];++ge);if(ge>H){if(H=ge,te=le,ge>ne)break;var je=Math.min(le,ge-2),Ae=0;for(se=0;se<je;++se){var qe=x-le+se+32768&32767,Xe=qe-F[qe]+32768&32767;Xe>Ae&&(Ae=Xe,W=qe)}}}le+=(X=W)-(W=F[X])+32768&32767}if(te){B[J++]=268435456|QF[H]<<18|sQ[te];var wt=31&QF[H],Ct=31&sQ[te];$+=eB[wt]+tB[Ct],++z[257+wt],++G[Ct],q=x+H,++Q}else B[J++]=i[x],++z[i[x]]}}b=oQ(i,m,u,B,z,G,$,J,U,x-U,b)}return Tbe(p,0,l+Abe(b)+c)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!0)},nO=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},C1t=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&nO(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},k1t=function(e){return 10+(e.filename&&e.filename.length+1||0)};function _be(e,t){t===void 0&&(t={});var n=w1t(),r=e.length;n.p(e);var s=S1t(e,t,k1t(t),8),i=s.length;return C1t(s,t),nO(s,i-8,n.d()),nO(s,i-4,r),s}function Nbe(e,t){var n=e.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Ga(e.length+(e.length>>>1)),s=0,i=function(c){r[s++]=c},o=0;o<n;++o){if(s+5>r.length){var a=new Ga(s+8+(n-o<<1));a.set(r),r=a}var l=e.charCodeAt(o);l<128||t?i(l):l<2048?(i(192|l>>>6),i(128|63&l)):l>55295&&l<57344?(i(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++o))>>>18),i(128|l>>>12&63),i(128|l>>>6&63),i(128|63&l)):(i(224|l>>>12),i(128|l>>>6&63),i(128|63&l))}return Tbe(r,0,s)}function E1t(e,t){return function(n){for(var r=0,s=0;s<n.length;s++)r=(r<<5)-r+n.charCodeAt(s),r|=0;return Math.abs(r)}(e)%100<Ha(100*t,0,100)}var sp="disabled",nB="sampled",$2="active",bg="buffering",rB="paused",sB="trigger",tu=sB+"_activated",Di=sB+"_pending",fu=sB+"_"+sp;function aQ(e,t){return t.some(n=>n.matching==="regex"&&new RegExp(n.url).test(e))}class Pbe{constructor(t){this._t=t}triggerStatus(t){var n=this._t.map(r=>r.triggerStatus(t));return n.includes(tu)?tu:n.includes(Di)?Di:fu}stop(){this._t.forEach(t=>t.stop())}}class Mbe{constructor(t){this._t=t}triggerStatus(t){var n=new Set;for(var r of this._t)n.add(r.triggerStatus(t));switch(n.delete(fu),n.size){case 0:return fu;case 1:return Array.from(n)[0];default:return Di}}stop(){this._t.forEach(t=>t.stop())}}class D1t{triggerStatus(){return Di}stop(){}}class A1t{constructor(t){this.gt=[],this.bt=[],this.urlBlocked=!1,this._instance=t}onRemoteConfig(t){var n,r;this.gt=((n=t.sessionRecording)==null?void 0:n.urlTriggers)||[],this.bt=((r=t.sessionRecording)==null?void 0:r.urlBlocklist)||[]}yt(t){var n;return this.gt.length===0?fu:((n=this._instance)==null?void 0:n.get_property($F))===t?tu:Di}triggerStatus(t){var n=this.yt(t),r=n===tu?tu:n===Di?Di:fu;return this._instance.register_for_session({$sdk_debug_replay_url_trigger_status:r}),r}checkUrlTriggerConditions(t,n,r){if(Te!==void 0&&Te.location.href){var s=Te.location.href,i=this.urlBlocked,o=aQ(s,this.bt);i&&o||(o&&!i?t():!o&&i&&n(),aQ(s,this.gt)&&r("url"))}}stop(){}}class T1t{constructor(t){this.linkedFlag=null,this.linkedFlagSeen=!1,this.wt=()=>{},this._instance=t}triggerStatus(){var t=Di;return zn(this.linkedFlag)&&(t=fu),this.linkedFlagSeen&&(t=tu),this._instance.register_for_session({$sdk_debug_replay_linked_flag_trigger_status:t}),t}onRemoteConfig(t,n){var r;if(this.linkedFlag=((r=t.sessionRecording)==null?void 0:r.linkedFlag)||null,!zn(this.linkedFlag)&&!this.linkedFlagSeen){var s=Qr(this.linkedFlag)?this.linkedFlag:this.linkedFlag.flag,i=Qr(this.linkedFlag)?null:this.linkedFlag.variant;this.wt=this._instance.onFeatureFlags((o,a)=>{var l=!1;if(Zr(a)&&s in a){var c=a[s];l=Yc(c)?c===!0:i?c===i:!!c}this.linkedFlagSeen=l,l&&n(s,i)})}}stop(){this.wt()}}class _1t{constructor(t){this.St=[],this._instance=t}onRemoteConfig(t){var n;this.St=((n=t.sessionRecording)==null?void 0:n.eventTriggers)||[]}$t(t){var n;return this.St.length===0?fu:((n=this._instance)==null?void 0:n.get_property(zF))===t?tu:Di}triggerStatus(t){var n=this.$t(t),r=n===tu?tu:n===Di?Di:fu;return this._instance.register_for_session({$sdk_debug_replay_event_trigger_status:r}),r}stop(){}}function N1t(e){return e.isRecordingEnabled?bg:sp}function P1t(e){if(!e.receivedDecide)return bg;if(!e.isRecordingEnabled)return sp;if(e.urlTriggerMatching.urlBlocked)return rB;var t=e.isSampled===!0,n=new Pbe([e.eventTriggerMatching,e.urlTriggerMatching,e.linkedFlagMatching]).triggerStatus(e.sessionId);return t?nB:n===tu?$2:n===Di?bg:e.isSampled===!1?sp:$2}function M1t(e){if(!e.receivedDecide)return bg;if(!e.isRecordingEnabled)return sp;if(e.urlTriggerMatching.urlBlocked)return rB;var t=new Mbe([e.eventTriggerMatching,e.urlTriggerMatching,e.linkedFlagMatching]).triggerStatus(e.sessionId),n=t!==fu,r=Yc(e.isSampled);return n&&t===Di?bg:n&&t===fu||r&&!e.isSampled?sp:e.isSampled===!0?nB:$2}var A1="[SessionRecording]",vi=fi(A1);function nD(){var e;return sn==null||(e=sn.__PosthogExtensions__)==null||(e=e.rrweb)==null?void 0:e.record}var F1t=3e5,O1t=[kl.MouseMove,kl.MouseInteraction,kl.Scroll,kl.ViewportResize,kl.Input,kl.TouchMove,kl.MediaInteraction,kl.Drag],lQ=e=>({rrwebMethod:e,enqueuedAt:Date.now(),attempt:1});function sm(e){return function(t,n){for(var r="",s=0;s<t.length;){var i=t[s++];r+=String.fromCharCode(i)}return r}(_be(Nbe(JSON.stringify(e))))}function cQ(e){return e.type===nd.Custom&&e.data.tag==="sessionIdle"}class R1t{get sessionId(){return this.kt}get xt(){return this._instance.config.session_recording.session_idle_threshold_ms||3e5}get started(){return this.Et}get It(){if(!this._instance.sessionManager)throw new Error(A1+" must be started with a valid sessionManager.");return this._instance.sessionManager}get Pt(){var t,n;return this.Rt.triggerStatus(this.sessionId)===Di?6e4:(t=(n=this._instance.config.session_recording)==null?void 0:n.full_snapshot_interval_millis)!==null&&t!==void 0?t:F1t}get Tt(){var t=this._instance.get_property(E1);return Yc(t)?t:null}get Mt(){var t,n,r=(t=this.M)==null?void 0:t.data[((n=this.M)==null?void 0:n.data.length)-1],{sessionStartTimestamp:s}=this.It.checkAndGetSessionAndWindowId(!0);return r?r.timestamp-s:null}get Ct(){var t=!!this._instance.get_property(BF),n=!this._instance.config.disable_session_recording;return Te&&t&&n}get Ot(){var t=!!this._instance.get_property(IJ),n=this._instance.config.enable_recording_console_log;return n??t}get Ft(){var t,n,r,s,i,o,a=this._instance.config.session_recording.captureCanvas,l=this._instance.get_property(BJ),c=(t=(n=a==null?void 0:a.recordCanvas)!==null&&n!==void 0?n:l==null?void 0:l.enabled)!==null&&t!==void 0&&t,u=(r=(s=a==null?void 0:a.canvasFps)!==null&&s!==void 0?s:l==null?void 0:l.fps)!==null&&r!==void 0?r:4,d=(i=(o=a==null?void 0:a.canvasQuality)!==null&&o!==void 0?o:l==null?void 0:l.quality)!==null&&i!==void 0?i:.4;if(typeof d=="string"){var p=parseFloat(d);d=isNaN(p)?.4:p}return{enabled:c,fps:Ha(u,0,12,"canvas recording fps",4),quality:Ha(d,0,1,"canvas recording quality",.4)}}get At(){var t,n,r=this._instance.get_property(jJ),s={recordHeaders:(t=this._instance.config.session_recording)==null?void 0:t.recordHeaders,recordBody:(n=this._instance.config.session_recording)==null?void 0:n.recordBody},i=(s==null?void 0:s.recordHeaders)||(r==null?void 0:r.recordHeaders),o=(s==null?void 0:s.recordBody)||(r==null?void 0:r.recordBody),a=Zr(this._instance.config.capture_performance)?this._instance.config.capture_performance.network_timing:this._instance.config.capture_performance,l=!!(Yc(a)?a:r!=null&&r.capturePerformance);return i||o||l?{recordHeaders:i,recordBody:o,recordPerformance:l}:void 0}get Dt(){var t,n,r,s,i,o,a=this._instance.get_property(LJ),l={maskAllInputs:(t=this._instance.config.session_recording)==null?void 0:t.maskAllInputs,maskTextSelector:(n=this._instance.config.session_recording)==null?void 0:n.maskTextSelector,blockSelector:(r=this._instance.config.session_recording)==null?void 0:r.blockSelector},c=(s=l==null?void 0:l.maskAllInputs)!==null&&s!==void 0?s:a==null?void 0:a.maskAllInputs,u=(i=l==null?void 0:l.maskTextSelector)!==null&&i!==void 0?i:a==null?void 0:a.maskTextSelector,d=(o=l==null?void 0:l.blockSelector)!==null&&o!==void 0?o:a==null?void 0:a.blockSelector;return at(c)&&at(u)&&at(d)?void 0:{maskAllInputs:c==null||c,maskTextSelector:u,blockSelector:d}}get Lt(){var t=this._instance.get_property($J);return Ci(t)?t:null}get Nt(){var t=this._instance.get_property(zJ);return Ci(t)?t:null}get status(){return this.jt?this.zt({receivedDecide:this.jt,isRecordingEnabled:this.Ct,isSampled:this.Tt,urlTriggerMatching:this.Ut,eventTriggerMatching:this.qt,linkedFlagMatching:this.Bt,sessionId:this.sessionId}):bg}constructor(t){if(this.zt=N1t,this.jt=!1,this.Ht=[],this.Wt="unknown",this.Gt=Date.now(),this.Rt=new D1t,this.Jt=void 0,this.Vt=void 0,this.Kt=void 0,this.Yt=void 0,this.Xt=void 0,this._forceAllowLocalhostNetworkCapture=!1,this.Qt=()=>{this.Zt()},this.ti=()=>{this.ii("browser offline",{})},this.ei=()=>{this.ii("browser online",{})},this.ri=()=>{if(bt!=null&&bt.visibilityState){var s="window "+bt.visibilityState;this.ii(s,{})}},this._instance=t,this.Et=!1,this.si="/s/",this.ni=void 0,this.jt=!1,!this._instance.sessionManager)throw vi.error("started without valid sessionManager"),new Error(A1+" started without valid sessionManager. This is a bug.");if(this._instance.config.__preview_experimental_cookieless_mode)throw new Error(A1+" cannot be used with __preview_experimental_cookieless_mode.");this.Bt=new T1t(this._instance),this.Ut=new A1t(this._instance),this.qt=new _1t(this._instance);var{sessionId:n,windowId:r}=this.It.checkAndGetSessionAndWindowId();this.kt=n,this.oi=r,this.M=this.ai(),this.xt>=this.It.sessionTimeoutMs&&vi.warn("session_idle_threshold_ms ("+this.xt+") is greater than the session timeout ("+this.It.sessionTimeoutMs+"). Session will never be detected as idle")}startIfEnabledOrStop(t){this.Ct?(this.li(t),Hr(Te,"beforeunload",this.Qt),Hr(Te,"offline",this.ti),Hr(Te,"online",this.ei),Hr(Te,"visibilitychange",this.ri),this.ui(),this.hi(),zn(this.Jt)&&(this.Jt=this._instance.on("eventCaptured",n=>{try{if(n.event==="$pageview"){var r=n!=null&&n.properties.$current_url?this.di(n==null?void 0:n.properties.$current_url):"";if(!r)return;this.ii("$pageview",{href:r})}}catch(s){vi.error("Could not add $pageview to rrweb session",s)}})),this.Vt||(this.Vt=this.It.onSessionId((n,r,s)=>{var i,o;s&&(this.ii("$session_id_change",{sessionId:n,windowId:r,changeReason:s}),(i=this._instance)==null||(i=i.persistence)==null||i.unregister(zF),(o=this._instance)==null||(o=o.persistence)==null||o.unregister($F))}))):this.stopRecording()}stopRecording(){var t,n,r,s;this.Et&&this.ni&&(this.ni(),this.ni=void 0,this.Et=!1,Te==null||Te.removeEventListener("beforeunload",this.Qt),Te==null||Te.removeEventListener("offline",this.ti),Te==null||Te.removeEventListener("online",this.ei),Te==null||Te.removeEventListener("visibilitychange",this.ri),this.ai(),clearInterval(this.vi),(t=this.Jt)==null||t.call(this),this.Jt=void 0,(n=this.Xt)==null||n.call(this),this.Xt=void 0,(r=this.Vt)==null||r.call(this),this.Vt=void 0,(s=this.Yt)==null||s.call(this),this.Yt=void 0,this.qt.stop(),this.Ut.stop(),this.Bt.stop(),vi.info("stopped"))}ci(){var t;(t=this._instance.persistence)==null||t.unregister(E1)}fi(t){var n,r=this.kt!==t,s=this.Lt;if(Ci(s)){var i=this.Tt,o=r||!Yc(i),a=o?E1t(t,s):i;o&&(a?this.pi(nB):vi.warn("Sample rate ("+s+") has determined that this sessionId ("+t+") will not be sent to the server."),this.ii("samplingDecisionMade",{sampleRate:s,isSampled:a})),(n=this._instance.persistence)==null||n.register({[E1]:a})}else this.ci()}onRemoteConfig(t){var n,r,s,i;this.ii("$remote_config_received",t),this.gi(t),(n=t.sessionRecording)!=null&&n.endpoint&&(this.si=(i=t.sessionRecording)==null?void 0:i.endpoint),this.ui(),((r=t.sessionRecording)==null?void 0:r.triggerMatchType)==="any"?(this.zt=P1t,this.Rt=new Pbe([this.qt,this.Ut])):(this.zt=M1t,this.Rt=new Mbe([this.qt,this.Ut])),this._instance.register_for_session({$sdk_debug_replay_remote_trigger_matching_config:(s=t.sessionRecording)==null?void 0:s.triggerMatchType}),this.Ut.onRemoteConfig(t),this.qt.onRemoteConfig(t),this.Bt.onRemoteConfig(t,(o,a)=>{this.pi("linked_flag_matched",{flag:o,variant:a})}),this.jt=!0,this.startIfEnabledOrStop()}ui(){Ci(this.Lt)&&zn(this.Yt)&&(this.Yt=this.It.onSessionId(t=>{this.fi(t)}))}gi(t){if(this._instance.persistence){var n,r=this._instance.persistence,s=()=>{var i,o,a,l,c,u,d,p,m,b=(i=t.sessionRecording)==null?void 0:i.sampleRate,x=zn(b)?null:parseFloat(b);zn(x)&&this.ci();var C=(o=t.sessionRecording)==null?void 0:o.minimumDurationMilliseconds;r.register({[BF]:!!t.sessionRecording,[IJ]:(a=t.sessionRecording)==null?void 0:a.consoleLogRecordingEnabled,[jJ]:ut({capturePerformance:t.capturePerformance},(l=t.sessionRecording)==null?void 0:l.networkPayloadCapture),[LJ]:(c=t.sessionRecording)==null?void 0:c.masking,[BJ]:{enabled:(u=t.sessionRecording)==null?void 0:u.recordCanvas,fps:(d=t.sessionRecording)==null?void 0:d.canvasFps,quality:(p=t.sessionRecording)==null?void 0:p.canvasQuality},[$J]:x,[zJ]:at(C)?null:C,[HJ]:(m=t.sessionRecording)==null?void 0:m.scriptConfig})};s(),(n=this.Kt)==null||n.call(this),this.Kt=this.It.onSessionId(s)}}log(t,n){var r;n===void 0&&(n="log"),(r=this._instance.sessionRecording)==null||r.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:n,trace:[],payload:[JSON.stringify(t)]}},timestamp:Date.now()})}li(t){if(!at(Object.assign)&&!at(Array.from)&&!(this.Et||this._instance.config.disable_session_recording||this._instance.consent.isOptedOut())){var n;this.Et=!0,this.It.checkAndGetSessionAndWindowId(),nD()?this.mi():(n=sn.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.bi,r=>{if(r)return vi.error("could not load recorder",r);this.mi()}),vi.info("starting"),this.status===$2&&this.pi(t||"recording_initialized")}}get bi(){var t;return((t=this._instance)==null||(t=t.persistence)==null||(t=t.get_property(HJ))==null?void 0:t.script)||"recorder"}yi(t){var n;return t.type===3&&O1t.indexOf((n=t.data)==null?void 0:n.source)!==-1}wi(t){var n=this.yi(t);n||this.Wt||t.timestamp-this.Gt>this.xt&&(this.Wt=!0,clearInterval(this.vi),this.ii("sessionIdle",{eventTimestamp:t.timestamp,lastActivityTimestamp:this.Gt,threshold:this.xt,bufferLength:this.M.data.length,bufferSize:this.M.size}),this.Zt());var r=!1;if(n&&(this.Gt=t.timestamp,this.Wt)){var s=this.Wt==="unknown";this.Wt=!1,s||(this.ii("sessionNoLongerIdle",{reason:"user activity",type:t.type}),r=!0)}if(!this.Wt){var{windowId:i,sessionId:o}=this.It.checkAndGetSessionAndWindowId(!n,t.timestamp),a=this.kt!==o,l=this.oi!==i;this.oi=i,this.kt=o,a||l?(this.stopRecording(),this.startIfEnabledOrStop("session_id_changed")):r&&this.Si()}}$i(t){try{return t.rrwebMethod(),!0}catch(n){return this.Ht.length<10?this.Ht.push({enqueuedAt:t.enqueuedAt||Date.now(),attempt:t.attempt++,rrwebMethod:t.rrwebMethod}):vi.warn("could not emit queued rrweb event.",n,t),!1}}ii(t,n){return this.$i(lQ(()=>nD().addCustomEvent(t,n)))}ki(){return this.$i(lQ(()=>nD().takeFullSnapshot()))}mi(){var t,n,r,s,i={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{password:!0},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1},o=this._instance.config.session_recording;for(var[a,l]of Object.entries(o||{}))a in i&&(a==="maskInputOptions"?i.maskInputOptions=ut({password:!0},l):i[a]=l);this.Ft&&this.Ft.enabled&&(i.recordCanvas=!0,i.sampling={canvas:this.Ft.fps},i.dataURLOptions={type:"image/webp",quality:this.Ft.quality}),this.Dt&&(i.maskAllInputs=(n=this.Dt.maskAllInputs)===null||n===void 0||n,i.maskTextSelector=(r=this.Dt.maskTextSelector)!==null&&r!==void 0?r:void 0,i.blockSelector=(s=this.Dt.blockSelector)!==null&&s!==void 0?s:void 0);var c=nD();if(c){this.xi=(t=this.xi)!==null&&t!==void 0?t:new m1t(c,{refillRate:this._instance.config.session_recording.__mutationRateLimiterRefillRate,bucketSize:this._instance.config.session_recording.__mutationRateLimiterBucketSize,onBlockedNode:(d,p)=>{var m="Too many mutations on node '"+d+"'. Rate limiting. This could be due to SVG animations or something similar";vi.info(m,{node:p}),this.log(A1+" "+m,"warn")}});var u=this.Ei();this.ni=c(ut({emit:d=>{this.onRRwebEmit(d)},plugins:u},i)),this.Gt=Date.now(),this.Wt=Yc(this.Wt)?this.Wt:"unknown",this.ii("$session_options",{sessionRecordingOptions:i,activePlugins:u.map(d=>d==null?void 0:d.name)}),this.ii("$posthog_config",{config:this._instance.config})}else vi.error("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}Si(){if(this.vi&&clearInterval(this.vi),this.Wt!==!0){var t=this.Pt;t&&(this.vi=setInterval(()=>{this.ki()},t))}}Ei(){var t,n,r=[],s=(t=sn.__PosthogExtensions__)==null||(t=t.rrwebPlugins)==null?void 0:t.getRecordConsolePlugin;s&&this.Ot&&r.push(s());var i=(n=sn.__PosthogExtensions__)==null||(n=n.rrwebPlugins)==null?void 0:n.getRecordNetworkPlugin;return this.At&&Wa(i)&&(!Oxt.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?r.push(i(p1t(this._instance.config,this.At))):vi.info("NetworkCapture not started because we are on localhost.")),r}onRRwebEmit(t){var n;if(this.Ii(),t&&Zr(t)){if(t.type===nd.Meta){var r=this.di(t.data.href);if(this.Pi=r,!r)return;t.data.href=r}else this.Ri();if(this.Ut.checkUrlTriggerConditions(()=>this.Ti(),()=>this.Mi(),p=>this.Ci(p)),!this.Ut.urlBlocked||(s=t).type===nd.Custom&&s.data.tag==="recording paused"){var s;t.type===nd.FullSnapshot&&this.Si(),t.type===nd.FullSnapshot&&this.jt&&this.Rt.triggerStatus(this.sessionId)===Di&&this.ai();var i=this.xi?this.xi.throttleMutations(t):t;if(i){var o=function(p){var m=p;if(m&&Zr(m)&&m.type===6&&Zr(m.data)&&m.data.plugin==="rrweb/console@1"){m.data.payload.payload.length>10&&(m.data.payload.payload=m.data.payload.payload.slice(0,10),m.data.payload.payload.push("...[truncated]"));for(var b=[],x=0;x<m.data.payload.payload.length;x++)m.data.payload.payload[x]&&m.data.payload.payload[x].length>2e3?b.push(m.data.payload.payload[x].slice(0,2e3)+"...[truncated]"):b.push(m.data.payload.payload[x]);return m.data.payload.payload=b,p}return p}(i);if(this.wi(o),this.Wt!==!0||cQ(o)){if(cQ(o)){var a=o.data.payload;if(a){var l=a.lastActivityTimestamp,c=a.threshold;o.timestamp=l+c}}var u=(n=this._instance.config.session_recording.compress_events)===null||n===void 0||n?function(p){if(L2(p)<1024)return p;try{if(p.type===nd.FullSnapshot)return ut({},p,{data:sm(p.data),cv:"2024-10"});if(p.type===nd.IncrementalSnapshot&&p.data.source===kl.Mutation)return ut({},p,{cv:"2024-10",data:ut({},p.data,{texts:sm(p.data.texts),attributes:sm(p.data.attributes),removes:sm(p.data.removes),adds:sm(p.data.adds)})});if(p.type===nd.IncrementalSnapshot&&p.data.source===kl.StyleSheetRule)return ut({},p,{cv:"2024-10",data:ut({},p.data,{adds:p.data.adds?sm(p.data.adds):void 0,removes:p.data.removes?sm(p.data.removes):void 0})})}catch(m){vi.error("could not compress event - will use uncompressed event",m)}return p}(o):o,d={$snapshot_bytes:L2(u),$snapshot_data:u,$session_id:this.kt,$window_id:this.oi};this.status!==sp?this.Oi(d):this.ai()}}}}}Ri(){if(!this._instance.config.capture_pageview&&Te){var t=this.di(Te.location.href);this.Pi!==t&&(this.ii("$url_changed",{href:t}),this.Pi=t)}}Ii(){if(this.Ht.length){var t=[...this.Ht];this.Ht=[],t.forEach(n=>{Date.now()-n.enqueuedAt<=2e3&&this.$i(n)})}}di(t){var n=this._instance.config.session_recording;if(n.maskNetworkRequestFn){var r,s={url:t};return(r=s=n.maskNetworkRequestFn(s))==null?void 0:r.url}return t}ai(){return this.M={size:0,data:[],sessionId:this.kt,windowId:this.oi},this.M}Zt(){this.Fi&&(clearTimeout(this.Fi),this.Fi=void 0);var t=this.Nt,n=this.Mt,r=Ci(n)&&n>=0,s=Ci(t)&&r&&n<t;return this.status===bg||this.status===rB||this.status===sp||s?(this.Fi=setTimeout(()=>{this.Zt()},2e3),this.M):(this.M.data.length>0&&KF(this.M).forEach(i=>{this.Ai({$snapshot_bytes:i.size,$snapshot_data:i.data,$session_id:i.sessionId,$window_id:i.windowId,$lib:"web",$lib_version:ad.LIB_VERSION})}),this.ai())}Oi(t){var n,r=2+(((n=this.M)==null?void 0:n.data.length)||0);!this.Wt&&(this.M.size+t.$snapshot_bytes+r>943718.4||this.M.sessionId!==this.kt)&&(this.M=this.Zt()),this.M.size+=t.$snapshot_bytes,this.M.data.push(t.$snapshot_data),this.Fi||this.Wt||(this.Fi=setTimeout(()=>{this.Zt()},2e3))}Ai(t){this._instance.capture("$snapshot",t,{_url:this._instance.requestRouter.endpointFor("api",this.si),_noTruncate:!0,_batchKey:"recordings",skip_client_rate_limiting:!0})}Ci(t){var n;this.Rt.triggerStatus(this.sessionId)===Di&&((n=this._instance)==null||(n=n.persistence)==null||n.register({[t==="url"?$F:zF]:this.kt}),this.Zt(),this.pi(t+"_trigger_matched"))}Ti(){this.Ut.urlBlocked||(this.Ut.urlBlocked=!0,clearInterval(this.vi),vi.info("recording paused due to URL blocker"),this.ii("recording paused",{reason:"url blocker"}))}Mi(){this.Ut.urlBlocked&&(this.Ut.urlBlocked=!1,this.ki(),this.Si(),this.ii("recording resumed",{reason:"left blocked url"}),vi.info("recording resumed"))}hi(){this.qt.St.length!==0&&zn(this.Xt)&&(this.Xt=this._instance.on("eventCaptured",t=>{try{this.qt.St.includes(t.event)&&this.Ci("event")}catch(n){vi.error("Could not activate event trigger",n)}}))}overrideLinkedFlag(){this.Bt.linkedFlagSeen=!0,this.ki(),this.pi("linked_flag_overridden")}overrideSampling(){var t;(t=this._instance.persistence)==null||t.register({[E1]:!0}),this.ki(),this.pi("sampling_overridden")}overrideTrigger(t){this.Ci(t)}pi(t,n){this._instance.register_for_session({$session_recording_start_reason:t}),vi.info(t.replace("_"," "),n),gn(["recording_initialized","session_id_changed"],t)||this.ii(t,n)}get sdkDebugProperties(){var{sessionStartTimestamp:t}=this.It.checkAndGetSessionAndWindowId(!0);return{$recording_status:this.status,$sdk_debug_replay_internal_buffer_length:this.M.data.length,$sdk_debug_replay_internal_buffer_size:this.M.size,$sdk_debug_current_session_duration:this.Mt,$sdk_debug_session_start:t}}}var W9=fi("[SegmentIntegration]");function I1t(e,t){var n=e.config.segment;if(!n)return t();(function(r,s){var i=r.config.segment;if(!i)return s();var o=l=>{var c=()=>l.anonymousId()||Tf();r.config.get_device_id=c,l.id()&&(r.register({distinct_id:l.id(),$device_id:c()}),r.persistence.set_property(td,"identified")),s()},a=i.user();"then"in a&&Wa(a.then)?a.then(l=>o(l)):o(a)})(e,()=>{n.register((r=>{Promise&&Promise.resolve||W9.warn("This browser does not have Promise support, and can not use the segment integration");var s=(i,o)=>{if(!o)return i;i.event.userId||i.event.anonymousId===r.get_distinct_id()||(W9.info("No userId set, resetting PostHog"),r.reset()),i.event.userId&&i.event.userId!==r.get_distinct_id()&&(W9.info("UserId set, identifying with PostHog"),r.identify(i.event.userId));var a=r.calculateEventProperties(o,i.event.properties);return i.event.properties=Object.assign({},a,i.event.properties),i};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:i=>s(i,i.event.event),page:i=>s(i,"$pageview"),identify:i=>s(i,"$identify"),screen:i=>s(i,"$screen")}})(e)).then(()=>{t()})})}var Fbe="posthog-js";function Obe(e,t){var{organization:n,projectId:r,prefix:s,severityAllowList:i=["error"]}=t===void 0?{}:t;return o=>{var a,l,c,u,d;if(!(i==="*"||i.includes(o.level))||!e.__loaded)return o;o.tags||(o.tags={});var p=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());o.tags["PostHog Person URL"]=p,e.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var m=((a=o.exception)==null?void 0:a.values)||[],b=m.map(C=>ut({},C,{stacktrace:C.stacktrace?ut({},C.stacktrace,{type:"raw",frames:(C.stacktrace.frames||[]).map(S=>ut({},S,{platform:"web:javascript"}))}):void 0})),x={$exception_message:((l=m[0])==null?void 0:l.value)||o.message,$exception_type:(c=m[0])==null?void 0:c.type,$exception_personURL:p,$exception_level:o.level,$exception_list:b,$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:((u=m[0])==null?void 0:u.value)||o.message,$sentry_exception_type:(d=m[0])==null?void 0:d.type,$sentry_tags:o.tags};return n&&r&&(x.$sentry_url=(s||"https://sentry.io/organizations/")+n+"/issues/?project="+r+"&query="+o.event_id),e.exceptions.sendExceptionEvent(x),o}}class j1t{constructor(t,n,r,s,i){this.name=Fbe,this.setupOnce=function(o){o(Obe(t,{organization:n,projectId:r,prefix:s,severityAllowList:i}))}}}var L1t=Te!=null&&Te.location?I2(Te.location.hash,"__posthog")||I2(location.hash,"state"):null,uQ="_postHogToolbarParams",dQ=fi("[Toolbar]"),tf=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e}(tf||{});class B1t{constructor(t){this.instance=t}Di(t){sn.ph_toolbar_state=t}Li(){var t;return(t=sn.ph_toolbar_state)!==null&&t!==void 0?t:tf.UNINITIALIZED}maybeLoadToolbar(t,n,r){if(t===void 0&&(t=void 0),n===void 0&&(n=void 0),r===void 0&&(r=void 0),!Te||!bt)return!1;t=t??Te.location,r=r??Te.history;try{if(!n){try{Te.localStorage.setItem("test","test"),Te.localStorage.removeItem("test")}catch{return!1}n=Te==null?void 0:Te.localStorage}var s,i=L1t||I2(t.hash,"__posthog")||I2(t.hash,"state"),o=i?PJ(()=>JSON.parse(atob(decodeURIComponent(i))))||PJ(()=>JSON.parse(decodeURIComponent(i))):null;return o&&o.action==="ph_authorize"?((s=o).source="url",s&&Object.keys(s).length>0&&(o.desiredHash?t.hash=o.desiredHash:r?r.replaceState(r.state,"",t.pathname+t.search):t.hash="")):((s=JSON.parse(n.getItem(uQ)||"{}")).source="localstorage",delete s.userIntent),!(!s.token||this.instance.config.token!==s.token)&&(this.loadToolbar(s),!0)}catch{return!1}}Ni(t){var n=sn.ph_load_toolbar||sn.ph_load_editor;!zn(n)&&Wa(n)?n(t,this.instance):dQ.warn("No toolbar load function found")}loadToolbar(t){var n=!(bt==null||!bt.getElementById(obe));if(!Te||n)return!1;var r=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,s=ut({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},r?{instrument:!1}:{});if(Te.localStorage.setItem(uQ,JSON.stringify(ut({},s,{source:void 0}))),this.Li()===tf.LOADED)this.Ni(s);else if(this.Li()===tf.UNINITIALIZED){var i;this.Di(tf.LOADING),(i=sn.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this.instance,"toolbar",o=>{if(o)return dQ.error("[Toolbar] Failed to load",o),void this.Di(tf.UNINITIALIZED);this.Di(tf.LOADED),this.Ni(s)}),Hr(Te,"turbolinks:load",()=>{this.Di(tf.UNINITIALIZED),this.loadToolbar(s)})}return!0}ji(t){return this.loadToolbar(t)}maybeLoadEditor(t,n,r){return t===void 0&&(t=void 0),n===void 0&&(n=void 0),r===void 0&&(r=void 0),this.maybeLoadToolbar(t,n,r)}}var $1t=fi("[TracingHeaders]");class z1t{constructor(t){this.zi=void 0,this.Ui=void 0,this.V=()=>{var n,r;at(this.zi)&&((n=sn.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null||n._patchXHR(this._instance.sessionManager)),at(this.Ui)&&((r=sn.__PosthogExtensions__)==null||(r=r.tracingHeadersPatchFns)==null||r._patchFetch(this._instance.sessionManager))},this._instance=t}G(t){var n,r;(n=sn.__PosthogExtensions__)!=null&&n.tracingHeadersPatchFns&&t(),(r=sn.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"tracing-headers",s=>{if(s)return $1t.error("failed to load script",s);t()})}startIfEnabledOrStop(){var t,n;this._instance.config.__add_tracing_headers?this.G(this.V):((t=this.zi)==null||t.call(this),(n=this.Ui)==null||n.call(this),this.zi=void 0,this.Ui=void 0)}}var Kh=fi("[Web Vitals]"),hQ=9e5;class H1t{constructor(t){var n;this.qi=!1,this.i=!1,this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Bi=()=>{clearTimeout(this.Hi),this.M.metrics.length!==0&&(this._instance.capture("$web_vitals",this.M.metrics.reduce((r,s)=>ut({},r,{["$web_vitals_"+s.name+"_event"]:ut({},s),["$web_vitals_"+s.name+"_value"]:s.value}),{})),this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Wi=r=>{var s,i=(s=this._instance.sessionManager)==null?void 0:s.checkAndGetSessionAndWindowId(!0);if(at(i))Kh.error("Could not read session ID. Dropping metrics!");else{this.M=this.M||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var o=this.Gi();at(o)||(zn(r==null?void 0:r.name)||zn(r==null?void 0:r.value)?Kh.error("Invalid metric received",r):this.Ji&&r.value>=this.Ji?Kh.error("Ignoring metric with value >= "+this.Ji,r):(this.M.url!==o&&(this.Bi(),this.Hi=setTimeout(this.Bi,this.flushToCaptureTimeoutMs)),at(this.M.url)&&(this.M.url=o),this.M.firstMetricTimestamp=at(this.M.firstMetricTimestamp)?Date.now():this.M.firstMetricTimestamp,r.attribution&&r.attribution.interactionTargetElement&&(r.attribution.interactionTargetElement=void 0),this.M.metrics.push(ut({},r,{$current_url:o,$session_id:i.sessionId,$window_id:i.windowId,timestamp:Date.now()})),this.M.metrics.length===this.allowedMetrics.length&&this.Bi()))}},this.V=()=>{var r,s,i,o,a=sn.__PosthogExtensions__;at(a)||at(a.postHogWebVitalsCallbacks)||({onLCP:r,onCLS:s,onFCP:i,onINP:o}=a.postHogWebVitalsCallbacks),r&&s&&i&&o?(this.allowedMetrics.indexOf("LCP")>-1&&r(this.Wi.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&s(this.Wi.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&i(this.Wi.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&o(this.Wi.bind(this)),this.i=!0):Kh.error("web vitals callbacks not loaded - not starting")},this._instance=t,this.qi=!((n=this._instance.persistence)==null||!n.props[OJ]),this.startIfEnabled()}get allowedMetrics(){var t,n,r=Zr(this._instance.config.capture_performance)?(t=this._instance.config.capture_performance)==null?void 0:t.web_vitals_allowed_metrics:void 0;return at(r)?((n=this._instance.persistence)==null?void 0:n.props[RJ])||["CLS","FCP","INP","LCP"]:r}get flushToCaptureTimeoutMs(){return(Zr(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get Ji(){var t=Zr(this._instance.config.capture_performance)&&Ci(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:hQ;return 0<t&&t<=6e4?hQ:t}get isEnabled(){var t=To==null?void 0:To.protocol;if(t!=="http:"&&t!=="https:")return Kh.info("Web Vitals are disabled on non-http/https protocols"),!1;var n=Zr(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:Yc(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return Yc(n)?n:this.qi}startIfEnabled(){this.isEnabled&&!this.i&&(Kh.info("enabled, starting..."),this.G(this.V))}onRemoteConfig(t){var n=Zr(t.capturePerformance)&&!!t.capturePerformance.web_vitals,r=Zr(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[OJ]:n}),this._instance.persistence.register({[RJ]:r})),this.qi=n,this.startIfEnabled()}G(t){var n,r;(n=sn.__PosthogExtensions__)!=null&&n.postHogWebVitalsCallbacks&&t(),(r=sn.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"web-vitals",s=>{s?Kh.error("failed to load script",s):t()})}Gi(){var t=Te?Te.location.href:void 0;return t||Kh.error("Could not determine current URL"),t}}var V1t=fi("[Heatmaps]");function fQ(e){return Zr(e)&&"clientX"in e&&"clientY"in e&&Ci(e.clientX)&&Ci(e.clientY)}class U1t{constructor(t){var n;this.rageclicks=new ybe,this.qi=!1,this.i=!1,this.Vi=null,this.instance=t,this.qi=!((n=this.instance.persistence)==null||!n.props[jF])}get flushIntervalMilliseconds(){var t=5e3;return Zr(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(t=this.instance.config.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return at(this.instance.config.capture_heatmaps)?at(this.instance.config.enable_heatmaps)?this.qi:this.instance.config.enable_heatmaps:this.instance.config.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.i)return;V1t.info("starting..."),this.Ki(),this.Vi=setInterval(this.Yi.bind(this),this.flushIntervalMilliseconds)}else{var t,n;clearInterval((t=this.Vi)!==null&&t!==void 0?t:void 0),(n=this.Xi)==null||n.stop(),this.getAndClearBuffer()}}onRemoteConfig(t){var n=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[jF]:n}),this.qi=n,this.startIfEnabled()}getAndClearBuffer(){var t=this.M;return this.M=void 0,t}Qi(t){this.Zi(t.originalEvent,"deadclick")}Ki(){Te&&bt&&(Hr(Te,"beforeunload",this.Yi.bind(this)),Hr(bt,"click",t=>this.Zi(t||(Te==null?void 0:Te.event)),{capture:!0}),Hr(bt,"mousemove",t=>this.te(t||(Te==null?void 0:Te.event)),{capture:!0}),this.Xi=new vbe(this.instance,Yxt,this.Qi.bind(this)),this.Xi.startIfEnabled(),this.i=!0)}ie(t,n){var r=this.instance.scrollManager.scrollY(),s=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),o=function(a,l,c){for(var u=a;u&&h_(u)&&!Rf(u,"body");){if(u===c)return!1;if(gn(l,Te==null?void 0:Te.getComputedStyle(u).position))return!0;u=dbe(u)}return!1}(ube(t),["fixed","sticky"],i);return{x:t.clientX+(o?0:s),y:t.clientY+(o?0:r),target_fixed:o,type:n}}Zi(t,n){var r;if(n===void 0&&(n="click"),!UJ(t.target)&&fQ(t)){var s=this.ie(t,n);(r=this.rageclicks)!=null&&r.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.ee(ut({},s,{type:"rageclick"})),this.ee(s)}}te(t){!UJ(t.target)&&fQ(t)&&(clearTimeout(this.re),this.re=setTimeout(()=>{this.ee(this.ie(t,"mousemove"))},500))}ee(t){if(Te){var n=Te.location.href;this.M=this.M||{},this.M[n]||(this.M[n]=[]),this.M[n].push(t)}}Yi(){this.M&&!v0(this.M)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class q1t{constructor(t){this._instance=t}doPageView(t,n){var r,s=this.se(t,n);return this.ne={pathname:(r=Te==null?void 0:Te.location.pathname)!==null&&r!==void 0?r:"",pageViewId:n,timestamp:t},this._instance.scrollManager.resetContext(),s}doPageLeave(t){var n;return this.se(t,(n=this.ne)==null?void 0:n.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.ne)==null?void 0:t.pageViewId}}se(t,n){var r=this.ne;if(!r)return{$pageview_id:n};var s={$pageview_id:n,$prev_pageview_id:r.pageViewId},i=this._instance.scrollManager.getContext();if(i&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:a,maxScrollY:l,maxContentHeight:c,lastContentY:u,maxContentY:d}=i;if(!(at(o)||at(a)||at(l)||at(c)||at(u)||at(d))){o=Math.ceil(o),a=Math.ceil(a),l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u),d=Math.ceil(d);var p=o<=1?1:Ha(a/o,0,1),m=o<=1?1:Ha(l/o,0,1),b=c<=1?1:Ha(u/c,0,1),x=c<=1?1:Ha(d/c,0,1);s=vs(s,{$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:p,$prev_pageview_max_scroll:l,$prev_pageview_max_scroll_percentage:m,$prev_pageview_last_content:u,$prev_pageview_last_content_percentage:b,$prev_pageview_max_content:d,$prev_pageview_max_content_percentage:x})}}return r.pathname&&(s.$prev_pageview_pathname=r.pathname),r.timestamp&&(s.$prev_pageview_duration=(t.getTime()-r.timestamp.getTime())/1e3),s}}var W1t=function(e){var t,n,r,s,i="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,`
|
|
728
728
|
`).replace(/\r/g,`
|
|
729
|
-
`)).length,s=0;s<r;s++){var o=e.charCodeAt(s),a=null;o<128?n++:a=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),Sp(a)||(n>t&&(i+=e.substring(t,n)),i+=a,t=n=s+1)}return n>t&&(i+=e.substring(t,e.length)),i},G1t=!!OF||!!FF,pQ="text/plain",z2=(e,t)=>{var[n,r]=e.split("?"),s=ut({},t);r==null||r.split("&").forEach(o=>{var[a]=o.split("=");delete s[a]});var i=Rxt(s);return n+"?"+(i=i?(r?r+"&":"")+i:r)},T1=(e,t)=>JSON.stringify(e,(n,r)=>typeof r=="bigint"?r.toString():r,t),G9=e=>{var{data:t,compression:n}=e;if(t){if(n===fd.GZipJS){var r=_be(Nbe(T1(t)),{mtime:0}),s=new Blob([r],{type:pQ});return{contentType:pQ,body:s,estimatedSize:s.size}}if(n===fd.Base64){var i=function(l){var c,u,d,p,m,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",x=0,C=0,S="",A=[];if(!l)return l;l=W1t(l);do c=(m=l.charCodeAt(x++)<<16|l.charCodeAt(x++)<<8|l.charCodeAt(x++))>>18&63,u=m>>12&63,d=m>>6&63,p=63&m,A[C++]=b.charAt(c)+b.charAt(u)+b.charAt(d)+b.charAt(p);while(x<l.length);switch(S=A.join(""),l.length%3){case 1:S=S.slice(0,-2)+"==";break;case 2:S=S.slice(0,-1)+"="}return S}(T1(t)),o=(l=>"data="+encodeURIComponent(typeof l=="string"?l:T1(l)))(i);return{contentType:"application/x-www-form-urlencoded",body:o,estimatedSize:new Blob([o]).size}}var a=T1(t);return{contentType:"application/json",body:a,estimatedSize:new Blob([a]).size}}},J1=[];FF&&J1.push({transport:"fetch",method:e=>{var t,n,{contentType:r,body:s,estimatedSize:i}=(t=G9(e))!==null&&t!==void 0?t:{},o=new Headers;dr(e.headers,function(u,d){o.append(d,u)}),r&&o.append("Content-Type",r);var a=e.url,l=null;if(_J){var c=new _J;l={signal:c.signal,timeout:setTimeout(()=>c.abort(),e.timeout)}}FF(a,ut({method:(e==null?void 0:e.method)||"GET",headers:o,keepalive:e.method==="POST"&&(i||0)<52428.8,body:s,signal:(n=l)==null?void 0:n.signal},e.fetchOptions)).then(u=>u.text().then(d=>{var p={statusCode:u.status,text:d};if(u.status===200)try{p.json=JSON.parse(d)}catch(m){Tt.error(m)}e.callback==null||e.callback(p)})).catch(u=>{Tt.error(u),e.callback==null||e.callback({statusCode:0,text:u})}).finally(()=>l?clearTimeout(l.timeout):null)}}),OF&&J1.push({transport:"XHR",method:e=>{var t,n=new OF;n.open(e.method||"GET",e.url,!0);var{contentType:r,body:s}=(t=G9(e))!==null&&t!==void 0?t:{};dr(e.headers,function(i,o){n.setRequestHeader(o,i)}),r&&n.setRequestHeader("Content-Type",r),e.timeout&&(n.timeout=e.timeout),n.withCredentials=!0,n.onreadystatechange=()=>{if(n.readyState===4){var i={statusCode:n.status,text:n.responseText};if(n.status===200)try{i.json=JSON.parse(n.responseText)}catch{}e.callback==null||e.callback(i)}},n.send(s)}}),xa!=null&&xa.sendBeacon&&J1.push({transport:"sendBeacon",method:e=>{var t=z2(e.url,{beacon:"1"});try{var n,{contentType:r,body:s}=(n=G9(e))!==null&&n!==void 0?n:{},i=typeof s=="string"?new Blob([s],{type:r}):s;xa.sendBeacon(t,i)}catch{}}});var qb=function(e,t){if(!function(n){try{new RegExp(n)}catch{return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function mQ(e,t,n){return T1({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var Y1t={exact:(e,t)=>t.some(n=>e.some(r=>n===r)),is_not:(e,t)=>t.every(n=>e.every(r=>n!==r)),regex:(e,t)=>t.some(n=>e.some(r=>qb(n,r))),not_regex:(e,t)=>t.every(n=>e.every(r=>!qb(n,r))),icontains:(e,t)=>t.map(rD).some(n=>e.map(rD).some(r=>n.includes(r))),not_icontains:(e,t)=>t.map(rD).every(n=>e.map(rD).every(r=>!n.includes(r)))},rD=e=>e.toLowerCase(),X1t=fi("[Error tracking]");class K1t{constructor(t){var n,r;this.oe=[],this._instance=t,this.oe=(n=(r=this._instance.persistence)==null?void 0:r.get_property(LF))!==null&&n!==void 0?n:[]}onRemoteConfig(t){var n,r,s=(n=(r=t.errorTracking)==null?void 0:r.suppressionRules)!==null&&n!==void 0?n:[];this.oe=s,this._instance.persistence&&this._instance.persistence.register({[LF]:this.oe})}sendExceptionEvent(t){this.ae(t)?X1t.info("Skipping exception capture because a suppression rule matched"):this._instance.capture("$exception",t,{_noTruncate:!0,_batchKey:"exceptionEvent"})}ae(t){var n=t.$exception_list;if(!n||!Mr(n)||n.length===0)return!1;var r=n.reduce((s,i)=>{var{type:o,value:a}=i;return Qr(o)&&o.length>0&&s.$exception_types.push(o),Qr(a)&&a.length>0&&s.$exception_values.push(a),s},{$exception_types:[],$exception_values:[]});return this.oe.some(s=>{var i=s.values.map(o=>{var a,l=Y1t[o.operator],c=Mr(o.value)?o.value:[o.value],u=(a=r[o.key])!==null&&a!==void 0?a:[];return c.length>0&&l(c,u)});return s.type==="OR"?i.some(Boolean):i.every(Boolean)})}}var Ya="Mobile",H2="iOS",Xc="Android",cS="Tablet",Rbe=Xc+" "+cS,Ibe="iPad",jbe="Apple",Lbe=jbe+" Watch",uS="Safari",Wb="BlackBerry",Bbe="Samsung",$be=Bbe+"Browser",zbe=Bbe+" Internet",vg="Chrome",Z1t=vg+" OS",Hbe=vg+" "+H2,iB="Internet Explorer",Vbe=iB+" "+Ya,oB="Opera",J1t=oB+" Mini",aB="Edge",Ube="Microsoft "+aB,$0="Firefox",qbe=$0+" "+H2,dS="Nintendo",hS="PlayStation",z0="Xbox",Wbe=Xc+" "+Ya,Gbe=Ya+" "+uS,_1="Windows",rO=_1+" Phone",gQ="Nokia",sO="Ouya",Ybe="Generic",Q1t=Ybe+" "+Ya.toLowerCase(),Xbe=Ybe+" "+cS.toLowerCase(),iO="Konqueror",Bi="(\\d+(\\.\\d+)?)",Y9=new RegExp("Version/"+Bi),ewt=new RegExp(z0,"i"),twt=new RegExp(hS+" \\w+","i"),nwt=new RegExp(dS+" \\w+","i"),lB=new RegExp(Wb+"|PlayBook|BB10","i"),rwt={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},swt=(e,t)=>t&&gn(t,jbe)||function(n){return gn(n,uS)&&!gn(n,vg)&&!gn(n,Xc)}(e),Kbe=function(e,t){return t=t||"",gn(e," OPR/")&&gn(e,"Mini")?J1t:gn(e," OPR/")?oB:lB.test(e)?Wb:gn(e,"IE"+Ya)||gn(e,"WPDesktop")?Vbe:gn(e,$be)?zbe:gn(e,aB)||gn(e,"Edg/")?Ube:gn(e,"FBIOS")?"Facebook "+Ya:gn(e,"UCWEB")||gn(e,"UCBrowser")?"UC Browser":gn(e,"CriOS")?Hbe:gn(e,"CrMo")||gn(e,vg)?vg:gn(e,Xc)&&gn(e,uS)?Wbe:gn(e,"FxiOS")?qbe:gn(e.toLowerCase(),iO.toLowerCase())?iO:swt(e,t)?gn(e,Ya)?Gbe:uS:gn(e,$0)?$0:gn(e,"MSIE")||gn(e,"Trident/")?iB:gn(e,"Gecko")?$0:""},iwt={[Vbe]:[new RegExp("rv:"+Bi)],[Ube]:[new RegExp(aB+"?\\/"+Bi)],[vg]:[new RegExp("("+vg+"|CrMo)\\/"+Bi)],[Hbe]:[new RegExp("CriOS\\/"+Bi)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Bi)],[uS]:[Y9],[Gbe]:[Y9],[oB]:[new RegExp("(Opera|OPR)\\/"+Bi)],[$0]:[new RegExp($0+"\\/"+Bi)],[qbe]:[new RegExp("FxiOS\\/"+Bi)],[iO]:[new RegExp("Konqueror[:/]?"+Bi,"i")],[Wb]:[new RegExp(Wb+" "+Bi),Y9],[Wbe]:[new RegExp("android\\s"+Bi,"i")],[zbe]:[new RegExp($be+"\\/"+Bi)],[iB]:[new RegExp("(rv:|MSIE )"+Bi)],Mozilla:[new RegExp("rv:"+Bi)]},owt=function(e,t){var n=Kbe(e,t),r=iwt[n];if(at(r))return null;for(var s=0;s<r.length;s++){var i=r[s],o=e.match(i);if(o)return parseFloat(o[o.length-2])}return null},yQ=[[new RegExp(z0+"; "+z0+" (.*?)[);]","i"),e=>[z0,e&&e[1]||""]],[new RegExp(dS,"i"),[dS,""]],[new RegExp(hS,"i"),[hS,""]],[lB,[Wb,""]],[new RegExp(_1,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[rO,""];if(new RegExp(Ya).test(t)&&!/IEMobile\b/.test(t))return[_1+" "+Ya,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=n[1],s=rwt[r]||"";return/arm/i.test(t)&&(s="RT"),[_1,s]}return[_1,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[H2,t.join(".")]}return[H2,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=at(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Xc+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Xc+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[Xc,t.join(".")]}return[Xc,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];if(e&&e[1]){var n=[e[1],e[2],e[3]||"0"];t[1]=n.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[Z1t,""]],[/Linux|debian/i,["Linux",""]]],bQ=function(e){return nwt.test(e)?dS:twt.test(e)?hS:ewt.test(e)?z0:new RegExp(sO,"i").test(e)?sO:new RegExp("("+rO+"|WPDesktop)","i").test(e)?rO:/iPad/.test(e)?Ibe:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?Lbe:lB.test(e)?Wb:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(gQ,"i").test(e)?gQ:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(Ya).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?Xc:Rbe:Xc:new RegExp("(pda|"+Ya+")","i").test(e)?Q1t:new RegExp(cS,"i").test(e)&&!new RegExp(cS+" pc","i").test(e)?Xbe:""},sD="https?://(.*)",p_=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],awt=d_(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],p_),cB="<masked>";function Zbe(e,t,n){if(!bt)return{};var r=t?d_([],p_,n||[]):[];return Jbe(JL(bt.URL,r,cB),e)}function Jbe(e,t){var n=awt.concat(t||[]),r={};return dr(n,function(s){var i=R2(e,s);r[s]=i||null}),r}function Qbe(e){var t=function(i){return i?i.search(sD+"google.([^/?]*)")===0?"google":i.search(sD+"bing.com")===0?"bing":i.search(sD+"yahoo.com")===0?"yahoo":i.search(sD+"duckduckgo.com")===0?"duckduckgo":null:null}(e),n=t!="yahoo"?"q":"p",r={};if(!Sp(t)){r.$search_engine=t;var s=bt?R2(bt.referrer,n):"";s.length&&(r.ph_keyword=s)}return r}function vQ(){return navigator.language||navigator.userLanguage}function eve(){return(bt==null?void 0:bt.referrer)||"$direct"}function tve(e,t){var n=e?d_([],p_,t||[]):[],r=To==null?void 0:To.href.substring(0,1e3);return{r:eve().substring(0,1e3),u:r?JL(r,n,cB):void 0}}function nve(e){var t,{r:n,u:r}=e,s={$referrer:n,$referring_domain:n==null?void 0:n=="$direct"?"$direct":(t=Vb(n))==null?void 0:t.host};if(r){s.$current_url=r;var i=Vb(r);s.$host=i==null?void 0:i.host,s.$pathname=i==null?void 0:i.pathname;var o=Jbe(r);vs(s,o)}if(n){var a=Qbe(n);vs(s,a)}return s}function rve(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function lwt(){try{return new Date().getTimezoneOffset()}catch{return}}function cwt(e,t){if(!So)return{};var n,r,s,i=e?d_([],p_,t||[]):[],[o,a]=function(l){for(var c=0;c<yQ.length;c++){var[u,d]=yQ[c],p=u.exec(l),m=p&&(Wa(d)?d(p,l):d);if(m)return m}return["",""]}(So);return vs(KL({$os:o,$os_version:a,$browser:Kbe(So,navigator.vendor),$device:bQ(So),$device_type:(r=So,s=bQ(r),s===Ibe||s===Rbe||s==="Kobo"||s==="Kindle Fire"||s===Xbe?cS:s===dS||s===z0||s===hS||s===sO?"Console":s===Lbe?"Wearable":s?Ya:"Desktop"),$timezone:rve(),$timezone_offset:lwt()}),{$current_url:JL(To==null?void 0:To.href,i,cB),$host:To==null?void 0:To.host,$pathname:To==null?void 0:To.pathname,$raw_user_agent:So.length>1e3?So.substring(0,997)+"...":So,$browser_version:owt(So,navigator.vendor),$browser_language:vQ(),$browser_language_prefix:(n=vQ(),typeof n=="string"?n.split("-")[0]:void 0),$screen_height:Te==null?void 0:Te.screen.height,$screen_width:Te==null?void 0:Te.screen.width,$viewport_height:Te==null?void 0:Te.innerHeight,$viewport_width:Te==null?void 0:Te.innerWidth,$lib:"web",$lib_version:ad.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}var _c=fi("[FeatureFlags]"),X9="$active_feature_flags",qy="$override_feature_flags",xQ="$feature_flag_payloads",d1="$override_feature_flag_payloads",wQ="$feature_flag_request_id",SQ=e=>{var t={};for(var[n,r]of UD(e||{}))r&&(t[n]=r);return t},uwt=e=>{var t=e.flags;return t?(e.featureFlags=Object.fromEntries(Object.keys(t).map(n=>{var r;return[n,(r=t[n].variant)!==null&&r!==void 0?r:t[n].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(t).filter(n=>t[n].enabled).filter(n=>{var r;return(r=t[n].metadata)==null?void 0:r.payload}).map(n=>{var r;return[n,(r=t[n].metadata)==null?void 0:r.payload]}))):_c.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e},dwt=function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e}({});class hwt{constructor(t){this.le=!1,this.ue=!1,this.he=!1,this.de=!1,this.ve=!1,this.ce=!1,this.fe=!1,this._instance=t,this.featureFlagEventHandlers=[]}decide(){if(this._instance.config.__preview_remote_config)this.ce=!0;else{var t=!this.pe&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this._e({disableFlags:t})}}get hasLoadedFlags(){return this.ue}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this._instance.get_property(HF),n=this._instance.get_property(qy),r=this._instance.get_property(d1);if(!r&&!n)return t||{};var s=vs({},t||{}),i=[...new Set([...Object.keys(r||{}),...Object.keys(n||{})])];for(var o of i){var a,l,c=s[o],u=n==null?void 0:n[o],d=at(u)?(a=c==null?void 0:c.enabled)!==null&&a!==void 0&&a:!!u,p=at(u)?c.variant:typeof u=="string"?u:void 0,m=r==null?void 0:r[o],b=ut({},c,{enabled:d,variant:d?p??(c==null?void 0:c.variant):void 0});d!==(c==null?void 0:c.enabled)&&(b.original_enabled=c==null?void 0:c.enabled),p!==(c==null?void 0:c.variant)&&(b.original_variant=c==null?void 0:c.variant),m&&(b.metadata=ut({},c==null?void 0:c.metadata,{payload:m,original_payload:c==null||(l=c.metadata)==null?void 0:l.payload})),s[o]=b}return this.le||(_c.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:r,finalDetails:s}),this.le=!0),s}getFlagVariants(){var t=this._instance.get_property(x0),n=this._instance.get_property(qy);if(!n)return t||{};for(var r=vs({},t),s=Object.keys(n),i=0;i<s.length;i++)r[s[i]]=n[s[i]];return this.le||(_c.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:n,finalFlags:r}),this.le=!0),r}getFlagPayloads(){var t=this._instance.get_property(xQ),n=this._instance.get_property(d1);if(!n)return t||{};for(var r=vs({},t||{}),s=Object.keys(n),i=0;i<s.length;i++)r[s[i]]=n[s[i]];return this.le||(_c.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:n,finalPayloads:r}),this.le=!0),r}reloadFeatureFlags(){this.de||this._instance.config.advanced_disable_feature_flags||this.pe||(this.pe=setTimeout(()=>{this._e()},5))}ge(){clearTimeout(this.pe),this.pe=void 0}ensureFlagsLoaded(){this.ue||this.he||this.pe||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.de=t}_e(t){var n;if(this.ge(),!this._instance.config.advanced_disable_decide)if(this.he)this.ve=!0;else{var r={token:this._instance.config.token,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:ut({},((n=this._instance.persistence)==null?void 0:n.get_initial_props())||{},this._instance.get_property(D1)||{}),group_properties:this._instance.get_property(hm)};(t!=null&&t.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(r.disable_flags=!0);var s=this._instance.config.__preview_flags_v2&&this._instance.config.__preview_remote_config,i=s?"/flags/?v=2":"/decide/?v=4",o=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",a=this._instance.requestRouter.endpointFor("api",i+o);s&&(r.timezone=rve()),this.he=!0,this._instance.me({method:"POST",url:a,data:r,compression:this._instance.config.disable_compression?void 0:fd.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:l=>{var c,u,d=!0;if(l.statusCode===200&&(this.ve||(this.$anon_distinct_id=void 0),d=!1),this.he=!1,this.ce||(this.ce=!0,this._instance.be((u=l.json)!==null&&u!==void 0?u:{})),!r.disable_flags||this.ve)if(this.fe=!d,l.json&&(c=l.json.quotaLimited)!=null&&c.includes(dwt.FeatureFlags))_c.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");else{var p;r.disable_flags||this.receivedFeatureFlags((p=l.json)!==null&&p!==void 0?p:{},d),this.ve&&(this.ve=!1,this._e())}}})}}getFeatureFlag(t,n){if(n===void 0&&(n={}),this.ue||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],s=""+r,i=this._instance.get_property(wQ)||void 0,o=this._instance.get_property(P2)||{};if((n.send_event||!("send_event"in n))&&(!(t in o)||!o[t].includes(s))){var a,l,c,u,d,p,m,b,x;Mr(o[t])?o[t].push(s):o[t]=[s],(a=this._instance.persistence)==null||a.register({[P2]:o});var C=this.getFeatureFlagDetails(t),S={$feature_flag:t,$feature_flag_response:r,$feature_flag_payload:this.getFeatureFlagPayload(t)||null,$feature_flag_request_id:i,$feature_flag_bootstrapped_response:((l=this._instance.config.bootstrap)==null||(l=l.featureFlags)==null?void 0:l[t])||null,$feature_flag_bootstrapped_payload:((c=this._instance.config.bootstrap)==null||(c=c.featureFlagPayloads)==null?void 0:c[t])||null,$used_bootstrap_value:!this.fe};at(C==null||(u=C.metadata)==null?void 0:u.version)||(S.$feature_flag_version=C.metadata.version);var A,T=(d=C==null||(p=C.reason)==null?void 0:p.description)!==null&&d!==void 0?d:C==null||(m=C.reason)==null?void 0:m.code;T&&(S.$feature_flag_reason=T),C!=null&&(b=C.metadata)!=null&&b.id&&(S.$feature_flag_id=C.metadata.id),at(C==null?void 0:C.original_variant)&&at(C==null?void 0:C.original_enabled)||(S.$feature_flag_original_response=at(C.original_variant)?C.original_enabled:C.original_variant),C!=null&&(x=C.metadata)!=null&&x.original_payload&&(S.$feature_flag_original_payload=C==null||(A=C.metadata)==null?void 0:A.original_payload),this._instance.capture("$feature_flag_called",S)}return r}_c.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){return this.getFlagPayloads()[t]}getRemoteConfigPayload(t,n){var r=this._instance.config.token;this._instance.me({method:"POST",url:this._instance.requestRouter.endpointFor("api","/decide/?v=4"),data:{distinct_id:this._instance.get_distinct_id(),token:r},compression:this._instance.config.disable_compression?void 0:fd.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:s=>{var i,o=(i=s.json)==null?void 0:i.featureFlagPayloads;n((o==null?void 0:o[t])||void 0)}})}isFeatureEnabled(t,n){if(n===void 0&&(n={}),this.ue||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);_c.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(n=>n!==t)}receivedFeatureFlags(t,n){if(this._instance.persistence){this.ue=!0;var r=this.getFlagVariants(),s=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(o,a,l,c,u){l===void 0&&(l={}),c===void 0&&(c={}),u===void 0&&(u={});var d=uwt(o),p=d.flags,m=d.featureFlags,b=d.featureFlagPayloads;if(m){var x=o.requestId;if(Mr(m)){_c.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var C={};if(m)for(var S=0;S<m.length;S++)C[m[S]]=!0;a&&a.register({[X9]:m,[x0]:C})}else{var A=m,T=b,N=p;o.errorsWhileComputingFlags&&(A=ut({},l,A),T=ut({},c,T),N=ut({},u,N)),a&&a.register(ut({[X9]:Object.keys(SQ(A)),[x0]:A||{},[xQ]:T||{},[HF]:N||{}},x?{[wQ]:x}:{}))}}})(t,this._instance.persistence,r,s,i),this.ye(n)}}override(t,n){n===void 0&&(n=!1),_c.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:n})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this._instance.persistence)return _c.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this._instance.persistence.unregister(qy),this._instance.persistence.unregister(d1),void this.ye();if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var n,r=t;if(this.le=!!((n=r.suppressWarning)!==null&&n!==void 0&&n),"flags"in r){if(r.flags===!1)this._instance.persistence.unregister(qy);else if(r.flags)if(Mr(r.flags)){for(var s={},i=0;i<r.flags.length;i++)s[r.flags[i]]=!0;this._instance.persistence.register({[qy]:s})}else this._instance.persistence.register({[qy]:r.flags})}return"payloads"in r&&(r.payloads===!1?this._instance.persistence.unregister(d1):r.payloads&&this._instance.persistence.register({[d1]:r.payloads})),void this.ye()}this.ye()}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.ue){var{flags:n,flagVariants:r}=this.we();t(n,r)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,n){var r,s=(this._instance.get_property(qD)||[]).find(l=>l.flagKey===t),i={["$feature_enrollment/"+t]:n},o={$feature_flag:t,$feature_enrollment:n,$set:i};s&&(o.$early_access_feature_name=s.name),this._instance.capture("$feature_enrollment_update",o),this.setPersonPropertiesForFlags(i,!1);var a=ut({},this.getFlagVariants(),{[t]:n});(r=this._instance.persistence)==null||r.register({[X9]:Object.keys(SQ(a)),[x0]:a}),this.ye()}getEarlyAccessFeatures(t,n,r){n===void 0&&(n=!1);var s=this._instance.get_property(qD),i=r?"&"+r.map(o=>"stage="+o).join("&"):"";if(s&&!n)return t(s);this._instance.me({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+i),method:"GET",callback:o=>{var a;if(o.json){var l=o.json.earlyAccessFeatures;return(a=this._instance.persistence)==null||a.register({[qD]:l}),t(l)}}})}we(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(r=>n[r]),flagVariants:Object.keys(n).filter(r=>n[r]).reduce((r,s)=>(r[s]=n[s],r),{})}}ye(t){var{flags:n,flagVariants:r}=this.we();this.featureFlagEventHandlers.forEach(s=>s(n,r,{errorsLoading:t}))}setPersonPropertiesForFlags(t,n){n===void 0&&(n=!0);var r=this._instance.get_property(D1)||{};this._instance.register({[D1]:ut({},r,t)}),n&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(D1)}setGroupPropertiesForFlags(t,n){n===void 0&&(n=!0);var r=this._instance.get_property(hm)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(s=>{r[s]=ut({},r[s],t[s]),delete t[s]}),this._instance.register({[hm]:ut({},r,t)}),n&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var n=this._instance.get_property(hm)||{};this._instance.register({[hm]:ut({},n,{[t]:{}})})}else this._instance.unregister(hm)}}var fwt=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class K9{constructor(t){this.S=t,this.props={},this.Se=!1,this.$e=(n=>{var r="";return n.token&&(r=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+r+"_posthog"})(t),this.q=this.ke(t),this.load(),t.debug&&Tt.info("Persistence loaded",t.persistence,ut({},this.props)),this.update_config(t,t),this.save()}ke(t){fwt.indexOf(t.persistence.toLowerCase())===-1&&(Tt.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var n=t.persistence.toLowerCase();return n==="localstorage"&&Fs.O()?Fs:n==="localstorage+cookie"&&ZE.O()?ZE:n==="sessionstorage"&&si.O()?si:n==="memory"?Wxt:n==="cookie"?wd:ZE.O()?ZE:wd}properties(){var t={};return dr(this.props,function(n,r){if(r===x0&&Zr(n))for(var s=Object.keys(n),i=0;i<s.length;i++)t["$feature/"+s[i]]=n[s[i]];else a=r,l=!1,(Sp(o=Dxt)?l:TJ&&o.indexOf===TJ?o.indexOf(a)!=-1:(dr(o,function(c){if(l||(l=c===a))return _2}),l))||(t[r]=n);var o,a,l}),t}load(){if(!this.xe){var t=this.q.D(this.$e);t&&(this.props=vs({},t))}}save(){this.xe||this.q.L(this.$e,this.props,this.Ee,this.Ie,this.Pe,this.S.debug)}remove(){this.q.N(this.$e,!1),this.q.N(this.$e,!0)}clear(){this.remove(),this.props={}}register_once(t,n,r){if(Zr(t)){at(n)&&(n="None"),this.Ee=at(r)?this.Re:r;var s=!1;if(dr(t,(i,o)=>{this.props.hasOwnProperty(o)&&this.props[o]!==n||(this.props[o]=i,s=!0)}),s)return this.save(),!0}return!1}register(t,n){if(Zr(t)){this.Ee=at(n)?this.Re:n;var r=!1;if(dr(t,(s,i)=>{t.hasOwnProperty(i)&&this.props[i]!==s&&(this.props[i]=s,r=!0)}),r)return this.save(),!0}return!1}unregister(t){t in this.props&&(delete this.props[t],this.save())}update_campaign_params(){if(!this.Se){var t=Zbe(this.S.custom_campaign_params,this.S.mask_personal_data_properties,this.S.custom_personal_data_properties);v0(KL(t))||this.register(t),this.Se=!0}}update_search_keyword(){var t;this.register((t=bt==null?void 0:bt.referrer)?Qbe(t):{})}update_referrer_info(){var t;this.register_once({$referrer:eve(),$referring_domain:bt!=null&&bt.referrer&&((t=Vb(bt.referrer))==null?void 0:t.host)||"$direct"},void 0)}set_initial_person_info(){this.props[WF]||this.props[GF]||this.register_once({[M2]:tve(this.S.mask_personal_data_properties,this.S.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};dr([GF,WF],o=>{var a=this.props[o];a&&dr(a,function(l,c){t["$initial_"+RF(c)]=l})});var n,r,s=this.props[M2];if(s){var i=(n=nve(s),r={},dr(n,function(o,a){r["$initial_"+RF(a)]=o}),r);vs(t,i)}return t}safe_merge(t){return dr(this.props,function(n,r){r in t||(t[r]=n)}),t}update_config(t,n){if(this.Re=this.Ee=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==n.persistence){var r=this.ke(t),s=this.props;this.clear(),this.q=r,this.props=s,this.save()}}set_disabled(t){this.xe=t,this.xe?this.remove():this.save()}set_cross_subdomain(t){t!==this.Ie&&(this.Ie=t,this.remove(),this.save())}set_secure(t){t!==this.Pe&&(this.Pe=t,this.remove(),this.save())}set_event_timer(t,n){var r=this.props[k1]||{};r[t]=n,this.props[k1]=r,this.save()}remove_event_timer(t){var n=(this.props[k1]||{})[t];return at(n)||(delete this.props[k1][t],this.save()),n}get_property(t){return this.props[t]}set_property(t,n){this.props[t]=n,this.save()}}class sve{constructor(){this.Te={},this.Te={}}on(t,n){return this.Te[t]||(this.Te[t]=[]),this.Te[t].push(n),()=>{this.Te[t]=this.Te[t].filter(r=>r!==n)}}emit(t,n){for(var r of this.Te[t]||[])r(n);for(var s of this.Te["*"]||[])s(t,n)}}class gm{constructor(t){this.Me=new sve,this.Ce=(n,r)=>this.Oe(n,r)&&this.Fe(n,r)&&this.Ae(n,r),this.Oe=(n,r)=>r==null||!r.event||(n==null?void 0:n.event)===(r==null?void 0:r.event),this._instance=t,this.De=new Set,this.Le=new Set}init(){var t;if(!at((t=this._instance)==null?void 0:t.Ne)){var n;(n=this._instance)==null||n.Ne((r,s)=>{this.on(r,s)})}}register(t){var n,r;if(!at((n=this._instance)==null?void 0:n.Ne)&&(t.forEach(o=>{var a,l;(a=this.Le)==null||a.add(o),(l=o.steps)==null||l.forEach(c=>{var u;(u=this.De)==null||u.add((c==null?void 0:c.event)||"")})}),(r=this._instance)!=null&&r.autocapture)){var s,i=new Set;t.forEach(o=>{var a;(a=o.steps)==null||a.forEach(l=>{l!=null&&l.selector&&i.add(l==null?void 0:l.selector)})}),(s=this._instance)==null||s.autocapture.setElementSelectors(i)}}on(t,n){var r;n!=null&&t.length!=0&&(this.De.has(t)||this.De.has(n==null?void 0:n.event))&&this.Le&&((r=this.Le)==null?void 0:r.size)>0&&this.Le.forEach(s=>{this.je(n,s)&&this.Me.emit("actionCaptured",s.name)})}ze(t){this.onAction("actionCaptured",n=>t(n))}je(t,n){if((n==null?void 0:n.steps)==null)return!1;for(var r of n.steps)if(this.Ce(t,r))return!0;return!1}onAction(t,n){return this.Me.on(t,n)}Fe(t,n){if(n!=null&&n.url){var r,s=t==null||(r=t.properties)==null?void 0:r.$current_url;if(!s||typeof s!="string"||!gm.Ue(s,n==null?void 0:n.url,(n==null?void 0:n.url_matching)||"contains"))return!1}return!0}static Ue(t,n,r){switch(r){case"regex":return!!Te&&qb(t,n);case"exact":return n===t;case"contains":var s=gm.qe(n).replace(/_/g,".").replace(/%/g,".*");return qb(t,s);default:return!1}}static qe(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Ae(t,n){if((n!=null&&n.href||n!=null&&n.tag_name||n!=null&&n.text)&&!this.Be(t).some(i=>!(n!=null&&n.href&&!gm.Ue(i.href||"",n==null?void 0:n.href,(n==null?void 0:n.href_matching)||"exact"))&&(n==null||!n.tag_name||i.tag_name===(n==null?void 0:n.tag_name))&&!(n!=null&&n.text&&!gm.Ue(i.text||"",n==null?void 0:n.text,(n==null?void 0:n.text_matching)||"exact")&&!gm.Ue(i.$el_text||"",n==null?void 0:n.text,(n==null?void 0:n.text_matching)||"exact"))))return!1;if(n!=null&&n.selector){var r,s=t==null||(r=t.properties)==null?void 0:r.$element_selectors;if(!s||!s.includes(n==null?void 0:n.selector))return!1}return!0}Be(t){return(t==null?void 0:t.properties.$elements)==null?[]:t==null?void 0:t.properties.$elements}}var Ns=fi("[Surveys]"),oO="seenSurvey_",pwt=(e,t)=>{var n="$survey_"+t+"/"+e.id;return e.current_iteration&&e.current_iteration>0&&(n="$survey_"+t+"/"+e.id+"/"+e.current_iteration),n};class mwt{constructor(t){this._instance=t,this.He=new Map,this.We=new Map}register(t){var n;at((n=this._instance)==null?void 0:n.Ne)||(this.Ge(t),this.Je(t))}Je(t){var n=t.filter(r=>{var s,i;return((s=r.conditions)==null?void 0:s.actions)&&((i=r.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0});n.length!==0&&(this.Ve==null&&(this.Ve=new gm(this._instance),this.Ve.init(),this.Ve.ze(r=>{this.onAction(r)})),n.forEach(r=>{var s,i,o,a,l;r.conditions&&(s=r.conditions)!=null&&s.actions&&(i=r.conditions)!=null&&(i=i.actions)!=null&&i.values&&((o=r.conditions)==null||(o=o.actions)==null||(o=o.values)==null?void 0:o.length)>0&&((a=this.Ve)==null||a.register(r.conditions.actions.values),(l=r.conditions)==null||(l=l.actions)==null||(l=l.values)==null||l.forEach(c=>{if(c&&c.name){var u=this.We.get(c.name);u&&u.push(r.id),this.We.set(c.name,u||[r.id])}}))}))}Ge(t){var n;t.filter(r=>{var s,i;return((s=r.conditions)==null?void 0:s.events)&&((i=r.conditions)==null||(i=i.events)==null||(i=i.values)==null?void 0:i.length)>0}).length!==0&&((n=this._instance)==null||n.Ne((r,s)=>{this.onEvent(r,s)}),t.forEach(r=>{var s;(s=r.conditions)==null||(s=s.events)==null||(s=s.values)==null||s.forEach(i=>{if(i&&i.name){var o=this.He.get(i.name);o&&o.push(r.id),this.He.set(i.name,o||[r.id])}})}))}onEvent(t,n){var r,s=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[KE])||[];if(t==="survey shown"&&n&&s.length>0){var i;Ns.info("survey event matched, removing survey from activated surveys",{event:t,eventPayload:n,existingActivatedSurveys:s});var o=n==null||(i=n.properties)==null?void 0:i.$survey_id;if(o){var a=s.indexOf(o);a>=0&&(s.splice(a,1),this.Ke(s))}}else this.He.has(t)&&(Ns.info("survey event matched, updating activated surveys",{event:t,surveys:this.He.get(t)}),this.Ke(s.concat(this.He.get(t)||[])))}onAction(t){var n,r=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[KE])||[];this.We.has(t)&&this.Ke(r.concat(this.We.get(t)||[]))}Ke(t){var n;(n=this._instance)==null||(n=n.persistence)==null||n.register({[KE]:[...new Set(t)]})}getSurveys(){var t,n=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[KE];return n||[]}getEventToSurveys(){return this.He}Ye(){return this.Ve}}class gwt{constructor(t){this.Xe=null,this.Qe=!1,this.Ze=!1,this.tr=[],this._instance=t,this._surveyEventReceiver=null}onRemoteConfig(t){var n=t.surveys;if(zn(n))return Ns.warn("Decide not loaded yet. Not loading surveys.");var r=Mr(n);this.ir=r?n.length>0:n,Ns.info("decide response received, hasSurveys: "+this.ir),this.ir&&this.loadIfEnabled()}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);(r!=null&&r.startsWith(oO)||r!=null&&r.startsWith("inProgressSurvey_"))&&t.push(r)}t.forEach(s=>localStorage.removeItem(s))}loadIfEnabled(){if(!this.Xe)if(this.Ze)Ns.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)Ns.info("Disabled. Not loading surveys.");else if(this.ir){var t=sn==null?void 0:sn.__PosthogExtensions__;if(t){this.Ze=!0;try{var n=t.generateSurveys;if(n)return void this.er(n);var r=t.loadExternalDependency;if(!r)return void this.rr("PostHog loadExternalDependency extension not found.");r(this._instance,"surveys",s=>{s||!t.generateSurveys?this.rr("Could not load surveys script",s):this.er(t.generateSurveys)})}catch(s){throw this.rr("Error initializing surveys",s),s}finally{this.Ze=!1}}else Ns.error("PostHog Extensions not found.")}else Ns.info("No surveys to load.")}er(t){this.Xe=t(this._instance),this._surveyEventReceiver=new mwt(this._instance),Ns.info("Surveys loaded successfully"),this.sr({isLoaded:!0})}rr(t,n){Ns.error(t,n),this.sr({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.tr.push(t),this.Xe&&this.sr({isLoaded:!0}),()=>{this.tr=this.tr.filter(n=>n!==t)}}getSurveys(t,n){if(n===void 0&&(n=!1),this._instance.config.disable_surveys)return Ns.info("Disabled. Not loading surveys."),t([]);var r=this._instance.get_property(VF);if(r&&!n)return t(r,{isLoaded:!0});if(this.Qe)return t([],{isLoaded:!1,error:"Surveys are already being loaded"});try{this.Qe=!0,this._instance.me({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:s=>{var i;this.Qe=!1;var o=s.statusCode;if(o!==200||!s.json){var a="Surveys API could not be loaded, status: "+o;return Ns.error(a),t([],{isLoaded:!1,error:a})}var l,c=s.json.surveys||[],u=c.filter(d=>function(p){return!(!p.start_date||p.end_date)}(d)&&(function(p){var m;return!((m=p.conditions)==null||(m=m.events)==null||(m=m.values)==null||!m.length)}(d)||function(p){var m;return!((m=p.conditions)==null||(m=m.actions)==null||(m=m.values)==null||!m.length)}(d)));return u.length>0&&((l=this._surveyEventReceiver)==null||l.register(u)),(i=this._instance.persistence)==null||i.register({[VF]:c}),t(c,{isLoaded:!0})}})}catch(s){throw this.Qe=!1,s}}sr(t){for(var n of this.tr)try{t.isLoaded?this.getSurveys(n):n([],t)}catch(r){Ns.error("Error in survey callback",r)}}getActiveMatchingSurveys(t,n){if(n===void 0&&(n=!1),!zn(this.Xe))return this.Xe.getActiveMatchingSurveys(t,n);Ns.warn("init was not called")}nr(t){var n=null;return this.getSurveys(r=>{var s;n=(s=r.find(i=>i.id===t))!==null&&s!==void 0?s:null}),n}ar(t){if(zn(this.Xe))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var n=typeof t=="string"?this.nr(t):t;return n?this.Xe.checkSurveyEligibility(n):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(zn(this.Xe))return Ns.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var n=this.ar(t);return{visible:n.eligible,disabledReason:n.reason}}canRenderSurveyAsync(t,n){return zn(this.Xe)?(Ns.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise(r=>{this.getSurveys(s=>{var i,o=(i=s.find(l=>l.id===t))!==null&&i!==void 0?i:null;if(o){var a=this.ar(o);r({visible:a.eligible,disabledReason:a.reason})}else r({visible:!1,disabledReason:"Survey not found"})},n)})}renderSurvey(t,n){if(zn(this.Xe))Ns.warn("init was not called");else{var r=this.nr(t),s=bt==null?void 0:bt.querySelector(n);r?s?this.Xe.renderSurvey(r,s):Ns.warn("Survey element not found"):Ns.warn("Survey not found")}}}(function(e){return e.Button="button",e.Tab="tab",e.Selector="selector",e})({});(function(e){return e.TopLeft="top_left",e.TopRight="top_right",e.TopCenter="top_center",e.MiddleLeft="middle_left",e.MiddleRight="middle_right",e.MiddleCenter="middle_center",e.Left="left",e.Center="center",e.Right="right",e.NextToTrigger="next_to_trigger",e})({});(function(e){return e.Popover="popover",e.API="api",e.Widget="widget",e})({});(function(e){return e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link",e})({});(function(e){return e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question",e})({});(function(e){return e.Once="once",e.Recurring="recurring",e.Always="always",e})({});var Z9=function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e}({}),CQ=function(e){return e.SURVEY_ID="$survey_id",e.SURVEY_NAME="$survey_name",e.SURVEY_RESPONSE="$survey_response",e.SURVEY_ITERATION="$survey_iteration",e.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",e.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",e.SURVEY_SUBMISSION_ID="$survey_submission_id",e.SURVEY_QUESTIONS="$survey_questions",e.SURVEY_COMPLETED="$survey_completed",e}({}),kQ=fi("[RateLimiter]");class ywt{constructor(t){var n,r;this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=s=>{var i=s.text;if(i&&i.length)try{(JSON.parse(i).quota_limited||[]).forEach(o=>{kQ.info((o||"events")+" is quota limited."),this.serverLimits[o]=new Date().getTime()+6e4})}catch(o){return void kQ.warn('could not rate limit - continuing. Error: "'+(o==null?void 0:o.message)+'"',{text:i})}},this.instance=t,this.captureEventsPerSecond=((n=t.config.rate_limiting)==null?void 0:n.events_per_second)||10,this.captureEventsBurstLimit=Math.max(((r=t.config.rate_limiting)==null?void 0:r.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(t){var n,r,s;t===void 0&&(t=!1);var i=new Date().getTime(),o=(n=(r=this.instance.persistence)==null?void 0:r.get_property(qF))!==null&&n!==void 0?n:{tokens:this.captureEventsBurstLimit,last:i};o.tokens+=(i-o.last)/1e3*this.captureEventsPerSecond,o.last=i,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);var a=o.tokens<1;return a||t||(o.tokens=Math.max(0,o.tokens-1)),!a||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+this.captureEventsPerSecond+" events per second and "+this.captureEventsBurstLimit+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=a,(s=this.instance.persistence)==null||s.set_property(qF,o),{isRateLimited:a,remainingTokens:o.tokens}}isServerRateLimited(t){var n=this.serverLimits[t||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var im=fi("[RemoteConfig]");class bwt{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=sn._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}lr(t){var n,r;(n=sn.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=sn.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",()=>t(this.remoteConfig)):(im.error("PostHog Extensions not found. Cannot load remote config."),t())}ur(t){this._instance.me({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:n=>{t(n.json)}})}load(){try{if(this.remoteConfig)return im.info("Using preloaded remote config",this.remoteConfig),void this.be(this.remoteConfig);if(this._instance.config.advanced_disable_decide)return void im.warn("Remote config is disabled. Falling back to local config.");this.lr(t=>{if(!t)return im.info("No config found after loading remote JS config. Falling back to JSON."),void this.ur(n=>{this.be(n)});this.be(t)})}catch(t){im.error("Error loading remote config",t)}}be(t){t?this._instance.config.__preview_remote_config?(this._instance.be(t),t.hasFeatureFlags!==!1&&this._instance.featureFlags.ensureFlagsLoaded()):im.info("__preview_remote_config is disabled. Logging config instead",t):im.error("Failed to fetch remote config from PostHog.")}}var aO=3e3;class vwt{constructor(t,n){this.hr=!0,this.dr=[],this.vr=Ha((n==null?void 0:n.flush_interval_ms)||aO,250,5e3,"flush interval",aO),this.cr=t}enqueue(t){this.dr.push(t),this.pr||this._r()}unload(){this.gr();var t=this.dr.length>0?this.mr():{},n=Object.values(t);[...n.filter(r=>r.url.indexOf("/e")===0),...n.filter(r=>r.url.indexOf("/e")!==0)].map(r=>{this.cr(ut({},r,{transport:"sendBeacon"}))})}enable(){this.hr=!1,this._r()}_r(){var t=this;this.hr||(this.pr=setTimeout(()=>{if(this.gr(),this.dr.length>0){var n=this.mr(),r=function(){var i=n[s],o=new Date().getTime();i.data&&Mr(i.data)&&dr(i.data,a=>{a.offset=Math.abs(a.timestamp-o),delete a.timestamp}),t.cr(i)};for(var s in n)r()}},this.vr))}gr(){clearTimeout(this.pr),this.pr=void 0}mr(){var t={};return dr(this.dr,n=>{var r,s=n,i=(s?s.batchKey:null)||s.url;at(t[i])&&(t[i]=ut({},s,{data:[]})),(r=t[i].data)==null||r.push(s.data)}),this.dr=[],t}}var xwt=["retriesPerformedSoFar"];class wwt{constructor(t){this.br=!1,this.yr=3e3,this.dr=[],this._instance=t,this.dr=[],this.wr=!0,!at(Te)&&"onLine"in Te.navigator&&(this.wr=Te.navigator.onLine,Hr(Te,"online",()=>{this.wr=!0,this.Yi()}),Hr(Te,"offline",()=>{this.wr=!1}))}get length(){return this.dr.length}retriableRequest(t){var{retriesPerformedSoFar:n}=t,r=nbe(t,xwt);Ci(n)&&n>0&&(r.url=z2(r.url,{retry_count:n})),this._instance.me(ut({},r,{callback:s=>{s.statusCode!==200&&(s.statusCode<400||s.statusCode>=500)&&(n??0)<10?this.Sr(ut({retriesPerformedSoFar:n},r)):r.callback==null||r.callback(s)}}))}Sr(t){var n=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=n+1;var r=function(o){var a=3e3*Math.pow(2,o),l=a/2,c=Math.min(18e5,a),u=(Math.random()-.5)*(c-l);return Math.ceil(c+u)}(n),s=Date.now()+r;this.dr.push({retryAt:s,requestOptions:t});var i="Enqueued failed request for retry in "+r;navigator.onLine||(i+=" (Browser is offline)"),Tt.warn(i),this.br||(this.br=!0,this.$r())}$r(){this.kr&&clearTimeout(this.kr),this.kr=setTimeout(()=>{this.wr&&this.dr.length>0&&this.Yi(),this.$r()},this.yr)}Yi(){var t=Date.now(),n=[],r=this.dr.filter(i=>i.retryAt<t||(n.push(i),!1));if(this.dr=n,r.length>0)for(var{requestOptions:s}of r)this.retriableRequest(s)}unload(){for(var{requestOptions:t}of(this.kr&&(clearTimeout(this.kr),this.kr=void 0),this.dr))try{this._instance.me(ut({},t,{transport:"sendBeacon"}))}catch(n){Tt.error(n)}this.dr=[]}}class Swt{constructor(t){this.Er=()=>{var n,r,s,i;this.Ir||(this.Ir={});var o=this.scrollElement(),a=this.scrollY(),l=o?Math.max(0,o.scrollHeight-o.clientHeight):0,c=a+((o==null?void 0:o.clientHeight)||0),u=(o==null?void 0:o.scrollHeight)||0;this.Ir.lastScrollY=Math.ceil(a),this.Ir.maxScrollY=Math.max(a,(n=this.Ir.maxScrollY)!==null&&n!==void 0?n:0),this.Ir.maxScrollHeight=Math.max(l,(r=this.Ir.maxScrollHeight)!==null&&r!==void 0?r:0),this.Ir.lastContentY=c,this.Ir.maxContentY=Math.max(c,(s=this.Ir.maxContentY)!==null&&s!==void 0?s:0),this.Ir.maxContentHeight=Math.max(u,(i=this.Ir.maxContentHeight)!==null&&i!==void 0?i:0)},this._instance=t}getContext(){return this.Ir}resetContext(){var t=this.Ir;return setTimeout(this.Er,0),t}startMeasuringScrollPosition(){Hr(Te,"scroll",this.Er,{capture:!0}),Hr(Te,"scrollend",this.Er,{capture:!0}),Hr(Te,"resize",this.Er)}scrollElement(){if(!this._instance.config.scroll_root_selector)return Te==null?void 0:Te.document.documentElement;var t=Mr(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var n of t){var r=Te==null?void 0:Te.document.querySelector(n);if(r)return r}}scrollY(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollTop||0}return Te&&(Te.scrollY||Te.pageYOffset||Te.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollLeft||0}return Te&&(Te.scrollX||Te.pageXOffset||Te.document.documentElement.scrollLeft)||0}}var Cwt=e=>tve(e==null?void 0:e.config.mask_personal_data_properties,e==null?void 0:e.config.custom_personal_data_properties);class kwt{constructor(t,n,r,s){this.Pr=i=>{var o=this.Rr();if(!o||o.sessionId!==i){var a={sessionId:i,props:this.Tr(this._instance)};this.Mr.register({[UF]:a})}},this._instance=t,this.Cr=n,this.Mr=r,this.Tr=s||Cwt,this.Cr.onSessionId(this.Pr)}Rr(){return this.Mr.props[UF]}getSetOnceProps(){var t,n=(t=this.Rr())==null?void 0:t.props;return n?"r"in n?nve(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var t={};return dr(KL(this.getSetOnceProps()),(n,r)=>{r==="$current_url"&&(r="url"),t["$session_entry_"+RF(r)]=n}),t}}var EQ=fi("[SessionId]");class Ewt{constructor(t,n,r){var s;if(this.Or=[],!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.__preview_experimental_cookieless_mode)throw new Error("SessionIdManager cannot be used with __preview_experimental_cookieless_mode");this.S=t.config,this.Mr=t.persistence,this.oi=void 0,this.kt=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Fr=n||Tf,this.Ar=r||Tf;var i=this.S.persistence_name||this.S.token,o=this.S.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*Ha(o,60,36e3,"session_idle_timeout_seconds",1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Dr(),this.Lr="ph_"+i+"_window_id",this.Nr="ph_"+i+"_primary_window_exists",this.jr()){var a=si.D(this.Lr),l=si.D(this.Nr);a&&!l?this.oi=a:si.N(this.Lr),si.L(this.Nr,!0)}if((s=this.S.bootstrap)!=null&&s.sessionID)try{var c=(u=>{var d=u.replace(/-/g,"");if(d.length!==32)throw new Error("Not a valid UUID");if(d[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(d.substring(0,12),16)})(this.S.bootstrap.sessionID);this.zr(this.S.bootstrap.sessionID,new Date().getTime(),c)}catch(u){EQ.error("Invalid sessionID in bootstrap",u)}this.Ur()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return at(this.Or)&&(this.Or=[]),this.Or.push(t),this.kt&&t(this.kt,this.oi),()=>{this.Or=this.Or.filter(n=>n!==t)}}jr(){return this.S.persistence!=="memory"&&!this.Mr.xe&&si.O()}qr(t){t!==this.oi&&(this.oi=t,this.jr()&&si.L(this.Lr,t))}Br(){return this.oi?this.oi:this.jr()?si.D(this.Lr):null}zr(t,n,r){t===this.kt&&n===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this.kt=t,this.Mr.register({[N2]:[n,t,r]}))}Hr(){if(this.kt&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this.kt,this._sessionStartTimestamp];var t=this.Mr.props[N2];return Mr(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.zr(null,null,null)}Ur(){Hr(Te,"beforeunload",()=>{this.jr()&&si.N(this.Nr)},{capture:!1})}checkAndGetSessionAndWindowId(t,n){if(t===void 0&&(t=!1),n===void 0&&(n=null),this.S.__preview_experimental_cookieless_mode)throw new Error("checkAndGetSessionAndWindowId should not be called in __preview_experimental_cookieless_mode");var r=n||new Date().getTime(),[s,i,o]=this.Hr(),a=this.Br(),l=Ci(o)&&o>0&&Math.abs(r-o)>864e5,c=!1,u=!i,d=!t&&Math.abs(r-s)>this.sessionTimeoutMs;u||d||l?(i=this.Fr(),a=this.Ar(),EQ.info("new session ID generated",{sessionId:i,windowId:a,changeReason:{noSessionId:u,activityTimeout:d,sessionPastMaximumLength:l}}),o=r,c=!0):a||(a=this.Ar(),c=!0);var p=s===0||!t||l?r:s,m=o===0?new Date().getTime():o;return this.qr(a),this.zr(i,p,m),t||this.Dr(),c&&this.Or.forEach(b=>b(i,a,c?{noSessionId:u,activityTimeout:d,sessionPastMaximumLength:l}:void 0)),{sessionId:i,windowId:a,sessionStartTimestamp:m,changeReason:c?{noSessionId:u,activityTimeout:d,sessionPastMaximumLength:l}:void 0,lastActivityTimestamp:s}}Dr(){clearTimeout(this.Wr),this.Wr=setTimeout(()=>{this.resetSessionId()},1.1*this.sessionTimeoutMs)}}var Dwt=["$set_once","$set"],Zh=fi("[SiteApps]");class Awt{constructor(t){this._instance=t,this.Gr=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Jr(t,n){if(n){var r=this.globalsForEvent(n);this.Gr.push(r),this.Gr.length>1e3&&(this.Gr=this.Gr.slice(10))}}get siteAppLoaders(){var t;return(t=sn._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}init(){if(this.isEnabled){var t=this._instance.Ne(this.Jr.bind(this));this.Vr=()=>{t(),this.Gr=[],this.Vr=void 0}}}globalsForEvent(t){var n,r,s,i,o,a,l;if(!t)throw new Error("Event payload is required");var c={},u=this._instance.get_property("$groups")||[],d=this._instance.get_property("$stored_group_properties")||{};for(var[p,m]of Object.entries(d))c[p]={id:u[p],type:p,properties:m};var{$set_once:b,$set:x}=t;return{event:ut({},nbe(t,Dwt),{properties:ut({},t.properties,x?{$set:ut({},(n=(r=t.properties)==null?void 0:r.$set)!==null&&n!==void 0?n:{},x)}:{},b?{$set_once:ut({},(s=(i=t.properties)==null?void 0:i.$set_once)!==null&&s!==void 0?s:{},b)}:{}),elements_chain:(o=(a=t.properties)==null?void 0:a.$elements_chain)!==null&&o!==void 0?o:"",distinct_id:(l=t.properties)==null?void 0:l.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:c}}setupSiteApp(t){var n=this.apps[t.id],r=()=>{var a;!n.errored&&this.Gr.length&&(Zh.info("Processing "+this.Gr.length+" events for site app with id "+t.id),this.Gr.forEach(l=>n.processEvent==null?void 0:n.processEvent(l)),n.processedBuffer=!0),Object.values(this.apps).every(l=>l.processedBuffer||l.errored)&&((a=this.Vr)==null||a.call(this))},s=!1,i=a=>{n.errored=!a,n.loaded=!0,Zh.info("Site app with id "+t.id+" "+(a?"loaded":"errored")),s&&r()};try{var{processEvent:o}=t.init({posthog:this._instance,callback:a=>{i(a)}});o&&(n.processEvent=o),s=!0}catch(a){Zh.error("Error while initializing PostHog app with config id "+t.id,a),i(!1)}if(s&&n.loaded)try{r()}catch(a){Zh.error("Error while processing buffered events PostHog app with config id "+t.id,a),n.errored=!0}}Kr(){var t=this.siteAppLoaders||[];for(var n of t)this.apps[n.id]={id:n.id,loaded:!1,errored:!1,processedBuffer:!1};for(var r of t)this.setupSiteApp(r)}Yr(t){if(Object.keys(this.apps).length!==0){var n=this.globalsForEvent(t);for(var r of Object.values(this.apps))try{r.processEvent==null||r.processEvent(n)}catch(s){Zh.error("Error while processing event "+t.event+" for site app "+r.id,s)}}}onRemoteConfig(t){var n,r,s,i=this;if((n=this.siteAppLoaders)!=null&&n.length)return this.isEnabled?(this.Kr(),void this._instance.on("eventCaptured",c=>this.Yr(c))):void Zh.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((r=this.Vr)==null||r.call(this),(s=t.siteApps)!=null&&s.length)if(this.isEnabled){var o=function(c){var u;sn["__$$ph_site_app_"+c]=i._instance,(u=sn.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(i._instance,l,d=>{if(d)return Zh.error("Error while initializing PostHog app with config id "+c,d)})};for(var{id:a,url:l}of t.siteApps)o(a)}else Zh.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var Twt=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],DQ=function(e,t){if(!e)return!1;var n=e.toLowerCase();return Twt.concat(t||[]).some(r=>{var s=r.toLowerCase();return n.indexOf(s)!==-1})},ive=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&DQ(n,t))return!0;try{var r=e==null?void 0:e.userAgentData;if(r!=null&&r.brands&&r.brands.some(s=>DQ(s==null?void 0:s.brand,t)))return!0}catch{}return!!e.webdriver},N1=function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e}({}),AQ="i.posthog.com";class _wt{constructor(t){this.Xr={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get uiHost(){var t,n=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+AQ,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}get region(){return this.Xr[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Xr[this.apiHost]=N1.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Xr[this.apiHost]=N1.EU:this.Xr[this.apiHost]=N1.CUSTOM),this.Xr[this.apiHost]}endpointFor(t,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),t==="ui")return this.uiHost+n;if(this.region===N1.CUSTOM)return this.apiHost+n;var r=AQ+n;switch(t){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var Nwt={icontains:(e,t)=>!!Te&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!Te&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!Te&&qb(t.href,e),not_regex:(e,t)=>!!Te&&!qb(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class xi{constructor(t){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments(s=>{xi.Qr("retrieved web experiments from the server"),n.Zr=new Map,s.forEach(i=>{if(i.feature_flag_key){var o;n.Zr&&(xi.Qr("setting flag key ",i.feature_flag_key," to web experiment ",i),(o=n.Zr)==null||o.set(i.feature_flag_key,i));var a=n._instance.getFeatureFlag(i.feature_flag_key);Qr(a)&&i.variants[a]&&n.ts(i.name,a,i.variants[a].transforms)}else if(i.variants)for(var l in i.variants){var c=i.variants[l];xi.es(c)&&n.ts(i.name,l,c.transforms)}})},r)},this._instance=t,this._instance.onFeatureFlags(r=>{this.onFeatureFlags(r)})}onFeatureFlags(t){if(this._is_bot())xi.Qr("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(zn(this.Zr))return this.Zr=new Map,this.loadIfEnabled(),void this.previewWebExperiment();xi.Qr("applying feature flags",t),t.forEach(n=>{var r;if(this.Zr&&(r=this.Zr)!=null&&r.has(n)){var s,i=this._instance.getFeatureFlag(n),o=(s=this.Zr)==null?void 0:s.get(n);i&&o!=null&&o.variants[i]&&this.ts(o.name,i,o.variants[i].transforms)}})}}previewWebExperiment(){var t=xi.getWindowLocation();if(t!=null&&t.search){var n=R2(t==null?void 0:t.search,"__experiment_id"),r=R2(t==null?void 0:t.search,"__experiment_variant");n&&r&&(xi.Qr("previewing web experiments "+n+" && "+r),this.getWebExperiments(s=>{this.rs(parseInt(n),r,s)},!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,n,r){if(this._instance.config.disable_web_experiments&&!r)return t([]);var s=this._instance.get_property("$web_experiments");if(s&&!n)return t(s);this._instance.me({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:i=>{if(i.statusCode!==200||!i.json)return t([]);var o=i.json.experiments||[];return t(o)}})}rs(t,n,r){var s=r.filter(i=>i.id===t);s&&s.length>0&&(xi.Qr("Previewing web experiment ["+s[0].name+"] with variant ["+n+"]"),this.ts(s[0].name,n,s[0].variants[n].transforms))}static es(t){return!zn(t.conditions)&&xi.ss(t)&&xi.ns(t)}static ss(t){var n;if(zn(t.conditions)||zn((n=t.conditions)==null?void 0:n.url))return!0;var r,s,i,o=xi.getWindowLocation();return!!o&&((r=t.conditions)==null||!r.url||Nwt[(s=(i=t.conditions)==null?void 0:i.urlMatchType)!==null&&s!==void 0?s:"icontains"](t.conditions.url,o))}static getWindowLocation(){return Te==null?void 0:Te.location}static ns(t){var n;if(zn(t.conditions)||zn((n=t.conditions)==null?void 0:n.utm))return!0;var r=Zbe();if(r.utm_source){var s,i,o,a,l,c,u,d,p=(s=t.conditions)==null||(s=s.utm)==null||!s.utm_campaign||((i=t.conditions)==null||(i=i.utm)==null?void 0:i.utm_campaign)==r.utm_campaign,m=(o=t.conditions)==null||(o=o.utm)==null||!o.utm_source||((a=t.conditions)==null||(a=a.utm)==null?void 0:a.utm_source)==r.utm_source,b=(l=t.conditions)==null||(l=l.utm)==null||!l.utm_medium||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_medium)==r.utm_medium,x=(u=t.conditions)==null||(u=u.utm)==null||!u.utm_term||((d=t.conditions)==null||(d=d.utm)==null?void 0:d.utm_term)==r.utm_term;return p&&b&&x&&m}return!1}static Qr(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];Tt.info("[WebExperiments] "+t,r)}ts(t,n,r){this._is_bot()?xi.Qr("Refusing to render web experiment since the viewer is a likely bot"):n!=="control"?r.forEach(s=>{if(s.selector){var i;xi.Qr("applying transform of variant "+n+" for experiment "+t+" ",s);var o=(i=document)==null?void 0:i.querySelectorAll(s.selector);o==null||o.forEach(a=>{var l=a;s.html&&(l.innerHTML=s.html),s.css&&l.setAttribute("style",s.css)})}}):xi.Qr("Control variants leave the page unmodified.")}_is_bot(){return xa&&this._instance?ive(xa,this._instance.config.custom_blocked_useragents):void 0}}var Q1={},lO=()=>{},e0="posthog",ove=!G1t&&(So==null?void 0:So.indexOf("MSIE"))===-1&&(So==null?void 0:So.indexOf("Mozilla"))===-1,TQ=e=>{var t;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:Ext(bt==null?void 0:bt.location),persistence:"localStorage+cookie",persistence_name:"",loaded:lO,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:e!=="2025-05-24"||"history_change",capture_pageleave:"if_capture_pageview",defaults:e??"unset",debug:To&&Qr(To==null?void 0:To.search)&&To.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(Te==null||(t=Te.location)==null?void 0:t.protocol)==="https:",ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:n=>{var r="Bad HTTP status: "+n.statusCode+" "+n.text;Tt.error(r)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:aO},_onCapture:lO}},_Q=e=>{var t={};at(e.process_person)||(t.person_profiles=e.process_person),at(e.xhr_headers)||(t.request_headers=e.xhr_headers),at(e.cookie_name)||(t.persistence_name=e.cookie_name),at(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),at(e.store_google)||(t.save_campaign_params=e.store_google),at(e.verbose)||(t.debug=e.verbose);var n=vs({},t,e);return Mr(e.property_blacklist)&&(at(e.property_denylist)?n.property_denylist=e.property_blacklist:Mr(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:Tt.error("Invalid value for property_denylist config: "+e.property_denylist)),n};class Pwt{constructor(){this.__forceAllowLocalhost=!1}get os(){return this.__forceAllowLocalhost}set os(t){Tt.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class m_{get decideEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){this.webPerformance=new Pwt,this.ls=!1,this.version=ad.LIB_VERSION,this.us=new sve,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=TQ(),this.SentryIntegration=j1t,this.sentryIntegration=t=>function(n,r){var s=Obe(n,r);return{name:Fbe,processEvent:i=>s(i)}}(this,t),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.hs=!1,this.ds=null,this.vs=null,this.cs=null,this.featureFlags=new hwt(this),this.toolbar=new B1t(this),this.scrollManager=new Swt(this),this.pageViewManager=new q1t(this),this.surveys=new gwt(this),this.experiments=new xi(this),this.exceptions=new K1t(this),this.rateLimiter=new ywt(this),this.requestRouter=new _wt(this),this.consent=new Gxt(this),this.people={set:(t,n,r)=>{var s=Qr(t)?{[t]:n}:t;this.setPersonProperties(s),r==null||r({})},set_once:(t,n,r)=>{var s=Qr(t)?{[t]:n}:t;this.setPersonProperties(void 0,s),r==null||r({})}},this.on("eventCaptured",t=>Tt.info('send "'+(t==null?void 0:t.event)+'"',t))}init(t,n,r){if(r&&r!==e0){var s,i=(s=Q1[r])!==null&&s!==void 0?s:new m_;return i._init(t,n,r),Q1[r]=i,Q1[e0][r]=i,i}return this._init(t,n,r)}_init(t,n,r){var s,i;if(n===void 0&&(n={}),at(t)||IF(t))return Tt.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return Tt.warn("You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},this.fs=[],n.person_profiles&&(this.vs=n.person_profiles),this.set_config(vs({},TQ(n.defaults),_Q(n),{name:r,token:t})),this.config.on_xhr_error&&Tt.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:fd.GZipJS,this.persistence=new K9(this.config),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new K9(ut({},this.config,{persistence:"sessionStorage"}));var o=ut({},this.persistence.props),a=ut({},this.sessionPersistence.props);if(this.ps=new vwt(S=>this._s(S),this.config.request_queue_config),this.gs=new wwt(this),this.__request_queue=[],this.config.__preview_experimental_cookieless_mode||(this.sessionManager=new Ewt(this),this.sessionPropsManager=new kwt(this,this.sessionManager,this.persistence)),new z1t(this).startIfEnabledOrStop(),this.siteApps=new Awt(this),(s=this.siteApps)==null||s.init(),this.config.__preview_experimental_cookieless_mode||(this.sessionRecording=new R1t(this),this.sessionRecording.startIfEnabledOrStop()),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new Bxt(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new U1t(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new H1t(this),this.exceptionObserver=new Kxt(this),this.exceptionObserver.startIfEnabled(),this.deadClicksAutocapture=new vbe(this,Xxt),this.deadClicksAutocapture.startIfEnabled(),this.historyAutocapture=new u1t(this),this.historyAutocapture.startIfEnabled(),ad.DEBUG=ad.DEBUG||this.config.debug,ad.DEBUG&&Tt.info("Starting in debug mode",{this:this,config:n,thisC:ut({},this.config),p:o,s:a}),this.bs(),((i=n.bootstrap)==null?void 0:i.distinctID)!==void 0){var l,c,u=this.config.get_device_id(Tf()),d=(l=n.bootstrap)!=null&&l.isIdentifiedID?u:n.bootstrap.distinctID;this.persistence.set_property(td,(c=n.bootstrap)!=null&&c.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:n.bootstrap.distinctID,$device_id:d})}if(this.ys()){var p,m,b=Object.keys(((p=n.bootstrap)==null?void 0:p.featureFlags)||{}).filter(S=>{var A;return!((A=n.bootstrap)==null||(A=A.featureFlags)==null||!A[S])}).reduce((S,A)=>{var T;return S[A]=((T=n.bootstrap)==null||(T=T.featureFlags)==null?void 0:T[A])||!1,S},{}),x=Object.keys(((m=n.bootstrap)==null?void 0:m.featureFlagPayloads)||{}).filter(S=>b[S]).reduce((S,A)=>{var T,N;return(T=n.bootstrap)!=null&&(T=T.featureFlagPayloads)!=null&&T[A]&&(S[A]=(N=n.bootstrap)==null||(N=N.featureFlagPayloads)==null?void 0:N[A]),S},{});this.featureFlags.receivedFeatureFlags({featureFlags:b,featureFlagPayloads:x})}if(this.config.__preview_experimental_cookieless_mode)this.register_once({distinct_id:VJ,$device_id:null},"");else if(!this.get_distinct_id()){var C=this.config.get_device_id(Tf());this.register_once({distinct_id:C,$device_id:C},""),this.persistence.set_property(td,"anonymous")}return Hr(Te,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),n.segment?I1t(this,()=>this.ws()):this.ws(),Wa(this.config._onCapture)&&this.config._onCapture!==lO&&(Tt.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",S=>this.config._onCapture(S.event,S))),this}be(t){var n,r,s,i,o,a,l,c;if(!bt||!bt.body)return Tt.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.be(t)},500);this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=gn(t.supportedCompression,fd.GZipJS)?fd.GZipJS:gn(t.supportedCompression,fd.Base64)?fd.Base64:void 0),(n=t.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.vs?this.vs:"identified_only"}),(r=this.siteApps)==null||r.onRemoteConfig(t),(s=this.sessionRecording)==null||s.onRemoteConfig(t),(i=this.autocapture)==null||i.onRemoteConfig(t),(o=this.heatmaps)==null||o.onRemoteConfig(t),this.surveys.onRemoteConfig(t),(a=this.webVitalsAutocapture)==null||a.onRemoteConfig(t),(l=this.exceptionObserver)==null||l.onRemoteConfig(t),this.exceptions.onRemoteConfig(t),(c=this.deadClicksAutocapture)==null||c.onRemoteConfig(t)}ws(){try{this.config.loaded(this)}catch(t){Tt.critical("`loaded` function failed",t)}this.Ss(),this.config.capture_pageview&&setTimeout(()=>{this.consent.isOptedIn()&&this.$s()},1),new bwt(this).load(),this.featureFlags.decide()}Ss(){var t;this.has_opted_out_capturing()||this.config.request_batching&&((t=this.ps)==null||t.enable())}_dom_loaded(){this.has_opted_out_capturing()||Of(this.__request_queue,t=>this._s(t)),this.__request_queue=[],this.Ss()}_handle_unload(){var t,n;this.config.request_batching?(this.ks()&&this.capture("$pageleave"),(t=this.ps)==null||t.unload(),(n=this.gs)==null||n.unload()):this.ks()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}me(t){this.__loaded&&(ove?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=z2(t.url,{ip:this.config.ip?1:0}),t.headers=ut({},this.config.request_headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.fetchOptions=t.fetchOptions||this.config.fetch_options,(n=>{var r,s,i,o=ut({},n);o.timeout=o.timeout||6e4,o.url=z2(o.url,{_:new Date().getTime().toString(),ver:ad.LIB_VERSION,compression:o.compression});var a=(r=o.transport)!==null&&r!==void 0?r:"fetch",l=(s=(i=rbe(J1,c=>c.transport===a))==null?void 0:i.method)!==null&&s!==void 0?s:J1[0].method;if(!l)throw new Error("No available transport method");l(o)})(ut({},t,{callback:n=>{var r,s;this.rateLimiter.checkForLimiting(n),n.statusCode>=400&&((r=(s=this.config).on_request_error)==null||r.call(s,n)),t.callback==null||t.callback(n)}}))))}_s(t){this.gs?this.gs.retriableRequest(t):this.me(t)}_execute_array(t){var n,r=[],s=[],i=[];Of(t,a=>{a&&(n=a[0],Mr(n)?i.push(a):Wa(a)?a.call(this):Mr(a)&&n==="alias"?r.push(a):Mr(a)&&n.indexOf("capture")!==-1&&Wa(this[n])?i.push(a):s.push(a))});var o=function(a,l){Of(a,function(c){if(Mr(c[0])){var u=l;dr(c,function(d){u=u[d[0]].apply(u,d.slice(1))})}else this[c[0]].apply(this,c.slice(1))},l)};o(r,this),o(s,this),o(i,this)}ys(){var t,n;return((t=this.config.bootstrap)==null?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)==null?void 0:n.featureFlags).length>0||!1}push(t){this._execute_array([t])}capture(t,n,r){var s;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.ps){if(!this.consent.isOptedOut())if(!at(t)&&Qr(t)){if(this.config.opt_out_useragent_filter||!this._is_bot()){var i=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(i==null||!i.isRateLimited){n!=null&&n.$current_url&&!Qr(n==null?void 0:n.$current_url)&&(Tt.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var o=new Date,a=(r==null?void 0:r.timestamp)||o,l=Tf(),c={uuid:l,event:t,properties:this.calculateEventProperties(t,n||{},a,l)};i&&(c.properties.$lib_rate_limit_remaining_tokens=i.remainingTokens),r!=null&&r.$set&&(c.$set=r==null?void 0:r.$set);var u,d,p=this.xs(r==null?void 0:r.$set_once);if(p&&(c.$set_once=p),(c=Cxt(c,r!=null&&r._noTruncate?null:this.config.properties_string_max_length)).timestamp=a,at(r==null?void 0:r.timestamp)||(c.properties.$event_time_override_provided=!0,c.properties.$event_time_override_system_time=o),t===Z9.DISMISSED||t===Z9.SENT){var m=n==null?void 0:n[CQ.SURVEY_ID],b=n==null?void 0:n[CQ.SURVEY_ITERATION];localStorage.setItem((d=""+oO+(u={id:m,current_iteration:b}).id,u.current_iteration&&u.current_iteration>0&&(d=""+oO+u.id+"_"+u.current_iteration),d),"true"),c.$set=ut({},c.$set,{[pwt({id:m,current_iteration:b},t===Z9.SENT?"responded":"dismissed")]:!0})}var x=ut({},c.properties.$set,c.$set);if(v0(x)||this.setPersonPropertiesForFlags(x),!zn(this.config.before_send)){var C=this.Es(c);if(!C)return;c=C}this.us.emit("eventCaptured",c);var S={method:"POST",url:(s=r==null?void 0:r._url)!==null&&s!==void 0?s:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:c,compression:"best-available",batchKey:r==null?void 0:r._batchKey};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this._s(S):this.ps.enqueue(S),c}Tt.critical("This capture call is ignored due to client rate limiting.")}}else Tt.error("No event name provided to posthog.capture")}else Tt.uninitializedWarning("posthog.capture")}Ne(t){return this.on("eventCaptured",n=>t(n.event,n))}calculateEventProperties(t,n,r,s,i){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;var o=i?void 0:this.persistence.remove_event_timer(t),a=ut({},n);if(a.token=this.config.token,a.$config_defaults=this.config.defaults,this.config.__preview_experimental_cookieless_mode&&(a.$cookieless_mode=!0),t==="$snapshot"){var l=ut({},this.persistence.properties(),this.sessionPersistence.properties());return a.distinct_id=l.distinct_id,(!Qr(a.distinct_id)&&!Ci(a.distinct_id)||IF(a.distinct_id))&&Tt.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),a}var c,u=cwt(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:d,windowId:p}=this.sessionManager.checkAndGetSessionAndWindowId(i,r.getTime());a.$session_id=d,a.$window_id=p}this.sessionPropsManager&&vs(a,this.sessionPropsManager.getSessionProps());try{var m;this.sessionRecording&&vs(a,this.sessionRecording.sdkDebugProperties),a.$sdk_debug_retry_queue_size=(m=this.gs)==null?void 0:m.length}catch(S){a.$sdk_debug_error_capturing_properties=String(S)}if(this.requestRouter.region===N1.CUSTOM&&(a.$lib_custom_api_host=this.config.api_host),c=t!=="$pageview"||i?t!=="$pageleave"||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,s),a=vs(a,c),t==="$pageview"&&bt&&(a.title=bt.title),!at(o)){var b=r.getTime()-o;a.$duration=parseFloat((b/1e3).toFixed(3))}So&&this.config.opt_out_useragent_filter&&(a.$browser_type=this._is_bot()?"bot":"browser"),(a=vs({},u,this.persistence.properties(),this.sessionPersistence.properties(),a)).$is_identified=this._isIdentified(),Mr(this.config.property_denylist)?dr(this.config.property_denylist,function(S){delete a[S]}):Tt.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var x=this.config.sanitize_properties;x&&(Tt.error("sanitize_properties is deprecated. Use before_send instead"),a=x(a,t));var C=this.Is();return a.$process_person_profile=C,C&&!i&&this.Ps("_calculate_event_properties"),a}xs(t){var n;if(!this.persistence||!this.Is()||this.ls)return t;var r=this.persistence.get_initial_props(),s=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),i=vs({},r,s||{},t||{}),o=this.config.sanitize_properties;return o&&(Tt.error("sanitize_properties is deprecated. Use before_send instead"),i=o(i,"$set_once")),this.ls=!0,v0(i)?void 0:i}register(t,n){var r;(r=this.persistence)==null||r.register(t,n)}register_once(t,n,r){var s;(s=this.persistence)==null||s.register_once(t,n,r)}register_for_session(t){var n;(n=this.sessionPersistence)==null||n.register(t)}unregister(t){var n;(n=this.persistence)==null||n.unregister(t)}unregister_for_session(t){var n;(n=this.sessionPersistence)==null||n.unregister(t)}Rs(t,n){this.register({[t]:n})}getFeatureFlag(t,n){return this.featureFlags.getFeatureFlag(t,n)}getFeatureFlagPayload(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}isFeatureEnabled(t,n){return this.featureFlags.isFeatureEnabled(t,n)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}getEarlyAccessFeatures(t,n,r){return n===void 0&&(n=!1),this.featureFlags.getEarlyAccessFeatures(t,n,r)}on(t,n){return this.us.on(t,n)}onFeatureFlags(t){return this.featureFlags.onFeatureFlags(t)}onSurveysLoaded(t){return this.surveys.onSurveysLoaded(t)}onSessionId(t){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(t))!==null&&n!==void 0?n:()=>{}}getSurveys(t,n){n===void 0&&(n=!1),this.surveys.getSurveys(t,n)}getActiveMatchingSurveys(t,n){n===void 0&&(n=!1),this.surveys.getActiveMatchingSurveys(t,n)}renderSurvey(t,n){this.surveys.renderSurvey(t,n)}canRenderSurvey(t){return this.surveys.canRenderSurvey(t)}canRenderSurveyAsync(t,n){return n===void 0&&(n=!1),this.surveys.canRenderSurveyAsync(t,n)}identify(t,n,r){if(!this.__loaded||!this.persistence)return Tt.uninitializedWarning("posthog.identify");if(Ci(t)&&(t=t.toString(),Tt.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),t){if(["distinct_id","distinctid"].includes(t.toLowerCase()))Tt.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(this.Ps("posthog.identify")){var s=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var i=s;this.register_once({$had_persisted_distinct_id:!0,$device_id:i},"")}t!==s&&t!==this.get_property(C1)&&(this.unregister(C1),this.register({distinct_id:t}));var o=(this.persistence.get_property(td)||"anonymous")==="anonymous";t!==s&&o?(this.persistence.set_property(td,"identified"),this.setPersonPropertiesForFlags(ut({},r||{},n||{}),!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:s},{$set:n||{},$set_once:r||{}}),this.cs=mQ(t,n,r),this.featureFlags.setAnonymousDistinctId(s)):(n||r)&&this.setPersonProperties(n,r),t!==s&&(this.reloadFeatureFlags(),this.unregister(P2))}}else Tt.error("Unique user id has not been set in posthog.identify")}setPersonProperties(t,n){if((t||n)&&this.Ps("posthog.setPersonProperties")){var r=mQ(this.get_distinct_id(),t,n);this.cs!==r?(this.setPersonPropertiesForFlags(ut({},n||{},t||{})),this.capture("$set",{$set:t||{},$set_once:n||{}}),this.cs=r):Tt.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,n,r){if(t&&n){if(this.Ps("posthog.group")){var s=this.getGroups();s[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:ut({},s,{[t]:n})}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags({[t]:r})),s[t]===n||r||this.reloadFeatureFlags()}}else Tt.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,n){n===void 0&&(n=!0),this.featureFlags.setPersonPropertiesForFlags(t,n)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,n){n===void 0&&(n=!0),this.Ps("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(t,n)}resetGroupPropertiesForFlags(t){this.featureFlags.resetGroupPropertiesForFlags(t)}reset(t){var n,r,s,i;if(Tt.info("reset"),!this.__loaded)return Tt.uninitializedWarning("posthog.reset");var o=this.get_property("$device_id");if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(r=this.sessionPersistence)==null||r.clear(),this.surveys.reset(),(s=this.persistence)==null||s.set_property(td,"anonymous"),(i=this.sessionManager)==null||i.resetSessionId(),this.cs=null,this.config.__preview_experimental_cookieless_mode)this.register_once({distinct_id:VJ,$device_id:null},"");else{var a=this.config.get_device_id(Tf());this.register_once({distinct_id:a,$device_id:t?a:o},"")}this.register({$last_posthog_reset:new Date().toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,n;return(t=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),s=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(t!=null&&t.withTimestamp&&r){var i,o=(i=t.timestampLookBack)!==null&&i!==void 0?i:10;if(!r)return s;s+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-o,0)}return s}alias(t,n){return t===this.get_property(sbe)?(Tt.critical("Attempting to create alias for existing People user - aborting."),-2):this.Ps("posthog.alias")?(at(n)&&(n=this.get_distinct_id()),t!==n?(this.Rs(C1,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(Tt.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var n,r,s,i,o=ut({},this.config);Zr(t)&&(vs(this.config,_Q(t)),(n=this.persistence)==null||n.update_config(this.config,o),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new K9(ut({},this.config,{persistence:"sessionStorage"})),Fs.O()&&Fs.A("ph_debug")==="true"&&(this.config.debug=!0),this.config.debug&&(ad.DEBUG=!0,Tt.info("set_config",JSON.stringify({config:t,oldConfig:o,newConfig:ut({},this.config)},null,2))),(r=this.sessionRecording)==null||r.startIfEnabledOrStop(),(s=this.autocapture)==null||s.startIfEnabled(),(i=this.heatmaps)==null||i.startIfEnabled(),this.surveys.loadIfEnabled(),this.bs())}startSessionRecording(t){var n=t===!0,r={sampling:n||!(t==null||!t.sampling),linked_flag:n||!(t==null||!t.linked_flag),url_trigger:n||!(t==null||!t.url_trigger),event_trigger:n||!(t==null||!t.event_trigger)};if(Object.values(r).some(Boolean)){var s,i,o,a,l;(s=this.sessionManager)==null||s.checkAndGetSessionAndWindowId(),r.sampling&&((i=this.sessionRecording)==null||i.overrideSampling()),r.linked_flag&&((o=this.sessionRecording)==null||o.overrideLinkedFlag()),r.url_trigger&&((a=this.sessionRecording)==null||a.overrideTrigger("url")),r.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))}this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,n){var r=new Error("PostHog syntheticException");this.exceptions.sendExceptionEvent(ut({},c1t((s=>s instanceof Error)(t)?{error:t,event:t.message}:{event:t},{syntheticException:r}),n))}loadToolbar(t){return this.toolbar.loadToolbar(t)}get_property(t){var n;return(n=this.persistence)==null?void 0:n.props[t]}getSessionProperty(t){var n;return(n=this.sessionPersistence)==null?void 0:n.props[t]}toString(){var t,n=(t=this.config.name)!==null&&t!==void 0?t:e0;return n!==e0&&(n=e0+"."+n),n}_isIdentified(){var t,n;return((t=this.persistence)==null?void 0:t.get_property(td))==="identified"||((n=this.sessionPersistence)==null?void 0:n.get_property(td))==="identified"}Is(){var t,n;return!(this.config.person_profiles==="never"||this.config.person_profiles==="identified_only"&&!this._isIdentified()&&v0(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[C1])&&((n=this.persistence)==null||(n=n.props)==null||!n[F2]))}ks(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.Is()||this.Ps("posthog.createPersonProfile")&&this.setPersonProperties({},{})}Ps(t){return this.config.person_profiles==="never"?(Tt.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Rs(F2,!0),!0)}bs(){var t,n,r,s,i=this.consent.isOptedOut(),o=this.config.opt_out_persistence_by_default,a=this.config.disable_persistence||i&&!!o;((t=this.persistence)==null?void 0:t.xe)!==a&&((r=this.persistence)==null||r.set_disabled(a)),((n=this.sessionPersistence)==null?void 0:n.xe)!==a&&((s=this.sessionPersistence)==null||s.set_disabled(a))}opt_in_capturing(t){var n;this.consent.optInOut(!0),this.bs(),(at(t==null?void 0:t.captureEventName)||t!=null&&t.captureEventName)&&this.capture((n=t==null?void 0:t.captureEventName)!==null&&n!==void 0?n:"$opt_in",t==null?void 0:t.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.$s()}opt_out_capturing(){this.consent.optInOut(!1),this.bs()}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}clear_opt_in_out_capturing(){this.consent.reset(),this.bs()}_is_bot(){return xa?ive(xa,this.config.custom_blocked_useragents):void 0}$s(){bt&&(bt.visibilityState==="visible"?this.hs||(this.hs=!0,this.capture("$pageview",{title:bt.title},{send_instantly:!0}),this.ds&&(bt.removeEventListener("visibilitychange",this.ds),this.ds=null)):this.ds||(this.ds=this.$s.bind(this),Hr(bt,"visibilitychange",this.ds)))}debug(t){t===!1?(Te==null||Te.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(Te==null||Te.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}Es(t){if(zn(this.config.before_send))return t;var n=Mr(this.config.before_send)?this.config.before_send:[this.config.before_send],r=t;for(var s of n){if(r=s(r),zn(r)){var i="Event '"+t.event+"' was rejected in beforeSend function";return xxt(t.event)?Tt.warn(i+". This can cause unexpected behavior."):Tt.info(i),null}r.properties&&!v0(r.properties)||Tt.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var t;return(t=this.pageViewManager.ne)==null?void 0:t.pageViewId}captureTraceFeedback(t,n){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:n})}captureTraceMetric(t,n,r){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:n,$ai_metric_value:String(r)})}}(function(e,t){for(var n=0;n<t.length;n++)e.prototype[t[n]]=Sxt(e.prototype[t[n]])})(m_,["identify"]);var NQ,pd=(NQ=Q1[e0]=new m_,function(){function e(){e.done||(e.done=!0,ove=!1,dr(Q1,function(t){t._dom_loaded()}))}bt!=null&&bt.addEventListener?bt.readyState==="complete"?e():Hr(bt,"DOMContentLoaded",e,{capture:!1}):Te&&Tt.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),NQ),uB=D.createContext({client:pd});function ave(e,t,n){if(n===void 0&&(n=new WeakMap),e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(n.has(e)&&n.get(e)===t)return!0;n.set(e,t);var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(var i=0,o=r;i<o.length;i++){var a=o[i];if(!s.includes(a)||!ave(e[a],t[a],n))return!1}return!0}function Mwt(e){var t=e.children,n=e.client,r=e.apiKey,s=e.options,i=D.useRef(null),o=D.useMemo(function(){return n?(r&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),s&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),n):(r||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),pd)},[n,r,JSON.stringify(s)]);return D.useEffect(function(){if(!n){var a=i.current;a?(r!==a.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),s&&!ave(s,a.options)&&pd.set_config(s),i.current={apiKey:r,options:s??{}}):(pd.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),pd.init(r,s),i.current={apiKey:r,options:s??{}})}},[n,r,JSON.stringify(s)]),Ce.createElement(uB.Provider,{value:{client:o}},t)}var Fwt=function(){var e=D.useContext(uB).client;return e};function Owt(e){var t=Fwt(),n=D.useState(function(){return t.isFeatureEnabled(e)}),r=n[0],s=n[1];return D.useEffect(function(){return t.onFeatureFlags(function(){s(t.isFeatureEnabled(e))})},[t,e]),r}var cO=function(e,t){return cO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])},cO(e,t)};function Rwt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cO(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var J9=function(e){return typeof e=="function"},Iwt={componentStack:null,error:null},jwt={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};(function(e){Rwt(t,e);function t(n){var r=e.call(this,n)||this;return r.state=Iwt,r}return t.prototype.componentDidCatch=function(n,r){var s=r.componentStack,i=this.props.additionalProperties;this.setState({error:n,componentStack:s});var o;J9(i)?o=i(n):typeof i=="object"&&(o=i);var a=this.context.client;a.captureException(n,o)},t.prototype.render=function(){var n=this.props,r=n.children,s=n.fallback,i=this.state;if(i.componentStack==null)return J9(r)?r():r;var o=J9(s)?Ce.createElement(s,{error:i.error,componentStack:i.componentStack}):s;return Ce.isValidElement(o)?o:(console.warn(jwt.INVALID_FALLBACK),Ce.createElement(Ce.Fragment,null))},t.contextType=uB,t})(Ce.Component);function PQ(){const e=Owt("cli_ShowMultiModal"),{agentId:t,threadId:n}=Zs(),{agent:r,isLoading:s}=Av(t),{memory:i}=K0e(t),o=Hd(),{messages:a,isLoading:l}=Z0e({agentId:t,threadId:n,memory:!!(i!=null&&i.result)}),[c]=D.useState(!0),{threads:u,isLoading:d,mutate:p}=dxt({resourceid:t,agentId:t,isMemoryEnabled:!!(i!=null&&i.result)});if(D.useEffect(()=>{i!=null&&i.result&&!n&&o(`/agents/${t}/chat/${Dm()}`)},[i==null?void 0:i.result,n]),s)return null;const m=!!(c&&(i!=null&&i.result));return f.jsx(Ryt,{agentId:t,defaultGenerateOptions:r==null?void 0:r.defaultGenerateOptions,defaultStreamOptions:r==null?void 0:r.defaultStreamOptions,children:f.jsxs(Ks,{isDivided:!0,hasLeftServiceColumn:m,children:[m&&f.jsx(mxt,{agentId:t,threadId:n,threads:u,isLoading:d}),f.jsx("div",{className:"grid overflow-y-auto relative bg-surface1 py-4",children:f.jsx(Iyt,{agentId:t,agentName:r==null?void 0:r.name,threadId:n,initialMessages:l?void 0:a,memory:i==null?void 0:i.result,refreshThreadList:p,showFileSupport:e})}),f.jsx(fxt,{agentId:t})]})})}function Lwt(){const{agentId:e}=Zs();return f.jsx("main",{className:"h-full overflow-hidden",children:f.jsx(Vyt,{agentId:e})})}function Bwt({fetchFn:e,interval:t=3e3,enabled:n=!1,onSuccess:r,onError:s,shouldContinue:i=()=>!0}){const[o,a]=D.useState(n),[l,c]=D.useState(null),[u,d]=D.useState(null),[p,m]=D.useState(!1),[b,x]=D.useState(!1),C=D.useRef(null),S=D.useRef(!0),A=D.useCallback(()=>{console.log("cleanup"),C.current&&(clearTimeout(C.current),C.current=null)},[]),T=D.useCallback(()=>{console.log("stopPolling"),a(!1),A()},[A]),N=D.useCallback(()=>{console.log("startPolling"),a(!0),c(null)},[]),F=D.useCallback(async(M=!1)=>{if(S.current){m(!0),x(M);try{const I=await e();d(I),c(null),r==null||r(I),x(!1),i(I)?C.current=setTimeout(F,t):T()}catch(I){if(!S.current)return;c(I),s==null||s(I),T()}finally{S.current&&(x(!1),m(!1))}}},[e,t,r,s,i,T]);return D.useEffect(()=>(S.current=!0,n&&o&&F(!0),()=>{console.log("cleanup poll"),S.current=!1,A()}),[n,o,F,A]),{isPolling:o,isLoading:p,error:l,data:u,startPolling:N,stopPolling:T,firstCallLoading:b}}const $wt=(e,t=!1)=>{const n=new Set,r=o=>{var a,l,c,u;return o!=null&&o.startsWith("workflow.")&&t?(l=(a=o==null?void 0:o.split("."))==null?void 0:a.slice(2))==null?void 0:l.join("."):o!=null&&o.startsWith("agent.")&&!t?(u=(c=o==null?void 0:o.split("."))==null?void 0:c.slice(1))==null?void 0:u.join("."):o},s=e==null?void 0:e.reduce((o,a)=>{const l={...a,name:r(a.name),duration:a.endTime-a.startTime};return n.add(a.id),{...o,[a.traceId]:[...o[a.traceId]||[],l]}},{});return Object.entries(s).map(([o,a])=>{var p,m,b;const l=a.find(x=>!x.parentSpanId||!n.has(x.parentSpanId)),c=a.map(x=>({...x,parentSpanId:(l==null?void 0:l.id)===x.id?null:x==null?void 0:x.parentSpanId})),u=(p=a.find(x=>x.status.code!==0))==null?void 0:p.status,d=(b=(m=a==null?void 0:a[0])==null?void 0:m.attributes)==null?void 0:b.runId;return{traceId:o,serviceName:(l==null?void 0:l.name)||o,duration:(l==null?void 0:l.duration)||a.reduce((x,C)=>x+C.duration,0),status:u||(l==null?void 0:l.status)||a[0].status,started:a[0].startTime,trace:c,runId:d?String(d):void 0}})},dB=(e,t=!1)=>{const[n,r]=D.useState([]),s=D.useCallback(async()=>{try{const u=await js.getTelemetry({attribute:{componentName:e}});if(!u.traces)throw new Error("Error fetching traces");return $wt((u==null?void 0:u.traces)||[],t)}catch(u){throw u}},[js,e,t]),i=D.useCallback(u=>{u.length>0&&r(()=>u)},[]),o=D.useCallback(u=>{console.log("error, onError",u),Wn.error(u.message)},[]),a=D.useCallback(()=>!0,[]),{firstCallLoading:l,error:c}=Bwt({fetchFn:s,interval:3e3,onSuccess:i,onError:o,shouldContinue:a,enabled:!0});return{traces:n,firstCallLoading:l,error:c}};function zwt(){const{agentId:e}=Zs(),{agent:t,isLoading:n}=Av(e),{traces:r,firstCallLoading:s,error:i}=dB((t==null?void 0:t.name)||"");return n||s?f.jsx("div",{className:"p-4",children:f.jsx(Cr,{className:"h-10"})}):f.jsx(m0t,{traces:r||[],error:i,className:"h-[calc(100vh-40px)]"})}function hB(e){return Function("z",`"use strict";return (${e});`)(yA)}var Nv=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xg=typeof window>"u"||"Deno"in globalThis;function Gi(){}function Hwt(e,t){return typeof e=="function"?e(t):e}function uO(e){return typeof e=="number"&&e>=0&&e!==1/0}function lve(e,t){return Math.max(e+(t||0)-Date.now(),0)}function If(e,t){return typeof e=="function"?e(t):e}function _l(e,t){return typeof e=="function"?e(t):e}function MQ(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==fB(o,t.options))return!1}else if(!fS(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function FQ(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(wg(t.options.mutationKey)!==wg(i))return!1}else if(!fS(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function fB(e,t){return((t==null?void 0:t.queryKeyHashFn)||wg)(e)}function wg(e){return JSON.stringify(e,(t,n)=>dO(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function fS(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>fS(e[n],t[n])):!1}function cve(e,t){if(e===t)return e;const n=OQ(e)&&OQ(t);if(n||dO(e)&&dO(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},l=new Set(r);let c=0;for(let u=0;u<o;u++){const d=n?u:i[u];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=cve(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return s===o&&c===s?e:a}return t}function V2(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function OQ(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dO(e){if(!RQ(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!RQ(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function RQ(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vwt(e){return new Promise(t=>{setTimeout(t,e)})}function hO(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?cve(e,t):t}function Uwt(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function qwt(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var pB=Symbol();function uve(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===pB?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function dve(e,t){return typeof e=="function"?e(...t):!!e}var Am,uf,H0,WQ,Wwt=(WQ=class extends Nv{constructor(){super();jt(this,Am);jt(this,uf);jt(this,H0);pt(this,H0,t=>{if(!xg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){he(this,uf)||this.setEventListener(he(this,H0))}onUnsubscribe(){var t;this.hasListeners()||((t=he(this,uf))==null||t.call(this),pt(this,uf,void 0))}setEventListener(t){var n;pt(this,H0,t),(n=he(this,uf))==null||n.call(this),pt(this,uf,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){he(this,Am)!==t&&(pt(this,Am,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof he(this,Am)=="boolean"?he(this,Am):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Am=new WeakMap,uf=new WeakMap,H0=new WeakMap,WQ),mB=new Wwt,V0,df,U0,GQ,Gwt=(GQ=class extends Nv{constructor(){super();jt(this,V0,!0);jt(this,df);jt(this,U0);pt(this,U0,t=>{if(!xg&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){he(this,df)||this.setEventListener(he(this,U0))}onUnsubscribe(){var t;this.hasListeners()||((t=he(this,df))==null||t.call(this),pt(this,df,void 0))}setEventListener(t){var n;pt(this,U0,t),(n=he(this,df))==null||n.call(this),pt(this,df,t(this.setOnline.bind(this)))}setOnline(t){he(this,V0)!==t&&(pt(this,V0,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return he(this,V0)}},V0=new WeakMap,df=new WeakMap,U0=new WeakMap,GQ),U2=new Gwt;function fO(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function Ywt(e){return Math.min(1e3*2**e,3e4)}function hve(e){return(e??"online")==="online"?U2.isOnline():!0}var fve=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Q9(e){return e instanceof fve}function pve(e){let t=!1,n=0,r=!1,s;const i=fO(),o=x=>{var C;r||(p(new fve(x)),(C=e.abort)==null||C.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>mB.isFocused()&&(e.networkMode==="always"||U2.isOnline())&&e.canRun(),u=()=>hve(e.networkMode)&&e.canRun(),d=x=>{var C;r||(r=!0,(C=e.onSuccess)==null||C.call(e,x),s==null||s(),i.resolve(x))},p=x=>{var C;r||(r=!0,(C=e.onError)==null||C.call(e,x),s==null||s(),i.reject(x))},m=()=>new Promise(x=>{var C;s=S=>{(r||c())&&x(S)},(C=e.onPause)==null||C.call(e)}).then(()=>{var x;s=void 0,r||(x=e.onContinue)==null||x.call(e)}),b=()=>{if(r)return;let x;const C=n===0?e.initialPromise:void 0;try{x=C??e.fn()}catch(S){x=Promise.reject(S)}Promise.resolve(x).then(d).catch(S=>{var M;if(r)return;const A=e.retry??(xg?0:3),T=e.retryDelay??Ywt,N=typeof T=="function"?T(n,S):T,F=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,S);if(t||!F){p(S);return}n++,(M=e.onFail)==null||M.call(e,n,S),Vwt(N).then(()=>c()?void 0:m()).then(()=>{t?p(S):b()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?b():m().then(b),i)}}var Xwt=e=>setTimeout(e,0);function Kwt(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=Xwt;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var Os=Kwt(),Tm,YQ,mve=(YQ=class{constructor(){jt(this,Tm)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),uO(this.gcTime)&&pt(this,Tm,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xg?1/0:5*60*1e3))}clearGcTimeout(){he(this,Tm)&&(clearTimeout(he(this,Tm)),pt(this,Tm,void 0))}},Tm=new WeakMap,YQ),q0,W0,Ia,_m,wi,pS,Nm,El,Zu,XQ,Zwt=(XQ=class extends mve{constructor(t){super();jt(this,El);jt(this,q0);jt(this,W0);jt(this,Ia);jt(this,_m);jt(this,wi);jt(this,pS);jt(this,Nm);pt(this,Nm,!1),pt(this,pS,t.defaultOptions),this.setOptions(t.options),this.observers=[],pt(this,_m,t.client),pt(this,Ia,he(this,_m).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,pt(this,q0,Jwt(this.options)),this.state=t.state??he(this,q0),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=he(this,wi))==null?void 0:t.promise}setOptions(t){this.options={...he(this,pS),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&he(this,Ia).remove(this)}setData(t,n){const r=hO(this.state.data,t,this.options);return an(this,El,Zu).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){an(this,El,Zu).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=he(this,wi))==null?void 0:r.promise;return(s=he(this,wi))==null||s.cancel(t),n?n.then(Gi).catch(Gi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(he(this,q0))}isActive(){return this.observers.some(t=>_l(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pB||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>If(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!lve(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=he(this,wi))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=he(this,wi))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),he(this,Ia).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(he(this,wi)&&(he(this,Nm)?he(this,wi).cancel({revert:!0}):he(this,wi).cancelRetry()),this.scheduleGc()),he(this,Ia).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||an(this,El,Zu).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(he(this,wi))return he(this,wi).continueRetry(),he(this,wi).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(m=>m.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(pt(this,Nm,!0),r.signal)})},i=()=>{const p=uve(this.options,n),b=(()=>{const x={client:he(this,_m),queryKey:this.queryKey,meta:this.meta};return s(x),x})();return pt(this,Nm,!1),this.options.persister?this.options.persister(p,b,this):p(b)},a=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:he(this,_m),state:this.state,fetchFn:i};return s(p),p})();(c=this.options.behavior)==null||c.onFetch(a,this),pt(this,W0,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&an(this,El,Zu).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=p=>{var m,b,x,C;Q9(p)&&p.silent||an(this,El,Zu).call(this,{type:"error",error:p}),Q9(p)||((b=(m=he(this,Ia).config).onError)==null||b.call(m,p,this),(C=(x=he(this,Ia).config).onSettled)==null||C.call(x,this.state.data,p,this)),this.scheduleGc()};return pt(this,wi,pve({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var m,b,x,C;if(p===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(S){l(S);return}(b=(m=he(this,Ia).config).onSuccess)==null||b.call(m,p,this),(C=(x=he(this,Ia).config).onSettled)==null||C.call(x,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,m)=>{an(this,El,Zu).call(this,{type:"failed",failureCount:p,error:m})},onPause:()=>{an(this,El,Zu).call(this,{type:"pause"})},onContinue:()=>{an(this,El,Zu).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),he(this,wi).start()}},q0=new WeakMap,W0=new WeakMap,Ia=new WeakMap,_m=new WeakMap,wi=new WeakMap,pS=new WeakMap,Nm=new WeakMap,El=new WeakSet,Zu=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...gve(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Q9(s)&&s.revert&&he(this,W0)?{...he(this,W0),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Os.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),he(this,Ia).notify({query:this,type:"updated",action:t})})},XQ);function gve(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hve(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Jwt(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Mc,KQ,Qwt=(KQ=class extends Nv{constructor(t={}){super();jt(this,Mc);this.config=t,pt(this,Mc,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??fB(s,n);let o=this.get(i);return o||(o=new Zwt({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){he(this,Mc).has(t.queryHash)||(he(this,Mc).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=he(this,Mc).get(t.queryHash);n&&(t.destroy(),n===t&&he(this,Mc).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Os.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return he(this,Mc).get(t)}getAll(){return[...he(this,Mc).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>MQ(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>MQ(t,r)):n}notify(t){Os.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Os.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Os.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Mc=new WeakMap,KQ),Fc,$i,Pm,Oc,nf,ZQ,eSt=(ZQ=class extends mve{constructor(t){super();jt(this,Oc);jt(this,Fc);jt(this,$i);jt(this,Pm);this.mutationId=t.mutationId,pt(this,$i,t.mutationCache),pt(this,Fc,[]),this.state=t.state||yve(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){he(this,Fc).includes(t)||(he(this,Fc).push(t),this.clearGcTimeout(),he(this,$i).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){pt(this,Fc,he(this,Fc).filter(n=>n!==t)),this.scheduleGc(),he(this,$i).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){he(this,Fc).length||(this.state.status==="pending"?this.scheduleGc():he(this,$i).remove(this))}continue(){var t;return((t=he(this,Pm))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,c,u,d,p,m,b,x,C,S,A,T,N,F,M,I,j;const n=()=>{an(this,Oc,nf).call(this,{type:"continue"})};pt(this,Pm,pve({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,B)=>{an(this,Oc,nf).call(this,{type:"failed",failureCount:L,error:B})},onPause:()=>{an(this,Oc,nf).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>he(this,$i).canRun(this)}));const r=this.state.status==="pending",s=!he(this,Pm).canStart();try{if(r)n();else{an(this,Oc,nf).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=he(this,$i).config).onMutate)==null?void 0:o.call(i,t,this));const B=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));B!==this.state.context&&an(this,Oc,nf).call(this,{type:"pending",context:B,variables:t,isPaused:s})}const L=await he(this,Pm).start();return await((u=(c=he(this,$i).config).onSuccess)==null?void 0:u.call(c,L,t,this.state.context,this)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,L,t,this.state.context)),await((b=(m=he(this,$i).config).onSettled)==null?void 0:b.call(m,L,null,this.state.variables,this.state.context,this)),await((C=(x=this.options).onSettled)==null?void 0:C.call(x,L,null,t,this.state.context)),an(this,Oc,nf).call(this,{type:"success",data:L}),L}catch(L){try{throw await((A=(S=he(this,$i).config).onError)==null?void 0:A.call(S,L,t,this.state.context,this)),await((N=(T=this.options).onError)==null?void 0:N.call(T,L,t,this.state.context)),await((M=(F=he(this,$i).config).onSettled)==null?void 0:M.call(F,void 0,L,this.state.variables,this.state.context,this)),await((j=(I=this.options).onSettled)==null?void 0:j.call(I,void 0,L,t,this.state.context)),L}finally{an(this,Oc,nf).call(this,{type:"error",error:L})}}finally{he(this,$i).runNext(this)}}},Fc=new WeakMap,$i=new WeakMap,Pm=new WeakMap,Oc=new WeakSet,nf=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Os.batch(()=>{he(this,Fc).forEach(r=>{r.onMutationUpdate(t)}),he(this,$i).notify({mutation:this,type:"updated",action:t})})},ZQ);function yve(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ld,Dl,mS,JQ,tSt=(JQ=class extends Nv{constructor(t={}){super();jt(this,ld);jt(this,Dl);jt(this,mS);this.config=t,pt(this,ld,new Set),pt(this,Dl,new Map),pt(this,mS,0)}build(t,n,r){const s=new eSt({mutationCache:this,mutationId:++_k(this,mS)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){he(this,ld).add(t);const n=iD(t);if(typeof n=="string"){const r=he(this,Dl).get(n);r?r.push(t):he(this,Dl).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(he(this,ld).delete(t)){const n=iD(t);if(typeof n=="string"){const r=he(this,Dl).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&he(this,Dl).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=iD(t);if(typeof n=="string"){const r=he(this,Dl).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=iD(t);if(typeof n=="string"){const s=(r=he(this,Dl).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Os.batch(()=>{he(this,ld).forEach(t=>{this.notify({type:"removed",mutation:t})}),he(this,ld).clear(),he(this,Dl).clear()})}getAll(){return Array.from(he(this,ld))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>FQ(n,r))}findAll(t={}){return this.getAll().filter(n=>FQ(t,n))}notify(t){Os.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Os.batch(()=>Promise.all(t.map(n=>n.continue().catch(Gi))))}},ld=new WeakMap,Dl=new WeakMap,mS=new WeakMap,JQ);function iD(e){var t;return(t=e.options.scope)==null?void 0:t.id}function IQ(e){return{onFetch:(t,n)=>{var u,d,p,m,b;const r=t.options,s=(p=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:p.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],o=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let x=!1;const C=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?x=!0:t.signal.addEventListener("abort",()=>{x=!0}),t.signal)})},S=uve(t.options,t.fetchOptions),A=async(T,N,F)=>{if(x)return Promise.reject();if(N==null&&T.pages.length)return Promise.resolve(T);const I=(()=>{const z={client:t.client,queryKey:t.queryKey,pageParam:N,direction:F?"backward":"forward",meta:t.options.meta};return C(z),z})(),j=await S(I),{maxPages:L}=t.options,B=F?qwt:Uwt;return{pages:B(T.pages,j,L),pageParams:B(T.pageParams,N,L)}};if(s&&i.length){const T=s==="backward",N=T?nSt:jQ,F={pages:i,pageParams:o},M=N(r,F);a=await A(F,M,T)}else{const T=e??i.length;do{const N=l===0?o[0]??r.initialPageParam:jQ(r,a);if(l>0&&N==null)break;a=await A(a,N),l++}while(l<T)}return a};t.options.persister?t.fetchFn=()=>{var x,C;return(C=(x=t.options).persister)==null?void 0:C.call(x,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function jQ(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function nSt(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Yr,hf,ff,G0,Y0,pf,X0,K0,QQ,rSt=(QQ=class{constructor(e={}){jt(this,Yr);jt(this,hf);jt(this,ff);jt(this,G0);jt(this,Y0);jt(this,pf);jt(this,X0);jt(this,K0);pt(this,Yr,e.queryCache||new Qwt),pt(this,hf,e.mutationCache||new tSt),pt(this,ff,e.defaultOptions||{}),pt(this,G0,new Map),pt(this,Y0,new Map),pt(this,pf,0)}mount(){_k(this,pf)._++,he(this,pf)===1&&(pt(this,X0,mB.subscribe(async e=>{e&&(await this.resumePausedMutations(),he(this,Yr).onFocus())})),pt(this,K0,U2.subscribe(async e=>{e&&(await this.resumePausedMutations(),he(this,Yr).onOnline())})))}unmount(){var e,t;_k(this,pf)._--,he(this,pf)===0&&((e=he(this,X0))==null||e.call(this),pt(this,X0,void 0),(t=he(this,K0))==null||t.call(this),pt(this,K0,void 0))}isFetching(e){return he(this,Yr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return he(this,hf).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=he(this,Yr).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=he(this,Yr).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(If(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return he(this,Yr).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=he(this,Yr).get(r.queryHash),i=s==null?void 0:s.state.data,o=Hwt(t,i);if(o!==void 0)return he(this,Yr).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Os.batch(()=>he(this,Yr).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=he(this,Yr).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=he(this,Yr);Os.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=he(this,Yr);return Os.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Os.batch(()=>he(this,Yr).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Gi).catch(Gi)}invalidateQueries(e,t={}){return Os.batch(()=>(he(this,Yr).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Os.batch(()=>he(this,Yr).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Gi)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Gi)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=he(this,Yr).build(this,t);return n.isStaleByTime(If(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gi).catch(Gi)}fetchInfiniteQuery(e){return e.behavior=IQ(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gi).catch(Gi)}ensureInfiniteQueryData(e){return e.behavior=IQ(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return U2.isOnline()?he(this,hf).resumePausedMutations():Promise.resolve()}getQueryCache(){return he(this,Yr)}getMutationCache(){return he(this,hf)}getDefaultOptions(){return he(this,ff)}setDefaultOptions(e){pt(this,ff,e)}setQueryDefaults(e,t){he(this,G0).set(wg(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...he(this,G0).values()],n={};return t.forEach(r=>{fS(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){he(this,Y0).set(wg(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...he(this,Y0).values()],n={};return t.forEach(r=>{fS(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...he(this,ff).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fB(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===pB&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...he(this,ff).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){he(this,Yr).clear(),he(this,hf).clear()}},Yr=new WeakMap,hf=new WeakMap,ff=new WeakMap,G0=new WeakMap,Y0=new WeakMap,pf=new WeakMap,X0=new WeakMap,K0=new WeakMap,QQ),yo,wn,gS,zi,Mm,Z0,mf,gf,yS,J0,Q0,Fm,Om,yf,eb,Gn,P1,pO,mO,gO,yO,bO,vO,xO,bve,eee,sSt=(eee=class extends Nv{constructor(t,n){super();jt(this,Gn);jt(this,yo);jt(this,wn);jt(this,gS);jt(this,zi);jt(this,Mm);jt(this,Z0);jt(this,mf);jt(this,gf);jt(this,yS);jt(this,J0);jt(this,Q0);jt(this,Fm);jt(this,Om);jt(this,yf);jt(this,eb,new Set);this.options=n,pt(this,yo,t),pt(this,gf,null),pt(this,mf,fO()),this.options.experimental_prefetchInRender||he(this,mf).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(he(this,wn).addObserver(this),LQ(he(this,wn),this.options)?an(this,Gn,P1).call(this):this.updateResult(),an(this,Gn,yO).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return wO(he(this,wn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return wO(he(this,wn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,an(this,Gn,bO).call(this),an(this,Gn,vO).call(this),he(this,wn).removeObserver(this)}setOptions(t){const n=this.options,r=he(this,wn);if(this.options=he(this,yo).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _l(this.options.enabled,he(this,wn))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");an(this,Gn,xO).call(this),he(this,wn).setOptions(this.options),n._defaulted&&!V2(this.options,n)&&he(this,yo).getQueryCache().notify({type:"observerOptionsUpdated",query:he(this,wn),observer:this});const s=this.hasListeners();s&&BQ(he(this,wn),r,this.options,n)&&an(this,Gn,P1).call(this),this.updateResult(),s&&(he(this,wn)!==r||_l(this.options.enabled,he(this,wn))!==_l(n.enabled,he(this,wn))||If(this.options.staleTime,he(this,wn))!==If(n.staleTime,he(this,wn)))&&an(this,Gn,pO).call(this);const i=an(this,Gn,mO).call(this);s&&(he(this,wn)!==r||_l(this.options.enabled,he(this,wn))!==_l(n.enabled,he(this,wn))||i!==he(this,yf))&&an(this,Gn,gO).call(this,i)}getOptimisticResult(t){const n=he(this,yo).getQueryCache().build(he(this,yo),t),r=this.createResult(n,t);return oSt(this,r)&&(pt(this,zi,r),pt(this,Z0,this.options),pt(this,Mm,he(this,wn).state)),r}getCurrentResult(){return he(this,zi)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),Reflect.get(r,s))})}trackProp(t){he(this,eb).add(t)}getCurrentQuery(){return he(this,wn)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=he(this,yo).defaultQueryOptions(t),r=he(this,yo).getQueryCache().build(he(this,yo),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return an(this,Gn,P1).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),he(this,zi)))}createResult(t,n){var L;const r=he(this,wn),s=this.options,i=he(this,zi),o=he(this,Mm),a=he(this,Z0),c=t!==r?t.state:he(this,gS),{state:u}=t;let d={...u},p=!1,m;if(n._optimisticResults){const B=this.hasListeners(),z=!B&&LQ(t,n),G=B&&BQ(t,r,n,s);(z||G)&&(d={...d,...gve(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:b,errorUpdatedAt:x,status:C}=d;m=d.data;let S=!1;if(n.placeholderData!==void 0&&m===void 0&&C==="pending"){let B;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(B=i.data,S=!0):B=typeof n.placeholderData=="function"?n.placeholderData((L=he(this,Q0))==null?void 0:L.state.data,he(this,Q0)):n.placeholderData,B!==void 0&&(C="success",m=hO(i==null?void 0:i.data,B,n),p=!0)}if(n.select&&m!==void 0&&!S)if(i&&m===(o==null?void 0:o.data)&&n.select===he(this,yS))m=he(this,J0);else try{pt(this,yS,n.select),m=n.select(m),m=hO(i==null?void 0:i.data,m,n),pt(this,J0,m),pt(this,gf,null)}catch(B){pt(this,gf,B)}he(this,gf)&&(b=he(this,gf),m=he(this,J0),x=Date.now(),C="error");const A=d.fetchStatus==="fetching",T=C==="pending",N=C==="error",F=T&&A,M=m!==void 0,j={status:C,fetchStatus:d.fetchStatus,isPending:T,isSuccess:C==="success",isError:N,isInitialLoading:F,isLoading:F,data:m,dataUpdatedAt:d.dataUpdatedAt,error:b,errorUpdatedAt:x,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:A,isRefetching:A&&!T,isLoadingError:N&&!M,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:N&&M,isStale:gB(t,n),refetch:this.refetch,promise:he(this,mf)};if(this.options.experimental_prefetchInRender){const B=Q=>{j.status==="error"?Q.reject(j.error):j.data!==void 0&&Q.resolve(j.data)},z=()=>{const Q=pt(this,mf,j.promise=fO());B(Q)},G=he(this,mf);switch(G.status){case"pending":t.queryHash===r.queryHash&&B(G);break;case"fulfilled":(j.status==="error"||j.data!==G.value)&&z();break;case"rejected":(j.status!=="error"||j.error!==G.reason)&&z();break}}return j}updateResult(){const t=he(this,zi),n=this.createResult(he(this,wn),this.options);if(pt(this,Mm,he(this,wn).state),pt(this,Z0,this.options),he(this,Mm).data!==void 0&&pt(this,Q0,he(this,wn)),V2(n,t))return;pt(this,zi,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!he(this,eb).size)return!0;const o=new Set(i??he(this,eb));return this.options.throwOnError&&o.add("error"),Object.keys(he(this,zi)).some(a=>{const l=a;return he(this,zi)[l]!==t[l]&&o.has(l)})};an(this,Gn,bve).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&an(this,Gn,yO).call(this)}},yo=new WeakMap,wn=new WeakMap,gS=new WeakMap,zi=new WeakMap,Mm=new WeakMap,Z0=new WeakMap,mf=new WeakMap,gf=new WeakMap,yS=new WeakMap,J0=new WeakMap,Q0=new WeakMap,Fm=new WeakMap,Om=new WeakMap,yf=new WeakMap,eb=new WeakMap,Gn=new WeakSet,P1=function(t){an(this,Gn,xO).call(this);let n=he(this,wn).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Gi)),n},pO=function(){an(this,Gn,bO).call(this);const t=If(this.options.staleTime,he(this,wn));if(xg||he(this,zi).isStale||!uO(t))return;const r=lve(he(this,zi).dataUpdatedAt,t)+1;pt(this,Fm,setTimeout(()=>{he(this,zi).isStale||this.updateResult()},r))},mO=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(he(this,wn)):this.options.refetchInterval)??!1},gO=function(t){an(this,Gn,vO).call(this),pt(this,yf,t),!(xg||_l(this.options.enabled,he(this,wn))===!1||!uO(he(this,yf))||he(this,yf)===0)&&pt(this,Om,setInterval(()=>{(this.options.refetchIntervalInBackground||mB.isFocused())&&an(this,Gn,P1).call(this)},he(this,yf)))},yO=function(){an(this,Gn,pO).call(this),an(this,Gn,gO).call(this,an(this,Gn,mO).call(this))},bO=function(){he(this,Fm)&&(clearTimeout(he(this,Fm)),pt(this,Fm,void 0))},vO=function(){he(this,Om)&&(clearInterval(he(this,Om)),pt(this,Om,void 0))},xO=function(){const t=he(this,yo).getQueryCache().build(he(this,yo),this.options);if(t===he(this,wn))return;const n=he(this,wn);pt(this,wn,t),pt(this,gS,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},bve=function(t){Os.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(he(this,zi))}),he(this,yo).getQueryCache().notify({query:he(this,wn),type:"observerResultsUpdated"})})},eee);function iSt(e,t){return _l(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function LQ(e,t){return iSt(e,t)||e.state.data!==void 0&&wO(e,t,t.refetchOnMount)}function wO(e,t,n){if(_l(t.enabled,e)!==!1&&If(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&gB(e,t)}return!1}function BQ(e,t,n,r){return(e!==t||_l(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&gB(e,n)}function gB(e,t){return _l(t.enabled,e)!==!1&&e.isStaleByTime(If(t.staleTime,e))}function oSt(e,t){return!V2(e.getCurrentResult(),t)}var bf,vf,bo,cd,Sd,GD,SO,tee,aSt=(tee=class extends Nv{constructor(n,r){super();jt(this,Sd);jt(this,bf);jt(this,vf);jt(this,bo);jt(this,cd);pt(this,bf,n),this.setOptions(r),this.bindMethods(),an(this,Sd,GD).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=he(this,bf).defaultMutationOptions(n),V2(this.options,r)||he(this,bf).getMutationCache().notify({type:"observerOptionsUpdated",mutation:he(this,bo),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&wg(r.mutationKey)!==wg(this.options.mutationKey)?this.reset():((s=he(this,bo))==null?void 0:s.state.status)==="pending"&&he(this,bo).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=he(this,bo))==null||n.removeObserver(this)}onMutationUpdate(n){an(this,Sd,GD).call(this),an(this,Sd,SO).call(this,n)}getCurrentResult(){return he(this,vf)}reset(){var n;(n=he(this,bo))==null||n.removeObserver(this),pt(this,bo,void 0),an(this,Sd,GD).call(this),an(this,Sd,SO).call(this)}mutate(n,r){var s;return pt(this,cd,r),(s=he(this,bo))==null||s.removeObserver(this),pt(this,bo,he(this,bf).getMutationCache().build(he(this,bf),this.options)),he(this,bo).addObserver(this),he(this,bo).execute(n)}},bf=new WeakMap,vf=new WeakMap,bo=new WeakMap,cd=new WeakMap,Sd=new WeakSet,GD=function(){var r;const n=((r=he(this,bo))==null?void 0:r.state)??yve();pt(this,vf,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},SO=function(n){Os.batch(()=>{var r,s,i,o,a,l,c,u;if(he(this,cd)&&this.hasListeners()){const d=he(this,vf).variables,p=he(this,vf).context;(n==null?void 0:n.type)==="success"?((s=(r=he(this,cd)).onSuccess)==null||s.call(r,n.data,d,p),(o=(i=he(this,cd)).onSettled)==null||o.call(i,n.data,null,d,p)):(n==null?void 0:n.type)==="error"&&((l=(a=he(this,cd)).onError)==null||l.call(a,n.error,d,p),(u=(c=he(this,cd)).onSettled)==null||u.call(c,void 0,n.error,d,p))}this.listeners.forEach(d=>{d(he(this,vf))})})},tee),vve=D.createContext(void 0),xve=e=>{const t=D.useContext(vve);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},lSt=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(vve.Provider,{value:e,children:t})),wve=D.createContext(!1),cSt=()=>D.useContext(wve);wve.Provider;function uSt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var dSt=D.createContext(uSt()),hSt=()=>D.useContext(dSt),fSt=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},pSt=e=>{D.useEffect(()=>{e.clearReset()},[e])},mSt=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||dve(n,[e.error,r])),gSt=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},ySt=(e,t)=>e.isLoading&&e.isFetching&&!t,bSt=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,$Q=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function vSt(e,t,n){var d,p,m,b,x;const r=cSt(),s=hSt(),i=xve(),o=i.defaultQueryOptions(e);(p=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||p.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",gSt(o),fSt(o,s),pSt(s);const a=!i.getQueryCache().get(o.queryHash),[l]=D.useState(()=>new t(i,o)),c=l.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(C=>{const S=u?l.subscribe(Os.batchCalls(C)):Gi;return l.updateResult(),S},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),D.useEffect(()=>{l.setOptions(o)},[o,l]),bSt(o,c))throw $Q(o,l,s);if(mSt({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw c.error;if((b=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||b.call(m,o,c),o.experimental_prefetchInRender&&!xg&&ySt(c,r)){const C=a?$Q(o,l,s):(x=i.getQueryCache().get(o.queryHash))==null?void 0:x.promise;C==null||C.catch(Gi).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?c:l.trackResult(c)}function xSt(e,t){return vSt(e,sSt)}function Sve(e,t){const n=xve(),[r]=D.useState(()=>new aSt(n,e));D.useEffect(()=>{r.setOptions(e)},[r,e]);const s=D.useSyncExternalStore(D.useCallback(o=>r.subscribe(Os.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=D.useCallback((o,a)=>{r.mutate(o,a).catch(Gi)},[r]);if(s.error&&dve(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}const wSt=()=>Sve({mutationFn:async({agentId:e,toolId:t,input:n,playgroundRuntimeContext:r})=>{const s=new tg;Object.entries(r??{}).forEach(([i,o])=>{s.set(i,o)});try{return await js.getAgent(e).executeTool(t,{data:n,runtimeContext:s})}catch(i){throw Wn.error("Error executing agent tool"),console.error("Error executing tool:",i),i}}});function q2({content:e,copyMessage:t,tooltip:n="Copy to clipboard",iconSize:r="default"}){const{handleCopy:s}=Tv({text:e,copyMessage:t});return f.jsxs(ha,{children:[f.jsx(fa,{asChild:!0,children:f.jsx("button",{onClick:s,type:"button",children:f.jsx(Nt,{className:"transition-colors hover:bg-surface4 rounded-lg text-icon3 hover:text-icon6",size:r,children:f.jsx(Y2,{})})})}),f.jsx(_o,{children:n})]})}const Cve={agent:sh,workflow:wp,tool:Bd},SSt=({toolDescription:e,toolId:t,toolType:n})=>{const r=Cve[n||"tool"];return f.jsx("div",{className:"p-5 border-b-sm border-border1",children:f.jsxs("div",{className:"text-icon6 flex gap-2",children:[f.jsx("div",{children:f.jsx(Nt,{size:"lg",className:"bg-surface4 rounded-md p-1",children:f.jsx(r,{})})}),f.jsx("div",{className:"flex gap-4 justify-between w-full min-w-0",children:f.jsxs("div",{children:[f.jsx(tt,{variant:"header-md",as:"h2",className:"font-medium truncate",children:t}),f.jsx(tt,{variant:"ui-sm",className:"text-icon3",children:e})]})})]})})},yB=()=>D.useMemo(()=>QT({settings:{fontFamily:"var(--geist-mono)",fontSize:"0.8rem",lineHighlight:"transparent",gutterBackground:"transparent",gutterForeground:"#939393",background:"transparent"},styles:[{tag:[Se.className,Se.propertyName]}]}),[]),bB=({isExecutingTool:e,zodInputSchema:t,handleExecuteTool:n,executionResult:r,toolDescription:s,toolId:i,toolType:o})=>{const a=yB(),l=JSON.stringify(r??{},null,2);return f.jsxs(Ks,{hasLeftServiceColumn:!0,className:"relative",children:[f.jsxs("div",{className:"bg-surface2 border-r-sm border-border1 w-[20rem]",children:[f.jsx(SSt,{toolDescription:s,toolId:i,toolType:o}),f.jsx("div",{className:"p-5 overflow-y-auto",children:f.jsx(zb,{isSubmitLoading:e,schema:t,onSubmit:c=>{n(c)},className:"h-auto"})})]}),f.jsx("div",{className:"absolute top-4 right-4 z-10",children:f.jsx(q2,{content:l,tooltip:"Copy JSON result to clipboard"})}),f.jsx("div",{className:"p-5 h-full relative overflow-x-auto overflow-y-auto",children:f.jsx(bd,{value:l,editable:!0,theme:a,extensions:[cg]})})]})},CSt=()=>{const{toolId:e,agentId:t}=Zs(),{runtimeContext:n}=Dv(),{mutateAsync:r,isPending:s}=wSt(),[i,o]=D.useState(null),{agent:a,isLoading:l}=Av(t),c=Object.values((a==null?void 0:a.tools)??{}).find(m=>m.id===e),u=async m=>{if(!a||!c)return;const b=await r({agentId:t,toolId:c.id,input:m,playgroundRuntimeContext:n});o(b)},d=c!=null&&c.inputSchema?hB(ep(fg(c==null?void 0:c.inputSchema))):hn({}),p=!a||!c;return f.jsxs(Aa,{children:[f.jsx(ts,{children:f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/agents",children:"Agents"}),f.jsx(zr,{as:Xt,to:`/agents/${t}/chat`,children:t}),f.jsx(zr,{as:Xt,to:`/agents/${t}/tools/${e}`,isCurrent:!0,children:e})]})}),l?null:p?f.jsx("div",{className:"py-12 text-center px-6",children:f.jsx(tt,{variant:"header-md",className:"text-icon3",children:"Agent or tool not found"})}):f.jsx(bB,{executionResult:i,isExecutingTool:s,zodInputSchema:d,handleExecuteTool:u,toolDescription:c.description,toolId:c.id})]})},kSt=()=>Sve({mutationFn:async({toolId:e,input:t,runtimeContext:n})=>{const r=new tg;Object.entries(n??{}).forEach(([s,i])=>{r.set(s,i)});try{return await js.getTool(e).execute({data:t,runtimeContext:r})}catch(s){throw Wn.error("Error executing dev tool"),console.error("Error executing dev tool:",s),s}}}),ESt=()=>{const{toolId:e}=Zs(),{tool:t,isLoading:n}=Bbt(e),{mutateAsync:r,isPending:s,data:i}=kSt(),{runtimeContext:o}=Dv(),a=async c=>{if(t)return r({toolId:t.id,input:c,runtimeContext:o})},l=t!=null&&t.inputSchema?hB(ep(fg(t==null?void 0:t.inputSchema))):hn({});return f.jsxs("div",{className:"h-full w-full overflow-y-hidden",children:[f.jsx(ts,{children:f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/tools",children:"Tools"}),f.jsx(zr,{as:Xt,to:`/tools/all/${e}`,isCurrent:!0,children:e})]})}),n?null:t?f.jsx(bB,{executionResult:i,isExecutingTool:s,zodInputSchema:l,handleExecuteTool:a,toolDescription:t.description,toolId:t.id}):f.jsx("div",{className:"py-12 text-center px-6",children:f.jsx(tt,{variant:"header-md",className:"text-icon3",children:"Tool not found"})})]})},DSt=[{id:"name",header:"Name",cell:({row:e})=>f.jsx(IL,{icon:f.jsx(wp,{}),name:f.jsx(Xt,{to:`/workflows${e.original.isLegacy?"/legacy":""}/${e.original.id}/graph`,children:e.original.name})}),meta:{width:"auto"}},{id:"action",header:"Action",size:300,cell:({row:e})=>f.jsx(Go,{children:f.jsxs("div",{className:"flex justify-end items-center gap-2",children:[f.jsxs(vr,{icon:f.jsx(Ywe,{}),className:"!h-button-md",children:[e.original.stepsCount," step",e.original.stepsCount>1?"s":""]}),e.original.isLegacy?f.jsx(vr,{className:"!text-foreground/80 !h-button-md",children:"Legacy"}):null]})})}];function ASt(){const e=Hd(),{workflows:t,legacyWorkflows:n,isLoading:r}=Ibt(),s=Object.entries(n).map(([o,a])=>{var l;return{id:o,name:a.name,stepsCount:(l=Object.keys(a.steps))==null?void 0:l.length,isLegacy:!0}}),i=Object.entries(t).map(([o,a])=>{var l;return{id:o,name:a.name,stepsCount:(l=Object.keys(a.steps??{}))==null?void 0:l.length,isLegacy:!1}});return r?null:f.jsxs(Aa,{children:[f.jsx(ts,{children:f.jsx(ec,{children:"Workflows"})}),i.length===0?f.jsx(Ks,{isCentered:!0,children:f.jsx(fC,{iconSlot:f.jsx(Jgt,{}),titleSlot:"Configure Workflows",descriptionSlot:"Mastra workflows are not configured yet. You can find more information in the documentation.",actionSlot:f.jsxs(vn,{size:"lg",className:"w-full",variant:"light",as:"a",href:"https://mastra.ai/en/docs/workflows/overview",target:"_blank",children:[f.jsx(Nt,{children:f.jsx(wp,{})}),"Docs"]})})}):f.jsx(Ks,{children:f.jsx(HL,{emptyText:"Workflows",columns:DSt,data:[...i,...s],onClick:o=>e(`/workflows${o.isLegacy?"/legacy":""}/${o.id}/graph`)})})]})}const zQ=()=>{const{workflowId:e}=Zs(),t=Hd();return f.jsx(gbt,{workflowId:e,baseUrl:"",onShowTrace:({runId:n,stepName:r})=>{t(`/workflows/${e}/traces?runId=${n}&stepName=${r}`)}})};function TSt({runId:e}){const{logs:t,isLoading:n,refetchLogs:r}=o0e(e);return f.jsxs("div",{className:"h-full px-4 pb-4 text-xs w-full overflow-y-auto",children:[f.jsx("div",{className:"flex justify-end sticky top-0 py-2 overflow-y-auto",children:f.jsx(Ym,{variant:"outline",onClick:()=>r(e),children:n?f.jsx(XD,{className:"w-4 h-4 animate-spin"}):f.jsx(XD,{className:"w-4 h-4"})})}),f.jsx("div",{className:"space-y-4 h-full overflow-y-auto",children:t.length===0?f.jsxs("p",{className:"text-gray-300/60",children:["No log drains. By default, logs are sent to the console. To configure log drains see"," ",f.jsx("a",{href:"https://mastra.ai/reference/observability/create-logger#upstash-logger-remote-log-drain",target:"_blank",rel:"noopener",className:" hover:text-gray-100 underline",children:"docs."})]}):t.map((s,i)=>f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex gap-2 items-center",children:[f.jsxs("p",{className:"text-mastra-el-5",children:["[",no(new Date(s.time),"yyyy-MM-dd HH:mm:ss"),"]"]}),f.jsxs("p",{className:"text-mastra-el-4",children:["[",s.level,"]"]})]}),f.jsx("p",{className:"text-mastra-el-5 whitespace-pre-wrap",children:f.jsx("code",{children:s.msg})})]},i))})]})}const kve=({workflowId:e})=>xSt({queryKey:["workflow-runs",e],queryFn:()=>new oI({baseUrl:"",headers:{"x-mastra-dev-playground":"true"}}).getWorkflow(e).runs({limit:50})});function g_({workflowId:e,isLegacy:t}){const n=Zs(),r=Hd(),{workflow:s,isLoading:i}=UL(e,!t),{isLoading:o,data:a}=kve({workflowId:e}),{legacyWorkflow:l,isLoading:c}=VL(e,!!t),[u,d]=D.useState(""),{handleCopy:p}=Tv({text:e}),m=Object.keys((s==null?void 0:s.steps)??{}).length,b=t?c:i,x=t?l:s;return f.jsxs("div",{className:"grid grid-rows-[auto_1fr] h-full overflow-y-auto",children:[f.jsxs("div",{className:"p-5 border-b-sm border-border1",children:[f.jsxs("div",{className:"text-icon6 flex items-center gap-2",children:[f.jsx(Nt,{size:"lg",className:"bg-surface4 rounded-md p-1",children:f.jsx(wp,{})}),b?f.jsx(Cr,{className:"h-3 w-1/3"}):f.jsx("div",{className:"flex items-center gap-4 min-w-0",children:f.jsx(tt,{variant:"header-md",as:"h2",className:"font-medium truncate",children:x==null?void 0:x.name})})]}),f.jsxs("div",{className:"flex items-center gap-2 pt-2",children:[f.jsxs(ha,{children:[f.jsx(fa,{asChild:!0,children:f.jsx("button",{onClick:p,className:"h-badge-default",children:f.jsx(vr,{icon:f.jsx(Y2,{}),variant:"default",children:e})})}),f.jsx(_o,{children:"Copy Workflow ID for use in code"})]}),f.jsxs(vr,{children:[m," step",m>1?"s":""]})]})]}),f.jsx("div",{className:"overflow-y-auto",children:f.jsxs(a_,{defaultValue:"run",className:"h-full grid grid-rows-[auto_1fr] overflow-y-auto",children:[f.jsxs(pC,{className:"flex shrink-0 border-b",children:[f.jsx(ba,{value:"run",className:"group",onClick:()=>r(`/workflows/${e}/graph`),children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Run"})}),f.jsx(ba,{value:"runs",className:"group",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Runs"})}),f.jsx(ba,{value:"logs",className:"group",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Log Drains"})})]}),f.jsxs("div",{className:"h-full overflow-y-auto",children:[f.jsx(va,{value:"run",children:e?f.jsx(f.Fragment,{children:t?f.jsx(hbt,{workflowId:e,setRunId:d}):f.jsx(ybt,{workflowId:e,setRunId:d})}):null}),f.jsx(va,{value:"runs",children:f.jsx(wbt,{workflowId:e,runId:n==null?void 0:n.runId,isLoading:o,runs:(a==null?void 0:a.runs)||[],onPressRun:({workflowId:C,runId:S})=>r(`/workflows/${C}/graph/${S}`)})}),f.jsx(va,{value:"logs",children:f.jsx(TSt,{runId:u})})]})]})})]})}function _St(){const{workflowId:e}=Zs();return f.jsxs("main",{className:"flex-1 relative divide-x flex w-full h-full",children:[f.jsx("div",{className:"min-w-[325px] grow",children:f.jsx(F0t,{workflowId:e})}),f.jsx(Xge,{defaultWidth:20,minimumWidth:20,maximumWidth:60,className:"flex flex-col min-w-[325px] right-0 top-0 h-full z-20 bg-[#121212] [&>div:first-child]:-left-[1px] [&>div:first-child]:-right-[1px] [&>div:first-child]:w-[1px] [&>div:first-child]:bg-[#424242] [&>div:first-child]:hover:w-[2px] [&>div:first-child]:active:w-[2px]",children:f.jsx(g_,{workflowId:e,isLegacy:!0})})]})}function NSt(){const{workflowId:e}=Zs(),[t]=Fwe(),n=t.get("runId"),r=t.get("stepName"),{workflow:s,isLoading:i}=UL(e),{traces:o,error:a,firstCallLoading:l}=dB((s==null?void 0:s.name)||"",!0);return i||l?f.jsxs("main",{className:"flex-1 relative grid grid-cols-[1fr_325px] divide-x h-full",children:[f.jsx("div",{className:"p-4",children:f.jsx(Cr,{className:"h-[600px]"})}),f.jsx("div",{className:"flex flex-col",children:f.jsx(g_,{workflowId:e})})]}):f.jsx(aye,{traces:o,error:a,runId:n||void 0,stepName:r||void 0})}function PSt(){const{workflowId:e}=Zs(),{legacyWorkflow:t,isLoading:n}=VL(e),{traces:r,error:s,firstCallLoading:i}=dB((t==null?void 0:t.name)||"",!0);return n||i?f.jsxs("main",{className:"flex-1 relative grid grid-cols-[1fr_325px] divide-x h-full",children:[f.jsx("div",{className:"p-4",children:f.jsx(Cr,{className:"h-[600px]"})}),f.jsx("div",{className:"flex flex-col",children:f.jsx(g_,{workflowId:e,isLegacy:!0})})]}):f.jsx(aye,{traces:r,error:s})}const MSt=()=>{const[e,t]=D.useState([]),[n,r]=D.useState(!0);return D.useEffect(()=>{(async()=>{r(!0);try{const i=await js.getNetworks();t(i)}catch(i){t([]),console.error("Error fetching networks",i),Wn.error("Error fetching networks")}finally{r(!1)}})()},[]),{networks:e,isLoading:n}},vB=e=>{const[t,n]=D.useState(null),[r,s]=D.useState(!0);return D.useEffect(()=>{e&&(async()=>{s(!0);try{const o=js.getNetwork(e);n(await o.details())}catch(o){n(null),console.error("Error fetching network",o),Wn.error("Error fetching network")}finally{s(!1)}})()},[e]),{network:t,isLoading:r}},FSt=({row:e})=>f.jsx(IL,{icon:f.jsx(sh,{}),name:f.jsx(Xt,{className:"w-full space-y-0",to:`/networks/${e.original.id}/chat`,children:e.original.name}),description:e.original.instructions}),OSt=[{id:"name",header:"Name",cell:FSt,meta:{width:"auto"}},{id:"agents",header:"Agents",cell:({row:e})=>f.jsx(Go,{children:f.jsx(vr,{icon:f.jsx(nSe,{}),children:e.original.agents.length})})},{id:"model",header:"Routing Models",cell:({row:e})=>f.jsx(Go,{children:f.jsx(vr,{variant:"default",icon:f.jsx(PO,{}),children:e.original.routingModel.modelId})})}];function RSt(){const{networks:e,isLoading:t}=MSt();return t?null:f.jsxs(Aa,{children:[f.jsx(ts,{children:f.jsx(ec,{children:"Networks"})}),e.length===0?f.jsx(Ks,{isCentered:!0,children:f.jsx(fC,{iconSlot:f.jsx(ryt,{}),titleSlot:"Configure Agent Networks",descriptionSlot:"Mastra agent networks are not configured yet. You can find more information in the documentation.",actionSlot:f.jsxs(vn,{size:"lg",className:"w-full",variant:"light",as:"a",href:"https://mastra.ai/en/reference/networks/agent-network",target:"_blank",children:[f.jsx(Nt,{children:f.jsx(xee,{})}),"Docs"]})})}):f.jsx(Ks,{children:f.jsx(HL,{isLoading:t,data:e,columns:OSt})})]})}function ISt({networkName:e,networkId:t}){return f.jsxs(ts,{children:[f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/networks",children:"Networks"}),f.jsx(zr,{as:Xt,to:`/networks/${t}`,isCurrent:!0,children:e})]}),f.jsx(jL,{children:f.jsx(vn,{as:Xt,to:`/networks/${t}/chat`,children:"Chat"})})]})}const jSt=({children:e})=>{const{networkId:t}=Zs(),{network:n,isLoading:r}=vB(t);return f.jsxs(Aa,{children:[r?f.jsx(ts,{children:f.jsx(ec,{children:f.jsx(Cr,{className:"h-6 w-[200px]"})})}):f.jsx(ISt,{networkName:n==null?void 0:n.name,networkId:t}),e]})},HQ=({children:e})=>{const{workflowId:t,runId:n}=Zs(),{workflow:r,isLoading:s}=UL(t),{data:i}=kve({workflowId:t});if(s)return f.jsx(Aa,{children:f.jsx(ts,{children:f.jsx(ec,{children:f.jsx(Cr,{className:"h-6 w-[200px]"})})})});const o=i==null?void 0:i.runs.find(a=>a.runId===n);return f.jsx(vye,{snapshot:typeof(o==null?void 0:o.snapshot)=="object"?o.snapshot:void 0,children:f.jsxs(Aa,{children:[f.jsx($ye,{workflowName:(r==null?void 0:r.name)||"",workflowId:t,runId:n}),e]})})},LSt=ap("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function CO({className:e,variant:t,...n}){return f.jsx("div",{className:Ot(LSt({variant:t}),e),...n})}const BSt=()=>f.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.90625 13.7C12.0543 13.7 14.6062 11.148 14.6062 8C14.6062 4.85198 12.0543 2.3 8.90625 2.3C5.75823 2.3 3.20625 4.85198 3.20625 8C3.20625 11.148 5.75823 13.7 8.90625 13.7ZM8.90625 15C12.7722 15 15.9062 11.866 15.9062 8C15.9062 4.13401 12.7722 1 8.90625 1C5.04026 1 1.90625 4.13401 1.90625 8C1.90625 11.866 5.04026 15 8.90625 15Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.4652 10.2358C14.5313 12.8424 12.0391 14.707 9.11131 14.707C9.0617 14.707 9.01222 14.7065 8.96286 14.7054C8.2899 13.0924 7.99638 11.3949 8.24344 9.55135C8.32897 9.24542 8.44745 8.7986 8.42849 8.39404C8.41982 8.20891 8.21671 8.23135 8.16572 8.40953C8.10356 8.62678 8.01682 8.85452 7.90686 9.05582C7.7808 9.07647 7.61987 9.09091 7.41708 9.07898C6.77839 9.04141 6.30758 8.70811 6.207 8.60035C6.0243 8.68313 6.01285 8.74449 6.0019 8.80318C5.99501 8.8401 5.98832 8.87596 5.93935 8.91543L5.92431 8.92772C5.83552 9.00073 5.7706 9.05411 5.56668 8.74463C5.38324 8.38491 5.24798 7.85962 5.79957 7.29461C6.1277 6.9585 6.78378 6.68405 6.87725 6.66968C6.87725 6.13802 7.29396 5.17963 8.48684 4.84422C9.74529 4.49038 11.198 4.84991 12.0373 6.07673C12.5645 6.84745 12.6162 7.29277 12.6557 7.6326C12.6968 7.98678 12.7247 8.22638 13.2636 8.60035C13.4125 8.70365 13.5621 8.80449 13.7129 8.90615C14.2705 9.28209 14.8452 9.66951 15.4652 10.2358ZM8.8836 6.73288C9.08285 6.73288 9.24437 6.57136 9.24437 6.37211C9.24437 6.17286 9.08285 6.01134 8.8836 6.01134C8.68436 6.01134 8.52284 6.17286 8.52284 6.37211C8.52284 6.57136 8.68436 6.73288 8.8836 6.73288Z",fill:"currentColor"})]});function $St({network:e}){var r,s;const{modelSettings:t,setModelSettings:n}=D.useContext(LL);return f.jsx(_v,{className:"pt-2 px-4 pb-4 text-xs",children:f.jsxs("div",{className:"p-4 space-y-4",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium text-mastra-el-5 mb-1",children:"Network Name"}),f.jsx("p",{className:"text-sm text-mastra-el-4",children:e.name})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium text-mastra-el-5 mb-1",children:"Instructions"}),f.jsx("div",{className:"max-h-36 overflow-auto rounded border border-mastra-el-2 bg-mastra-bg-2 p-2",children:f.jsx("p",{className:"text-sm text-mastra-el-4",children:e.instructions||"No instructions provided"})})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium text-mastra-el-5 mb-1",children:"Agents"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(BSt,{}),f.jsxs(CO,{variant:"outline",className:"text-xs",children:[((r=e.agents)==null?void 0:r.length)||0," agents"]})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium text-mastra-el-5 mb-1",children:"Routing Model"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(PO,{className:"h-4 w-4 text-mastra-el-4"}),f.jsx(CO,{className:"border-none text-xs",children:((s=e.routingModel)==null?void 0:s.modelId)||"Unknown"})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium text-mastra-el-5 mb-1",children:"Rounting Model Settings"}),f.jsxs("div",{className:"flex flex-col gap-3 text-mastra-el-5 pb-4",children:[f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsxs("div",{className:"flex flex-row justify-between",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Temperature"}),f.jsx("p",{className:"text-mastra-el-5 text-[12px]",children:t==null?void 0:t.temperature})]}),f.jsx(aS,{value:[(t==null?void 0:t.temperature)??.5],max:1,step:.1,onValueChange:i=>n({...t,temperature:i[0]})})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsxs("div",{className:"flex flex-row justify-between",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Top P"}),f.jsx("p",{className:"text-mastra-el-5 text-[12px]",children:t==null?void 0:t.topP})]}),f.jsx(aS,{onValueChange:i=>n({...t,topP:i[0]}),value:[(t==null?void 0:t.topP)??1],max:1,step:.1})]}),f.jsxs(r0e,{children:[f.jsxs(s0e,{className:"w-full group flex flex-row justify-between items-center pt-1 py-2",children:[f.jsx("span",{className:"text-mastra-el-3 text-[12px] group-hover:text-mastra-el-5",children:"Extended Settings"}),f.jsx(vee,{className:"w-4 h-4 text-mastra-el-3 group-hover:text-mastra-el-5"})]}),f.jsxs(i0e,{className:"flex flex-col gap-2 pt-2",children:[f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Top K"}),f.jsx(Co,{type:"number",value:t==null?void 0:t.topK,onChange:i=>n({...t,topK:i.target.value?Number(i.target.value):void 0})})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Frequency Penalty"}),f.jsx(Co,{type:"number",value:t==null?void 0:t.frequencyPenalty,onChange:i=>n({...t,frequencyPenalty:i.target.value?Number(i.target.value):void 0})})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Presence Penalty"}),f.jsx(Co,{type:"number",value:t==null?void 0:t.presencePenalty,onChange:i=>n({...t,presencePenalty:i.target.value?Number(i.target.value):void 0})})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Max Tokens"}),f.jsx(Co,{type:"number",value:t==null?void 0:t.maxTokens,onChange:i=>n({...t,maxTokens:i.target.value?Number(i.target.value):void 0})})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Max Steps"}),f.jsx(Co,{type:"number",value:t==null?void 0:t.maxSteps,onChange:i=>n({...t,maxSteps:i.target.value?Number(i.target.value):void 0})})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Max Retries"}),f.jsx(Co,{type:"number",value:t==null?void 0:t.maxRetries,onChange:i=>n({...t,maxRetries:i.target.value?Number(i.target.value):void 0})})]})]})]}),f.jsx("div",{className:"flex flex-row justify-start gap-2",children:f.jsxs(Ym,{title:"Reset",variant:"ghost",className:"h-max p-0 group w-max bg-transparent hover:bg-transparent flex flex-row items-center gap-2 text-[12px]",onClick:()=>n({frequencyPenalty:void 0,presencePenalty:void 0,maxRetries:2,maxSteps:5,maxTokens:void 0,temperature:.5,topP:1,topK:void 0}),children:[f.jsx("span",{className:"text-mastra-el-3 text-[12px] group-hover:text-mastra-el-5",children:"Reset"}),f.jsx(wee,{className:"!w-3 !h-3 text-mastra-el-3 group-hover:text-mastra-el-5"})]})})]})]})]})})}function zSt({network:e}){return!e.agents||e.agents.length===0?f.jsx("div",{className:"p-4",children:f.jsx("p",{className:"text-sm text-mastra-el-4",children:"No agents found in this network."})}):f.jsxs("div",{className:"p-4",children:[f.jsx("h3",{className:"text-sm font-medium text-mastra-el-5 mb-3",children:"Network Agents"}),f.jsx("div",{className:"space-y-3",children:e.agents.map((t,n)=>f.jsx("div",{className:"bg-mastra-bg-2 py-2 px-3 rounded-md",children:f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsxs("div",{className:"flex gap-1 items-center",children:[f.jsx(PO,{className:"h-3 w-3 text-mastra-el-4"}),f.jsx("h4",{className:"text-xs font-medium text-mastra-el-5",children:t.name})]}),f.jsxs(CO,{className:"border-none text-xs py-0.5 px-1.5",children:[t.provider,"/",t.modelId]})]})},n))})]})}function HSt({networkId:e}){return f.jsx(_v,{className:"pt-2 px-4 pb-4 text-xs w-[400px]",children:f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[f.jsx("p",{className:"text-mastra-el-3",children:"GET"}),f.jsx("p",{className:"text-mastra-el-5",children:"/api/networks"})]}),f.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[f.jsx("p",{className:"text-mastra-el-3",children:"GET"}),f.jsxs("p",{className:"text-mastra-el-5",children:["/api/networks/",e]})]}),f.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[f.jsx("p",{className:"text-mastra-el-3",children:"POST"}),f.jsxs("p",{className:"text-mastra-el-5",children:["/api/networks/",e,"/generate"]})]}),f.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[f.jsx("p",{className:"text-mastra-el-3",children:"POST"}),f.jsxs("p",{className:"text-mastra-el-5",children:["/api/networks/",e,"/stream"]})]})]})})}function VQ({networkId:e}){const{network:t,isLoading:n}=vB(e);return!t||n?null:f.jsxs(a_,{defaultValue:"details",className:"overflow-y-auto grid grid-rows-[auto_1fr] h-full",children:[f.jsxs(pC,{className:"flex shrink-0 border-b",children:[f.jsx(ba,{value:"details",className:"group",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Details"})}),f.jsx(ba,{value:"agents",className:"group",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Agents"})}),f.jsx(ba,{value:"endpoints",className:"group",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Endpoints"})})]}),f.jsxs("div",{className:"overflow-y-auto",children:[f.jsx(va,{value:"details",children:f.jsx($St,{network:t})}),f.jsx(va,{value:"agents",children:f.jsx(zSt,{network:t})}),f.jsx(va,{value:"endpoints",children:f.jsx(HSt,{networkId:e})})]})]})}function VSt(){const{networkId:e,threadId:t}=Zs(),{network:n,isLoading:r}=vB(e),{messages:s,isLoading:i}=Z0e({agentId:e,threadId:t,memory:!1});return r?f.jsxs(Ks,{isDivided:!0,children:[f.jsx("div",{}),f.jsx("div",{className:"flex flex-col",children:f.jsx(VQ,{networkId:e})})]}):f.jsx(C0t,{children:f.jsxs(Ks,{isDivided:!0,children:[f.jsx("div",{className:"grid overflow-y-auto relative bg-surface1 py-4",children:f.jsx(k0t,{agentId:e,agentName:n==null?void 0:n.name,threadId:t,initialMessages:i?void 0:s})}),f.jsx("div",{className:"border-l-sm h-full overflow-y-auto",children:f.jsx(VQ,{networkId:e})})]})})}function USt({children:e}){return D.useEffect(()=>{if(window.MASTRA_TELEMETRY_DISABLED){console.info("[Analytics]: Telemetry is disabled.");return}pd.init("phc_SBLpZVAB6jmHOct9CABq3PF0Yn5FU3G2FgT4xUr2XrT",{api_host:"https://us.posthog.com"}),pd.register({mastraSource:"playground"})},[]),f.jsx(Mwt,{client:pd,children:e})}function qSt(){const{runtimeContext:e,setRuntimeContext:t}=Dv(),[n,r]=D.useState(""),s=yB(),{handleCopy:i}=Tv({text:n}),o=JSON.stringify(e);D.useEffect(()=>{(async()=>{if(!yU(o)){Wn.error("Invalid JSON");return}const d=await gU(o);r(d)})()},[o]);const a=()=>{try{const u=JSON.parse(n);t(u),Wn.success("Runtime context saved successfully")}catch(u){console.error("error",u),Wn.error("Invalid JSON")}},l="text-icon3 hover:text-icon6",c=async()=>{if(!yU(n)){Wn.error("Invalid JSON");return}const u=await gU(n);r(u)};return f.jsxs(Aa,{children:[f.jsx(ts,{children:f.jsx(ec,{children:"Runtime Context"})}),f.jsx(Ks,{children:f.jsxs("div",{className:"max-w-3xl p-5 overflow-y-scroll h-full",children:[f.jsxs("div",{className:"rounded-lg p-4 pb-2 bg-surface4 shadow-md space-y-3 border border-border1",children:[f.jsx(tt,{as:"p",variant:"ui-lg",className:"text-icon3",children:"Mastra provides runtime context, which is a system based on dependency injection that enables you to configure your agents and tools with runtime variables. If you find yourself creating several different agents that do very similar things, runtime context allows you to combine them into one agent."}),f.jsxs(vn,{as:Xt,to:"https://mastra.ai/en/docs/agents/runtime-variables",target:"_blank",children:[f.jsx(Nt,{children:f.jsx(Wwe,{})}),"See documentation"]})]}),f.jsxs("div",{className:"pt-5",children:[f.jsxs("div",{className:"flex items-center justify-between pb-2",children:[f.jsx(tt,{as:"label",variant:"ui-md",className:"text-icon3",children:"Runtime Context (JSON)"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(ha,{children:[f.jsx(fa,{asChild:!0,children:f.jsx("button",{onClick:c,className:l,children:f.jsx(Nt,{children:f.jsx(Vwe,{})})})}),f.jsx(_o,{children:"Format the Runtime Context JSON"})]}),f.jsxs(ha,{children:[f.jsx(fa,{asChild:!0,children:f.jsx("button",{onClick:i,className:l,children:f.jsx(Nt,{children:f.jsx(Y2,{})})})}),f.jsx(_o,{children:"Copy Runtime Context"})]})]})]}),f.jsx(bd,{value:n,onChange:r,theme:s,extensions:[cg],className:"h-[400px] overflow-y-scroll bg-surface3 rounded-lg overflow-hidden p-3"})]}),f.jsx("div",{className:"flex justify-end pt-2",children:f.jsx(vn,{onClick:a,children:"Save"})})]})})]})}const Eve=()=>{const[e,t]=D.useState(),[n,r]=D.useState(!0),[s,i]=D.useState(null);return D.useEffect(()=>{(async()=>{r(!0),i(null);try{const a=(await js.getMcpServers()).servers;t(a)}catch(a){const l=a instanceof Error?a.message:"Unknown error fetching MCP servers";console.error("Error fetching MCP servers",a),Wn.error(l),i(a instanceof Error?a:new Error(l)),t([])}finally{r(!1)}})()},[]),{servers:e,isLoading:n,error:s}},Dve=e=>{const[t,n]=D.useState({}),[r,s]=D.useState(!1),[i,o]=D.useState(null);return D.useEffect(()=>{(async()=>{if(!e){n({}),s(!1),o(null);return}s(!0),o(null);try{const c=(await js.getMcpServerTools(e.id)).tools,u={};c.forEach(d=>{u[d.id]=d}),n(u)}catch(l){const c=l instanceof Error?l.message:"Unknown error fetching MCP server tools";console.error(`Error fetching tools for MCP server ${e.name}:`,l),Wn.error(c),o(l instanceof Error?l:new Error(c)),n({})}finally{s(!1)}})()},[e]),{tools:t,isLoading:r,error:i}},WSt=({server:e})=>{const{tools:t,isLoading:n}=Dve(e),s=`${js.options.baseUrl||"http://localhost:4111"}/api/mcp/${e.id}/sse`,i=Object.keys(t||{}).length,o=Object.keys(t||{}).filter(u=>{var d;return((d=t==null?void 0:t[u])==null?void 0:d.toolType)==="agent"}).length,a=Object.keys(t||{}).filter(u=>{var d;return((d=t==null?void 0:t[u])==null?void 0:d.toolType)==="workflow"}).length,l=i-o-a,c=o>0||a>0;return f.jsxs(Xt,{to:`/mcps/${e.id}`,className:"flex justify-between items-center pl-5 pr-6 h-table-row border-b-sm border-border1 hover:bg-surface3 cursor-pointer group/mcp-server",children:[f.jsxs("div",{className:"flex gap-3 items-center",children:[f.jsx(Nt,{size:"lg",children:f.jsx(Y3,{})}),f.jsxs("div",{children:[f.jsx(tt,{variant:"ui-md",className:"font-medium text-icon6 !leading-none pb-1",children:e.name}),f.jsx(tt,{variant:"ui-xs",className:"text-icon3 !leading-none",children:s})]})]}),n?f.jsx(Cr,{className:"h-4 w-24"}):f.jsx("div",{className:"flex gap-x-2 items-center",children:f.jsxs(ha,{children:[f.jsx(fa,{asChild:!0,children:f.jsxs(vr,{icon:f.jsx(Bd,{className:"group-hover/mcp-server:text-[#ECB047]"}),children:[i," tool",i===1?"":"s"]})}),c&&f.jsx(_o,{children:f.jsxs("div",{className:"flex flex-col gap-1",children:[l>0&&f.jsxs("span",{children:[f.jsx(Bd,{className:"inline mr-1"}),l," tool",l===1?"":"s"]}),o>0&&f.jsxs("span",{children:[f.jsx(sh,{className:"inline mr-1"}),o," agent",o===1?"":"s"]}),a>0&&f.jsxs("span",{children:[f.jsx(wp,{className:"inline mr-1"}),a," workflow",a===1?"":"s"]})]})})]})})]})},GSt=()=>{const{servers:e,isLoading:t}=Eve(),n=e??[];return t?null:f.jsxs(Aa,{children:[f.jsx(ts,{children:f.jsx(ec,{children:"MCP Servers"})}),n.length===0?f.jsx(Ks,{isCentered:!0,children:f.jsx(fC,{iconSlot:f.jsx(tyt,{}),titleSlot:"Configure MCP servers",descriptionSlot:"MCP servers are not configured yet. You can find more information in the documentation.",actionSlot:f.jsxs(vn,{size:"lg",className:"w-full",variant:"light",as:"a",href:"https://mastra.ai/en/docs/getting-started/mcp-docs-server",target:"_blank",children:[f.jsx(Nt,{children:f.jsx(Y3,{})}),"Docs"]})})}):f.jsx(Ks,{children:f.jsx("ul",{children:(n||[]).map(r=>f.jsx("li",{children:f.jsx(WSt,{server:r})},r.id))})})]})},YSt=ap("block",{variants:{variant:{primary:"text-text",secondary:"text-text-dim"},size:{default:"text-base",xs:"text-xs",sm:"text-sm",md:"text-md",lg:"text-lg",xl:"text-xl","2xl":"text-2xl"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"primary",size:"default",weight:"normal"}}),UQ=({className:e,weight:t,variant:n,as:r="span",size:s,...i})=>f.jsx(r,{className:Ot(YSt({size:s,variant:n,weight:t,className:e})),...i}),XSt=(e,t)=>{const[n,r]=D.useState(null),[s,i]=D.useState(!1),[o,a]=D.useState(null);return D.useEffect(()=>{let l=!0;return(async()=>{if(!e||!t){r(null),i(!1),a(null);return}i(!0),a(null);try{const u=js.getMcpServerTool(e,t),d=await u.details();l&&r({instance:u,details:d})}catch(u){const d=u instanceof Error?u.message:"Unknown error fetching MCP tool details";console.error(`Error fetching details for MCP tool ${t} on server ${e}:`,u),l&&(Wn.error(d),a(u instanceof Error?u:new Error(d)),r(null))}finally{l&&i(!1)}})(),()=>{l=!1}},[e,t]),{tool:n,isLoading:s,error:o}},KSt=()=>{var A,T,N,F;const{serverId:e,toolId:t}=Zs(),r=nc().state,s=((A=r==null?void 0:r.toolData)==null?void 0:A.name)||t,i=(r==null?void 0:r.serverName)||e,{tool:o,isLoading:a,error:l}=XSt(e,t),{runtimeContext:c}=Dv(),[u,d]=D.useState(null),[p,m]=D.useState(!1),b=async M=>{if(!o||!o.instance){Wn.error("Tool is not properly initialized");return}m(!0),d(null);try{const I=await o.instance.execute({data:M,runtimeContext:c});d(I)}catch(I){const j=I instanceof Error?I.message:"Tool execution failed";console.error("MCP Tool execution error:",I),Wn.error(j),d({error:j})}finally{m(!1)}},x=((T=o==null?void 0:o.details)==null?void 0:T.name)||s;(N=o==null?void 0:o.details)==null||N.description;const C=(F=o==null?void 0:o.details)==null?void 0:F.toolType;if(a||!o&&!l)return f.jsxs("div",{className:"h-full w-full bg-mastra-bg-1",children:[f.jsx(ts,{children:f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/mcps",children:"MCP Servers"}),e&&f.jsx(zr,{as:Xt,to:"/mcps",children:i}),f.jsx(zr,{as:"span",to:"",isCurrent:!0,children:a?"Loading Tool...":s||"Tool"})]})}),f.jsxs("div",{className:"w-full h-full grid grid-cols-[300px_1fr] p-2 gap-2",children:[f.jsxs("div",{className:"flex flex-col gap-4 border-[0.5px] border-mastra-border-1 rounded-[0.25rem] bg-mastra-bg-2 p-4 py-6",children:[f.jsx(UQ,{variant:"secondary",className:"text-mastra-el-3 px-4",size:"xs",children:"Input"}),f.jsx(Cr,{className:"h-[200px] w-full"})]}),f.jsxs("div",{className:"flex flex-col gap-4 border-[0.5px] border-mastra-border-1 rounded-[0.25rem] bg-mastra-bg-2 p-4 py-6",children:[f.jsx(UQ,{variant:"secondary",className:"text-mastra-el-3 px-4",size:"xs",children:"Output"}),f.jsx(Cr,{className:"h-[200px] w-full"})]})]})]});if(l||!o)return f.jsxs("div",{className:"h-full w-full bg-mastra-bg-1 p-4",children:[f.jsx(ts,{children:f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/mcps",children:"MCP Servers"}),e&&f.jsx(zr,{as:Xt,to:"/mcps",children:i}),f.jsx(zr,{as:"span",to:"",isCurrent:!0,children:s||"Error"})]})}),f.jsxs("div",{className:"text-red-500 mt-4",children:["Error loading tool: ",(l==null?void 0:l.message)||"Tool not found."]})]});let S;try{S=hB(ep(o.details.inputSchema))}catch(M){console.error("Error processing input schema:",M),Wn.error("Failed to process tool input schema."),S=hn({})}return f.jsxs("div",{className:"h-full w-full bg-mastra-bg-1 overflow-y-hidden",children:[f.jsx(ts,{children:f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/mcps",children:"MCP Servers"}),f.jsx(zr,{as:Xt,to:`/mcps/${e}`,children:i}),f.jsx(zr,{as:"span",to:"",isCurrent:!0,children:x})]})}),f.jsx(bB,{executionResult:u,isExecutingTool:p,zodInputSchema:S,handleExecuteTool:b,toolDescription:x||"",toolId:t||"",toolType:C})]})},qQ=e=>{const t=yB();return f.jsxs("div",{className:"rounded-lg border-sm border-border1 bg-surface3 p-4 relative",children:[f.jsx("div",{className:"absolute top-4 right-4 z-10",children:f.jsx(q2,{tooltip:"Copy code",content:e.value||"No content"})}),f.jsx(bd,{extensions:[AKe()],theme:t,...e})]})},ZSt=()=>{const{serverId:e}=Zs(),{servers:t,isLoading:n}=Eve(),r=t==null?void 0:t.find(a=>a.id===e),s=js.options.baseUrl||"http://localhost:4111",i=`${s}/api/mcp/${e}/sse`,o=`${s}/api/mcp/${e}/mcp`;return f.jsxs(Aa,{children:[f.jsx(ts,{children:f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/mcps",children:"MCP Servers"}),f.jsx(zr,{as:Xt,to:`/mcps/${e}`,isCurrent:!0,children:n?f.jsx(Cr,{className:"w-20 h-4"}):(r==null?void 0:r.name)||"Not found"})]})}),n?null:r?f.jsxs(Ks,{isDivided:!0,children:[f.jsxs("div",{className:"px-8 py-20 mx-auto max-w-[604px] w-full",children:[f.jsx(tt,{as:"h1",variant:"header-md",className:"text-icon6 font-medium pb-4",children:r.name}),f.jsxs("div",{className:"flex flex-col gap-1",children:[f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(vr,{icon:f.jsx("span",{className:"font-mono w-6 text-accent1 text-ui-xs font-medium",children:"SSE"}),className:"!text-icon4",children:i}),f.jsx(q2,{tooltip:"Copy SSE URL",content:i,iconSize:"sm"})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(vr,{icon:f.jsx("span",{className:"font-mono w-6 text-accent1 text-ui-xs font-medium",children:"HTTP"}),className:"!text-icon4",children:o}),f.jsx(q2,{tooltip:"Copy HTTP Stream URL",content:o,iconSize:"sm"})]})]}),f.jsxs("div",{className:"flex items-center gap-1 pt-3 pb-9",children:[f.jsx(vr,{icon:f.jsx(eyt,{className:"text-icon6"}),className:"rounded-r-sm !text-icon4",children:"Version"}),f.jsx(vr,{className:"rounded-l-sm !text-icon4",children:r.version_detail.version})]}),f.jsx(eCt,{sseUrl:i,serverName:r.name})]}),f.jsx("div",{className:"h-full overflow-y-scroll border-l-sm border-border1",children:f.jsx(JSt,{server:r})})]}):f.jsx(Ks,{children:f.jsx(tt,{as:"h1",variant:"header-md",className:"text-icon3 font-medium py-20 text-center",children:"Server not found"})})]})},JSt=({server:e})=>{const{tools:t,isLoading:n}=Dve(e);if(n)return null;const r=Object.keys(t);return f.jsxs("div",{className:"p-5 overflow-y-scroll",children:[f.jsxs("div",{className:"text-icon6 flex gap-2 items-center",children:[f.jsx(Nt,{size:"lg",className:"bg-surface4 rounded-md p-1",children:f.jsx(Y3,{})}),f.jsx(tt,{variant:"header-md",as:"h2",className:"font-medium",children:"Available Tools"})]}),f.jsx("div",{className:"flex flex-col gap-2 pt-6",children:r.map(s=>{const i=t[s];return f.jsx(QSt,{tool:i,serverId:e.id},s)})})]})},QSt=({tool:e,serverId:t})=>{const n=D.useRef(null),r=Cve[e.toolType||"tool"];return f.jsxs(n_,{onClick:()=>{var s;return(s=n.current)==null?void 0:s.click()},children:[f.jsx(r_,{children:f.jsx(r,{className:"group-hover/entity:text-[#ECB047]"})}),f.jsxs(o_,{children:[f.jsx(s_,{children:f.jsx(Xt,{ref:n,to:`/mcps/${t}/tools/${e.id}`,children:e.id})}),f.jsx(i_,{children:e.description})]})]})},eCt=({sseUrl:e,serverName:t})=>{const[n,r]=D.useState("cursor"),s="p-3 text-ui-lg text-icon3 font-medium border-b-2 border-transparent -mb-[0.5px]";return f.jsxs(a_,{onValueChange:r,value:n,children:[f.jsxs(pC,{className:"border-b-sm border-border1 w-full",children:[f.jsx(ba,{value:"cursor",className:zl(s,n==="cursor"&&"text-icon6 border-b-icon6"),children:"Cursor"}),f.jsx(ba,{value:"windsurf",className:zl(s,n==="windsurf"&&"text-icon6 border-b-icon6"),children:"Windsurf"})]}),f.jsxs(va,{value:"cursor",className:"pt-5",children:[f.jsxs(tt,{className:"text-icon3 pb-4",children:["Cursor comes with built-in MCP Support."," ",f.jsx(Xt,{to:"https://docs.cursor.com/context/model-context-protocol",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-icon6",children:"Following the documentation"}),", you can register an MCP server using SSE with the following configuration."]}),f.jsx(qQ,{editable:!1,value:`{
|
|
729
|
+
`)).length,s=0;s<r;s++){var o=e.charCodeAt(s),a=null;o<128?n++:a=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),Sp(a)||(n>t&&(i+=e.substring(t,n)),i+=a,t=n=s+1)}return n>t&&(i+=e.substring(t,e.length)),i},G1t=!!OF||!!FF,pQ="text/plain",z2=(e,t)=>{var[n,r]=e.split("?"),s=ut({},t);r==null||r.split("&").forEach(o=>{var[a]=o.split("=");delete s[a]});var i=Rxt(s);return n+"?"+(i=i?(r?r+"&":"")+i:r)},T1=(e,t)=>JSON.stringify(e,(n,r)=>typeof r=="bigint"?r.toString():r,t),G9=e=>{var{data:t,compression:n}=e;if(t){if(n===fd.GZipJS){var r=_be(Nbe(T1(t)),{mtime:0}),s=new Blob([r],{type:pQ});return{contentType:pQ,body:s,estimatedSize:s.size}}if(n===fd.Base64){var i=function(l){var c,u,d,p,m,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",x=0,C=0,S="",A=[];if(!l)return l;l=W1t(l);do c=(m=l.charCodeAt(x++)<<16|l.charCodeAt(x++)<<8|l.charCodeAt(x++))>>18&63,u=m>>12&63,d=m>>6&63,p=63&m,A[C++]=b.charAt(c)+b.charAt(u)+b.charAt(d)+b.charAt(p);while(x<l.length);switch(S=A.join(""),l.length%3){case 1:S=S.slice(0,-2)+"==";break;case 2:S=S.slice(0,-1)+"="}return S}(T1(t)),o=(l=>"data="+encodeURIComponent(typeof l=="string"?l:T1(l)))(i);return{contentType:"application/x-www-form-urlencoded",body:o,estimatedSize:new Blob([o]).size}}var a=T1(t);return{contentType:"application/json",body:a,estimatedSize:new Blob([a]).size}}},J1=[];FF&&J1.push({transport:"fetch",method:e=>{var t,n,{contentType:r,body:s,estimatedSize:i}=(t=G9(e))!==null&&t!==void 0?t:{},o=new Headers;dr(e.headers,function(u,d){o.append(d,u)}),r&&o.append("Content-Type",r);var a=e.url,l=null;if(_J){var c=new _J;l={signal:c.signal,timeout:setTimeout(()=>c.abort(),e.timeout)}}FF(a,ut({method:(e==null?void 0:e.method)||"GET",headers:o,keepalive:e.method==="POST"&&(i||0)<52428.8,body:s,signal:(n=l)==null?void 0:n.signal},e.fetchOptions)).then(u=>u.text().then(d=>{var p={statusCode:u.status,text:d};if(u.status===200)try{p.json=JSON.parse(d)}catch(m){Tt.error(m)}e.callback==null||e.callback(p)})).catch(u=>{Tt.error(u),e.callback==null||e.callback({statusCode:0,text:u})}).finally(()=>l?clearTimeout(l.timeout):null)}}),OF&&J1.push({transport:"XHR",method:e=>{var t,n=new OF;n.open(e.method||"GET",e.url,!0);var{contentType:r,body:s}=(t=G9(e))!==null&&t!==void 0?t:{};dr(e.headers,function(i,o){n.setRequestHeader(o,i)}),r&&n.setRequestHeader("Content-Type",r),e.timeout&&(n.timeout=e.timeout),n.withCredentials=!0,n.onreadystatechange=()=>{if(n.readyState===4){var i={statusCode:n.status,text:n.responseText};if(n.status===200)try{i.json=JSON.parse(n.responseText)}catch{}e.callback==null||e.callback(i)}},n.send(s)}}),xa!=null&&xa.sendBeacon&&J1.push({transport:"sendBeacon",method:e=>{var t=z2(e.url,{beacon:"1"});try{var n,{contentType:r,body:s}=(n=G9(e))!==null&&n!==void 0?n:{},i=typeof s=="string"?new Blob([s],{type:r}):s;xa.sendBeacon(t,i)}catch{}}});var qb=function(e,t){if(!function(n){try{new RegExp(n)}catch{return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function mQ(e,t,n){return T1({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var Y1t={exact:(e,t)=>t.some(n=>e.some(r=>n===r)),is_not:(e,t)=>t.every(n=>e.every(r=>n!==r)),regex:(e,t)=>t.some(n=>e.some(r=>qb(n,r))),not_regex:(e,t)=>t.every(n=>e.every(r=>!qb(n,r))),icontains:(e,t)=>t.map(rD).some(n=>e.map(rD).some(r=>n.includes(r))),not_icontains:(e,t)=>t.map(rD).every(n=>e.map(rD).every(r=>!n.includes(r)))},rD=e=>e.toLowerCase(),X1t=fi("[Error tracking]");class K1t{constructor(t){var n,r;this.oe=[],this._instance=t,this.oe=(n=(r=this._instance.persistence)==null?void 0:r.get_property(LF))!==null&&n!==void 0?n:[]}onRemoteConfig(t){var n,r,s=(n=(r=t.errorTracking)==null?void 0:r.suppressionRules)!==null&&n!==void 0?n:[];this.oe=s,this._instance.persistence&&this._instance.persistence.register({[LF]:this.oe})}sendExceptionEvent(t){this.ae(t)?X1t.info("Skipping exception capture because a suppression rule matched"):this._instance.capture("$exception",t,{_noTruncate:!0,_batchKey:"exceptionEvent"})}ae(t){var n=t.$exception_list;if(!n||!Mr(n)||n.length===0)return!1;var r=n.reduce((s,i)=>{var{type:o,value:a}=i;return Qr(o)&&o.length>0&&s.$exception_types.push(o),Qr(a)&&a.length>0&&s.$exception_values.push(a),s},{$exception_types:[],$exception_values:[]});return this.oe.some(s=>{var i=s.values.map(o=>{var a,l=Y1t[o.operator],c=Mr(o.value)?o.value:[o.value],u=(a=r[o.key])!==null&&a!==void 0?a:[];return c.length>0&&l(c,u)});return s.type==="OR"?i.some(Boolean):i.every(Boolean)})}}var Ya="Mobile",H2="iOS",Xc="Android",cS="Tablet",Rbe=Xc+" "+cS,Ibe="iPad",jbe="Apple",Lbe=jbe+" Watch",uS="Safari",Wb="BlackBerry",Bbe="Samsung",$be=Bbe+"Browser",zbe=Bbe+" Internet",vg="Chrome",Z1t=vg+" OS",Hbe=vg+" "+H2,iB="Internet Explorer",Vbe=iB+" "+Ya,oB="Opera",J1t=oB+" Mini",aB="Edge",Ube="Microsoft "+aB,$0="Firefox",qbe=$0+" "+H2,dS="Nintendo",hS="PlayStation",z0="Xbox",Wbe=Xc+" "+Ya,Gbe=Ya+" "+uS,_1="Windows",rO=_1+" Phone",gQ="Nokia",sO="Ouya",Ybe="Generic",Q1t=Ybe+" "+Ya.toLowerCase(),Xbe=Ybe+" "+cS.toLowerCase(),iO="Konqueror",Bi="(\\d+(\\.\\d+)?)",Y9=new RegExp("Version/"+Bi),ewt=new RegExp(z0,"i"),twt=new RegExp(hS+" \\w+","i"),nwt=new RegExp(dS+" \\w+","i"),lB=new RegExp(Wb+"|PlayBook|BB10","i"),rwt={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},swt=(e,t)=>t&&gn(t,jbe)||function(n){return gn(n,uS)&&!gn(n,vg)&&!gn(n,Xc)}(e),Kbe=function(e,t){return t=t||"",gn(e," OPR/")&&gn(e,"Mini")?J1t:gn(e," OPR/")?oB:lB.test(e)?Wb:gn(e,"IE"+Ya)||gn(e,"WPDesktop")?Vbe:gn(e,$be)?zbe:gn(e,aB)||gn(e,"Edg/")?Ube:gn(e,"FBIOS")?"Facebook "+Ya:gn(e,"UCWEB")||gn(e,"UCBrowser")?"UC Browser":gn(e,"CriOS")?Hbe:gn(e,"CrMo")||gn(e,vg)?vg:gn(e,Xc)&&gn(e,uS)?Wbe:gn(e,"FxiOS")?qbe:gn(e.toLowerCase(),iO.toLowerCase())?iO:swt(e,t)?gn(e,Ya)?Gbe:uS:gn(e,$0)?$0:gn(e,"MSIE")||gn(e,"Trident/")?iB:gn(e,"Gecko")?$0:""},iwt={[Vbe]:[new RegExp("rv:"+Bi)],[Ube]:[new RegExp(aB+"?\\/"+Bi)],[vg]:[new RegExp("("+vg+"|CrMo)\\/"+Bi)],[Hbe]:[new RegExp("CriOS\\/"+Bi)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Bi)],[uS]:[Y9],[Gbe]:[Y9],[oB]:[new RegExp("(Opera|OPR)\\/"+Bi)],[$0]:[new RegExp($0+"\\/"+Bi)],[qbe]:[new RegExp("FxiOS\\/"+Bi)],[iO]:[new RegExp("Konqueror[:/]?"+Bi,"i")],[Wb]:[new RegExp(Wb+" "+Bi),Y9],[Wbe]:[new RegExp("android\\s"+Bi,"i")],[zbe]:[new RegExp($be+"\\/"+Bi)],[iB]:[new RegExp("(rv:|MSIE )"+Bi)],Mozilla:[new RegExp("rv:"+Bi)]},owt=function(e,t){var n=Kbe(e,t),r=iwt[n];if(at(r))return null;for(var s=0;s<r.length;s++){var i=r[s],o=e.match(i);if(o)return parseFloat(o[o.length-2])}return null},yQ=[[new RegExp(z0+"; "+z0+" (.*?)[);]","i"),e=>[z0,e&&e[1]||""]],[new RegExp(dS,"i"),[dS,""]],[new RegExp(hS,"i"),[hS,""]],[lB,[Wb,""]],[new RegExp(_1,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[rO,""];if(new RegExp(Ya).test(t)&&!/IEMobile\b/.test(t))return[_1+" "+Ya,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var r=n[1],s=rwt[r]||"";return/arm/i.test(t)&&(s="RT"),[_1,s]}return[_1,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[H2,t.join(".")]}return[H2,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=at(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Xc+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Xc+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[Xc,t.join(".")]}return[Xc,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];if(e&&e[1]){var n=[e[1],e[2],e[3]||"0"];t[1]=n.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[Z1t,""]],[/Linux|debian/i,["Linux",""]]],bQ=function(e){return nwt.test(e)?dS:twt.test(e)?hS:ewt.test(e)?z0:new RegExp(sO,"i").test(e)?sO:new RegExp("("+rO+"|WPDesktop)","i").test(e)?rO:/iPad/.test(e)?Ibe:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?Lbe:lB.test(e)?Wb:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(gQ,"i").test(e)?gQ:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(Ya).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?Xc:Rbe:Xc:new RegExp("(pda|"+Ya+")","i").test(e)?Q1t:new RegExp(cS,"i").test(e)&&!new RegExp(cS+" pc","i").test(e)?Xbe:""},sD="https?://(.*)",p_=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],awt=d_(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],p_),cB="<masked>";function Zbe(e,t,n){if(!bt)return{};var r=t?d_([],p_,n||[]):[];return Jbe(JL(bt.URL,r,cB),e)}function Jbe(e,t){var n=awt.concat(t||[]),r={};return dr(n,function(s){var i=R2(e,s);r[s]=i||null}),r}function Qbe(e){var t=function(i){return i?i.search(sD+"google.([^/?]*)")===0?"google":i.search(sD+"bing.com")===0?"bing":i.search(sD+"yahoo.com")===0?"yahoo":i.search(sD+"duckduckgo.com")===0?"duckduckgo":null:null}(e),n=t!="yahoo"?"q":"p",r={};if(!Sp(t)){r.$search_engine=t;var s=bt?R2(bt.referrer,n):"";s.length&&(r.ph_keyword=s)}return r}function vQ(){return navigator.language||navigator.userLanguage}function eve(){return(bt==null?void 0:bt.referrer)||"$direct"}function tve(e,t){var n=e?d_([],p_,t||[]):[],r=To==null?void 0:To.href.substring(0,1e3);return{r:eve().substring(0,1e3),u:r?JL(r,n,cB):void 0}}function nve(e){var t,{r:n,u:r}=e,s={$referrer:n,$referring_domain:n==null?void 0:n=="$direct"?"$direct":(t=Vb(n))==null?void 0:t.host};if(r){s.$current_url=r;var i=Vb(r);s.$host=i==null?void 0:i.host,s.$pathname=i==null?void 0:i.pathname;var o=Jbe(r);vs(s,o)}if(n){var a=Qbe(n);vs(s,a)}return s}function rve(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function lwt(){try{return new Date().getTimezoneOffset()}catch{return}}function cwt(e,t){if(!So)return{};var n,r,s,i=e?d_([],p_,t||[]):[],[o,a]=function(l){for(var c=0;c<yQ.length;c++){var[u,d]=yQ[c],p=u.exec(l),m=p&&(Wa(d)?d(p,l):d);if(m)return m}return["",""]}(So);return vs(KL({$os:o,$os_version:a,$browser:Kbe(So,navigator.vendor),$device:bQ(So),$device_type:(r=So,s=bQ(r),s===Ibe||s===Rbe||s==="Kobo"||s==="Kindle Fire"||s===Xbe?cS:s===dS||s===z0||s===hS||s===sO?"Console":s===Lbe?"Wearable":s?Ya:"Desktop"),$timezone:rve(),$timezone_offset:lwt()}),{$current_url:JL(To==null?void 0:To.href,i,cB),$host:To==null?void 0:To.host,$pathname:To==null?void 0:To.pathname,$raw_user_agent:So.length>1e3?So.substring(0,997)+"...":So,$browser_version:owt(So,navigator.vendor),$browser_language:vQ(),$browser_language_prefix:(n=vQ(),typeof n=="string"?n.split("-")[0]:void 0),$screen_height:Te==null?void 0:Te.screen.height,$screen_width:Te==null?void 0:Te.screen.width,$viewport_height:Te==null?void 0:Te.innerHeight,$viewport_width:Te==null?void 0:Te.innerWidth,$lib:"web",$lib_version:ad.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}var _c=fi("[FeatureFlags]"),X9="$active_feature_flags",qy="$override_feature_flags",xQ="$feature_flag_payloads",d1="$override_feature_flag_payloads",wQ="$feature_flag_request_id",SQ=e=>{var t={};for(var[n,r]of UD(e||{}))r&&(t[n]=r);return t},uwt=e=>{var t=e.flags;return t?(e.featureFlags=Object.fromEntries(Object.keys(t).map(n=>{var r;return[n,(r=t[n].variant)!==null&&r!==void 0?r:t[n].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(t).filter(n=>t[n].enabled).filter(n=>{var r;return(r=t[n].metadata)==null?void 0:r.payload}).map(n=>{var r;return[n,(r=t[n].metadata)==null?void 0:r.payload]}))):_c.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e},dwt=function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e}({});class hwt{constructor(t){this.le=!1,this.ue=!1,this.he=!1,this.de=!1,this.ve=!1,this.ce=!1,this.fe=!1,this._instance=t,this.featureFlagEventHandlers=[]}decide(){if(this._instance.config.__preview_remote_config)this.ce=!0;else{var t=!this.pe&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this._e({disableFlags:t})}}get hasLoadedFlags(){return this.ue}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this._instance.get_property(HF),n=this._instance.get_property(qy),r=this._instance.get_property(d1);if(!r&&!n)return t||{};var s=vs({},t||{}),i=[...new Set([...Object.keys(r||{}),...Object.keys(n||{})])];for(var o of i){var a,l,c=s[o],u=n==null?void 0:n[o],d=at(u)?(a=c==null?void 0:c.enabled)!==null&&a!==void 0&&a:!!u,p=at(u)?c.variant:typeof u=="string"?u:void 0,m=r==null?void 0:r[o],b=ut({},c,{enabled:d,variant:d?p??(c==null?void 0:c.variant):void 0});d!==(c==null?void 0:c.enabled)&&(b.original_enabled=c==null?void 0:c.enabled),p!==(c==null?void 0:c.variant)&&(b.original_variant=c==null?void 0:c.variant),m&&(b.metadata=ut({},c==null?void 0:c.metadata,{payload:m,original_payload:c==null||(l=c.metadata)==null?void 0:l.payload})),s[o]=b}return this.le||(_c.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:r,finalDetails:s}),this.le=!0),s}getFlagVariants(){var t=this._instance.get_property(x0),n=this._instance.get_property(qy);if(!n)return t||{};for(var r=vs({},t),s=Object.keys(n),i=0;i<s.length;i++)r[s[i]]=n[s[i]];return this.le||(_c.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:n,finalFlags:r}),this.le=!0),r}getFlagPayloads(){var t=this._instance.get_property(xQ),n=this._instance.get_property(d1);if(!n)return t||{};for(var r=vs({},t||{}),s=Object.keys(n),i=0;i<s.length;i++)r[s[i]]=n[s[i]];return this.le||(_c.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:n,finalPayloads:r}),this.le=!0),r}reloadFeatureFlags(){this.de||this._instance.config.advanced_disable_feature_flags||this.pe||(this.pe=setTimeout(()=>{this._e()},5))}ge(){clearTimeout(this.pe),this.pe=void 0}ensureFlagsLoaded(){this.ue||this.he||this.pe||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.de=t}_e(t){var n;if(this.ge(),!this._instance.config.advanced_disable_decide)if(this.he)this.ve=!0;else{var r={token:this._instance.config.token,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:ut({},((n=this._instance.persistence)==null?void 0:n.get_initial_props())||{},this._instance.get_property(D1)||{}),group_properties:this._instance.get_property(hm)};(t!=null&&t.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(r.disable_flags=!0);var s=this._instance.config.__preview_flags_v2&&this._instance.config.__preview_remote_config,i=s?"/flags/?v=2":"/decide/?v=4",o=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",a=this._instance.requestRouter.endpointFor("api",i+o);s&&(r.timezone=rve()),this.he=!0,this._instance.me({method:"POST",url:a,data:r,compression:this._instance.config.disable_compression?void 0:fd.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:l=>{var c,u,d=!0;if(l.statusCode===200&&(this.ve||(this.$anon_distinct_id=void 0),d=!1),this.he=!1,this.ce||(this.ce=!0,this._instance.be((u=l.json)!==null&&u!==void 0?u:{})),!r.disable_flags||this.ve)if(this.fe=!d,l.json&&(c=l.json.quotaLimited)!=null&&c.includes(dwt.FeatureFlags))_c.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");else{var p;r.disable_flags||this.receivedFeatureFlags((p=l.json)!==null&&p!==void 0?p:{},d),this.ve&&(this.ve=!1,this._e())}}})}}getFeatureFlag(t,n){if(n===void 0&&(n={}),this.ue||this.getFlags()&&this.getFlags().length>0){var r=this.getFlagVariants()[t],s=""+r,i=this._instance.get_property(wQ)||void 0,o=this._instance.get_property(P2)||{};if((n.send_event||!("send_event"in n))&&(!(t in o)||!o[t].includes(s))){var a,l,c,u,d,p,m,b,x;Mr(o[t])?o[t].push(s):o[t]=[s],(a=this._instance.persistence)==null||a.register({[P2]:o});var C=this.getFeatureFlagDetails(t),S={$feature_flag:t,$feature_flag_response:r,$feature_flag_payload:this.getFeatureFlagPayload(t)||null,$feature_flag_request_id:i,$feature_flag_bootstrapped_response:((l=this._instance.config.bootstrap)==null||(l=l.featureFlags)==null?void 0:l[t])||null,$feature_flag_bootstrapped_payload:((c=this._instance.config.bootstrap)==null||(c=c.featureFlagPayloads)==null?void 0:c[t])||null,$used_bootstrap_value:!this.fe};at(C==null||(u=C.metadata)==null?void 0:u.version)||(S.$feature_flag_version=C.metadata.version);var A,T=(d=C==null||(p=C.reason)==null?void 0:p.description)!==null&&d!==void 0?d:C==null||(m=C.reason)==null?void 0:m.code;T&&(S.$feature_flag_reason=T),C!=null&&(b=C.metadata)!=null&&b.id&&(S.$feature_flag_id=C.metadata.id),at(C==null?void 0:C.original_variant)&&at(C==null?void 0:C.original_enabled)||(S.$feature_flag_original_response=at(C.original_variant)?C.original_enabled:C.original_variant),C!=null&&(x=C.metadata)!=null&&x.original_payload&&(S.$feature_flag_original_payload=C==null||(A=C.metadata)==null?void 0:A.original_payload),this._instance.capture("$feature_flag_called",S)}return r}_c.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){return this.getFlagPayloads()[t]}getRemoteConfigPayload(t,n){var r=this._instance.config.token;this._instance.me({method:"POST",url:this._instance.requestRouter.endpointFor("api","/decide/?v=4"),data:{distinct_id:this._instance.get_distinct_id(),token:r},compression:this._instance.config.disable_compression?void 0:fd.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:s=>{var i,o=(i=s.json)==null?void 0:i.featureFlagPayloads;n((o==null?void 0:o[t])||void 0)}})}isFeatureEnabled(t,n){if(n===void 0&&(n={}),this.ue||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);_c.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(n=>n!==t)}receivedFeatureFlags(t,n){if(this._instance.persistence){this.ue=!0;var r=this.getFlagVariants(),s=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(o,a,l,c,u){l===void 0&&(l={}),c===void 0&&(c={}),u===void 0&&(u={});var d=uwt(o),p=d.flags,m=d.featureFlags,b=d.featureFlagPayloads;if(m){var x=o.requestId;if(Mr(m)){_c.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var C={};if(m)for(var S=0;S<m.length;S++)C[m[S]]=!0;a&&a.register({[X9]:m,[x0]:C})}else{var A=m,T=b,N=p;o.errorsWhileComputingFlags&&(A=ut({},l,A),T=ut({},c,T),N=ut({},u,N)),a&&a.register(ut({[X9]:Object.keys(SQ(A)),[x0]:A||{},[xQ]:T||{},[HF]:N||{}},x?{[wQ]:x}:{}))}}})(t,this._instance.persistence,r,s,i),this.ye(n)}}override(t,n){n===void 0&&(n=!1),_c.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:n})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this._instance.persistence)return _c.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this._instance.persistence.unregister(qy),this._instance.persistence.unregister(d1),void this.ye();if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var n,r=t;if(this.le=!!((n=r.suppressWarning)!==null&&n!==void 0&&n),"flags"in r){if(r.flags===!1)this._instance.persistence.unregister(qy);else if(r.flags)if(Mr(r.flags)){for(var s={},i=0;i<r.flags.length;i++)s[r.flags[i]]=!0;this._instance.persistence.register({[qy]:s})}else this._instance.persistence.register({[qy]:r.flags})}return"payloads"in r&&(r.payloads===!1?this._instance.persistence.unregister(d1):r.payloads&&this._instance.persistence.register({[d1]:r.payloads})),void this.ye()}this.ye()}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.ue){var{flags:n,flagVariants:r}=this.we();t(n,r)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,n){var r,s=(this._instance.get_property(qD)||[]).find(l=>l.flagKey===t),i={["$feature_enrollment/"+t]:n},o={$feature_flag:t,$feature_enrollment:n,$set:i};s&&(o.$early_access_feature_name=s.name),this._instance.capture("$feature_enrollment_update",o),this.setPersonPropertiesForFlags(i,!1);var a=ut({},this.getFlagVariants(),{[t]:n});(r=this._instance.persistence)==null||r.register({[X9]:Object.keys(SQ(a)),[x0]:a}),this.ye()}getEarlyAccessFeatures(t,n,r){n===void 0&&(n=!1);var s=this._instance.get_property(qD),i=r?"&"+r.map(o=>"stage="+o).join("&"):"";if(s&&!n)return t(s);this._instance.me({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+i),method:"GET",callback:o=>{var a;if(o.json){var l=o.json.earlyAccessFeatures;return(a=this._instance.persistence)==null||a.register({[qD]:l}),t(l)}}})}we(){var t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(r=>n[r]),flagVariants:Object.keys(n).filter(r=>n[r]).reduce((r,s)=>(r[s]=n[s],r),{})}}ye(t){var{flags:n,flagVariants:r}=this.we();this.featureFlagEventHandlers.forEach(s=>s(n,r,{errorsLoading:t}))}setPersonPropertiesForFlags(t,n){n===void 0&&(n=!0);var r=this._instance.get_property(D1)||{};this._instance.register({[D1]:ut({},r,t)}),n&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(D1)}setGroupPropertiesForFlags(t,n){n===void 0&&(n=!0);var r=this._instance.get_property(hm)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(s=>{r[s]=ut({},r[s],t[s]),delete t[s]}),this._instance.register({[hm]:ut({},r,t)}),n&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var n=this._instance.get_property(hm)||{};this._instance.register({[hm]:ut({},n,{[t]:{}})})}else this._instance.unregister(hm)}}var fwt=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class K9{constructor(t){this.S=t,this.props={},this.Se=!1,this.$e=(n=>{var r="";return n.token&&(r=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+r+"_posthog"})(t),this.q=this.ke(t),this.load(),t.debug&&Tt.info("Persistence loaded",t.persistence,ut({},this.props)),this.update_config(t,t),this.save()}ke(t){fwt.indexOf(t.persistence.toLowerCase())===-1&&(Tt.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var n=t.persistence.toLowerCase();return n==="localstorage"&&Fs.O()?Fs:n==="localstorage+cookie"&&ZE.O()?ZE:n==="sessionstorage"&&si.O()?si:n==="memory"?Wxt:n==="cookie"?wd:ZE.O()?ZE:wd}properties(){var t={};return dr(this.props,function(n,r){if(r===x0&&Zr(n))for(var s=Object.keys(n),i=0;i<s.length;i++)t["$feature/"+s[i]]=n[s[i]];else a=r,l=!1,(Sp(o=Dxt)?l:TJ&&o.indexOf===TJ?o.indexOf(a)!=-1:(dr(o,function(c){if(l||(l=c===a))return _2}),l))||(t[r]=n);var o,a,l}),t}load(){if(!this.xe){var t=this.q.D(this.$e);t&&(this.props=vs({},t))}}save(){this.xe||this.q.L(this.$e,this.props,this.Ee,this.Ie,this.Pe,this.S.debug)}remove(){this.q.N(this.$e,!1),this.q.N(this.$e,!0)}clear(){this.remove(),this.props={}}register_once(t,n,r){if(Zr(t)){at(n)&&(n="None"),this.Ee=at(r)?this.Re:r;var s=!1;if(dr(t,(i,o)=>{this.props.hasOwnProperty(o)&&this.props[o]!==n||(this.props[o]=i,s=!0)}),s)return this.save(),!0}return!1}register(t,n){if(Zr(t)){this.Ee=at(n)?this.Re:n;var r=!1;if(dr(t,(s,i)=>{t.hasOwnProperty(i)&&this.props[i]!==s&&(this.props[i]=s,r=!0)}),r)return this.save(),!0}return!1}unregister(t){t in this.props&&(delete this.props[t],this.save())}update_campaign_params(){if(!this.Se){var t=Zbe(this.S.custom_campaign_params,this.S.mask_personal_data_properties,this.S.custom_personal_data_properties);v0(KL(t))||this.register(t),this.Se=!0}}update_search_keyword(){var t;this.register((t=bt==null?void 0:bt.referrer)?Qbe(t):{})}update_referrer_info(){var t;this.register_once({$referrer:eve(),$referring_domain:bt!=null&&bt.referrer&&((t=Vb(bt.referrer))==null?void 0:t.host)||"$direct"},void 0)}set_initial_person_info(){this.props[WF]||this.props[GF]||this.register_once({[M2]:tve(this.S.mask_personal_data_properties,this.S.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};dr([GF,WF],o=>{var a=this.props[o];a&&dr(a,function(l,c){t["$initial_"+RF(c)]=l})});var n,r,s=this.props[M2];if(s){var i=(n=nve(s),r={},dr(n,function(o,a){r["$initial_"+RF(a)]=o}),r);vs(t,i)}return t}safe_merge(t){return dr(this.props,function(n,r){r in t||(t[r]=n)}),t}update_config(t,n){if(this.Re=this.Ee=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==n.persistence){var r=this.ke(t),s=this.props;this.clear(),this.q=r,this.props=s,this.save()}}set_disabled(t){this.xe=t,this.xe?this.remove():this.save()}set_cross_subdomain(t){t!==this.Ie&&(this.Ie=t,this.remove(),this.save())}set_secure(t){t!==this.Pe&&(this.Pe=t,this.remove(),this.save())}set_event_timer(t,n){var r=this.props[k1]||{};r[t]=n,this.props[k1]=r,this.save()}remove_event_timer(t){var n=(this.props[k1]||{})[t];return at(n)||(delete this.props[k1][t],this.save()),n}get_property(t){return this.props[t]}set_property(t,n){this.props[t]=n,this.save()}}class sve{constructor(){this.Te={},this.Te={}}on(t,n){return this.Te[t]||(this.Te[t]=[]),this.Te[t].push(n),()=>{this.Te[t]=this.Te[t].filter(r=>r!==n)}}emit(t,n){for(var r of this.Te[t]||[])r(n);for(var s of this.Te["*"]||[])s(t,n)}}class gm{constructor(t){this.Me=new sve,this.Ce=(n,r)=>this.Oe(n,r)&&this.Fe(n,r)&&this.Ae(n,r),this.Oe=(n,r)=>r==null||!r.event||(n==null?void 0:n.event)===(r==null?void 0:r.event),this._instance=t,this.De=new Set,this.Le=new Set}init(){var t;if(!at((t=this._instance)==null?void 0:t.Ne)){var n;(n=this._instance)==null||n.Ne((r,s)=>{this.on(r,s)})}}register(t){var n,r;if(!at((n=this._instance)==null?void 0:n.Ne)&&(t.forEach(o=>{var a,l;(a=this.Le)==null||a.add(o),(l=o.steps)==null||l.forEach(c=>{var u;(u=this.De)==null||u.add((c==null?void 0:c.event)||"")})}),(r=this._instance)!=null&&r.autocapture)){var s,i=new Set;t.forEach(o=>{var a;(a=o.steps)==null||a.forEach(l=>{l!=null&&l.selector&&i.add(l==null?void 0:l.selector)})}),(s=this._instance)==null||s.autocapture.setElementSelectors(i)}}on(t,n){var r;n!=null&&t.length!=0&&(this.De.has(t)||this.De.has(n==null?void 0:n.event))&&this.Le&&((r=this.Le)==null?void 0:r.size)>0&&this.Le.forEach(s=>{this.je(n,s)&&this.Me.emit("actionCaptured",s.name)})}ze(t){this.onAction("actionCaptured",n=>t(n))}je(t,n){if((n==null?void 0:n.steps)==null)return!1;for(var r of n.steps)if(this.Ce(t,r))return!0;return!1}onAction(t,n){return this.Me.on(t,n)}Fe(t,n){if(n!=null&&n.url){var r,s=t==null||(r=t.properties)==null?void 0:r.$current_url;if(!s||typeof s!="string"||!gm.Ue(s,n==null?void 0:n.url,(n==null?void 0:n.url_matching)||"contains"))return!1}return!0}static Ue(t,n,r){switch(r){case"regex":return!!Te&&qb(t,n);case"exact":return n===t;case"contains":var s=gm.qe(n).replace(/_/g,".").replace(/%/g,".*");return qb(t,s);default:return!1}}static qe(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}Ae(t,n){if((n!=null&&n.href||n!=null&&n.tag_name||n!=null&&n.text)&&!this.Be(t).some(i=>!(n!=null&&n.href&&!gm.Ue(i.href||"",n==null?void 0:n.href,(n==null?void 0:n.href_matching)||"exact"))&&(n==null||!n.tag_name||i.tag_name===(n==null?void 0:n.tag_name))&&!(n!=null&&n.text&&!gm.Ue(i.text||"",n==null?void 0:n.text,(n==null?void 0:n.text_matching)||"exact")&&!gm.Ue(i.$el_text||"",n==null?void 0:n.text,(n==null?void 0:n.text_matching)||"exact"))))return!1;if(n!=null&&n.selector){var r,s=t==null||(r=t.properties)==null?void 0:r.$element_selectors;if(!s||!s.includes(n==null?void 0:n.selector))return!1}return!0}Be(t){return(t==null?void 0:t.properties.$elements)==null?[]:t==null?void 0:t.properties.$elements}}var Ns=fi("[Surveys]"),oO="seenSurvey_",pwt=(e,t)=>{var n="$survey_"+t+"/"+e.id;return e.current_iteration&&e.current_iteration>0&&(n="$survey_"+t+"/"+e.id+"/"+e.current_iteration),n};class mwt{constructor(t){this._instance=t,this.He=new Map,this.We=new Map}register(t){var n;at((n=this._instance)==null?void 0:n.Ne)||(this.Ge(t),this.Je(t))}Je(t){var n=t.filter(r=>{var s,i;return((s=r.conditions)==null?void 0:s.actions)&&((i=r.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0});n.length!==0&&(this.Ve==null&&(this.Ve=new gm(this._instance),this.Ve.init(),this.Ve.ze(r=>{this.onAction(r)})),n.forEach(r=>{var s,i,o,a,l;r.conditions&&(s=r.conditions)!=null&&s.actions&&(i=r.conditions)!=null&&(i=i.actions)!=null&&i.values&&((o=r.conditions)==null||(o=o.actions)==null||(o=o.values)==null?void 0:o.length)>0&&((a=this.Ve)==null||a.register(r.conditions.actions.values),(l=r.conditions)==null||(l=l.actions)==null||(l=l.values)==null||l.forEach(c=>{if(c&&c.name){var u=this.We.get(c.name);u&&u.push(r.id),this.We.set(c.name,u||[r.id])}}))}))}Ge(t){var n;t.filter(r=>{var s,i;return((s=r.conditions)==null?void 0:s.events)&&((i=r.conditions)==null||(i=i.events)==null||(i=i.values)==null?void 0:i.length)>0}).length!==0&&((n=this._instance)==null||n.Ne((r,s)=>{this.onEvent(r,s)}),t.forEach(r=>{var s;(s=r.conditions)==null||(s=s.events)==null||(s=s.values)==null||s.forEach(i=>{if(i&&i.name){var o=this.He.get(i.name);o&&o.push(r.id),this.He.set(i.name,o||[r.id])}})}))}onEvent(t,n){var r,s=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[KE])||[];if(t==="survey shown"&&n&&s.length>0){var i;Ns.info("survey event matched, removing survey from activated surveys",{event:t,eventPayload:n,existingActivatedSurveys:s});var o=n==null||(i=n.properties)==null?void 0:i.$survey_id;if(o){var a=s.indexOf(o);a>=0&&(s.splice(a,1),this.Ke(s))}}else this.He.has(t)&&(Ns.info("survey event matched, updating activated surveys",{event:t,surveys:this.He.get(t)}),this.Ke(s.concat(this.He.get(t)||[])))}onAction(t){var n,r=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[KE])||[];this.We.has(t)&&this.Ke(r.concat(this.We.get(t)||[]))}Ke(t){var n;(n=this._instance)==null||(n=n.persistence)==null||n.register({[KE]:[...new Set(t)]})}getSurveys(){var t,n=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[KE];return n||[]}getEventToSurveys(){return this.He}Ye(){return this.Ve}}class gwt{constructor(t){this.Xe=null,this.Qe=!1,this.Ze=!1,this.tr=[],this._instance=t,this._surveyEventReceiver=null}onRemoteConfig(t){var n=t.surveys;if(zn(n))return Ns.warn("Decide not loaded yet. Not loading surveys.");var r=Mr(n);this.ir=r?n.length>0:n,Ns.info("decide response received, hasSurveys: "+this.ir),this.ir&&this.loadIfEnabled()}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);(r!=null&&r.startsWith(oO)||r!=null&&r.startsWith("inProgressSurvey_"))&&t.push(r)}t.forEach(s=>localStorage.removeItem(s))}loadIfEnabled(){if(!this.Xe)if(this.Ze)Ns.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)Ns.info("Disabled. Not loading surveys.");else if(this.ir){var t=sn==null?void 0:sn.__PosthogExtensions__;if(t){this.Ze=!0;try{var n=t.generateSurveys;if(n)return void this.er(n);var r=t.loadExternalDependency;if(!r)return void this.rr("PostHog loadExternalDependency extension not found.");r(this._instance,"surveys",s=>{s||!t.generateSurveys?this.rr("Could not load surveys script",s):this.er(t.generateSurveys)})}catch(s){throw this.rr("Error initializing surveys",s),s}finally{this.Ze=!1}}else Ns.error("PostHog Extensions not found.")}else Ns.info("No surveys to load.")}er(t){this.Xe=t(this._instance),this._surveyEventReceiver=new mwt(this._instance),Ns.info("Surveys loaded successfully"),this.sr({isLoaded:!0})}rr(t,n){Ns.error(t,n),this.sr({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.tr.push(t),this.Xe&&this.sr({isLoaded:!0}),()=>{this.tr=this.tr.filter(n=>n!==t)}}getSurveys(t,n){if(n===void 0&&(n=!1),this._instance.config.disable_surveys)return Ns.info("Disabled. Not loading surveys."),t([]);var r=this._instance.get_property(VF);if(r&&!n)return t(r,{isLoaded:!0});if(this.Qe)return t([],{isLoaded:!1,error:"Surveys are already being loaded"});try{this.Qe=!0,this._instance.me({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:s=>{var i;this.Qe=!1;var o=s.statusCode;if(o!==200||!s.json){var a="Surveys API could not be loaded, status: "+o;return Ns.error(a),t([],{isLoaded:!1,error:a})}var l,c=s.json.surveys||[],u=c.filter(d=>function(p){return!(!p.start_date||p.end_date)}(d)&&(function(p){var m;return!((m=p.conditions)==null||(m=m.events)==null||(m=m.values)==null||!m.length)}(d)||function(p){var m;return!((m=p.conditions)==null||(m=m.actions)==null||(m=m.values)==null||!m.length)}(d)));return u.length>0&&((l=this._surveyEventReceiver)==null||l.register(u)),(i=this._instance.persistence)==null||i.register({[VF]:c}),t(c,{isLoaded:!0})}})}catch(s){throw this.Qe=!1,s}}sr(t){for(var n of this.tr)try{t.isLoaded?this.getSurveys(n):n([],t)}catch(r){Ns.error("Error in survey callback",r)}}getActiveMatchingSurveys(t,n){if(n===void 0&&(n=!1),!zn(this.Xe))return this.Xe.getActiveMatchingSurveys(t,n);Ns.warn("init was not called")}nr(t){var n=null;return this.getSurveys(r=>{var s;n=(s=r.find(i=>i.id===t))!==null&&s!==void 0?s:null}),n}ar(t){if(zn(this.Xe))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var n=typeof t=="string"?this.nr(t):t;return n?this.Xe.checkSurveyEligibility(n):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(zn(this.Xe))return Ns.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var n=this.ar(t);return{visible:n.eligible,disabledReason:n.reason}}canRenderSurveyAsync(t,n){return zn(this.Xe)?(Ns.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise(r=>{this.getSurveys(s=>{var i,o=(i=s.find(l=>l.id===t))!==null&&i!==void 0?i:null;if(o){var a=this.ar(o);r({visible:a.eligible,disabledReason:a.reason})}else r({visible:!1,disabledReason:"Survey not found"})},n)})}renderSurvey(t,n){if(zn(this.Xe))Ns.warn("init was not called");else{var r=this.nr(t),s=bt==null?void 0:bt.querySelector(n);r?s?this.Xe.renderSurvey(r,s):Ns.warn("Survey element not found"):Ns.warn("Survey not found")}}}(function(e){return e.Button="button",e.Tab="tab",e.Selector="selector",e})({});(function(e){return e.TopLeft="top_left",e.TopRight="top_right",e.TopCenter="top_center",e.MiddleLeft="middle_left",e.MiddleRight="middle_right",e.MiddleCenter="middle_center",e.Left="left",e.Center="center",e.Right="right",e.NextToTrigger="next_to_trigger",e})({});(function(e){return e.Popover="popover",e.API="api",e.Widget="widget",e})({});(function(e){return e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link",e})({});(function(e){return e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question",e})({});(function(e){return e.Once="once",e.Recurring="recurring",e.Always="always",e})({});var Z9=function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e}({}),CQ=function(e){return e.SURVEY_ID="$survey_id",e.SURVEY_NAME="$survey_name",e.SURVEY_RESPONSE="$survey_response",e.SURVEY_ITERATION="$survey_iteration",e.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",e.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",e.SURVEY_SUBMISSION_ID="$survey_submission_id",e.SURVEY_QUESTIONS="$survey_questions",e.SURVEY_COMPLETED="$survey_completed",e}({}),kQ=fi("[RateLimiter]");class ywt{constructor(t){var n,r;this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=s=>{var i=s.text;if(i&&i.length)try{(JSON.parse(i).quota_limited||[]).forEach(o=>{kQ.info((o||"events")+" is quota limited."),this.serverLimits[o]=new Date().getTime()+6e4})}catch(o){return void kQ.warn('could not rate limit - continuing. Error: "'+(o==null?void 0:o.message)+'"',{text:i})}},this.instance=t,this.captureEventsPerSecond=((n=t.config.rate_limiting)==null?void 0:n.events_per_second)||10,this.captureEventsBurstLimit=Math.max(((r=t.config.rate_limiting)==null?void 0:r.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(t){var n,r,s;t===void 0&&(t=!1);var i=new Date().getTime(),o=(n=(r=this.instance.persistence)==null?void 0:r.get_property(qF))!==null&&n!==void 0?n:{tokens:this.captureEventsBurstLimit,last:i};o.tokens+=(i-o.last)/1e3*this.captureEventsPerSecond,o.last=i,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);var a=o.tokens<1;return a||t||(o.tokens=Math.max(0,o.tokens-1)),!a||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+this.captureEventsPerSecond+" events per second and "+this.captureEventsBurstLimit+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=a,(s=this.instance.persistence)==null||s.set_property(qF,o),{isRateLimited:a,remainingTokens:o.tokens}}isServerRateLimited(t){var n=this.serverLimits[t||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var im=fi("[RemoteConfig]");class bwt{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=sn._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}lr(t){var n,r;(n=sn.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=sn.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",()=>t(this.remoteConfig)):(im.error("PostHog Extensions not found. Cannot load remote config."),t())}ur(t){this._instance.me({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:n=>{t(n.json)}})}load(){try{if(this.remoteConfig)return im.info("Using preloaded remote config",this.remoteConfig),void this.be(this.remoteConfig);if(this._instance.config.advanced_disable_decide)return void im.warn("Remote config is disabled. Falling back to local config.");this.lr(t=>{if(!t)return im.info("No config found after loading remote JS config. Falling back to JSON."),void this.ur(n=>{this.be(n)});this.be(t)})}catch(t){im.error("Error loading remote config",t)}}be(t){t?this._instance.config.__preview_remote_config?(this._instance.be(t),t.hasFeatureFlags!==!1&&this._instance.featureFlags.ensureFlagsLoaded()):im.info("__preview_remote_config is disabled. Logging config instead",t):im.error("Failed to fetch remote config from PostHog.")}}var aO=3e3;class vwt{constructor(t,n){this.hr=!0,this.dr=[],this.vr=Ha((n==null?void 0:n.flush_interval_ms)||aO,250,5e3,"flush interval",aO),this.cr=t}enqueue(t){this.dr.push(t),this.pr||this._r()}unload(){this.gr();var t=this.dr.length>0?this.mr():{},n=Object.values(t);[...n.filter(r=>r.url.indexOf("/e")===0),...n.filter(r=>r.url.indexOf("/e")!==0)].map(r=>{this.cr(ut({},r,{transport:"sendBeacon"}))})}enable(){this.hr=!1,this._r()}_r(){var t=this;this.hr||(this.pr=setTimeout(()=>{if(this.gr(),this.dr.length>0){var n=this.mr(),r=function(){var i=n[s],o=new Date().getTime();i.data&&Mr(i.data)&&dr(i.data,a=>{a.offset=Math.abs(a.timestamp-o),delete a.timestamp}),t.cr(i)};for(var s in n)r()}},this.vr))}gr(){clearTimeout(this.pr),this.pr=void 0}mr(){var t={};return dr(this.dr,n=>{var r,s=n,i=(s?s.batchKey:null)||s.url;at(t[i])&&(t[i]=ut({},s,{data:[]})),(r=t[i].data)==null||r.push(s.data)}),this.dr=[],t}}var xwt=["retriesPerformedSoFar"];class wwt{constructor(t){this.br=!1,this.yr=3e3,this.dr=[],this._instance=t,this.dr=[],this.wr=!0,!at(Te)&&"onLine"in Te.navigator&&(this.wr=Te.navigator.onLine,Hr(Te,"online",()=>{this.wr=!0,this.Yi()}),Hr(Te,"offline",()=>{this.wr=!1}))}get length(){return this.dr.length}retriableRequest(t){var{retriesPerformedSoFar:n}=t,r=nbe(t,xwt);Ci(n)&&n>0&&(r.url=z2(r.url,{retry_count:n})),this._instance.me(ut({},r,{callback:s=>{s.statusCode!==200&&(s.statusCode<400||s.statusCode>=500)&&(n??0)<10?this.Sr(ut({retriesPerformedSoFar:n},r)):r.callback==null||r.callback(s)}}))}Sr(t){var n=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=n+1;var r=function(o){var a=3e3*Math.pow(2,o),l=a/2,c=Math.min(18e5,a),u=(Math.random()-.5)*(c-l);return Math.ceil(c+u)}(n),s=Date.now()+r;this.dr.push({retryAt:s,requestOptions:t});var i="Enqueued failed request for retry in "+r;navigator.onLine||(i+=" (Browser is offline)"),Tt.warn(i),this.br||(this.br=!0,this.$r())}$r(){this.kr&&clearTimeout(this.kr),this.kr=setTimeout(()=>{this.wr&&this.dr.length>0&&this.Yi(),this.$r()},this.yr)}Yi(){var t=Date.now(),n=[],r=this.dr.filter(i=>i.retryAt<t||(n.push(i),!1));if(this.dr=n,r.length>0)for(var{requestOptions:s}of r)this.retriableRequest(s)}unload(){for(var{requestOptions:t}of(this.kr&&(clearTimeout(this.kr),this.kr=void 0),this.dr))try{this._instance.me(ut({},t,{transport:"sendBeacon"}))}catch(n){Tt.error(n)}this.dr=[]}}class Swt{constructor(t){this.Er=()=>{var n,r,s,i;this.Ir||(this.Ir={});var o=this.scrollElement(),a=this.scrollY(),l=o?Math.max(0,o.scrollHeight-o.clientHeight):0,c=a+((o==null?void 0:o.clientHeight)||0),u=(o==null?void 0:o.scrollHeight)||0;this.Ir.lastScrollY=Math.ceil(a),this.Ir.maxScrollY=Math.max(a,(n=this.Ir.maxScrollY)!==null&&n!==void 0?n:0),this.Ir.maxScrollHeight=Math.max(l,(r=this.Ir.maxScrollHeight)!==null&&r!==void 0?r:0),this.Ir.lastContentY=c,this.Ir.maxContentY=Math.max(c,(s=this.Ir.maxContentY)!==null&&s!==void 0?s:0),this.Ir.maxContentHeight=Math.max(u,(i=this.Ir.maxContentHeight)!==null&&i!==void 0?i:0)},this._instance=t}getContext(){return this.Ir}resetContext(){var t=this.Ir;return setTimeout(this.Er,0),t}startMeasuringScrollPosition(){Hr(Te,"scroll",this.Er,{capture:!0}),Hr(Te,"scrollend",this.Er,{capture:!0}),Hr(Te,"resize",this.Er)}scrollElement(){if(!this._instance.config.scroll_root_selector)return Te==null?void 0:Te.document.documentElement;var t=Mr(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var n of t){var r=Te==null?void 0:Te.document.querySelector(n);if(r)return r}}scrollY(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollTop||0}return Te&&(Te.scrollY||Te.pageYOffset||Te.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollLeft||0}return Te&&(Te.scrollX||Te.pageXOffset||Te.document.documentElement.scrollLeft)||0}}var Cwt=e=>tve(e==null?void 0:e.config.mask_personal_data_properties,e==null?void 0:e.config.custom_personal_data_properties);class kwt{constructor(t,n,r,s){this.Pr=i=>{var o=this.Rr();if(!o||o.sessionId!==i){var a={sessionId:i,props:this.Tr(this._instance)};this.Mr.register({[UF]:a})}},this._instance=t,this.Cr=n,this.Mr=r,this.Tr=s||Cwt,this.Cr.onSessionId(this.Pr)}Rr(){return this.Mr.props[UF]}getSetOnceProps(){var t,n=(t=this.Rr())==null?void 0:t.props;return n?"r"in n?nve(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var t={};return dr(KL(this.getSetOnceProps()),(n,r)=>{r==="$current_url"&&(r="url"),t["$session_entry_"+RF(r)]=n}),t}}var EQ=fi("[SessionId]");class Ewt{constructor(t,n,r){var s;if(this.Or=[],!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.__preview_experimental_cookieless_mode)throw new Error("SessionIdManager cannot be used with __preview_experimental_cookieless_mode");this.S=t.config,this.Mr=t.persistence,this.oi=void 0,this.kt=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Fr=n||Tf,this.Ar=r||Tf;var i=this.S.persistence_name||this.S.token,o=this.S.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*Ha(o,60,36e3,"session_idle_timeout_seconds",1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Dr(),this.Lr="ph_"+i+"_window_id",this.Nr="ph_"+i+"_primary_window_exists",this.jr()){var a=si.D(this.Lr),l=si.D(this.Nr);a&&!l?this.oi=a:si.N(this.Lr),si.L(this.Nr,!0)}if((s=this.S.bootstrap)!=null&&s.sessionID)try{var c=(u=>{var d=u.replace(/-/g,"");if(d.length!==32)throw new Error("Not a valid UUID");if(d[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(d.substring(0,12),16)})(this.S.bootstrap.sessionID);this.zr(this.S.bootstrap.sessionID,new Date().getTime(),c)}catch(u){EQ.error("Invalid sessionID in bootstrap",u)}this.Ur()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return at(this.Or)&&(this.Or=[]),this.Or.push(t),this.kt&&t(this.kt,this.oi),()=>{this.Or=this.Or.filter(n=>n!==t)}}jr(){return this.S.persistence!=="memory"&&!this.Mr.xe&&si.O()}qr(t){t!==this.oi&&(this.oi=t,this.jr()&&si.L(this.Lr,t))}Br(){return this.oi?this.oi:this.jr()?si.D(this.Lr):null}zr(t,n,r){t===this.kt&&n===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this.kt=t,this.Mr.register({[N2]:[n,t,r]}))}Hr(){if(this.kt&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this.kt,this._sessionStartTimestamp];var t=this.Mr.props[N2];return Mr(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.zr(null,null,null)}Ur(){Hr(Te,"beforeunload",()=>{this.jr()&&si.N(this.Nr)},{capture:!1})}checkAndGetSessionAndWindowId(t,n){if(t===void 0&&(t=!1),n===void 0&&(n=null),this.S.__preview_experimental_cookieless_mode)throw new Error("checkAndGetSessionAndWindowId should not be called in __preview_experimental_cookieless_mode");var r=n||new Date().getTime(),[s,i,o]=this.Hr(),a=this.Br(),l=Ci(o)&&o>0&&Math.abs(r-o)>864e5,c=!1,u=!i,d=!t&&Math.abs(r-s)>this.sessionTimeoutMs;u||d||l?(i=this.Fr(),a=this.Ar(),EQ.info("new session ID generated",{sessionId:i,windowId:a,changeReason:{noSessionId:u,activityTimeout:d,sessionPastMaximumLength:l}}),o=r,c=!0):a||(a=this.Ar(),c=!0);var p=s===0||!t||l?r:s,m=o===0?new Date().getTime():o;return this.qr(a),this.zr(i,p,m),t||this.Dr(),c&&this.Or.forEach(b=>b(i,a,c?{noSessionId:u,activityTimeout:d,sessionPastMaximumLength:l}:void 0)),{sessionId:i,windowId:a,sessionStartTimestamp:m,changeReason:c?{noSessionId:u,activityTimeout:d,sessionPastMaximumLength:l}:void 0,lastActivityTimestamp:s}}Dr(){clearTimeout(this.Wr),this.Wr=setTimeout(()=>{this.resetSessionId()},1.1*this.sessionTimeoutMs)}}var Dwt=["$set_once","$set"],Zh=fi("[SiteApps]");class Awt{constructor(t){this._instance=t,this.Gr=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Jr(t,n){if(n){var r=this.globalsForEvent(n);this.Gr.push(r),this.Gr.length>1e3&&(this.Gr=this.Gr.slice(10))}}get siteAppLoaders(){var t;return(t=sn._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}init(){if(this.isEnabled){var t=this._instance.Ne(this.Jr.bind(this));this.Vr=()=>{t(),this.Gr=[],this.Vr=void 0}}}globalsForEvent(t){var n,r,s,i,o,a,l;if(!t)throw new Error("Event payload is required");var c={},u=this._instance.get_property("$groups")||[],d=this._instance.get_property("$stored_group_properties")||{};for(var[p,m]of Object.entries(d))c[p]={id:u[p],type:p,properties:m};var{$set_once:b,$set:x}=t;return{event:ut({},nbe(t,Dwt),{properties:ut({},t.properties,x?{$set:ut({},(n=(r=t.properties)==null?void 0:r.$set)!==null&&n!==void 0?n:{},x)}:{},b?{$set_once:ut({},(s=(i=t.properties)==null?void 0:i.$set_once)!==null&&s!==void 0?s:{},b)}:{}),elements_chain:(o=(a=t.properties)==null?void 0:a.$elements_chain)!==null&&o!==void 0?o:"",distinct_id:(l=t.properties)==null?void 0:l.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:c}}setupSiteApp(t){var n=this.apps[t.id],r=()=>{var a;!n.errored&&this.Gr.length&&(Zh.info("Processing "+this.Gr.length+" events for site app with id "+t.id),this.Gr.forEach(l=>n.processEvent==null?void 0:n.processEvent(l)),n.processedBuffer=!0),Object.values(this.apps).every(l=>l.processedBuffer||l.errored)&&((a=this.Vr)==null||a.call(this))},s=!1,i=a=>{n.errored=!a,n.loaded=!0,Zh.info("Site app with id "+t.id+" "+(a?"loaded":"errored")),s&&r()};try{var{processEvent:o}=t.init({posthog:this._instance,callback:a=>{i(a)}});o&&(n.processEvent=o),s=!0}catch(a){Zh.error("Error while initializing PostHog app with config id "+t.id,a),i(!1)}if(s&&n.loaded)try{r()}catch(a){Zh.error("Error while processing buffered events PostHog app with config id "+t.id,a),n.errored=!0}}Kr(){var t=this.siteAppLoaders||[];for(var n of t)this.apps[n.id]={id:n.id,loaded:!1,errored:!1,processedBuffer:!1};for(var r of t)this.setupSiteApp(r)}Yr(t){if(Object.keys(this.apps).length!==0){var n=this.globalsForEvent(t);for(var r of Object.values(this.apps))try{r.processEvent==null||r.processEvent(n)}catch(s){Zh.error("Error while processing event "+t.event+" for site app "+r.id,s)}}}onRemoteConfig(t){var n,r,s,i=this;if((n=this.siteAppLoaders)!=null&&n.length)return this.isEnabled?(this.Kr(),void this._instance.on("eventCaptured",c=>this.Yr(c))):void Zh.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((r=this.Vr)==null||r.call(this),(s=t.siteApps)!=null&&s.length)if(this.isEnabled){var o=function(c){var u;sn["__$$ph_site_app_"+c]=i._instance,(u=sn.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(i._instance,l,d=>{if(d)return Zh.error("Error while initializing PostHog app with config id "+c,d)})};for(var{id:a,url:l}of t.siteApps)o(a)}else Zh.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var Twt=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],DQ=function(e,t){if(!e)return!1;var n=e.toLowerCase();return Twt.concat(t||[]).some(r=>{var s=r.toLowerCase();return n.indexOf(s)!==-1})},ive=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&DQ(n,t))return!0;try{var r=e==null?void 0:e.userAgentData;if(r!=null&&r.brands&&r.brands.some(s=>DQ(s==null?void 0:s.brand,t)))return!0}catch{}return!!e.webdriver},N1=function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e}({}),AQ="i.posthog.com";class _wt{constructor(t){this.Xr={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get uiHost(){var t,n=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+AQ,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}get region(){return this.Xr[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Xr[this.apiHost]=N1.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Xr[this.apiHost]=N1.EU:this.Xr[this.apiHost]=N1.CUSTOM),this.Xr[this.apiHost]}endpointFor(t,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),t==="ui")return this.uiHost+n;if(this.region===N1.CUSTOM)return this.apiHost+n;var r=AQ+n;switch(t){case"assets":return"https://"+this.region+"-assets."+r;case"api":return"https://"+this.region+"."+r}}}var Nwt={icontains:(e,t)=>!!Te&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!Te&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!Te&&qb(t.href,e),not_regex:(e,t)=>!!Te&&!qb(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class xi{constructor(t){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments(s=>{xi.Qr("retrieved web experiments from the server"),n.Zr=new Map,s.forEach(i=>{if(i.feature_flag_key){var o;n.Zr&&(xi.Qr("setting flag key ",i.feature_flag_key," to web experiment ",i),(o=n.Zr)==null||o.set(i.feature_flag_key,i));var a=n._instance.getFeatureFlag(i.feature_flag_key);Qr(a)&&i.variants[a]&&n.ts(i.name,a,i.variants[a].transforms)}else if(i.variants)for(var l in i.variants){var c=i.variants[l];xi.es(c)&&n.ts(i.name,l,c.transforms)}})},r)},this._instance=t,this._instance.onFeatureFlags(r=>{this.onFeatureFlags(r)})}onFeatureFlags(t){if(this._is_bot())xi.Qr("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(zn(this.Zr))return this.Zr=new Map,this.loadIfEnabled(),void this.previewWebExperiment();xi.Qr("applying feature flags",t),t.forEach(n=>{var r;if(this.Zr&&(r=this.Zr)!=null&&r.has(n)){var s,i=this._instance.getFeatureFlag(n),o=(s=this.Zr)==null?void 0:s.get(n);i&&o!=null&&o.variants[i]&&this.ts(o.name,i,o.variants[i].transforms)}})}}previewWebExperiment(){var t=xi.getWindowLocation();if(t!=null&&t.search){var n=R2(t==null?void 0:t.search,"__experiment_id"),r=R2(t==null?void 0:t.search,"__experiment_variant");n&&r&&(xi.Qr("previewing web experiments "+n+" && "+r),this.getWebExperiments(s=>{this.rs(parseInt(n),r,s)},!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,n,r){if(this._instance.config.disable_web_experiments&&!r)return t([]);var s=this._instance.get_property("$web_experiments");if(s&&!n)return t(s);this._instance.me({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:i=>{if(i.statusCode!==200||!i.json)return t([]);var o=i.json.experiments||[];return t(o)}})}rs(t,n,r){var s=r.filter(i=>i.id===t);s&&s.length>0&&(xi.Qr("Previewing web experiment ["+s[0].name+"] with variant ["+n+"]"),this.ts(s[0].name,n,s[0].variants[n].transforms))}static es(t){return!zn(t.conditions)&&xi.ss(t)&&xi.ns(t)}static ss(t){var n;if(zn(t.conditions)||zn((n=t.conditions)==null?void 0:n.url))return!0;var r,s,i,o=xi.getWindowLocation();return!!o&&((r=t.conditions)==null||!r.url||Nwt[(s=(i=t.conditions)==null?void 0:i.urlMatchType)!==null&&s!==void 0?s:"icontains"](t.conditions.url,o))}static getWindowLocation(){return Te==null?void 0:Te.location}static ns(t){var n;if(zn(t.conditions)||zn((n=t.conditions)==null?void 0:n.utm))return!0;var r=Zbe();if(r.utm_source){var s,i,o,a,l,c,u,d,p=(s=t.conditions)==null||(s=s.utm)==null||!s.utm_campaign||((i=t.conditions)==null||(i=i.utm)==null?void 0:i.utm_campaign)==r.utm_campaign,m=(o=t.conditions)==null||(o=o.utm)==null||!o.utm_source||((a=t.conditions)==null||(a=a.utm)==null?void 0:a.utm_source)==r.utm_source,b=(l=t.conditions)==null||(l=l.utm)==null||!l.utm_medium||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_medium)==r.utm_medium,x=(u=t.conditions)==null||(u=u.utm)==null||!u.utm_term||((d=t.conditions)==null||(d=d.utm)==null?void 0:d.utm_term)==r.utm_term;return p&&b&&x&&m}return!1}static Qr(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];Tt.info("[WebExperiments] "+t,r)}ts(t,n,r){this._is_bot()?xi.Qr("Refusing to render web experiment since the viewer is a likely bot"):n!=="control"?r.forEach(s=>{if(s.selector){var i;xi.Qr("applying transform of variant "+n+" for experiment "+t+" ",s);var o=(i=document)==null?void 0:i.querySelectorAll(s.selector);o==null||o.forEach(a=>{var l=a;s.html&&(l.innerHTML=s.html),s.css&&l.setAttribute("style",s.css)})}}):xi.Qr("Control variants leave the page unmodified.")}_is_bot(){return xa&&this._instance?ive(xa,this._instance.config.custom_blocked_useragents):void 0}}var Q1={},lO=()=>{},e0="posthog",ove=!G1t&&(So==null?void 0:So.indexOf("MSIE"))===-1&&(So==null?void 0:So.indexOf("Mozilla"))===-1,TQ=e=>{var t;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:Ext(bt==null?void 0:bt.location),persistence:"localStorage+cookie",persistence_name:"",loaded:lO,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:e!=="2025-05-24"||"history_change",capture_pageleave:"if_capture_pageview",defaults:e??"unset",debug:To&&Qr(To==null?void 0:To.search)&&To.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(Te==null||(t=Te.location)==null?void 0:t.protocol)==="https:",ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:n=>{var r="Bad HTTP status: "+n.statusCode+" "+n.text;Tt.error(r)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:aO},_onCapture:lO}},_Q=e=>{var t={};at(e.process_person)||(t.person_profiles=e.process_person),at(e.xhr_headers)||(t.request_headers=e.xhr_headers),at(e.cookie_name)||(t.persistence_name=e.cookie_name),at(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),at(e.store_google)||(t.save_campaign_params=e.store_google),at(e.verbose)||(t.debug=e.verbose);var n=vs({},t,e);return Mr(e.property_blacklist)&&(at(e.property_denylist)?n.property_denylist=e.property_blacklist:Mr(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:Tt.error("Invalid value for property_denylist config: "+e.property_denylist)),n};class Pwt{constructor(){this.__forceAllowLocalhost=!1}get os(){return this.__forceAllowLocalhost}set os(t){Tt.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class m_{get decideEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){this.webPerformance=new Pwt,this.ls=!1,this.version=ad.LIB_VERSION,this.us=new sve,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=TQ(),this.SentryIntegration=j1t,this.sentryIntegration=t=>function(n,r){var s=Obe(n,r);return{name:Fbe,processEvent:i=>s(i)}}(this,t),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.hs=!1,this.ds=null,this.vs=null,this.cs=null,this.featureFlags=new hwt(this),this.toolbar=new B1t(this),this.scrollManager=new Swt(this),this.pageViewManager=new q1t(this),this.surveys=new gwt(this),this.experiments=new xi(this),this.exceptions=new K1t(this),this.rateLimiter=new ywt(this),this.requestRouter=new _wt(this),this.consent=new Gxt(this),this.people={set:(t,n,r)=>{var s=Qr(t)?{[t]:n}:t;this.setPersonProperties(s),r==null||r({})},set_once:(t,n,r)=>{var s=Qr(t)?{[t]:n}:t;this.setPersonProperties(void 0,s),r==null||r({})}},this.on("eventCaptured",t=>Tt.info('send "'+(t==null?void 0:t.event)+'"',t))}init(t,n,r){if(r&&r!==e0){var s,i=(s=Q1[r])!==null&&s!==void 0?s:new m_;return i._init(t,n,r),Q1[r]=i,Q1[e0][r]=i,i}return this._init(t,n,r)}_init(t,n,r){var s,i;if(n===void 0&&(n={}),at(t)||IF(t))return Tt.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return Tt.warn("You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},this.fs=[],n.person_profiles&&(this.vs=n.person_profiles),this.set_config(vs({},TQ(n.defaults),_Q(n),{name:r,token:t})),this.config.on_xhr_error&&Tt.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:fd.GZipJS,this.persistence=new K9(this.config),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new K9(ut({},this.config,{persistence:"sessionStorage"}));var o=ut({},this.persistence.props),a=ut({},this.sessionPersistence.props);if(this.ps=new vwt(S=>this._s(S),this.config.request_queue_config),this.gs=new wwt(this),this.__request_queue=[],this.config.__preview_experimental_cookieless_mode||(this.sessionManager=new Ewt(this),this.sessionPropsManager=new kwt(this,this.sessionManager,this.persistence)),new z1t(this).startIfEnabledOrStop(),this.siteApps=new Awt(this),(s=this.siteApps)==null||s.init(),this.config.__preview_experimental_cookieless_mode||(this.sessionRecording=new R1t(this),this.sessionRecording.startIfEnabledOrStop()),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new Bxt(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new U1t(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new H1t(this),this.exceptionObserver=new Kxt(this),this.exceptionObserver.startIfEnabled(),this.deadClicksAutocapture=new vbe(this,Xxt),this.deadClicksAutocapture.startIfEnabled(),this.historyAutocapture=new u1t(this),this.historyAutocapture.startIfEnabled(),ad.DEBUG=ad.DEBUG||this.config.debug,ad.DEBUG&&Tt.info("Starting in debug mode",{this:this,config:n,thisC:ut({},this.config),p:o,s:a}),this.bs(),((i=n.bootstrap)==null?void 0:i.distinctID)!==void 0){var l,c,u=this.config.get_device_id(Tf()),d=(l=n.bootstrap)!=null&&l.isIdentifiedID?u:n.bootstrap.distinctID;this.persistence.set_property(td,(c=n.bootstrap)!=null&&c.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:n.bootstrap.distinctID,$device_id:d})}if(this.ys()){var p,m,b=Object.keys(((p=n.bootstrap)==null?void 0:p.featureFlags)||{}).filter(S=>{var A;return!((A=n.bootstrap)==null||(A=A.featureFlags)==null||!A[S])}).reduce((S,A)=>{var T;return S[A]=((T=n.bootstrap)==null||(T=T.featureFlags)==null?void 0:T[A])||!1,S},{}),x=Object.keys(((m=n.bootstrap)==null?void 0:m.featureFlagPayloads)||{}).filter(S=>b[S]).reduce((S,A)=>{var T,N;return(T=n.bootstrap)!=null&&(T=T.featureFlagPayloads)!=null&&T[A]&&(S[A]=(N=n.bootstrap)==null||(N=N.featureFlagPayloads)==null?void 0:N[A]),S},{});this.featureFlags.receivedFeatureFlags({featureFlags:b,featureFlagPayloads:x})}if(this.config.__preview_experimental_cookieless_mode)this.register_once({distinct_id:VJ,$device_id:null},"");else if(!this.get_distinct_id()){var C=this.config.get_device_id(Tf());this.register_once({distinct_id:C,$device_id:C},""),this.persistence.set_property(td,"anonymous")}return Hr(Te,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),n.segment?I1t(this,()=>this.ws()):this.ws(),Wa(this.config._onCapture)&&this.config._onCapture!==lO&&(Tt.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",S=>this.config._onCapture(S.event,S))),this}be(t){var n,r,s,i,o,a,l,c;if(!bt||!bt.body)return Tt.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.be(t)},500);this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=gn(t.supportedCompression,fd.GZipJS)?fd.GZipJS:gn(t.supportedCompression,fd.Base64)?fd.Base64:void 0),(n=t.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.vs?this.vs:"identified_only"}),(r=this.siteApps)==null||r.onRemoteConfig(t),(s=this.sessionRecording)==null||s.onRemoteConfig(t),(i=this.autocapture)==null||i.onRemoteConfig(t),(o=this.heatmaps)==null||o.onRemoteConfig(t),this.surveys.onRemoteConfig(t),(a=this.webVitalsAutocapture)==null||a.onRemoteConfig(t),(l=this.exceptionObserver)==null||l.onRemoteConfig(t),this.exceptions.onRemoteConfig(t),(c=this.deadClicksAutocapture)==null||c.onRemoteConfig(t)}ws(){try{this.config.loaded(this)}catch(t){Tt.critical("`loaded` function failed",t)}this.Ss(),this.config.capture_pageview&&setTimeout(()=>{this.consent.isOptedIn()&&this.$s()},1),new bwt(this).load(),this.featureFlags.decide()}Ss(){var t;this.has_opted_out_capturing()||this.config.request_batching&&((t=this.ps)==null||t.enable())}_dom_loaded(){this.has_opted_out_capturing()||Of(this.__request_queue,t=>this._s(t)),this.__request_queue=[],this.Ss()}_handle_unload(){var t,n;this.config.request_batching?(this.ks()&&this.capture("$pageleave"),(t=this.ps)==null||t.unload(),(n=this.gs)==null||n.unload()):this.ks()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}me(t){this.__loaded&&(ove?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=z2(t.url,{ip:this.config.ip?1:0}),t.headers=ut({},this.config.request_headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.fetchOptions=t.fetchOptions||this.config.fetch_options,(n=>{var r,s,i,o=ut({},n);o.timeout=o.timeout||6e4,o.url=z2(o.url,{_:new Date().getTime().toString(),ver:ad.LIB_VERSION,compression:o.compression});var a=(r=o.transport)!==null&&r!==void 0?r:"fetch",l=(s=(i=rbe(J1,c=>c.transport===a))==null?void 0:i.method)!==null&&s!==void 0?s:J1[0].method;if(!l)throw new Error("No available transport method");l(o)})(ut({},t,{callback:n=>{var r,s;this.rateLimiter.checkForLimiting(n),n.statusCode>=400&&((r=(s=this.config).on_request_error)==null||r.call(s,n)),t.callback==null||t.callback(n)}}))))}_s(t){this.gs?this.gs.retriableRequest(t):this.me(t)}_execute_array(t){var n,r=[],s=[],i=[];Of(t,a=>{a&&(n=a[0],Mr(n)?i.push(a):Wa(a)?a.call(this):Mr(a)&&n==="alias"?r.push(a):Mr(a)&&n.indexOf("capture")!==-1&&Wa(this[n])?i.push(a):s.push(a))});var o=function(a,l){Of(a,function(c){if(Mr(c[0])){var u=l;dr(c,function(d){u=u[d[0]].apply(u,d.slice(1))})}else this[c[0]].apply(this,c.slice(1))},l)};o(r,this),o(s,this),o(i,this)}ys(){var t,n;return((t=this.config.bootstrap)==null?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)==null?void 0:n.featureFlags).length>0||!1}push(t){this._execute_array([t])}capture(t,n,r){var s;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.ps){if(!this.consent.isOptedOut())if(!at(t)&&Qr(t)){if(this.config.opt_out_useragent_filter||!this._is_bot()){var i=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(i==null||!i.isRateLimited){n!=null&&n.$current_url&&!Qr(n==null?void 0:n.$current_url)&&(Tt.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var o=new Date,a=(r==null?void 0:r.timestamp)||o,l=Tf(),c={uuid:l,event:t,properties:this.calculateEventProperties(t,n||{},a,l)};i&&(c.properties.$lib_rate_limit_remaining_tokens=i.remainingTokens),r!=null&&r.$set&&(c.$set=r==null?void 0:r.$set);var u,d,p=this.xs(r==null?void 0:r.$set_once);if(p&&(c.$set_once=p),(c=Cxt(c,r!=null&&r._noTruncate?null:this.config.properties_string_max_length)).timestamp=a,at(r==null?void 0:r.timestamp)||(c.properties.$event_time_override_provided=!0,c.properties.$event_time_override_system_time=o),t===Z9.DISMISSED||t===Z9.SENT){var m=n==null?void 0:n[CQ.SURVEY_ID],b=n==null?void 0:n[CQ.SURVEY_ITERATION];localStorage.setItem((d=""+oO+(u={id:m,current_iteration:b}).id,u.current_iteration&&u.current_iteration>0&&(d=""+oO+u.id+"_"+u.current_iteration),d),"true"),c.$set=ut({},c.$set,{[pwt({id:m,current_iteration:b},t===Z9.SENT?"responded":"dismissed")]:!0})}var x=ut({},c.properties.$set,c.$set);if(v0(x)||this.setPersonPropertiesForFlags(x),!zn(this.config.before_send)){var C=this.Es(c);if(!C)return;c=C}this.us.emit("eventCaptured",c);var S={method:"POST",url:(s=r==null?void 0:r._url)!==null&&s!==void 0?s:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:c,compression:"best-available",batchKey:r==null?void 0:r._batchKey};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this._s(S):this.ps.enqueue(S),c}Tt.critical("This capture call is ignored due to client rate limiting.")}}else Tt.error("No event name provided to posthog.capture")}else Tt.uninitializedWarning("posthog.capture")}Ne(t){return this.on("eventCaptured",n=>t(n.event,n))}calculateEventProperties(t,n,r,s,i){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;var o=i?void 0:this.persistence.remove_event_timer(t),a=ut({},n);if(a.token=this.config.token,a.$config_defaults=this.config.defaults,this.config.__preview_experimental_cookieless_mode&&(a.$cookieless_mode=!0),t==="$snapshot"){var l=ut({},this.persistence.properties(),this.sessionPersistence.properties());return a.distinct_id=l.distinct_id,(!Qr(a.distinct_id)&&!Ci(a.distinct_id)||IF(a.distinct_id))&&Tt.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),a}var c,u=cwt(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:d,windowId:p}=this.sessionManager.checkAndGetSessionAndWindowId(i,r.getTime());a.$session_id=d,a.$window_id=p}this.sessionPropsManager&&vs(a,this.sessionPropsManager.getSessionProps());try{var m;this.sessionRecording&&vs(a,this.sessionRecording.sdkDebugProperties),a.$sdk_debug_retry_queue_size=(m=this.gs)==null?void 0:m.length}catch(S){a.$sdk_debug_error_capturing_properties=String(S)}if(this.requestRouter.region===N1.CUSTOM&&(a.$lib_custom_api_host=this.config.api_host),c=t!=="$pageview"||i?t!=="$pageleave"||i?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,s),a=vs(a,c),t==="$pageview"&&bt&&(a.title=bt.title),!at(o)){var b=r.getTime()-o;a.$duration=parseFloat((b/1e3).toFixed(3))}So&&this.config.opt_out_useragent_filter&&(a.$browser_type=this._is_bot()?"bot":"browser"),(a=vs({},u,this.persistence.properties(),this.sessionPersistence.properties(),a)).$is_identified=this._isIdentified(),Mr(this.config.property_denylist)?dr(this.config.property_denylist,function(S){delete a[S]}):Tt.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var x=this.config.sanitize_properties;x&&(Tt.error("sanitize_properties is deprecated. Use before_send instead"),a=x(a,t));var C=this.Is();return a.$process_person_profile=C,C&&!i&&this.Ps("_calculate_event_properties"),a}xs(t){var n;if(!this.persistence||!this.Is()||this.ls)return t;var r=this.persistence.get_initial_props(),s=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),i=vs({},r,s||{},t||{}),o=this.config.sanitize_properties;return o&&(Tt.error("sanitize_properties is deprecated. Use before_send instead"),i=o(i,"$set_once")),this.ls=!0,v0(i)?void 0:i}register(t,n){var r;(r=this.persistence)==null||r.register(t,n)}register_once(t,n,r){var s;(s=this.persistence)==null||s.register_once(t,n,r)}register_for_session(t){var n;(n=this.sessionPersistence)==null||n.register(t)}unregister(t){var n;(n=this.persistence)==null||n.unregister(t)}unregister_for_session(t){var n;(n=this.sessionPersistence)==null||n.unregister(t)}Rs(t,n){this.register({[t]:n})}getFeatureFlag(t,n){return this.featureFlags.getFeatureFlag(t,n)}getFeatureFlagPayload(t){var n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}isFeatureEnabled(t,n){return this.featureFlags.isFeatureEnabled(t,n)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}getEarlyAccessFeatures(t,n,r){return n===void 0&&(n=!1),this.featureFlags.getEarlyAccessFeatures(t,n,r)}on(t,n){return this.us.on(t,n)}onFeatureFlags(t){return this.featureFlags.onFeatureFlags(t)}onSurveysLoaded(t){return this.surveys.onSurveysLoaded(t)}onSessionId(t){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(t))!==null&&n!==void 0?n:()=>{}}getSurveys(t,n){n===void 0&&(n=!1),this.surveys.getSurveys(t,n)}getActiveMatchingSurveys(t,n){n===void 0&&(n=!1),this.surveys.getActiveMatchingSurveys(t,n)}renderSurvey(t,n){this.surveys.renderSurvey(t,n)}canRenderSurvey(t){return this.surveys.canRenderSurvey(t)}canRenderSurveyAsync(t,n){return n===void 0&&(n=!1),this.surveys.canRenderSurveyAsync(t,n)}identify(t,n,r){if(!this.__loaded||!this.persistence)return Tt.uninitializedWarning("posthog.identify");if(Ci(t)&&(t=t.toString(),Tt.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),t){if(["distinct_id","distinctid"].includes(t.toLowerCase()))Tt.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(this.Ps("posthog.identify")){var s=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var i=s;this.register_once({$had_persisted_distinct_id:!0,$device_id:i},"")}t!==s&&t!==this.get_property(C1)&&(this.unregister(C1),this.register({distinct_id:t}));var o=(this.persistence.get_property(td)||"anonymous")==="anonymous";t!==s&&o?(this.persistence.set_property(td,"identified"),this.setPersonPropertiesForFlags(ut({},r||{},n||{}),!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:s},{$set:n||{},$set_once:r||{}}),this.cs=mQ(t,n,r),this.featureFlags.setAnonymousDistinctId(s)):(n||r)&&this.setPersonProperties(n,r),t!==s&&(this.reloadFeatureFlags(),this.unregister(P2))}}else Tt.error("Unique user id has not been set in posthog.identify")}setPersonProperties(t,n){if((t||n)&&this.Ps("posthog.setPersonProperties")){var r=mQ(this.get_distinct_id(),t,n);this.cs!==r?(this.setPersonPropertiesForFlags(ut({},n||{},t||{})),this.capture("$set",{$set:t||{},$set_once:n||{}}),this.cs=r):Tt.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,n,r){if(t&&n){if(this.Ps("posthog.group")){var s=this.getGroups();s[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:ut({},s,{[t]:n})}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags({[t]:r})),s[t]===n||r||this.reloadFeatureFlags()}}else Tt.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,n){n===void 0&&(n=!0),this.featureFlags.setPersonPropertiesForFlags(t,n)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,n){n===void 0&&(n=!0),this.Ps("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(t,n)}resetGroupPropertiesForFlags(t){this.featureFlags.resetGroupPropertiesForFlags(t)}reset(t){var n,r,s,i;if(Tt.info("reset"),!this.__loaded)return Tt.uninitializedWarning("posthog.reset");var o=this.get_property("$device_id");if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(r=this.sessionPersistence)==null||r.clear(),this.surveys.reset(),(s=this.persistence)==null||s.set_property(td,"anonymous"),(i=this.sessionManager)==null||i.resetSessionId(),this.cs=null,this.config.__preview_experimental_cookieless_mode)this.register_once({distinct_id:VJ,$device_id:null},"");else{var a=this.config.get_device_id(Tf());this.register_once({distinct_id:a,$device_id:t?a:o},"")}this.register({$last_posthog_reset:new Date().toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,n;return(t=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0),s=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(t!=null&&t.withTimestamp&&r){var i,o=(i=t.timestampLookBack)!==null&&i!==void 0?i:10;if(!r)return s;s+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-o,0)}return s}alias(t,n){return t===this.get_property(sbe)?(Tt.critical("Attempting to create alias for existing People user - aborting."),-2):this.Ps("posthog.alias")?(at(n)&&(n=this.get_distinct_id()),t!==n?(this.Rs(C1,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(Tt.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var n,r,s,i,o=ut({},this.config);Zr(t)&&(vs(this.config,_Q(t)),(n=this.persistence)==null||n.update_config(this.config,o),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new K9(ut({},this.config,{persistence:"sessionStorage"})),Fs.O()&&Fs.A("ph_debug")==="true"&&(this.config.debug=!0),this.config.debug&&(ad.DEBUG=!0,Tt.info("set_config",JSON.stringify({config:t,oldConfig:o,newConfig:ut({},this.config)},null,2))),(r=this.sessionRecording)==null||r.startIfEnabledOrStop(),(s=this.autocapture)==null||s.startIfEnabled(),(i=this.heatmaps)==null||i.startIfEnabled(),this.surveys.loadIfEnabled(),this.bs())}startSessionRecording(t){var n=t===!0,r={sampling:n||!(t==null||!t.sampling),linked_flag:n||!(t==null||!t.linked_flag),url_trigger:n||!(t==null||!t.url_trigger),event_trigger:n||!(t==null||!t.event_trigger)};if(Object.values(r).some(Boolean)){var s,i,o,a,l;(s=this.sessionManager)==null||s.checkAndGetSessionAndWindowId(),r.sampling&&((i=this.sessionRecording)==null||i.overrideSampling()),r.linked_flag&&((o=this.sessionRecording)==null||o.overrideLinkedFlag()),r.url_trigger&&((a=this.sessionRecording)==null||a.overrideTrigger("url")),r.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))}this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,n){var r=new Error("PostHog syntheticException");this.exceptions.sendExceptionEvent(ut({},c1t((s=>s instanceof Error)(t)?{error:t,event:t.message}:{event:t},{syntheticException:r}),n))}loadToolbar(t){return this.toolbar.loadToolbar(t)}get_property(t){var n;return(n=this.persistence)==null?void 0:n.props[t]}getSessionProperty(t){var n;return(n=this.sessionPersistence)==null?void 0:n.props[t]}toString(){var t,n=(t=this.config.name)!==null&&t!==void 0?t:e0;return n!==e0&&(n=e0+"."+n),n}_isIdentified(){var t,n;return((t=this.persistence)==null?void 0:t.get_property(td))==="identified"||((n=this.sessionPersistence)==null?void 0:n.get_property(td))==="identified"}Is(){var t,n;return!(this.config.person_profiles==="never"||this.config.person_profiles==="identified_only"&&!this._isIdentified()&&v0(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[C1])&&((n=this.persistence)==null||(n=n.props)==null||!n[F2]))}ks(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.Is()||this.Ps("posthog.createPersonProfile")&&this.setPersonProperties({},{})}Ps(t){return this.config.person_profiles==="never"?(Tt.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Rs(F2,!0),!0)}bs(){var t,n,r,s,i=this.consent.isOptedOut(),o=this.config.opt_out_persistence_by_default,a=this.config.disable_persistence||i&&!!o;((t=this.persistence)==null?void 0:t.xe)!==a&&((r=this.persistence)==null||r.set_disabled(a)),((n=this.sessionPersistence)==null?void 0:n.xe)!==a&&((s=this.sessionPersistence)==null||s.set_disabled(a))}opt_in_capturing(t){var n;this.consent.optInOut(!0),this.bs(),(at(t==null?void 0:t.captureEventName)||t!=null&&t.captureEventName)&&this.capture((n=t==null?void 0:t.captureEventName)!==null&&n!==void 0?n:"$opt_in",t==null?void 0:t.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.$s()}opt_out_capturing(){this.consent.optInOut(!1),this.bs()}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}clear_opt_in_out_capturing(){this.consent.reset(),this.bs()}_is_bot(){return xa?ive(xa,this.config.custom_blocked_useragents):void 0}$s(){bt&&(bt.visibilityState==="visible"?this.hs||(this.hs=!0,this.capture("$pageview",{title:bt.title},{send_instantly:!0}),this.ds&&(bt.removeEventListener("visibilitychange",this.ds),this.ds=null)):this.ds||(this.ds=this.$s.bind(this),Hr(bt,"visibilitychange",this.ds)))}debug(t){t===!1?(Te==null||Te.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(Te==null||Te.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}Es(t){if(zn(this.config.before_send))return t;var n=Mr(this.config.before_send)?this.config.before_send:[this.config.before_send],r=t;for(var s of n){if(r=s(r),zn(r)){var i="Event '"+t.event+"' was rejected in beforeSend function";return xxt(t.event)?Tt.warn(i+". This can cause unexpected behavior."):Tt.info(i),null}r.properties&&!v0(r.properties)||Tt.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return r}getPageViewId(){var t;return(t=this.pageViewManager.ne)==null?void 0:t.pageViewId}captureTraceFeedback(t,n){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:n})}captureTraceMetric(t,n,r){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:n,$ai_metric_value:String(r)})}}(function(e,t){for(var n=0;n<t.length;n++)e.prototype[t[n]]=Sxt(e.prototype[t[n]])})(m_,["identify"]);var NQ,pd=(NQ=Q1[e0]=new m_,function(){function e(){e.done||(e.done=!0,ove=!1,dr(Q1,function(t){t._dom_loaded()}))}bt!=null&&bt.addEventListener?bt.readyState==="complete"?e():Hr(bt,"DOMContentLoaded",e,{capture:!1}):Te&&Tt.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),NQ),uB=D.createContext({client:pd});function ave(e,t,n){if(n===void 0&&(n=new WeakMap),e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(n.has(e)&&n.get(e)===t)return!0;n.set(e,t);var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(var i=0,o=r;i<o.length;i++){var a=o[i];if(!s.includes(a)||!ave(e[a],t[a],n))return!1}return!0}function Mwt(e){var t=e.children,n=e.client,r=e.apiKey,s=e.options,i=D.useRef(null),o=D.useMemo(function(){return n?(r&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),s&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),n):(r||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),pd)},[n,r,JSON.stringify(s)]);return D.useEffect(function(){if(!n){var a=i.current;a?(r!==a.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),s&&!ave(s,a.options)&&pd.set_config(s),i.current={apiKey:r,options:s??{}}):(pd.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),pd.init(r,s),i.current={apiKey:r,options:s??{}})}},[n,r,JSON.stringify(s)]),Ce.createElement(uB.Provider,{value:{client:o}},t)}var Fwt=function(){var e=D.useContext(uB).client;return e};function Owt(e){var t=Fwt(),n=D.useState(function(){return t.isFeatureEnabled(e)}),r=n[0],s=n[1];return D.useEffect(function(){return t.onFeatureFlags(function(){s(t.isFeatureEnabled(e))})},[t,e]),r}var cO=function(e,t){return cO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])},cO(e,t)};function Rwt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cO(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var J9=function(e){return typeof e=="function"},Iwt={componentStack:null,error:null},jwt={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};(function(e){Rwt(t,e);function t(n){var r=e.call(this,n)||this;return r.state=Iwt,r}return t.prototype.componentDidCatch=function(n,r){var s=r.componentStack,i=this.props.additionalProperties;this.setState({error:n,componentStack:s});var o;J9(i)?o=i(n):typeof i=="object"&&(o=i);var a=this.context.client;a.captureException(n,o)},t.prototype.render=function(){var n=this.props,r=n.children,s=n.fallback,i=this.state;if(i.componentStack==null)return J9(r)?r():r;var o=J9(s)?Ce.createElement(s,{error:i.error,componentStack:i.componentStack}):s;return Ce.isValidElement(o)?o:(console.warn(jwt.INVALID_FALLBACK),Ce.createElement(Ce.Fragment,null))},t.contextType=uB,t})(Ce.Component);function PQ(){const e=Owt("cli_ShowMultiModal"),{agentId:t,threadId:n}=Zs(),{agent:r,isLoading:s}=Av(t),{memory:i}=K0e(t),o=Hd(),{messages:a,isLoading:l}=Z0e({agentId:t,threadId:n,memory:!!(i!=null&&i.result)}),[c]=D.useState(!0),{threads:u,isLoading:d,mutate:p}=dxt({resourceid:t,agentId:t,isMemoryEnabled:!!(i!=null&&i.result)});if(D.useEffect(()=>{i!=null&&i.result&&!n&&o(`/agents/${t}/chat/${Dm()}`)},[i==null?void 0:i.result,n]),s)return null;const m=!!(c&&(i!=null&&i.result));return f.jsx(Ryt,{agentId:t,defaultGenerateOptions:r==null?void 0:r.defaultGenerateOptions,defaultStreamOptions:r==null?void 0:r.defaultStreamOptions,children:f.jsxs(Ks,{isDivided:!0,hasLeftServiceColumn:m,children:[m&&f.jsx(mxt,{agentId:t,threadId:n,threads:u,isLoading:d}),f.jsx("div",{className:"grid overflow-y-auto relative bg-surface1 py-4",children:f.jsx(Iyt,{agentId:t,agentName:r==null?void 0:r.name,threadId:n,initialMessages:l?void 0:a,memory:i==null?void 0:i.result,refreshThreadList:p,showFileSupport:e})}),f.jsx(fxt,{agentId:t})]})})}function Lwt(){const{agentId:e}=Zs();return f.jsx("main",{className:"h-full overflow-hidden",children:f.jsx(Vyt,{agentId:e})})}function Bwt({fetchFn:e,interval:t=3e3,enabled:n=!1,onSuccess:r,onError:s,shouldContinue:i=()=>!0}){const[o,a]=D.useState(n),[l,c]=D.useState(null),[u,d]=D.useState(null),[p,m]=D.useState(!1),[b,x]=D.useState(!1),C=D.useRef(null),S=D.useRef(!0),A=D.useCallback(()=>{console.log("cleanup"),C.current&&(clearTimeout(C.current),C.current=null)},[]),T=D.useCallback(()=>{console.log("stopPolling"),a(!1),A()},[A]),N=D.useCallback(()=>{console.log("startPolling"),a(!0),c(null)},[]),F=D.useCallback(async(M=!1)=>{if(S.current){m(!0),x(M);try{const I=await e();d(I),c(null),r==null||r(I),x(!1),i(I)?C.current=setTimeout(F,t):T()}catch(I){if(!S.current)return;c(I),s==null||s(I),T()}finally{S.current&&(x(!1),m(!1))}}},[e,t,r,s,i,T]);return D.useEffect(()=>(S.current=!0,n&&o&&F(!0),()=>{console.log("cleanup poll"),S.current=!1,A()}),[n,o,F,A]),{isPolling:o,isLoading:p,error:l,data:u,startPolling:N,stopPolling:T,firstCallLoading:b}}const $wt=(e,t=!1)=>{const n=new Set,r=o=>{var a,l,c,u;return o!=null&&o.startsWith("workflow.")&&t?(l=(a=o==null?void 0:o.split("."))==null?void 0:a.slice(2))==null?void 0:l.join("."):o!=null&&o.startsWith("agent.")&&!t?(u=(c=o==null?void 0:o.split("."))==null?void 0:c.slice(1))==null?void 0:u.join("."):o},s=e==null?void 0:e.reduce((o,a)=>{const l={...a,name:r(a.name),duration:a.endTime-a.startTime};return n.add(a.id),{...o,[a.traceId]:[...o[a.traceId]||[],l]}},{});return Object.entries(s).map(([o,a])=>{var p,m,b;const l=a.find(x=>!x.parentSpanId||!n.has(x.parentSpanId)),c=a.map(x=>({...x,parentSpanId:(l==null?void 0:l.id)===x.id?null:x==null?void 0:x.parentSpanId})),u=(p=a.find(x=>x.status.code!==0))==null?void 0:p.status,d=(b=(m=a==null?void 0:a[0])==null?void 0:m.attributes)==null?void 0:b.runId;return{traceId:o,serviceName:(l==null?void 0:l.name)||o,duration:(l==null?void 0:l.duration)||a.reduce((x,C)=>x+C.duration,0),status:u||(l==null?void 0:l.status)||a[0].status,started:a[0].startTime,trace:c,runId:d?String(d):void 0}})},dB=(e,t=!1)=>{const[n,r]=D.useState([]),s=D.useCallback(async()=>{try{const u=await js.getTelemetry({attribute:{componentName:e}});if(!u.traces)throw new Error("Error fetching traces");return $wt((u==null?void 0:u.traces)||[],t)}catch(u){throw u}},[js,e,t]),i=D.useCallback(u=>{u.length>0&&r(()=>u)},[]),o=D.useCallback(u=>{console.log("error, onError",u),Wn.error(u.message)},[]),a=D.useCallback(()=>!0,[]),{firstCallLoading:l,error:c}=Bwt({fetchFn:s,interval:3e3,onSuccess:i,onError:o,shouldContinue:a,enabled:!0});return{traces:n,firstCallLoading:l,error:c}};function zwt(){const{agentId:e}=Zs(),{agent:t,isLoading:n}=Av(e),{traces:r,firstCallLoading:s,error:i}=dB((t==null?void 0:t.name)||"");return n||s?f.jsx("div",{className:"p-4",children:f.jsx(Cr,{className:"h-10"})}):f.jsx(m0t,{traces:r||[],error:i,className:"h-[calc(100vh-40px)]"})}function hB(e){return Function("z",`"use strict";return (${e});`)(yA)}var Nv=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xg=typeof window>"u"||"Deno"in globalThis;function Gi(){}function Hwt(e,t){return typeof e=="function"?e(t):e}function uO(e){return typeof e=="number"&&e>=0&&e!==1/0}function lve(e,t){return Math.max(e+(t||0)-Date.now(),0)}function If(e,t){return typeof e=="function"?e(t):e}function _l(e,t){return typeof e=="function"?e(t):e}function MQ(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==fB(o,t.options))return!1}else if(!fS(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function FQ(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(wg(t.options.mutationKey)!==wg(i))return!1}else if(!fS(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function fB(e,t){return((t==null?void 0:t.queryKeyHashFn)||wg)(e)}function wg(e){return JSON.stringify(e,(t,n)=>dO(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function fS(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>fS(e[n],t[n])):!1}function cve(e,t){if(e===t)return e;const n=OQ(e)&&OQ(t);if(n||dO(e)&&dO(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},l=new Set(r);let c=0;for(let u=0;u<o;u++){const d=n?u:i[u];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=cve(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return s===o&&c===s?e:a}return t}function V2(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function OQ(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function dO(e){if(!RQ(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!RQ(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function RQ(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vwt(e){return new Promise(t=>{setTimeout(t,e)})}function hO(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?cve(e,t):t}function Uwt(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function qwt(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var pB=Symbol();function uve(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===pB?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function dve(e,t){return typeof e=="function"?e(...t):!!e}var Am,uf,H0,WQ,Wwt=(WQ=class extends Nv{constructor(){super();jt(this,Am);jt(this,uf);jt(this,H0);pt(this,H0,t=>{if(!xg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){he(this,uf)||this.setEventListener(he(this,H0))}onUnsubscribe(){var t;this.hasListeners()||((t=he(this,uf))==null||t.call(this),pt(this,uf,void 0))}setEventListener(t){var n;pt(this,H0,t),(n=he(this,uf))==null||n.call(this),pt(this,uf,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){he(this,Am)!==t&&(pt(this,Am,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof he(this,Am)=="boolean"?he(this,Am):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Am=new WeakMap,uf=new WeakMap,H0=new WeakMap,WQ),mB=new Wwt,V0,df,U0,GQ,Gwt=(GQ=class extends Nv{constructor(){super();jt(this,V0,!0);jt(this,df);jt(this,U0);pt(this,U0,t=>{if(!xg&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){he(this,df)||this.setEventListener(he(this,U0))}onUnsubscribe(){var t;this.hasListeners()||((t=he(this,df))==null||t.call(this),pt(this,df,void 0))}setEventListener(t){var n;pt(this,U0,t),(n=he(this,df))==null||n.call(this),pt(this,df,t(this.setOnline.bind(this)))}setOnline(t){he(this,V0)!==t&&(pt(this,V0,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return he(this,V0)}},V0=new WeakMap,df=new WeakMap,U0=new WeakMap,GQ),U2=new Gwt;function fO(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function Ywt(e){return Math.min(1e3*2**e,3e4)}function hve(e){return(e??"online")==="online"?U2.isOnline():!0}var fve=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Q9(e){return e instanceof fve}function pve(e){let t=!1,n=0,r=!1,s;const i=fO(),o=x=>{var C;r||(p(new fve(x)),(C=e.abort)==null||C.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>mB.isFocused()&&(e.networkMode==="always"||U2.isOnline())&&e.canRun(),u=()=>hve(e.networkMode)&&e.canRun(),d=x=>{var C;r||(r=!0,(C=e.onSuccess)==null||C.call(e,x),s==null||s(),i.resolve(x))},p=x=>{var C;r||(r=!0,(C=e.onError)==null||C.call(e,x),s==null||s(),i.reject(x))},m=()=>new Promise(x=>{var C;s=S=>{(r||c())&&x(S)},(C=e.onPause)==null||C.call(e)}).then(()=>{var x;s=void 0,r||(x=e.onContinue)==null||x.call(e)}),b=()=>{if(r)return;let x;const C=n===0?e.initialPromise:void 0;try{x=C??e.fn()}catch(S){x=Promise.reject(S)}Promise.resolve(x).then(d).catch(S=>{var M;if(r)return;const A=e.retry??(xg?0:3),T=e.retryDelay??Ywt,N=typeof T=="function"?T(n,S):T,F=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,S);if(t||!F){p(S);return}n++,(M=e.onFail)==null||M.call(e,n,S),Vwt(N).then(()=>c()?void 0:m()).then(()=>{t?p(S):b()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?b():m().then(b),i)}}var Xwt=e=>setTimeout(e,0);function Kwt(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=Xwt;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var Os=Kwt(),Tm,YQ,mve=(YQ=class{constructor(){jt(this,Tm)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),uO(this.gcTime)&&pt(this,Tm,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xg?1/0:5*60*1e3))}clearGcTimeout(){he(this,Tm)&&(clearTimeout(he(this,Tm)),pt(this,Tm,void 0))}},Tm=new WeakMap,YQ),q0,W0,Ia,_m,wi,pS,Nm,El,Zu,XQ,Zwt=(XQ=class extends mve{constructor(t){super();jt(this,El);jt(this,q0);jt(this,W0);jt(this,Ia);jt(this,_m);jt(this,wi);jt(this,pS);jt(this,Nm);pt(this,Nm,!1),pt(this,pS,t.defaultOptions),this.setOptions(t.options),this.observers=[],pt(this,_m,t.client),pt(this,Ia,he(this,_m).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,pt(this,q0,Jwt(this.options)),this.state=t.state??he(this,q0),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=he(this,wi))==null?void 0:t.promise}setOptions(t){this.options={...he(this,pS),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&he(this,Ia).remove(this)}setData(t,n){const r=hO(this.state.data,t,this.options);return an(this,El,Zu).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){an(this,El,Zu).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=he(this,wi))==null?void 0:r.promise;return(s=he(this,wi))==null||s.cancel(t),n?n.then(Gi).catch(Gi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(he(this,q0))}isActive(){return this.observers.some(t=>_l(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pB||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>If(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!lve(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=he(this,wi))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=he(this,wi))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),he(this,Ia).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(he(this,wi)&&(he(this,Nm)?he(this,wi).cancel({revert:!0}):he(this,wi).cancelRetry()),this.scheduleGc()),he(this,Ia).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||an(this,El,Zu).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(he(this,wi))return he(this,wi).continueRetry(),he(this,wi).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(m=>m.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(pt(this,Nm,!0),r.signal)})},i=()=>{const p=uve(this.options,n),b=(()=>{const x={client:he(this,_m),queryKey:this.queryKey,meta:this.meta};return s(x),x})();return pt(this,Nm,!1),this.options.persister?this.options.persister(p,b,this):p(b)},a=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:he(this,_m),state:this.state,fetchFn:i};return s(p),p})();(c=this.options.behavior)==null||c.onFetch(a,this),pt(this,W0,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&an(this,El,Zu).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=p=>{var m,b,x,C;Q9(p)&&p.silent||an(this,El,Zu).call(this,{type:"error",error:p}),Q9(p)||((b=(m=he(this,Ia).config).onError)==null||b.call(m,p,this),(C=(x=he(this,Ia).config).onSettled)==null||C.call(x,this.state.data,p,this)),this.scheduleGc()};return pt(this,wi,pve({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var m,b,x,C;if(p===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(S){l(S);return}(b=(m=he(this,Ia).config).onSuccess)==null||b.call(m,p,this),(C=(x=he(this,Ia).config).onSettled)==null||C.call(x,p,this.state.error,this),this.scheduleGc()},onError:l,onFail:(p,m)=>{an(this,El,Zu).call(this,{type:"failed",failureCount:p,error:m})},onPause:()=>{an(this,El,Zu).call(this,{type:"pause"})},onContinue:()=>{an(this,El,Zu).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),he(this,wi).start()}},q0=new WeakMap,W0=new WeakMap,Ia=new WeakMap,_m=new WeakMap,wi=new WeakMap,pS=new WeakMap,Nm=new WeakMap,El=new WeakSet,Zu=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...gve(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Q9(s)&&s.revert&&he(this,W0)?{...he(this,W0),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Os.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),he(this,Ia).notify({query:this,type:"updated",action:t})})},XQ);function gve(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hve(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Jwt(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Mc,KQ,Qwt=(KQ=class extends Nv{constructor(t={}){super();jt(this,Mc);this.config=t,pt(this,Mc,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??fB(s,n);let o=this.get(i);return o||(o=new Zwt({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){he(this,Mc).has(t.queryHash)||(he(this,Mc).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=he(this,Mc).get(t.queryHash);n&&(t.destroy(),n===t&&he(this,Mc).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Os.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return he(this,Mc).get(t)}getAll(){return[...he(this,Mc).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>MQ(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>MQ(t,r)):n}notify(t){Os.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Os.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Os.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Mc=new WeakMap,KQ),Fc,$i,Pm,Oc,nf,ZQ,eSt=(ZQ=class extends mve{constructor(t){super();jt(this,Oc);jt(this,Fc);jt(this,$i);jt(this,Pm);this.mutationId=t.mutationId,pt(this,$i,t.mutationCache),pt(this,Fc,[]),this.state=t.state||yve(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){he(this,Fc).includes(t)||(he(this,Fc).push(t),this.clearGcTimeout(),he(this,$i).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){pt(this,Fc,he(this,Fc).filter(n=>n!==t)),this.scheduleGc(),he(this,$i).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){he(this,Fc).length||(this.state.status==="pending"?this.scheduleGc():he(this,$i).remove(this))}continue(){var t;return((t=he(this,Pm))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,l,c,u,d,p,m,b,x,C,S,A,T,N,F,M,I,j;const n=()=>{an(this,Oc,nf).call(this,{type:"continue"})};pt(this,Pm,pve({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,B)=>{an(this,Oc,nf).call(this,{type:"failed",failureCount:L,error:B})},onPause:()=>{an(this,Oc,nf).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>he(this,$i).canRun(this)}));const r=this.state.status==="pending",s=!he(this,Pm).canStart();try{if(r)n();else{an(this,Oc,nf).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=he(this,$i).config).onMutate)==null?void 0:o.call(i,t,this));const B=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));B!==this.state.context&&an(this,Oc,nf).call(this,{type:"pending",context:B,variables:t,isPaused:s})}const L=await he(this,Pm).start();return await((u=(c=he(this,$i).config).onSuccess)==null?void 0:u.call(c,L,t,this.state.context,this)),await((p=(d=this.options).onSuccess)==null?void 0:p.call(d,L,t,this.state.context)),await((b=(m=he(this,$i).config).onSettled)==null?void 0:b.call(m,L,null,this.state.variables,this.state.context,this)),await((C=(x=this.options).onSettled)==null?void 0:C.call(x,L,null,t,this.state.context)),an(this,Oc,nf).call(this,{type:"success",data:L}),L}catch(L){try{throw await((A=(S=he(this,$i).config).onError)==null?void 0:A.call(S,L,t,this.state.context,this)),await((N=(T=this.options).onError)==null?void 0:N.call(T,L,t,this.state.context)),await((M=(F=he(this,$i).config).onSettled)==null?void 0:M.call(F,void 0,L,this.state.variables,this.state.context,this)),await((j=(I=this.options).onSettled)==null?void 0:j.call(I,void 0,L,t,this.state.context)),L}finally{an(this,Oc,nf).call(this,{type:"error",error:L})}}finally{he(this,$i).runNext(this)}}},Fc=new WeakMap,$i=new WeakMap,Pm=new WeakMap,Oc=new WeakSet,nf=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Os.batch(()=>{he(this,Fc).forEach(r=>{r.onMutationUpdate(t)}),he(this,$i).notify({mutation:this,type:"updated",action:t})})},ZQ);function yve(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ld,Dl,mS,JQ,tSt=(JQ=class extends Nv{constructor(t={}){super();jt(this,ld);jt(this,Dl);jt(this,mS);this.config=t,pt(this,ld,new Set),pt(this,Dl,new Map),pt(this,mS,0)}build(t,n,r){const s=new eSt({mutationCache:this,mutationId:++_k(this,mS)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){he(this,ld).add(t);const n=iD(t);if(typeof n=="string"){const r=he(this,Dl).get(n);r?r.push(t):he(this,Dl).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(he(this,ld).delete(t)){const n=iD(t);if(typeof n=="string"){const r=he(this,Dl).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&he(this,Dl).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=iD(t);if(typeof n=="string"){const r=he(this,Dl).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=iD(t);if(typeof n=="string"){const s=(r=he(this,Dl).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Os.batch(()=>{he(this,ld).forEach(t=>{this.notify({type:"removed",mutation:t})}),he(this,ld).clear(),he(this,Dl).clear()})}getAll(){return Array.from(he(this,ld))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>FQ(n,r))}findAll(t={}){return this.getAll().filter(n=>FQ(t,n))}notify(t){Os.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Os.batch(()=>Promise.all(t.map(n=>n.continue().catch(Gi))))}},ld=new WeakMap,Dl=new WeakMap,mS=new WeakMap,JQ);function iD(e){var t;return(t=e.options.scope)==null?void 0:t.id}function IQ(e){return{onFetch:(t,n)=>{var u,d,p,m,b;const r=t.options,s=(p=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:p.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],o=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let x=!1;const C=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?x=!0:t.signal.addEventListener("abort",()=>{x=!0}),t.signal)})},S=uve(t.options,t.fetchOptions),A=async(T,N,F)=>{if(x)return Promise.reject();if(N==null&&T.pages.length)return Promise.resolve(T);const I=(()=>{const z={client:t.client,queryKey:t.queryKey,pageParam:N,direction:F?"backward":"forward",meta:t.options.meta};return C(z),z})(),j=await S(I),{maxPages:L}=t.options,B=F?qwt:Uwt;return{pages:B(T.pages,j,L),pageParams:B(T.pageParams,N,L)}};if(s&&i.length){const T=s==="backward",N=T?nSt:jQ,F={pages:i,pageParams:o},M=N(r,F);a=await A(F,M,T)}else{const T=e??i.length;do{const N=l===0?o[0]??r.initialPageParam:jQ(r,a);if(l>0&&N==null)break;a=await A(a,N),l++}while(l<T)}return a};t.options.persister?t.fetchFn=()=>{var x,C;return(C=(x=t.options).persister)==null?void 0:C.call(x,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function jQ(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function nSt(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Yr,hf,ff,G0,Y0,pf,X0,K0,QQ,rSt=(QQ=class{constructor(e={}){jt(this,Yr);jt(this,hf);jt(this,ff);jt(this,G0);jt(this,Y0);jt(this,pf);jt(this,X0);jt(this,K0);pt(this,Yr,e.queryCache||new Qwt),pt(this,hf,e.mutationCache||new tSt),pt(this,ff,e.defaultOptions||{}),pt(this,G0,new Map),pt(this,Y0,new Map),pt(this,pf,0)}mount(){_k(this,pf)._++,he(this,pf)===1&&(pt(this,X0,mB.subscribe(async e=>{e&&(await this.resumePausedMutations(),he(this,Yr).onFocus())})),pt(this,K0,U2.subscribe(async e=>{e&&(await this.resumePausedMutations(),he(this,Yr).onOnline())})))}unmount(){var e,t;_k(this,pf)._--,he(this,pf)===0&&((e=he(this,X0))==null||e.call(this),pt(this,X0,void 0),(t=he(this,K0))==null||t.call(this),pt(this,K0,void 0))}isFetching(e){return he(this,Yr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return he(this,hf).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=he(this,Yr).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=he(this,Yr).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(If(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return he(this,Yr).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=he(this,Yr).get(r.queryHash),i=s==null?void 0:s.state.data,o=Hwt(t,i);if(o!==void 0)return he(this,Yr).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Os.batch(()=>he(this,Yr).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=he(this,Yr).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=he(this,Yr);Os.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=he(this,Yr);return Os.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Os.batch(()=>he(this,Yr).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Gi).catch(Gi)}invalidateQueries(e,t={}){return Os.batch(()=>(he(this,Yr).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Os.batch(()=>he(this,Yr).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Gi)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Gi)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=he(this,Yr).build(this,t);return n.isStaleByTime(If(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gi).catch(Gi)}fetchInfiniteQuery(e){return e.behavior=IQ(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gi).catch(Gi)}ensureInfiniteQueryData(e){return e.behavior=IQ(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return U2.isOnline()?he(this,hf).resumePausedMutations():Promise.resolve()}getQueryCache(){return he(this,Yr)}getMutationCache(){return he(this,hf)}getDefaultOptions(){return he(this,ff)}setDefaultOptions(e){pt(this,ff,e)}setQueryDefaults(e,t){he(this,G0).set(wg(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...he(this,G0).values()],n={};return t.forEach(r=>{fS(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){he(this,Y0).set(wg(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...he(this,Y0).values()],n={};return t.forEach(r=>{fS(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...he(this,ff).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fB(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===pB&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...he(this,ff).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){he(this,Yr).clear(),he(this,hf).clear()}},Yr=new WeakMap,hf=new WeakMap,ff=new WeakMap,G0=new WeakMap,Y0=new WeakMap,pf=new WeakMap,X0=new WeakMap,K0=new WeakMap,QQ),yo,wn,gS,zi,Mm,Z0,mf,gf,yS,J0,Q0,Fm,Om,yf,eb,Gn,P1,pO,mO,gO,yO,bO,vO,xO,bve,eee,sSt=(eee=class extends Nv{constructor(t,n){super();jt(this,Gn);jt(this,yo);jt(this,wn);jt(this,gS);jt(this,zi);jt(this,Mm);jt(this,Z0);jt(this,mf);jt(this,gf);jt(this,yS);jt(this,J0);jt(this,Q0);jt(this,Fm);jt(this,Om);jt(this,yf);jt(this,eb,new Set);this.options=n,pt(this,yo,t),pt(this,gf,null),pt(this,mf,fO()),this.options.experimental_prefetchInRender||he(this,mf).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(he(this,wn).addObserver(this),LQ(he(this,wn),this.options)?an(this,Gn,P1).call(this):this.updateResult(),an(this,Gn,yO).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return wO(he(this,wn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return wO(he(this,wn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,an(this,Gn,bO).call(this),an(this,Gn,vO).call(this),he(this,wn).removeObserver(this)}setOptions(t){const n=this.options,r=he(this,wn);if(this.options=he(this,yo).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _l(this.options.enabled,he(this,wn))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");an(this,Gn,xO).call(this),he(this,wn).setOptions(this.options),n._defaulted&&!V2(this.options,n)&&he(this,yo).getQueryCache().notify({type:"observerOptionsUpdated",query:he(this,wn),observer:this});const s=this.hasListeners();s&&BQ(he(this,wn),r,this.options,n)&&an(this,Gn,P1).call(this),this.updateResult(),s&&(he(this,wn)!==r||_l(this.options.enabled,he(this,wn))!==_l(n.enabled,he(this,wn))||If(this.options.staleTime,he(this,wn))!==If(n.staleTime,he(this,wn)))&&an(this,Gn,pO).call(this);const i=an(this,Gn,mO).call(this);s&&(he(this,wn)!==r||_l(this.options.enabled,he(this,wn))!==_l(n.enabled,he(this,wn))||i!==he(this,yf))&&an(this,Gn,gO).call(this,i)}getOptimisticResult(t){const n=he(this,yo).getQueryCache().build(he(this,yo),t),r=this.createResult(n,t);return oSt(this,r)&&(pt(this,zi,r),pt(this,Z0,this.options),pt(this,Mm,he(this,wn).state)),r}getCurrentResult(){return he(this,zi)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),Reflect.get(r,s))})}trackProp(t){he(this,eb).add(t)}getCurrentQuery(){return he(this,wn)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=he(this,yo).defaultQueryOptions(t),r=he(this,yo).getQueryCache().build(he(this,yo),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return an(this,Gn,P1).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),he(this,zi)))}createResult(t,n){var L;const r=he(this,wn),s=this.options,i=he(this,zi),o=he(this,Mm),a=he(this,Z0),c=t!==r?t.state:he(this,gS),{state:u}=t;let d={...u},p=!1,m;if(n._optimisticResults){const B=this.hasListeners(),z=!B&&LQ(t,n),G=B&&BQ(t,r,n,s);(z||G)&&(d={...d,...gve(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:b,errorUpdatedAt:x,status:C}=d;m=d.data;let S=!1;if(n.placeholderData!==void 0&&m===void 0&&C==="pending"){let B;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(B=i.data,S=!0):B=typeof n.placeholderData=="function"?n.placeholderData((L=he(this,Q0))==null?void 0:L.state.data,he(this,Q0)):n.placeholderData,B!==void 0&&(C="success",m=hO(i==null?void 0:i.data,B,n),p=!0)}if(n.select&&m!==void 0&&!S)if(i&&m===(o==null?void 0:o.data)&&n.select===he(this,yS))m=he(this,J0);else try{pt(this,yS,n.select),m=n.select(m),m=hO(i==null?void 0:i.data,m,n),pt(this,J0,m),pt(this,gf,null)}catch(B){pt(this,gf,B)}he(this,gf)&&(b=he(this,gf),m=he(this,J0),x=Date.now(),C="error");const A=d.fetchStatus==="fetching",T=C==="pending",N=C==="error",F=T&&A,M=m!==void 0,j={status:C,fetchStatus:d.fetchStatus,isPending:T,isSuccess:C==="success",isError:N,isInitialLoading:F,isLoading:F,data:m,dataUpdatedAt:d.dataUpdatedAt,error:b,errorUpdatedAt:x,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:A,isRefetching:A&&!T,isLoadingError:N&&!M,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:N&&M,isStale:gB(t,n),refetch:this.refetch,promise:he(this,mf)};if(this.options.experimental_prefetchInRender){const B=Q=>{j.status==="error"?Q.reject(j.error):j.data!==void 0&&Q.resolve(j.data)},z=()=>{const Q=pt(this,mf,j.promise=fO());B(Q)},G=he(this,mf);switch(G.status){case"pending":t.queryHash===r.queryHash&&B(G);break;case"fulfilled":(j.status==="error"||j.data!==G.value)&&z();break;case"rejected":(j.status!=="error"||j.error!==G.reason)&&z();break}}return j}updateResult(){const t=he(this,zi),n=this.createResult(he(this,wn),this.options);if(pt(this,Mm,he(this,wn).state),pt(this,Z0,this.options),he(this,Mm).data!==void 0&&pt(this,Q0,he(this,wn)),V2(n,t))return;pt(this,zi,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!he(this,eb).size)return!0;const o=new Set(i??he(this,eb));return this.options.throwOnError&&o.add("error"),Object.keys(he(this,zi)).some(a=>{const l=a;return he(this,zi)[l]!==t[l]&&o.has(l)})};an(this,Gn,bve).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&an(this,Gn,yO).call(this)}},yo=new WeakMap,wn=new WeakMap,gS=new WeakMap,zi=new WeakMap,Mm=new WeakMap,Z0=new WeakMap,mf=new WeakMap,gf=new WeakMap,yS=new WeakMap,J0=new WeakMap,Q0=new WeakMap,Fm=new WeakMap,Om=new WeakMap,yf=new WeakMap,eb=new WeakMap,Gn=new WeakSet,P1=function(t){an(this,Gn,xO).call(this);let n=he(this,wn).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Gi)),n},pO=function(){an(this,Gn,bO).call(this);const t=If(this.options.staleTime,he(this,wn));if(xg||he(this,zi).isStale||!uO(t))return;const r=lve(he(this,zi).dataUpdatedAt,t)+1;pt(this,Fm,setTimeout(()=>{he(this,zi).isStale||this.updateResult()},r))},mO=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(he(this,wn)):this.options.refetchInterval)??!1},gO=function(t){an(this,Gn,vO).call(this),pt(this,yf,t),!(xg||_l(this.options.enabled,he(this,wn))===!1||!uO(he(this,yf))||he(this,yf)===0)&&pt(this,Om,setInterval(()=>{(this.options.refetchIntervalInBackground||mB.isFocused())&&an(this,Gn,P1).call(this)},he(this,yf)))},yO=function(){an(this,Gn,pO).call(this),an(this,Gn,gO).call(this,an(this,Gn,mO).call(this))},bO=function(){he(this,Fm)&&(clearTimeout(he(this,Fm)),pt(this,Fm,void 0))},vO=function(){he(this,Om)&&(clearInterval(he(this,Om)),pt(this,Om,void 0))},xO=function(){const t=he(this,yo).getQueryCache().build(he(this,yo),this.options);if(t===he(this,wn))return;const n=he(this,wn);pt(this,wn,t),pt(this,gS,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},bve=function(t){Os.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(he(this,zi))}),he(this,yo).getQueryCache().notify({query:he(this,wn),type:"observerResultsUpdated"})})},eee);function iSt(e,t){return _l(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function LQ(e,t){return iSt(e,t)||e.state.data!==void 0&&wO(e,t,t.refetchOnMount)}function wO(e,t,n){if(_l(t.enabled,e)!==!1&&If(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&gB(e,t)}return!1}function BQ(e,t,n,r){return(e!==t||_l(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&gB(e,n)}function gB(e,t){return _l(t.enabled,e)!==!1&&e.isStaleByTime(If(t.staleTime,e))}function oSt(e,t){return!V2(e.getCurrentResult(),t)}var bf,vf,bo,cd,Sd,GD,SO,tee,aSt=(tee=class extends Nv{constructor(n,r){super();jt(this,Sd);jt(this,bf);jt(this,vf);jt(this,bo);jt(this,cd);pt(this,bf,n),this.setOptions(r),this.bindMethods(),an(this,Sd,GD).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=he(this,bf).defaultMutationOptions(n),V2(this.options,r)||he(this,bf).getMutationCache().notify({type:"observerOptionsUpdated",mutation:he(this,bo),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&wg(r.mutationKey)!==wg(this.options.mutationKey)?this.reset():((s=he(this,bo))==null?void 0:s.state.status)==="pending"&&he(this,bo).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=he(this,bo))==null||n.removeObserver(this)}onMutationUpdate(n){an(this,Sd,GD).call(this),an(this,Sd,SO).call(this,n)}getCurrentResult(){return he(this,vf)}reset(){var n;(n=he(this,bo))==null||n.removeObserver(this),pt(this,bo,void 0),an(this,Sd,GD).call(this),an(this,Sd,SO).call(this)}mutate(n,r){var s;return pt(this,cd,r),(s=he(this,bo))==null||s.removeObserver(this),pt(this,bo,he(this,bf).getMutationCache().build(he(this,bf),this.options)),he(this,bo).addObserver(this),he(this,bo).execute(n)}},bf=new WeakMap,vf=new WeakMap,bo=new WeakMap,cd=new WeakMap,Sd=new WeakSet,GD=function(){var r;const n=((r=he(this,bo))==null?void 0:r.state)??yve();pt(this,vf,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},SO=function(n){Os.batch(()=>{var r,s,i,o,a,l,c,u;if(he(this,cd)&&this.hasListeners()){const d=he(this,vf).variables,p=he(this,vf).context;(n==null?void 0:n.type)==="success"?((s=(r=he(this,cd)).onSuccess)==null||s.call(r,n.data,d,p),(o=(i=he(this,cd)).onSettled)==null||o.call(i,n.data,null,d,p)):(n==null?void 0:n.type)==="error"&&((l=(a=he(this,cd)).onError)==null||l.call(a,n.error,d,p),(u=(c=he(this,cd)).onSettled)==null||u.call(c,void 0,n.error,d,p))}this.listeners.forEach(d=>{d(he(this,vf))})})},tee),vve=D.createContext(void 0),xve=e=>{const t=D.useContext(vve);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},lSt=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(vve.Provider,{value:e,children:t})),wve=D.createContext(!1),cSt=()=>D.useContext(wve);wve.Provider;function uSt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var dSt=D.createContext(uSt()),hSt=()=>D.useContext(dSt),fSt=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},pSt=e=>{D.useEffect(()=>{e.clearReset()},[e])},mSt=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||dve(n,[e.error,r])),gSt=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},ySt=(e,t)=>e.isLoading&&e.isFetching&&!t,bSt=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,$Q=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function vSt(e,t,n){var d,p,m,b,x;const r=cSt(),s=hSt(),i=xve(),o=i.defaultQueryOptions(e);(p=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||p.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",gSt(o),fSt(o,s),pSt(s);const a=!i.getQueryCache().get(o.queryHash),[l]=D.useState(()=>new t(i,o)),c=l.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(C=>{const S=u?l.subscribe(Os.batchCalls(C)):Gi;return l.updateResult(),S},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),D.useEffect(()=>{l.setOptions(o)},[o,l]),bSt(o,c))throw $Q(o,l,s);if(mSt({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw c.error;if((b=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||b.call(m,o,c),o.experimental_prefetchInRender&&!xg&&ySt(c,r)){const C=a?$Q(o,l,s):(x=i.getQueryCache().get(o.queryHash))==null?void 0:x.promise;C==null||C.catch(Gi).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?c:l.trackResult(c)}function xSt(e,t){return vSt(e,sSt)}function Sve(e,t){const n=xve(),[r]=D.useState(()=>new aSt(n,e));D.useEffect(()=>{r.setOptions(e)},[r,e]);const s=D.useSyncExternalStore(D.useCallback(o=>r.subscribe(Os.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=D.useCallback((o,a)=>{r.mutate(o,a).catch(Gi)},[r]);if(s.error&&dve(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}const wSt=()=>Sve({mutationFn:async({agentId:e,toolId:t,input:n,playgroundRuntimeContext:r})=>{const s=new tg;Object.entries(r??{}).forEach(([i,o])=>{s.set(i,o)});try{return await js.getAgent(e).executeTool(t,{data:n,runtimeContext:s})}catch(i){throw Wn.error("Error executing agent tool"),console.error("Error executing tool:",i),i}}});function q2({content:e,copyMessage:t,tooltip:n="Copy to clipboard",iconSize:r="default"}){const{handleCopy:s}=Tv({text:e,copyMessage:t});return f.jsxs(ha,{children:[f.jsx(fa,{asChild:!0,children:f.jsx("button",{onClick:s,type:"button",children:f.jsx(Nt,{className:"transition-colors hover:bg-surface4 rounded-lg text-icon3 hover:text-icon6",size:r,children:f.jsx(Y2,{})})})}),f.jsx(_o,{children:n})]})}const Cve={agent:sh,workflow:wp,tool:Bd},SSt=({toolDescription:e,toolId:t,toolType:n})=>{const r=Cve[n||"tool"];return f.jsx("div",{className:"p-5 border-b-sm border-border1",children:f.jsxs("div",{className:"text-icon6 flex gap-2",children:[f.jsx("div",{children:f.jsx(Nt,{size:"lg",className:"bg-surface4 rounded-md p-1",children:f.jsx(r,{})})}),f.jsx("div",{className:"flex gap-4 justify-between w-full min-w-0",children:f.jsxs("div",{children:[f.jsx(tt,{variant:"header-md",as:"h2",className:"font-medium truncate",children:t}),f.jsx(tt,{variant:"ui-sm",className:"text-icon3",children:e})]})})]})})},yB=()=>D.useMemo(()=>QT({settings:{fontFamily:"var(--geist-mono)",fontSize:"0.8rem",lineHighlight:"transparent",gutterBackground:"transparent",gutterForeground:"#939393",background:"transparent"},styles:[{tag:[Se.className,Se.propertyName]}]}),[]),bB=({isExecutingTool:e,zodInputSchema:t,handleExecuteTool:n,executionResult:r,toolDescription:s,toolId:i,toolType:o})=>{const a=yB(),l=JSON.stringify(r??{},null,2);return f.jsxs(Ks,{hasLeftServiceColumn:!0,className:"relative",children:[f.jsxs("div",{className:"bg-surface2 border-r-sm border-border1 w-[20rem]",children:[f.jsx(SSt,{toolDescription:s,toolId:i,toolType:o}),f.jsx("div",{className:"p-5 overflow-y-auto",children:f.jsx(zb,{isSubmitLoading:e,schema:t,onSubmit:c=>{n(c)},className:"h-auto"})})]}),f.jsx("div",{className:"absolute top-4 right-4 z-10",children:f.jsx(q2,{content:l,tooltip:"Copy JSON result to clipboard"})}),f.jsx("div",{className:"p-5 h-full relative overflow-x-auto overflow-y-auto",children:f.jsx(bd,{value:l,editable:!0,theme:a,extensions:[cg]})})]})},CSt=()=>{const{toolId:e,agentId:t}=Zs(),{runtimeContext:n}=Dv(),{mutateAsync:r,isPending:s}=wSt(),[i,o]=D.useState(null),{agent:a,isLoading:l}=Av(t),c=Object.values((a==null?void 0:a.tools)??{}).find(m=>m.id===e),u=async m=>{if(!a||!c)return;const b=await r({agentId:t,toolId:c.id,input:m,playgroundRuntimeContext:n});o(b)},d=c!=null&&c.inputSchema?hB(ep(fg(c==null?void 0:c.inputSchema))):hn({}),p=!a||!c;return f.jsxs(Aa,{children:[f.jsx(ts,{children:f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/agents",children:"Agents"}),f.jsx(zr,{as:Xt,to:`/agents/${t}/chat`,children:t}),f.jsx(zr,{as:Xt,to:`/agents/${t}/tools/${e}`,isCurrent:!0,children:e})]})}),l?null:p?f.jsx("div",{className:"py-12 text-center px-6",children:f.jsx(tt,{variant:"header-md",className:"text-icon3",children:"Agent or tool not found"})}):f.jsx(bB,{executionResult:i,isExecutingTool:s,zodInputSchema:d,handleExecuteTool:u,toolDescription:c.description,toolId:c.id})]})},kSt=()=>Sve({mutationFn:async({toolId:e,input:t,runtimeContext:n})=>{const r=new tg;Object.entries(n??{}).forEach(([s,i])=>{r.set(s,i)});try{return await js.getTool(e).execute({data:t,runtimeContext:r})}catch(s){throw Wn.error("Error executing dev tool"),console.error("Error executing dev tool:",s),s}}}),ESt=()=>{const{toolId:e}=Zs(),{tool:t,isLoading:n}=Bbt(e),{mutateAsync:r,isPending:s,data:i}=kSt(),{runtimeContext:o}=Dv(),a=async c=>{if(t)return r({toolId:t.id,input:c,runtimeContext:o})},l=t!=null&&t.inputSchema?hB(ep(fg(t==null?void 0:t.inputSchema))):hn({});return f.jsxs("div",{className:"h-full w-full overflow-y-hidden",children:[f.jsx(ts,{children:f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/tools",children:"Tools"}),f.jsx(zr,{as:Xt,to:`/tools/all/${e}`,isCurrent:!0,children:e})]})}),n?null:t?f.jsx(bB,{executionResult:i,isExecutingTool:s,zodInputSchema:l,handleExecuteTool:a,toolDescription:t.description,toolId:t.id}):f.jsx("div",{className:"py-12 text-center px-6",children:f.jsx(tt,{variant:"header-md",className:"text-icon3",children:"Tool not found"})})]})},DSt=[{id:"name",header:"Name",cell:({row:e})=>f.jsx(IL,{icon:f.jsx(wp,{}),name:f.jsx(Xt,{to:`/workflows${e.original.isLegacy?"/legacy":""}/${e.original.id}/graph`,children:e.original.name})}),meta:{width:"auto"}},{id:"action",header:"Action",size:300,cell:({row:e})=>f.jsx(Go,{children:f.jsxs("div",{className:"flex justify-end items-center gap-2",children:[f.jsxs(vr,{icon:f.jsx(Ywe,{}),className:"!h-button-md",children:[e.original.stepsCount," step",e.original.stepsCount>1?"s":""]}),e.original.isLegacy?f.jsx(vr,{className:"!text-foreground/80 !h-button-md",children:"Legacy"}):null]})})}];function ASt(){const e=Hd(),{workflows:t,legacyWorkflows:n,isLoading:r}=Ibt(),s=Object.entries(n).map(([o,a])=>{var l;return{id:o,name:a.name,stepsCount:(l=Object.keys(a.steps))==null?void 0:l.length,isLegacy:!0}}),i=Object.entries(t).map(([o,a])=>{var l;return{id:o,name:a.name,stepsCount:(l=Object.keys(a.steps??{}))==null?void 0:l.length,isLegacy:!1}});return r?null:f.jsxs(Aa,{children:[f.jsx(ts,{children:f.jsx(ec,{children:"Workflows"})}),i.length===0?f.jsx(Ks,{isCentered:!0,children:f.jsx(fC,{iconSlot:f.jsx(Jgt,{}),titleSlot:"Configure Workflows",descriptionSlot:"Mastra workflows are not configured yet. You can find more information in the documentation.",actionSlot:f.jsxs(vn,{size:"lg",className:"w-full",variant:"light",as:"a",href:"https://mastra.ai/en/docs/workflows/overview",target:"_blank",children:[f.jsx(Nt,{children:f.jsx(wp,{})}),"Docs"]})})}):f.jsx(Ks,{children:f.jsx(HL,{emptyText:"Workflows",columns:DSt,data:[...i,...s],onClick:o=>e(`/workflows${o.isLegacy?"/legacy":""}/${o.id}/graph`)})})]})}const zQ=()=>{const{workflowId:e}=Zs(),t=Hd();return f.jsx(gbt,{workflowId:e,baseUrl:"",onShowTrace:({runId:n,stepName:r})=>{t(`/workflows/${e}/traces?runId=${n}&stepName=${r}`)}})};function TSt({runId:e}){const{logs:t,isLoading:n,refetchLogs:r}=o0e(e);return f.jsxs("div",{className:"h-full px-4 pb-4 text-xs w-full overflow-y-auto",children:[f.jsx("div",{className:"flex justify-end sticky top-0 py-2 overflow-y-auto",children:f.jsx(Ym,{variant:"outline",onClick:()=>r(e),children:n?f.jsx(XD,{className:"w-4 h-4 animate-spin"}):f.jsx(XD,{className:"w-4 h-4"})})}),f.jsx("div",{className:"space-y-4 h-full overflow-y-auto",children:t.length===0?f.jsxs("p",{className:"text-gray-300/60",children:["No log drains. By default, logs are sent to the console. To configure log drains see"," ",f.jsx("a",{href:"https://mastra.ai/reference/observability/create-logger#upstash-logger-remote-log-drain",target:"_blank",rel:"noopener",className:" hover:text-gray-100 underline",children:"docs."})]}):t.map((s,i)=>f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex gap-2 items-center",children:[f.jsxs("p",{className:"text-mastra-el-5",children:["[",no(new Date(s.time),"yyyy-MM-dd HH:mm:ss"),"]"]}),f.jsxs("p",{className:"text-mastra-el-4",children:["[",s.level,"]"]})]}),f.jsx("p",{className:"text-mastra-el-5 whitespace-pre-wrap",children:f.jsx("code",{children:s.msg})})]},i))})]})}const kve=({workflowId:e})=>xSt({queryKey:["workflow-runs",e],queryFn:()=>new oI({baseUrl:"",headers:{"x-mastra-dev-playground":"true"}}).getWorkflow(e).runs({limit:50})});function g_({workflowId:e,isLegacy:t}){const n=Zs(),r=Hd(),{workflow:s,isLoading:i}=UL(e,!t),{isLoading:o,data:a}=kve({workflowId:e}),{legacyWorkflow:l,isLoading:c}=VL(e,!!t),[u,d]=D.useState(""),{handleCopy:p}=Tv({text:e}),m=Object.keys((s==null?void 0:s.steps)??{}).length,b=t?c:i,x=t?l:s;return f.jsxs("div",{className:"grid grid-rows-[auto_1fr] h-full overflow-y-auto",children:[f.jsxs("div",{className:"p-5 border-b-sm border-border1",children:[f.jsxs("div",{className:"text-icon6 flex items-center gap-2",children:[f.jsx(Nt,{size:"lg",className:"bg-surface4 rounded-md p-1",children:f.jsx(wp,{})}),b?f.jsx(Cr,{className:"h-3 w-1/3"}):f.jsx("div",{className:"flex items-center gap-4 min-w-0",children:f.jsx(tt,{variant:"header-md",as:"h2",className:"font-medium truncate",children:x==null?void 0:x.name})})]}),f.jsxs("div",{className:"flex items-center gap-2 pt-2",children:[f.jsxs(ha,{children:[f.jsx(fa,{asChild:!0,children:f.jsx("button",{onClick:p,className:"h-badge-default",children:f.jsx(vr,{icon:f.jsx(Y2,{}),variant:"default",children:e})})}),f.jsx(_o,{children:"Copy Workflow ID for use in code"})]}),f.jsxs(vr,{children:[m," step",m>1?"s":""]})]})]}),f.jsx("div",{className:"overflow-y-auto",children:f.jsxs(a_,{defaultValue:"run",className:"h-full grid grid-rows-[auto_1fr] overflow-y-auto",children:[f.jsxs(pC,{className:"flex shrink-0 border-b",children:[f.jsx(ba,{value:"run",className:"group",onClick:()=>r(`/workflows/${e}/graph`),children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Run"})}),f.jsx(ba,{value:"runs",className:"group",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Runs"})}),f.jsx(ba,{value:"logs",className:"group",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Log Drains"})})]}),f.jsxs("div",{className:"h-full overflow-y-auto",children:[f.jsx(va,{value:"run",children:e?f.jsx(f.Fragment,{children:t?f.jsx(hbt,{workflowId:e,setRunId:d}):f.jsx(ybt,{workflowId:e,setRunId:d})}):null}),f.jsx(va,{value:"runs",children:f.jsx(wbt,{workflowId:e,runId:n==null?void 0:n.runId,isLoading:o,runs:(a==null?void 0:a.runs)||[],onPressRun:({workflowId:C,runId:S})=>r(`/workflows/${C}/graph/${S}`)})}),f.jsx(va,{value:"logs",children:f.jsx(TSt,{runId:u})})]})]})})]})}function _St(){const{workflowId:e}=Zs();return f.jsxs("main",{className:"flex-1 relative divide-x flex w-full h-full",children:[f.jsx("div",{className:"min-w-[325px] grow",children:f.jsx(F0t,{workflowId:e})}),f.jsx(Xge,{defaultWidth:20,minimumWidth:20,maximumWidth:60,className:"flex flex-col min-w-[325px] right-0 top-0 h-full z-20 bg-[#121212] [&>div:first-child]:-left-[1px] [&>div:first-child]:-right-[1px] [&>div:first-child]:w-[1px] [&>div:first-child]:bg-[#424242] [&>div:first-child]:hover:w-[2px] [&>div:first-child]:active:w-[2px]",children:f.jsx(g_,{workflowId:e,isLegacy:!0})})]})}function NSt(){const{workflowId:e}=Zs(),[t]=Fwe(),n=t.get("runId"),r=t.get("stepName"),{workflow:s,isLoading:i}=UL(e),{traces:o,error:a,firstCallLoading:l}=dB((s==null?void 0:s.name)||"",!0);return i||l?f.jsxs("main",{className:"flex-1 relative grid grid-cols-[1fr_325px] divide-x h-full",children:[f.jsx("div",{className:"p-4",children:f.jsx(Cr,{className:"h-[600px]"})}),f.jsx("div",{className:"flex flex-col",children:f.jsx(g_,{workflowId:e})})]}):f.jsx(aye,{traces:o,error:a,runId:n||void 0,stepName:r||void 0})}function PSt(){const{workflowId:e}=Zs(),{legacyWorkflow:t,isLoading:n}=VL(e),{traces:r,error:s,firstCallLoading:i}=dB((t==null?void 0:t.name)||"",!0);return n||i?f.jsxs("main",{className:"flex-1 relative grid grid-cols-[1fr_325px] divide-x h-full",children:[f.jsx("div",{className:"p-4",children:f.jsx(Cr,{className:"h-[600px]"})}),f.jsx("div",{className:"flex flex-col",children:f.jsx(g_,{workflowId:e,isLegacy:!0})})]}):f.jsx(aye,{traces:r,error:s})}const MSt=()=>{const[e,t]=D.useState([]),[n,r]=D.useState(!0);return D.useEffect(()=>{(async()=>{r(!0);try{const i=await js.getNetworks();t(i)}catch(i){t([]),console.error("Error fetching networks",i),Wn.error("Error fetching networks")}finally{r(!1)}})()},[]),{networks:e,isLoading:n}},vB=e=>{const[t,n]=D.useState(null),[r,s]=D.useState(!0);return D.useEffect(()=>{e&&(async()=>{s(!0);try{const o=js.getNetwork(e);n(await o.details())}catch(o){n(null),console.error("Error fetching network",o),Wn.error("Error fetching network")}finally{s(!1)}})()},[e]),{network:t,isLoading:r}},FSt=({row:e})=>f.jsx(IL,{icon:f.jsx(sh,{}),name:f.jsx(Xt,{className:"w-full space-y-0",to:`/networks/${e.original.id}/chat`,children:e.original.name}),description:e.original.instructions}),OSt=[{id:"name",header:"Name",cell:FSt,meta:{width:"auto"}},{id:"agents",header:"Agents",cell:({row:e})=>f.jsx(Go,{children:f.jsx(vr,{icon:f.jsx(nSe,{}),children:e.original.agents.length})})},{id:"model",header:"Routing Models",cell:({row:e})=>f.jsx(Go,{children:f.jsx(vr,{variant:"default",icon:f.jsx(PO,{}),children:e.original.routingModel.modelId})})}];function RSt(){const{networks:e,isLoading:t}=MSt();return t?null:f.jsxs(Aa,{children:[f.jsx(ts,{children:f.jsx(ec,{children:"Networks"})}),e.length===0?f.jsx(Ks,{isCentered:!0,children:f.jsx(fC,{iconSlot:f.jsx(ryt,{}),titleSlot:"Configure Agent Networks",descriptionSlot:"Mastra agent networks are not configured yet. You can find more information in the documentation.",actionSlot:f.jsxs(vn,{size:"lg",className:"w-full",variant:"light",as:"a",href:"https://mastra.ai/en/reference/networks/agent-network",target:"_blank",children:[f.jsx(Nt,{children:f.jsx(xee,{})}),"Docs"]})})}):f.jsx(Ks,{children:f.jsx(HL,{isLoading:t,data:e,columns:OSt})})]})}function ISt({networkName:e,networkId:t}){return f.jsxs(ts,{children:[f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/networks",children:"Networks"}),f.jsx(zr,{as:Xt,to:`/networks/${t}`,isCurrent:!0,children:e})]}),f.jsx(jL,{children:f.jsx(vn,{as:Xt,to:`/networks/${t}/chat`,children:"Chat"})})]})}const jSt=({children:e})=>{const{networkId:t}=Zs(),{network:n,isLoading:r}=vB(t);return f.jsxs(Aa,{children:[r?f.jsx(ts,{children:f.jsx(ec,{children:f.jsx(Cr,{className:"h-6 w-[200px]"})})}):f.jsx(ISt,{networkName:n==null?void 0:n.name,networkId:t}),e]})},HQ=({children:e})=>{const{workflowId:t,runId:n}=Zs(),{workflow:r,isLoading:s}=UL(t),{data:i}=kve({workflowId:t});if(s)return f.jsx(Aa,{children:f.jsx(ts,{children:f.jsx(ec,{children:f.jsx(Cr,{className:"h-6 w-[200px]"})})})});const o=i==null?void 0:i.runs.find(a=>a.runId===n);return f.jsx(vye,{snapshot:typeof(o==null?void 0:o.snapshot)=="object"?o.snapshot:void 0,children:f.jsxs(Aa,{children:[f.jsx($ye,{workflowName:(r==null?void 0:r.name)||"",workflowId:t,runId:n}),e]})})},LSt=ap("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function CO({className:e,variant:t,...n}){return f.jsx("div",{className:Ot(LSt({variant:t}),e),...n})}const BSt=()=>f.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.90625 13.7C12.0543 13.7 14.6062 11.148 14.6062 8C14.6062 4.85198 12.0543 2.3 8.90625 2.3C5.75823 2.3 3.20625 4.85198 3.20625 8C3.20625 11.148 5.75823 13.7 8.90625 13.7ZM8.90625 15C12.7722 15 15.9062 11.866 15.9062 8C15.9062 4.13401 12.7722 1 8.90625 1C5.04026 1 1.90625 4.13401 1.90625 8C1.90625 11.866 5.04026 15 8.90625 15Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.4652 10.2358C14.5313 12.8424 12.0391 14.707 9.11131 14.707C9.0617 14.707 9.01222 14.7065 8.96286 14.7054C8.2899 13.0924 7.99638 11.3949 8.24344 9.55135C8.32897 9.24542 8.44745 8.7986 8.42849 8.39404C8.41982 8.20891 8.21671 8.23135 8.16572 8.40953C8.10356 8.62678 8.01682 8.85452 7.90686 9.05582C7.7808 9.07647 7.61987 9.09091 7.41708 9.07898C6.77839 9.04141 6.30758 8.70811 6.207 8.60035C6.0243 8.68313 6.01285 8.74449 6.0019 8.80318C5.99501 8.8401 5.98832 8.87596 5.93935 8.91543L5.92431 8.92772C5.83552 9.00073 5.7706 9.05411 5.56668 8.74463C5.38324 8.38491 5.24798 7.85962 5.79957 7.29461C6.1277 6.9585 6.78378 6.68405 6.87725 6.66968C6.87725 6.13802 7.29396 5.17963 8.48684 4.84422C9.74529 4.49038 11.198 4.84991 12.0373 6.07673C12.5645 6.84745 12.6162 7.29277 12.6557 7.6326C12.6968 7.98678 12.7247 8.22638 13.2636 8.60035C13.4125 8.70365 13.5621 8.80449 13.7129 8.90615C14.2705 9.28209 14.8452 9.66951 15.4652 10.2358ZM8.8836 6.73288C9.08285 6.73288 9.24437 6.57136 9.24437 6.37211C9.24437 6.17286 9.08285 6.01134 8.8836 6.01134C8.68436 6.01134 8.52284 6.17286 8.52284 6.37211C8.52284 6.57136 8.68436 6.73288 8.8836 6.73288Z",fill:"currentColor"})]});function $St({network:e}){var r,s;const{modelSettings:t,setModelSettings:n}=D.useContext(LL);return f.jsx(_v,{className:"pt-2 px-4 pb-4 text-xs",children:f.jsxs("div",{className:"p-4 space-y-4",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium text-mastra-el-5 mb-1",children:"Network Name"}),f.jsx("p",{className:"text-sm text-mastra-el-4",children:e.name})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium text-mastra-el-5 mb-1",children:"Instructions"}),f.jsx("div",{className:"max-h-36 overflow-auto rounded border border-mastra-el-2 bg-mastra-bg-2 p-2",children:f.jsx("p",{className:"text-sm text-mastra-el-4",children:e.instructions||"No instructions provided"})})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium text-mastra-el-5 mb-1",children:"Agents"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(BSt,{}),f.jsxs(CO,{variant:"outline",className:"text-xs",children:[((r=e.agents)==null?void 0:r.length)||0," agents"]})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium text-mastra-el-5 mb-1",children:"Routing Model"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(PO,{className:"h-4 w-4 text-mastra-el-4"}),f.jsx(CO,{className:"border-none text-xs",children:((s=e.routingModel)==null?void 0:s.modelId)||"Unknown"})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium text-mastra-el-5 mb-1",children:"Rounting Model Settings"}),f.jsxs("div",{className:"flex flex-col gap-3 text-mastra-el-5 pb-4",children:[f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsxs("div",{className:"flex flex-row justify-between",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Temperature"}),f.jsx("p",{className:"text-mastra-el-5 text-[12px]",children:t==null?void 0:t.temperature})]}),f.jsx(aS,{value:[(t==null?void 0:t.temperature)??.5],max:1,step:.1,onValueChange:i=>n({...t,temperature:i[0]})})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsxs("div",{className:"flex flex-row justify-between",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Top P"}),f.jsx("p",{className:"text-mastra-el-5 text-[12px]",children:t==null?void 0:t.topP})]}),f.jsx(aS,{onValueChange:i=>n({...t,topP:i[0]}),value:[(t==null?void 0:t.topP)??1],max:1,step:.1})]}),f.jsxs(r0e,{children:[f.jsxs(s0e,{className:"w-full group flex flex-row justify-between items-center pt-1 py-2",children:[f.jsx("span",{className:"text-mastra-el-3 text-[12px] group-hover:text-mastra-el-5",children:"Extended Settings"}),f.jsx(vee,{className:"w-4 h-4 text-mastra-el-3 group-hover:text-mastra-el-5"})]}),f.jsxs(i0e,{className:"flex flex-col gap-2 pt-2",children:[f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Top K"}),f.jsx(Co,{type:"number",value:t==null?void 0:t.topK,onChange:i=>n({...t,topK:i.target.value?Number(i.target.value):void 0})})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Frequency Penalty"}),f.jsx(Co,{type:"number",value:t==null?void 0:t.frequencyPenalty,onChange:i=>n({...t,frequencyPenalty:i.target.value?Number(i.target.value):void 0})})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Presence Penalty"}),f.jsx(Co,{type:"number",value:t==null?void 0:t.presencePenalty,onChange:i=>n({...t,presencePenalty:i.target.value?Number(i.target.value):void 0})})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Max Tokens"}),f.jsx(Co,{type:"number",value:t==null?void 0:t.maxTokens,onChange:i=>n({...t,maxTokens:i.target.value?Number(i.target.value):void 0})})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Max Steps"}),f.jsx(Co,{type:"number",value:t==null?void 0:t.maxSteps,onChange:i=>n({...t,maxSteps:i.target.value?Number(i.target.value):void 0})})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx(Cl,{className:"text-mastra-el-3 text-[12px]",children:"Max Retries"}),f.jsx(Co,{type:"number",value:t==null?void 0:t.maxRetries,onChange:i=>n({...t,maxRetries:i.target.value?Number(i.target.value):void 0})})]})]})]}),f.jsx("div",{className:"flex flex-row justify-start gap-2",children:f.jsxs(Ym,{title:"Reset",variant:"ghost",className:"h-max p-0 group w-max bg-transparent hover:bg-transparent flex flex-row items-center gap-2 text-[12px]",onClick:()=>n({frequencyPenalty:void 0,presencePenalty:void 0,maxRetries:2,maxSteps:5,maxTokens:void 0,temperature:.5,topP:1,topK:void 0}),children:[f.jsx("span",{className:"text-mastra-el-3 text-[12px] group-hover:text-mastra-el-5",children:"Reset"}),f.jsx(wee,{className:"!w-3 !h-3 text-mastra-el-3 group-hover:text-mastra-el-5"})]})})]})]})]})})}function zSt({network:e}){return!e.agents||e.agents.length===0?f.jsx("div",{className:"p-4",children:f.jsx("p",{className:"text-sm text-mastra-el-4",children:"No agents found in this network."})}):f.jsxs("div",{className:"p-4",children:[f.jsx("h3",{className:"text-sm font-medium text-mastra-el-5 mb-3",children:"Network Agents"}),f.jsx("div",{className:"space-y-3",children:e.agents.map((t,n)=>f.jsx("div",{className:"bg-mastra-bg-2 py-2 px-3 rounded-md",children:f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsxs("div",{className:"flex gap-1 items-center",children:[f.jsx(PO,{className:"h-3 w-3 text-mastra-el-4"}),f.jsx("h4",{className:"text-xs font-medium text-mastra-el-5",children:t.name})]}),f.jsxs(CO,{className:"border-none text-xs py-0.5 px-1.5",children:[t.provider,"/",t.modelId]})]})},n))})]})}function HSt({networkId:e}){return f.jsx(_v,{className:"pt-2 px-4 pb-4 text-xs w-[400px]",children:f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[f.jsx("p",{className:"text-mastra-el-3",children:"GET"}),f.jsx("p",{className:"text-mastra-el-5",children:"/api/networks"})]}),f.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[f.jsx("p",{className:"text-mastra-el-3",children:"GET"}),f.jsxs("p",{className:"text-mastra-el-5",children:["/api/networks/",e]})]}),f.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[f.jsx("p",{className:"text-mastra-el-3",children:"POST"}),f.jsxs("p",{className:"text-mastra-el-5",children:["/api/networks/",e,"/generate"]})]}),f.jsxs("div",{className:"grid grid-cols-[70px_1fr] gap-2",children:[f.jsx("p",{className:"text-mastra-el-3",children:"POST"}),f.jsxs("p",{className:"text-mastra-el-5",children:["/api/networks/",e,"/stream"]})]})]})})}function VQ({networkId:e}){const{network:t,isLoading:n}=vB(e);return!t||n?null:f.jsxs(a_,{defaultValue:"details",className:"overflow-y-auto grid grid-rows-[auto_1fr] h-full",children:[f.jsxs(pC,{className:"flex shrink-0 border-b",children:[f.jsx(ba,{value:"details",className:"group",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Details"})}),f.jsx(ba,{value:"agents",className:"group",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Agents"})}),f.jsx(ba,{value:"endpoints",className:"group",children:f.jsx("p",{className:"text-xs p-3 text-mastra-el-3 group-data-[state=active]:text-mastra-el-5 group-data-[state=active]:border-b-2 group-data-[state=active]:pb-2.5 border-white",children:"Endpoints"})})]}),f.jsxs("div",{className:"overflow-y-auto",children:[f.jsx(va,{value:"details",children:f.jsx($St,{network:t})}),f.jsx(va,{value:"agents",children:f.jsx(zSt,{network:t})}),f.jsx(va,{value:"endpoints",children:f.jsx(HSt,{networkId:e})})]})]})}function VSt(){const{networkId:e,threadId:t}=Zs(),{network:n,isLoading:r}=vB(e),{messages:s,isLoading:i}=Z0e({agentId:e,threadId:t,memory:!1});return r?f.jsxs(Ks,{isDivided:!0,children:[f.jsx("div",{}),f.jsx("div",{className:"flex flex-col",children:f.jsx(VQ,{networkId:e})})]}):f.jsx(C0t,{children:f.jsxs(Ks,{isDivided:!0,children:[f.jsx("div",{className:"grid overflow-y-auto relative bg-surface1 py-4",children:f.jsx(k0t,{agentId:e,agentName:n==null?void 0:n.name,threadId:t,initialMessages:i?void 0:s})}),f.jsx("div",{className:"border-l-sm h-full overflow-y-auto",children:f.jsx(VQ,{networkId:e})})]})})}function USt({children:e}){return D.useEffect(()=>{if("brave"in navigator){console.info("[Analytics]: Telemetry is disabled for browser constraints.");return}if(window.MASTRA_TELEMETRY_DISABLED){console.info("[Analytics]: Telemetry is disabled.");return}pd.init("phc_SBLpZVAB6jmHOct9CABq3PF0Yn5FU3G2FgT4xUr2XrT",{api_host:"https://us.posthog.com"}),pd.register({mastraSource:"playground"})},[]),f.jsx(Mwt,{client:pd,children:e})}function qSt(){const{runtimeContext:e,setRuntimeContext:t}=Dv(),[n,r]=D.useState(""),s=yB(),{handleCopy:i}=Tv({text:n}),o=JSON.stringify(e);D.useEffect(()=>{(async()=>{if(!yU(o)){Wn.error("Invalid JSON");return}const d=await gU(o);r(d)})()},[o]);const a=()=>{try{const u=JSON.parse(n);t(u),Wn.success("Runtime context saved successfully")}catch(u){console.error("error",u),Wn.error("Invalid JSON")}},l="text-icon3 hover:text-icon6",c=async()=>{if(!yU(n)){Wn.error("Invalid JSON");return}const u=await gU(n);r(u)};return f.jsxs(Aa,{children:[f.jsx(ts,{children:f.jsx(ec,{children:"Runtime Context"})}),f.jsx(Ks,{children:f.jsxs("div",{className:"max-w-3xl p-5 overflow-y-scroll h-full",children:[f.jsxs("div",{className:"rounded-lg p-4 pb-2 bg-surface4 shadow-md space-y-3 border border-border1",children:[f.jsx(tt,{as:"p",variant:"ui-lg",className:"text-icon3",children:"Mastra provides runtime context, which is a system based on dependency injection that enables you to configure your agents and tools with runtime variables. If you find yourself creating several different agents that do very similar things, runtime context allows you to combine them into one agent."}),f.jsxs(vn,{as:Xt,to:"https://mastra.ai/en/docs/agents/runtime-variables",target:"_blank",children:[f.jsx(Nt,{children:f.jsx(Wwe,{})}),"See documentation"]})]}),f.jsxs("div",{className:"pt-5",children:[f.jsxs("div",{className:"flex items-center justify-between pb-2",children:[f.jsx(tt,{as:"label",variant:"ui-md",className:"text-icon3",children:"Runtime Context (JSON)"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(ha,{children:[f.jsx(fa,{asChild:!0,children:f.jsx("button",{onClick:c,className:l,children:f.jsx(Nt,{children:f.jsx(Vwe,{})})})}),f.jsx(_o,{children:"Format the Runtime Context JSON"})]}),f.jsxs(ha,{children:[f.jsx(fa,{asChild:!0,children:f.jsx("button",{onClick:i,className:l,children:f.jsx(Nt,{children:f.jsx(Y2,{})})})}),f.jsx(_o,{children:"Copy Runtime Context"})]})]})]}),f.jsx(bd,{value:n,onChange:r,theme:s,extensions:[cg],className:"h-[400px] overflow-y-scroll bg-surface3 rounded-lg overflow-hidden p-3"})]}),f.jsx("div",{className:"flex justify-end pt-2",children:f.jsx(vn,{onClick:a,children:"Save"})})]})})]})}const Eve=()=>{const[e,t]=D.useState(),[n,r]=D.useState(!0),[s,i]=D.useState(null);return D.useEffect(()=>{(async()=>{r(!0),i(null);try{const a=(await js.getMcpServers()).servers;t(a)}catch(a){const l=a instanceof Error?a.message:"Unknown error fetching MCP servers";console.error("Error fetching MCP servers",a),Wn.error(l),i(a instanceof Error?a:new Error(l)),t([])}finally{r(!1)}})()},[]),{servers:e,isLoading:n,error:s}},Dve=e=>{const[t,n]=D.useState({}),[r,s]=D.useState(!1),[i,o]=D.useState(null);return D.useEffect(()=>{(async()=>{if(!e){n({}),s(!1),o(null);return}s(!0),o(null);try{const c=(await js.getMcpServerTools(e.id)).tools,u={};c.forEach(d=>{u[d.id]=d}),n(u)}catch(l){const c=l instanceof Error?l.message:"Unknown error fetching MCP server tools";console.error(`Error fetching tools for MCP server ${e.name}:`,l),Wn.error(c),o(l instanceof Error?l:new Error(c)),n({})}finally{s(!1)}})()},[e]),{tools:t,isLoading:r,error:i}},WSt=({server:e})=>{const{tools:t,isLoading:n}=Dve(e),s=`${js.options.baseUrl||"http://localhost:4111"}/api/mcp/${e.id}/sse`,i=Object.keys(t||{}).length,o=Object.keys(t||{}).filter(u=>{var d;return((d=t==null?void 0:t[u])==null?void 0:d.toolType)==="agent"}).length,a=Object.keys(t||{}).filter(u=>{var d;return((d=t==null?void 0:t[u])==null?void 0:d.toolType)==="workflow"}).length,l=i-o-a,c=o>0||a>0;return f.jsxs(Xt,{to:`/mcps/${e.id}`,className:"flex justify-between items-center pl-5 pr-6 h-table-row border-b-sm border-border1 hover:bg-surface3 cursor-pointer group/mcp-server",children:[f.jsxs("div",{className:"flex gap-3 items-center",children:[f.jsx(Nt,{size:"lg",children:f.jsx(Y3,{})}),f.jsxs("div",{children:[f.jsx(tt,{variant:"ui-md",className:"font-medium text-icon6 !leading-none pb-1",children:e.name}),f.jsx(tt,{variant:"ui-xs",className:"text-icon3 !leading-none",children:s})]})]}),n?f.jsx(Cr,{className:"h-4 w-24"}):f.jsx("div",{className:"flex gap-x-2 items-center",children:f.jsxs(ha,{children:[f.jsx(fa,{asChild:!0,children:f.jsxs(vr,{icon:f.jsx(Bd,{className:"group-hover/mcp-server:text-[#ECB047]"}),children:[i," tool",i===1?"":"s"]})}),c&&f.jsx(_o,{children:f.jsxs("div",{className:"flex flex-col gap-1",children:[l>0&&f.jsxs("span",{children:[f.jsx(Bd,{className:"inline mr-1"}),l," tool",l===1?"":"s"]}),o>0&&f.jsxs("span",{children:[f.jsx(sh,{className:"inline mr-1"}),o," agent",o===1?"":"s"]}),a>0&&f.jsxs("span",{children:[f.jsx(wp,{className:"inline mr-1"}),a," workflow",a===1?"":"s"]})]})})]})})]})},GSt=()=>{const{servers:e,isLoading:t}=Eve(),n=e??[];return t?null:f.jsxs(Aa,{children:[f.jsx(ts,{children:f.jsx(ec,{children:"MCP Servers"})}),n.length===0?f.jsx(Ks,{isCentered:!0,children:f.jsx(fC,{iconSlot:f.jsx(tyt,{}),titleSlot:"Configure MCP servers",descriptionSlot:"MCP servers are not configured yet. You can find more information in the documentation.",actionSlot:f.jsxs(vn,{size:"lg",className:"w-full",variant:"light",as:"a",href:"https://mastra.ai/en/docs/getting-started/mcp-docs-server",target:"_blank",children:[f.jsx(Nt,{children:f.jsx(Y3,{})}),"Docs"]})})}):f.jsx(Ks,{children:f.jsx("ul",{children:(n||[]).map(r=>f.jsx("li",{children:f.jsx(WSt,{server:r})},r.id))})})]})},YSt=ap("block",{variants:{variant:{primary:"text-text",secondary:"text-text-dim"},size:{default:"text-base",xs:"text-xs",sm:"text-sm",md:"text-md",lg:"text-lg",xl:"text-xl","2xl":"text-2xl"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"primary",size:"default",weight:"normal"}}),UQ=({className:e,weight:t,variant:n,as:r="span",size:s,...i})=>f.jsx(r,{className:Ot(YSt({size:s,variant:n,weight:t,className:e})),...i}),XSt=(e,t)=>{const[n,r]=D.useState(null),[s,i]=D.useState(!1),[o,a]=D.useState(null);return D.useEffect(()=>{let l=!0;return(async()=>{if(!e||!t){r(null),i(!1),a(null);return}i(!0),a(null);try{const u=js.getMcpServerTool(e,t),d=await u.details();l&&r({instance:u,details:d})}catch(u){const d=u instanceof Error?u.message:"Unknown error fetching MCP tool details";console.error(`Error fetching details for MCP tool ${t} on server ${e}:`,u),l&&(Wn.error(d),a(u instanceof Error?u:new Error(d)),r(null))}finally{l&&i(!1)}})(),()=>{l=!1}},[e,t]),{tool:n,isLoading:s,error:o}},KSt=()=>{var A,T,N,F;const{serverId:e,toolId:t}=Zs(),r=nc().state,s=((A=r==null?void 0:r.toolData)==null?void 0:A.name)||t,i=(r==null?void 0:r.serverName)||e,{tool:o,isLoading:a,error:l}=XSt(e,t),{runtimeContext:c}=Dv(),[u,d]=D.useState(null),[p,m]=D.useState(!1),b=async M=>{if(!o||!o.instance){Wn.error("Tool is not properly initialized");return}m(!0),d(null);try{const I=await o.instance.execute({data:M,runtimeContext:c});d(I)}catch(I){const j=I instanceof Error?I.message:"Tool execution failed";console.error("MCP Tool execution error:",I),Wn.error(j),d({error:j})}finally{m(!1)}},x=((T=o==null?void 0:o.details)==null?void 0:T.name)||s;(N=o==null?void 0:o.details)==null||N.description;const C=(F=o==null?void 0:o.details)==null?void 0:F.toolType;if(a||!o&&!l)return f.jsxs("div",{className:"h-full w-full bg-mastra-bg-1",children:[f.jsx(ts,{children:f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/mcps",children:"MCP Servers"}),e&&f.jsx(zr,{as:Xt,to:"/mcps",children:i}),f.jsx(zr,{as:"span",to:"",isCurrent:!0,children:a?"Loading Tool...":s||"Tool"})]})}),f.jsxs("div",{className:"w-full h-full grid grid-cols-[300px_1fr] p-2 gap-2",children:[f.jsxs("div",{className:"flex flex-col gap-4 border-[0.5px] border-mastra-border-1 rounded-[0.25rem] bg-mastra-bg-2 p-4 py-6",children:[f.jsx(UQ,{variant:"secondary",className:"text-mastra-el-3 px-4",size:"xs",children:"Input"}),f.jsx(Cr,{className:"h-[200px] w-full"})]}),f.jsxs("div",{className:"flex flex-col gap-4 border-[0.5px] border-mastra-border-1 rounded-[0.25rem] bg-mastra-bg-2 p-4 py-6",children:[f.jsx(UQ,{variant:"secondary",className:"text-mastra-el-3 px-4",size:"xs",children:"Output"}),f.jsx(Cr,{className:"h-[200px] w-full"})]})]})]});if(l||!o)return f.jsxs("div",{className:"h-full w-full bg-mastra-bg-1 p-4",children:[f.jsx(ts,{children:f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/mcps",children:"MCP Servers"}),e&&f.jsx(zr,{as:Xt,to:"/mcps",children:i}),f.jsx(zr,{as:"span",to:"",isCurrent:!0,children:s||"Error"})]})}),f.jsxs("div",{className:"text-red-500 mt-4",children:["Error loading tool: ",(l==null?void 0:l.message)||"Tool not found."]})]});let S;try{S=hB(ep(o.details.inputSchema))}catch(M){console.error("Error processing input schema:",M),Wn.error("Failed to process tool input schema."),S=hn({})}return f.jsxs("div",{className:"h-full w-full bg-mastra-bg-1 overflow-y-hidden",children:[f.jsx(ts,{children:f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/mcps",children:"MCP Servers"}),f.jsx(zr,{as:Xt,to:`/mcps/${e}`,children:i}),f.jsx(zr,{as:"span",to:"",isCurrent:!0,children:x})]})}),f.jsx(bB,{executionResult:u,isExecutingTool:p,zodInputSchema:S,handleExecuteTool:b,toolDescription:x||"",toolId:t||"",toolType:C})]})},qQ=e=>{const t=yB();return f.jsxs("div",{className:"rounded-lg border-sm border-border1 bg-surface3 p-4 relative",children:[f.jsx("div",{className:"absolute top-4 right-4 z-10",children:f.jsx(q2,{tooltip:"Copy code",content:e.value||"No content"})}),f.jsx(bd,{extensions:[AKe()],theme:t,...e})]})},ZSt=()=>{const{serverId:e}=Zs(),{servers:t,isLoading:n}=Eve(),r=t==null?void 0:t.find(a=>a.id===e),s=js.options.baseUrl||"http://localhost:4111",i=`${s}/api/mcp/${e}/sse`,o=`${s}/api/mcp/${e}/mcp`;return f.jsxs(Aa,{children:[f.jsx(ts,{children:f.jsxs(xd,{children:[f.jsx(zr,{as:Xt,to:"/mcps",children:"MCP Servers"}),f.jsx(zr,{as:Xt,to:`/mcps/${e}`,isCurrent:!0,children:n?f.jsx(Cr,{className:"w-20 h-4"}):(r==null?void 0:r.name)||"Not found"})]})}),n?null:r?f.jsxs(Ks,{isDivided:!0,children:[f.jsxs("div",{className:"px-8 py-20 mx-auto max-w-[604px] w-full",children:[f.jsx(tt,{as:"h1",variant:"header-md",className:"text-icon6 font-medium pb-4",children:r.name}),f.jsxs("div",{className:"flex flex-col gap-1",children:[f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(vr,{icon:f.jsx("span",{className:"font-mono w-6 text-accent1 text-ui-xs font-medium",children:"SSE"}),className:"!text-icon4",children:i}),f.jsx(q2,{tooltip:"Copy SSE URL",content:i,iconSize:"sm"})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(vr,{icon:f.jsx("span",{className:"font-mono w-6 text-accent1 text-ui-xs font-medium",children:"HTTP"}),className:"!text-icon4",children:o}),f.jsx(q2,{tooltip:"Copy HTTP Stream URL",content:o,iconSize:"sm"})]})]}),f.jsxs("div",{className:"flex items-center gap-1 pt-3 pb-9",children:[f.jsx(vr,{icon:f.jsx(eyt,{className:"text-icon6"}),className:"rounded-r-sm !text-icon4",children:"Version"}),f.jsx(vr,{className:"rounded-l-sm !text-icon4",children:r.version_detail.version})]}),f.jsx(eCt,{sseUrl:i,serverName:r.name})]}),f.jsx("div",{className:"h-full overflow-y-scroll border-l-sm border-border1",children:f.jsx(JSt,{server:r})})]}):f.jsx(Ks,{children:f.jsx(tt,{as:"h1",variant:"header-md",className:"text-icon3 font-medium py-20 text-center",children:"Server not found"})})]})},JSt=({server:e})=>{const{tools:t,isLoading:n}=Dve(e);if(n)return null;const r=Object.keys(t);return f.jsxs("div",{className:"p-5 overflow-y-scroll",children:[f.jsxs("div",{className:"text-icon6 flex gap-2 items-center",children:[f.jsx(Nt,{size:"lg",className:"bg-surface4 rounded-md p-1",children:f.jsx(Y3,{})}),f.jsx(tt,{variant:"header-md",as:"h2",className:"font-medium",children:"Available Tools"})]}),f.jsx("div",{className:"flex flex-col gap-2 pt-6",children:r.map(s=>{const i=t[s];return f.jsx(QSt,{tool:i,serverId:e.id},s)})})]})},QSt=({tool:e,serverId:t})=>{const n=D.useRef(null),r=Cve[e.toolType||"tool"];return f.jsxs(n_,{onClick:()=>{var s;return(s=n.current)==null?void 0:s.click()},children:[f.jsx(r_,{children:f.jsx(r,{className:"group-hover/entity:text-[#ECB047]"})}),f.jsxs(o_,{children:[f.jsx(s_,{children:f.jsx(Xt,{ref:n,to:`/mcps/${t}/tools/${e.id}`,children:e.id})}),f.jsx(i_,{children:e.description})]})]})},eCt=({sseUrl:e,serverName:t})=>{const[n,r]=D.useState("cursor"),s="p-3 text-ui-lg text-icon3 font-medium border-b-2 border-transparent -mb-[0.5px]";return f.jsxs(a_,{onValueChange:r,value:n,children:[f.jsxs(pC,{className:"border-b-sm border-border1 w-full",children:[f.jsx(ba,{value:"cursor",className:zl(s,n==="cursor"&&"text-icon6 border-b-icon6"),children:"Cursor"}),f.jsx(ba,{value:"windsurf",className:zl(s,n==="windsurf"&&"text-icon6 border-b-icon6"),children:"Windsurf"})]}),f.jsxs(va,{value:"cursor",className:"pt-5",children:[f.jsxs(tt,{className:"text-icon3 pb-4",children:["Cursor comes with built-in MCP Support."," ",f.jsx(Xt,{to:"https://docs.cursor.com/context/model-context-protocol",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-icon6",children:"Following the documentation"}),", you can register an MCP server using SSE with the following configuration."]}),f.jsx(qQ,{editable:!1,value:`{
|
|
730
730
|
"mcpServers": {
|
|
731
731
|
"${t}": {
|
|
732
732
|
"url": "${e}"
|