@chocolatey-software/docs 2.2.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/docs.css +2 -1
- package/dist/css/docs.min.css +1 -1
- package/dist/scripts/docs.js +3513 -3482
- package/dist/scripts/docs.min.js +74 -74
- package/package.json +1 -1
package/dist/scripts/docs.min.js
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
(()=>{(()=>{var Ph=Object.create,jc=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,Nc=Object.getOwnPropertyNames,Nh=Object.getPrototypeOf,Rh=Object.prototype.hasOwnProperty,fi=(e,t)=>function(){return t||(0,e[Nc(e)[0]])((t={exports:{}}).exports,t),t.exports},zh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of Nc(t))!Rh.call(e,u)&&u!==n&&jc(e,u,{get:()=>t[u],enumerable:!(r=jh(t,u))||r.enumerable});return e},di=(e,t,n)=>(n=e!=null?Ph(Nh(e)):{},zh(t||!e||!e.__esModule?jc(n,"default",{value:e,enumerable:!0}):n,e)),Lh=fi({"src/scripts/lib/prism.js"(e,t){var n=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{},r=(function(u){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},c={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function S(x){return x instanceof l?new l(x.type,S(x.content),x.alias):Array.isArray(x)?x.map(S):x.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(S){return Object.prototype.toString.call(S).slice(8,-1)},objId:function(S){return S.__id||Object.defineProperty(S,"__id",{value:++i}),S.__id},clone:function S(x,O){O=O||{};var I,B;switch(c.util.type(x)){case"Object":if(B=c.util.objId(x),O[B])return O[B];I={},O[B]=I;for(var d in x)x.hasOwnProperty(d)&&(I[d]=S(x[d],O));return I;case"Array":return B=c.util.objId(x),O[B]?O[B]:(I=[],O[B]=I,x.forEach(function(q,N){I[N]=S(q,O)}),I);default:return x}},getLanguage:function(S){for(;S;){var x=a.exec(S.className);if(x)return x[1].toLowerCase();S=S.parentElement}return"none"},setLanguage:function(S,x){S.className=S.className.replace(RegExp(a,"gi"),""),S.classList.add("language-"+x)},currentScript:function(){if(typeof document=="undefined")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(I){var S=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(I.stack)||[])[1];if(S){var x=document.getElementsByTagName("script");for(var O in x)if(x[O].src==S)return x[O]}return null}},isActive:function(S,x,O){for(var I="no-"+x;S;){var B=S.classList;if(B.contains(x))return!0;if(B.contains(I))return!1;S=S.parentElement}return!!O}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(S,x){var O=c.util.clone(c.languages[S]);for(var I in x)O[I]=x[I];return O},insertBefore:function(S,x,O,I){I=I||c.languages;var B=I[S],d={};for(var q in B)if(B.hasOwnProperty(q)){if(q==x)for(var N in O)O.hasOwnProperty(N)&&(d[N]=O[N]);O.hasOwnProperty(q)||(d[q]=B[q])}var Z=I[S];return I[S]=d,c.languages.DFS(c.languages,function(z,H){H===Z&&z!=S&&(this[z]=d)}),d},DFS:function S(x,O,I,B){B=B||{};var d=c.util.objId;for(var q in x)if(x.hasOwnProperty(q)){O.call(x,q,x[q],I||q);var N=x[q],Z=c.util.type(N);Z==="Object"&&!B[d(N)]?(B[d(N)]=!0,S(N,O,null,B)):Z==="Array"&&!B[d(N)]&&(B[d(N)]=!0,S(N,O,q,B))}}},plugins:{},highlightAll:function(S,x){c.highlightAllUnder(document,S,x)},highlightAllUnder:function(S,x,O){var I={callback:O,container:S,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",I),I.elements=Array.prototype.slice.apply(I.container.querySelectorAll(I.selector)),c.hooks.run("before-all-elements-highlight",I);for(var B=0,d;d=I.elements[B++];)c.highlightElement(d,x===!0,I.callback)},highlightElement:function(S,x,O){var I=c.util.getLanguage(S),B=c.languages[I];c.util.setLanguage(S,I);var d=S.parentElement;d&&d.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(d,I);var q=S.textContent,N={element:S,language:I,grammar:B,code:q};function Z(H){N.highlightedCode=H,c.hooks.run("before-insert",N),N.element.innerHTML=N.highlightedCode,c.hooks.run("after-highlight",N),c.hooks.run("complete",N),O&&O.call(N.element)}if(c.hooks.run("before-sanity-check",N),d=N.element.parentElement,d&&d.nodeName.toLowerCase()==="pre"&&!d.hasAttribute("tabindex")&&d.setAttribute("tabindex","0"),!N.code){c.hooks.run("complete",N),O&&O.call(N.element);return}if(c.hooks.run("before-highlight",N),!N.grammar){Z(c.util.encode(N.code));return}if(x&&u.Worker){var z=new Worker(c.filename);z.onmessage=function(H){Z(H.data)},z.postMessage(JSON.stringify({language:N.language,code:N.code,immediateClose:!0}))}else Z(c.highlight(N.code,N.grammar,N.language))},highlight:function(S,x,O){var I={code:S,grammar:x,language:O};if(c.hooks.run("before-tokenize",I),!I.grammar)throw new Error('The language "'+I.language+'" has no grammar.');return I.tokens=c.tokenize(I.code,I.grammar),c.hooks.run("after-tokenize",I),l.stringify(c.util.encode(I.tokens),I.language)},tokenize:function(S,x){var O=x.rest;if(O){for(var I in O)x[I]=O[I];delete x.rest}var B=new g;return y(B,B.head,S),p(S,B,x,B.head,0),D(B)},hooks:{all:{},add:function(S,x){var O=c.hooks.all;O[S]=O[S]||[],O[S].push(x)},run:function(S,x){var O=c.hooks.all[S];if(!(!O||!O.length))for(var I=0,B;B=O[I++];)B(x)}},Token:l};u.Prism=c;function l(S,x,O,I){this.type=S,this.content=x,this.alias=O,this.length=(I||"").length|0}l.stringify=function S(x,O){if(typeof x=="string")return x;if(Array.isArray(x)){var I="";return x.forEach(function(Z){I+=S(Z,O)}),I}var B={type:x.type,content:S(x.content,O),tag:"span",classes:["token",x.type],attributes:{},language:O},d=x.alias;d&&(Array.isArray(d)?Array.prototype.push.apply(B.classes,d):B.classes.push(d)),c.hooks.run("wrap",B);var q="";for(var N in B.attributes)q+=" "+N+'="'+(B.attributes[N]||"").replace(/"/g,""")+'"';return"<"+B.tag+' class="'+B.classes.join(" ")+'"'+q+">"+B.content+"</"+B.tag+">"};function h(S,x,O,I){S.lastIndex=x;var B=S.exec(O);if(B&&I&&B[1]){var d=B[1].length;B.index+=d,B[0]=B[0].slice(d)}return B}function p(S,x,O,I,B,d){for(var q in O)if(!(!O.hasOwnProperty(q)||!O[q])){var N=O[q];N=Array.isArray(N)?N:[N];for(var Z=0;Z<N.length;++Z){if(d&&d.cause==q+","+Z)return;var z=N[Z],H=z.inside,L=!!z.lookbehind,K=!!z.greedy,J=z.alias;if(K&&!z.pattern.global){var W=z.pattern.toString().match(/[imsuy]*$/)[0];z.pattern=RegExp(z.pattern.source,W+"g")}for(var ee=z.pattern||z,ue=I.next,ye=B;ue!==x.tail&&!(d&&ye>=d.reach);ye+=ue.value.length,ue=ue.next){var oe=ue.value;if(x.length>S.length)return;if(!(oe instanceof l)){var ae=1,Y;if(K){if(Y=h(ee,ye,S,L),!Y||Y.index>=S.length)break;var pe=Y.index,ie=Y.index+Y[0].length,re=ye;for(re+=ue.value.length;pe>=re;)ue=ue.next,re+=ue.value.length;if(re-=ue.value.length,ye=re,ue.value instanceof l)continue;for(var de=ue;de!==x.tail&&(re<ie||typeof de.value=="string");de=de.next)ae++,re+=de.value.length;ae--,oe=S.slice(ye,re),Y.index-=ye}else if(Y=h(ee,0,oe,L),!Y)continue;var pe=Y.index,ve=Y[0],ke=oe.slice(0,pe),ze=oe.slice(pe+ve.length),Se=ye+oe.length;d&&Se>d.reach&&(d.reach=Se);var je=ue.prev;ke&&(je=y(x,je,ke),ye+=ke.length),F(x,je,ae);var Me=new l(q,H?c.tokenize(ve,H):ve,J,ve);if(ue=y(x,je,Me),ze&&y(x,ue,ze),ae>1){var ft={cause:q+","+Z,reach:Se};p(S,x,O,ue.prev,ye,ft),d&&ft.reach>d.reach&&(d.reach=ft.reach)}}}}}}function g(){var S={value:null,prev:null,next:null},x={value:null,prev:S,next:null};S.next=x,this.head=S,this.tail=x,this.length=0}function y(S,x,O){var I=x.next,B={value:O,prev:x,next:I};return x.next=B,I.prev=B,S.length++,B}function F(S,x,O){for(var I=x.next,B=0;B<O&&I!==S.tail;B++)I=I.next;x.next=I,I.prev=x,S.length-=B}function D(S){for(var x=[],O=S.head.next;O!==S.tail;)x.push(O.value),O=O.next;return x}if(!u.document)return u.addEventListener&&(c.disableWorkerMessageHandler||u.addEventListener("message",function(S){var x=JSON.parse(S.data),O=x.language,I=x.code,B=x.immediateClose;u.postMessage(c.highlight(I,c.languages[O],O)),B&&u.close()},!1)),c;var _=c.util.currentScript();_&&(c.filename=_.src,_.hasAttribute("data-manual")&&(c.manual=!0));function T(){c.manual||c.highlightAll()}if(!c.manual){var w=document.readyState;w==="loading"||w==="interactive"&&_&&_.defer?document.addEventListener("DOMContentLoaded",T):window.requestAnimationFrame?window.requestAnimationFrame(T):window.setTimeout(T,16)}return c})(n);typeof t!="undefined"&&t.exports&&(t.exports=r),typeof global!="undefined"&&(global.Prism=r),r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(u){u.type==="entity"&&(u.attributes.title=u.content.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(a,i){var o={};o["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[i]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var c={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};c["language-"+i]={pattern:/[\s\S]+/,inside:r.languages[i]};var l={};l[a]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:c},r.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(u,a){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+u+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[a,"language-"+a],inside:r.languages[a]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,(function(u){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;u.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+a.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},u.languages.css.atrule.inside.rest=u.languages.css;var i=u.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,(function(u){var a="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:i,environment:{pattern:RegExp("\\$"+a),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+a),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};u.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+a),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+a),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=u.languages.bash;for(var c=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=o.variable[1].inside,h=0;h<c.length;h++)l[c[h]]=u.languages.bash[c[h]];u.languages.sh=u.languages.bash,u.languages.shell=u.languages.bash})(r),(function(u){function a(Y,ie){return Y.replace(/<<(\d+)>>/g,function(re,de){return"(?:"+ie[+de]+")"})}function i(Y,ie,re){return RegExp(a(Y,ie),re||"")}function o(Y,ie){for(var re=0;re<ie;re++)Y=Y.replace(/<<self>>/g,function(){return"(?:"+Y+")"});return Y.replace(/<<self>>/g,"[^\\s\\S]")}var c={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function l(Y){return"\\b(?:"+Y.trim().replace(/ /g,"|")+")\\b"}var h=l(c.typeDeclaration),p=RegExp(l(c.type+" "+c.typeDeclaration+" "+c.contextual+" "+c.other)),g=l(c.typeDeclaration+" "+c.contextual+" "+c.other),y=l(c.type+" "+c.typeDeclaration+" "+c.other),F=o(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),D=o(/\((?:[^()]|<<self>>)*\)/.source,2),_=/@?\b[A-Za-z_]\w*\b/.source,T=a(/<<0>>(?:\s*<<1>>)?/.source,[_,F]),w=a(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[g,T]),S=/\[\s*(?:,\s*)*\]/.source,x=a(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[w,S]),O=a(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[F,D,S]),I=a(/\(<<0>>+(?:,<<0>>+)+\)/.source,[O]),B=a(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[I,w,S]),d={keyword:p,punctuation:/[<>()?,.:[\]]/},q=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,N=/"(?:\\.|[^\\"\r\n])*"/.source,Z=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;u.languages.csharp=u.languages.extend("clike",{string:[{pattern:i(/(^|[^$\\])<<0>>/.source,[Z]),lookbehind:!0,greedy:!0},{pattern:i(/(^|[^@$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:i(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[w]),lookbehind:!0,inside:d},{pattern:i(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[_,B]),lookbehind:!0,inside:d},{pattern:i(/(\busing\s+)<<0>>(?=\s*=)/.source,[_]),lookbehind:!0},{pattern:i(/(\b<<0>>\s+)<<1>>/.source,[h,T]),lookbehind:!0,inside:d},{pattern:i(/(\bcatch\s*\(\s*)<<0>>/.source,[w]),lookbehind:!0,inside:d},{pattern:i(/(\bwhere\s+)<<0>>/.source,[_]),lookbehind:!0},{pattern:i(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[x]),lookbehind:!0,inside:d},{pattern:i(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[B,y,_]),inside:d}],keyword:p,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),u.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),u.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:i(/([(,]\s*)<<0>>(?=\s*:)/.source,[_]),lookbehind:!0,alias:"punctuation"}}),u.languages.insertBefore("csharp","class-name",{namespace:{pattern:i(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[_]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:i(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[D]),lookbehind:!0,alias:"class-name",inside:d},"return-type":{pattern:i(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[B,w]),inside:d,alias:"class-name"},"constructor-invocation":{pattern:i(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[B]),lookbehind:!0,inside:d,alias:"class-name"},"generic-method":{pattern:i(/<<0>>\s*<<1>>(?=\s*\()/.source,[_,F]),inside:{function:i(/^<<0>>/.source,[_]),generic:{pattern:RegExp(F),alias:"class-name",inside:d}}},"type-list":{pattern:i(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[h,T,_,B,p.source,D,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:i(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[T,D]),lookbehind:!0,greedy:!0,inside:u.languages.csharp},keyword:p,"class-name":{pattern:RegExp(B),greedy:!0,inside:d},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var z=N+"|"+q,H=a(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[z]),L=o(a(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[H]),2),K=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,J=a(/<<0>>(?:\s*\(<<1>>*\))?/.source,[w,L]);u.languages.insertBefore("csharp","class-name",{attribute:{pattern:i(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[K,J]),lookbehind:!0,greedy:!0,inside:{target:{pattern:i(/^<<0>>(?=\s*:)/.source,[K]),alias:"keyword"},"attribute-arguments":{pattern:i(/\(<<0>>*\)/.source,[L]),inside:u.languages.csharp},"class-name":{pattern:RegExp(w),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var W=/:[^}\r\n]+/.source,ee=o(a(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[H]),2),ue=a(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ee,W]),ye=o(a(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[z]),2),oe=a(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ye,W]);function ae(Y,ie){return{interpolation:{pattern:i(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[Y]),lookbehind:!0,inside:{"format-string":{pattern:i(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ie,W]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:u.languages.csharp}}},string:/[\s\S]+/}}u.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:i(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ue]),lookbehind:!0,greedy:!0,inside:ae(ue,ee)},{pattern:i(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[oe]),lookbehind:!0,greedy:!0,inside:ae(oe,ye)}],char:{pattern:RegExp(q),greedy:!0}}),u.languages.dotnet=u.languages.cs=u.languages.csharp})(r),(function(u){u.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var a={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(a).forEach(function(i){var o=a[i],c=[];/^\w+$/.test(i)||c.push(/\w+/.exec(i)[0]),i==="diff"&&c.push("bold"),u.languages.diff[i]={pattern:RegExp("^(?:["+o+`].*(?:\r
|
|
1
|
+
(()=>{(()=>{var Bh=Object.create,$c=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,Zc=Object.getOwnPropertyNames,jh=Object.getPrototypeOf,Nh=Object.prototype.hasOwnProperty,vi=(e,t)=>function(){return t||(0,e[Zc(e)[0]])((t={exports:{}}).exports,t),t.exports},Rh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of Zc(t))!Nh.call(e,u)&&u!==n&&$c(e,u,{get:()=>t[u],enumerable:!(r=Ph(t,u))||r.enumerable});return e},mi=(e,t,n)=>(n=e!=null?Bh(jh(e)):{},Rh(t||!e||!e.__esModule?$c(n,"default",{value:e,enumerable:!0}):n,e)),zh=vi({"src/scripts/lib/prism.js"(e,t){var n=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{},r=(function(u){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},c={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function x(S){return S instanceof l?new l(S.type,x(S.content),S.alias):Array.isArray(S)?S.map(x):S.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(x){return Object.prototype.toString.call(x).slice(8,-1)},objId:function(x){return x.__id||Object.defineProperty(x,"__id",{value:++i}),x.__id},clone:function x(S,T){T=T||{};var I,B;switch(c.util.type(S)){case"Object":if(B=c.util.objId(S),T[B])return T[B];I={},T[B]=I;for(var d in S)S.hasOwnProperty(d)&&(I[d]=x(S[d],T));return I;case"Array":return B=c.util.objId(S),T[B]?T[B]:(I=[],T[B]=I,S.forEach(function(H,R){I[R]=x(H,T)}),I);default:return S}},getLanguage:function(x){for(;x;){var S=a.exec(x.className);if(S)return S[1].toLowerCase();x=x.parentElement}return"none"},setLanguage:function(x,S){x.className=x.className.replace(RegExp(a,"gi"),""),x.classList.add("language-"+S)},currentScript:function(){if(typeof document=="undefined")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(I){var x=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(I.stack)||[])[1];if(x){var S=document.getElementsByTagName("script");for(var T in S)if(S[T].src==x)return S[T]}return null}},isActive:function(x,S,T){for(var I="no-"+S;x;){var B=x.classList;if(B.contains(S))return!0;if(B.contains(I))return!1;x=x.parentElement}return!!T}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(x,S){var T=c.util.clone(c.languages[x]);for(var I in S)T[I]=S[I];return T},insertBefore:function(x,S,T,I){I=I||c.languages;var B=I[x],d={};for(var H in B)if(B.hasOwnProperty(H)){if(H==S)for(var R in T)T.hasOwnProperty(R)&&(d[R]=T[R]);T.hasOwnProperty(H)||(d[H]=B[H])}var Z=I[x];return I[x]=d,c.languages.DFS(c.languages,function(q,G){G===Z&&q!=x&&(this[q]=d)}),d},DFS:function x(S,T,I,B){B=B||{};var d=c.util.objId;for(var H in S)if(S.hasOwnProperty(H)){T.call(S,H,S[H],I||H);var R=S[H],Z=c.util.type(R);Z==="Object"&&!B[d(R)]?(B[d(R)]=!0,x(R,T,null,B)):Z==="Array"&&!B[d(R)]&&(B[d(R)]=!0,x(R,T,H,B))}}},plugins:{},highlightAll:function(x,S){c.highlightAllUnder(document,x,S)},highlightAllUnder:function(x,S,T){var I={callback:T,container:x,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",I),I.elements=Array.prototype.slice.apply(I.container.querySelectorAll(I.selector)),c.hooks.run("before-all-elements-highlight",I);for(var B=0,d;d=I.elements[B++];)c.highlightElement(d,S===!0,I.callback)},highlightElement:function(x,S,T){var I=c.util.getLanguage(x),B=c.languages[I];c.util.setLanguage(x,I);var d=x.parentElement;d&&d.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(d,I);var H=x.textContent,R={element:x,language:I,grammar:B,code:H};function Z(G){R.highlightedCode=G,c.hooks.run("before-insert",R),R.element.innerHTML=R.highlightedCode,c.hooks.run("after-highlight",R),c.hooks.run("complete",R),T&&T.call(R.element)}if(c.hooks.run("before-sanity-check",R),d=R.element.parentElement,d&&d.nodeName.toLowerCase()==="pre"&&!d.hasAttribute("tabindex")&&d.setAttribute("tabindex","0"),!R.code){c.hooks.run("complete",R),T&&T.call(R.element);return}if(c.hooks.run("before-highlight",R),!R.grammar){Z(c.util.encode(R.code));return}if(S&&u.Worker){var q=new Worker(c.filename);q.onmessage=function(G){Z(G.data)},q.postMessage(JSON.stringify({language:R.language,code:R.code,immediateClose:!0}))}else Z(c.highlight(R.code,R.grammar,R.language))},highlight:function(x,S,T){var I={code:x,grammar:S,language:T};if(c.hooks.run("before-tokenize",I),!I.grammar)throw new Error('The language "'+I.language+'" has no grammar.');return I.tokens=c.tokenize(I.code,I.grammar),c.hooks.run("after-tokenize",I),l.stringify(c.util.encode(I.tokens),I.language)},tokenize:function(x,S){var T=S.rest;if(T){for(var I in T)S[I]=T[I];delete S.rest}var B=new v;return y(B,B.head,x),m(x,B,S,B.head,0),D(B)},hooks:{all:{},add:function(x,S){var T=c.hooks.all;T[x]=T[x]||[],T[x].push(S)},run:function(x,S){var T=c.hooks.all[x];if(!(!T||!T.length))for(var I=0,B;B=T[I++];)B(S)}},Token:l};u.Prism=c;function l(x,S,T,I){this.type=x,this.content=S,this.alias=T,this.length=(I||"").length|0}l.stringify=function x(S,T){if(typeof S=="string")return S;if(Array.isArray(S)){var I="";return S.forEach(function(Z){I+=x(Z,T)}),I}var B={type:S.type,content:x(S.content,T),tag:"span",classes:["token",S.type],attributes:{},language:T},d=S.alias;d&&(Array.isArray(d)?Array.prototype.push.apply(B.classes,d):B.classes.push(d)),c.hooks.run("wrap",B);var H="";for(var R in B.attributes)H+=" "+R+'="'+(B.attributes[R]||"").replace(/"/g,""")+'"';return"<"+B.tag+' class="'+B.classes.join(" ")+'"'+H+">"+B.content+"</"+B.tag+">"};function p(x,S,T,I){x.lastIndex=S;var B=x.exec(T);if(B&&I&&B[1]){var d=B[1].length;B.index+=d,B[0]=B[0].slice(d)}return B}function m(x,S,T,I,B,d){for(var H in T)if(!(!T.hasOwnProperty(H)||!T[H])){var R=T[H];R=Array.isArray(R)?R:[R];for(var Z=0;Z<R.length;++Z){if(d&&d.cause==H+","+Z)return;var q=R[Z],G=q.inside,L=!!q.lookbehind,ne=!!q.greedy,Q=q.alias;if(ne&&!q.pattern.global){var $=q.pattern.toString().match(/[imsuy]*$/)[0];q.pattern=RegExp(q.pattern.source,$+"g")}for(var Y=q.pattern||q,re=I.next,me=B;re!==S.tail&&!(d&&me>=d.reach);me+=re.value.length,re=re.next){var se=re.value;if(S.length>x.length)return;if(!(se instanceof l)){var K=1,V;if(ne){if(V=p(Y,me,x,L),!V||V.index>=x.length)break;var ee=V.index,ue=V.index+V[0].length,oe=me;for(oe+=re.value.length;ee>=oe;)re=re.next,oe+=re.value.length;if(oe-=re.value.length,me=oe,re.value instanceof l)continue;for(var ce=re;ce!==S.tail&&(oe<ue||typeof ce.value=="string");ce=ce.next)K++,oe+=ce.value.length;K--,se=x.slice(me,oe),V.index-=me}else if(V=p(Y,0,se,L),!V)continue;var ee=V.index,he=V[0],Ce=se.slice(0,ee),Re=se.slice(ee+he.length),ge=me+se.length;d&&ge>d.reach&&(d.reach=ge);var Te=re.prev;Ce&&(Te=y(S,Te,Ce),me+=Ce.length),F(S,Te,K);var He=new l(H,G?c.tokenize(he,G):he,Q,he);if(re=y(S,Te,He),Re&&y(S,re,Re),K>1){var nt={cause:H+","+Z,reach:ge};m(x,S,T,re.prev,me,nt),d&&nt.reach>d.reach&&(d.reach=nt.reach)}}}}}}function v(){var x={value:null,prev:null,next:null},S={value:null,prev:x,next:null};x.next=S,this.head=x,this.tail=S,this.length=0}function y(x,S,T){var I=S.next,B={value:T,prev:S,next:I};return S.next=B,I.prev=B,x.length++,B}function F(x,S,T){for(var I=S.next,B=0;B<T&&I!==x.tail;B++)I=I.next;S.next=I,I.prev=S,x.length-=B}function D(x){for(var S=[],T=x.head.next;T!==x.tail;)S.push(T.value),T=T.next;return S}if(!u.document)return u.addEventListener&&(c.disableWorkerMessageHandler||u.addEventListener("message",function(x){var S=JSON.parse(x.data),T=S.language,I=S.code,B=S.immediateClose;u.postMessage(c.highlight(I,c.languages[T],T)),B&&u.close()},!1)),c;var _=c.util.currentScript();_&&(c.filename=_.src,_.hasAttribute("data-manual")&&(c.manual=!0));function O(){c.manual||c.highlightAll()}if(!c.manual){var w=document.readyState;w==="loading"||w==="interactive"&&_&&_.defer?document.addEventListener("DOMContentLoaded",O):window.requestAnimationFrame?window.requestAnimationFrame(O):window.setTimeout(O,16)}return c})(n);typeof t!="undefined"&&t.exports&&(t.exports=r),typeof global!="undefined"&&(global.Prism=r),r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(u){u.type==="entity"&&(u.attributes.title=u.content.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(a,i){var o={};o["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[i]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var c={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};c["language-"+i]={pattern:/[\s\S]+/,inside:r.languages[i]};var l={};l[a]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:c},r.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(u,a){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+u+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[a,"language-"+a],inside:r.languages[a]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,(function(u){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;u.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+a.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},u.languages.css.atrule.inside.rest=u.languages.css;var i=u.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,(function(u){var a="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:i,environment:{pattern:RegExp("\\$"+a),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+a),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};u.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+a),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+a),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=u.languages.bash;for(var c=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=o.variable[1].inside,p=0;p<c.length;p++)l[c[p]]=u.languages.bash[c[p]];u.languages.sh=u.languages.bash,u.languages.shell=u.languages.bash})(r),(function(u){function a(V,ue){return V.replace(/<<(\d+)>>/g,function(oe,ce){return"(?:"+ue[+ce]+")"})}function i(V,ue,oe){return RegExp(a(V,ue),oe||"")}function o(V,ue){for(var oe=0;oe<ue;oe++)V=V.replace(/<<self>>/g,function(){return"(?:"+V+")"});return V.replace(/<<self>>/g,"[^\\s\\S]")}var c={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function l(V){return"\\b(?:"+V.trim().replace(/ /g,"|")+")\\b"}var p=l(c.typeDeclaration),m=RegExp(l(c.type+" "+c.typeDeclaration+" "+c.contextual+" "+c.other)),v=l(c.typeDeclaration+" "+c.contextual+" "+c.other),y=l(c.type+" "+c.typeDeclaration+" "+c.other),F=o(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),D=o(/\((?:[^()]|<<self>>)*\)/.source,2),_=/@?\b[A-Za-z_]\w*\b/.source,O=a(/<<0>>(?:\s*<<1>>)?/.source,[_,F]),w=a(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[v,O]),x=/\[\s*(?:,\s*)*\]/.source,S=a(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[w,x]),T=a(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[F,D,x]),I=a(/\(<<0>>+(?:,<<0>>+)+\)/.source,[T]),B=a(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[I,w,x]),d={keyword:m,punctuation:/[<>()?,.:[\]]/},H=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,R=/"(?:\\.|[^\\"\r\n])*"/.source,Z=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;u.languages.csharp=u.languages.extend("clike",{string:[{pattern:i(/(^|[^$\\])<<0>>/.source,[Z]),lookbehind:!0,greedy:!0},{pattern:i(/(^|[^@$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:i(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[w]),lookbehind:!0,inside:d},{pattern:i(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[_,B]),lookbehind:!0,inside:d},{pattern:i(/(\busing\s+)<<0>>(?=\s*=)/.source,[_]),lookbehind:!0},{pattern:i(/(\b<<0>>\s+)<<1>>/.source,[p,O]),lookbehind:!0,inside:d},{pattern:i(/(\bcatch\s*\(\s*)<<0>>/.source,[w]),lookbehind:!0,inside:d},{pattern:i(/(\bwhere\s+)<<0>>/.source,[_]),lookbehind:!0},{pattern:i(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[S]),lookbehind:!0,inside:d},{pattern:i(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[B,y,_]),inside:d}],keyword:m,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),u.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),u.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:i(/([(,]\s*)<<0>>(?=\s*:)/.source,[_]),lookbehind:!0,alias:"punctuation"}}),u.languages.insertBefore("csharp","class-name",{namespace:{pattern:i(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[_]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:i(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[D]),lookbehind:!0,alias:"class-name",inside:d},"return-type":{pattern:i(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[B,w]),inside:d,alias:"class-name"},"constructor-invocation":{pattern:i(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[B]),lookbehind:!0,inside:d,alias:"class-name"},"generic-method":{pattern:i(/<<0>>\s*<<1>>(?=\s*\()/.source,[_,F]),inside:{function:i(/^<<0>>/.source,[_]),generic:{pattern:RegExp(F),alias:"class-name",inside:d}}},"type-list":{pattern:i(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[p,O,_,B,m.source,D,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:i(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[O,D]),lookbehind:!0,greedy:!0,inside:u.languages.csharp},keyword:m,"class-name":{pattern:RegExp(B),greedy:!0,inside:d},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var q=R+"|"+H,G=a(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[q]),L=o(a(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[G]),2),ne=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Q=a(/<<0>>(?:\s*\(<<1>>*\))?/.source,[w,L]);u.languages.insertBefore("csharp","class-name",{attribute:{pattern:i(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[ne,Q]),lookbehind:!0,greedy:!0,inside:{target:{pattern:i(/^<<0>>(?=\s*:)/.source,[ne]),alias:"keyword"},"attribute-arguments":{pattern:i(/\(<<0>>*\)/.source,[L]),inside:u.languages.csharp},"class-name":{pattern:RegExp(w),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var $=/:[^}\r\n]+/.source,Y=o(a(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[G]),2),re=a(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Y,$]),me=o(a(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[q]),2),se=a(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[me,$]);function K(V,ue){return{interpolation:{pattern:i(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[V]),lookbehind:!0,inside:{"format-string":{pattern:i(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ue,$]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:u.languages.csharp}}},string:/[\s\S]+/}}u.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:i(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[re]),lookbehind:!0,greedy:!0,inside:K(re,Y)},{pattern:i(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[se]),lookbehind:!0,greedy:!0,inside:K(se,me)}],char:{pattern:RegExp(H),greedy:!0}}),u.languages.dotnet=u.languages.cs=u.languages.csharp})(r),(function(u){u.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var a={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(a).forEach(function(i){var o=a[i],c=[];/^\w+$/.test(i)||c.push(/\w+/.exec(i)[0]),i==="diff"&&c.push("bold"),u.languages.diff[i]={pattern:RegExp("^(?:["+o+`].*(?:\r
|
|
2
2
|
?|
|
|
3
|
-
|(?![\\s\\S])))+`,"m"),alias:c,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(i)[0]}}}}),Object.defineProperty(u.languages.diff,"PREFIXES",{value:a})})(r),r.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},r.languages.webmanifest=r.languages.json,(function(u){var a=u.languages.powershell={"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0},comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:{function:{pattern:/(^|[^`])\$\((?:\$\(.*?\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:{}},"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0}}},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};a.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:a},boolean:a.boolean,variable:a.variable}})(r),(function(u){u.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var a=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:u.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];u.languages.puppet.heredoc[0].inside.interpolation=a,u.languages.puppet.string.inside["double-quoted"].inside.interpolation=a})(r),r.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},r.languages.python["string-interpolation"].inside.interpolation.inside.rest=r.languages.python,r.languages.py=r.languages.python,(function(u){u.languages.ruby=u.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),u.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var a={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:u.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete u.languages.ruby.function;var i="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;u.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+i+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:a,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:a,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),u.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+i),greedy:!0,inside:{interpolation:a,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:a,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:a,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+i),greedy:!0,inside:{interpolation:a,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:a,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete u.languages.ruby.string,u.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),u.languages.rb=u.languages.ruby})(r),r.languages.scss=r.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),r.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),r.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),r.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),r.languages.scss.atrule.inside.rest=r.languages.scss,(function(u){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");u.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:u.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},u.languages["sh-session"]=u.languages.shellsession=u.languages["shell-session"]})(r),(function(u){function a(l,h){u.languages[l]&&u.languages.insertBefore(l,"comment",{"doc-comment":h})}var i=u.languages.markup.tag,o={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:i}},c={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:i}};a("csharp",o),a("fsharp",o),a("vbnet",c)})(r),(function(u){var a=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+i.source+"(?:[ ]+"+a.source+")?|"+a.source+"(?:[ ]+"+i.source+")?)",c=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function h(p,g){g=(g||"").replace(/m/g,"")+"m";var y=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return p});return RegExp(y,g)}u.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+c+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:h(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:h(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:h(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:h(l),lookbehind:!0,greedy:!0},number:{pattern:h(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:a,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},u.languages.yml=u.languages.yaml})(r),(function(u){var a={pattern:/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i,alias:"constant"};u.languages["log-file"]={"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0},verbose:[{pattern:/\b(Trace)\b:/i,greedy:!0},{pattern:/\[(verbose|verb|vrb|vb|v)\]/i,greedy:!0}],debug:[{pattern:/\b(DEBUG|Debug)\b|\b(debug)\:/i,greedy:!0},{pattern:/\[(debug|dbug|dbg|de|d)\]/i,greedy:!0}],info:[{pattern:/\b(HINT|INFO|INFORMATION|Info|NOTICE|II)\b | \b(^[^\.\.]+$)\b | \b(info|information)\:/,greedy:!0},{pattern:/\[(information|info|inf|in|i)\]/i,greedy:!0}],warning:[{pattern:/\b(WARNING|WARN|Warn|WW)\b|\b(warning)\:/i,greedy:!0},{pattern:/\[(warning|warn|wrn|wn|w)\]/i,greedy:!0}],error:[{pattern:/\b(ALERT|CRITICAL|EMERGENCY|ERROR|FAILURE|FAIL|Fatal|FATAL|Error|EE)\b|\b(error)\:/i,greedy:!0},{pattern:/\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)\]/i,greedy:!0}],date:[{pattern:/\b\d{4}-\d{2}-\d{2}(T|\b)/i,greedy:!0},{pattern:/\b\d{2}[^\w\s]\d{2}[^\w\s]\d{4}\b/i,greedy:!0},{pattern:/\d{1,2}:\d{2}(:\d{2}([.,]\d{1,})?)?(Z| ?[+-]\d{1,2}:\d{2})?\b/i,greedy:!0}],guid:a,"text-string":[{pattern:/[a-zA-Z]'[a-zA-Z]/i,greedy:!0},{pattern:/[a-zA-Z]\('[a-zA-Z]/i,greedy:!0}],string:[{pattern:/"[^"]*"/i,greedy:!0,inside:{"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0}}},{pattern:/'[^']*'/i,greedy:!0}],exceptiontype:{pattern:/\b([a-zA-Z.]*Exception)\b/i,greedy:!0},"text-constant":{pattern:/(\\[\w-]+.\w+)/i,greedy:!0},constant:[{pattern:/\b([0-9]+|true|false|null)\b/i,greedy:!0},{pattern:/\b(http|https|ftp|file):\/\S+\b\/?/i,greedy:!0},{pattern:/([\w-]+\.)+([\w-])+(?![\w/\\])/i,greedy:!0}]},u.languages.log=u.languages["log-file"]})(r),(function(){if(typeof r=="undefined"||typeof document=="undefined")return;var u="line-numbers",a=/\n(?!$)/g,i=r.plugins.lineNumbers={getLine:function(h,p){if(!(h.tagName!=="PRE"||!h.classList.contains(u))){var g=h.querySelector(".line-numbers-rows");if(g){var y=parseInt(h.getAttribute("data-start"),10)||1,F=y+(g.children.length-1);p<y&&(p=y),p>F&&(p=F);var D=p-y;return g.children[D]}}},resize:function(h){o([h])},assumeViewportIndependence:!0};function o(h){if(h=h.filter(function(g){var y=c(g),F=y["white-space"];return F==="pre-wrap"||F==="pre-line"}),h.length!=0){var p=h.map(function(g){var y=g.querySelector("code"),F=g.querySelector(".line-numbers-rows");if(!(!y||!F)){var D=g.querySelector(".line-numbers-sizer"),_=y.textContent.split(a);D||(D=document.createElement("span"),D.className="line-numbers-sizer",y.appendChild(D)),D.innerHTML="0",D.style.display="block";var T=D.getBoundingClientRect().height;return D.innerHTML="",{element:g,lines:_,lineHeights:[],oneLinerHeight:T,sizer:D}}}).filter(Boolean);p.forEach(function(g){var y=g.sizer,F=g.lines,D=g.lineHeights,_=g.oneLinerHeight;D[F.length-1]=void 0,F.forEach(function(T,w){if(T&&T.length>1){var S=y.appendChild(document.createElement("span"));S.style.display="block",S.textContent=T}else D[w]=_})}),p.forEach(function(g){for(var y=g.sizer,F=g.lineHeights,D=0,_=0;_<F.length;_++)F[_]===void 0&&(F[_]=y.children[D++].getBoundingClientRect().height)}),p.forEach(function(g){var y=g.sizer,F=g.element.querySelector(".line-numbers-rows");y.style.display="none",y.innerHTML="",g.lineHeights.forEach(function(D,_){F.children[_].style.height=D+"px"})})}}function c(h){return h?window.getComputedStyle?getComputedStyle(h):h.currentStyle||null:null}var l=void 0;window.addEventListener("resize",function(){i.assumeViewportIndependence&&l===window.innerWidth||(l=window.innerWidth,o(Array.prototype.slice.call(document.querySelectorAll("pre."+u))))}),r.hooks.add("complete",function(h){if(h.code){var p=h.element,g=p.parentNode;if(!(!g||!/pre/i.test(g.nodeName))&&!p.querySelector(".line-numbers-rows")&&r.util.isActive(p,u)){p.classList.remove(u),g.classList.add(u);var y=h.code.match(a),F=y?y.length+1:1,D,_=new Array(F+1).join("<span></span>");D=document.createElement("span"),D.setAttribute("aria-hidden","true"),D.className="line-numbers-rows",D.innerHTML=_,g.hasAttribute("data-start")&&(g.style.counterReset="linenumber "+(parseInt(g.getAttribute("data-start"),10)-1)),h.element.appendChild(D),o([g]),r.hooks.run("line-numbers",h)}}}),r.hooks.add("line-numbers",function(h){h.plugins=h.plugins||{},h.plugins.lineNumbers=!0})})(),(function(){if(typeof r=="undefined"||typeof document=="undefined")return;var u=[],a={},i=function(){};r.plugins.toolbar={};var o=r.plugins.toolbar.registerButton=function(h,p){var g;if(typeof p=="function"?g=p:g=function(y){var F;return typeof p.onClick=="function"?(F=document.createElement("button"),F.type="button",F.addEventListener("click",function(){p.onClick.call(this,y)})):typeof p.url=="string"?(F=document.createElement("a"),F.href=p.url):F=document.createElement("span"),p.className&&F.classList.add(p.className),F.textContent=p.text,F},h in a){console.warn('There is a button with the key "'+h+'" registered already.');return}u.push(a[h]=g)};function c(h){for(;h;){var p=h.getAttribute("data-toolbar-order");if(p!=null)return p=p.trim(),p.length?p.split(/\s*,\s*/g):[];h=h.parentElement}}var l=r.plugins.toolbar.hook=function(h){var p=h.element.parentNode;if(!(!p||!/pre/i.test(p.nodeName))&&!p.parentNode.classList.contains("code-toolbar")){var g=document.createElement("div");g.classList.add("code-toolbar"),p.parentNode.insertBefore(g,p),g.appendChild(p);var y=document.createElement("div");y.classList.add("toolbar");var F=u,D=c(h.element);D&&(F=D.map(function(_){return a[_]||i})),F.forEach(function(_){var T=_(h);if(T){var w=document.createElement("div");w.classList.add("toolbar-item"),w.appendChild(T),y.appendChild(w)}}),g.appendChild(y)}};o("label",function(h){var p=h.element.parentNode;if(!(!p||!/pre/i.test(p.nodeName))&&p.hasAttribute("data-label")){var g,y,F=p.getAttribute("data-label");try{y=document.querySelector("template#"+F)}catch(D){}return y?g=y.content:(p.hasAttribute("data-url")?(g=document.createElement("a"),g.href=p.getAttribute("data-url")):g=document.createElement("span"),g.textContent=F),g}}),r.hooks.add("complete",l)})(),(function(){if(typeof r=="undefined"||typeof document=="undefined")return;if(!r.plugins.toolbar){console.warn("Copy to Clipboard plugin loaded before Toolbar plugin.");return}function u(l,h){l.addEventListener("click",function(){i(h)})}function a(l){var h=document.createElement("textarea");h.value=l.getText(),h.style.top="0",h.style.left="0",h.style.position="fixed",document.body.appendChild(h),h.focus(),h.select();try{var p=document.execCommand("copy");setTimeout(function(){p?l.success():l.error()},1)}catch(g){setTimeout(function(){l.error(g)},1)}document.body.removeChild(h)}function i(l){navigator.clipboard?navigator.clipboard.writeText(l.getText()).then(l.success,function(){a(l)}):a(l)}function o(l){window.getSelection().selectAllChildren(l)}function c(l){var h={copy:"Copy","copy-error":"Press Ctrl+C to copy","copy-success":"Copied!","copy-timeout":5e3},p="data-prismjs-";for(var g in h){for(var y=p+g,F=l;F&&!F.hasAttribute(y);)F=F.parentElement;F&&(h[g]=F.getAttribute(y))}return h}r.plugins.toolbar.registerButton("copy-to-clipboard",function(l){var h=l.element,p=c(h),g=document.createElement("button");g.className="copy-to-clipboard-button",g.setAttribute("type","button");var y=document.createElement("span");return g.appendChild(y),D("copy"),u(g,{getText:function(){return h.textContent},success:function(){D("copy-success"),F()},error:function(){D("copy-error"),setTimeout(function(){o(h)},1),F()}}),g;function F(){setTimeout(function(){D("copy")},p["copy-timeout"])}function D(_){y.textContent=p[_],g.setAttribute("data-copy-state",_)}})})(),(function(){if(typeof r!="undefined"){var u=/^diff-([\w-]+)/i,a=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/g,i=RegExp(/(?:__|[^\r\n<])*(?:\r\n?|\n|(?:__|[^\r\n<])(?![^\r\n]))/.source.replace(/__/g,function(){return a.source}),"gi"),o=!1;r.hooks.add("before-sanity-check",function(c){var l=c.language;u.test(l)&&!c.grammar&&(c.grammar=r.languages[l]=r.languages.diff)}),r.hooks.add("before-tokenize",function(c){!o&&!r.languages.diff&&!r.plugins.autoloader&&(o=!0,console.warn("Prism's Diff Highlight plugin requires the Diff language definition (prism-diff.js).Make sure the language definition is loaded or use Prism's Autoloader plugin."));var l=c.language;u.test(l)&&!r.languages[l]&&(r.languages[l]=r.languages.diff)}),r.hooks.add("wrap",function(c){var l,h;if(c.language!=="diff"){var p=u.exec(c.language);if(!p)return;l=p[1],h=r.languages[l]}var g=r.languages.diff&&r.languages.diff.PREFIXES;if(g&&c.type in g){var y=c.content.replace(a,""),F=y.replace(/</g,"<").replace(/&/g,"&"),D=F.replace(/(^|[\r\n])./g,"$1"),_;h?_=r.highlight(D,h,l):_=r.util.encode(D);var T=new r.Token("prefix",g[c.type],[/\w+/.exec(c.type)[0]]),w=r.Token.stringify(T,c.language),S=[],x;for(i.lastIndex=0;x=i.exec(_);)S.push(w+x[0]);/(?:^|[\r\n]).$/.test(F)&&S.push(w),c.content=S.join(""),h&&c.classes.push("language-"+l)}})}})()}}),Mh=fi({"node_modules/clipboard/dist/clipboard.js"(e,t){(function(r,u){typeof e=="object"&&typeof t=="object"?t.exports=u():typeof define=="function"&&define.amd?define([],u):typeof e=="object"?e.ClipboardJS=u():r.ClipboardJS=u()})(e,function(){return(function(){var n={686:(function(a,i,o){"use strict";o.d(i,{default:function(){return oe}});var c=o(279),l=o.n(c),h=o(370),p=o.n(h),g=o(817),y=o.n(g);function F(ae){try{return document.execCommand(ae)}catch(Y){return!1}}var D=function(Y){var ie=y()(Y);return F("cut"),ie},_=D;function T(ae){var Y=document.documentElement.getAttribute("dir")==="rtl",ie=document.createElement("textarea");ie.style.fontSize="12pt",ie.style.border="0",ie.style.padding="0",ie.style.margin="0",ie.style.position="absolute",ie.style[Y?"right":"left"]="-9999px";var re=window.pageYOffset||document.documentElement.scrollTop;return ie.style.top="".concat(re,"px"),ie.setAttribute("readonly",""),ie.value=ae,ie}var w=function(Y,ie){var re=T(Y);ie.container.appendChild(re);var de=y()(re);return F("copy"),re.remove(),de},S=function(Y){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},re="";return typeof Y=="string"?re=w(Y,ie):Y instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Y==null?void 0:Y.type)?re=w(Y.value,ie):(re=y()(Y),F("copy")),re},x=S;function O(ae){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(ie){return typeof ie}:O=function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},O(ae)}var I=function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ie=Y.action,re=ie===void 0?"copy":ie,de=Y.container,pe=Y.target,ve=Y.text;if(re!=="copy"&&re!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(pe!==void 0)if(pe&&O(pe)==="object"&&pe.nodeType===1){if(re==="copy"&&pe.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(re==="cut"&&(pe.hasAttribute("readonly")||pe.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ve)return x(ve,{container:de});if(pe)return re==="cut"?_(pe):x(pe,{container:de})},B=I;function d(ae){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(ie){return typeof ie}:d=function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},d(ae)}function q(ae,Y){if(!(ae instanceof Y))throw new TypeError("Cannot call a class as a function")}function N(ae,Y){for(var ie=0;ie<Y.length;ie++){var re=Y[ie];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(ae,re.key,re)}}function Z(ae,Y,ie){return Y&&N(ae.prototype,Y),ie&&N(ae,ie),ae}function z(ae,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function");ae.prototype=Object.create(Y&&Y.prototype,{constructor:{value:ae,writable:!0,configurable:!0}}),Y&&H(ae,Y)}function H(ae,Y){return H=Object.setPrototypeOf||function(re,de){return re.__proto__=de,re},H(ae,Y)}function L(ae){var Y=W();return function(){var re=ee(ae),de;if(Y){var pe=ee(this).constructor;de=Reflect.construct(re,arguments,pe)}else de=re.apply(this,arguments);return K(this,de)}}function K(ae,Y){return Y&&(d(Y)==="object"||typeof Y=="function")?Y:J(ae)}function J(ae){if(ae===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae}function W(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ae){return!1}}function ee(ae){return ee=Object.setPrototypeOf?Object.getPrototypeOf:function(ie){return ie.__proto__||Object.getPrototypeOf(ie)},ee(ae)}function ue(ae,Y){var ie="data-clipboard-".concat(ae);if(Y.hasAttribute(ie))return Y.getAttribute(ie)}var ye=(function(ae){z(ie,ae);var Y=L(ie);function ie(re,de){var pe;return q(this,ie),pe=Y.call(this),pe.resolveOptions(de),pe.listenClick(re),pe}return Z(ie,[{key:"resolveOptions",value:function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof de.action=="function"?de.action:this.defaultAction,this.target=typeof de.target=="function"?de.target:this.defaultTarget,this.text=typeof de.text=="function"?de.text:this.defaultText,this.container=d(de.container)==="object"?de.container:document.body}},{key:"listenClick",value:function(de){var pe=this;this.listener=p()(de,"click",function(ve){return pe.onClick(ve)})}},{key:"onClick",value:function(de){var pe=de.delegateTarget||de.currentTarget,ve=this.action(pe)||"copy",ke=B({action:ve,container:this.container,target:this.target(pe),text:this.text(pe)});this.emit(ke?"success":"error",{action:ve,text:ke,trigger:pe,clearSelection:function(){pe&&pe.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(de){return ue("action",de)}},{key:"defaultTarget",value:function(de){var pe=ue("target",de);if(pe)return document.querySelector(pe)}},{key:"defaultText",value:function(de){return ue("text",de)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(de){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return x(de,pe)}},{key:"cut",value:function(de){return _(de)}},{key:"isSupported",value:function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],pe=typeof de=="string"?[de]:de,ve=!!document.queryCommandSupported;return pe.forEach(function(ke){ve=ve&&!!document.queryCommandSupported(ke)}),ve}}]),ie})(l()),oe=ye}),828:(function(a){var i=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}function c(l,h){for(;l&&l.nodeType!==i;){if(typeof l.matches=="function"&&l.matches(h))return l;l=l.parentNode}}a.exports=c}),438:(function(a,i,o){var c=o(828);function l(g,y,F,D,_){var T=p.apply(this,arguments);return g.addEventListener(F,T,_),{destroy:function(){g.removeEventListener(F,T,_)}}}function h(g,y,F,D,_){return typeof g.addEventListener=="function"?l.apply(null,arguments):typeof F=="function"?l.bind(null,document).apply(null,arguments):(typeof g=="string"&&(g=document.querySelectorAll(g)),Array.prototype.map.call(g,function(T){return l(T,y,F,D,_)}))}function p(g,y,F,D){return function(_){_.delegateTarget=c(_.target,y),_.delegateTarget&&D.call(g,_)}}a.exports=h}),879:(function(a,i){i.node=function(o){return o!==void 0&&o instanceof HTMLElement&&o.nodeType===1},i.nodeList=function(o){var c=Object.prototype.toString.call(o);return o!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in o&&(o.length===0||i.node(o[0]))},i.string=function(o){return typeof o=="string"||o instanceof String},i.fn=function(o){var c=Object.prototype.toString.call(o);return c==="[object Function]"}}),370:(function(a,i,o){var c=o(879),l=o(438);function h(F,D,_){if(!F&&!D&&!_)throw new Error("Missing required arguments");if(!c.string(D))throw new TypeError("Second argument must be a String");if(!c.fn(_))throw new TypeError("Third argument must be a Function");if(c.node(F))return p(F,D,_);if(c.nodeList(F))return g(F,D,_);if(c.string(F))return y(F,D,_);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function p(F,D,_){return F.addEventListener(D,_),{destroy:function(){F.removeEventListener(D,_)}}}function g(F,D,_){return Array.prototype.forEach.call(F,function(T){T.addEventListener(D,_)}),{destroy:function(){Array.prototype.forEach.call(F,function(T){T.removeEventListener(D,_)})}}}function y(F,D,_){return l(document.body,F,D,_)}a.exports=h}),817:(function(a){function i(o){var c;if(o.nodeName==="SELECT")o.focus(),c=o.value;else if(o.nodeName==="INPUT"||o.nodeName==="TEXTAREA"){var l=o.hasAttribute("readonly");l||o.setAttribute("readonly",""),o.select(),o.setSelectionRange(0,o.value.length),l||o.removeAttribute("readonly"),c=o.value}else{o.hasAttribute("contenteditable")&&o.focus();var h=window.getSelection(),p=document.createRange();p.selectNodeContents(o),h.removeAllRanges(),h.addRange(p),c=h.toString()}return c}a.exports=i}),279:(function(a){function i(){}i.prototype={on:function(o,c,l){var h=this.e||(this.e={});return(h[o]||(h[o]=[])).push({fn:c,ctx:l}),this},once:function(o,c,l){var h=this;function p(){h.off(o,p),c.apply(l,arguments)}return p._=c,this.on(o,p,l)},emit:function(o){var c=[].slice.call(arguments,1),l=((this.e||(this.e={}))[o]||[]).slice(),h=0,p=l.length;for(h;h<p;h++)l[h].fn.apply(l[h].ctx,c);return this},off:function(o,c){var l=this.e||(this.e={}),h=l[o],p=[];if(h&&c)for(var g=0,y=h.length;g<y;g++)h[g].fn!==c&&h[g].fn._!==c&&p.push(h[g]);return p.length?l[o]=p:delete l[o],this}},a.exports=i,a.exports.TinyEmitter=i})},r={};function u(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[a](i,i.exports,u),i.exports}return(function(){u.n=function(a){var i=a&&a.__esModule?(function(){return a.default}):(function(){return a});return u.d(i,{a:i}),i}})(),(function(){u.d=function(a,i){for(var o in i)u.o(i,o)&&!u.o(a,o)&&Object.defineProperty(a,o,{enumerable:!0,get:i[o]})}})(),(function(){u.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),u(686)})().default})}}),$h=fi({"node_modules/anchor-js/anchor.js"(e,t){(function(n,r){"use strict";typeof define=="function"&&define.amd?define([],r):typeof t=="object"&&t.exports?t.exports=r():(n.AnchorJS=r(),n.anchors=new n.AnchorJS)})(globalThis,function(){"use strict";function n(r){this.options=r||{},this.elements=[];function u(o){o.icon=Object.prototype.hasOwnProperty.call(o,"icon")?o.icon:"\uE9CB",o.visible=Object.prototype.hasOwnProperty.call(o,"visible")?o.visible:"hover",o.placement=Object.prototype.hasOwnProperty.call(o,"placement")?o.placement:"right",o.ariaLabel=Object.prototype.hasOwnProperty.call(o,"ariaLabel")?o.ariaLabel:"Anchor",o.class=Object.prototype.hasOwnProperty.call(o,"class")?o.class:"",o.base=Object.prototype.hasOwnProperty.call(o,"base")?o.base:"",o.truncate=Object.prototype.hasOwnProperty.call(o,"truncate")?Math.floor(o.truncate):64,o.titleText=Object.prototype.hasOwnProperty.call(o,"titleText")?o.titleText:""}u(this.options),this.add=function(o){var c,l,h,p,g,y,F,D,_,T,w,S=[];if(u(this.options),o||(o="h2, h3, h4, h5, h6"),c=a(o),c.length===0)return this;for(i(),l=document.querySelectorAll("[id]"),h=[].map.call(l,function(x){return x.id}),g=0;g<c.length;g++){if(this.hasAnchorJSLink(c[g])){S.push(g);continue}if(c[g].hasAttribute("id"))p=c[g].getAttribute("id");else if(c[g].hasAttribute("data-anchor-id"))p=c[g].getAttribute("data-anchor-id");else{D=this.urlify(c[g].textContent),_=D,F=0;do y!==void 0&&(_=D+"-"+F),y=h.indexOf(_),F+=1;while(y!==-1);y=void 0,h.push(_),c[g].setAttribute("id",_),p=_}T=document.createElement("a"),T.className="anchorjs-link "+this.options.class,T.setAttribute("aria-label",this.options.ariaLabel),T.setAttribute("data-anchorjs-icon",this.options.icon),this.options.titleText&&(T.title=this.options.titleText),w=document.querySelector("base")?window.location.pathname+window.location.search:"",w=this.options.base||w,T.href=w+"#"+p,this.options.visible==="always"&&(T.style.opacity="1"),this.options.icon==="\uE9CB"&&(T.style.font="1em/1 anchorjs-icons",this.options.placement==="left"&&(T.style.lineHeight="inherit")),this.options.placement==="left"?(T.style.position="absolute",T.style.marginLeft="-1.25em",T.style.paddingRight=".25em",T.style.paddingLeft=".25em",c[g].insertBefore(T,c[g].firstChild)):(T.style.marginLeft=".1875em",T.style.paddingRight=".1875em",T.style.paddingLeft=".1875em",c[g].appendChild(T))}for(g=0;g<S.length;g++)c.splice(S[g]-g,1);return this.elements=this.elements.concat(c),this},this.remove=function(o){for(var c,l,h=a(o),p=0;p<h.length;p++)l=h[p].querySelector(".anchorjs-link"),l&&(c=this.elements.indexOf(h[p]),c!==-1&&this.elements.splice(c,1),h[p].removeChild(l));return this},this.removeAll=function(){this.remove(this.elements)},this.urlify=function(o){var c=document.createElement("textarea");c.innerHTML=o,o=c.value;var l=/[& +$,:;=?@"#{}|^~[`%!'<>\]./()*\\\n\t\b\v\u00A0]/g;return this.options.truncate||u(this.options),o.trim().replace(/'/gi,"").replace(l,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(o){var c=o.firstChild&&(" "+o.firstChild.className+" ").indexOf(" anchorjs-link ")>-1,l=o.lastChild&&(" "+o.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return c||l||!1};function a(o){var c;if(typeof o=="string"||o instanceof String)c=[].slice.call(document.querySelectorAll(o));else if(Array.isArray(o)||o instanceof NodeList)c=[].slice.call(o);else throw new TypeError("The selector provided to AnchorJS was invalid.");return c}function i(){if(document.head.querySelector("style.anchorjs")===null){var o=document.createElement("style"),c=".anchorjs-link{opacity:0;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",l=":hover>.anchorjs-link,.anchorjs-link:focus{opacity:1}",h='@font-face{font-family:anchorjs-icons;src:url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype")}',p="[data-anchorjs-icon]::after{content:attr(data-anchorjs-icon)}",g;o.className="anchorjs",o.appendChild(document.createTextNode("")),g=document.head.querySelector('[rel="stylesheet"],style'),g===void 0?document.head.appendChild(o):document.head.insertBefore(o,g),o.sheet.insertRule(c,o.sheet.cssRules.length),o.sheet.insertRule(l,o.sheet.cssRules.length),o.sheet.insertRule(p,o.sheet.cssRules.length),o.sheet.insertRule(h,o.sheet.cssRules.length)}}}return n})}}),Zh=fi({"node_modules/jquery/dist/jquery.js"(e,t){(function(n,r){"use strict";typeof t=="object"&&typeof t.exports=="object"?t.exports=n.document?r(n,!0):function(u){if(!u.document)throw new Error("jQuery requires a window with a document");return r(u)}:r(n)})(typeof window!="undefined"?window:e,function(n,r){"use strict";var u=[],a=Object.getPrototypeOf,i=u.slice,o=u.flat?function(s){return u.flat.call(s)}:function(s){return u.concat.apply([],s)},c=u.push,l=u.indexOf,h={},p=h.toString,g=h.hasOwnProperty,y=g.toString,F=y.call(Object),D={},_=function(f){return typeof f=="function"&&typeof f.nodeType!="number"&&typeof f.item!="function"},T=function(f){return f!=null&&f===f.window},w=n.document,S={type:!0,src:!0,nonce:!0,noModule:!0};function x(s,f,v){v=v||w;var m,A,E=v.createElement("script");if(E.text=s,f)for(m in S)A=f[m]||f.getAttribute&&f.getAttribute(m),A&&E.setAttribute(m,A);v.head.appendChild(E).parentNode.removeChild(E)}function O(s){return s==null?s+"":typeof s=="object"||typeof s=="function"?h[p.call(s)]||"object":typeof s}var I="3.7.1",B=/HTML$/i,d=function(s,f){return new d.fn.init(s,f)};d.fn=d.prototype={jquery:I,constructor:d,length:0,toArray:function(){return i.call(this)},get:function(s){return s==null?i.call(this):s<0?this[s+this.length]:this[s]},pushStack:function(s){var f=d.merge(this.constructor(),s);return f.prevObject=this,f},each:function(s){return d.each(this,s)},map:function(s){return this.pushStack(d.map(this,function(f,v){return s.call(f,v,f)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(d.grep(this,function(s,f){return(f+1)%2}))},odd:function(){return this.pushStack(d.grep(this,function(s,f){return f%2}))},eq:function(s){var f=this.length,v=+s+(s<0?f:0);return this.pushStack(v>=0&&v<f?[this[v]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:u.sort,splice:u.splice},d.extend=d.fn.extend=function(){var s,f,v,m,A,E,k=arguments[0]||{},R=1,j=arguments.length,$=!1;for(typeof k=="boolean"&&($=k,k=arguments[R]||{},R++),typeof k!="object"&&!_(k)&&(k={}),R===j&&(k=this,R--);R<j;R++)if((s=arguments[R])!=null)for(f in s)m=s[f],!(f==="__proto__"||k===m)&&($&&m&&(d.isPlainObject(m)||(A=Array.isArray(m)))?(v=k[f],A&&!Array.isArray(v)?E=[]:!A&&!d.isPlainObject(v)?E={}:E=v,A=!1,k[f]=d.extend($,E,m)):m!==void 0&&(k[f]=m));return k},d.extend({expando:"jQuery"+(I+Math.random()).replace(/\D/g,""),isReady:!0,error:function(s){throw new Error(s)},noop:function(){},isPlainObject:function(s){var f,v;return!s||p.call(s)!=="[object Object]"?!1:(f=a(s),f?(v=g.call(f,"constructor")&&f.constructor,typeof v=="function"&&y.call(v)===F):!0)},isEmptyObject:function(s){var f;for(f in s)return!1;return!0},globalEval:function(s,f,v){x(s,{nonce:f&&f.nonce},v)},each:function(s,f){var v,m=0;if(q(s))for(v=s.length;m<v&&f.call(s[m],m,s[m])!==!1;m++);else for(m in s)if(f.call(s[m],m,s[m])===!1)break;return s},text:function(s){var f,v="",m=0,A=s.nodeType;if(!A)for(;f=s[m++];)v+=d.text(f);return A===1||A===11?s.textContent:A===9?s.documentElement.textContent:A===3||A===4?s.nodeValue:v},makeArray:function(s,f){var v=f||[];return s!=null&&(q(Object(s))?d.merge(v,typeof s=="string"?[s]:s):c.call(v,s)),v},inArray:function(s,f,v){return f==null?-1:l.call(f,s,v)},isXMLDoc:function(s){var f=s&&s.namespaceURI,v=s&&(s.ownerDocument||s).documentElement;return!B.test(f||v&&v.nodeName||"HTML")},merge:function(s,f){for(var v=+f.length,m=0,A=s.length;m<v;m++)s[A++]=f[m];return s.length=A,s},grep:function(s,f,v){for(var m,A=[],E=0,k=s.length,R=!v;E<k;E++)m=!f(s[E],E),m!==R&&A.push(s[E]);return A},map:function(s,f,v){var m,A,E=0,k=[];if(q(s))for(m=s.length;E<m;E++)A=f(s[E],E,v),A!=null&&k.push(A);else for(E in s)A=f(s[E],E,v),A!=null&&k.push(A);return o(k)},guid:1,support:D}),typeof Symbol=="function"&&(d.fn[Symbol.iterator]=u[Symbol.iterator]),d.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(s,f){h["[object "+f+"]"]=f.toLowerCase()});function q(s){var f=!!s&&"length"in s&&s.length,v=O(s);return _(s)||T(s)?!1:v==="array"||f===0||typeof f=="number"&&f>0&&f-1 in s}function N(s,f){return s.nodeName&&s.nodeName.toLowerCase()===f.toLowerCase()}var Z=u.pop,z=u.sort,H=u.splice,L="[\\x20\\t\\r\\n\\f]",K=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");d.contains=function(s,f){var v=f&&f.parentNode;return s===v||!!(v&&v.nodeType===1&&(s.contains?s.contains(v):s.compareDocumentPosition&&s.compareDocumentPosition(v)&16))};var J=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function W(s,f){return f?s==="\0"?"\uFFFD":s.slice(0,-1)+"\\"+s.charCodeAt(s.length-1).toString(16)+" ":"\\"+s}d.escapeSelector=function(s){return(s+"").replace(J,W)};var ee=w,ue=c;(function(){var s,f,v,m,A,E=ue,k,R,j,$,Q,ne=d.expando,V=0,se=0,Ue=Fo(),st=Fo(),Je=Fo(),an=Fo(),Qt=function(P,M){return P===M&&(A=!0),0},hr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",vr="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",at="\\["+L+"*("+vr+")(?:"+L+"*([*^$|!~]?=)"+L+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+vr+"))|)"+L+"*\\]",Eu=":("+vr+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+at+")*)|.*)\\)|)",pt=new RegExp(L+"+","g"),Nt=new RegExp("^"+L+"*,"+L+"*"),si=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),xc=new RegExp(L+"|>"),mr=new RegExp(Eu),ci=new RegExp("^"+vr+"$"),gr={ID:new RegExp("^#("+vr+")"),CLASS:new RegExp("^\\.("+vr+")"),TAG:new RegExp("^("+vr+"|[*])"),ATTR:new RegExp("^"+at),PSEUDO:new RegExp("^"+Eu),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+hr+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Yr=/^(?:input|select|textarea|button)$/i,Xr=/^h\d$/i,Mn=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Sc=/[+~]/,kr=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),wr=function(P,M){var U="0x"+P.slice(1)-65536;return M||(U<0?String.fromCharCode(U+65536):String.fromCharCode(U>>10|55296,U&1023|56320))},RA=function(){eu()},zA=Co(function(P){return P.disabled===!0&&N(P,"fieldset")},{dir:"parentNode",next:"legend"});function LA(){try{return k.activeElement}catch(P){}}try{E.apply(u=i.call(ee.childNodes),ee.childNodes),u[ee.childNodes.length].nodeType}catch(P){E={apply:function(M,U){ue.apply(M,i.call(U))},call:function(M){ue.apply(M,i.call(arguments,1))}}}function yt(P,M,U,G){var te,ge,Fe,Ne,_e,nt,He,Ve=M&&M.ownerDocument,rt=M?M.nodeType:9;if(U=U||[],typeof P!="string"||!P||rt!==1&&rt!==9&&rt!==11)return U;if(!G&&(eu(M),M=M||k,j)){if(rt!==11&&(_e=Mn.exec(P)))if(te=_e[1]){if(rt===9)if(Fe=M.getElementById(te)){if(Fe.id===te)return E.call(U,Fe),U}else return U;else if(Ve&&(Fe=Ve.getElementById(te))&&yt.contains(M,Fe)&&Fe.id===te)return E.call(U,Fe),U}else{if(_e[2])return E.apply(U,M.getElementsByTagName(P)),U;if((te=_e[3])&&M.getElementsByClassName)return E.apply(U,M.getElementsByClassName(te)),U}if(!an[P+" "]&&(!$||!$.test(P))){if(He=P,Ve=M,rt===1&&(xc.test(P)||si.test(P))){for(Ve=Sc.test(P)&&Tc(M.parentNode)||M,(Ve!=M||!D.scope)&&((Ne=M.getAttribute("id"))?Ne=d.escapeSelector(Ne):M.setAttribute("id",Ne=ne)),nt=li(P),ge=nt.length;ge--;)nt[ge]=(Ne?"#"+Ne:":scope")+" "+_o(nt[ge]);He=nt.join(",")}try{return E.apply(U,Ve.querySelectorAll(He)),U}catch(Le){an(P,!0)}finally{Ne===ne&&M.removeAttribute("id")}}}return Bh(P.replace(K,"$1"),M,U,G)}function Fo(){var P=[];function M(U,G){return P.push(U+" ")>f.cacheLength&&delete M[P.shift()],M[U+" "]=G}return M}function Xn(P){return P[ne]=!0,P}function Yu(P){var M=k.createElement("fieldset");try{return!!P(M)}catch(U){return!1}finally{M.parentNode&&M.parentNode.removeChild(M),M=null}}function MA(P){return function(M){return N(M,"input")&&M.type===P}}function $A(P){return function(M){return(N(M,"input")||N(M,"button"))&&M.type===P}}function Oh(P){return function(M){return"form"in M?M.parentNode&&M.disabled===!1?"label"in M?"label"in M.parentNode?M.parentNode.disabled===P:M.disabled===P:M.isDisabled===P||M.isDisabled!==!P&&zA(M)===P:M.disabled===P:"label"in M?M.disabled===P:!1}}function Fu(P){return Xn(function(M){return M=+M,Xn(function(U,G){for(var te,ge=P([],U.length,M),Fe=ge.length;Fe--;)U[te=ge[Fe]]&&(U[te]=!(G[te]=U[te]))})})}function Tc(P){return P&&typeof P.getElementsByTagName!="undefined"&&P}function eu(P){var M,U=P?P.ownerDocument||P:ee;return U==k||U.nodeType!==9||!U.documentElement||(k=U,R=k.documentElement,j=!d.isXMLDoc(k),Q=R.matches||R.webkitMatchesSelector||R.msMatchesSelector,R.msMatchesSelector&&ee!=k&&(M=k.defaultView)&&M.top!==M&&M.addEventListener("unload",RA),D.getById=Yu(function(G){return R.appendChild(G).id=d.expando,!k.getElementsByName||!k.getElementsByName(d.expando).length}),D.disconnectedMatch=Yu(function(G){return Q.call(G,"*")}),D.scope=Yu(function(){return k.querySelectorAll(":scope")}),D.cssHas=Yu(function(){try{return k.querySelector(":has(*,:jqfake)"),!1}catch(G){return!0}}),D.getById?(f.filter.ID=function(G){var te=G.replace(kr,wr);return function(ge){return ge.getAttribute("id")===te}},f.find.ID=function(G,te){if(typeof te.getElementById!="undefined"&&j){var ge=te.getElementById(G);return ge?[ge]:[]}}):(f.filter.ID=function(G){var te=G.replace(kr,wr);return function(ge){var Fe=typeof ge.getAttributeNode!="undefined"&&ge.getAttributeNode("id");return Fe&&Fe.value===te}},f.find.ID=function(G,te){if(typeof te.getElementById!="undefined"&&j){var ge,Fe,Ne,_e=te.getElementById(G);if(_e){if(ge=_e.getAttributeNode("id"),ge&&ge.value===G)return[_e];for(Ne=te.getElementsByName(G),Fe=0;_e=Ne[Fe++];)if(ge=_e.getAttributeNode("id"),ge&&ge.value===G)return[_e]}return[]}}),f.find.TAG=function(G,te){return typeof te.getElementsByTagName!="undefined"?te.getElementsByTagName(G):te.querySelectorAll(G)},f.find.CLASS=function(G,te){if(typeof te.getElementsByClassName!="undefined"&&j)return te.getElementsByClassName(G)},$=[],Yu(function(G){var te;R.appendChild(G).innerHTML="<a id='"+ne+"' href='' disabled='disabled'></a><select id='"+ne+"-\r\\' disabled='disabled'><option selected=''></option></select>",G.querySelectorAll("[selected]").length||$.push("\\["+L+"*(?:value|"+hr+")"),G.querySelectorAll("[id~="+ne+"-]").length||$.push("~="),G.querySelectorAll("a#"+ne+"+*").length||$.push(".#.+[+~]"),G.querySelectorAll(":checked").length||$.push(":checked"),te=k.createElement("input"),te.setAttribute("type","hidden"),G.appendChild(te).setAttribute("name","D"),R.appendChild(G).disabled=!0,G.querySelectorAll(":disabled").length!==2&&$.push(":enabled",":disabled"),te=k.createElement("input"),te.setAttribute("name",""),G.appendChild(te),G.querySelectorAll("[name='']").length||$.push("\\["+L+"*name"+L+"*="+L+`*(?:''|"")`)}),D.cssHas||$.push(":has"),$=$.length&&new RegExp($.join("|")),Qt=function(G,te){if(G===te)return A=!0,0;var ge=!G.compareDocumentPosition-!te.compareDocumentPosition;return ge||(ge=(G.ownerDocument||G)==(te.ownerDocument||te)?G.compareDocumentPosition(te):1,ge&1||!D.sortDetached&&te.compareDocumentPosition(G)===ge?G===k||G.ownerDocument==ee&&yt.contains(ee,G)?-1:te===k||te.ownerDocument==ee&&yt.contains(ee,te)?1:m?l.call(m,G)-l.call(m,te):0:ge&4?-1:1)}),k}yt.matches=function(P,M){return yt(P,null,null,M)},yt.matchesSelector=function(P,M){if(eu(P),j&&!an[M+" "]&&(!$||!$.test(M)))try{var U=Q.call(P,M);if(U||D.disconnectedMatch||P.document&&P.document.nodeType!==11)return U}catch(G){an(M,!0)}return yt(M,k,null,[P]).length>0},yt.contains=function(P,M){return(P.ownerDocument||P)!=k&&eu(P),d.contains(P,M)},yt.attr=function(P,M){(P.ownerDocument||P)!=k&&eu(P);var U=f.attrHandle[M.toLowerCase()],G=U&&g.call(f.attrHandle,M.toLowerCase())?U(P,M,!j):void 0;return G!==void 0?G:P.getAttribute(M)},yt.error=function(P){throw new Error("Syntax error, unrecognized expression: "+P)},d.uniqueSort=function(P){var M,U=[],G=0,te=0;if(A=!D.sortStable,m=!D.sortStable&&i.call(P,0),z.call(P,Qt),A){for(;M=P[te++];)M===P[te]&&(G=U.push(te));for(;G--;)H.call(P,U[G],1)}return m=null,P},d.fn.uniqueSort=function(){return this.pushStack(d.uniqueSort(i.apply(this)))},f=d.expr={cacheLength:50,createPseudo:Xn,match:gr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(P){return P[1]=P[1].replace(kr,wr),P[3]=(P[3]||P[4]||P[5]||"").replace(kr,wr),P[2]==="~="&&(P[3]=" "+P[3]+" "),P.slice(0,4)},CHILD:function(P){return P[1]=P[1].toLowerCase(),P[1].slice(0,3)==="nth"?(P[3]||yt.error(P[0]),P[4]=+(P[4]?P[5]+(P[6]||1):2*(P[3]==="even"||P[3]==="odd")),P[5]=+(P[7]+P[8]||P[3]==="odd")):P[3]&&yt.error(P[0]),P},PSEUDO:function(P){var M,U=!P[6]&&P[2];return gr.CHILD.test(P[0])?null:(P[3]?P[2]=P[4]||P[5]||"":U&&mr.test(U)&&(M=li(U,!0))&&(M=U.indexOf(")",U.length-M)-U.length)&&(P[0]=P[0].slice(0,M),P[2]=U.slice(0,M)),P.slice(0,3))}},filter:{TAG:function(P){var M=P.replace(kr,wr).toLowerCase();return P==="*"?function(){return!0}:function(U){return N(U,M)}},CLASS:function(P){var M=Ue[P+" "];return M||(M=new RegExp("(^|"+L+")"+P+"("+L+"|$)"))&&Ue(P,function(U){return M.test(typeof U.className=="string"&&U.className||typeof U.getAttribute!="undefined"&&U.getAttribute("class")||"")})},ATTR:function(P,M,U){return function(G){var te=yt.attr(G,P);return te==null?M==="!=":M?(te+="",M==="="?te===U:M==="!="?te!==U:M==="^="?U&&te.indexOf(U)===0:M==="*="?U&&te.indexOf(U)>-1:M==="$="?U&&te.slice(-U.length)===U:M==="~="?(" "+te.replace(pt," ")+" ").indexOf(U)>-1:M==="|="?te===U||te.slice(0,U.length+1)===U+"-":!1):!0}},CHILD:function(P,M,U,G,te){var ge=P.slice(0,3)!=="nth",Fe=P.slice(-4)!=="last",Ne=M==="of-type";return G===1&&te===0?(function(_e){return!!_e.parentNode}):function(_e,nt,He){var Ve,rt,Le,At,Cn,cn=ge!==Fe?"nextSibling":"previousSibling",$n=_e.parentNode,yr=Ne&&_e.nodeName.toLowerCase(),Xu=!He&&!Ne,mn=!1;if($n){if(ge){for(;cn;){for(Le=_e;Le=Le[cn];)if(Ne?N(Le,yr):Le.nodeType===1)return!1;Cn=cn=P==="only"&&!Cn&&"nextSibling"}return!0}if(Cn=[Fe?$n.firstChild:$n.lastChild],Fe&&Xu){for(rt=$n[ne]||($n[ne]={}),Ve=rt[P]||[],At=Ve[0]===V&&Ve[1],mn=At&&Ve[2],Le=At&&$n.childNodes[At];Le=++At&&Le&&Le[cn]||(mn=At=0)||Cn.pop();)if(Le.nodeType===1&&++mn&&Le===_e){rt[P]=[V,At,mn];break}}else if(Xu&&(rt=_e[ne]||(_e[ne]={}),Ve=rt[P]||[],At=Ve[0]===V&&Ve[1],mn=At),mn===!1)for(;(Le=++At&&Le&&Le[cn]||(mn=At=0)||Cn.pop())&&!((Ne?N(Le,yr):Le.nodeType===1)&&++mn&&(Xu&&(rt=Le[ne]||(Le[ne]={}),rt[P]=[V,mn]),Le===_e)););return mn-=te,mn===G||mn%G===0&&mn/G>=0}}},PSEUDO:function(P,M){var U,G=f.pseudos[P]||f.setFilters[P.toLowerCase()]||yt.error("unsupported pseudo: "+P);return G[ne]?G(M):G.length>1?(U=[P,P,"",M],f.setFilters.hasOwnProperty(P.toLowerCase())?Xn(function(te,ge){for(var Fe,Ne=G(te,M),_e=Ne.length;_e--;)Fe=l.call(te,Ne[_e]),te[Fe]=!(ge[Fe]=Ne[_e])}):function(te){return G(te,0,U)}):G}},pseudos:{not:Xn(function(P){var M=[],U=[],G=Pc(P.replace(K,"$1"));return G[ne]?Xn(function(te,ge,Fe,Ne){for(var _e,nt=G(te,null,Ne,[]),He=te.length;He--;)(_e=nt[He])&&(te[He]=!(ge[He]=_e))}):function(te,ge,Fe){return M[0]=te,G(M,null,Fe,U),M[0]=null,!U.pop()}}),has:Xn(function(P){return function(M){return yt(P,M).length>0}}),contains:Xn(function(P){return P=P.replace(kr,wr),function(M){return(M.textContent||d.text(M)).indexOf(P)>-1}}),lang:Xn(function(P){return ci.test(P||"")||yt.error("unsupported lang: "+P),P=P.replace(kr,wr).toLowerCase(),function(M){var U;do if(U=j?M.lang:M.getAttribute("xml:lang")||M.getAttribute("lang"))return U=U.toLowerCase(),U===P||U.indexOf(P+"-")===0;while((M=M.parentNode)&&M.nodeType===1);return!1}}),target:function(P){var M=n.location&&n.location.hash;return M&&M.slice(1)===P.id},root:function(P){return P===R},focus:function(P){return P===LA()&&k.hasFocus()&&!!(P.type||P.href||~P.tabIndex)},enabled:Oh(!1),disabled:Oh(!0),checked:function(P){return N(P,"input")&&!!P.checked||N(P,"option")&&!!P.selected},selected:function(P){return P.parentNode&&P.parentNode.selectedIndex,P.selected===!0},empty:function(P){for(P=P.firstChild;P;P=P.nextSibling)if(P.nodeType<6)return!1;return!0},parent:function(P){return!f.pseudos.empty(P)},header:function(P){return Xr.test(P.nodeName)},input:function(P){return Yr.test(P.nodeName)},button:function(P){return N(P,"input")&&P.type==="button"||N(P,"button")},text:function(P){var M;return N(P,"input")&&P.type==="text"&&((M=P.getAttribute("type"))==null||M.toLowerCase()==="text")},first:Fu(function(){return[0]}),last:Fu(function(P,M){return[M-1]}),eq:Fu(function(P,M,U){return[U<0?U+M:U]}),even:Fu(function(P,M){for(var U=0;U<M;U+=2)P.push(U);return P}),odd:Fu(function(P,M){for(var U=1;U<M;U+=2)P.push(U);return P}),lt:Fu(function(P,M,U){var G;for(U<0?G=U+M:U>M?G=M:G=U;--G>=0;)P.push(G);return P}),gt:Fu(function(P,M,U){for(var G=U<0?U+M:U;++G<M;)P.push(G);return P})}},f.pseudos.nth=f.pseudos.eq;for(s in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})f.pseudos[s]=MA(s);for(s in{submit:!0,reset:!0})f.pseudos[s]=$A(s);function Ih(){}Ih.prototype=f.filters=f.pseudos,f.setFilters=new Ih;function li(P,M){var U,G,te,ge,Fe,Ne,_e,nt=st[P+" "];if(nt)return M?0:nt.slice(0);for(Fe=P,Ne=[],_e=f.preFilter;Fe;){(!U||(G=Nt.exec(Fe)))&&(G&&(Fe=Fe.slice(G[0].length)||Fe),Ne.push(te=[])),U=!1,(G=si.exec(Fe))&&(U=G.shift(),te.push({value:U,type:G[0].replace(K," ")}),Fe=Fe.slice(U.length));for(ge in f.filter)(G=gr[ge].exec(Fe))&&(!_e[ge]||(G=_e[ge](G)))&&(U=G.shift(),te.push({value:U,type:ge,matches:G}),Fe=Fe.slice(U.length));if(!U)break}return M?Fe.length:Fe?yt.error(P):st(P,Ne).slice(0)}function _o(P){for(var M=0,U=P.length,G="";M<U;M++)G+=P[M].value;return G}function Co(P,M,U){var G=M.dir,te=M.next,ge=te||G,Fe=U&&ge==="parentNode",Ne=se++;return M.first?(function(_e,nt,He){for(;_e=_e[G];)if(_e.nodeType===1||Fe)return P(_e,nt,He);return!1}):(function(_e,nt,He){var Ve,rt,Le=[V,Ne];if(He){for(;_e=_e[G];)if((_e.nodeType===1||Fe)&&P(_e,nt,He))return!0}else for(;_e=_e[G];)if(_e.nodeType===1||Fe)if(rt=_e[ne]||(_e[ne]={}),te&&N(_e,te))_e=_e[G]||_e;else{if((Ve=rt[ge])&&Ve[0]===V&&Ve[1]===Ne)return Le[2]=Ve[2];if(rt[ge]=Le,Le[2]=P(_e,nt,He))return!0}return!1})}function Oc(P){return P.length>1?function(M,U,G){for(var te=P.length;te--;)if(!P[te](M,U,G))return!1;return!0}:P[0]}function ZA(P,M,U){for(var G=0,te=M.length;G<te;G++)yt(P,M[G],U);return U}function ko(P,M,U,G,te){for(var ge,Fe=[],Ne=0,_e=P.length,nt=M!=null;Ne<_e;Ne++)(ge=P[Ne])&&(!U||U(ge,G,te))&&(Fe.push(ge),nt&&M.push(Ne));return Fe}function Ic(P,M,U,G,te,ge){return G&&!G[ne]&&(G=Ic(G)),te&&!te[ne]&&(te=Ic(te,ge)),Xn(function(Fe,Ne,_e,nt){var He,Ve,rt,Le,At=[],Cn=[],cn=Ne.length,$n=Fe||ZA(M||"*",_e.nodeType?[_e]:_e,[]),yr=P&&(Fe||!M)?ko($n,At,P,_e,nt):$n;if(U?(Le=te||(Fe?P:cn||G)?[]:Ne,U(yr,Le,_e,nt)):Le=yr,G)for(He=ko(Le,Cn),G(He,[],_e,nt),Ve=He.length;Ve--;)(rt=He[Ve])&&(Le[Cn[Ve]]=!(yr[Cn[Ve]]=rt));if(Fe){if(te||P){if(te){for(He=[],Ve=Le.length;Ve--;)(rt=Le[Ve])&&He.push(yr[Ve]=rt);te(null,Le=[],He,nt)}for(Ve=Le.length;Ve--;)(rt=Le[Ve])&&(He=te?l.call(Fe,rt):At[Ve])>-1&&(Fe[He]=!(Ne[He]=rt))}}else Le=ko(Le===Ne?Le.splice(cn,Le.length):Le),te?te(null,Ne,Le,nt):E.apply(Ne,Le)})}function Bc(P){for(var M,U,G,te=P.length,ge=f.relative[P[0].type],Fe=ge||f.relative[" "],Ne=ge?1:0,_e=Co(function(Ve){return Ve===M},Fe,!0),nt=Co(function(Ve){return l.call(M,Ve)>-1},Fe,!0),He=[function(Ve,rt,Le){var At=!ge&&(Le||rt!=v)||((M=rt).nodeType?_e(Ve,rt,Le):nt(Ve,rt,Le));return M=null,At}];Ne<te;Ne++)if(U=f.relative[P[Ne].type])He=[Co(Oc(He),U)];else{if(U=f.filter[P[Ne].type].apply(null,P[Ne].matches),U[ne]){for(G=++Ne;G<te&&!f.relative[P[G].type];G++);return Ic(Ne>1&&Oc(He),Ne>1&&_o(P.slice(0,Ne-1).concat({value:P[Ne-2].type===" "?"*":""})).replace(K,"$1"),U,Ne<G&&Bc(P.slice(Ne,G)),G<te&&Bc(P=P.slice(G)),G<te&&_o(P))}He.push(U)}return Oc(He)}function qA(P,M){var U=M.length>0,G=P.length>0,te=function(ge,Fe,Ne,_e,nt){var He,Ve,rt,Le=0,At="0",Cn=ge&&[],cn=[],$n=v,yr=ge||G&&f.find.TAG("*",nt),Xu=V+=$n==null?1:Math.random()||.1,mn=yr.length;for(nt&&(v=Fe==k||Fe||nt);At!==mn&&(He=yr[At])!=null;At++){if(G&&He){for(Ve=0,!Fe&&He.ownerDocument!=k&&(eu(He),Ne=!j);rt=P[Ve++];)if(rt(He,Fe||k,Ne)){E.call(_e,He);break}nt&&(V=Xu)}U&&((He=!rt&&He)&&Le--,ge&&Cn.push(He))}if(Le+=At,U&&At!==Le){for(Ve=0;rt=M[Ve++];)rt(Cn,cn,Fe,Ne);if(ge){if(Le>0)for(;At--;)Cn[At]||cn[At]||(cn[At]=Z.call(_e));cn=ko(cn)}E.apply(_e,cn),nt&&!ge&&cn.length>0&&Le+M.length>1&&d.uniqueSort(_e)}return nt&&(V=Xu,v=$n),Cn};return U?Xn(te):te}function Pc(P,M){var U,G=[],te=[],ge=Je[P+" "];if(!ge){for(M||(M=li(P)),U=M.length;U--;)ge=Bc(M[U]),ge[ne]?G.push(ge):te.push(ge);ge=Je(P,qA(te,G)),ge.selector=P}return ge}function Bh(P,M,U,G){var te,ge,Fe,Ne,_e,nt=typeof P=="function"&&P,He=!G&&li(P=nt.selector||P);if(U=U||[],He.length===1){if(ge=He[0]=He[0].slice(0),ge.length>2&&(Fe=ge[0]).type==="ID"&&M.nodeType===9&&j&&f.relative[ge[1].type]){if(M=(f.find.ID(Fe.matches[0].replace(kr,wr),M)||[])[0],M)nt&&(M=M.parentNode);else return U;P=P.slice(ge.shift().value.length)}for(te=gr.needsContext.test(P)?0:ge.length;te--&&(Fe=ge[te],!f.relative[Ne=Fe.type]);)if((_e=f.find[Ne])&&(G=_e(Fe.matches[0].replace(kr,wr),Sc.test(ge[0].type)&&Tc(M.parentNode)||M))){if(ge.splice(te,1),P=G.length&&_o(ge),!P)return E.apply(U,G),U;break}}return(nt||Pc(P,He))(G,M,!j,U,!M||Sc.test(P)&&Tc(M.parentNode)||M),U}D.sortStable=ne.split("").sort(Qt).join("")===ne,eu(),D.sortDetached=Yu(function(P){return P.compareDocumentPosition(k.createElement("fieldset"))&1}),d.find=yt,d.expr[":"]=d.expr.pseudos,d.unique=d.uniqueSort,yt.compile=Pc,yt.select=Bh,yt.setDocument=eu,yt.tokenize=li,yt.escape=d.escapeSelector,yt.getText=d.text,yt.isXML=d.isXMLDoc,yt.selectors=d.expr,yt.support=d.support,yt.uniqueSort=d.uniqueSort})();var ye=function(s,f,v){for(var m=[],A=v!==void 0;(s=s[f])&&s.nodeType!==9;)if(s.nodeType===1){if(A&&d(s).is(v))break;m.push(s)}return m},oe=function(s,f){for(var v=[];s;s=s.nextSibling)s.nodeType===1&&s!==f&&v.push(s);return v},ae=d.expr.match.needsContext,Y=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ie(s,f,v){return _(f)?d.grep(s,function(m,A){return!!f.call(m,A,m)!==v}):f.nodeType?d.grep(s,function(m){return m===f!==v}):typeof f!="string"?d.grep(s,function(m){return l.call(f,m)>-1!==v}):d.filter(f,s,v)}d.filter=function(s,f,v){var m=f[0];return v&&(s=":not("+s+")"),f.length===1&&m.nodeType===1?d.find.matchesSelector(m,s)?[m]:[]:d.find.matches(s,d.grep(f,function(A){return A.nodeType===1}))},d.fn.extend({find:function(s){var f,v,m=this.length,A=this;if(typeof s!="string")return this.pushStack(d(s).filter(function(){for(f=0;f<m;f++)if(d.contains(A[f],this))return!0}));for(v=this.pushStack([]),f=0;f<m;f++)d.find(s,A[f],v);return m>1?d.uniqueSort(v):v},filter:function(s){return this.pushStack(ie(this,s||[],!1))},not:function(s){return this.pushStack(ie(this,s||[],!0))},is:function(s){return!!ie(this,typeof s=="string"&&ae.test(s)?d(s):s||[],!1).length}});var re,de=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,pe=d.fn.init=function(s,f,v){var m,A;if(!s)return this;if(v=v||re,typeof s=="string")if(s[0]==="<"&&s[s.length-1]===">"&&s.length>=3?m=[null,s,null]:m=de.exec(s),m&&(m[1]||!f))if(m[1]){if(f=f instanceof d?f[0]:f,d.merge(this,d.parseHTML(m[1],f&&f.nodeType?f.ownerDocument||f:w,!0)),Y.test(m[1])&&d.isPlainObject(f))for(m in f)_(this[m])?this[m](f[m]):this.attr(m,f[m]);return this}else return A=w.getElementById(m[2]),A&&(this[0]=A,this.length=1),this;else return!f||f.jquery?(f||v).find(s):this.constructor(f).find(s);else{if(s.nodeType)return this[0]=s,this.length=1,this;if(_(s))return v.ready!==void 0?v.ready(s):s(d)}return d.makeArray(s,this)};pe.prototype=d.fn,re=d(w);var ve=/^(?:parents|prev(?:Until|All))/,ke={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({has:function(s){var f=d(s,this),v=f.length;return this.filter(function(){for(var m=0;m<v;m++)if(d.contains(this,f[m]))return!0})},closest:function(s,f){var v,m=0,A=this.length,E=[],k=typeof s!="string"&&d(s);if(!ae.test(s)){for(;m<A;m++)for(v=this[m];v&&v!==f;v=v.parentNode)if(v.nodeType<11&&(k?k.index(v)>-1:v.nodeType===1&&d.find.matchesSelector(v,s))){E.push(v);break}}return this.pushStack(E.length>1?d.uniqueSort(E):E)},index:function(s){return s?typeof s=="string"?l.call(d(s),this[0]):l.call(this,s.jquery?s[0]:s):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(s,f){return this.pushStack(d.uniqueSort(d.merge(this.get(),d(s,f))))},addBack:function(s){return this.add(s==null?this.prevObject:this.prevObject.filter(s))}});function ze(s,f){for(;(s=s[f])&&s.nodeType!==1;);return s}d.each({parent:function(s){var f=s.parentNode;return f&&f.nodeType!==11?f:null},parents:function(s){return ye(s,"parentNode")},parentsUntil:function(s,f,v){return ye(s,"parentNode",v)},next:function(s){return ze(s,"nextSibling")},prev:function(s){return ze(s,"previousSibling")},nextAll:function(s){return ye(s,"nextSibling")},prevAll:function(s){return ye(s,"previousSibling")},nextUntil:function(s,f,v){return ye(s,"nextSibling",v)},prevUntil:function(s,f,v){return ye(s,"previousSibling",v)},siblings:function(s){return oe((s.parentNode||{}).firstChild,s)},children:function(s){return oe(s.firstChild)},contents:function(s){return s.contentDocument!=null&&a(s.contentDocument)?s.contentDocument:(N(s,"template")&&(s=s.content||s),d.merge([],s.childNodes))}},function(s,f){d.fn[s]=function(v,m){var A=d.map(this,f,v);return s.slice(-5)!=="Until"&&(m=v),m&&typeof m=="string"&&(A=d.filter(m,A)),this.length>1&&(ke[s]||d.uniqueSort(A),ve.test(s)&&A.reverse()),this.pushStack(A)}});var Se=/[^\x20\t\r\n\f]+/g;function je(s){var f={};return d.each(s.match(Se)||[],function(v,m){f[m]=!0}),f}d.Callbacks=function(s){s=typeof s=="string"?je(s):d.extend({},s);var f,v,m,A,E=[],k=[],R=-1,j=function(){for(A=A||s.once,m=f=!0;k.length;R=-1)for(v=k.shift();++R<E.length;)E[R].apply(v[0],v[1])===!1&&s.stopOnFalse&&(R=E.length,v=!1);s.memory||(v=!1),f=!1,A&&(v?E=[]:E="")},$={add:function(){return E&&(v&&!f&&(R=E.length-1,k.push(v)),(function Q(ne){d.each(ne,function(V,se){_(se)?(!s.unique||!$.has(se))&&E.push(se):se&&se.length&&O(se)!=="string"&&Q(se)})})(arguments),v&&!f&&j()),this},remove:function(){return d.each(arguments,function(Q,ne){for(var V;(V=d.inArray(ne,E,V))>-1;)E.splice(V,1),V<=R&&R--}),this},has:function(Q){return Q?d.inArray(Q,E)>-1:E.length>0},empty:function(){return E&&(E=[]),this},disable:function(){return A=k=[],E=v="",this},disabled:function(){return!E},lock:function(){return A=k=[],!v&&!f&&(E=v=""),this},locked:function(){return!!A},fireWith:function(Q,ne){return A||(ne=ne||[],ne=[Q,ne.slice?ne.slice():ne],k.push(ne),f||j()),this},fire:function(){return $.fireWith(this,arguments),this},fired:function(){return!!m}};return $};function Me(s){return s}function ft(s){throw s}function Bt(s,f,v,m){var A;try{s&&_(A=s.promise)?A.call(s).done(f).fail(v):s&&_(A=s.then)?A.call(s,f,v):f.apply(void 0,[s].slice(m))}catch(E){v.apply(void 0,[E])}}d.extend({Deferred:function(s){var f=[["notify","progress",d.Callbacks("memory"),d.Callbacks("memory"),2],["resolve","done",d.Callbacks("once memory"),d.Callbacks("once memory"),0,"resolved"],["reject","fail",d.Callbacks("once memory"),d.Callbacks("once memory"),1,"rejected"]],v="pending",m={state:function(){return v},always:function(){return A.done(arguments).fail(arguments),this},catch:function(E){return m.then(null,E)},pipe:function(){var E=arguments;return d.Deferred(function(k){d.each(f,function(R,j){var $=_(E[j[4]])&&E[j[4]];A[j[1]](function(){var Q=$&&$.apply(this,arguments);Q&&_(Q.promise)?Q.promise().progress(k.notify).done(k.resolve).fail(k.reject):k[j[0]+"With"](this,$?[Q]:arguments)})}),E=null}).promise()},then:function(E,k,R){var j=0;function $(Q,ne,V,se){return function(){var Ue=this,st=arguments,Je=function(){var Qt,hr;if(!(Q<j)){if(Qt=V.apply(Ue,st),Qt===ne.promise())throw new TypeError("Thenable self-resolution");hr=Qt&&(typeof Qt=="object"||typeof Qt=="function")&&Qt.then,_(hr)?se?hr.call(Qt,$(j,ne,Me,se),$(j,ne,ft,se)):(j++,hr.call(Qt,$(j,ne,Me,se),$(j,ne,ft,se),$(j,ne,Me,ne.notifyWith))):(V!==Me&&(Ue=void 0,st=[Qt]),(se||ne.resolveWith)(Ue,st))}},an=se?Je:function(){try{Je()}catch(Qt){d.Deferred.exceptionHook&&d.Deferred.exceptionHook(Qt,an.error),Q+1>=j&&(V!==ft&&(Ue=void 0,st=[Qt]),ne.rejectWith(Ue,st))}};Q?an():(d.Deferred.getErrorHook?an.error=d.Deferred.getErrorHook():d.Deferred.getStackHook&&(an.error=d.Deferred.getStackHook()),n.setTimeout(an))}}return d.Deferred(function(Q){f[0][3].add($(0,Q,_(R)?R:Me,Q.notifyWith)),f[1][3].add($(0,Q,_(E)?E:Me)),f[2][3].add($(0,Q,_(k)?k:ft))}).promise()},promise:function(E){return E!=null?d.extend(E,m):m}},A={};return d.each(f,function(E,k){var R=k[2],j=k[5];m[k[1]]=R.add,j&&R.add(function(){v=j},f[3-E][2].disable,f[3-E][3].disable,f[0][2].lock,f[0][3].lock),R.add(k[3].fire),A[k[0]]=function(){return A[k[0]+"With"](this===A?void 0:this,arguments),this},A[k[0]+"With"]=R.fireWith}),m.promise(A),s&&s.call(A,A),A},when:function(s){var f=arguments.length,v=f,m=Array(v),A=i.call(arguments),E=d.Deferred(),k=function(R){return function(j){m[R]=this,A[R]=arguments.length>1?i.call(arguments):j,--f||E.resolveWith(m,A)}};if(f<=1&&(Bt(s,E.done(k(v)).resolve,E.reject,!f),E.state()==="pending"||_(A[v]&&A[v].then)))return E.then();for(;v--;)Bt(A[v],k(v),E.reject);return E.promise()}});var Pt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(s,f){n.console&&n.console.warn&&s&&Pt.test(s.name)&&n.console.warn("jQuery.Deferred exception: "+s.message,s.stack,f)},d.readyException=function(s){n.setTimeout(function(){throw s})};var sn=d.Deferred();d.fn.ready=function(s){return sn.then(s).catch(function(f){d.readyException(f)}),this},d.extend({isReady:!1,readyWait:1,ready:function(s){(s===!0?--d.readyWait:d.isReady)||(d.isReady=!0,!(s!==!0&&--d.readyWait>0)&&sn.resolveWith(w,[d]))}}),d.ready.then=sn.then;function pn(){w.removeEventListener("DOMContentLoaded",pn),n.removeEventListener("load",pn),d.ready()}w.readyState==="complete"||w.readyState!=="loading"&&!w.documentElement.doScroll?n.setTimeout(d.ready):(w.addEventListener("DOMContentLoaded",pn),n.addEventListener("load",pn));var Ut=function(s,f,v,m,A,E,k){var R=0,j=s.length,$=v==null;if(O(v)==="object"){A=!0;for(R in v)Ut(s,f,R,v[R],!0,E,k)}else if(m!==void 0&&(A=!0,_(m)||(k=!0),$&&(k?(f.call(s,m),f=null):($=f,f=function(Q,ne,V){return $.call(d(Q),V)})),f))for(;R<j;R++)f(s[R],v,k?m:m.call(s[R],R,f(s[R],v)));return A?s:$?f.call(s):j?f(s[0],v):E},zt=/^-ms-/,Dn=/-([a-z])/g;function Vt(s,f){return f.toUpperCase()}function Yt(s){return s.replace(zt,"ms-").replace(Dn,Vt)}var xt=function(s){return s.nodeType===1||s.nodeType===9||!+s.nodeType};function Wt(){this.expando=d.expando+Wt.uid++}Wt.uid=1,Wt.prototype={cache:function(s){var f=s[this.expando];return f||(f={},xt(s)&&(s.nodeType?s[this.expando]=f:Object.defineProperty(s,this.expando,{value:f,configurable:!0}))),f},set:function(s,f,v){var m,A=this.cache(s);if(typeof f=="string")A[Yt(f)]=v;else for(m in f)A[Yt(m)]=f[m];return A},get:function(s,f){return f===void 0?this.cache(s):s[this.expando]&&s[this.expando][Yt(f)]},access:function(s,f,v){return f===void 0||f&&typeof f=="string"&&v===void 0?this.get(s,f):(this.set(s,f,v),v!==void 0?v:f)},remove:function(s,f){var v,m=s[this.expando];if(m!==void 0){if(f!==void 0)for(Array.isArray(f)?f=f.map(Yt):(f=Yt(f),f=f in m?[f]:f.match(Se)||[]),v=f.length;v--;)delete m[f[v]];(f===void 0||d.isEmptyObject(m))&&(s.nodeType?s[this.expando]=void 0:delete s[this.expando])}},hasData:function(s){var f=s[this.expando];return f!==void 0&&!d.isEmptyObject(f)}};var Ae=new Wt,St=new Wt,$r=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Zr=/[A-Z]/g;function bn(s){return s==="true"?!0:s==="false"?!1:s==="null"?null:s===+s+""?+s:$r.test(s)?JSON.parse(s):s}function hn(s,f,v){var m;if(v===void 0&&s.nodeType===1)if(m="data-"+f.replace(Zr,"-$&").toLowerCase(),v=s.getAttribute(m),typeof v=="string"){try{v=bn(v)}catch(A){}St.set(s,f,v)}else v=void 0;return v}d.extend({hasData:function(s){return St.hasData(s)||Ae.hasData(s)},data:function(s,f,v){return St.access(s,f,v)},removeData:function(s,f){St.remove(s,f)},_data:function(s,f,v){return Ae.access(s,f,v)},_removeData:function(s,f){Ae.remove(s,f)}}),d.fn.extend({data:function(s,f){var v,m,A,E=this[0],k=E&&E.attributes;if(s===void 0){if(this.length&&(A=St.get(E),E.nodeType===1&&!Ae.get(E,"hasDataAttrs"))){for(v=k.length;v--;)k[v]&&(m=k[v].name,m.indexOf("data-")===0&&(m=Yt(m.slice(5)),hn(E,m,A[m])));Ae.set(E,"hasDataAttrs",!0)}return A}return typeof s=="object"?this.each(function(){St.set(this,s)}):Ut(this,function(R){var j;if(E&&R===void 0)return j=St.get(E,s),j!==void 0||(j=hn(E,s),j!==void 0)?j:void 0;this.each(function(){St.set(this,s,R)})},null,f,arguments.length>1,null,!0)},removeData:function(s){return this.each(function(){St.remove(this,s)})}}),d.extend({queue:function(s,f,v){var m;if(s)return f=(f||"fx")+"queue",m=Ae.get(s,f),v&&(!m||Array.isArray(v)?m=Ae.access(s,f,d.makeArray(v)):m.push(v)),m||[]},dequeue:function(s,f){f=f||"fx";var v=d.queue(s,f),m=v.length,A=v.shift(),E=d._queueHooks(s,f),k=function(){d.dequeue(s,f)};A==="inprogress"&&(A=v.shift(),m--),A&&(f==="fx"&&v.unshift("inprogress"),delete E.stop,A.call(s,k,E)),!m&&E&&E.empty.fire()},_queueHooks:function(s,f){var v=f+"queueHooks";return Ae.get(s,v)||Ae.access(s,v,{empty:d.Callbacks("once memory").add(function(){Ae.remove(s,[f+"queue",v])})})}}),d.fn.extend({queue:function(s,f){var v=2;return typeof s!="string"&&(f=s,s="fx",v--),arguments.length<v?d.queue(this[0],s):f===void 0?this:this.each(function(){var m=d.queue(this,s,f);d._queueHooks(this,s),s==="fx"&&m[0]!=="inprogress"&&d.dequeue(this,s)})},dequeue:function(s){return this.each(function(){d.dequeue(this,s)})},clearQueue:function(s){return this.queue(s||"fx",[])},promise:function(s,f){var v,m=1,A=d.Deferred(),E=this,k=this.length,R=function(){--m||A.resolveWith(E,[E])};for(typeof s!="string"&&(f=s,s=void 0),s=s||"fx";k--;)v=Ae.get(E[k],s+"queueHooks"),v&&v.empty&&(m++,v.empty.add(R));return R(),A.promise(f)}});var yu=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,An=new RegExp("^(?:([+-])=|)("+yu+")([a-z%]*)$","i"),$t=["Top","Right","Bottom","Left"],En=w.documentElement,vn=function(s){return d.contains(s.ownerDocument,s)},Fr={composed:!0};En.getRootNode&&(vn=function(s){return d.contains(s.ownerDocument,s)||s.getRootNode(Fr)===s.ownerDocument});var cr=function(s,f){return s=f||s,s.style.display==="none"||s.style.display===""&&vn(s)&&d.css(s,"display")==="none"};function qr(s,f,v,m){var A,E,k=20,R=m?function(){return m.cur()}:function(){return d.css(s,f,"")},j=R(),$=v&&v[3]||(d.cssNumber[f]?"":"px"),Q=s.nodeType&&(d.cssNumber[f]||$!=="px"&&+j)&&An.exec(d.css(s,f));if(Q&&Q[3]!==$){for(j=j/2,$=$||Q[3],Q=+j||1;k--;)d.style(s,f,Q+$),(1-E)*(1-(E=R()/j||.5))<=0&&(k=0),Q=Q/E;Q=Q*2,d.style(s,f,Q+$),v=v||[]}return v&&(Q=+Q||+j||0,A=v[1]?Q+(v[1]+1)*v[2]:+v[2],m&&(m.unit=$,m.start=Q,m.end=A)),A}var Hr={};function zn(s){var f,v=s.ownerDocument,m=s.nodeName,A=Hr[m];return A||(f=v.body.appendChild(v.createElement(m)),A=d.css(f,"display"),f.parentNode.removeChild(f),A==="none"&&(A="block"),Hr[m]=A,A)}function Ge(s,f){for(var v,m,A=[],E=0,k=s.length;E<k;E++)m=s[E],m.style&&(v=m.style.display,f?(v==="none"&&(A[E]=Ae.get(m,"display")||null,A[E]||(m.style.display="")),m.style.display===""&&cr(m)&&(A[E]=zn(m))):v!=="none"&&(A[E]="none",Ae.set(m,"display",v)));for(E=0;E<k;E++)A[E]!=null&&(s[E].style.display=A[E]);return s}d.fn.extend({show:function(){return Ge(this,!0)},hide:function(){return Ge(this)},toggle:function(s){return typeof s=="boolean"?s?this.show():this.hide():this.each(function(){cr(this)?d(this).show():d(this).hide()})}});var Lt=/^(?:checkbox|radio)$/i,Ur=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ni=/^$|^module$|\/(?:java|ecma)script/i;(function(){var s=w.createDocumentFragment(),f=s.appendChild(w.createElement("div")),v=w.createElement("input");v.setAttribute("type","radio"),v.setAttribute("checked","checked"),v.setAttribute("name","t"),f.appendChild(v),D.checkClone=f.cloneNode(!0).cloneNode(!0).lastChild.checked,f.innerHTML="<textarea>x</textarea>",D.noCloneChecked=!!f.cloneNode(!0).lastChild.defaultValue,f.innerHTML="<option></option>",D.option=!!f.lastChild})();var Fn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Fn.tbody=Fn.tfoot=Fn.colgroup=Fn.caption=Fn.thead,Fn.th=Fn.td,D.option||(Fn.optgroup=Fn.option=[1,"<select multiple='multiple'>","</select>"]);function Gt(s,f){var v;return typeof s.getElementsByTagName!="undefined"?v=s.getElementsByTagName(f||"*"):typeof s.querySelectorAll!="undefined"?v=s.querySelectorAll(f||"*"):v=[],f===void 0||f&&N(s,f)?d.merge([s],v):v}function Ku(s,f){for(var v=0,m=s.length;v<m;v++)Ae.set(s[v],"globalEval",!f||Ae.get(f[v],"globalEval"))}var yo=/<|&#?\w+;/;function Do(s,f,v,m,A){for(var E,k,R,j,$,Q,ne=f.createDocumentFragment(),V=[],se=0,Ue=s.length;se<Ue;se++)if(E=s[se],E||E===0)if(O(E)==="object")d.merge(V,E.nodeType?[E]:E);else if(!yo.test(E))V.push(f.createTextNode(E));else{for(k=k||ne.appendChild(f.createElement("div")),R=(Ur.exec(E)||["",""])[1].toLowerCase(),j=Fn[R]||Fn._default,k.innerHTML=j[1]+d.htmlPrefilter(E)+j[2],Q=j[0];Q--;)k=k.lastChild;d.merge(V,k.childNodes),k=ne.firstChild,k.textContent=""}for(ne.textContent="",se=0;E=V[se++];){if(m&&d.inArray(E,m)>-1){A&&A.push(E);continue}if($=vn(E),k=Gt(ne.appendChild(E),"script"),$&&Ku(k),v)for(Q=0;E=k[Q++];)ni.test(E.type||"")&&v.push(E)}return ne}var ri=/^([^.]*)(?:\.(.+)|)/;function lr(){return!0}function Vr(){return!1}function _r(s,f,v,m,A,E){var k,R;if(typeof f=="object"){typeof v!="string"&&(m=m||v,v=void 0);for(R in f)_r(s,R,v,m,f[R],E);return s}if(m==null&&A==null?(A=v,m=v=void 0):A==null&&(typeof v=="string"?(A=m,m=void 0):(A=m,m=v,v=void 0)),A===!1)A=Vr;else if(!A)return s;return E===1&&(k=A,A=function(j){return d().off(j),k.apply(this,arguments)},A.guid=k.guid||(k.guid=d.guid++)),s.each(function(){d.event.add(this,f,A,m,v)})}d.event={global:{},add:function(s,f,v,m,A){var E,k,R,j,$,Q,ne,V,se,Ue,st,Je=Ae.get(s);if(xt(s))for(v.handler&&(E=v,v=E.handler,A=E.selector),A&&d.find.matchesSelector(En,A),v.guid||(v.guid=d.guid++),(j=Je.events)||(j=Je.events=Object.create(null)),(k=Je.handle)||(k=Je.handle=function(an){return typeof d!="undefined"&&d.event.triggered!==an.type?d.event.dispatch.apply(s,arguments):void 0}),f=(f||"").match(Se)||[""],$=f.length;$--;)R=ri.exec(f[$])||[],se=st=R[1],Ue=(R[2]||"").split(".").sort(),se&&(ne=d.event.special[se]||{},se=(A?ne.delegateType:ne.bindType)||se,ne=d.event.special[se]||{},Q=d.extend({type:se,origType:st,data:m,handler:v,guid:v.guid,selector:A,needsContext:A&&d.expr.match.needsContext.test(A),namespace:Ue.join(".")},E),(V=j[se])||(V=j[se]=[],V.delegateCount=0,(!ne.setup||ne.setup.call(s,m,Ue,k)===!1)&&s.addEventListener&&s.addEventListener(se,k)),ne.add&&(ne.add.call(s,Q),Q.handler.guid||(Q.handler.guid=v.guid)),A?V.splice(V.delegateCount++,0,Q):V.push(Q),d.event.global[se]=!0)},remove:function(s,f,v,m,A){var E,k,R,j,$,Q,ne,V,se,Ue,st,Je=Ae.hasData(s)&&Ae.get(s);if(!(!Je||!(j=Je.events))){for(f=(f||"").match(Se)||[""],$=f.length;$--;){if(R=ri.exec(f[$])||[],se=st=R[1],Ue=(R[2]||"").split(".").sort(),!se){for(se in j)d.event.remove(s,se+f[$],v,m,!0);continue}for(ne=d.event.special[se]||{},se=(m?ne.delegateType:ne.bindType)||se,V=j[se]||[],R=R[2]&&new RegExp("(^|\\.)"+Ue.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=E=V.length;E--;)Q=V[E],(A||st===Q.origType)&&(!v||v.guid===Q.guid)&&(!R||R.test(Q.namespace))&&(!m||m===Q.selector||m==="**"&&Q.selector)&&(V.splice(E,1),Q.selector&&V.delegateCount--,ne.remove&&ne.remove.call(s,Q));k&&!V.length&&((!ne.teardown||ne.teardown.call(s,Ue,Je.handle)===!1)&&d.removeEvent(s,se,Je.handle),delete j[se])}d.isEmptyObject(j)&&Ae.remove(s,"handle events")}},dispatch:function(s){var f,v,m,A,E,k,R=new Array(arguments.length),j=d.event.fix(s),$=(Ae.get(this,"events")||Object.create(null))[j.type]||[],Q=d.event.special[j.type]||{};for(R[0]=j,f=1;f<arguments.length;f++)R[f]=arguments[f];if(j.delegateTarget=this,!(Q.preDispatch&&Q.preDispatch.call(this,j)===!1)){for(k=d.event.handlers.call(this,j,$),f=0;(A=k[f++])&&!j.isPropagationStopped();)for(j.currentTarget=A.elem,v=0;(E=A.handlers[v++])&&!j.isImmediatePropagationStopped();)(!j.rnamespace||E.namespace===!1||j.rnamespace.test(E.namespace))&&(j.handleObj=E,j.data=E.data,m=((d.event.special[E.origType]||{}).handle||E.handler).apply(A.elem,R),m!==void 0&&(j.result=m)===!1&&(j.preventDefault(),j.stopPropagation()));return Q.postDispatch&&Q.postDispatch.call(this,j),j.result}},handlers:function(s,f){var v,m,A,E,k,R=[],j=f.delegateCount,$=s.target;if(j&&$.nodeType&&!(s.type==="click"&&s.button>=1)){for(;$!==this;$=$.parentNode||this)if($.nodeType===1&&!(s.type==="click"&&$.disabled===!0)){for(E=[],k={},v=0;v<j;v++)m=f[v],A=m.selector+" ",k[A]===void 0&&(k[A]=m.needsContext?d(A,this).index($)>-1:d.find(A,this,null,[$]).length),k[A]&&E.push(m);E.length&&R.push({elem:$,handlers:E})}}return $=this,j<f.length&&R.push({elem:$,handlers:f.slice(j)}),R},addProp:function(s,f){Object.defineProperty(d.Event.prototype,s,{enumerable:!0,configurable:!0,get:_(f)?function(){if(this.originalEvent)return f(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[s]},set:function(v){Object.defineProperty(this,s,{enumerable:!0,configurable:!0,writable:!0,value:v})}})},fix:function(s){return s[d.expando]?s:new d.Event(s)},special:{load:{noBubble:!0},click:{setup:function(s){var f=this||s;return Lt.test(f.type)&&f.click&&N(f,"input")&&fr(f,"click",!0),!1},trigger:function(s){var f=this||s;return Lt.test(f.type)&&f.click&&N(f,"input")&&fr(f,"click"),!0},_default:function(s){var f=s.target;return Lt.test(f.type)&&f.click&&N(f,"input")&&Ae.get(f,"click")||N(f,"a")}},beforeunload:{postDispatch:function(s){s.result!==void 0&&s.originalEvent&&(s.originalEvent.returnValue=s.result)}}}};function fr(s,f,v){if(!v){Ae.get(s,f)===void 0&&d.event.add(s,f,lr);return}Ae.set(s,f,!1),d.event.add(s,f,{namespace:!1,handler:function(m){var A,E=Ae.get(this,f);if(m.isTrigger&1&&this[f]){if(E)(d.event.special[f]||{}).delegateType&&m.stopPropagation();else if(E=i.call(arguments),Ae.set(this,f,E),this[f](),A=Ae.get(this,f),Ae.set(this,f,!1),E!==A)return m.stopImmediatePropagation(),m.preventDefault(),A}else E&&(Ae.set(this,f,d.event.trigger(E[0],E.slice(1),this)),m.stopPropagation(),m.isImmediatePropagationStopped=lr)}})}d.removeEvent=function(s,f,v){s.removeEventListener&&s.removeEventListener(f,v)},d.Event=function(s,f){if(!(this instanceof d.Event))return new d.Event(s,f);s&&s.type?(this.originalEvent=s,this.type=s.type,this.isDefaultPrevented=s.defaultPrevented||s.defaultPrevented===void 0&&s.returnValue===!1?lr:Vr,this.target=s.target&&s.target.nodeType===3?s.target.parentNode:s.target,this.currentTarget=s.currentTarget,this.relatedTarget=s.relatedTarget):this.type=s,f&&d.extend(this,f),this.timeStamp=s&&s.timeStamp||Date.now(),this[d.expando]=!0},d.Event.prototype={constructor:d.Event,isDefaultPrevented:Vr,isPropagationStopped:Vr,isImmediatePropagationStopped:Vr,isSimulated:!1,preventDefault:function(){var s=this.originalEvent;this.isDefaultPrevented=lr,s&&!this.isSimulated&&s.preventDefault()},stopPropagation:function(){var s=this.originalEvent;this.isPropagationStopped=lr,s&&!this.isSimulated&&s.stopPropagation()},stopImmediatePropagation:function(){var s=this.originalEvent;this.isImmediatePropagationStopped=lr,s&&!this.isSimulated&&s.stopImmediatePropagation(),this.stopPropagation()}},d.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},d.event.addProp),d.each({focus:"focusin",blur:"focusout"},function(s,f){function v(m){if(w.documentMode){var A=Ae.get(this,"handle"),E=d.event.fix(m);E.type=m.type==="focusin"?"focus":"blur",E.isSimulated=!0,A(m),E.target===E.currentTarget&&A(E)}else d.event.simulate(f,m.target,d.event.fix(m))}d.event.special[s]={setup:function(){var m;if(fr(this,s,!0),w.documentMode)m=Ae.get(this,f),m||this.addEventListener(f,v),Ae.set(this,f,(m||0)+1);else return!1},trigger:function(){return fr(this,s),!0},teardown:function(){var m;if(w.documentMode)m=Ae.get(this,f)-1,m?Ae.set(this,f,m):(this.removeEventListener(f,v),Ae.remove(this,f));else return!1},_default:function(m){return Ae.get(m.target,s)},delegateType:f},d.event.special[f]={setup:function(){var m=this.ownerDocument||this.document||this,A=w.documentMode?this:m,E=Ae.get(A,f);E||(w.documentMode?this.addEventListener(f,v):m.addEventListener(s,v,!0)),Ae.set(A,f,(E||0)+1)},teardown:function(){var m=this.ownerDocument||this.document||this,A=w.documentMode?this:m,E=Ae.get(A,f)-1;E?Ae.set(A,f,E):(w.documentMode?this.removeEventListener(f,v):m.removeEventListener(s,v,!0),Ae.remove(A,f))}}}),d.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(s,f){d.event.special[s]={delegateType:f,bindType:f,handle:function(v){var m,A=this,E=v.relatedTarget,k=v.handleObj;return(!E||E!==A&&!d.contains(A,E))&&(v.type=k.origType,m=k.handler.apply(this,arguments),v.type=f),m}}}),d.fn.extend({on:function(s,f,v,m){return _r(this,s,f,v,m)},one:function(s,f,v,m){return _r(this,s,f,v,m,1)},off:function(s,f,v){var m,A;if(s&&s.preventDefault&&s.handleObj)return m=s.handleObj,d(s.delegateTarget).off(m.namespace?m.origType+"."+m.namespace:m.origType,m.selector,m.handler),this;if(typeof s=="object"){for(A in s)this.off(A,f,s[A]);return this}return(f===!1||typeof f=="function")&&(v=f,f=void 0),v===!1&&(v=Vr),this.each(function(){d.event.remove(this,s,v,f)})}});var vc=/<script|<style|<link/i,bo=/checked\s*(?:[^=]|=\s*.checked.)/i,Wr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function dr(s,f){return N(s,"table")&&N(f.nodeType!==11?f:f.firstChild,"tr")&&d(s).children("tbody")[0]||s}function mc(s){return s.type=(s.getAttribute("type")!==null)+"/"+s.type,s}function gc(s){return(s.type||"").slice(0,5)==="true/"?s.type=s.type.slice(5):s.removeAttribute("type"),s}function ui(s,f){var v,m,A,E,k,R,j;if(f.nodeType===1){if(Ae.hasData(s)&&(E=Ae.get(s),j=E.events,j)){Ae.remove(f,"handle events");for(A in j)for(v=0,m=j[A].length;v<m;v++)d.event.add(f,A,j[A][v])}St.hasData(s)&&(k=St.access(s),R=d.extend({},k),St.set(f,R))}}function yc(s,f){var v=f.nodeName.toLowerCase();v==="input"&&Lt.test(s.type)?f.checked=s.checked:(v==="input"||v==="textarea")&&(f.defaultValue=s.defaultValue)}function Cr(s,f,v,m){f=o(f);var A,E,k,R,j,$,Q=0,ne=s.length,V=ne-1,se=f[0],Ue=_(se);if(Ue||ne>1&&typeof se=="string"&&!D.checkClone&&bo.test(se))return s.each(function(st){var Je=s.eq(st);Ue&&(f[0]=se.call(this,st,Je.html())),Cr(Je,f,v,m)});if(ne&&(A=Do(f,s[0].ownerDocument,!1,s,m),E=A.firstChild,A.childNodes.length===1&&(A=E),E||m)){for(k=d.map(Gt(A,"script"),mc),R=k.length;Q<ne;Q++)j=A,Q!==V&&(j=d.clone(j,!0,!0),R&&d.merge(k,Gt(j,"script"))),v.call(s[Q],j,Q);if(R)for($=k[k.length-1].ownerDocument,d.map(k,gc),Q=0;Q<R;Q++)j=k[Q],ni.test(j.type||"")&&!Ae.access(j,"globalEval")&&d.contains($,j)&&(j.src&&(j.type||"").toLowerCase()!=="module"?d._evalUrl&&!j.noModule&&d._evalUrl(j.src,{nonce:j.nonce||j.getAttribute("nonce")},$):x(j.textContent.replace(Wr,""),j,$))}return s}function ai(s,f,v){for(var m,A=f?d.filter(f,s):s,E=0;(m=A[E])!=null;E++)!v&&m.nodeType===1&&d.cleanData(Gt(m)),m.parentNode&&(v&&vn(m)&&Ku(Gt(m,"script")),m.parentNode.removeChild(m));return s}d.extend({htmlPrefilter:function(s){return s},clone:function(s,f,v){var m,A,E,k,R=s.cloneNode(!0),j=vn(s);if(!D.noCloneChecked&&(s.nodeType===1||s.nodeType===11)&&!d.isXMLDoc(s))for(k=Gt(R),E=Gt(s),m=0,A=E.length;m<A;m++)yc(E[m],k[m]);if(f)if(v)for(E=E||Gt(s),k=k||Gt(R),m=0,A=E.length;m<A;m++)ui(E[m],k[m]);else ui(s,R);return k=Gt(R,"script"),k.length>0&&Ku(k,!j&&Gt(s,"script")),R},cleanData:function(s){for(var f,v,m,A=d.event.special,E=0;(v=s[E])!==void 0;E++)if(xt(v)){if(f=v[Ae.expando]){if(f.events)for(m in f.events)A[m]?d.event.remove(v,m):d.removeEvent(v,m,f.handle);v[Ae.expando]=void 0}v[St.expando]&&(v[St.expando]=void 0)}}}),d.fn.extend({detach:function(s){return ai(this,s,!0)},remove:function(s){return ai(this,s)},text:function(s){return Ut(this,function(f){return f===void 0?d.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=f)})},null,s,arguments.length)},append:function(){return Cr(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=dr(this,s);f.appendChild(s)}})},prepend:function(){return Cr(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=dr(this,s);f.insertBefore(s,f.firstChild)}})},before:function(){return Cr(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this)})},after:function(){return Cr(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling)})},empty:function(){for(var s,f=0;(s=this[f])!=null;f++)s.nodeType===1&&(d.cleanData(Gt(s,!1)),s.textContent="");return this},clone:function(s,f){return s=s==null?!1:s,f=f==null?s:f,this.map(function(){return d.clone(this,s,f)})},html:function(s){return Ut(this,function(f){var v=this[0]||{},m=0,A=this.length;if(f===void 0&&v.nodeType===1)return v.innerHTML;if(typeof f=="string"&&!vc.test(f)&&!Fn[(Ur.exec(f)||["",""])[1].toLowerCase()]){f=d.htmlPrefilter(f);try{for(;m<A;m++)v=this[m]||{},v.nodeType===1&&(d.cleanData(Gt(v,!1)),v.innerHTML=f);v=0}catch(E){}}v&&this.empty().append(f)},null,s,arguments.length)},replaceWith:function(){var s=[];return Cr(this,arguments,function(f){var v=this.parentNode;d.inArray(this,s)<0&&(d.cleanData(Gt(this)),v&&v.replaceChild(f,this))},s)}}),d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,f){d.fn[s]=function(v){for(var m,A=[],E=d(v),k=E.length-1,R=0;R<=k;R++)m=R===k?this:this.clone(!0),d(E[R])[f](m),c.apply(A,m.get());return this.pushStack(A)}});var Qu=new RegExp("^("+yu+")(?!px)[a-z%]+$","i"),fe=/^--/,Oe=function(s){var f=s.ownerDocument.defaultView;return(!f||!f.opener)&&(f=n),f.getComputedStyle(s)},et=function(s,f,v){var m,A,E={};for(A in f)E[A]=s.style[A],s.style[A]=f[A];m=v.call(s);for(A in f)s.style[A]=E[A];return m},bt=new RegExp($t.join("|"),"i");(function(){function s(){if($){j.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",$.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",En.appendChild(j).appendChild($);var Q=n.getComputedStyle($);v=Q.top!=="1%",R=f(Q.marginLeft)===12,$.style.right="60%",E=f(Q.right)===36,m=f(Q.width)===36,$.style.position="absolute",A=f($.offsetWidth/3)===12,En.removeChild(j),$=null}}function f(Q){return Math.round(parseFloat(Q))}var v,m,A,E,k,R,j=w.createElement("div"),$=w.createElement("div");$.style&&($.style.backgroundClip="content-box",$.cloneNode(!0).style.backgroundClip="",D.clearCloneStyle=$.style.backgroundClip==="content-box",d.extend(D,{boxSizingReliable:function(){return s(),m},pixelBoxStyles:function(){return s(),E},pixelPosition:function(){return s(),v},reliableMarginLeft:function(){return s(),R},scrollboxSize:function(){return s(),A},reliableTrDimensions:function(){var Q,ne,V,se;return k==null&&(Q=w.createElement("table"),ne=w.createElement("tr"),V=w.createElement("div"),Q.style.cssText="position:absolute;left:-11111px;border-collapse:separate",ne.style.cssText="box-sizing:content-box;border:1px solid",ne.style.height="1px",V.style.height="9px",V.style.display="block",En.appendChild(Q).appendChild(ne).appendChild(V),se=n.getComputedStyle(ne),k=parseInt(se.height,10)+parseInt(se.borderTopWidth,10)+parseInt(se.borderBottomWidth,10)===ne.offsetHeight,En.removeChild(Q)),k}}))})();function dt(s,f,v){var m,A,E,k,R=fe.test(f),j=s.style;return v=v||Oe(s),v&&(k=v.getPropertyValue(f)||v[f],R&&k&&(k=k.replace(K,"$1")||void 0),k===""&&!vn(s)&&(k=d.style(s,f)),!D.pixelBoxStyles()&&Qu.test(k)&&bt.test(f)&&(m=j.width,A=j.minWidth,E=j.maxWidth,j.minWidth=j.maxWidth=j.width=k,k=v.width,j.width=m,j.minWidth=A,j.maxWidth=E)),k!==void 0?k+"":k}function _n(s,f){return{get:function(){if(s()){delete this.get;return}return(this.get=f).apply(this,arguments)}}}var Tn=["Webkit","Moz","ms"],Yn=w.createElement("div").style,On={};function In(s){for(var f=s[0].toUpperCase()+s.slice(1),v=Tn.length;v--;)if(s=Tn[v]+f,s in Yn)return s}function Jt(s){var f=d.cssProps[s]||On[s];return f||(s in Yn?s:On[s]=In(s)||s)}var un=/^(none|table(?!-c[ea]).+)/,Gr={position:"absolute",visibility:"hidden",display:"block"},pr={letterSpacing:"0",fontWeight:"400"};function Ln(s,f,v){var m=An.exec(f);return m?Math.max(0,m[2]-(v||0))+(m[3]||"px"):f}function Xt(s,f,v,m,A,E){var k=f==="width"?1:0,R=0,j=0,$=0;if(v===(m?"border":"content"))return 0;for(;k<4;k+=2)v==="margin"&&($+=d.css(s,v+$t[k],!0,A)),m?(v==="content"&&(j-=d.css(s,"padding"+$t[k],!0,A)),v!=="margin"&&(j-=d.css(s,"border"+$t[k]+"Width",!0,A))):(j+=d.css(s,"padding"+$t[k],!0,A),v!=="padding"?j+=d.css(s,"border"+$t[k]+"Width",!0,A):R+=d.css(s,"border"+$t[k]+"Width",!0,A));return!m&&E>=0&&(j+=Math.max(0,Math.ceil(s["offset"+f[0].toUpperCase()+f.slice(1)]-E-j-R-.5))||0),j+$}function Jr(s,f,v){var m=Oe(s),A=!D.boxSizingReliable()||v,E=A&&d.css(s,"boxSizing",!1,m)==="border-box",k=E,R=dt(s,f,m),j="offset"+f[0].toUpperCase()+f.slice(1);if(Qu.test(R)){if(!v)return R;R="auto"}return(!D.boxSizingReliable()&&E||!D.reliableTrDimensions()&&N(s,"tr")||R==="auto"||!parseFloat(R)&&d.css(s,"display",!1,m)==="inline")&&s.getClientRects().length&&(E=d.css(s,"boxSizing",!1,m)==="border-box",k=j in s,k&&(R=s[j])),R=parseFloat(R)||0,R+Xt(s,f,v||(E?"border":"content"),k,m,R)+"px"}d.extend({cssHooks:{opacity:{get:function(s,f){if(f){var v=dt(s,"opacity");return v===""?"1":v}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(s,f,v,m){if(!(!s||s.nodeType===3||s.nodeType===8||!s.style)){var A,E,k,R=Yt(f),j=fe.test(f),$=s.style;if(j||(f=Jt(R)),k=d.cssHooks[f]||d.cssHooks[R],v!==void 0){if(E=typeof v,E==="string"&&(A=An.exec(v))&&A[1]&&(v=qr(s,f,A),E="number"),v==null||v!==v)return;E==="number"&&!j&&(v+=A&&A[3]||(d.cssNumber[R]?"":"px")),!D.clearCloneStyle&&v===""&&f.indexOf("background")===0&&($[f]="inherit"),(!k||!("set"in k)||(v=k.set(s,v,m))!==void 0)&&(j?$.setProperty(f,v):$[f]=v)}else return k&&"get"in k&&(A=k.get(s,!1,m))!==void 0?A:$[f]}},css:function(s,f,v,m){var A,E,k,R=Yt(f),j=fe.test(f);return j||(f=Jt(R)),k=d.cssHooks[f]||d.cssHooks[R],k&&"get"in k&&(A=k.get(s,!0,v)),A===void 0&&(A=dt(s,f,m)),A==="normal"&&f in pr&&(A=pr[f]),v===""||v?(E=parseFloat(A),v===!0||isFinite(E)?E||0:A):A}}),d.each(["height","width"],function(s,f){d.cssHooks[f]={get:function(v,m,A){if(m)return un.test(d.css(v,"display"))&&(!v.getClientRects().length||!v.getBoundingClientRect().width)?et(v,Gr,function(){return Jr(v,f,A)}):Jr(v,f,A)},set:function(v,m,A){var E,k=Oe(v),R=!D.scrollboxSize()&&k.position==="absolute",j=R||A,$=j&&d.css(v,"boxSizing",!1,k)==="border-box",Q=A?Xt(v,f,A,$,k):0;return $&&R&&(Q-=Math.ceil(v["offset"+f[0].toUpperCase()+f.slice(1)]-parseFloat(k[f])-Xt(v,f,"border",!1,k)-.5)),Q&&(E=An.exec(m))&&(E[3]||"px")!=="px"&&(v.style[f]=m,m=d.css(v,f)),Ln(v,m,Q)}}}),d.cssHooks.marginLeft=_n(D.reliableMarginLeft,function(s,f){if(f)return(parseFloat(dt(s,"marginLeft"))||s.getBoundingClientRect().left-et(s,{marginLeft:0},function(){return s.getBoundingClientRect().left}))+"px"}),d.each({margin:"",padding:"",border:"Width"},function(s,f){d.cssHooks[s+f]={expand:function(v){for(var m=0,A={},E=typeof v=="string"?v.split(" "):[v];m<4;m++)A[s+$t[m]+f]=E[m]||E[m-2]||E[0];return A}},s!=="margin"&&(d.cssHooks[s+f].set=Ln)}),d.fn.extend({css:function(s,f){return Ut(this,function(v,m,A){var E,k,R={},j=0;if(Array.isArray(m)){for(E=Oe(v),k=m.length;j<k;j++)R[m[j]]=d.css(v,m[j],!1,E);return R}return A!==void 0?d.style(v,m,A):d.css(v,m)},s,f,arguments.length>1)}});function Zt(s,f,v,m,A){return new Zt.prototype.init(s,f,v,m,A)}d.Tween=Zt,Zt.prototype={constructor:Zt,init:function(s,f,v,m,A,E){this.elem=s,this.prop=v,this.easing=A||d.easing._default,this.options=f,this.start=this.now=this.cur(),this.end=m,this.unit=E||(d.cssNumber[v]?"":"px")},cur:function(){var s=Zt.propHooks[this.prop];return s&&s.get?s.get(this):Zt.propHooks._default.get(this)},run:function(s){var f,v=Zt.propHooks[this.prop];return this.options.duration?this.pos=f=d.easing[this.easing](s,this.options.duration*s,0,1,this.options.duration):this.pos=f=s,this.now=(this.end-this.start)*f+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),v&&v.set?v.set(this):Zt.propHooks._default.set(this),this}},Zt.prototype.init.prototype=Zt.prototype,Zt.propHooks={_default:{get:function(s){var f;return s.elem.nodeType!==1||s.elem[s.prop]!=null&&s.elem.style[s.prop]==null?s.elem[s.prop]:(f=d.css(s.elem,s.prop,""),!f||f==="auto"?0:f)},set:function(s){d.fx.step[s.prop]?d.fx.step[s.prop](s):s.elem.nodeType===1&&(d.cssHooks[s.prop]||s.elem.style[Jt(s.prop)]!=null)?d.style(s.elem,s.prop,s.now+s.unit):s.elem[s.prop]=s.now}}},Zt.propHooks.scrollTop=Zt.propHooks.scrollLeft={set:function(s){s.elem.nodeType&&s.elem.parentNode&&(s.elem[s.prop]=s.now)}},d.easing={linear:function(s){return s},swing:function(s){return .5-Math.cos(s*Math.PI)/2},_default:"swing"},d.fx=Zt.prototype.init,d.fx.step={};var Kr,en,Kt=/^(?:toggle|show|hide)$/,Mt=/queueHooks$/;function tn(){en&&(w.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(tn):n.setTimeout(tn,d.fx.interval),d.fx.tick())}function jt(){return n.setTimeout(function(){Kr=void 0}),Kr=Date.now()}function ot(s,f){var v,m=0,A={height:s};for(f=f?1:0;m<4;m+=2-f)v=$t[m],A["margin"+v]=A["padding"+v]=s;return f&&(A.opacity=A.width=s),A}function Ao(s,f,v){for(var m,A=(Bn.tweeners[f]||[]).concat(Bn.tweeners["*"]),E=0,k=A.length;E<k;E++)if(m=A[E].call(v,f,s))return m}function Dc(s,f,v){var m,A,E,k,R,j,$,Q,ne="width"in f||"height"in f,V=this,se={},Ue=s.style,st=s.nodeType&&cr(s),Je=Ae.get(s,"fxshow");v.queue||(k=d._queueHooks(s,"fx"),k.unqueued==null&&(k.unqueued=0,R=k.empty.fire,k.empty.fire=function(){k.unqueued||R()}),k.unqueued++,V.always(function(){V.always(function(){k.unqueued--,d.queue(s,"fx").length||k.empty.fire()})}));for(m in f)if(A=f[m],Kt.test(A)){if(delete f[m],E=E||A==="toggle",A===(st?"hide":"show"))if(A==="show"&&Je&&Je[m]!==void 0)st=!0;else continue;se[m]=Je&&Je[m]||d.style(s,m)}if(j=!d.isEmptyObject(f),!(!j&&d.isEmptyObject(se))){ne&&s.nodeType===1&&(v.overflow=[Ue.overflow,Ue.overflowX,Ue.overflowY],$=Je&&Je.display,$==null&&($=Ae.get(s,"display")),Q=d.css(s,"display"),Q==="none"&&($?Q=$:(Ge([s],!0),$=s.style.display||$,Q=d.css(s,"display"),Ge([s]))),(Q==="inline"||Q==="inline-block"&&$!=null)&&d.css(s,"float")==="none"&&(j||(V.done(function(){Ue.display=$}),$==null&&(Q=Ue.display,$=Q==="none"?"":Q)),Ue.display="inline-block")),v.overflow&&(Ue.overflow="hidden",V.always(function(){Ue.overflow=v.overflow[0],Ue.overflowX=v.overflow[1],Ue.overflowY=v.overflow[2]})),j=!1;for(m in se)j||(Je?"hidden"in Je&&(st=Je.hidden):Je=Ae.access(s,"fxshow",{display:$}),E&&(Je.hidden=!st),st&&Ge([s],!0),V.done(function(){st||Ge([s]),Ae.remove(s,"fxshow");for(m in se)d.style(s,m,se[m])})),j=Ao(st?Je[m]:0,m,V),m in Je||(Je[m]=j.start,st&&(j.end=j.start,j.start=0))}}function bc(s,f){var v,m,A,E,k;for(v in s)if(m=Yt(v),A=f[m],E=s[v],Array.isArray(E)&&(A=E[1],E=s[v]=E[0]),v!==m&&(s[m]=E,delete s[v]),k=d.cssHooks[m],k&&"expand"in k){E=k.expand(E),delete s[m];for(v in E)v in s||(s[v]=E[v],f[v]=A)}else f[m]=A}function Bn(s,f,v){var m,A,E=0,k=Bn.prefilters.length,R=d.Deferred().always(function(){delete j.elem}),j=function(){if(A)return!1;for(var ne=Kr||jt(),V=Math.max(0,$.startTime+$.duration-ne),se=V/$.duration||0,Ue=1-se,st=0,Je=$.tweens.length;st<Je;st++)$.tweens[st].run(Ue);return R.notifyWith(s,[$,Ue,V]),Ue<1&&Je?V:(Je||R.notifyWith(s,[$,1,0]),R.resolveWith(s,[$]),!1)},$=R.promise({elem:s,props:d.extend({},f),opts:d.extend(!0,{specialEasing:{},easing:d.easing._default},v),originalProperties:f,originalOptions:v,startTime:Kr||jt(),duration:v.duration,tweens:[],createTween:function(ne,V){var se=d.Tween(s,$.opts,ne,V,$.opts.specialEasing[ne]||$.opts.easing);return $.tweens.push(se),se},stop:function(ne){var V=0,se=ne?$.tweens.length:0;if(A)return this;for(A=!0;V<se;V++)$.tweens[V].run(1);return ne?(R.notifyWith(s,[$,1,0]),R.resolveWith(s,[$,ne])):R.rejectWith(s,[$,ne]),this}}),Q=$.props;for(bc(Q,$.opts.specialEasing);E<k;E++)if(m=Bn.prefilters[E].call($,s,Q,$.opts),m)return _(m.stop)&&(d._queueHooks($.elem,$.opts.queue).stop=m.stop.bind(m)),m;return d.map(Q,Ao,$),_($.opts.start)&&$.opts.start.call(s,$),$.progress($.opts.progress).done($.opts.done,$.opts.complete).fail($.opts.fail).always($.opts.always),d.fx.timer(d.extend(j,{elem:s,anim:$,queue:$.opts.queue})),$}d.Animation=d.extend(Bn,{tweeners:{"*":[function(s,f){var v=this.createTween(s,f);return qr(v.elem,s,An.exec(f),v),v}]},tweener:function(s,f){_(s)?(f=s,s=["*"]):s=s.match(Se);for(var v,m=0,A=s.length;m<A;m++)v=s[m],Bn.tweeners[v]=Bn.tweeners[v]||[],Bn.tweeners[v].unshift(f)},prefilters:[Dc],prefilter:function(s,f){f?Bn.prefilters.unshift(s):Bn.prefilters.push(s)}}),d.speed=function(s,f,v){var m=s&&typeof s=="object"?d.extend({},s):{complete:v||!v&&f||_(s)&&s,duration:s,easing:v&&f||f&&!_(f)&&f};return d.fx.off?m.duration=0:typeof m.duration!="number"&&(m.duration in d.fx.speeds?m.duration=d.fx.speeds[m.duration]:m.duration=d.fx.speeds._default),(m.queue==null||m.queue===!0)&&(m.queue="fx"),m.old=m.complete,m.complete=function(){_(m.old)&&m.old.call(this),m.queue&&d.dequeue(this,m.queue)},m},d.fn.extend({fadeTo:function(s,f,v,m){return this.filter(cr).css("opacity",0).show().end().animate({opacity:f},s,v,m)},animate:function(s,f,v,m){var A=d.isEmptyObject(s),E=d.speed(f,v,m),k=function(){var R=Bn(this,d.extend({},s),E);(A||Ae.get(this,"finish"))&&R.stop(!0)};return k.finish=k,A||E.queue===!1?this.each(k):this.queue(E.queue,k)},stop:function(s,f,v){var m=function(A){var E=A.stop;delete A.stop,E(v)};return typeof s!="string"&&(v=f,f=s,s=void 0),f&&this.queue(s||"fx",[]),this.each(function(){var A=!0,E=s!=null&&s+"queueHooks",k=d.timers,R=Ae.get(this);if(E)R[E]&&R[E].stop&&m(R[E]);else for(E in R)R[E]&&R[E].stop&&Mt.test(E)&&m(R[E]);for(E=k.length;E--;)k[E].elem===this&&(s==null||k[E].queue===s)&&(k[E].anim.stop(v),A=!1,k.splice(E,1));(A||!v)&&d.dequeue(this,s)})},finish:function(s){return s!==!1&&(s=s||"fx"),this.each(function(){var f,v=Ae.get(this),m=v[s+"queue"],A=v[s+"queueHooks"],E=d.timers,k=m?m.length:0;for(v.finish=!0,d.queue(this,s,[]),A&&A.stop&&A.stop.call(this,!0),f=E.length;f--;)E[f].elem===this&&E[f].queue===s&&(E[f].anim.stop(!0),E.splice(f,1));for(f=0;f<k;f++)m[f]&&m[f].finish&&m[f].finish.call(this);delete v.finish})}}),d.each(["toggle","show","hide"],function(s,f){var v=d.fn[f];d.fn[f]=function(m,A,E){return m==null||typeof m=="boolean"?v.apply(this,arguments):this.animate(ot(f,!0),m,A,E)}}),d.each({slideDown:ot("show"),slideUp:ot("hide"),slideToggle:ot("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(s,f){d.fn[s]=function(v,m,A){return this.animate(f,v,m,A)}}),d.timers=[],d.fx.tick=function(){var s,f=0,v=d.timers;for(Kr=Date.now();f<v.length;f++)s=v[f],!s()&&v[f]===s&&v.splice(f--,1);v.length||d.fx.stop(),Kr=void 0},d.fx.timer=function(s){d.timers.push(s),d.fx.start()},d.fx.interval=13,d.fx.start=function(){en||(en=!0,tn())},d.fx.stop=function(){en=null},d.fx.speeds={slow:600,fast:200,_default:400},d.fn.delay=function(s,f){return s=d.fx&&d.fx.speeds[s]||s,f=f||"fx",this.queue(f,function(v,m){var A=n.setTimeout(v,s);m.stop=function(){n.clearTimeout(A)}})},(function(){var s=w.createElement("input"),f=w.createElement("select"),v=f.appendChild(w.createElement("option"));s.type="checkbox",D.checkOn=s.value!=="",D.optSelected=v.selected,s=w.createElement("input"),s.value="t",s.type="radio",D.radioValue=s.value==="t"})();var Eo,Du=d.expr.attrHandle;d.fn.extend({attr:function(s,f){return Ut(this,d.attr,s,f,arguments.length>1)},removeAttr:function(s){return this.each(function(){d.removeAttr(this,s)})}}),d.extend({attr:function(s,f,v){var m,A,E=s.nodeType;if(!(E===3||E===8||E===2)){if(typeof s.getAttribute=="undefined")return d.prop(s,f,v);if((E!==1||!d.isXMLDoc(s))&&(A=d.attrHooks[f.toLowerCase()]||(d.expr.match.bool.test(f)?Eo:void 0)),v!==void 0){if(v===null){d.removeAttr(s,f);return}return A&&"set"in A&&(m=A.set(s,v,f))!==void 0?m:(s.setAttribute(f,v+""),v)}return A&&"get"in A&&(m=A.get(s,f))!==null?m:(m=d.find.attr(s,f),m==null?void 0:m)}},attrHooks:{type:{set:function(s,f){if(!D.radioValue&&f==="radio"&&N(s,"input")){var v=s.value;return s.setAttribute("type",f),v&&(s.value=v),f}}}},removeAttr:function(s,f){var v,m=0,A=f&&f.match(Se);if(A&&s.nodeType===1)for(;v=A[m++];)s.removeAttribute(v)}}),Eo={set:function(s,f,v){return f===!1?d.removeAttr(s,v):s.setAttribute(v,v),v}},d.each(d.expr.match.bool.source.match(/\w+/g),function(s,f){var v=Du[f]||d.find.attr;Du[f]=function(m,A,E){var k,R,j=A.toLowerCase();return E||(R=Du[j],Du[j]=k,k=v(m,A,E)!=null?j:null,Du[j]=R),k}});var Qr=/^(?:input|select|textarea|button)$/i,DA=/^(?:a|area)$/i;d.fn.extend({prop:function(s,f){return Ut(this,d.prop,s,f,arguments.length>1)},removeProp:function(s){return this.each(function(){delete this[d.propFix[s]||s]})}}),d.extend({prop:function(s,f,v){var m,A,E=s.nodeType;if(!(E===3||E===8||E===2))return(E!==1||!d.isXMLDoc(s))&&(f=d.propFix[f]||f,A=d.propHooks[f]),v!==void 0?A&&"set"in A&&(m=A.set(s,v,f))!==void 0?m:s[f]=v:A&&"get"in A&&(m=A.get(s,f))!==null?m:s[f]},propHooks:{tabIndex:{get:function(s){var f=d.find.attr(s,"tabindex");return f?parseInt(f,10):Qr.test(s.nodeName)||DA.test(s.nodeName)&&s.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),D.optSelected||(d.propHooks.selected={get:function(s){var f=s.parentNode;return f&&f.parentNode&&f.parentNode.selectedIndex,null},set:function(s){var f=s.parentNode;f&&(f.selectedIndex,f.parentNode&&f.parentNode.selectedIndex)}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){d.propFix[this.toLowerCase()]=this});function bu(s){var f=s.match(Se)||[];return f.join(" ")}function Au(s){return s.getAttribute&&s.getAttribute("class")||""}function Ac(s){return Array.isArray(s)?s:typeof s=="string"?s.match(Se)||[]:[]}d.fn.extend({addClass:function(s){var f,v,m,A,E,k;return _(s)?this.each(function(R){d(this).addClass(s.call(this,R,Au(this)))}):(f=Ac(s),f.length?this.each(function(){if(m=Au(this),v=this.nodeType===1&&" "+bu(m)+" ",v){for(E=0;E<f.length;E++)A=f[E],v.indexOf(" "+A+" ")<0&&(v+=A+" ");k=bu(v),m!==k&&this.setAttribute("class",k)}}):this)},removeClass:function(s){var f,v,m,A,E,k;return _(s)?this.each(function(R){d(this).removeClass(s.call(this,R,Au(this)))}):arguments.length?(f=Ac(s),f.length?this.each(function(){if(m=Au(this),v=this.nodeType===1&&" "+bu(m)+" ",v){for(E=0;E<f.length;E++)for(A=f[E];v.indexOf(" "+A+" ")>-1;)v=v.replace(" "+A+" "," ");k=bu(v),m!==k&&this.setAttribute("class",k)}}):this):this.attr("class","")},toggleClass:function(s,f){var v,m,A,E,k=typeof s,R=k==="string"||Array.isArray(s);return _(s)?this.each(function(j){d(this).toggleClass(s.call(this,j,Au(this),f),f)}):typeof f=="boolean"&&R?f?this.addClass(s):this.removeClass(s):(v=Ac(s),this.each(function(){if(R)for(E=d(this),A=0;A<v.length;A++)m=v[A],E.hasClass(m)?E.removeClass(m):E.addClass(m);else(s===void 0||k==="boolean")&&(m=Au(this),m&&Ae.set(this,"__className__",m),this.setAttribute&&this.setAttribute("class",m||s===!1?"":Ae.get(this,"__className__")||""))}))},hasClass:function(s){var f,v,m=0;for(f=" "+s+" ";v=this[m++];)if(v.nodeType===1&&(" "+bu(Au(v))+" ").indexOf(f)>-1)return!0;return!1}});var bA=/\r/g;d.fn.extend({val:function(s){var f,v,m,A=this[0];return arguments.length?(m=_(s),this.each(function(E){var k;this.nodeType===1&&(m?k=s.call(this,E,d(this).val()):k=s,k==null?k="":typeof k=="number"?k+="":Array.isArray(k)&&(k=d.map(k,function(R){return R==null?"":R+""})),f=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],(!f||!("set"in f)||f.set(this,k,"value")===void 0)&&(this.value=k))})):A?(f=d.valHooks[A.type]||d.valHooks[A.nodeName.toLowerCase()],f&&"get"in f&&(v=f.get(A,"value"))!==void 0?v:(v=A.value,typeof v=="string"?v.replace(bA,""):v==null?"":v)):void 0}}),d.extend({valHooks:{option:{get:function(s){var f=d.find.attr(s,"value");return f!=null?f:bu(d.text(s))}},select:{get:function(s){var f,v,m,A=s.options,E=s.selectedIndex,k=s.type==="select-one",R=k?null:[],j=k?E+1:A.length;for(E<0?m=j:m=k?E:0;m<j;m++)if(v=A[m],(v.selected||m===E)&&!v.disabled&&(!v.parentNode.disabled||!N(v.parentNode,"optgroup"))){if(f=d(v).val(),k)return f;R.push(f)}return R},set:function(s,f){for(var v,m,A=s.options,E=d.makeArray(f),k=A.length;k--;)m=A[k],(m.selected=d.inArray(d.valHooks.option.get(m),E)>-1)&&(v=!0);return v||(s.selectedIndex=-1),E}}}}),d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(s,f){if(Array.isArray(f))return s.checked=d.inArray(d(s).val(),f)>-1}},D.checkOn||(d.valHooks[this].get=function(s){return s.getAttribute("value")===null?"on":s.value})});var ii=n.location,Eh={guid:Date.now()},Ec=/\?/;d.parseXML=function(s){var f,v;if(!s||typeof s!="string")return null;try{f=new n.DOMParser().parseFromString(s,"text/xml")}catch(m){}return v=f&&f.getElementsByTagName("parsererror")[0],(!f||v)&&d.error("Invalid XML: "+(v?d.map(v.childNodes,function(m){return m.textContent}).join(`
|
|
4
|
-
`):s)),f};var
|
|
5
|
-
`)}}):{name:f.name,value:
|
|
6
|
-
`)}}).get()}});var _A=/%20/g,CA=/#.*$/,kA=/([?&])_=[^&]*/,wA=/^(.*?):[ \t]*([^\r\n]*)$/mg,xA=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,SA=/^(?:GET|HEAD)$/,TA=/^\/\//,kh={},_c={},wh="*/".concat("*"),Cc=w.createElement("a");Cc.href=ii.href;function xh(s){return function(f,v){typeof f!="string"&&(v=f,f="*");var m,A=0,E=f.toLowerCase().match(Se)||[];if(_(v))for(;m=E[A++];)m[0]==="+"?(m=m.slice(1)||"*",(s[m]=s[m]||[]).unshift(v)):(s[m]=s[m]||[]).push(v)}}function Sh(s,f,v,m){var A={},E=s===_c;function k(R){var j;return A[R]=!0,d.each(s[R]||[],function($,Q){var ne=Q(f,v,m);if(typeof ne=="string"&&!E&&!A[ne])return f.dataTypes.unshift(ne),k(ne),!1;if(E)return!(j=ne)}),j}return k(f.dataTypes[0])||!A["*"]&&k("*")}function kc(s,f){var v,m,A=d.ajaxSettings.flatOptions||{};for(v in f)f[v]!==void 0&&((A[v]?s:m||(m={}))[v]=f[v]);return m&&d.extend(!0,s,m),s}function OA(s,f,v){for(var m,A,E,k,R=s.contents,j=s.dataTypes;j[0]==="*";)j.shift(),m===void 0&&(m=s.mimeType||f.getResponseHeader("Content-Type"));if(m){for(A in R)if(R[A]&&R[A].test(m)){j.unshift(A);break}}if(j[0]in v)E=j[0];else{for(A in v){if(!j[0]||s.converters[A+" "+j[0]]){E=A;break}k||(k=A)}E=E||k}if(E)return E!==j[0]&&j.unshift(E),v[E]}function IA(s,f,v,m){var A,E,k,R,j,$={},Q=s.dataTypes.slice();if(Q[1])for(k in s.converters)$[k.toLowerCase()]=s.converters[k];for(E=Q.shift();E;)if(s.responseFields[E]&&(v[s.responseFields[E]]=f),!j&&m&&s.dataFilter&&(f=s.dataFilter(f,s.dataType)),j=E,E=Q.shift(),E){if(E==="*")E=j;else if(j!=="*"&&j!==E){if(k=$[j+" "+E]||$["* "+E],!k){for(A in $)if(R=A.split(" "),R[1]===E&&(k=$[j+" "+R[0]]||$["* "+R[0]],k)){k===!0?k=$[A]:$[A]!==!0&&(E=R[0],Q.unshift(R[1]));break}}if(k!==!0)if(k&&s.throws)f=k(f);else try{f=k(f)}catch(ne){return{state:"parsererror",error:k?ne:"No conversion from "+j+" to "+E}}}}return{state:"success",data:f}}d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ii.href,type:"GET",isLocal:xA.test(ii.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wh,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(s,f){return f?kc(kc(s,d.ajaxSettings),f):kc(d.ajaxSettings,s)},ajaxPrefilter:xh(kh),ajaxTransport:xh(_c),ajax:function(s,f){typeof s=="object"&&(f=s,s=void 0),f=f||{};var v,m,A,E,k,R,j,$,Q,ne,V=d.ajaxSetup({},f),se=V.context||V,Ue=V.context&&(se.nodeType||se.jquery)?d(se):d.event,st=d.Deferred(),Je=d.Callbacks("once memory"),an=V.statusCode||{},Qt={},hr={},vr="canceled",at={readyState:0,getResponseHeader:function(pt){var Nt;if(j){if(!E)for(E={};Nt=wA.exec(A);)E[Nt[1].toLowerCase()+" "]=(E[Nt[1].toLowerCase()+" "]||[]).concat(Nt[2]);Nt=E[pt.toLowerCase()+" "]}return Nt==null?null:Nt.join(", ")},getAllResponseHeaders:function(){return j?A:null},setRequestHeader:function(pt,Nt){return j==null&&(pt=hr[pt.toLowerCase()]=hr[pt.toLowerCase()]||pt,Qt[pt]=Nt),this},overrideMimeType:function(pt){return j==null&&(V.mimeType=pt),this},statusCode:function(pt){var Nt;if(pt)if(j)at.always(pt[at.status]);else for(Nt in pt)an[Nt]=[an[Nt],pt[Nt]];return this},abort:function(pt){var Nt=pt||vr;return v&&v.abort(Nt),Eu(0,Nt),this}};if(st.promise(at),V.url=((s||V.url||ii.href)+"").replace(TA,ii.protocol+"//"),V.type=f.method||f.type||V.method||V.type,V.dataTypes=(V.dataType||"*").toLowerCase().match(Se)||[""],V.crossDomain==null){R=w.createElement("a");try{R.href=V.url,R.href=R.href,V.crossDomain=Cc.protocol+"//"+Cc.host!=R.protocol+"//"+R.host}catch(pt){V.crossDomain=!0}}if(V.data&&V.processData&&typeof V.data!="string"&&(V.data=d.param(V.data,V.traditional)),Sh(kh,V,f,at),j)return at;$=d.event&&V.global,$&&d.active++===0&&d.event.trigger("ajaxStart"),V.type=V.type.toUpperCase(),V.hasContent=!SA.test(V.type),m=V.url.replace(CA,""),V.hasContent?V.data&&V.processData&&(V.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(V.data=V.data.replace(_A,"+")):(ne=V.url.slice(m.length),V.data&&(V.processData||typeof V.data=="string")&&(m+=(Ec.test(m)?"&":"?")+V.data,delete V.data),V.cache===!1&&(m=m.replace(kA,"$1"),ne=(Ec.test(m)?"&":"?")+"_="+Eh.guid+++ne),V.url=m+ne),V.ifModified&&(d.lastModified[m]&&at.setRequestHeader("If-Modified-Since",d.lastModified[m]),d.etag[m]&&at.setRequestHeader("If-None-Match",d.etag[m])),(V.data&&V.hasContent&&V.contentType!==!1||f.contentType)&&at.setRequestHeader("Content-Type",V.contentType),at.setRequestHeader("Accept",V.dataTypes[0]&&V.accepts[V.dataTypes[0]]?V.accepts[V.dataTypes[0]]+(V.dataTypes[0]!=="*"?", "+wh+"; q=0.01":""):V.accepts["*"]);for(Q in V.headers)at.setRequestHeader(Q,V.headers[Q]);if(V.beforeSend&&(V.beforeSend.call(se,at,V)===!1||j))return at.abort();if(vr="abort",Je.add(V.complete),at.done(V.success),at.fail(V.error),v=Sh(_c,V,f,at),!v)Eu(-1,"No Transport");else{if(at.readyState=1,$&&Ue.trigger("ajaxSend",[at,V]),j)return at;V.async&&V.timeout>0&&(k=n.setTimeout(function(){at.abort("timeout")},V.timeout));try{j=!1,v.send(Qt,Eu)}catch(pt){if(j)throw pt;Eu(-1,pt)}}function Eu(pt,Nt,si,xc){var mr,ci,gr,Yr,Xr,Mn=Nt;j||(j=!0,k&&n.clearTimeout(k),v=void 0,A=xc||"",at.readyState=pt>0?4:0,mr=pt>=200&&pt<300||pt===304,si&&(Yr=OA(V,at,si)),!mr&&d.inArray("script",V.dataTypes)>-1&&d.inArray("json",V.dataTypes)<0&&(V.converters["text script"]=function(){}),Yr=IA(V,Yr,at,mr),mr?(V.ifModified&&(Xr=at.getResponseHeader("Last-Modified"),Xr&&(d.lastModified[m]=Xr),Xr=at.getResponseHeader("etag"),Xr&&(d.etag[m]=Xr)),pt===204||V.type==="HEAD"?Mn="nocontent":pt===304?Mn="notmodified":(Mn=Yr.state,ci=Yr.data,gr=Yr.error,mr=!gr)):(gr=Mn,(pt||!Mn)&&(Mn="error",pt<0&&(pt=0))),at.status=pt,at.statusText=(Nt||Mn)+"",mr?st.resolveWith(se,[ci,Mn,at]):st.rejectWith(se,[at,Mn,gr]),at.statusCode(an),an=void 0,$&&Ue.trigger(mr?"ajaxSuccess":"ajaxError",[at,V,mr?ci:gr]),Je.fireWith(se,[at,Mn]),$&&(Ue.trigger("ajaxComplete",[at,V]),--d.active||d.event.trigger("ajaxStop")))}return at},getJSON:function(s,f,v){return d.get(s,f,v,"json")},getScript:function(s,f){return d.get(s,void 0,f,"script")}}),d.each(["get","post"],function(s,f){d[f]=function(v,m,A,E){return _(m)&&(E=E||A,A=m,m=void 0),d.ajax(d.extend({url:v,type:f,dataType:E,data:m,success:A},d.isPlainObject(v)&&v))}}),d.ajaxPrefilter(function(s){var f;for(f in s.headers)f.toLowerCase()==="content-type"&&(s.contentType=s.headers[f]||"")}),d._evalUrl=function(s,f,v){return d.ajax({url:s,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(m){d.globalEval(m,f,v)}})},d.fn.extend({wrapAll:function(s){var f;return this[0]&&(_(s)&&(s=s.call(this[0])),f=d(s,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&f.insertBefore(this[0]),f.map(function(){for(var v=this;v.firstElementChild;)v=v.firstElementChild;return v}).append(this)),this},wrapInner:function(s){return _(s)?this.each(function(f){d(this).wrapInner(s.call(this,f))}):this.each(function(){var f=d(this),v=f.contents();v.length?v.wrapAll(s):f.append(s)})},wrap:function(s){var f=_(s);return this.each(function(v){d(this).wrapAll(f?s.call(this,v):s)})},unwrap:function(s){return this.parent(s).not("body").each(function(){d(this).replaceWith(this.childNodes)}),this}}),d.expr.pseudos.hidden=function(s){return!d.expr.pseudos.visible(s)},d.expr.pseudos.visible=function(s){return!!(s.offsetWidth||s.offsetHeight||s.getClientRects().length)},d.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(s){}};var BA={0:200,1223:204},oi=d.ajaxSettings.xhr();D.cors=!!oi&&"withCredentials"in oi,D.ajax=oi=!!oi,d.ajaxTransport(function(s){var f,v;if(D.cors||oi&&!s.crossDomain)return{send:function(m,A){var E,k=s.xhr();if(k.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(E in s.xhrFields)k[E]=s.xhrFields[E];s.mimeType&&k.overrideMimeType&&k.overrideMimeType(s.mimeType),!s.crossDomain&&!m["X-Requested-With"]&&(m["X-Requested-With"]="XMLHttpRequest");for(E in m)k.setRequestHeader(E,m[E]);f=function(R){return function(){f&&(f=v=k.onload=k.onerror=k.onabort=k.ontimeout=k.onreadystatechange=null,R==="abort"?k.abort():R==="error"?typeof k.status!="number"?A(0,"error"):A(k.status,k.statusText):A(BA[k.status]||k.status,k.statusText,(k.responseType||"text")!=="text"||typeof k.responseText!="string"?{binary:k.response}:{text:k.responseText},k.getAllResponseHeaders()))}},k.onload=f(),v=k.onerror=k.ontimeout=f("error"),k.onabort!==void 0?k.onabort=v:k.onreadystatechange=function(){k.readyState===4&&n.setTimeout(function(){f&&v()})},f=f("abort");try{k.send(s.hasContent&&s.data||null)}catch(R){if(f)throw R}},abort:function(){f&&f()}}}),d.ajaxPrefilter(function(s){s.crossDomain&&(s.contents.script=!1)}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(s){return d.globalEval(s),s}}}),d.ajaxPrefilter("script",function(s){s.cache===void 0&&(s.cache=!1),s.crossDomain&&(s.type="GET")}),d.ajaxTransport("script",function(s){if(s.crossDomain||s.scriptAttrs){var f,v;return{send:function(m,A){f=d("<script>").attr(s.scriptAttrs||{}).prop({charset:s.scriptCharset,src:s.url}).on("load error",v=function(E){f.remove(),v=null,E&&A(E.type==="error"?404:200,E.type)}),w.head.appendChild(f[0])},abort:function(){v&&v()}}}});var Th=[],wc=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var s=Th.pop()||d.expando+"_"+Eh.guid++;return this[s]=!0,s}}),d.ajaxPrefilter("json jsonp",function(s,f,v){var m,A,E,k=s.jsonp!==!1&&(wc.test(s.url)?"url":typeof s.data=="string"&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&wc.test(s.data)&&"data");if(k||s.dataTypes[0]==="jsonp")return m=s.jsonpCallback=_(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,k?s[k]=s[k].replace(wc,"$1"+m):s.jsonp!==!1&&(s.url+=(Ec.test(s.url)?"&":"?")+s.jsonp+"="+m),s.converters["script json"]=function(){return E||d.error(m+" was not called"),E[0]},s.dataTypes[0]="json",A=n[m],n[m]=function(){E=arguments},v.always(function(){A===void 0?d(n).removeProp(m):n[m]=A,s[m]&&(s.jsonpCallback=f.jsonpCallback,Th.push(m)),E&&_(A)&&A(E[0]),E=A=void 0}),"script"}),D.createHTMLDocument=(function(){var s=w.implementation.createHTMLDocument("").body;return s.innerHTML="<form></form><form></form>",s.childNodes.length===2})(),d.parseHTML=function(s,f,v){if(typeof s!="string")return[];typeof f=="boolean"&&(v=f,f=!1);var m,A,E;return f||(D.createHTMLDocument?(f=w.implementation.createHTMLDocument(""),m=f.createElement("base"),m.href=w.location.href,f.head.appendChild(m)):f=w),A=Y.exec(s),E=!v&&[],A?[f.createElement(A[1])]:(A=Do([s],f,E),E&&E.length&&d(E).remove(),d.merge([],A.childNodes))},d.fn.load=function(s,f,v){var m,A,E,k=this,R=s.indexOf(" ");return R>-1&&(m=bu(s.slice(R)),s=s.slice(0,R)),_(f)?(v=f,f=void 0):f&&typeof f=="object"&&(A="POST"),k.length>0&&d.ajax({url:s,type:A||"GET",dataType:"html",data:f}).done(function(j){E=arguments,k.html(m?d("<div>").append(d.parseHTML(j)).find(m):j)}).always(v&&function(j,$){k.each(function(){v.apply(this,E||[j.responseText,$,j])})}),this},d.expr.pseudos.animated=function(s){return d.grep(d.timers,function(f){return s===f.elem}).length},d.offset={setOffset:function(s,f,v){var m,A,E,k,R,j,$,Q=d.css(s,"position"),ne=d(s),V={};Q==="static"&&(s.style.position="relative"),R=ne.offset(),E=d.css(s,"top"),j=d.css(s,"left"),$=(Q==="absolute"||Q==="fixed")&&(E+j).indexOf("auto")>-1,$?(m=ne.position(),k=m.top,A=m.left):(k=parseFloat(E)||0,A=parseFloat(j)||0),_(f)&&(f=f.call(s,v,d.extend({},R))),f.top!=null&&(V.top=f.top-R.top+k),f.left!=null&&(V.left=f.left-R.left+A),"using"in f?f.using.call(s,V):ne.css(V)}},d.fn.extend({offset:function(s){if(arguments.length)return s===void 0?this:this.each(function(A){d.offset.setOffset(this,s,A)});var f,v,m=this[0];if(m)return m.getClientRects().length?(f=m.getBoundingClientRect(),v=m.ownerDocument.defaultView,{top:f.top+v.pageYOffset,left:f.left+v.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var s,f,v,m=this[0],A={top:0,left:0};if(d.css(m,"position")==="fixed")f=m.getBoundingClientRect();else{for(f=this.offset(),v=m.ownerDocument,s=m.offsetParent||v.documentElement;s&&(s===v.body||s===v.documentElement)&&d.css(s,"position")==="static";)s=s.parentNode;s&&s!==m&&s.nodeType===1&&(A=d(s).offset(),A.top+=d.css(s,"borderTopWidth",!0),A.left+=d.css(s,"borderLeftWidth",!0))}return{top:f.top-A.top-d.css(m,"marginTop",!0),left:f.left-A.left-d.css(m,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var s=this.offsetParent;s&&d.css(s,"position")==="static";)s=s.offsetParent;return s||En})}}),d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(s,f){var v=f==="pageYOffset";d.fn[s]=function(m){return Ut(this,function(A,E,k){var R;if(T(A)?R=A:A.nodeType===9&&(R=A.defaultView),k===void 0)return R?R[f]:A[E];R?R.scrollTo(v?R.pageXOffset:k,v?k:R.pageYOffset):A[E]=k},s,m,arguments.length)}}),d.each(["top","left"],function(s,f){d.cssHooks[f]=_n(D.pixelPosition,function(v,m){if(m)return m=dt(v,f),Qu.test(m)?d(v).position()[f]+"px":m})}),d.each({Height:"height",Width:"width"},function(s,f){d.each({padding:"inner"+s,content:f,"":"outer"+s},function(v,m){d.fn[m]=function(A,E){var k=arguments.length&&(v||typeof A!="boolean"),R=v||(A===!0||E===!0?"margin":"border");return Ut(this,function(j,$,Q){var ne;return T(j)?m.indexOf("outer")===0?j["inner"+s]:j.document.documentElement["client"+s]:j.nodeType===9?(ne=j.documentElement,Math.max(j.body["scroll"+s],ne["scroll"+s],j.body["offset"+s],ne["offset"+s],ne["client"+s])):Q===void 0?d.css(j,$,R):d.style(j,$,Q,R)},f,k?A:void 0,k)}})}),d.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(s,f){d.fn[f]=function(v){return this.on(f,v)}}),d.fn.extend({bind:function(s,f,v){return this.on(s,null,f,v)},unbind:function(s,f){return this.off(s,null,f)},delegate:function(s,f,v,m){return this.on(f,s,v,m)},undelegate:function(s,f,v){return arguments.length===1?this.off(s,"**"):this.off(f,s||"**",v)},hover:function(s,f){return this.on("mouseenter",s).on("mouseleave",f||s)}}),d.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(s,f){d.fn[f]=function(v,m){return arguments.length>0?this.on(f,null,v,m):this.trigger(f)}});var PA=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;d.proxy=function(s,f){var v,m,A;if(typeof f=="string"&&(v=s[f],f=s,s=v),!!_(s))return m=i.call(arguments,2),A=function(){return s.apply(f||this,m.concat(i.call(arguments)))},A.guid=s.guid=s.guid||d.guid++,A},d.holdReady=function(s){s?d.readyWait++:d.ready(!0)},d.isArray=Array.isArray,d.parseJSON=JSON.parse,d.nodeName=N,d.isFunction=_,d.isWindow=T,d.camelCase=Yt,d.type=O,d.now=Date.now,d.isNumeric=function(s){var f=d.type(s);return(f==="number"||f==="string")&&!isNaN(s-parseFloat(s))},d.trim=function(s){return s==null?"":(s+"").replace(PA,"$1")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return d});var jA=n.jQuery,NA=n.$;return d.noConflict=function(s){return n.$===d&&(n.$=NA),s&&n.jQuery===d&&(n.jQuery=jA),d},typeof r=="undefined"&&(n.jQuery=n.$=d),d})}}),HA=di(Lh()),ea=e=>e.getBoundingClientRect().height,Rc=()=>{let e=window.innerHeight*.01;document.querySelector("html").setAttribute("style",`--vh:${e}px;`);let t=document.querySelector("header"),n=document.querySelector("footer");if(!t||!n)return;let r=window.innerHeight-ea(t)-ea(n);document.querySelector("main").setAttribute("style",`--mh:${r}px;`)};Rc(),window.onresize=Rc;var pi=()=>{let e=new Date;return e.setTime(e.getTime()+100*365*24*60*60*1e3),`expires=${e.toUTCString()};`},wo=e=>{let t=RegExp(`${e}=.[^;]*`),n=document.cookie.match(t);if(n){let r=n[0].split("=");return decodeURIComponent(r[1])}return!1};(()=>{let e=document.getElementById("topNoticeAlert"),t=window.sessionStorage.getItem("notice"),n=document.getElementById("cookieNoticeAlert"),r="chocolatey_hide_cookies_notice";e&&(t?e.remove():e.classList.remove("d-none"),e.querySelector("button").addEventListener("click",()=>sessionStorage.setItem("notice","true"),!1)),n&&(wo(r)?n.remove():n.classList.remove("d-none"),n.querySelectorAll("button").forEach(u=>{u.addEventListener("click",()=>{~location.hostname.indexOf("chocolatey.org")?document.cookie=`${r}=true; ${pi()}path=/; domain=chocolatey.org;`:document.cookie=`${r}=true; ${pi()}path=/;`},!1)}))})(),(()=>{let e=document.querySelectorAll(".callout"),t=document.querySelectorAll("blockquote"),n=r=>{r.forEach(u=>{let a=u.querySelector(".callout-header");if(u.nodeName==="BLOCKQUOTE"&&u.querySelector("p:first-child")&&u.querySelector("p:first-child").textContent.includes(":choco-")&&(a=u.querySelector("p:first-child")),a){let i="",o="",c=a.textContent;u.classList.contains("callout-success")||c.includes(":choco-success:")?(o="success",i="check",u.classList.add("callout-success")):u.classList.contains("callout-danger")||c.includes(":choco-danger:")?(o="danger",i="xmark",u.classList.add("callout-danger")):u.classList.contains("callout-warning")||c.includes(":choco-warning:")?(o="warning",i="triangle-exclamation",u.classList.add("callout-warning")):u.classList.contains("callout-tip")||c.includes(":choco-tip:")?(o="tip",i="lightbulb",u.classList.add("callout-tip")):(o="info",i="info",u.classList.add("callout-info")),c.includes(":choco-")&&(c=c.replace(/:.+?:/,"").trim());let l=`<div class="callout-header d-flex align-items-center"><span class="flex-shrink-0 text-bg-${o} h-px-30 w-px-30 d-flex align-items-center justify-content-center rounded me-3"><span class="fa-solid fa-${i}"></span></span><p class="lead"><strong>${c}</strong></p></div>`;a.outerHTML=l}})};n(e),n(t)})();var qh=di(Mh());(()=>{let e=new qh.default(".btn-copy"),t=document.querySelectorAll(".user-select-all");e.on("success",n=>{if(n.trigger.classList.contains("copy-to-clipboard-button"))n.trigger.textContent="Copied!",setTimeout(()=>{n.trigger.blur(),setTimeout(()=>{n.trigger.textContent="Copy"},200)},2e3);else{let r=new bootstrap.Button(n.trigger);setTimeout(()=>{r.toggle()},2e3)}n.clearSelection()}),t&&t.forEach(n=>n.addEventListener("click",()=>n.select(),!1))})();var Hh=e=>{e.innerHTML=e.innerHTML.trim()};(()=>{let e=document.querySelectorAll("code"),t=document.querySelectorAll("pre");e.forEach(Hh),(()=>{let r=window.location.href;if(["en-us/choco/commands/","en-us/create/commands/"].some(a=>r.includes(a))){let a=document.querySelectorAll("h2");for(let i of a){let o=i.textContent.trim();if(o==="Examples"||o==="Usage"){let c=i.nextElementSibling;for(;c&&c.tagName!=="H2";){if(c.tagName==="PRE"&&c.firstElementChild&&c.firstElementChild.tagName==="CODE"){let l=c.firstElementChild,p=l.textContent.split(`
|
|
7
|
-
`).map(
|
|
8
|
-
`)}c=c.nextElementSibling}}}}})();for(let r of t)!r.classList.contains("highlight-delay")&&!r.classList.contains("d-format-none")&&(r.classList.add("line-numbers","language-none"),Prism.highlightAll())})();var
|
|
9
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,i=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return i=c.done,c},e:function(c){o=!0,a=c},f:function(){try{i||n.return==null||n.return()}finally{if(o)throw a}}}}function
|
|
10
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Zc(e){var t=(function(n,r){if(typeof n!="object"||!n)return n;var u=n[Symbol.toPrimitive];if(u!==void 0){var a=u.call(n,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)})(e,"string");return typeof t=="symbol"?t:t+""}function Ce(e){return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ce(e)}function Oo(e,t){if(e){if(typeof e=="string")return xo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xo(e,t):void 0}}function Io(e){var t=typeof Map=="function"?new Map:void 0;return Io=function(n){if(n===null||!(function(u){try{return Function.toString.call(u).indexOf("[native code]")!==-1}catch(a){return typeof u=="function"}})(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return(function(u,a,i){if(So())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,a);var c=new(u.bind.apply(u,o));return i&&ra(c,i.prototype),c})(n,arguments,na(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ra(r,n)},Io(e)}var ua,Qe,qc,ru,Hc,Uc,Vc,Wc,Bo,Po,jo,Gc,aa={},Jc=[],Uh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ia=Array.isArray;function er(e,t){for(var n in t)e[n]=t[n];return e}function No(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function wn(e,t,n){var r,u,a,i={};for(a in t)a=="key"?r=t[a]:a=="ref"?u=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?ua.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]===void 0&&(i[a]=e.defaultProps[a]);return oa(e,i,r,u,null)}function oa(e,t,n,r,u){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:u==null?++qc:u,__i:-1,__u:0};return u==null&&Qe.vnode!=null&&Qe.vnode(a),a}function tr(e){return e.children}function nr(e,t){this.props=e,this.context=t}function ku(e,t){if(t==null)return e.__?ku(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?ku(e):null}function Kc(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Kc(e)}}function Ro(e){(!e.__d&&(e.__d=!0)&&ru.push(e)&&!hi.__r++||Hc!=Qe.debounceRendering)&&((Hc=Qe.debounceRendering)||Uc)(hi)}function hi(){for(var e,t,n,r,u,a,i,o=1;ru.length;)ru.length>o&&ru.sort(Vc),e=ru.shift(),o=ru.length,e.__d&&(n=void 0,r=void 0,u=(r=(t=e).__v).__e,a=[],i=[],t.__P&&((n=er({},r)).__v=r.__v+1,Qe.vnode&&Qe.vnode(n),zo(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[u]:null,a,u==null?ku(r):u,!!(32&r.__u),i),n.__v=r.__v,n.__.__k[n.__i]=n,tl(a,n,i),r.__e=r.__=null,n.__e!=u&&Kc(n)));hi.__r=0}function Qc(e,t,n,r,u,a,i,o,c,l,h){var p,g,y,F,D,_,T,w=r&&r.__k||Jc,S=t.length;for(c=(function(x,O,I,B,d){var q,N,Z,z,H,L=I.length,K=L,J=0;for(x.__k=new Array(d),q=0;q<d;q++)(N=O[q])!=null&&typeof N!="boolean"&&typeof N!="function"?(z=q+J,(N=x.__k[q]=typeof N=="string"||typeof N=="number"||typeof N=="bigint"||N.constructor==String?oa(null,N,null,null,null):ia(N)?oa(tr,{children:N},null,null,null):N.constructor==null&&N.__b>0?oa(N.type,N.props,N.key,N.ref?N.ref:null,N.__v):N).__=x,N.__b=x.__b+1,Z=null,(H=N.__i=Vh(N,I,z,K))!=-1&&(K--,(Z=I[H])&&(Z.__u|=2)),Z==null||Z.__v==null?(H==-1&&(d>L?J--:d<L&&J++),typeof N.type!="function"&&(N.__u|=4)):H!=z&&(H==z-1?J--:H==z+1?J++:(H>z?J--:J++,N.__u|=4))):x.__k[q]=null;if(K)for(q=0;q<L;q++)(Z=I[q])!=null&&!(2&Z.__u)&&(Z.__e==B&&(B=ku(Z)),rl(Z,Z));return B})(n,t,w,c,S),p=0;p<S;p++)(y=n.__k[p])!=null&&(g=y.__i==-1?aa:w[y.__i]||aa,y.__i=p,_=zo(e,y,g,u,a,i,o,c,l,h),F=y.__e,y.ref&&g.ref!=y.ref&&(g.ref&&Mo(g.ref,null,y),h.push(y.ref,y.__c||F,y)),D==null&&F!=null&&(D=F),(T=!!(4&y.__u))||g.__k===y.__k?c=Yc(y,c,e,T):typeof y.type=="function"&&_!==void 0?c=_:F&&(c=F.nextSibling),y.__u&=-7);return n.__e=D,c}function Yc(e,t,n,r){var u,a;if(typeof e.type=="function"){for(u=e.__k,a=0;u&&a<u.length;a++)u[a]&&(u[a].__=e,t=Yc(u[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=ku(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Dr(e,t){return t=t||[],e==null||typeof e=="boolean"||(ia(e)?e.some(function(n){Dr(n,t)}):t.push(e)),t}function Vh(e,t,n,r){var u,a,i,o=e.key,c=e.type,l=t[n],h=l!=null&&!(2&l.__u);if(l===null&&e.key==null||h&&o==l.key&&c==l.type)return n;if(r>(h?1:0)){for(u=n-1,a=n+1;u>=0||a<t.length;)if((l=t[i=u>=0?u--:a++])!=null&&!(2&l.__u)&&o==l.key&&c==l.type)return i}return-1}function Xc(e,t,n){t[0]=="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||Uh.test(t)?n:n+"px"}function vi(e,t,n,r,u){var a,i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Xc(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Xc(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")a=t!=(t=t.replace(Wc,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=Bo,e.addEventListener(t,a?jo:Po,a)):e.removeEventListener(t,a?jo:Po,a);else{if(u=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n==null?"":n;break e}catch(o){}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function el(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Bo++;else if(t.t<n.u)return;return n(Qe.event?Qe.event(t):t)}}}function zo(e,t,n,r,u,a,i,o,c,l){var h,p,g,y,F,D,_,T,w,S,x,O,I,B,d,q,N,Z=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),a=[o=t.__e=n.__e]),(h=Qe.__b)&&h(t);e:if(typeof Z=="function")try{if(T=t.props,w="prototype"in Z&&Z.prototype.render,S=(h=Z.contextType)&&r[h.__c],x=h?S?S.props.value:h.__:r,n.__c?_=(p=t.__c=n.__c).__=p.__E:(w?t.__c=p=new Z(T,x):(t.__c=p=new nr(T,x),p.constructor=Z,p.render=Wh),S&&S.sub(p),p.props=T,p.state||(p.state={}),p.context=x,p.__n=r,g=p.__d=!0,p.__h=[],p._sb=[]),w&&p.__s==null&&(p.__s=p.state),w&&Z.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=er({},p.__s)),er(p.__s,Z.getDerivedStateFromProps(T,p.__s))),y=p.props,F=p.state,p.__v=t,g)w&&Z.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),w&&p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(w&&Z.getDerivedStateFromProps==null&&T!==y&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(T,x),!p.__e&&p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(T,p.__s,x)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(p.props=T,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(z){z&&(z.__=t)}),O=0;O<p._sb.length;O++)p.__h.push(p._sb[O]);p._sb=[],p.__h.length&&i.push(p);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(T,p.__s,x),w&&p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(y,F,D)})}if(p.context=x,p.props=T,p.__P=e,p.__e=!1,I=Qe.__r,B=0,w){for(p.state=p.__s,p.__d=!1,I&&I(t),h=p.render(p.props,p.state,p.context),d=0;d<p._sb.length;d++)p.__h.push(p._sb[d]);p._sb=[]}else do p.__d=!1,I&&I(t),h=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++B<25);p.state=p.__s,p.getChildContext!=null&&(r=er(er({},r),p.getChildContext())),w&&!g&&p.getSnapshotBeforeUpdate!=null&&(D=p.getSnapshotBeforeUpdate(y,F)),q=h,h!=null&&h.type===tr&&h.key==null&&(q=nl(h.props.children)),o=Qc(e,ia(q)?q:[q],t,n,r,u,a,i,o,c,l),p.base=t.__e,t.__u&=-161,p.__h.length&&i.push(p),_&&(p.__E=p.__=null)}catch(z){if(t.__v=null,c||a!=null)if(z.then){for(t.__u|=c?160:128;o&&o.nodeType==8&&o.nextSibling;)o=o.nextSibling;a[a.indexOf(o)]=null,t.__e=o}else{for(N=a.length;N--;)No(a[N]);Lo(t)}else t.__e=n.__e,t.__k=n.__k,z.then||Lo(t);Qe.__e(z,t,n)}else a==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):o=t.__e=(function(z,H,L,K,J,W,ee,ue,ye){var oe,ae,Y,ie,re,de,pe,ve=L.props,ke=H.props,ze=H.type;if(ze=="svg"?J="http://www.w3.org/2000/svg":ze=="math"?J="http://www.w3.org/1998/Math/MathML":J||(J="http://www.w3.org/1999/xhtml"),W!=null){for(oe=0;oe<W.length;oe++)if((re=W[oe])&&"setAttribute"in re==!!ze&&(ze?re.localName==ze:re.nodeType==3)){z=re,W[oe]=null;break}}if(z==null){if(ze==null)return document.createTextNode(ke);z=document.createElementNS(J,ze,ke.is&&ke),ue&&(Qe.__m&&Qe.__m(H,W),ue=!1),W=null}if(ze==null)ve===ke||ue&&z.data==ke||(z.data=ke);else{if(W=W&&ua.call(z.childNodes),ve=L.props||aa,!ue&&W!=null)for(ve={},oe=0;oe<z.attributes.length;oe++)ve[(re=z.attributes[oe]).name]=re.value;for(oe in ve)if(re=ve[oe],oe!="children"){if(oe=="dangerouslySetInnerHTML")Y=re;else if(!(oe in ke)){if(oe=="value"&&"defaultValue"in ke||oe=="checked"&&"defaultChecked"in ke)continue;vi(z,oe,null,re,J)}}for(oe in ke)re=ke[oe],oe=="children"?ie=re:oe=="dangerouslySetInnerHTML"?ae=re:oe=="value"?de=re:oe=="checked"?pe=re:ue&&typeof re!="function"||ve[oe]===re||vi(z,oe,re,ve[oe],J);if(ae)ue||Y&&(ae.__html==Y.__html||ae.__html==z.innerHTML)||(z.innerHTML=ae.__html),H.__k=[];else if(Y&&(z.innerHTML=""),Qc(H.type=="template"?z.content:z,ia(ie)?ie:[ie],H,L,K,ze=="foreignObject"?"http://www.w3.org/1999/xhtml":J,W,ee,W?W[0]:L.__k&&ku(L,0),ue,ye),W!=null)for(oe=W.length;oe--;)No(W[oe]);ue||(oe="value",ze=="progress"&&de==null?z.removeAttribute("value"):de!=null&&(de!==z[oe]||ze=="progress"&&!de||ze=="option"&&de!=ve[oe])&&vi(z,oe,de,ve[oe],J),oe="checked",pe!=null&&pe!=z[oe]&&vi(z,oe,pe,ve[oe],J))}return z})(n.__e,t,n,r,u,a,i,c,l);return(h=Qe.diffed)&&h(t),128&t.__u?void 0:o}function Lo(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Lo)}function tl(e,t,n){for(var r=0;r<n.length;r++)Mo(n[r],n[++r],n[++r]);Qe.__c&&Qe.__c(t,e),e.some(function(u){try{e=u.__h,u.__h=[],e.some(function(a){a.call(u)})}catch(a){Qe.__e(a,u.__v)}})}function nl(e){return Ce(e)!="object"||e==null||e.__b&&e.__b>0?e:ia(e)?e.map(nl):er({},e)}function Mo(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(u){Qe.__e(u,n)}}function rl(e,t,n){var r,u;if(Qe.unmount&&Qe.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Mo(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){Qe.__e(a,t)}r.base=r.__P=null}if(r=e.__k)for(u=0;u<r.length;u++)r[u]&&rl(r[u],t,n||typeof e.type!="function");n||No(e.__e),e.__c=e.__=e.__e=void 0}function Wh(e,t,n){return this.constructor(e,n)}function sa(e,t,n){var r,u,a,i;t==document&&(t=document.documentElement),Qe.__&&Qe.__(e,t),u=(r=typeof n=="function")?null:n&&n.__k||t.__k,a=[],i=[],zo(t,e=(!r&&n||t).__k=wn(tr,null,[e]),u||aa,aa,t.namespaceURI,!r&&n?[n]:u?null:t.firstChild?ua.call(t.childNodes):null,a,!r&&n?n:u?u.__e:t.firstChild,r,i),tl(a,e,i)}function ul(e,t){sa(e,t,ul)}function Gh(e,t,n){var r,u,a,i,o=er({},e.props);for(a in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)a=="key"?r=t[a]:a=="ref"?u=t[a]:o[a]=t[a]===void 0&&i!=null?i[a]:t[a];return arguments.length>2&&(o.children=arguments.length>3?ua.call(arguments,2):n),oa(e.type,o,r||e.key,u||e.ref,null)}ua=Jc.slice,Qe={__e:function(e,t,n,r){for(var u,a,i;t=t.__;)if((u=t.__c)&&!u.__)try{if((a=u.constructor)&&a.getDerivedStateFromError!=null&&(u.setState(a.getDerivedStateFromError(e)),i=u.__d),u.componentDidCatch!=null&&(u.componentDidCatch(e,r||{}),i=u.__d),i)return u.__E=u}catch(o){e=o}throw e}},qc=0,nr.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=er({},this.state),typeof e=="function"&&(e=e(er({},n),this.props)),e&&er(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ro(this))},nr.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ro(this))},nr.prototype.render=tr,ru=[],Uc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vc=function(e,t){return e.__v.__b-t.__v.__b},hi.__r=0,Wc=/(PointerCapture)$|Capture$/i,Bo=0,Po=el(!1),jo=el(!0),Gc=0;var Sr,Et,$o,al,wu=0,il=[],Tt=Qe,ol=Tt.__b,sl=Tt.__r,cl=Tt.diffed,ll=Tt.__c,fl=Tt.unmount,dl=Tt.__;function xu(e,t){Tt.__h&&Tt.__h(Et,e,wu||t),wu=0;var n=Et.__H||(Et.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function uu(e){return wu=1,Zo(yl,e)}function Zo(e,t,n){var r=xu(Sr++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):yl(void 0,t),function(o){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,o);c!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=Et,!Et.__f)){var u=function(o,c,l){if(!r.__c.__H)return!0;var h=r.__c.__H.__.filter(function(g){return!!g.__c});if(h.every(function(g){return!g.__N}))return!a||a.call(this,o,c,l);var p=r.__c.props!==o;return h.forEach(function(g){if(g.__N){var y=g.__[0];g.__=g.__N,g.__N=void 0,y!==g.__[0]&&(p=!0)}}),a&&a.call(this,o,c,l)||p};Et.__f=!0;var a=Et.shouldComponentUpdate,i=Et.componentWillUpdate;Et.componentWillUpdate=function(o,c,l){if(this.__e){var h=a;a=void 0,u(o,c,l),a=h}i&&i.call(this,o,c,l)},Et.shouldComponentUpdate=u}return r.__N||r.__}function Un(e,t){var n=xu(Sr++,3);!Tt.__s&&Ho(n.__H,t)&&(n.__=e,n.u=t,Et.__H.__h.push(n))}function ca(e,t){var n=xu(Sr++,4);!Tt.__s&&Ho(n.__H,t)&&(n.__=e,n.u=t,Et.__h.push(n))}function Su(e){return wu=5,Vn(function(){return{current:e}},[])}function pl(e,t,n){wu=6,ca(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function Vn(e,t){var n=xu(Sr++,7);return Ho(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function la(e,t){return wu=8,Vn(function(){return e},t)}function hl(e){var t=Et.context[e.__c],n=xu(Sr++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Et)),t.props.value):e.__}function vl(e,t){Tt.useDebugValue&&Tt.useDebugValue(t?t(e):e)}function ml(){var e=xu(Sr++,11);if(!e.__){for(var t=Et.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Jh(){for(var e;e=il.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(mi),e.__H.__h.forEach(qo),e.__H.__h=[]}catch(t){e.__H.__h=[],Tt.__e(t,e.__v)}}Tt.__b=function(e){Et=null,ol&&ol(e)},Tt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),dl&&dl(e,t)},Tt.__r=function(e){sl&&sl(e),Sr=0;var t=(Et=e.__c).__H;t&&($o===Et?(t.__h=[],Et.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(mi),t.__h.forEach(qo),t.__h=[],Sr=0)),$o=Et},Tt.diffed=function(e){cl&&cl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(il.push(t)!==1&&al===Tt.requestAnimationFrame||((al=Tt.requestAnimationFrame)||Kh)(Jh)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),$o=Et=null},Tt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(mi),n.__h=n.__h.filter(function(r){return!r.__||qo(r)})}catch(r){t.some(function(u){u.__h&&(u.__h=[])}),t=[],Tt.__e(r,n.__v)}}),ll&&ll(e,t)},Tt.unmount=function(e){fl&&fl(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{mi(r)}catch(u){t=u}}),n.__H=void 0,t&&Tt.__e(t,n.__v))};var gl=typeof requestAnimationFrame=="function";function Kh(e){var t,n=function(){clearTimeout(r),gl&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);gl&&(t=requestAnimationFrame(n))}function mi(e){var t=Et,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Et=t}function qo(e){var t=Et;e.__c=e.__(),Et=t}function Ho(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function yl(e,t){return typeof t=="function"?t(e):t}function Dl(e,t){for(var n in t)e[n]=t[n];return e}function Uo(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function fa(e,t){var n=t(),r=uu({t:{__:n,u:t}}),u=r[0].t,a=r[1];return ca(function(){u.__=n,u.u=t,Vo(u)&&a({t:u})},[e,n,t]),Un(function(){return Vo(u)&&a({t:u}),e(function(){Vo(u)&&a({t:u})})},[e]),n}function Vo(e){var t,n,r=e.u,u=e.__;try{var a=r();return!((t=u)===(n=a)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch(i){return!0}}function bl(e){e()}function Al(e){return e}function El(){return[!1,bl]}var Fl=ca;function Wo(e,t){this.props=e,this.context=t}function _l(e,t){function n(u){var a=this.props.ref,i=a==u.ref;return!i&&a&&(a.call?a(null):a.current=null),t?!t(this.props,u)||!i:Uo(this.props,u)}function r(u){return this.shouldComponentUpdate=n,wn(e,u)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(Wo.prototype=new nr).isPureReactComponent=!0,Wo.prototype.shouldComponentUpdate=function(e,t){return Uo(this.props,e)||Uo(this.state,t)};var Cl=Qe.__b;Qe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Cl&&Cl(e)};var Qh=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,kl=function(e,t){return e==null?null:Dr(Dr(e).map(t))},Yh={map:kl,forEach:kl,count:function(e){return e?Dr(e).length:0},only:function(e){var t=Dr(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Dr},Xh=Qe.__e;Qe.__e=function(e,t,n,r){if(e.then){for(var u,a=t;a=a.__;)if((u=a.__c)&&u.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),u.__c(e,t)}Xh(e,t,n,r)};var wl=Qe.unmount;function xl(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Dl({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return xl(r,t,n)})),e}function Sl(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Sl(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function gi(){this.__u=0,this.o=null,this.__b=null}function Tl(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function da(){this.i=null,this.l=null}Qe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),wl&&wl(e)},(gi.prototype=new nr).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var u=Tl(r.__v),a=!1,i=function(){a||(a=!0,n.__R=null,u?u(o):o())};n.__R=i;var o=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=Sl(c,c.__c.__P,c.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.o.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},gi.prototype.componentWillUnmount=function(){this.o=[]},gi.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=xl(this.__b,n,r.__O=r.__P)}this.__b=null}var u=t.__a&&wn(tr,null,e.fallback);return u&&(u.__u&=-33),[wn(tr,null,t.__a?null:e.children),u]};var Ol=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function ev(e){return this.getChildContext=function(){return e.context},e.children}function tv(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){sa(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(u,a){this.childNodes.push(u),t.h.insertBefore(u,a)},removeChild:function(u){this.childNodes.splice(this.childNodes.indexOf(u)>>>1,1),t.h.removeChild(u)}}}sa(wn(ev,{context:t.context},e.__v),t.v)}function Il(e,t){var n=wn(tv,{__v:e,h:t});return n.containerInfo=t,n}(da.prototype=new nr).__a=function(e){var t=this,n=Tl(t.__v),r=t.l.get(e);return r[0]++,function(u){var a=function(){t.props.revealOrder?(r.push(u),Ol(t,e,r)):u()};n?n(a):a()}},da.prototype.render=function(e){this.i=null,this.l=new Map;var t=Dr(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},da.prototype.componentDidUpdate=da.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Ol(e,n,t)})};var Bl=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,nv=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,rv=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,uv=/[A-Z0-9]/g,av=typeof document!="undefined",iv=function(e){return(typeof Symbol!="undefined"&&Ce(Symbol())=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Pl(e,t,n){return t.__k==null&&(t.textContent=""),sa(e,t),typeof n=="function"&&n(),e?e.__c:null}nr.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(nr.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var jl=Qe.event;function ov(){}function sv(){return this.cancelBubble}function cv(){return this.defaultPrevented}Qe.event=function(e){return jl&&(e=jl(e)),e.persist=ov,e.isPropagationStopped=sv,e.isDefaultPrevented=cv,e.nativeEvent=e};var Go,lv={enumerable:!1,configurable:!0,get:function(){return this.class}},Nl=Qe.vnode;Qe.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,r=t.type,u={},a=r.indexOf("-")===-1;for(var i in n){var o=n[i];if(!(i==="value"&&"defaultValue"in n&&o==null||av&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var c=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&o===!0?o="":c==="translate"&&o==="no"?o=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?i="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||iv(n.type)?c==="onfocus"?i="onfocusin":c==="onblur"?i="onfocusout":rv.test(i)&&(i=c):c=i="oninput":a&&nv.test(i)?i=i.replace(uv,"-$&").toLowerCase():o===null&&(o=void 0),c==="oninput"&&u[i=c]&&(i="oninputCapture"),u[i]=o}}r=="select"&&u.multiple&&Array.isArray(u.value)&&(u.value=Dr(n.children).forEach(function(l){l.props.selected=u.value.indexOf(l.props.value)!=-1})),r=="select"&&u.defaultValue!=null&&(u.value=Dr(n.children).forEach(function(l){l.props.selected=u.multiple?u.defaultValue.indexOf(l.props.value)!=-1:u.defaultValue==l.props.value})),n.class&&!n.className?(u.class=n.class,Object.defineProperty(u,"className",lv)):(n.className&&!n.class||n.class&&n.className)&&(u.class=u.className=n.className),t.props=u})(e),e.$$typeof=Bl,Nl&&Nl(e)};var Rl=Qe.__r;Qe.__r=function(e){Rl&&Rl(e),Go=e.__c};var zl=Qe.diffed;Qe.diffed=function(e){zl&&zl(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Go=null};var fv={ReactCurrentDispatcher:{current:{readContext:function(e){return Go.__n[e.__c].props.value},useCallback:la,useContext:hl,useDebugValue:vl,useDeferredValue:Al,useEffect:Un,useId:ml,useImperativeHandle:pl,useInsertionEffect:Fl,useLayoutEffect:ca,useMemo:Vn,useReducer:Zo,useRef:Su,useState:uu,useSyncExternalStore:fa,useTransition:El}}};function pa(e){return!!e&&e.$$typeof===Bl}function Ll(e){return!!e.__k&&(sa(null,e),!0)}var b={useState:uu,useId:ml,useReducer:Zo,useEffect:Un,useLayoutEffect:ca,useInsertionEffect:Fl,useTransition:El,useDeferredValue:Al,useSyncExternalStore:fa,startTransition:bl,useRef:Su,useImperativeHandle:pl,useMemo:Vn,useCallback:la,useContext:hl,useDebugValue:vl,version:"18.3.1",Children:Yh,render:Pl,hydrate:function(e,t,n){return ul(e,t),typeof n=="function"&&n(),e?e.__c:null},unmountComponentAtNode:Ll,createPortal:Il,createElement:wn,createContext:function(e){function t(n){var r,u;return this.getChildContext||(r=new Set,(u={})[t.__c]=this,this.getChildContext=function(){return u},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(a){this.props.value!=a.value&&r.forEach(function(i){i.__e=!0,Ro(i)})},this.sub=function(a){r.add(a);var i=a.componentWillUnmount;a.componentWillUnmount=function(){r&&r.delete(a),i&&i.call(a)}}),n.children}return t.__c="__cC"+Gc++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t},createFactory:function(e){return wn.bind(null,e)},cloneElement:function(e){return pa(e)?Gh.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:tr,isValidElement:pa,isElement:pa,isFragment:function(e){return pa(e)&&e.type===tr},isMemo:function(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")},findDOMNode:function(e){return e&&(e.base||e.nodeType===1&&e)||null},Component:nr,PureComponent:Wo,memo:_l,forwardRef:function(e){function t(n){var r=Dl({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Qh,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:tr,Suspense:gi,SuspenseList:da,lazy:function(e){var t,n,r;function u(a){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return wn(n,a)}return u.displayName="Lazy",u.__f=!0,u},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fv};function Ml(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dv(e,t,n){return(t=(function(r){var u=(function(a){if(Ce(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Ce(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Ce(u)=="symbol"?u:u+""})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$l(Object(n),!0).forEach(function(r){dv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ha(e,t){return(function(n){if(Array.isArray(n))return n})(e)||(function(n,r){var u=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(u!=null){var a,i,o,c,l=[],h=!0,p=!1;try{if(o=(u=u.call(n)).next,r!==0)for(;!(h=(a=o.call(u)).done)&&(l.push(a.value),l.length!==r);h=!0);}catch(g){p=!0,i=g}finally{try{if(!h&&u.return!=null&&(c=u.return(),Object(c)!==c))return}finally{if(p)throw i}}return l}})(e,t)||(function(n,r){if(n){if(typeof n=="string")return Ml(n,r);var u={}.toString.call(n).slice(8,-1);return u==="Object"&&n.constructor&&(u=n.constructor.name),u==="Map"||u==="Set"?Array.from(n):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Ml(n,r):void 0}})(e,t)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}var ql={"Ctrl/Cmd+K":!0,"/":!0,"Ctrl/Cmd+I":!0};function pv(e){return Zl(Zl({},ql),e)}function hv(e){var t=e.isOpen,n=e.isAskAiActive,r=e.onAskAiToggle,u=e.onClose,a=e.onOpen,i=e.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,i=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return i=c.done,c},e:function(c){o=!0,a=c},f:function(){try{i||n.return==null||n.return()}finally{if(o)throw a}}}}function
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function
|
|
15
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Jl(e){var t=(function(n){if(Ce(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var u=r.call(n,"string");if(Ce(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)})(e);return Ce(t)=="symbol"?t:t+""}function qt(e){return qt=typeof Symbol=="function"&&Ce(Symbol.iterator)=="symbol"?function(t){return Ce(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Ce(t)},qt(e)}function Yo(e,t){if(e){if(typeof e=="string")return Ko(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ko(e,t):void 0}}function Tr(e){var t=typeof Map=="function"?new Map:void 0;return Tr=function(n){if(n===null||!(function(u){try{return Function.toString.call(u).indexOf("[native code]")!==-1}catch(a){return typeof u=="function"}})(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return Vl(n,arguments,va(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Tu(r,n)},Tr(e)}function yi(){yi=function(u,a){return new n(u,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(u,a,i){var o=RegExp(u,a);return t.set(o,i||t.get(u)),Tu(o,n.prototype)}function r(u,a){var i=t.get(a);return Object.keys(i).reduce(function(o,c){var l=i[c];if(typeof l=="number")o[c]=u[l];else{for(var h=0;u[l[h]]===void 0&&h+1<l.length;)h++;o[c]=u[l[h]]}return o},Object.create(null))}return $e(n,RegExp),n.prototype.exec=function(u){var a=e.exec.call(this,u);if(a){a.groups=r(a,this);var i=a.indices;i&&(i.groups=r(i,this))}return a},n.prototype[Symbol.replace]=function(u,a){if(typeof a=="string"){var i=t.get(this);return e[Symbol.replace].call(this,u,a.replace(/\$<([^>]+)(>|$)/g,function(c,l,h){if(h==="")return c;var p=i[l];return Array.isArray(p)?"$"+p.join("$"):typeof p=="number"?"$"+p:""}))}if(typeof a=="function"){var o=this;return e[Symbol.replace].call(this,u,function(){var c=arguments;return Ce(c[c.length-1])!="object"&&(c=[].slice.call(c)).push(r(c,o)),a.apply(this,c)})}return e[Symbol.replace].call(this,u,a)},yi.apply(this,arguments)}var Kl=function(e){var t=e.theme;Un(function(){if(t){var n=document.documentElement.dataset.theme;if(t!==n)return document.documentElement.dataset.theme=t,function(){n===void 0?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=n}}},[t])},_v={"Ctrl/Cmd+K":!0,"/":!0};function Cv(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.createElement("path",{d:"M8.19531 8.76758H7.33398C7.02539 8.76758 6.74414 8.69531 6.49023 8.55078C6.23633 8.40234 6.0332 8.20312 5.88086 7.95312C5.73242 7.70312 5.6582 7.42188 5.6582 7.10938C5.6582 6.80078 5.73242 6.51953 5.88086 6.26562C6.0332 6.01172 6.23633 5.80859 6.49023 5.65625C6.74414 5.50391 7.02539 5.42773 7.33398 5.42773C7.64258 5.42773 7.92383 5.50391 8.17773 5.65625C8.43164 5.80859 8.63281 6.01172 8.78125 6.26562C8.93359 6.51953 9.00977 6.80078 9.00977 7.10938V7.96484H10.9902V7.10938C10.9902 6.80078 11.0664 6.51953 11.2188 6.26562C11.3711 6.01172 11.5723 5.80859 11.8223 5.65625C12.0762 5.50391 12.3574 5.42773 12.666 5.42773C12.9746 5.42773 13.2559 5.50391 13.5098 5.65625C13.7637 5.80859 13.9648 6.01172 14.1133 6.26562C14.2656 6.51953 14.3418 6.80078 14.3418 7.10938C14.3418 7.42188 14.2656 7.70312 14.1133 7.95312C13.9648 8.20312 13.7637 8.40234 13.5098 8.55078C13.2559 8.69531 12.9746 8.76758 12.666 8.76758H11.8105V10.7773H12.666C12.9746 10.7773 13.2559 10.8516 13.5098 11C13.7637 11.1445 13.9648 11.3418 14.1133 11.5918C14.2656 11.8418 14.3418 12.123 14.3418 12.4355C14.3418 12.7441 14.2656 13.0254 14.1133 13.2793C13.9648 13.5332 13.7637 13.7363 13.5098 13.8887C13.2559 14.041 12.9746 14.1172 12.666 14.1172C12.3574 14.1172 12.0762 14.041 11.8223 13.8887C11.5723 13.7363 11.3711 13.5332 11.2188 13.2793C11.0664 13.0254 10.9902 12.7441 10.9902 12.4355V11.5801H9.00977V12.4355C9.00977 12.7441 8.93359 13.0254 8.78125 13.2793C8.63281 13.5332 8.43164 13.7363 8.17773 13.8887C7.92383 14.041 7.64258 14.1172 7.33398 14.1172C7.02539 14.1172 6.74414 14.041 6.49023 13.8887C6.23633 13.7363 6.0332 13.5332 5.88086 13.2793C5.73242 13.0254 5.6582 12.7441 5.6582 12.4355C5.6582 12.123 5.73242 11.8418 5.88086 11.5918C6.0332 11.3418 6.23633 11.1445 6.49023 11C6.74414 10.8516 7.02539 10.7773 7.33398 10.7773H8.19531V8.76758ZM7.33398 7.97656H8.19531V7.10938C8.19531 6.875 8.10938 6.67383 7.9375 6.50586C7.76953 6.33398 7.56836 6.24805 7.33398 6.24805C7.09961 6.24805 6.89648 6.33398 6.72461 6.50586C6.55664 6.67383 6.47266 6.875 6.47266 7.10938C6.47266 7.34766 6.55664 7.55273 6.72461 7.72461C6.89648 7.89258 7.09961 7.97656 7.33398 7.97656ZM12.666 7.97656C12.9004 7.97656 13.1016 7.89258 13.2695 7.72461C13.4414 7.55273 13.5273 7.34766 13.5273 7.10938C13.5273 6.875 13.4414 6.67383 13.2695 6.50586C13.1016 6.33398 12.9004 6.24805 12.666 6.24805C12.4316 6.24805 12.2305 6.33398 12.0625 6.50586C11.8945 6.67383 11.8105 6.875 11.8105 7.10938V7.97656H12.666ZM9.00977 10.7773H10.9902V8.76758H9.00977V10.7773ZM7.33398 11.5625C7.09961 11.5625 6.89648 11.6484 6.72461 11.8203C6.55664 11.9883 6.47266 12.1914 6.47266 12.4297C6.47266 12.6641 6.55664 12.8672 6.72461 13.0391C6.89648 13.207 7.09961 13.291 7.33398 13.291C7.56836 13.291 7.76953 13.207 7.9375 13.0391C8.10938 12.8672 8.19531 12.6641 8.19531 12.4297V11.5625H7.33398ZM12.666 11.5625H11.8105V12.4297C11.8105 12.6641 11.8945 12.8672 12.0625 13.0391C12.2305 13.207 12.4316 13.291 12.666 13.291C12.9004 13.291 13.1016 13.207 13.2695 13.0391C13.4414 12.8672 13.5273 12.6641 13.5273 12.4297C13.5273 12.1914 13.4414 11.9883 13.2695 11.8203C13.1016 11.6484 12.9004 11.5625 12.666 11.5625Z",fill:"currentColor"}))}function kv(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.createElement("path",{d:"M8.01562 11.1758L7.95703 9.65234H8.22656L11.9297 5.54492H13.2539L9.75586 9.32422L9.26367 9.79883L8.01562 11.1758ZM7.07812 14V5.54492H8.13281V14H7.07812ZM12.1992 14L9.04102 9.78711L9.76758 9.05469L13.5645 14H12.1992Z",fill:"currentColor"}))}function wv(){return b.createElement("svg",{width:"33",height:"20",viewBox:"0 0 33 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b.createElement("path",{d:"M10.4824 14.1992C9.7168 14.1992 9.05469 14.0195 8.49609 13.6602C7.9375 13.3008 7.50586 12.791 7.20117 12.1309C6.90039 11.4707 6.75 10.6875 6.75 9.78125V9.76953C6.75 8.85938 6.90039 8.07422 7.20117 7.41406C7.50586 6.75391 7.93555 6.24414 8.49023 5.88477C9.04883 5.52539 9.71094 5.3457 10.4766 5.3457C11.0703 5.3457 11.6094 5.46289 12.0938 5.69727C12.582 5.92773 12.9844 6.25 13.3008 6.66406C13.6172 7.07422 13.8164 7.54883 13.8984 8.08789L13.8926 8.09961H12.832L12.8262 8.08789C12.7324 7.72461 12.5742 7.41211 12.3516 7.15039C12.1289 6.88477 11.8574 6.67969 11.5371 6.53516C11.2207 6.39062 10.8672 6.31836 10.4766 6.31836C9.9375 6.31836 9.46875 6.45898 9.07031 6.74023C8.67578 7.02148 8.37109 7.41992 8.15625 7.93555C7.94141 8.45117 7.83398 9.0625 7.83398 9.76953V9.78125C7.83398 10.4844 7.94141 11.0938 8.15625 11.6094C8.37109 12.125 8.67578 12.5234 9.07031 12.8047C9.46875 13.0859 9.93945 13.2266 10.4824 13.2266C10.877 13.2266 11.2344 13.1641 11.5547 13.0391C11.875 12.9102 12.1445 12.7285 12.3633 12.4941C12.582 12.2559 12.7344 11.9746 12.8203 11.6504L12.832 11.6387H13.8984V11.6504C13.8047 12.166 13.6016 12.6152 13.2891 12.998C12.9766 13.377 12.5801 13.6719 12.0996 13.8828C11.623 14.0938 11.084 14.1992 10.4824 14.1992ZM17.7832 14.0469C17.1348 14.0469 16.6641 13.916 16.3711 13.6543C16.082 13.3926 15.9375 12.9609 15.9375 12.3594V8.52734H14.9414V7.68359H15.9375V6.04883H16.9922V7.68359H18.375V8.52734H16.9922V12.1016C16.9922 12.4727 17.0625 12.7402 17.2031 12.9043C17.3438 13.0645 17.5781 13.1445 17.9062 13.1445C17.9961 13.1445 18.0723 13.1426 18.1348 13.1387C18.2012 13.1348 18.2812 13.1289 18.375 13.1211V13.9883C18.2773 14.0039 18.1797 14.0176 18.082 14.0293C17.9844 14.041 17.8848 14.0469 17.7832 14.0469ZM19.8984 14V7.68359H20.918V8.62109H21.0117C21.1328 8.28906 21.3379 8.03125 21.627 7.84766C21.916 7.66406 22.2734 7.57227 22.6992 7.57227C22.7969 7.57227 22.8926 7.57812 22.9863 7.58984C23.084 7.59766 23.1582 7.60547 23.209 7.61328V8.60352C23.1035 8.58398 23 8.57031 22.8984 8.5625C22.8008 8.55078 22.6953 8.54492 22.582 8.54492C22.2578 8.54492 21.9707 8.60938 21.7207 8.73828C21.4707 8.86719 21.2734 9.04688 21.1289 9.27734C20.9883 9.50781 20.918 9.77734 20.918 10.0859V14H19.8984ZM24.5273 14V5.17578H25.5469V14H24.5273Z",fill:"currentColor"}))}function ma(e){var t=e.size,n=t===void 0?20:t,r=e.color,u=r===void 0?"currentColor":r;return b.createElement("svg",{width:n,height:n,className:"DocSearch-Search-Icon",viewBox:"0 0 24 24","aria-hidden":"true"},b.createElement("circle",{cx:"11",cy:"11",r:"8",stroke:u,fill:"none",strokeWidth:"1.4"}),b.createElement("path",{d:"m21 21-4.3-4.3",stroke:u,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}))}function Ql(e,t,n){return e.reduce(function(r,u){var a=t(u);return r.hasOwnProperty(a)||(r[a]=[]),r[a].length<(n||5)&&r[a].push(u),r},{})}function Xo(e){return e}function Di(e){return e.button===1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}var es="Ctrl";function xv(){}var Yl=/(<mark>|<\/mark>)/g,Sv=RegExp(Yl.source);function Xl(e){var t,n,r=e;if(!r.__docsearch_parent&&!e._highlightResult)return e.hierarchy.lvl0;var u=r.__docsearch_parent?(t=r.__docsearch_parent)===null||t===void 0||(t=t._highlightResult)===null||t===void 0||(t=t.hierarchy)===null||t===void 0?void 0:t.lvl0:(n=e._highlightResult)===null||n===void 0||(n=n.hierarchy)===null||n===void 0?void 0:n.lvl0;return u?u.value&&Sv.test(u.value)?u.value.replace(Yl,""):u.value:e.hierarchy.lvl0}var Tv=["translations","keyboardShortcuts"],Ov=b.forwardRef(function(e,t){var n=e.translations,r=n===void 0?{}:n,u=e.keyboardShortcuts,a=on(e,Tv),i=r.buttonText,o=i===void 0?"Search":i,c=r.buttonAriaLabel,l=c===void 0?"Search":c,h=(function(x){return C(C({},_v),x)})(u),p=ct(uu(null),2),g=p[0],y=p[1];Kl({theme:a.theme}),Un(function(){typeof navigator!="undefined"&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?y("\u2318"):y(es))},[]);var F=ct(g===es?[es,"Control",b.createElement(wv,null)]:["Meta","Meta",b.createElement(Cv,null)],3),D=F[0],_=F[1],T=F[2],w=h["Ctrl/Cmd+K"],S="".concat(_,"+k");return b.createElement("button",Ct({type:"button",className:"DocSearch DocSearch-Button","aria-label":w?"".concat(l," (").concat(S,")"):l,"aria-keyshortcuts":w?S:void 0},a,{ref:t}),b.createElement("span",{className:"DocSearch-Button-Container"},b.createElement(ma,null),b.createElement("span",{className:"DocSearch-Button-Placeholder"},o)),b.createElement("span",{className:"DocSearch-Button-Keys"},g!==null&&w&&b.createElement(b.Fragment,null,b.createElement(ef,{reactsToKey:D},T),b.createElement(ef,{reactsToKey:"k"},b.createElement(kv,null)))))});function ef(e){var t=e.reactsToKey,n=e.children,r=ct(uu(!1),2),u=r[0],a=r[1];return Un(function(){if(t)return window.addEventListener("keydown",i),window.addEventListener("keyup",o),function(){window.removeEventListener("keydown",i),window.removeEventListener("keyup",o)};function i(c){c.key===t&&a(!0)}function o(c){c.key!==t&&c.key!=="Meta"||a(!1)}},[t]),b.createElement("kbd",{className:u?"DocSearch-Button-Key DocSearch-Button-Key--pressed":"DocSearch-Button-Key"+(t==="Ctrl"?" DocSearch-Button-Key--ctrl":"")},n)}function tf(e,t){var n=void 0;return function(){for(var r=arguments.length,u=new Array(r),a=0;a<r;a++)u[a]=arguments[a];n&&clearTimeout(n),n=setTimeout(function(){return e.apply(void 0,u)},t)}}function ga(e){return e.reduce(function(t,n){return t.concat(n)},[])}var Iv=0;function ts(e){return e.collections.length===0?0:e.collections.reduce(function(t,n){return t+n.items.length},0)}function nf(e){return e!==Object(e)}function rf(e,t){if(e===t)return!0;if(nf(e)||nf(t)||typeof e=="function"||typeof t=="function")return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=0,r=Object.keys(e);n<r.length;n++){var u=r[n];if(!(u in t)||!rf(e[u],t[u]))return!1}return!0}var bi=function(){},Bv=[{segment:"autocomplete-core",version:"1.19.2"}];function uf(e){var t=e.item,n=e.items,r=n===void 0?[]:n;return{index:t.__autocomplete_indexName,items:[t],positions:[1+r.findIndex(function(u){return u.objectID===t.objectID})],queryID:t.__autocomplete_queryID,algoliaSource:["autocomplete"]}}function af(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Pv=["items"],jv=["items"];function ya(e){return ya=typeof Symbol=="function"&&Ce(Symbol.iterator)=="symbol"?function(t){return Ce(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Ce(t)},ya(e)}function Ai(e){return(function(t){if(Array.isArray(t))return ns(t)})(e)||(function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||(function(t,n){if(t){if(typeof t=="string")return ns(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ns(t,n):void 0}})(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
16
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function
|
|
17
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})((e.version||"").split(".").map(Number),2),n=t[0],r=t[1],n>=3||n===2&&r>=4||n===1&&r>=10);function a(i,o,c){if(u&&c!==void 0){var l=c[0].__autocomplete_algoliaCredentials,
|
|
18
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function
|
|
19
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D,_=!0,
|
|
20
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(u.map(function(i){return i.getSources})),[e.getSources]).filter(Boolean).map(function(i){return(function(o,c){var l=[];return Promise.resolve(o(c)).then(function(
|
|
21
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function
|
|
3
|
+
|(?![\\s\\S])))+`,"m"),alias:c,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(i)[0]}}}}),Object.defineProperty(u.languages.diff,"PREFIXES",{value:a})})(r),r.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},r.languages.webmanifest=r.languages.json,(function(u){var a=u.languages.powershell={"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0},comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:{function:{pattern:/(^|[^`])\$\((?:\$\(.*?\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:{}},"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0}}},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};a.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:a},boolean:a.boolean,variable:a.variable}})(r),(function(u){u.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var a=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:u.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];u.languages.puppet.heredoc[0].inside.interpolation=a,u.languages.puppet.string.inside["double-quoted"].inside.interpolation=a})(r),r.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},r.languages.python["string-interpolation"].inside.interpolation.inside.rest=r.languages.python,r.languages.py=r.languages.python,(function(u){u.languages.ruby=u.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),u.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var a={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:u.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete u.languages.ruby.function;var i="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;u.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+i+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:a,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:a,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),u.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+i),greedy:!0,inside:{interpolation:a,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:a,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:a,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+i),greedy:!0,inside:{interpolation:a,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:a,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete u.languages.ruby.string,u.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),u.languages.rb=u.languages.ruby})(r),r.languages.scss=r.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),r.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),r.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),r.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),r.languages.scss.atrule.inside.rest=r.languages.scss,(function(u){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");u.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:u.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},u.languages["sh-session"]=u.languages.shellsession=u.languages["shell-session"]})(r),(function(u){function a(l,p){u.languages[l]&&u.languages.insertBefore(l,"comment",{"doc-comment":p})}var i=u.languages.markup.tag,o={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:i}},c={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:i}};a("csharp",o),a("fsharp",o),a("vbnet",c)})(r),(function(u){var a=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+i.source+"(?:[ ]+"+a.source+")?|"+a.source+"(?:[ ]+"+i.source+")?)",c=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function p(m,v){v=(v||"").replace(/m/g,"")+"m";var y=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return m});return RegExp(y,v)}u.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+c+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:p(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:p(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:p(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:p(l),lookbehind:!0,greedy:!0},number:{pattern:p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:a,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},u.languages.yml=u.languages.yaml})(r),(function(u){var a={pattern:/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i,alias:"constant"};u.languages["log-file"]={"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0},verbose:[{pattern:/\b(Trace)\b:/i,greedy:!0},{pattern:/\[(verbose|verb|vrb|vb|v)\]/i,greedy:!0}],debug:[{pattern:/\b(DEBUG|Debug)\b|\b(debug)\:/i,greedy:!0},{pattern:/\[(debug|dbug|dbg|de|d)\]/i,greedy:!0}],info:[{pattern:/\b(HINT|INFO|INFORMATION|Info|NOTICE|II)\b | \b(^[^\.\.]+$)\b | \b(info|information)\:/,greedy:!0},{pattern:/\[(information|info|inf|in|i)\]/i,greedy:!0}],warning:[{pattern:/\b(WARNING|WARN|Warn|WW)\b|\b(warning)\:/i,greedy:!0},{pattern:/\[(warning|warn|wrn|wn|w)\]/i,greedy:!0}],error:[{pattern:/\b(ALERT|CRITICAL|EMERGENCY|ERROR|FAILURE|FAIL|Fatal|FATAL|Error|EE)\b|\b(error)\:/i,greedy:!0},{pattern:/\[(error|eror|err|er|e|fatal|fatl|ftl|fa|f)\]/i,greedy:!0}],date:[{pattern:/\b\d{4}-\d{2}-\d{2}(T|\b)/i,greedy:!0},{pattern:/\b\d{2}[^\w\s]\d{2}[^\w\s]\d{4}\b/i,greedy:!0},{pattern:/\d{1,2}:\d{2}(:\d{2}([.,]\d{1,})?)?(Z| ?[+-]\d{1,2}:\d{2})?\b/i,greedy:!0}],guid:a,"text-string":[{pattern:/[a-zA-Z]'[a-zA-Z]/i,greedy:!0},{pattern:/[a-zA-Z]\('[a-zA-Z]/i,greedy:!0}],string:[{pattern:/"[^"]*"/i,greedy:!0,inside:{"sensitive-variable":{pattern:/(\[\[.*?\]\])/i,greedy:!0}}},{pattern:/'[^']*'/i,greedy:!0}],exceptiontype:{pattern:/\b([a-zA-Z.]*Exception)\b/i,greedy:!0},"text-constant":{pattern:/(\\[\w-]+.\w+)/i,greedy:!0},constant:[{pattern:/\b([0-9]+|true|false|null)\b/i,greedy:!0},{pattern:/\b(http|https|ftp|file):\/\S+\b\/?/i,greedy:!0},{pattern:/([\w-]+\.)+([\w-])+(?![\w/\\])/i,greedy:!0}]},u.languages.log=u.languages["log-file"]})(r),(function(){if(typeof r=="undefined"||typeof document=="undefined")return;var u="line-numbers",a=/\n(?!$)/g,i=r.plugins.lineNumbers={getLine:function(p,m){if(!(p.tagName!=="PRE"||!p.classList.contains(u))){var v=p.querySelector(".line-numbers-rows");if(v){var y=parseInt(p.getAttribute("data-start"),10)||1,F=y+(v.children.length-1);m<y&&(m=y),m>F&&(m=F);var D=m-y;return v.children[D]}}},resize:function(p){o([p])},assumeViewportIndependence:!0};function o(p){if(p=p.filter(function(v){var y=c(v),F=y["white-space"];return F==="pre-wrap"||F==="pre-line"}),p.length!=0){var m=p.map(function(v){var y=v.querySelector("code"),F=v.querySelector(".line-numbers-rows");if(!(!y||!F)){var D=v.querySelector(".line-numbers-sizer"),_=y.textContent.split(a);D||(D=document.createElement("span"),D.className="line-numbers-sizer",y.appendChild(D)),D.innerHTML="0",D.style.display="block";var O=D.getBoundingClientRect().height;return D.innerHTML="",{element:v,lines:_,lineHeights:[],oneLinerHeight:O,sizer:D}}}).filter(Boolean);m.forEach(function(v){var y=v.sizer,F=v.lines,D=v.lineHeights,_=v.oneLinerHeight;D[F.length-1]=void 0,F.forEach(function(O,w){if(O&&O.length>1){var x=y.appendChild(document.createElement("span"));x.style.display="block",x.textContent=O}else D[w]=_})}),m.forEach(function(v){for(var y=v.sizer,F=v.lineHeights,D=0,_=0;_<F.length;_++)F[_]===void 0&&(F[_]=y.children[D++].getBoundingClientRect().height)}),m.forEach(function(v){var y=v.sizer,F=v.element.querySelector(".line-numbers-rows");y.style.display="none",y.innerHTML="",v.lineHeights.forEach(function(D,_){F.children[_].style.height=D+"px"})})}}function c(p){return p?window.getComputedStyle?getComputedStyle(p):p.currentStyle||null:null}var l=void 0;window.addEventListener("resize",function(){i.assumeViewportIndependence&&l===window.innerWidth||(l=window.innerWidth,o(Array.prototype.slice.call(document.querySelectorAll("pre."+u))))}),r.hooks.add("complete",function(p){if(p.code){var m=p.element,v=m.parentNode;if(!(!v||!/pre/i.test(v.nodeName))&&!m.querySelector(".line-numbers-rows")&&r.util.isActive(m,u)){m.classList.remove(u),v.classList.add(u);var y=p.code.match(a),F=y?y.length+1:1,D,_=new Array(F+1).join("<span></span>");D=document.createElement("span"),D.setAttribute("aria-hidden","true"),D.className="line-numbers-rows",D.innerHTML=_,v.hasAttribute("data-start")&&(v.style.counterReset="linenumber "+(parseInt(v.getAttribute("data-start"),10)-1)),p.element.appendChild(D),o([v]),r.hooks.run("line-numbers",p)}}}),r.hooks.add("line-numbers",function(p){p.plugins=p.plugins||{},p.plugins.lineNumbers=!0})})(),(function(){if(typeof r=="undefined"||typeof document=="undefined")return;var u=[],a={},i=function(){};r.plugins.toolbar={};var o=r.plugins.toolbar.registerButton=function(p,m){var v;if(typeof m=="function"?v=m:v=function(y){var F;return typeof m.onClick=="function"?(F=document.createElement("button"),F.type="button",F.addEventListener("click",function(){m.onClick.call(this,y)})):typeof m.url=="string"?(F=document.createElement("a"),F.href=m.url):F=document.createElement("span"),m.className&&F.classList.add(m.className),F.textContent=m.text,F},p in a){console.warn('There is a button with the key "'+p+'" registered already.');return}u.push(a[p]=v)};function c(p){for(;p;){var m=p.getAttribute("data-toolbar-order");if(m!=null)return m=m.trim(),m.length?m.split(/\s*,\s*/g):[];p=p.parentElement}}var l=r.plugins.toolbar.hook=function(p){var m=p.element.parentNode;if(!(!m||!/pre/i.test(m.nodeName))&&!m.parentNode.classList.contains("code-toolbar")){var v=document.createElement("div");v.classList.add("code-toolbar"),m.parentNode.insertBefore(v,m),v.appendChild(m);var y=document.createElement("div");y.classList.add("toolbar");var F=u,D=c(p.element);D&&(F=D.map(function(_){return a[_]||i})),F.forEach(function(_){var O=_(p);if(O){var w=document.createElement("div");w.classList.add("toolbar-item"),w.appendChild(O),y.appendChild(w)}}),v.appendChild(y)}};o("label",function(p){var m=p.element.parentNode;if(!(!m||!/pre/i.test(m.nodeName))&&m.hasAttribute("data-label")){var v,y,F=m.getAttribute("data-label");try{y=document.querySelector("template#"+F)}catch(D){}return y?v=y.content:(m.hasAttribute("data-url")?(v=document.createElement("a"),v.href=m.getAttribute("data-url")):v=document.createElement("span"),v.textContent=F),v}}),r.hooks.add("complete",l)})(),(function(){if(typeof r=="undefined"||typeof document=="undefined")return;if(!r.plugins.toolbar){console.warn("Copy to Clipboard plugin loaded before Toolbar plugin.");return}function u(l,p){l.addEventListener("click",function(){i(p)})}function a(l){var p=document.createElement("textarea");p.value=l.getText(),p.style.top="0",p.style.left="0",p.style.position="fixed",document.body.appendChild(p),p.focus(),p.select();try{var m=document.execCommand("copy");setTimeout(function(){m?l.success():l.error()},1)}catch(v){setTimeout(function(){l.error(v)},1)}document.body.removeChild(p)}function i(l){navigator.clipboard?navigator.clipboard.writeText(l.getText()).then(l.success,function(){a(l)}):a(l)}function o(l){window.getSelection().selectAllChildren(l)}function c(l){var p={copy:"Copy","copy-error":"Press Ctrl+C to copy","copy-success":"Copied!","copy-timeout":5e3},m="data-prismjs-";for(var v in p){for(var y=m+v,F=l;F&&!F.hasAttribute(y);)F=F.parentElement;F&&(p[v]=F.getAttribute(y))}return p}r.plugins.toolbar.registerButton("copy-to-clipboard",function(l){var p=l.element,m=c(p),v=document.createElement("button");v.className="copy-to-clipboard-button",v.setAttribute("type","button");var y=document.createElement("span");return v.appendChild(y),D("copy"),u(v,{getText:function(){return p.textContent},success:function(){D("copy-success"),F()},error:function(){D("copy-error"),setTimeout(function(){o(p)},1),F()}}),v;function F(){setTimeout(function(){D("copy")},m["copy-timeout"])}function D(_){y.textContent=m[_],v.setAttribute("data-copy-state",_)}})})(),(function(){if(typeof r!="undefined"){var u=/^diff-([\w-]+)/i,a=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/g,i=RegExp(/(?:__|[^\r\n<])*(?:\r\n?|\n|(?:__|[^\r\n<])(?![^\r\n]))/.source.replace(/__/g,function(){return a.source}),"gi"),o=!1;r.hooks.add("before-sanity-check",function(c){var l=c.language;u.test(l)&&!c.grammar&&(c.grammar=r.languages[l]=r.languages.diff)}),r.hooks.add("before-tokenize",function(c){!o&&!r.languages.diff&&!r.plugins.autoloader&&(o=!0,console.warn("Prism's Diff Highlight plugin requires the Diff language definition (prism-diff.js).Make sure the language definition is loaded or use Prism's Autoloader plugin."));var l=c.language;u.test(l)&&!r.languages[l]&&(r.languages[l]=r.languages.diff)}),r.hooks.add("wrap",function(c){var l,p;if(c.language!=="diff"){var m=u.exec(c.language);if(!m)return;l=m[1],p=r.languages[l]}var v=r.languages.diff&&r.languages.diff.PREFIXES;if(v&&c.type in v){var y=c.content.replace(a,""),F=y.replace(/</g,"<").replace(/&/g,"&"),D=F.replace(/(^|[\r\n])./g,"$1"),_;p?_=r.highlight(D,p,l):_=r.util.encode(D);var O=new r.Token("prefix",v[c.type],[/\w+/.exec(c.type)[0]]),w=r.Token.stringify(O,c.language),x=[],S;for(i.lastIndex=0;S=i.exec(_);)x.push(w+S[0]);/(?:^|[\r\n]).$/.test(F)&&x.push(w),c.content=x.join(""),p&&c.classes.push("language-"+l)}})}})()}}),Lh=vi({"node_modules/clipboard/dist/clipboard.js"(e,t){(function(r,u){typeof e=="object"&&typeof t=="object"?t.exports=u():typeof define=="function"&&define.amd?define([],u):typeof e=="object"?e.ClipboardJS=u():r.ClipboardJS=u()})(e,function(){return(function(){var n={686:(function(a,i,o){"use strict";o.d(i,{default:function(){return se}});var c=o(279),l=o.n(c),p=o(370),m=o.n(p),v=o(817),y=o.n(v);function F(K){try{return document.execCommand(K)}catch(V){return!1}}var D=function(V){var ue=y()(V);return F("cut"),ue},_=D;function O(K){var V=document.documentElement.getAttribute("dir")==="rtl",ue=document.createElement("textarea");ue.style.fontSize="12pt",ue.style.border="0",ue.style.padding="0",ue.style.margin="0",ue.style.position="absolute",ue.style[V?"right":"left"]="-9999px";var oe=window.pageYOffset||document.documentElement.scrollTop;return ue.style.top="".concat(oe,"px"),ue.setAttribute("readonly",""),ue.value=K,ue}var w=function(V,ue){var oe=O(V);ue.container.appendChild(oe);var ce=y()(oe);return F("copy"),oe.remove(),ce},x=function(V){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},oe="";return typeof V=="string"?oe=w(V,ue):V instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(V==null?void 0:V.type)?oe=w(V.value,ue):(oe=y()(V),F("copy")),oe},S=x;function T(K){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(ue){return typeof ue}:T=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},T(K)}var I=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ue=V.action,oe=ue===void 0?"copy":ue,ce=V.container,ee=V.target,he=V.text;if(oe!=="copy"&&oe!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(ee!==void 0)if(ee&&T(ee)==="object"&&ee.nodeType===1){if(oe==="copy"&&ee.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(oe==="cut"&&(ee.hasAttribute("readonly")||ee.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(he)return S(he,{container:ce});if(ee)return oe==="cut"?_(ee):S(ee,{container:ce})},B=I;function d(K){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(ue){return typeof ue}:d=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},d(K)}function H(K,V){if(!(K instanceof V))throw new TypeError("Cannot call a class as a function")}function R(K,V){for(var ue=0;ue<V.length;ue++){var oe=V[ue];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(K,oe.key,oe)}}function Z(K,V,ue){return V&&R(K.prototype,V),ue&&R(K,ue),K}function q(K,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function");K.prototype=Object.create(V&&V.prototype,{constructor:{value:K,writable:!0,configurable:!0}}),V&&G(K,V)}function G(K,V){return G=Object.setPrototypeOf||function(oe,ce){return oe.__proto__=ce,oe},G(K,V)}function L(K){var V=$();return function(){var oe=Y(K),ce;if(V){var ee=Y(this).constructor;ce=Reflect.construct(oe,arguments,ee)}else ce=oe.apply(this,arguments);return ne(this,ce)}}function ne(K,V){return V&&(d(V)==="object"||typeof V=="function")?V:Q(K)}function Q(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}function $(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(K){return!1}}function Y(K){return Y=Object.setPrototypeOf?Object.getPrototypeOf:function(ue){return ue.__proto__||Object.getPrototypeOf(ue)},Y(K)}function re(K,V){var ue="data-clipboard-".concat(K);if(V.hasAttribute(ue))return V.getAttribute(ue)}var me=(function(K){q(ue,K);var V=L(ue);function ue(oe,ce){var ee;return H(this,ue),ee=V.call(this),ee.resolveOptions(ce),ee.listenClick(oe),ee}return Z(ue,[{key:"resolveOptions",value:function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ce.action=="function"?ce.action:this.defaultAction,this.target=typeof ce.target=="function"?ce.target:this.defaultTarget,this.text=typeof ce.text=="function"?ce.text:this.defaultText,this.container=d(ce.container)==="object"?ce.container:document.body}},{key:"listenClick",value:function(ce){var ee=this;this.listener=m()(ce,"click",function(he){return ee.onClick(he)})}},{key:"onClick",value:function(ce){var ee=ce.delegateTarget||ce.currentTarget,he=this.action(ee)||"copy",Ce=B({action:he,container:this.container,target:this.target(ee),text:this.text(ee)});this.emit(Ce?"success":"error",{action:he,text:Ce,trigger:ee,clearSelection:function(){ee&&ee.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ce){return re("action",ce)}},{key:"defaultTarget",value:function(ce){var ee=re("target",ce);if(ee)return document.querySelector(ee)}},{key:"defaultText",value:function(ce){return re("text",ce)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ce){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return S(ce,ee)}},{key:"cut",value:function(ce){return _(ce)}},{key:"isSupported",value:function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],ee=typeof ce=="string"?[ce]:ce,he=!!document.queryCommandSupported;return ee.forEach(function(Ce){he=he&&!!document.queryCommandSupported(Ce)}),he}}]),ue})(l()),se=me}),828:(function(a){var i=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}function c(l,p){for(;l&&l.nodeType!==i;){if(typeof l.matches=="function"&&l.matches(p))return l;l=l.parentNode}}a.exports=c}),438:(function(a,i,o){var c=o(828);function l(v,y,F,D,_){var O=m.apply(this,arguments);return v.addEventListener(F,O,_),{destroy:function(){v.removeEventListener(F,O,_)}}}function p(v,y,F,D,_){return typeof v.addEventListener=="function"?l.apply(null,arguments):typeof F=="function"?l.bind(null,document).apply(null,arguments):(typeof v=="string"&&(v=document.querySelectorAll(v)),Array.prototype.map.call(v,function(O){return l(O,y,F,D,_)}))}function m(v,y,F,D){return function(_){_.delegateTarget=c(_.target,y),_.delegateTarget&&D.call(v,_)}}a.exports=p}),879:(function(a,i){i.node=function(o){return o!==void 0&&o instanceof HTMLElement&&o.nodeType===1},i.nodeList=function(o){var c=Object.prototype.toString.call(o);return o!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in o&&(o.length===0||i.node(o[0]))},i.string=function(o){return typeof o=="string"||o instanceof String},i.fn=function(o){var c=Object.prototype.toString.call(o);return c==="[object Function]"}}),370:(function(a,i,o){var c=o(879),l=o(438);function p(F,D,_){if(!F&&!D&&!_)throw new Error("Missing required arguments");if(!c.string(D))throw new TypeError("Second argument must be a String");if(!c.fn(_))throw new TypeError("Third argument must be a Function");if(c.node(F))return m(F,D,_);if(c.nodeList(F))return v(F,D,_);if(c.string(F))return y(F,D,_);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function m(F,D,_){return F.addEventListener(D,_),{destroy:function(){F.removeEventListener(D,_)}}}function v(F,D,_){return Array.prototype.forEach.call(F,function(O){O.addEventListener(D,_)}),{destroy:function(){Array.prototype.forEach.call(F,function(O){O.removeEventListener(D,_)})}}}function y(F,D,_){return l(document.body,F,D,_)}a.exports=p}),817:(function(a){function i(o){var c;if(o.nodeName==="SELECT")o.focus(),c=o.value;else if(o.nodeName==="INPUT"||o.nodeName==="TEXTAREA"){var l=o.hasAttribute("readonly");l||o.setAttribute("readonly",""),o.select(),o.setSelectionRange(0,o.value.length),l||o.removeAttribute("readonly"),c=o.value}else{o.hasAttribute("contenteditable")&&o.focus();var p=window.getSelection(),m=document.createRange();m.selectNodeContents(o),p.removeAllRanges(),p.addRange(m),c=p.toString()}return c}a.exports=i}),279:(function(a){function i(){}i.prototype={on:function(o,c,l){var p=this.e||(this.e={});return(p[o]||(p[o]=[])).push({fn:c,ctx:l}),this},once:function(o,c,l){var p=this;function m(){p.off(o,m),c.apply(l,arguments)}return m._=c,this.on(o,m,l)},emit:function(o){var c=[].slice.call(arguments,1),l=((this.e||(this.e={}))[o]||[]).slice(),p=0,m=l.length;for(p;p<m;p++)l[p].fn.apply(l[p].ctx,c);return this},off:function(o,c){var l=this.e||(this.e={}),p=l[o],m=[];if(p&&c)for(var v=0,y=p.length;v<y;v++)p[v].fn!==c&&p[v].fn._!==c&&m.push(p[v]);return m.length?l[o]=m:delete l[o],this}},a.exports=i,a.exports.TinyEmitter=i})},r={};function u(a){if(r[a])return r[a].exports;var i=r[a]={exports:{}};return n[a](i,i.exports,u),i.exports}return(function(){u.n=function(a){var i=a&&a.__esModule?(function(){return a.default}):(function(){return a});return u.d(i,{a:i}),i}})(),(function(){u.d=function(a,i){for(var o in i)u.o(i,o)&&!u.o(a,o)&&Object.defineProperty(a,o,{enumerable:!0,get:i[o]})}})(),(function(){u.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}})(),u(686)})().default})}}),Mh=vi({"node_modules/anchor-js/anchor.js"(e,t){(function(n,r){"use strict";typeof define=="function"&&define.amd?define([],r):typeof t=="object"&&t.exports?t.exports=r():(n.AnchorJS=r(),n.anchors=new n.AnchorJS)})(globalThis,function(){"use strict";function n(r){this.options=r||{},this.elements=[];function u(o){o.icon=Object.prototype.hasOwnProperty.call(o,"icon")?o.icon:"\uE9CB",o.visible=Object.prototype.hasOwnProperty.call(o,"visible")?o.visible:"hover",o.placement=Object.prototype.hasOwnProperty.call(o,"placement")?o.placement:"right",o.ariaLabel=Object.prototype.hasOwnProperty.call(o,"ariaLabel")?o.ariaLabel:"Anchor",o.class=Object.prototype.hasOwnProperty.call(o,"class")?o.class:"",o.base=Object.prototype.hasOwnProperty.call(o,"base")?o.base:"",o.truncate=Object.prototype.hasOwnProperty.call(o,"truncate")?Math.floor(o.truncate):64,o.titleText=Object.prototype.hasOwnProperty.call(o,"titleText")?o.titleText:""}u(this.options),this.add=function(o){var c,l,p,m,v,y,F,D,_,O,w,x=[];if(u(this.options),o||(o="h2, h3, h4, h5, h6"),c=a(o),c.length===0)return this;for(i(),l=document.querySelectorAll("[id]"),p=[].map.call(l,function(S){return S.id}),v=0;v<c.length;v++){if(this.hasAnchorJSLink(c[v])){x.push(v);continue}if(c[v].hasAttribute("id"))m=c[v].getAttribute("id");else if(c[v].hasAttribute("data-anchor-id"))m=c[v].getAttribute("data-anchor-id");else{D=this.urlify(c[v].textContent),_=D,F=0;do y!==void 0&&(_=D+"-"+F),y=p.indexOf(_),F+=1;while(y!==-1);y=void 0,p.push(_),c[v].setAttribute("id",_),m=_}O=document.createElement("a"),O.className="anchorjs-link "+this.options.class,O.setAttribute("aria-label",this.options.ariaLabel),O.setAttribute("data-anchorjs-icon",this.options.icon),this.options.titleText&&(O.title=this.options.titleText),w=document.querySelector("base")?window.location.pathname+window.location.search:"",w=this.options.base||w,O.href=w+"#"+m,this.options.visible==="always"&&(O.style.opacity="1"),this.options.icon==="\uE9CB"&&(O.style.font="1em/1 anchorjs-icons",this.options.placement==="left"&&(O.style.lineHeight="inherit")),this.options.placement==="left"?(O.style.position="absolute",O.style.marginLeft="-1.25em",O.style.paddingRight=".25em",O.style.paddingLeft=".25em",c[v].insertBefore(O,c[v].firstChild)):(O.style.marginLeft=".1875em",O.style.paddingRight=".1875em",O.style.paddingLeft=".1875em",c[v].appendChild(O))}for(v=0;v<x.length;v++)c.splice(x[v]-v,1);return this.elements=this.elements.concat(c),this},this.remove=function(o){for(var c,l,p=a(o),m=0;m<p.length;m++)l=p[m].querySelector(".anchorjs-link"),l&&(c=this.elements.indexOf(p[m]),c!==-1&&this.elements.splice(c,1),p[m].removeChild(l));return this},this.removeAll=function(){this.remove(this.elements)},this.urlify=function(o){var c=document.createElement("textarea");c.innerHTML=o,o=c.value;var l=/[& +$,:;=?@"#{}|^~[`%!'<>\]./()*\\\n\t\b\v\u00A0]/g;return this.options.truncate||u(this.options),o.trim().replace(/'/gi,"").replace(l,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(o){var c=o.firstChild&&(" "+o.firstChild.className+" ").indexOf(" anchorjs-link ")>-1,l=o.lastChild&&(" "+o.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return c||l||!1};function a(o){var c;if(typeof o=="string"||o instanceof String)c=[].slice.call(document.querySelectorAll(o));else if(Array.isArray(o)||o instanceof NodeList)c=[].slice.call(o);else throw new TypeError("The selector provided to AnchorJS was invalid.");return c}function i(){if(document.head.querySelector("style.anchorjs")===null){var o=document.createElement("style"),c=".anchorjs-link{opacity:0;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",l=":hover>.anchorjs-link,.anchorjs-link:focus{opacity:1}",p='@font-face{font-family:anchorjs-icons;src:url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype")}',m="[data-anchorjs-icon]::after{content:attr(data-anchorjs-icon)}",v;o.className="anchorjs",o.appendChild(document.createTextNode("")),v=document.head.querySelector('[rel="stylesheet"],style'),v===void 0?document.head.appendChild(o):document.head.insertBefore(o,v),o.sheet.insertRule(c,o.sheet.cssRules.length),o.sheet.insertRule(l,o.sheet.cssRules.length),o.sheet.insertRule(m,o.sheet.cssRules.length),o.sheet.insertRule(p,o.sheet.cssRules.length)}}}return n})}}),$h=vi({"node_modules/jquery/dist/jquery.js"(e,t){(function(n,r){"use strict";typeof t=="object"&&typeof t.exports=="object"?t.exports=n.document?r(n,!0):function(u){if(!u.document)throw new Error("jQuery requires a window with a document");return r(u)}:r(n)})(typeof window!="undefined"?window:e,function(n,r){"use strict";var u=[],a=Object.getPrototypeOf,i=u.slice,o=u.flat?function(s){return u.flat.call(s)}:function(s){return u.concat.apply([],s)},c=u.push,l=u.indexOf,p={},m=p.toString,v=p.hasOwnProperty,y=v.toString,F=y.call(Object),D={},_=function(f){return typeof f=="function"&&typeof f.nodeType!="number"&&typeof f.item!="function"},O=function(f){return f!=null&&f===f.window},w=n.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function S(s,f,h){h=h||w;var g,A,E=h.createElement("script");if(E.text=s,f)for(g in x)A=f[g]||f.getAttribute&&f.getAttribute(g),A&&E.setAttribute(g,A);h.head.appendChild(E).parentNode.removeChild(E)}function T(s){return s==null?s+"":typeof s=="object"||typeof s=="function"?p[m.call(s)]||"object":typeof s}var I="3.7.1",B=/HTML$/i,d=function(s,f){return new d.fn.init(s,f)};d.fn=d.prototype={jquery:I,constructor:d,length:0,toArray:function(){return i.call(this)},get:function(s){return s==null?i.call(this):s<0?this[s+this.length]:this[s]},pushStack:function(s){var f=d.merge(this.constructor(),s);return f.prevObject=this,f},each:function(s){return d.each(this,s)},map:function(s){return this.pushStack(d.map(this,function(f,h){return s.call(f,h,f)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(d.grep(this,function(s,f){return(f+1)%2}))},odd:function(){return this.pushStack(d.grep(this,function(s,f){return f%2}))},eq:function(s){var f=this.length,h=+s+(s<0?f:0);return this.pushStack(h>=0&&h<f?[this[h]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:u.sort,splice:u.splice},d.extend=d.fn.extend=function(){var s,f,h,g,A,E,k=arguments[0]||{},N=1,j=arguments.length,M=!1;for(typeof k=="boolean"&&(M=k,k=arguments[N]||{},N++),typeof k!="object"&&!_(k)&&(k={}),N===j&&(k=this,N--);N<j;N++)if((s=arguments[N])!=null)for(f in s)g=s[f],!(f==="__proto__"||k===g)&&(M&&g&&(d.isPlainObject(g)||(A=Array.isArray(g)))?(h=k[f],A&&!Array.isArray(h)?E=[]:!A&&!d.isPlainObject(h)?E={}:E=h,A=!1,k[f]=d.extend(M,E,g)):g!==void 0&&(k[f]=g));return k},d.extend({expando:"jQuery"+(I+Math.random()).replace(/\D/g,""),isReady:!0,error:function(s){throw new Error(s)},noop:function(){},isPlainObject:function(s){var f,h;return!s||m.call(s)!=="[object Object]"?!1:(f=a(s),f?(h=v.call(f,"constructor")&&f.constructor,typeof h=="function"&&y.call(h)===F):!0)},isEmptyObject:function(s){var f;for(f in s)return!1;return!0},globalEval:function(s,f,h){S(s,{nonce:f&&f.nonce},h)},each:function(s,f){var h,g=0;if(H(s))for(h=s.length;g<h&&f.call(s[g],g,s[g])!==!1;g++);else for(g in s)if(f.call(s[g],g,s[g])===!1)break;return s},text:function(s){var f,h="",g=0,A=s.nodeType;if(!A)for(;f=s[g++];)h+=d.text(f);return A===1||A===11?s.textContent:A===9?s.documentElement.textContent:A===3||A===4?s.nodeValue:h},makeArray:function(s,f){var h=f||[];return s!=null&&(H(Object(s))?d.merge(h,typeof s=="string"?[s]:s):c.call(h,s)),h},inArray:function(s,f,h){return f==null?-1:l.call(f,s,h)},isXMLDoc:function(s){var f=s&&s.namespaceURI,h=s&&(s.ownerDocument||s).documentElement;return!B.test(f||h&&h.nodeName||"HTML")},merge:function(s,f){for(var h=+f.length,g=0,A=s.length;g<h;g++)s[A++]=f[g];return s.length=A,s},grep:function(s,f,h){for(var g,A=[],E=0,k=s.length,N=!h;E<k;E++)g=!f(s[E],E),g!==N&&A.push(s[E]);return A},map:function(s,f,h){var g,A,E=0,k=[];if(H(s))for(g=s.length;E<g;E++)A=f(s[E],E,h),A!=null&&k.push(A);else for(E in s)A=f(s[E],E,h),A!=null&&k.push(A);return o(k)},guid:1,support:D}),typeof Symbol=="function"&&(d.fn[Symbol.iterator]=u[Symbol.iterator]),d.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(s,f){p["[object "+f+"]"]=f.toLowerCase()});function H(s){var f=!!s&&"length"in s&&s.length,h=T(s);return _(s)||O(s)?!1:h==="array"||f===0||typeof f=="number"&&f>0&&f-1 in s}function R(s,f){return s.nodeName&&s.nodeName.toLowerCase()===f.toLowerCase()}var Z=u.pop,q=u.sort,G=u.splice,L="[\\x20\\t\\r\\n\\f]",ne=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");d.contains=function(s,f){var h=f&&f.parentNode;return s===h||!!(h&&h.nodeType===1&&(s.contains?s.contains(h):s.compareDocumentPosition&&s.compareDocumentPosition(h)&16))};var Q=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function $(s,f){return f?s==="\0"?"\uFFFD":s.slice(0,-1)+"\\"+s.charCodeAt(s.length-1).toString(16)+" ":"\\"+s}d.escapeSelector=function(s){return(s+"").replace(Q,$)};var Y=w,re=c;(function(){var s,f,h,g,A,E=re,k,N,j,M,X,ie=d.expando,W=0,fe=0,Ue=To(),ft=To(),Je=To(),cn=To(),rn=function(P,z){return P===z&&(A=!0),0},mr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",gr="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",ct="\\["+L+"*("+gr+")(?:"+L+"*([*^$|!~]?=)"+L+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+gr+"))|)"+L+"*\\]",Cu=":("+gr+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+ct+")*)|.*)\\)|)",ht=new RegExp(L+"+","g"),Vt=new RegExp("^"+L+"*,"+L+"*"),di=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),Pc=new RegExp(L+"|>"),yr=new RegExp(Cu),pi=new RegExp("^"+gr+"$"),Dr={ID:new RegExp("^#("+gr+")"),CLASS:new RegExp("^\\.("+gr+")"),TAG:new RegExp("^("+gr+"|[*])"),ATTR:new RegExp("^"+ct),PSEUDO:new RegExp("^"+Cu),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+mr+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},nu=/^(?:input|select|textarea|button)$/i,ru=/^h\d$/i,zn=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,jc=/[+~]/,Pr=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),jr=function(P,z){var U="0x"+P.slice(1)-65536;return z||(U<0?String.fromCharCode(U+65536):String.fromCharCode(U>>10|55296,U&1023|56320))},BA=function(){uu()},PA=Io(function(P){return P.disabled===!0&&R(P,"fieldset")},{dir:"parentNode",next:"legend"});function jA(){try{return k.activeElement}catch(P){}}try{E.apply(u=i.call(Y.childNodes),Y.childNodes),u[Y.childNodes.length].nodeType}catch(P){E={apply:function(z,U){re.apply(z,i.call(U))},call:function(z){re.apply(z,i.call(arguments,1))}}}function Ft(P,z,U,J){var ae,De,Fe,Ne,_e,it,qe,We=z&&z.ownerDocument,ot=z?z.nodeType:9;if(U=U||[],typeof P!="string"||!P||ot!==1&&ot!==9&&ot!==11)return U;if(!J&&(uu(z),z=z||k,j)){if(ot!==11&&(_e=zn.exec(P)))if(ae=_e[1]){if(ot===9)if(Fe=z.getElementById(ae)){if(Fe.id===ae)return E.call(U,Fe),U}else return U;else if(We&&(Fe=We.getElementById(ae))&&Ft.contains(z,Fe)&&Fe.id===ae)return E.call(U,Fe),U}else{if(_e[2])return E.apply(U,z.getElementsByTagName(P)),U;if((ae=_e[3])&&z.getElementsByClassName)return E.apply(U,z.getElementsByClassName(ae)),U}if(!cn[P+" "]&&(!M||!M.test(P))){if(qe=P,We=z,ot===1&&(Pc.test(P)||di.test(P))){for(We=jc.test(P)&&Nc(z.parentNode)||z,(We!=z||!D.scope)&&((Ne=z.getAttribute("id"))?Ne=d.escapeSelector(Ne):z.setAttribute("id",Ne=ie)),it=hi(P),De=it.length;De--;)it[De]=(Ne?"#"+Ne:":scope")+" "+Oo(it[De]);qe=it.join(",")}try{return E.apply(U,We.querySelectorAll(qe)),U}catch(Le){cn(P,!0)}finally{Ne===ie&&z.removeAttribute("id")}}}return Ih(P.replace(ne,"$1"),z,U,J)}function To(){var P=[];function z(U,J){return P.push(U+" ")>f.cacheLength&&delete z[P.shift()],z[U+" "]=J}return z}function er(P){return P[ie]=!0,P}function na(P){var z=k.createElement("fieldset");try{return!!P(z)}catch(U){return!1}finally{z.parentNode&&z.parentNode.removeChild(z),z=null}}function NA(P){return function(z){return R(z,"input")&&z.type===P}}function RA(P){return function(z){return(R(z,"input")||R(z,"button"))&&z.type===P}}function Th(P){return function(z){return"form"in z?z.parentNode&&z.disabled===!1?"label"in z?"label"in z.parentNode?z.parentNode.disabled===P:z.disabled===P:z.isDisabled===P||z.isDisabled!==!P&&PA(z)===P:z.disabled===P:"label"in z?z.disabled===P:!1}}function ku(P){return er(function(z){return z=+z,er(function(U,J){for(var ae,De=P([],U.length,z),Fe=De.length;Fe--;)U[ae=De[Fe]]&&(U[ae]=!(J[ae]=U[ae]))})})}function Nc(P){return P&&typeof P.getElementsByTagName!="undefined"&&P}function uu(P){var z,U=P?P.ownerDocument||P:Y;return U==k||U.nodeType!==9||!U.documentElement||(k=U,N=k.documentElement,j=!d.isXMLDoc(k),X=N.matches||N.webkitMatchesSelector||N.msMatchesSelector,N.msMatchesSelector&&Y!=k&&(z=k.defaultView)&&z.top!==z&&z.addEventListener("unload",BA),D.getById=na(function(J){return N.appendChild(J).id=d.expando,!k.getElementsByName||!k.getElementsByName(d.expando).length}),D.disconnectedMatch=na(function(J){return X.call(J,"*")}),D.scope=na(function(){return k.querySelectorAll(":scope")}),D.cssHas=na(function(){try{return k.querySelector(":has(*,:jqfake)"),!1}catch(J){return!0}}),D.getById?(f.filter.ID=function(J){var ae=J.replace(Pr,jr);return function(De){return De.getAttribute("id")===ae}},f.find.ID=function(J,ae){if(typeof ae.getElementById!="undefined"&&j){var De=ae.getElementById(J);return De?[De]:[]}}):(f.filter.ID=function(J){var ae=J.replace(Pr,jr);return function(De){var Fe=typeof De.getAttributeNode!="undefined"&&De.getAttributeNode("id");return Fe&&Fe.value===ae}},f.find.ID=function(J,ae){if(typeof ae.getElementById!="undefined"&&j){var De,Fe,Ne,_e=ae.getElementById(J);if(_e){if(De=_e.getAttributeNode("id"),De&&De.value===J)return[_e];for(Ne=ae.getElementsByName(J),Fe=0;_e=Ne[Fe++];)if(De=_e.getAttributeNode("id"),De&&De.value===J)return[_e]}return[]}}),f.find.TAG=function(J,ae){return typeof ae.getElementsByTagName!="undefined"?ae.getElementsByTagName(J):ae.querySelectorAll(J)},f.find.CLASS=function(J,ae){if(typeof ae.getElementsByClassName!="undefined"&&j)return ae.getElementsByClassName(J)},M=[],na(function(J){var ae;N.appendChild(J).innerHTML="<a id='"+ie+"' href='' disabled='disabled'></a><select id='"+ie+"-\r\\' disabled='disabled'><option selected=''></option></select>",J.querySelectorAll("[selected]").length||M.push("\\["+L+"*(?:value|"+mr+")"),J.querySelectorAll("[id~="+ie+"-]").length||M.push("~="),J.querySelectorAll("a#"+ie+"+*").length||M.push(".#.+[+~]"),J.querySelectorAll(":checked").length||M.push(":checked"),ae=k.createElement("input"),ae.setAttribute("type","hidden"),J.appendChild(ae).setAttribute("name","D"),N.appendChild(J).disabled=!0,J.querySelectorAll(":disabled").length!==2&&M.push(":enabled",":disabled"),ae=k.createElement("input"),ae.setAttribute("name",""),J.appendChild(ae),J.querySelectorAll("[name='']").length||M.push("\\["+L+"*name"+L+"*="+L+`*(?:''|"")`)}),D.cssHas||M.push(":has"),M=M.length&&new RegExp(M.join("|")),rn=function(J,ae){if(J===ae)return A=!0,0;var De=!J.compareDocumentPosition-!ae.compareDocumentPosition;return De||(De=(J.ownerDocument||J)==(ae.ownerDocument||ae)?J.compareDocumentPosition(ae):1,De&1||!D.sortDetached&&ae.compareDocumentPosition(J)===De?J===k||J.ownerDocument==Y&&Ft.contains(Y,J)?-1:ae===k||ae.ownerDocument==Y&&Ft.contains(Y,ae)?1:g?l.call(g,J)-l.call(g,ae):0:De&4?-1:1)}),k}Ft.matches=function(P,z){return Ft(P,null,null,z)},Ft.matchesSelector=function(P,z){if(uu(P),j&&!cn[z+" "]&&(!M||!M.test(z)))try{var U=X.call(P,z);if(U||D.disconnectedMatch||P.document&&P.document.nodeType!==11)return U}catch(J){cn(z,!0)}return Ft(z,k,null,[P]).length>0},Ft.contains=function(P,z){return(P.ownerDocument||P)!=k&&uu(P),d.contains(P,z)},Ft.attr=function(P,z){(P.ownerDocument||P)!=k&&uu(P);var U=f.attrHandle[z.toLowerCase()],J=U&&v.call(f.attrHandle,z.toLowerCase())?U(P,z,!j):void 0;return J!==void 0?J:P.getAttribute(z)},Ft.error=function(P){throw new Error("Syntax error, unrecognized expression: "+P)},d.uniqueSort=function(P){var z,U=[],J=0,ae=0;if(A=!D.sortStable,g=!D.sortStable&&i.call(P,0),q.call(P,rn),A){for(;z=P[ae++];)z===P[ae]&&(J=U.push(ae));for(;J--;)G.call(P,U[J],1)}return g=null,P},d.fn.uniqueSort=function(){return this.pushStack(d.uniqueSort(i.apply(this)))},f=d.expr={cacheLength:50,createPseudo:er,match:Dr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(P){return P[1]=P[1].replace(Pr,jr),P[3]=(P[3]||P[4]||P[5]||"").replace(Pr,jr),P[2]==="~="&&(P[3]=" "+P[3]+" "),P.slice(0,4)},CHILD:function(P){return P[1]=P[1].toLowerCase(),P[1].slice(0,3)==="nth"?(P[3]||Ft.error(P[0]),P[4]=+(P[4]?P[5]+(P[6]||1):2*(P[3]==="even"||P[3]==="odd")),P[5]=+(P[7]+P[8]||P[3]==="odd")):P[3]&&Ft.error(P[0]),P},PSEUDO:function(P){var z,U=!P[6]&&P[2];return Dr.CHILD.test(P[0])?null:(P[3]?P[2]=P[4]||P[5]||"":U&&yr.test(U)&&(z=hi(U,!0))&&(z=U.indexOf(")",U.length-z)-U.length)&&(P[0]=P[0].slice(0,z),P[2]=U.slice(0,z)),P.slice(0,3))}},filter:{TAG:function(P){var z=P.replace(Pr,jr).toLowerCase();return P==="*"?function(){return!0}:function(U){return R(U,z)}},CLASS:function(P){var z=Ue[P+" "];return z||(z=new RegExp("(^|"+L+")"+P+"("+L+"|$)"))&&Ue(P,function(U){return z.test(typeof U.className=="string"&&U.className||typeof U.getAttribute!="undefined"&&U.getAttribute("class")||"")})},ATTR:function(P,z,U){return function(J){var ae=Ft.attr(J,P);return ae==null?z==="!=":z?(ae+="",z==="="?ae===U:z==="!="?ae!==U:z==="^="?U&&ae.indexOf(U)===0:z==="*="?U&&ae.indexOf(U)>-1:z==="$="?U&&ae.slice(-U.length)===U:z==="~="?(" "+ae.replace(ht," ")+" ").indexOf(U)>-1:z==="|="?ae===U||ae.slice(0,U.length+1)===U+"-":!1):!0}},CHILD:function(P,z,U,J,ae){var De=P.slice(0,3)!=="nth",Fe=P.slice(-4)!=="last",Ne=z==="of-type";return J===1&&ae===0?(function(_e){return!!_e.parentNode}):function(_e,it,qe){var We,ot,Le,St,_n,dn=De!==Fe?"nextSibling":"previousSibling",Ln=_e.parentNode,br=Ne&&_e.nodeName.toLowerCase(),ra=!qe&&!Ne,bn=!1;if(Ln){if(De){for(;dn;){for(Le=_e;Le=Le[dn];)if(Ne?R(Le,br):Le.nodeType===1)return!1;_n=dn=P==="only"&&!_n&&"nextSibling"}return!0}if(_n=[Fe?Ln.firstChild:Ln.lastChild],Fe&&ra){for(ot=Ln[ie]||(Ln[ie]={}),We=ot[P]||[],St=We[0]===W&&We[1],bn=St&&We[2],Le=St&&Ln.childNodes[St];Le=++St&&Le&&Le[dn]||(bn=St=0)||_n.pop();)if(Le.nodeType===1&&++bn&&Le===_e){ot[P]=[W,St,bn];break}}else if(ra&&(ot=_e[ie]||(_e[ie]={}),We=ot[P]||[],St=We[0]===W&&We[1],bn=St),bn===!1)for(;(Le=++St&&Le&&Le[dn]||(bn=St=0)||_n.pop())&&!((Ne?R(Le,br):Le.nodeType===1)&&++bn&&(ra&&(ot=Le[ie]||(Le[ie]={}),ot[P]=[W,bn]),Le===_e)););return bn-=ae,bn===J||bn%J===0&&bn/J>=0}}},PSEUDO:function(P,z){var U,J=f.pseudos[P]||f.setFilters[P.toLowerCase()]||Ft.error("unsupported pseudo: "+P);return J[ie]?J(z):J.length>1?(U=[P,P,"",z],f.setFilters.hasOwnProperty(P.toLowerCase())?er(function(ae,De){for(var Fe,Ne=J(ae,z),_e=Ne.length;_e--;)Fe=l.call(ae,Ne[_e]),ae[Fe]=!(De[Fe]=Ne[_e])}):function(ae){return J(ae,0,U)}):J}},pseudos:{not:er(function(P){var z=[],U=[],J=Mc(P.replace(ne,"$1"));return J[ie]?er(function(ae,De,Fe,Ne){for(var _e,it=J(ae,null,Ne,[]),qe=ae.length;qe--;)(_e=it[qe])&&(ae[qe]=!(De[qe]=_e))}):function(ae,De,Fe){return z[0]=ae,J(z,null,Fe,U),z[0]=null,!U.pop()}}),has:er(function(P){return function(z){return Ft(P,z).length>0}}),contains:er(function(P){return P=P.replace(Pr,jr),function(z){return(z.textContent||d.text(z)).indexOf(P)>-1}}),lang:er(function(P){return pi.test(P||"")||Ft.error("unsupported lang: "+P),P=P.replace(Pr,jr).toLowerCase(),function(z){var U;do if(U=j?z.lang:z.getAttribute("xml:lang")||z.getAttribute("lang"))return U=U.toLowerCase(),U===P||U.indexOf(P+"-")===0;while((z=z.parentNode)&&z.nodeType===1);return!1}}),target:function(P){var z=n.location&&n.location.hash;return z&&z.slice(1)===P.id},root:function(P){return P===N},focus:function(P){return P===jA()&&k.hasFocus()&&!!(P.type||P.href||~P.tabIndex)},enabled:Th(!1),disabled:Th(!0),checked:function(P){return R(P,"input")&&!!P.checked||R(P,"option")&&!!P.selected},selected:function(P){return P.parentNode&&P.parentNode.selectedIndex,P.selected===!0},empty:function(P){for(P=P.firstChild;P;P=P.nextSibling)if(P.nodeType<6)return!1;return!0},parent:function(P){return!f.pseudos.empty(P)},header:function(P){return ru.test(P.nodeName)},input:function(P){return nu.test(P.nodeName)},button:function(P){return R(P,"input")&&P.type==="button"||R(P,"button")},text:function(P){var z;return R(P,"input")&&P.type==="text"&&((z=P.getAttribute("type"))==null||z.toLowerCase()==="text")},first:ku(function(){return[0]}),last:ku(function(P,z){return[z-1]}),eq:ku(function(P,z,U){return[U<0?U+z:U]}),even:ku(function(P,z){for(var U=0;U<z;U+=2)P.push(U);return P}),odd:ku(function(P,z){for(var U=1;U<z;U+=2)P.push(U);return P}),lt:ku(function(P,z,U){var J;for(U<0?J=U+z:U>z?J=z:J=U;--J>=0;)P.push(J);return P}),gt:ku(function(P,z,U){for(var J=U<0?U+z:U;++J<z;)P.push(J);return P})}},f.pseudos.nth=f.pseudos.eq;for(s in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})f.pseudos[s]=NA(s);for(s in{submit:!0,reset:!0})f.pseudos[s]=RA(s);function Oh(){}Oh.prototype=f.filters=f.pseudos,f.setFilters=new Oh;function hi(P,z){var U,J,ae,De,Fe,Ne,_e,it=ft[P+" "];if(it)return z?0:it.slice(0);for(Fe=P,Ne=[],_e=f.preFilter;Fe;){(!U||(J=Vt.exec(Fe)))&&(J&&(Fe=Fe.slice(J[0].length)||Fe),Ne.push(ae=[])),U=!1,(J=di.exec(Fe))&&(U=J.shift(),ae.push({value:U,type:J[0].replace(ne," ")}),Fe=Fe.slice(U.length));for(De in f.filter)(J=Dr[De].exec(Fe))&&(!_e[De]||(J=_e[De](J)))&&(U=J.shift(),ae.push({value:U,type:De,matches:J}),Fe=Fe.slice(U.length));if(!U)break}return z?Fe.length:Fe?Ft.error(P):ft(P,Ne).slice(0)}function Oo(P){for(var z=0,U=P.length,J="";z<U;z++)J+=P[z].value;return J}function Io(P,z,U){var J=z.dir,ae=z.next,De=ae||J,Fe=U&&De==="parentNode",Ne=fe++;return z.first?(function(_e,it,qe){for(;_e=_e[J];)if(_e.nodeType===1||Fe)return P(_e,it,qe);return!1}):(function(_e,it,qe){var We,ot,Le=[W,Ne];if(qe){for(;_e=_e[J];)if((_e.nodeType===1||Fe)&&P(_e,it,qe))return!0}else for(;_e=_e[J];)if(_e.nodeType===1||Fe)if(ot=_e[ie]||(_e[ie]={}),ae&&R(_e,ae))_e=_e[J]||_e;else{if((We=ot[De])&&We[0]===W&&We[1]===Ne)return Le[2]=We[2];if(ot[De]=Le,Le[2]=P(_e,it,qe))return!0}return!1})}function Rc(P){return P.length>1?function(z,U,J){for(var ae=P.length;ae--;)if(!P[ae](z,U,J))return!1;return!0}:P[0]}function zA(P,z,U){for(var J=0,ae=z.length;J<ae;J++)Ft(P,z[J],U);return U}function Bo(P,z,U,J,ae){for(var De,Fe=[],Ne=0,_e=P.length,it=z!=null;Ne<_e;Ne++)(De=P[Ne])&&(!U||U(De,J,ae))&&(Fe.push(De),it&&z.push(Ne));return Fe}function zc(P,z,U,J,ae,De){return J&&!J[ie]&&(J=zc(J)),ae&&!ae[ie]&&(ae=zc(ae,De)),er(function(Fe,Ne,_e,it){var qe,We,ot,Le,St=[],_n=[],dn=Ne.length,Ln=Fe||zA(z||"*",_e.nodeType?[_e]:_e,[]),br=P&&(Fe||!z)?Bo(Ln,St,P,_e,it):Ln;if(U?(Le=ae||(Fe?P:dn||J)?[]:Ne,U(br,Le,_e,it)):Le=br,J)for(qe=Bo(Le,_n),J(qe,[],_e,it),We=qe.length;We--;)(ot=qe[We])&&(Le[_n[We]]=!(br[_n[We]]=ot));if(Fe){if(ae||P){if(ae){for(qe=[],We=Le.length;We--;)(ot=Le[We])&&qe.push(br[We]=ot);ae(null,Le=[],qe,it)}for(We=Le.length;We--;)(ot=Le[We])&&(qe=ae?l.call(Fe,ot):St[We])>-1&&(Fe[qe]=!(Ne[qe]=ot))}}else Le=Bo(Le===Ne?Le.splice(dn,Le.length):Le),ae?ae(null,Ne,Le,it):E.apply(Ne,Le)})}function Lc(P){for(var z,U,J,ae=P.length,De=f.relative[P[0].type],Fe=De||f.relative[" "],Ne=De?1:0,_e=Io(function(We){return We===z},Fe,!0),it=Io(function(We){return l.call(z,We)>-1},Fe,!0),qe=[function(We,ot,Le){var St=!De&&(Le||ot!=h)||((z=ot).nodeType?_e(We,ot,Le):it(We,ot,Le));return z=null,St}];Ne<ae;Ne++)if(U=f.relative[P[Ne].type])qe=[Io(Rc(qe),U)];else{if(U=f.filter[P[Ne].type].apply(null,P[Ne].matches),U[ie]){for(J=++Ne;J<ae&&!f.relative[P[J].type];J++);return zc(Ne>1&&Rc(qe),Ne>1&&Oo(P.slice(0,Ne-1).concat({value:P[Ne-2].type===" "?"*":""})).replace(ne,"$1"),U,Ne<J&&Lc(P.slice(Ne,J)),J<ae&&Lc(P=P.slice(J)),J<ae&&Oo(P))}qe.push(U)}return Rc(qe)}function LA(P,z){var U=z.length>0,J=P.length>0,ae=function(De,Fe,Ne,_e,it){var qe,We,ot,Le=0,St="0",_n=De&&[],dn=[],Ln=h,br=De||J&&f.find.TAG("*",it),ra=W+=Ln==null?1:Math.random()||.1,bn=br.length;for(it&&(h=Fe==k||Fe||it);St!==bn&&(qe=br[St])!=null;St++){if(J&&qe){for(We=0,!Fe&&qe.ownerDocument!=k&&(uu(qe),Ne=!j);ot=P[We++];)if(ot(qe,Fe||k,Ne)){E.call(_e,qe);break}it&&(W=ra)}U&&((qe=!ot&&qe)&&Le--,De&&_n.push(qe))}if(Le+=St,U&&St!==Le){for(We=0;ot=z[We++];)ot(_n,dn,Fe,Ne);if(De){if(Le>0)for(;St--;)_n[St]||dn[St]||(dn[St]=Z.call(_e));dn=Bo(dn)}E.apply(_e,dn),it&&!De&&dn.length>0&&Le+z.length>1&&d.uniqueSort(_e)}return it&&(W=ra,h=Ln),_n};return U?er(ae):ae}function Mc(P,z){var U,J=[],ae=[],De=Je[P+" "];if(!De){for(z||(z=hi(P)),U=z.length;U--;)De=Lc(z[U]),De[ie]?J.push(De):ae.push(De);De=Je(P,LA(ae,J)),De.selector=P}return De}function Ih(P,z,U,J){var ae,De,Fe,Ne,_e,it=typeof P=="function"&&P,qe=!J&&hi(P=it.selector||P);if(U=U||[],qe.length===1){if(De=qe[0]=qe[0].slice(0),De.length>2&&(Fe=De[0]).type==="ID"&&z.nodeType===9&&j&&f.relative[De[1].type]){if(z=(f.find.ID(Fe.matches[0].replace(Pr,jr),z)||[])[0],z)it&&(z=z.parentNode);else return U;P=P.slice(De.shift().value.length)}for(ae=Dr.needsContext.test(P)?0:De.length;ae--&&(Fe=De[ae],!f.relative[Ne=Fe.type]);)if((_e=f.find[Ne])&&(J=_e(Fe.matches[0].replace(Pr,jr),jc.test(De[0].type)&&Nc(z.parentNode)||z))){if(De.splice(ae,1),P=J.length&&Oo(De),!P)return E.apply(U,J),U;break}}return(it||Mc(P,qe))(J,z,!j,U,!z||jc.test(P)&&Nc(z.parentNode)||z),U}D.sortStable=ie.split("").sort(rn).join("")===ie,uu(),D.sortDetached=na(function(P){return P.compareDocumentPosition(k.createElement("fieldset"))&1}),d.find=Ft,d.expr[":"]=d.expr.pseudos,d.unique=d.uniqueSort,Ft.compile=Mc,Ft.select=Ih,Ft.setDocument=uu,Ft.tokenize=hi,Ft.escape=d.escapeSelector,Ft.getText=d.text,Ft.isXML=d.isXMLDoc,Ft.selectors=d.expr,Ft.support=d.support,Ft.uniqueSort=d.uniqueSort})();var me=function(s,f,h){for(var g=[],A=h!==void 0;(s=s[f])&&s.nodeType!==9;)if(s.nodeType===1){if(A&&d(s).is(h))break;g.push(s)}return g},se=function(s,f){for(var h=[];s;s=s.nextSibling)s.nodeType===1&&s!==f&&h.push(s);return h},K=d.expr.match.needsContext,V=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ue(s,f,h){return _(f)?d.grep(s,function(g,A){return!!f.call(g,A,g)!==h}):f.nodeType?d.grep(s,function(g){return g===f!==h}):typeof f!="string"?d.grep(s,function(g){return l.call(f,g)>-1!==h}):d.filter(f,s,h)}d.filter=function(s,f,h){var g=f[0];return h&&(s=":not("+s+")"),f.length===1&&g.nodeType===1?d.find.matchesSelector(g,s)?[g]:[]:d.find.matches(s,d.grep(f,function(A){return A.nodeType===1}))},d.fn.extend({find:function(s){var f,h,g=this.length,A=this;if(typeof s!="string")return this.pushStack(d(s).filter(function(){for(f=0;f<g;f++)if(d.contains(A[f],this))return!0}));for(h=this.pushStack([]),f=0;f<g;f++)d.find(s,A[f],h);return g>1?d.uniqueSort(h):h},filter:function(s){return this.pushStack(ue(this,s||[],!1))},not:function(s){return this.pushStack(ue(this,s||[],!0))},is:function(s){return!!ue(this,typeof s=="string"&&K.test(s)?d(s):s||[],!1).length}});var oe,ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ee=d.fn.init=function(s,f,h){var g,A;if(!s)return this;if(h=h||oe,typeof s=="string")if(s[0]==="<"&&s[s.length-1]===">"&&s.length>=3?g=[null,s,null]:g=ce.exec(s),g&&(g[1]||!f))if(g[1]){if(f=f instanceof d?f[0]:f,d.merge(this,d.parseHTML(g[1],f&&f.nodeType?f.ownerDocument||f:w,!0)),V.test(g[1])&&d.isPlainObject(f))for(g in f)_(this[g])?this[g](f[g]):this.attr(g,f[g]);return this}else return A=w.getElementById(g[2]),A&&(this[0]=A,this.length=1),this;else return!f||f.jquery?(f||h).find(s):this.constructor(f).find(s);else{if(s.nodeType)return this[0]=s,this.length=1,this;if(_(s))return h.ready!==void 0?h.ready(s):s(d)}return d.makeArray(s,this)};ee.prototype=d.fn,oe=d(w);var he=/^(?:parents|prev(?:Until|All))/,Ce={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({has:function(s){var f=d(s,this),h=f.length;return this.filter(function(){for(var g=0;g<h;g++)if(d.contains(this,f[g]))return!0})},closest:function(s,f){var h,g=0,A=this.length,E=[],k=typeof s!="string"&&d(s);if(!K.test(s)){for(;g<A;g++)for(h=this[g];h&&h!==f;h=h.parentNode)if(h.nodeType<11&&(k?k.index(h)>-1:h.nodeType===1&&d.find.matchesSelector(h,s))){E.push(h);break}}return this.pushStack(E.length>1?d.uniqueSort(E):E)},index:function(s){return s?typeof s=="string"?l.call(d(s),this[0]):l.call(this,s.jquery?s[0]:s):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(s,f){return this.pushStack(d.uniqueSort(d.merge(this.get(),d(s,f))))},addBack:function(s){return this.add(s==null?this.prevObject:this.prevObject.filter(s))}});function Re(s,f){for(;(s=s[f])&&s.nodeType!==1;);return s}d.each({parent:function(s){var f=s.parentNode;return f&&f.nodeType!==11?f:null},parents:function(s){return me(s,"parentNode")},parentsUntil:function(s,f,h){return me(s,"parentNode",h)},next:function(s){return Re(s,"nextSibling")},prev:function(s){return Re(s,"previousSibling")},nextAll:function(s){return me(s,"nextSibling")},prevAll:function(s){return me(s,"previousSibling")},nextUntil:function(s,f,h){return me(s,"nextSibling",h)},prevUntil:function(s,f,h){return me(s,"previousSibling",h)},siblings:function(s){return se((s.parentNode||{}).firstChild,s)},children:function(s){return se(s.firstChild)},contents:function(s){return s.contentDocument!=null&&a(s.contentDocument)?s.contentDocument:(R(s,"template")&&(s=s.content||s),d.merge([],s.childNodes))}},function(s,f){d.fn[s]=function(h,g){var A=d.map(this,f,h);return s.slice(-5)!=="Until"&&(g=h),g&&typeof g=="string"&&(A=d.filter(g,A)),this.length>1&&(Ce[s]||d.uniqueSort(A),he.test(s)&&A.reverse()),this.pushStack(A)}});var ge=/[^\x20\t\r\n\f]+/g;function Te(s){var f={};return d.each(s.match(ge)||[],function(h,g){f[g]=!0}),f}d.Callbacks=function(s){s=typeof s=="string"?Te(s):d.extend({},s);var f,h,g,A,E=[],k=[],N=-1,j=function(){for(A=A||s.once,g=f=!0;k.length;N=-1)for(h=k.shift();++N<E.length;)E[N].apply(h[0],h[1])===!1&&s.stopOnFalse&&(N=E.length,h=!1);s.memory||(h=!1),f=!1,A&&(h?E=[]:E="")},M={add:function(){return E&&(h&&!f&&(N=E.length-1,k.push(h)),(function X(ie){d.each(ie,function(W,fe){_(fe)?(!s.unique||!M.has(fe))&&E.push(fe):fe&&fe.length&&T(fe)!=="string"&&X(fe)})})(arguments),h&&!f&&j()),this},remove:function(){return d.each(arguments,function(X,ie){for(var W;(W=d.inArray(ie,E,W))>-1;)E.splice(W,1),W<=N&&N--}),this},has:function(X){return X?d.inArray(X,E)>-1:E.length>0},empty:function(){return E&&(E=[]),this},disable:function(){return A=k=[],E=h="",this},disabled:function(){return!E},lock:function(){return A=k=[],!h&&!f&&(E=h=""),this},locked:function(){return!!A},fireWith:function(X,ie){return A||(ie=ie||[],ie=[X,ie.slice?ie.slice():ie],k.push(ie),f||j()),this},fire:function(){return M.fireWith(this,arguments),this},fired:function(){return!!g}};return M};function He(s){return s}function nt(s){throw s}function Ge(s,f,h,g){var A;try{s&&_(A=s.promise)?A.call(s).done(f).fail(h):s&&_(A=s.then)?A.call(s,f,h):f.apply(void 0,[s].slice(g))}catch(E){h.apply(void 0,[E])}}d.extend({Deferred:function(s){var f=[["notify","progress",d.Callbacks("memory"),d.Callbacks("memory"),2],["resolve","done",d.Callbacks("once memory"),d.Callbacks("once memory"),0,"resolved"],["reject","fail",d.Callbacks("once memory"),d.Callbacks("once memory"),1,"rejected"]],h="pending",g={state:function(){return h},always:function(){return A.done(arguments).fail(arguments),this},catch:function(E){return g.then(null,E)},pipe:function(){var E=arguments;return d.Deferred(function(k){d.each(f,function(N,j){var M=_(E[j[4]])&&E[j[4]];A[j[1]](function(){var X=M&&M.apply(this,arguments);X&&_(X.promise)?X.promise().progress(k.notify).done(k.resolve).fail(k.reject):k[j[0]+"With"](this,M?[X]:arguments)})}),E=null}).promise()},then:function(E,k,N){var j=0;function M(X,ie,W,fe){return function(){var Ue=this,ft=arguments,Je=function(){var rn,mr;if(!(X<j)){if(rn=W.apply(Ue,ft),rn===ie.promise())throw new TypeError("Thenable self-resolution");mr=rn&&(typeof rn=="object"||typeof rn=="function")&&rn.then,_(mr)?fe?mr.call(rn,M(j,ie,He,fe),M(j,ie,nt,fe)):(j++,mr.call(rn,M(j,ie,He,fe),M(j,ie,nt,fe),M(j,ie,He,ie.notifyWith))):(W!==He&&(Ue=void 0,ft=[rn]),(fe||ie.resolveWith)(Ue,ft))}},cn=fe?Je:function(){try{Je()}catch(rn){d.Deferred.exceptionHook&&d.Deferred.exceptionHook(rn,cn.error),X+1>=j&&(W!==nt&&(Ue=void 0,ft=[rn]),ie.rejectWith(Ue,ft))}};X?cn():(d.Deferred.getErrorHook?cn.error=d.Deferred.getErrorHook():d.Deferred.getStackHook&&(cn.error=d.Deferred.getStackHook()),n.setTimeout(cn))}}return d.Deferred(function(X){f[0][3].add(M(0,X,_(N)?N:He,X.notifyWith)),f[1][3].add(M(0,X,_(E)?E:He)),f[2][3].add(M(0,X,_(k)?k:nt))}).promise()},promise:function(E){return E!=null?d.extend(E,g):g}},A={};return d.each(f,function(E,k){var N=k[2],j=k[5];g[k[1]]=N.add,j&&N.add(function(){h=j},f[3-E][2].disable,f[3-E][3].disable,f[0][2].lock,f[0][3].lock),N.add(k[3].fire),A[k[0]]=function(){return A[k[0]+"With"](this===A?void 0:this,arguments),this},A[k[0]+"With"]=N.fireWith}),g.promise(A),s&&s.call(A,A),A},when:function(s){var f=arguments.length,h=f,g=Array(h),A=i.call(arguments),E=d.Deferred(),k=function(N){return function(j){g[N]=this,A[N]=arguments.length>1?i.call(arguments):j,--f||E.resolveWith(g,A)}};if(f<=1&&(Ge(s,E.done(k(h)).resolve,E.reject,!f),E.state()==="pending"||_(A[h]&&A[h].then)))return E.then();for(;h--;)Ge(A[h],k(h),E.reject);return E.promise()}});var yt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(s,f){n.console&&n.console.warn&&s&&yt.test(s.name)&&n.console.warn("jQuery.Deferred exception: "+s.message,s.stack,f)},d.readyException=function(s){n.setTimeout(function(){throw s})};var Dt=d.Deferred();d.fn.ready=function(s){return Dt.then(s).catch(function(f){d.readyException(f)}),this},d.extend({isReady:!1,readyWait:1,ready:function(s){(s===!0?--d.readyWait:d.isReady)||(d.isReady=!0,!(s!==!0&&--d.readyWait>0)&&Dt.resolveWith(w,[d]))}}),d.ready.then=Dt.then;function mn(){w.removeEventListener("DOMContentLoaded",mn),n.removeEventListener("load",mn),d.ready()}w.readyState==="complete"||w.readyState!=="loading"&&!w.documentElement.doScroll?n.setTimeout(d.ready):(w.addEventListener("DOMContentLoaded",mn),n.addEventListener("load",mn));var Xt=function(s,f,h,g,A,E,k){var N=0,j=s.length,M=h==null;if(T(h)==="object"){A=!0;for(N in h)Xt(s,f,N,h[N],!0,E,k)}else if(g!==void 0&&(A=!0,_(g)||(k=!0),M&&(k?(f.call(s,g),f=null):(M=f,f=function(X,ie,W){return M.call(d(X),W)})),f))for(;N<j;N++)f(s[N],h,k?g:g.call(s[N],N,f(s[N],h)));return A?s:M?f.call(s):j?f(s[0],h):E},un=/^-ms-/,Gn=/-([a-z])/g;function Mt(s,f){return f.toUpperCase()}function Gt(s){return s.replace(un,"ms-").replace(Gn,Mt)}var Jt=function(s){return s.nodeType===1||s.nodeType===9||!+s.nodeType};function en(){this.expando=d.expando+en.uid++}en.uid=1,en.prototype={cache:function(s){var f=s[this.expando];return f||(f={},Jt(s)&&(s.nodeType?s[this.expando]=f:Object.defineProperty(s,this.expando,{value:f,configurable:!0}))),f},set:function(s,f,h){var g,A=this.cache(s);if(typeof f=="string")A[Gt(f)]=h;else for(g in f)A[Gt(g)]=f[g];return A},get:function(s,f){return f===void 0?this.cache(s):s[this.expando]&&s[this.expando][Gt(f)]},access:function(s,f,h){return f===void 0||f&&typeof f=="string"&&h===void 0?this.get(s,f):(this.set(s,f,h),h!==void 0?h:f)},remove:function(s,f){var h,g=s[this.expando];if(g!==void 0){if(f!==void 0)for(Array.isArray(f)?f=f.map(Gt):(f=Gt(f),f=f in g?[f]:f.match(ge)||[]),h=f.length;h--;)delete g[f[h]];(f===void 0||d.isEmptyObject(g))&&(s.nodeType?s[this.expando]=void 0:delete s[this.expando])}},hasData:function(s){var f=s[this.expando];return f!==void 0&&!d.isEmptyObject(f)}};var ke=new en,Ut=new en,Bt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,sr=/[A-Z]/g;function cr(s){return s==="true"?!0:s==="false"?!1:s==="null"?null:s===+s+""?+s:Bt.test(s)?JSON.parse(s):s}function Jr(s,f,h){var g;if(h===void 0&&s.nodeType===1)if(g="data-"+f.replace(sr,"-$&").toLowerCase(),h=s.getAttribute(g),typeof h=="string"){try{h=cr(h)}catch(A){}Ut.set(s,f,h)}else h=void 0;return h}d.extend({hasData:function(s){return Ut.hasData(s)||ke.hasData(s)},data:function(s,f,h){return Ut.access(s,f,h)},removeData:function(s,f){Ut.remove(s,f)},_data:function(s,f,h){return ke.access(s,f,h)},_removeData:function(s,f){ke.remove(s,f)}}),d.fn.extend({data:function(s,f){var h,g,A,E=this[0],k=E&&E.attributes;if(s===void 0){if(this.length&&(A=Ut.get(E),E.nodeType===1&&!ke.get(E,"hasDataAttrs"))){for(h=k.length;h--;)k[h]&&(g=k[h].name,g.indexOf("data-")===0&&(g=Gt(g.slice(5)),Jr(E,g,A[g])));ke.set(E,"hasDataAttrs",!0)}return A}return typeof s=="object"?this.each(function(){Ut.set(this,s)}):Xt(this,function(N){var j;if(E&&N===void 0)return j=Ut.get(E,s),j!==void 0||(j=Jr(E,s),j!==void 0)?j:void 0;this.each(function(){Ut.set(this,s,N)})},null,f,arguments.length>1,null,!0)},removeData:function(s){return this.each(function(){Ut.remove(this,s)})}}),d.extend({queue:function(s,f,h){var g;if(s)return f=(f||"fx")+"queue",g=ke.get(s,f),h&&(!g||Array.isArray(h)?g=ke.access(s,f,d.makeArray(h)):g.push(h)),g||[]},dequeue:function(s,f){f=f||"fx";var h=d.queue(s,f),g=h.length,A=h.shift(),E=d._queueHooks(s,f),k=function(){d.dequeue(s,f)};A==="inprogress"&&(A=h.shift(),g--),A&&(f==="fx"&&h.unshift("inprogress"),delete E.stop,A.call(s,k,E)),!g&&E&&E.empty.fire()},_queueHooks:function(s,f){var h=f+"queueHooks";return ke.get(s,h)||ke.access(s,h,{empty:d.Callbacks("once memory").add(function(){ke.remove(s,[f+"queue",h])})})}}),d.fn.extend({queue:function(s,f){var h=2;return typeof s!="string"&&(f=s,s="fx",h--),arguments.length<h?d.queue(this[0],s):f===void 0?this:this.each(function(){var g=d.queue(this,s,f);d._queueHooks(this,s),s==="fx"&&g[0]!=="inprogress"&&d.dequeue(this,s)})},dequeue:function(s){return this.each(function(){d.dequeue(this,s)})},clearQueue:function(s){return this.queue(s||"fx",[])},promise:function(s,f){var h,g=1,A=d.Deferred(),E=this,k=this.length,N=function(){--g||A.resolveWith(E,[E])};for(typeof s!="string"&&(f=s,s=void 0),s=s||"fx";k--;)h=ke.get(E[k],s+"queueHooks"),h&&h.empty&&(g++,h.empty.add(N));return N(),A.promise(f)}});var Qr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Fn=new RegExp("^(?:([+-])=|)("+Qr+")([a-z%]*)$","i"),$t=["Top","Right","Bottom","Left"],Jn=w.documentElement,Nn=function(s){return d.contains(s.ownerDocument,s)},lr={composed:!0};Jn.getRootNode&&(Nn=function(s){return d.contains(s.ownerDocument,s)||s.getRootNode(lr)===s.ownerDocument});var xn=function(s,f){return s=f||s,s.style.display==="none"||s.style.display===""&&Nn(s)&&d.css(s,"display")==="none"};function fr(s,f,h,g){var A,E,k=20,N=g?function(){return g.cur()}:function(){return d.css(s,f,"")},j=N(),M=h&&h[3]||(d.cssNumber[f]?"":"px"),X=s.nodeType&&(d.cssNumber[f]||M!=="px"&&+j)&&Fn.exec(d.css(s,f));if(X&&X[3]!==M){for(j=j/2,M=M||X[3],X=+j||1;k--;)d.style(s,f,X+M),(1-E)*(1-(E=N()/j||.5))<=0&&(k=0),X=X/E;X=X*2,d.style(s,f,X+M),h=h||[]}return h&&(X=+X||+j||0,A=h[1]?X+(h[1]+1)*h[2]:+h[2],g&&(g.unit=M,g.start=X,g.end=A)),A}var Qn={};function kr(s){var f,h=s.ownerDocument,g=s.nodeName,A=Qn[g];return A||(f=h.body.appendChild(h.createElement(g)),A=d.css(f,"display"),f.parentNode.removeChild(f),A==="none"&&(A="block"),Qn[g]=A,A)}function rt(s,f){for(var h,g,A=[],E=0,k=s.length;E<k;E++)g=s[E],g.style&&(h=g.style.display,f?(h==="none"&&(A[E]=ke.get(g,"display")||null,A[E]||(g.style.display="")),g.style.display===""&&xn(g)&&(A[E]=kr(g))):h!=="none"&&(A[E]="none",ke.set(g,"display",h)));for(E=0;E<k;E++)A[E]!=null&&(s[E].style.display=A[E]);return s}d.fn.extend({show:function(){return rt(this,!0)},hide:function(){return rt(this)},toggle:function(s){return typeof s=="boolean"?s?this.show():this.hide():this.each(function(){xn(this)?d(this).show():d(this).hide()})}});var gn=/^(?:checkbox|radio)$/i,ui=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,dr=/^$|^module$|\/(?:java|ecma)script/i;(function(){var s=w.createDocumentFragment(),f=s.appendChild(w.createElement("div")),h=w.createElement("input");h.setAttribute("type","radio"),h.setAttribute("checked","checked"),h.setAttribute("name","t"),f.appendChild(h),D.checkClone=f.cloneNode(!0).cloneNode(!0).lastChild.checked,f.innerHTML="<textarea>x</textarea>",D.noCloneChecked=!!f.cloneNode(!0).lastChild.defaultValue,f.innerHTML="<option></option>",D.option=!!f.lastChild})();var tn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};tn.tbody=tn.tfoot=tn.colgroup=tn.caption=tn.thead,tn.th=tn.td,D.option||(tn.optgroup=tn.option=[1,"<select multiple='multiple'>","</select>"]);function Zt(s,f){var h;return typeof s.getElementsByTagName!="undefined"?h=s.getElementsByTagName(f||"*"):typeof s.querySelectorAll!="undefined"?h=s.querySelectorAll(f||"*"):h=[],f===void 0||f&&R(s,f)?d.merge([s],h):h}function wr(s,f){for(var h=0,g=s.length;h<g;h++)ke.set(s[h],"globalEval",!f||ke.get(f[h],"globalEval"))}var Fo=/<|&#?\w+;/;function _o(s,f,h,g,A){for(var E,k,N,j,M,X,ie=f.createDocumentFragment(),W=[],fe=0,Ue=s.length;fe<Ue;fe++)if(E=s[fe],E||E===0)if(T(E)==="object")d.merge(W,E.nodeType?[E]:E);else if(!Fo.test(E))W.push(f.createTextNode(E));else{for(k=k||ie.appendChild(f.createElement("div")),N=(ui.exec(E)||["",""])[1].toLowerCase(),j=tn[N]||tn._default,k.innerHTML=j[1]+d.htmlPrefilter(E)+j[2],X=j[0];X--;)k=k.lastChild;d.merge(W,k.childNodes),k=ie.firstChild,k.textContent=""}for(ie.textContent="",fe=0;E=W[fe++];){if(g&&d.inArray(E,g)>-1){A&&A.push(E);continue}if(M=Nn(E),k=Zt(ie.appendChild(E),"script"),M&&wr(k),h)for(X=0;E=k[X++];)dr.test(E.type||"")&&h.push(E)}return ie}var Au=/^([^.]*)(?:\.(.+)|)/;function Sr(){return!0}function xr(){return!1}function ai(s,f,h,g,A,E){var k,N;if(typeof f=="object"){typeof h!="string"&&(g=g||h,h=void 0);for(N in f)ai(s,N,h,g,f[N],E);return s}if(g==null&&A==null?(A=h,g=h=void 0):A==null&&(typeof h=="string"?(A=g,g=void 0):(A=g,g=h,h=void 0)),A===!1)A=xr;else if(!A)return s;return E===1&&(k=A,A=function(j){return d().off(j),k.apply(this,arguments)},A.guid=k.guid||(k.guid=d.guid++)),s.each(function(){d.event.add(this,f,A,g,h)})}d.event={global:{},add:function(s,f,h,g,A){var E,k,N,j,M,X,ie,W,fe,Ue,ft,Je=ke.get(s);if(Jt(s))for(h.handler&&(E=h,h=E.handler,A=E.selector),A&&d.find.matchesSelector(Jn,A),h.guid||(h.guid=d.guid++),(j=Je.events)||(j=Je.events=Object.create(null)),(k=Je.handle)||(k=Je.handle=function(cn){return typeof d!="undefined"&&d.event.triggered!==cn.type?d.event.dispatch.apply(s,arguments):void 0}),f=(f||"").match(ge)||[""],M=f.length;M--;)N=Au.exec(f[M])||[],fe=ft=N[1],Ue=(N[2]||"").split(".").sort(),fe&&(ie=d.event.special[fe]||{},fe=(A?ie.delegateType:ie.bindType)||fe,ie=d.event.special[fe]||{},X=d.extend({type:fe,origType:ft,data:g,handler:h,guid:h.guid,selector:A,needsContext:A&&d.expr.match.needsContext.test(A),namespace:Ue.join(".")},E),(W=j[fe])||(W=j[fe]=[],W.delegateCount=0,(!ie.setup||ie.setup.call(s,g,Ue,k)===!1)&&s.addEventListener&&s.addEventListener(fe,k)),ie.add&&(ie.add.call(s,X),X.handler.guid||(X.handler.guid=h.guid)),A?W.splice(W.delegateCount++,0,X):W.push(X),d.event.global[fe]=!0)},remove:function(s,f,h,g,A){var E,k,N,j,M,X,ie,W,fe,Ue,ft,Je=ke.hasData(s)&&ke.get(s);if(!(!Je||!(j=Je.events))){for(f=(f||"").match(ge)||[""],M=f.length;M--;){if(N=Au.exec(f[M])||[],fe=ft=N[1],Ue=(N[2]||"").split(".").sort(),!fe){for(fe in j)d.event.remove(s,fe+f[M],h,g,!0);continue}for(ie=d.event.special[fe]||{},fe=(g?ie.delegateType:ie.bindType)||fe,W=j[fe]||[],N=N[2]&&new RegExp("(^|\\.)"+Ue.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=E=W.length;E--;)X=W[E],(A||ft===X.origType)&&(!h||h.guid===X.guid)&&(!N||N.test(X.namespace))&&(!g||g===X.selector||g==="**"&&X.selector)&&(W.splice(E,1),X.selector&&W.delegateCount--,ie.remove&&ie.remove.call(s,X));k&&!W.length&&((!ie.teardown||ie.teardown.call(s,Ue,Je.handle)===!1)&&d.removeEvent(s,fe,Je.handle),delete j[fe])}d.isEmptyObject(j)&&ke.remove(s,"handle events")}},dispatch:function(s){var f,h,g,A,E,k,N=new Array(arguments.length),j=d.event.fix(s),M=(ke.get(this,"events")||Object.create(null))[j.type]||[],X=d.event.special[j.type]||{};for(N[0]=j,f=1;f<arguments.length;f++)N[f]=arguments[f];if(j.delegateTarget=this,!(X.preDispatch&&X.preDispatch.call(this,j)===!1)){for(k=d.event.handlers.call(this,j,M),f=0;(A=k[f++])&&!j.isPropagationStopped();)for(j.currentTarget=A.elem,h=0;(E=A.handlers[h++])&&!j.isImmediatePropagationStopped();)(!j.rnamespace||E.namespace===!1||j.rnamespace.test(E.namespace))&&(j.handleObj=E,j.data=E.data,g=((d.event.special[E.origType]||{}).handle||E.handler).apply(A.elem,N),g!==void 0&&(j.result=g)===!1&&(j.preventDefault(),j.stopPropagation()));return X.postDispatch&&X.postDispatch.call(this,j),j.result}},handlers:function(s,f){var h,g,A,E,k,N=[],j=f.delegateCount,M=s.target;if(j&&M.nodeType&&!(s.type==="click"&&s.button>=1)){for(;M!==this;M=M.parentNode||this)if(M.nodeType===1&&!(s.type==="click"&&M.disabled===!0)){for(E=[],k={},h=0;h<j;h++)g=f[h],A=g.selector+" ",k[A]===void 0&&(k[A]=g.needsContext?d(A,this).index(M)>-1:d.find(A,this,null,[M]).length),k[A]&&E.push(g);E.length&&N.push({elem:M,handlers:E})}}return M=this,j<f.length&&N.push({elem:M,handlers:f.slice(j)}),N},addProp:function(s,f){Object.defineProperty(d.Event.prototype,s,{enumerable:!0,configurable:!0,get:_(f)?function(){if(this.originalEvent)return f(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[s]},set:function(h){Object.defineProperty(this,s,{enumerable:!0,configurable:!0,writable:!0,value:h})}})},fix:function(s){return s[d.expando]?s:new d.Event(s)},special:{load:{noBubble:!0},click:{setup:function(s){var f=this||s;return gn.test(f.type)&&f.click&&R(f,"input")&&Eu(f,"click",!0),!1},trigger:function(s){var f=this||s;return gn.test(f.type)&&f.click&&R(f,"input")&&Eu(f,"click"),!0},_default:function(s){var f=s.target;return gn.test(f.type)&&f.click&&R(f,"input")&&ke.get(f,"click")||R(f,"a")}},beforeunload:{postDispatch:function(s){s.result!==void 0&&s.originalEvent&&(s.originalEvent.returnValue=s.result)}}}};function Eu(s,f,h){if(!h){ke.get(s,f)===void 0&&d.event.add(s,f,Sr);return}ke.set(s,f,!1),d.event.add(s,f,{namespace:!1,handler:function(g){var A,E=ke.get(this,f);if(g.isTrigger&1&&this[f]){if(E)(d.event.special[f]||{}).delegateType&&g.stopPropagation();else if(E=i.call(arguments),ke.set(this,f,E),this[f](),A=ke.get(this,f),ke.set(this,f,!1),E!==A)return g.stopImmediatePropagation(),g.preventDefault(),A}else E&&(ke.set(this,f,d.event.trigger(E[0],E.slice(1),this)),g.stopPropagation(),g.isImmediatePropagationStopped=Sr)}})}d.removeEvent=function(s,f,h){s.removeEventListener&&s.removeEventListener(f,h)},d.Event=function(s,f){if(!(this instanceof d.Event))return new d.Event(s,f);s&&s.type?(this.originalEvent=s,this.type=s.type,this.isDefaultPrevented=s.defaultPrevented||s.defaultPrevented===void 0&&s.returnValue===!1?Sr:xr,this.target=s.target&&s.target.nodeType===3?s.target.parentNode:s.target,this.currentTarget=s.currentTarget,this.relatedTarget=s.relatedTarget):this.type=s,f&&d.extend(this,f),this.timeStamp=s&&s.timeStamp||Date.now(),this[d.expando]=!0},d.Event.prototype={constructor:d.Event,isDefaultPrevented:xr,isPropagationStopped:xr,isImmediatePropagationStopped:xr,isSimulated:!1,preventDefault:function(){var s=this.originalEvent;this.isDefaultPrevented=Sr,s&&!this.isSimulated&&s.preventDefault()},stopPropagation:function(){var s=this.originalEvent;this.isPropagationStopped=Sr,s&&!this.isSimulated&&s.stopPropagation()},stopImmediatePropagation:function(){var s=this.originalEvent;this.isImmediatePropagationStopped=Sr,s&&!this.isSimulated&&s.stopImmediatePropagation(),this.stopPropagation()}},d.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},d.event.addProp),d.each({focus:"focusin",blur:"focusout"},function(s,f){function h(g){if(w.documentMode){var A=ke.get(this,"handle"),E=d.event.fix(g);E.type=g.type==="focusin"?"focus":"blur",E.isSimulated=!0,A(g),E.target===E.currentTarget&&A(E)}else d.event.simulate(f,g.target,d.event.fix(g))}d.event.special[s]={setup:function(){var g;if(Eu(this,s,!0),w.documentMode)g=ke.get(this,f),g||this.addEventListener(f,h),ke.set(this,f,(g||0)+1);else return!1},trigger:function(){return Eu(this,s),!0},teardown:function(){var g;if(w.documentMode)g=ke.get(this,f)-1,g?ke.set(this,f,g):(this.removeEventListener(f,h),ke.remove(this,f));else return!1},_default:function(g){return ke.get(g.target,s)},delegateType:f},d.event.special[f]={setup:function(){var g=this.ownerDocument||this.document||this,A=w.documentMode?this:g,E=ke.get(A,f);E||(w.documentMode?this.addEventListener(f,h):g.addEventListener(s,h,!0)),ke.set(A,f,(E||0)+1)},teardown:function(){var g=this.ownerDocument||this.document||this,A=w.documentMode?this:g,E=ke.get(A,f)-1;E?ke.set(A,f,E):(w.documentMode?this.removeEventListener(f,h):g.removeEventListener(s,h,!0),ke.remove(A,f))}}}),d.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(s,f){d.event.special[s]={delegateType:f,bindType:f,handle:function(h){var g,A=this,E=h.relatedTarget,k=h.handleObj;return(!E||E!==A&&!d.contains(A,E))&&(h.type=k.origType,g=k.handler.apply(this,arguments),h.type=f),g}}}),d.fn.extend({on:function(s,f,h,g){return ai(this,s,f,h,g)},one:function(s,f,h,g){return ai(this,s,f,h,g,1)},off:function(s,f,h){var g,A;if(s&&s.preventDefault&&s.handleObj)return g=s.handleObj,d(s.delegateTarget).off(g.namespace?g.origType+"."+g.namespace:g.origType,g.selector,g.handler),this;if(typeof s=="object"){for(A in s)this.off(A,f,s[A]);return this}return(f===!1||typeof f=="function")&&(h=f,f=void 0),h===!1&&(h=xr),this.each(function(){d.event.remove(this,s,h,f)})}});var ii=/<script|<style|<link/i,kc=/checked\s*(?:[^=]|=\s*.checked.)/i,Yn=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Yr(s,f){return R(s,"table")&&R(f.nodeType!==11?f:f.firstChild,"tr")&&d(s).children("tbody")[0]||s}function wc(s){return s.type=(s.getAttribute("type")!==null)+"/"+s.type,s}function Co(s){return(s.type||"").slice(0,5)==="true/"?s.type=s.type.slice(5):s.removeAttribute("type"),s}function Tr(s,f){var h,g,A,E,k,N,j;if(f.nodeType===1){if(ke.hasData(s)&&(E=ke.get(s),j=E.events,j)){ke.remove(f,"handle events");for(A in j)for(h=0,g=j[A].length;h<g;h++)d.event.add(f,A,j[A][h])}Ut.hasData(s)&&(k=Ut.access(s),N=d.extend({},k),Ut.set(f,N))}}function Or(s,f){var h=f.nodeName.toLowerCase();h==="input"&&gn.test(s.type)?f.checked=s.checked:(h==="input"||h==="textarea")&&(f.defaultValue=s.defaultValue)}function Xr(s,f,h,g){f=o(f);var A,E,k,N,j,M,X=0,ie=s.length,W=ie-1,fe=f[0],Ue=_(fe);if(Ue||ie>1&&typeof fe=="string"&&!D.checkClone&&kc.test(fe))return s.each(function(ft){var Je=s.eq(ft);Ue&&(f[0]=fe.call(this,ft,Je.html())),Xr(Je,f,h,g)});if(ie&&(A=_o(f,s[0].ownerDocument,!1,s,g),E=A.firstChild,A.childNodes.length===1&&(A=E),E||g)){for(k=d.map(Zt(A,"script"),wc),N=k.length;X<ie;X++)j=A,X!==W&&(j=d.clone(j,!0,!0),N&&d.merge(k,Zt(j,"script"))),h.call(s[X],j,X);if(N)for(M=k[k.length-1].ownerDocument,d.map(k,Co),X=0;X<N;X++)j=k[X],dr.test(j.type||"")&&!ke.access(j,"globalEval")&&d.contains(M,j)&&(j.src&&(j.type||"").toLowerCase()!=="module"?d._evalUrl&&!j.noModule&&d._evalUrl(j.src,{nonce:j.nonce||j.getAttribute("nonce")},M):S(j.textContent.replace(Yn,""),j,M))}return s}function ko(s,f,h){for(var g,A=f?d.filter(f,s):s,E=0;(g=A[E])!=null;E++)!h&&g.nodeType===1&&d.cleanData(Zt(g)),g.parentNode&&(h&&Nn(g)&&wr(Zt(g,"script")),g.parentNode.removeChild(g));return s}d.extend({htmlPrefilter:function(s){return s},clone:function(s,f,h){var g,A,E,k,N=s.cloneNode(!0),j=Nn(s);if(!D.noCloneChecked&&(s.nodeType===1||s.nodeType===11)&&!d.isXMLDoc(s))for(k=Zt(N),E=Zt(s),g=0,A=E.length;g<A;g++)Or(E[g],k[g]);if(f)if(h)for(E=E||Zt(s),k=k||Zt(N),g=0,A=E.length;g<A;g++)Tr(E[g],k[g]);else Tr(s,N);return k=Zt(N,"script"),k.length>0&&wr(k,!j&&Zt(s,"script")),N},cleanData:function(s){for(var f,h,g,A=d.event.special,E=0;(h=s[E])!==void 0;E++)if(Jt(h)){if(f=h[ke.expando]){if(f.events)for(g in f.events)A[g]?d.event.remove(h,g):d.removeEvent(h,g,f.handle);h[ke.expando]=void 0}h[Ut.expando]&&(h[Ut.expando]=void 0)}}}),d.fn.extend({detach:function(s){return ko(this,s,!0)},remove:function(s){return ko(this,s)},text:function(s){return Xt(this,function(f){return f===void 0?d.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=f)})},null,s,arguments.length)},append:function(){return Xr(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=Yr(this,s);f.appendChild(s)}})},prepend:function(){return Xr(this,arguments,function(s){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=Yr(this,s);f.insertBefore(s,f.firstChild)}})},before:function(){return Xr(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this)})},after:function(){return Xr(this,arguments,function(s){this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling)})},empty:function(){for(var s,f=0;(s=this[f])!=null;f++)s.nodeType===1&&(d.cleanData(Zt(s,!1)),s.textContent="");return this},clone:function(s,f){return s=s==null?!1:s,f=f==null?s:f,this.map(function(){return d.clone(this,s,f)})},html:function(s){return Xt(this,function(f){var h=this[0]||{},g=0,A=this.length;if(f===void 0&&h.nodeType===1)return h.innerHTML;if(typeof f=="string"&&!ii.test(f)&&!tn[(ui.exec(f)||["",""])[1].toLowerCase()]){f=d.htmlPrefilter(f);try{for(;g<A;g++)h=this[g]||{},h.nodeType===1&&(d.cleanData(Zt(h,!1)),h.innerHTML=f);h=0}catch(E){}}h&&this.empty().append(f)},null,s,arguments.length)},replaceWith:function(){var s=[];return Xr(this,arguments,function(f){var h=this.parentNode;d.inArray(this,s)<0&&(d.cleanData(Zt(this)),h&&h.replaceChild(f,this))},s)}}),d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,f){d.fn[s]=function(h){for(var g,A=[],E=d(h),k=E.length-1,N=0;N<=k;N++)g=N===k?this:this.clone(!0),d(E[N])[f](g),c.apply(A,g.get());return this.pushStack(A)}});var ea=new RegExp("^("+Qr+")(?!px)[a-z%]+$","i"),oi=/^--/,Fu=function(s){var f=s.ownerDocument.defaultView;return(!f||!f.opener)&&(f=n),f.getComputedStyle(s)},si=function(s,f,h){var g,A,E={};for(A in f)E[A]=s.style[A],s.style[A]=f[A];g=h.call(s);for(A in f)s.style[A]=E[A];return g},wo=new RegExp($t.join("|"),"i");(function(){function s(){if(M){j.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",M.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Jn.appendChild(j).appendChild(M);var X=n.getComputedStyle(M);h=X.top!=="1%",N=f(X.marginLeft)===12,M.style.right="60%",E=f(X.right)===36,g=f(X.width)===36,M.style.position="absolute",A=f(M.offsetWidth/3)===12,Jn.removeChild(j),M=null}}function f(X){return Math.round(parseFloat(X))}var h,g,A,E,k,N,j=w.createElement("div"),M=w.createElement("div");M.style&&(M.style.backgroundClip="content-box",M.cloneNode(!0).style.backgroundClip="",D.clearCloneStyle=M.style.backgroundClip==="content-box",d.extend(D,{boxSizingReliable:function(){return s(),g},pixelBoxStyles:function(){return s(),E},pixelPosition:function(){return s(),h},reliableMarginLeft:function(){return s(),N},scrollboxSize:function(){return s(),A},reliableTrDimensions:function(){var X,ie,W,fe;return k==null&&(X=w.createElement("table"),ie=w.createElement("tr"),W=w.createElement("div"),X.style.cssText="position:absolute;left:-11111px;border-collapse:separate",ie.style.cssText="box-sizing:content-box;border:1px solid",ie.style.height="1px",W.style.height="9px",W.style.display="block",Jn.appendChild(X).appendChild(ie).appendChild(W),fe=n.getComputedStyle(ie),k=parseInt(fe.height,10)+parseInt(fe.borderTopWidth,10)+parseInt(fe.borderBottomWidth,10)===ie.offsetHeight,Jn.removeChild(X)),k}}))})();function le(s,f,h){var g,A,E,k,N=oi.test(f),j=s.style;return h=h||Fu(s),h&&(k=h.getPropertyValue(f)||h[f],N&&k&&(k=k.replace(ne,"$1")||void 0),k===""&&!Nn(s)&&(k=d.style(s,f)),!D.pixelBoxStyles()&&ea.test(k)&&wo.test(f)&&(g=j.width,A=j.minWidth,E=j.maxWidth,j.minWidth=j.maxWidth=j.width=k,k=h.width,j.width=g,j.minWidth=A,j.maxWidth=E)),k!==void 0?k+"":k}function Ie(s,f){return{get:function(){if(s()){delete this.get;return}return(this.get=f).apply(this,arguments)}}}var Ve=["Webkit","Moz","ms"],Ct=w.createElement("div").style,At={};function ln(s){for(var f=s[0].toUpperCase()+s.slice(1),h=Ve.length;h--;)if(s=Ve[h]+f,s in Ct)return s}function yn(s){var f=d.cssProps[s]||At[s];return f||(s in Ct?s:At[s]=ln(s)||s)}var Dn=/^(none|table(?!-c[ea]).+)/,Ir={position:"absolute",visibility:"hidden",display:"block"},eu={letterSpacing:"0",fontWeight:"400"};function qt(s,f,h){var g=Fn.exec(f);return g?Math.max(0,g[2]-(h||0))+(g[3]||"px"):f}function Ht(s,f,h,g,A,E){var k=f==="width"?1:0,N=0,j=0,M=0;if(h===(g?"border":"content"))return 0;for(;k<4;k+=2)h==="margin"&&(M+=d.css(s,h+$t[k],!0,A)),g?(h==="content"&&(j-=d.css(s,"padding"+$t[k],!0,A)),h!=="margin"&&(j-=d.css(s,"border"+$t[k]+"Width",!0,A))):(j+=d.css(s,"padding"+$t[k],!0,A),h!=="padding"?j+=d.css(s,"border"+$t[k]+"Width",!0,A):N+=d.css(s,"border"+$t[k]+"Width",!0,A));return!g&&E>=0&&(j+=Math.max(0,Math.ceil(s["offset"+f[0].toUpperCase()+f.slice(1)]-E-j-N-.5))||0),j+M}function Br(s,f,h){var g=Fu(s),A=!D.boxSizingReliable()||h,E=A&&d.css(s,"boxSizing",!1,g)==="border-box",k=E,N=le(s,f,g),j="offset"+f[0].toUpperCase()+f.slice(1);if(ea.test(N)){if(!h)return N;N="auto"}return(!D.boxSizingReliable()&&E||!D.reliableTrDimensions()&&R(s,"tr")||N==="auto"||!parseFloat(N)&&d.css(s,"display",!1,g)==="inline")&&s.getClientRects().length&&(E=d.css(s,"boxSizing",!1,g)==="border-box",k=j in s,k&&(N=s[j])),N=parseFloat(N)||0,N+Ht(s,f,h||(E?"border":"content"),k,g,N)+"px"}d.extend({cssHooks:{opacity:{get:function(s,f){if(f){var h=le(s,"opacity");return h===""?"1":h}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(s,f,h,g){if(!(!s||s.nodeType===3||s.nodeType===8||!s.style)){var A,E,k,N=Gt(f),j=oi.test(f),M=s.style;if(j||(f=yn(N)),k=d.cssHooks[f]||d.cssHooks[N],h!==void 0){if(E=typeof h,E==="string"&&(A=Fn.exec(h))&&A[1]&&(h=fr(s,f,A),E="number"),h==null||h!==h)return;E==="number"&&!j&&(h+=A&&A[3]||(d.cssNumber[N]?"":"px")),!D.clearCloneStyle&&h===""&&f.indexOf("background")===0&&(M[f]="inherit"),(!k||!("set"in k)||(h=k.set(s,h,g))!==void 0)&&(j?M.setProperty(f,h):M[f]=h)}else return k&&"get"in k&&(A=k.get(s,!1,g))!==void 0?A:M[f]}},css:function(s,f,h,g){var A,E,k,N=Gt(f),j=oi.test(f);return j||(f=yn(N)),k=d.cssHooks[f]||d.cssHooks[N],k&&"get"in k&&(A=k.get(s,!0,h)),A===void 0&&(A=le(s,f,g)),A==="normal"&&f in eu&&(A=eu[f]),h===""||h?(E=parseFloat(A),h===!0||isFinite(E)?E||0:A):A}}),d.each(["height","width"],function(s,f){d.cssHooks[f]={get:function(h,g,A){if(g)return Dn.test(d.css(h,"display"))&&(!h.getClientRects().length||!h.getBoundingClientRect().width)?si(h,Ir,function(){return Br(h,f,A)}):Br(h,f,A)},set:function(h,g,A){var E,k=Fu(h),N=!D.scrollboxSize()&&k.position==="absolute",j=N||A,M=j&&d.css(h,"boxSizing",!1,k)==="border-box",X=A?Ht(h,f,A,M,k):0;return M&&N&&(X-=Math.ceil(h["offset"+f[0].toUpperCase()+f.slice(1)]-parseFloat(k[f])-Ht(h,f,"border",!1,k)-.5)),X&&(E=Fn.exec(g))&&(E[3]||"px")!=="px"&&(h.style[f]=g,g=d.css(h,f)),qt(h,g,X)}}}),d.cssHooks.marginLeft=Ie(D.reliableMarginLeft,function(s,f){if(f)return(parseFloat(le(s,"marginLeft"))||s.getBoundingClientRect().left-si(s,{marginLeft:0},function(){return s.getBoundingClientRect().left}))+"px"}),d.each({margin:"",padding:"",border:"Width"},function(s,f){d.cssHooks[s+f]={expand:function(h){for(var g=0,A={},E=typeof h=="string"?h.split(" "):[h];g<4;g++)A[s+$t[g]+f]=E[g]||E[g-2]||E[0];return A}},s!=="margin"&&(d.cssHooks[s+f].set=qt)}),d.fn.extend({css:function(s,f){return Xt(this,function(h,g,A){var E,k,N={},j=0;if(Array.isArray(g)){for(E=Fu(h),k=g.length;j<k;j++)N[g[j]]=d.css(h,g[j],!1,E);return N}return A!==void 0?d.style(h,g,A):d.css(h,g)},s,f,arguments.length>1)}});function Nt(s,f,h,g,A){return new Nt.prototype.init(s,f,h,g,A)}d.Tween=Nt,Nt.prototype={constructor:Nt,init:function(s,f,h,g,A,E){this.elem=s,this.prop=h,this.easing=A||d.easing._default,this.options=f,this.start=this.now=this.cur(),this.end=g,this.unit=E||(d.cssNumber[h]?"":"px")},cur:function(){var s=Nt.propHooks[this.prop];return s&&s.get?s.get(this):Nt.propHooks._default.get(this)},run:function(s){var f,h=Nt.propHooks[this.prop];return this.options.duration?this.pos=f=d.easing[this.easing](s,this.options.duration*s,0,1,this.options.duration):this.pos=f=s,this.now=(this.end-this.start)*f+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),h&&h.set?h.set(this):Nt.propHooks._default.set(this),this}},Nt.prototype.init.prototype=Nt.prototype,Nt.propHooks={_default:{get:function(s){var f;return s.elem.nodeType!==1||s.elem[s.prop]!=null&&s.elem.style[s.prop]==null?s.elem[s.prop]:(f=d.css(s.elem,s.prop,""),!f||f==="auto"?0:f)},set:function(s){d.fx.step[s.prop]?d.fx.step[s.prop](s):s.elem.nodeType===1&&(d.cssHooks[s.prop]||s.elem.style[yn(s.prop)]!=null)?d.style(s.elem,s.prop,s.now+s.unit):s.elem[s.prop]=s.now}}},Nt.propHooks.scrollTop=Nt.propHooks.scrollLeft={set:function(s){s.elem.nodeType&&s.elem.parentNode&&(s.elem[s.prop]=s.now)}},d.easing={linear:function(s){return s},swing:function(s){return .5-Math.cos(s*Math.PI)/2},_default:"swing"},d.fx=Nt.prototype.init,d.fx.step={};var fn,nn,_u=/^(?:toggle|show|hide)$/,pr=/queueHooks$/;function ci(){nn&&(w.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(ci):n.setTimeout(ci,d.fx.interval),d.fx.tick())}function So(){return n.setTimeout(function(){fn=void 0}),fn=Date.now()}function ta(s,f){var h,g=0,A={height:s};for(f=f?1:0;g<4;g+=2-f)h=$t[g],A["margin"+h]=A["padding"+h]=s;return f&&(A.opacity=A.width=s),A}function xo(s,f,h){for(var g,A=(ut.tweeners[f]||[]).concat(ut.tweeners["*"]),E=0,k=A.length;E<k;E++)if(g=A[E].call(h,f,s))return g}function Sc(s,f,h){var g,A,E,k,N,j,M,X,ie="width"in f||"height"in f,W=this,fe={},Ue=s.style,ft=s.nodeType&&xn(s),Je=ke.get(s,"fxshow");h.queue||(k=d._queueHooks(s,"fx"),k.unqueued==null&&(k.unqueued=0,N=k.empty.fire,k.empty.fire=function(){k.unqueued||N()}),k.unqueued++,W.always(function(){W.always(function(){k.unqueued--,d.queue(s,"fx").length||k.empty.fire()})}));for(g in f)if(A=f[g],_u.test(A)){if(delete f[g],E=E||A==="toggle",A===(ft?"hide":"show"))if(A==="show"&&Je&&Je[g]!==void 0)ft=!0;else continue;fe[g]=Je&&Je[g]||d.style(s,g)}if(j=!d.isEmptyObject(f),!(!j&&d.isEmptyObject(fe))){ie&&s.nodeType===1&&(h.overflow=[Ue.overflow,Ue.overflowX,Ue.overflowY],M=Je&&Je.display,M==null&&(M=ke.get(s,"display")),X=d.css(s,"display"),X==="none"&&(M?X=M:(rt([s],!0),M=s.style.display||M,X=d.css(s,"display"),rt([s]))),(X==="inline"||X==="inline-block"&&M!=null)&&d.css(s,"float")==="none"&&(j||(W.done(function(){Ue.display=M}),M==null&&(X=Ue.display,M=X==="none"?"":X)),Ue.display="inline-block")),h.overflow&&(Ue.overflow="hidden",W.always(function(){Ue.overflow=h.overflow[0],Ue.overflowX=h.overflow[1],Ue.overflowY=h.overflow[2]})),j=!1;for(g in fe)j||(Je?"hidden"in Je&&(ft=Je.hidden):Je=ke.access(s,"fxshow",{display:M}),E&&(Je.hidden=!ft),ft&&rt([s],!0),W.done(function(){ft||rt([s]),ke.remove(s,"fxshow");for(g in fe)d.style(s,g,fe[g])})),j=xo(ft?Je[g]:0,g,W),g in Je||(Je[g]=j.start,ft&&(j.end=j.start,j.start=0))}}function kt(s,f){var h,g,A,E,k;for(h in s)if(g=Gt(h),A=f[g],E=s[h],Array.isArray(E)&&(A=E[1],E=s[h]=E[0]),h!==g&&(s[g]=E,delete s[h]),k=d.cssHooks[g],k&&"expand"in k){E=k.expand(E),delete s[g];for(h in E)h in s||(s[h]=E[h],f[h]=A)}else f[g]=A}function ut(s,f,h){var g,A,E=0,k=ut.prefilters.length,N=d.Deferred().always(function(){delete j.elem}),j=function(){if(A)return!1;for(var ie=fn||So(),W=Math.max(0,M.startTime+M.duration-ie),fe=W/M.duration||0,Ue=1-fe,ft=0,Je=M.tweens.length;ft<Je;ft++)M.tweens[ft].run(Ue);return N.notifyWith(s,[M,Ue,W]),Ue<1&&Je?W:(Je||N.notifyWith(s,[M,1,0]),N.resolveWith(s,[M]),!1)},M=N.promise({elem:s,props:d.extend({},f),opts:d.extend(!0,{specialEasing:{},easing:d.easing._default},h),originalProperties:f,originalOptions:h,startTime:fn||So(),duration:h.duration,tweens:[],createTween:function(ie,W){var fe=d.Tween(s,M.opts,ie,W,M.opts.specialEasing[ie]||M.opts.easing);return M.tweens.push(fe),fe},stop:function(ie){var W=0,fe=ie?M.tweens.length:0;if(A)return this;for(A=!0;W<fe;W++)M.tweens[W].run(1);return ie?(N.notifyWith(s,[M,1,0]),N.resolveWith(s,[M,ie])):N.rejectWith(s,[M,ie]),this}}),X=M.props;for(kt(X,M.opts.specialEasing);E<k;E++)if(g=ut.prefilters[E].call(M,s,X,M.opts),g)return _(g.stop)&&(d._queueHooks(M.elem,M.opts.queue).stop=g.stop.bind(g)),g;return d.map(X,xo,M),_(M.opts.start)&&M.opts.start.call(s,M),M.progress(M.opts.progress).done(M.opts.done,M.opts.complete).fail(M.opts.fail).always(M.opts.always),d.fx.timer(d.extend(j,{elem:s,anim:M,queue:M.opts.queue})),M}d.Animation=d.extend(ut,{tweeners:{"*":[function(s,f){var h=this.createTween(s,f);return fr(h.elem,s,Fn.exec(f),h),h}]},tweener:function(s,f){_(s)?(f=s,s=["*"]):s=s.match(ge);for(var h,g=0,A=s.length;g<A;g++)h=s[g],ut.tweeners[h]=ut.tweeners[h]||[],ut.tweeners[h].unshift(f)},prefilters:[Sc],prefilter:function(s,f){f?ut.prefilters.unshift(s):ut.prefilters.push(s)}}),d.speed=function(s,f,h){var g=s&&typeof s=="object"?d.extend({},s):{complete:h||!h&&f||_(s)&&s,duration:s,easing:h&&f||f&&!_(f)&&f};return d.fx.off?g.duration=0:typeof g.duration!="number"&&(g.duration in d.fx.speeds?g.duration=d.fx.speeds[g.duration]:g.duration=d.fx.speeds._default),(g.queue==null||g.queue===!0)&&(g.queue="fx"),g.old=g.complete,g.complete=function(){_(g.old)&&g.old.call(this),g.queue&&d.dequeue(this,g.queue)},g},d.fn.extend({fadeTo:function(s,f,h,g){return this.filter(xn).css("opacity",0).show().end().animate({opacity:f},s,h,g)},animate:function(s,f,h,g){var A=d.isEmptyObject(s),E=d.speed(f,h,g),k=function(){var N=ut(this,d.extend({},s),E);(A||ke.get(this,"finish"))&&N.stop(!0)};return k.finish=k,A||E.queue===!1?this.each(k):this.queue(E.queue,k)},stop:function(s,f,h){var g=function(A){var E=A.stop;delete A.stop,E(h)};return typeof s!="string"&&(h=f,f=s,s=void 0),f&&this.queue(s||"fx",[]),this.each(function(){var A=!0,E=s!=null&&s+"queueHooks",k=d.timers,N=ke.get(this);if(E)N[E]&&N[E].stop&&g(N[E]);else for(E in N)N[E]&&N[E].stop&&pr.test(E)&&g(N[E]);for(E=k.length;E--;)k[E].elem===this&&(s==null||k[E].queue===s)&&(k[E].anim.stop(h),A=!1,k.splice(E,1));(A||!h)&&d.dequeue(this,s)})},finish:function(s){return s!==!1&&(s=s||"fx"),this.each(function(){var f,h=ke.get(this),g=h[s+"queue"],A=h[s+"queueHooks"],E=d.timers,k=g?g.length:0;for(h.finish=!0,d.queue(this,s,[]),A&&A.stop&&A.stop.call(this,!0),f=E.length;f--;)E[f].elem===this&&E[f].queue===s&&(E[f].anim.stop(!0),E.splice(f,1));for(f=0;f<k;f++)g[f]&&g[f].finish&&g[f].finish.call(this);delete h.finish})}}),d.each(["toggle","show","hide"],function(s,f){var h=d.fn[f];d.fn[f]=function(g,A,E){return g==null||typeof g=="boolean"?h.apply(this,arguments):this.animate(ta(f,!0),g,A,E)}}),d.each({slideDown:ta("show"),slideUp:ta("hide"),slideToggle:ta("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(s,f){d.fn[s]=function(h,g,A){return this.animate(f,h,g,A)}}),d.timers=[],d.fx.tick=function(){var s,f=0,h=d.timers;for(fn=Date.now();f<h.length;f++)s=h[f],!s()&&h[f]===s&&h.splice(f--,1);h.length||d.fx.stop(),fn=void 0},d.fx.timer=function(s){d.timers.push(s),d.fx.start()},d.fx.interval=13,d.fx.start=function(){nn||(nn=!0,ci())},d.fx.stop=function(){nn=null},d.fx.speeds={slow:600,fast:200,_default:400},d.fn.delay=function(s,f){return s=d.fx&&d.fx.speeds[s]||s,f=f||"fx",this.queue(f,function(h,g){var A=n.setTimeout(h,s);g.stop=function(){n.clearTimeout(A)}})},(function(){var s=w.createElement("input"),f=w.createElement("select"),h=f.appendChild(w.createElement("option"));s.type="checkbox",D.checkOn=s.value!=="",D.optSelected=h.selected,s=w.createElement("input"),s.value="t",s.type="radio",D.radioValue=s.value==="t"})();var wt,Wt=d.expr.attrHandle;d.fn.extend({attr:function(s,f){return Xt(this,d.attr,s,f,arguments.length>1)},removeAttr:function(s){return this.each(function(){d.removeAttr(this,s)})}}),d.extend({attr:function(s,f,h){var g,A,E=s.nodeType;if(!(E===3||E===8||E===2)){if(typeof s.getAttribute=="undefined")return d.prop(s,f,h);if((E!==1||!d.isXMLDoc(s))&&(A=d.attrHooks[f.toLowerCase()]||(d.expr.match.bool.test(f)?wt:void 0)),h!==void 0){if(h===null){d.removeAttr(s,f);return}return A&&"set"in A&&(g=A.set(s,h,f))!==void 0?g:(s.setAttribute(f,h+""),h)}return A&&"get"in A&&(g=A.get(s,f))!==null?g:(g=d.find.attr(s,f),g==null?void 0:g)}},attrHooks:{type:{set:function(s,f){if(!D.radioValue&&f==="radio"&&R(s,"input")){var h=s.value;return s.setAttribute("type",f),h&&(s.value=h),f}}}},removeAttr:function(s,f){var h,g=0,A=f&&f.match(ge);if(A&&s.nodeType===1)for(;h=A[g++];)s.removeAttribute(h)}}),wt={set:function(s,f,h){return f===!1?d.removeAttr(s,h):s.setAttribute(h,h),h}},d.each(d.expr.match.bool.source.match(/\w+/g),function(s,f){var h=Wt[f]||d.find.attr;Wt[f]=function(g,A,E){var k,N,j=A.toLowerCase();return E||(N=Wt[j],Wt[j]=k,k=h(g,A,E)!=null?j:null,Wt[j]=N),k}});var Et=/^(?:input|select|textarea|button)$/i,at=/^(?:a|area)$/i;d.fn.extend({prop:function(s,f){return Xt(this,d.prop,s,f,arguments.length>1)},removeProp:function(s){return this.each(function(){delete this[d.propFix[s]||s]})}}),d.extend({prop:function(s,f,h){var g,A,E=s.nodeType;if(!(E===3||E===8||E===2))return(E!==1||!d.isXMLDoc(s))&&(f=d.propFix[f]||f,A=d.propHooks[f]),h!==void 0?A&&"set"in A&&(g=A.set(s,h,f))!==void 0?g:s[f]=h:A&&"get"in A&&(g=A.get(s,f))!==null?g:s[f]},propHooks:{tabIndex:{get:function(s){var f=d.find.attr(s,"tabindex");return f?parseInt(f,10):Et.test(s.nodeName)||at.test(s.nodeName)&&s.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),D.optSelected||(d.propHooks.selected={get:function(s){var f=s.parentNode;return f&&f.parentNode&&f.parentNode.selectedIndex,null},set:function(s){var f=s.parentNode;f&&(f.selectedIndex,f.parentNode&&f.parentNode.selectedIndex)}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){d.propFix[this.toLowerCase()]=this});function Tn(s){var f=s.match(ge)||[];return f.join(" ")}function Rn(s){return s.getAttribute&&s.getAttribute("class")||""}function tu(s){return Array.isArray(s)?s:typeof s=="string"?s.match(ge)||[]:[]}d.fn.extend({addClass:function(s){var f,h,g,A,E,k;return _(s)?this.each(function(N){d(this).addClass(s.call(this,N,Rn(this)))}):(f=tu(s),f.length?this.each(function(){if(g=Rn(this),h=this.nodeType===1&&" "+Tn(g)+" ",h){for(E=0;E<f.length;E++)A=f[E],h.indexOf(" "+A+" ")<0&&(h+=A+" ");k=Tn(h),g!==k&&this.setAttribute("class",k)}}):this)},removeClass:function(s){var f,h,g,A,E,k;return _(s)?this.each(function(N){d(this).removeClass(s.call(this,N,Rn(this)))}):arguments.length?(f=tu(s),f.length?this.each(function(){if(g=Rn(this),h=this.nodeType===1&&" "+Tn(g)+" ",h){for(E=0;E<f.length;E++)for(A=f[E];h.indexOf(" "+A+" ")>-1;)h=h.replace(" "+A+" "," ");k=Tn(h),g!==k&&this.setAttribute("class",k)}}):this):this.attr("class","")},toggleClass:function(s,f){var h,g,A,E,k=typeof s,N=k==="string"||Array.isArray(s);return _(s)?this.each(function(j){d(this).toggleClass(s.call(this,j,Rn(this),f),f)}):typeof f=="boolean"&&N?f?this.addClass(s):this.removeClass(s):(h=tu(s),this.each(function(){if(N)for(E=d(this),A=0;A<h.length;A++)g=h[A],E.hasClass(g)?E.removeClass(g):E.addClass(g);else(s===void 0||k==="boolean")&&(g=Rn(this),g&&ke.set(this,"__className__",g),this.setAttribute&&this.setAttribute("class",g||s===!1?"":ke.get(this,"__className__")||""))}))},hasClass:function(s){var f,h,g=0;for(f=" "+s+" ";h=this[g++];)if(h.nodeType===1&&(" "+Tn(Rn(h))+" ").indexOf(f)>-1)return!0;return!1}});var li=/\r/g;d.fn.extend({val:function(s){var f,h,g,A=this[0];return arguments.length?(g=_(s),this.each(function(E){var k;this.nodeType===1&&(g?k=s.call(this,E,d(this).val()):k=s,k==null?k="":typeof k=="number"?k+="":Array.isArray(k)&&(k=d.map(k,function(N){return N==null?"":N+""})),f=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],(!f||!("set"in f)||f.set(this,k,"value")===void 0)&&(this.value=k))})):A?(f=d.valHooks[A.type]||d.valHooks[A.nodeName.toLowerCase()],f&&"get"in f&&(h=f.get(A,"value"))!==void 0?h:(h=A.value,typeof h=="string"?h.replace(li,""):h==null?"":h)):void 0}}),d.extend({valHooks:{option:{get:function(s){var f=d.find.attr(s,"value");return f!=null?f:Tn(d.text(s))}},select:{get:function(s){var f,h,g,A=s.options,E=s.selectedIndex,k=s.type==="select-one",N=k?null:[],j=k?E+1:A.length;for(E<0?g=j:g=k?E:0;g<j;g++)if(h=A[g],(h.selected||g===E)&&!h.disabled&&(!h.parentNode.disabled||!R(h.parentNode,"optgroup"))){if(f=d(h).val(),k)return f;N.push(f)}return N},set:function(s,f){for(var h,g,A=s.options,E=d.makeArray(f),k=A.length;k--;)g=A[k],(g.selected=d.inArray(d.valHooks.option.get(g),E)>-1)&&(h=!0);return h||(s.selectedIndex=-1),E}}}}),d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(s,f){if(Array.isArray(f))return s.checked=d.inArray(d(s).val(),f)>-1}},D.checkOn||(d.valHooks[this].get=function(s){return s.getAttribute("value")===null?"on":s.value})});var Xn=n.location,hr={guid:Date.now()},vr=/\?/;d.parseXML=function(s){var f,h;if(!s||typeof s!="string")return null;try{f=new n.DOMParser().parseFromString(s,"text/xml")}catch(g){}return h=f&&f.getElementsByTagName("parsererror")[0],(!f||h)&&d.error("Invalid XML: "+(h?d.map(h.childNodes,function(g){return g.textContent}).join(`
|
|
4
|
+
`):s)),f};var Eh=/^(?:focusinfocus|focusoutblur)$/,Fh=function(s){s.stopPropagation()};d.extend(d.event,{trigger:function(s,f,h,g){var A,E,k,N,j,M,X,ie,W=[h||w],fe=v.call(s,"type")?s.type:s,Ue=v.call(s,"namespace")?s.namespace.split("."):[];if(E=ie=k=h=h||w,!(h.nodeType===3||h.nodeType===8)&&!Eh.test(fe+d.event.triggered)&&(fe.indexOf(".")>-1&&(Ue=fe.split("."),fe=Ue.shift(),Ue.sort()),j=fe.indexOf(":")<0&&"on"+fe,s=s[d.expando]?s:new d.Event(fe,typeof s=="object"&&s),s.isTrigger=g?2:3,s.namespace=Ue.join("."),s.rnamespace=s.namespace?new RegExp("(^|\\.)"+Ue.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,s.result=void 0,s.target||(s.target=h),f=f==null?[s]:d.makeArray(f,[s]),X=d.event.special[fe]||{},!(!g&&X.trigger&&X.trigger.apply(h,f)===!1))){if(!g&&!X.noBubble&&!O(h)){for(N=X.delegateType||fe,Eh.test(N+fe)||(E=E.parentNode);E;E=E.parentNode)W.push(E),k=E;k===(h.ownerDocument||w)&&W.push(k.defaultView||k.parentWindow||n)}for(A=0;(E=W[A++])&&!s.isPropagationStopped();)ie=E,s.type=A>1?N:X.bindType||fe,M=(ke.get(E,"events")||Object.create(null))[s.type]&&ke.get(E,"handle"),M&&M.apply(E,f),M=j&&E[j],M&&M.apply&&Jt(E)&&(s.result=M.apply(E,f),s.result===!1&&s.preventDefault());return s.type=fe,!g&&!s.isDefaultPrevented()&&(!X._default||X._default.apply(W.pop(),f)===!1)&&Jt(h)&&j&&_(h[fe])&&!O(h)&&(k=h[j],k&&(h[j]=null),d.event.triggered=fe,s.isPropagationStopped()&&ie.addEventListener(fe,Fh),h[fe](),s.isPropagationStopped()&&ie.removeEventListener(fe,Fh),d.event.triggered=void 0,k&&(h[j]=k)),s.result}},simulate:function(s,f,h){var g=d.extend(new d.Event,h,{type:s,isSimulated:!0});d.event.trigger(g,null,f)}}),d.fn.extend({trigger:function(s,f){return this.each(function(){d.event.trigger(s,f,this)})},triggerHandler:function(s,f){var h=this[0];if(h)return d.event.trigger(s,f,h,!0)}});var gA=/\[\]$/,_h=/\r?\n/g,yA=/^(?:submit|button|image|reset|file)$/i,DA=/^(?:input|select|textarea|keygen)/i;function xc(s,f,h,g){var A;if(Array.isArray(f))d.each(f,function(E,k){h||gA.test(s)?g(s,k):xc(s+"["+(typeof k=="object"&&k!=null?E:"")+"]",k,h,g)});else if(!h&&T(f)==="object")for(A in f)xc(s+"["+A+"]",f[A],h,g);else g(s,f)}d.param=function(s,f){var h,g=[],A=function(E,k){var N=_(k)?k():k;g[g.length]=encodeURIComponent(E)+"="+encodeURIComponent(N==null?"":N)};if(s==null)return"";if(Array.isArray(s)||s.jquery&&!d.isPlainObject(s))d.each(s,function(){A(this.name,this.value)});else for(h in s)xc(h,s[h],f,A);return g.join("&")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var s=d.prop(this,"elements");return s?d.makeArray(s):this}).filter(function(){var s=this.type;return this.name&&!d(this).is(":disabled")&&DA.test(this.nodeName)&&!yA.test(s)&&(this.checked||!gn.test(s))}).map(function(s,f){var h=d(this).val();return h==null?null:Array.isArray(h)?d.map(h,function(g){return{name:f.name,value:g.replace(_h,`\r
|
|
5
|
+
`)}}):{name:f.name,value:h.replace(_h,`\r
|
|
6
|
+
`)}}).get()}});var bA=/%20/g,AA=/#.*$/,EA=/([?&])_=[^&]*/,FA=/^(.*?):[ \t]*([^\r\n]*)$/mg,_A=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,CA=/^(?:GET|HEAD)$/,kA=/^\/\//,Ch={},Tc={},kh="*/".concat("*"),Oc=w.createElement("a");Oc.href=Xn.href;function wh(s){return function(f,h){typeof f!="string"&&(h=f,f="*");var g,A=0,E=f.toLowerCase().match(ge)||[];if(_(h))for(;g=E[A++];)g[0]==="+"?(g=g.slice(1)||"*",(s[g]=s[g]||[]).unshift(h)):(s[g]=s[g]||[]).push(h)}}function Sh(s,f,h,g){var A={},E=s===Tc;function k(N){var j;return A[N]=!0,d.each(s[N]||[],function(M,X){var ie=X(f,h,g);if(typeof ie=="string"&&!E&&!A[ie])return f.dataTypes.unshift(ie),k(ie),!1;if(E)return!(j=ie)}),j}return k(f.dataTypes[0])||!A["*"]&&k("*")}function Ic(s,f){var h,g,A=d.ajaxSettings.flatOptions||{};for(h in f)f[h]!==void 0&&((A[h]?s:g||(g={}))[h]=f[h]);return g&&d.extend(!0,s,g),s}function wA(s,f,h){for(var g,A,E,k,N=s.contents,j=s.dataTypes;j[0]==="*";)j.shift(),g===void 0&&(g=s.mimeType||f.getResponseHeader("Content-Type"));if(g){for(A in N)if(N[A]&&N[A].test(g)){j.unshift(A);break}}if(j[0]in h)E=j[0];else{for(A in h){if(!j[0]||s.converters[A+" "+j[0]]){E=A;break}k||(k=A)}E=E||k}if(E)return E!==j[0]&&j.unshift(E),h[E]}function SA(s,f,h,g){var A,E,k,N,j,M={},X=s.dataTypes.slice();if(X[1])for(k in s.converters)M[k.toLowerCase()]=s.converters[k];for(E=X.shift();E;)if(s.responseFields[E]&&(h[s.responseFields[E]]=f),!j&&g&&s.dataFilter&&(f=s.dataFilter(f,s.dataType)),j=E,E=X.shift(),E){if(E==="*")E=j;else if(j!=="*"&&j!==E){if(k=M[j+" "+E]||M["* "+E],!k){for(A in M)if(N=A.split(" "),N[1]===E&&(k=M[j+" "+N[0]]||M["* "+N[0]],k)){k===!0?k=M[A]:M[A]!==!0&&(E=N[0],X.unshift(N[1]));break}}if(k!==!0)if(k&&s.throws)f=k(f);else try{f=k(f)}catch(ie){return{state:"parsererror",error:k?ie:"No conversion from "+j+" to "+E}}}}return{state:"success",data:f}}d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Xn.href,type:"GET",isLocal:_A.test(Xn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kh,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(s,f){return f?Ic(Ic(s,d.ajaxSettings),f):Ic(d.ajaxSettings,s)},ajaxPrefilter:wh(Ch),ajaxTransport:wh(Tc),ajax:function(s,f){typeof s=="object"&&(f=s,s=void 0),f=f||{};var h,g,A,E,k,N,j,M,X,ie,W=d.ajaxSetup({},f),fe=W.context||W,Ue=W.context&&(fe.nodeType||fe.jquery)?d(fe):d.event,ft=d.Deferred(),Je=d.Callbacks("once memory"),cn=W.statusCode||{},rn={},mr={},gr="canceled",ct={readyState:0,getResponseHeader:function(ht){var Vt;if(j){if(!E)for(E={};Vt=FA.exec(A);)E[Vt[1].toLowerCase()+" "]=(E[Vt[1].toLowerCase()+" "]||[]).concat(Vt[2]);Vt=E[ht.toLowerCase()+" "]}return Vt==null?null:Vt.join(", ")},getAllResponseHeaders:function(){return j?A:null},setRequestHeader:function(ht,Vt){return j==null&&(ht=mr[ht.toLowerCase()]=mr[ht.toLowerCase()]||ht,rn[ht]=Vt),this},overrideMimeType:function(ht){return j==null&&(W.mimeType=ht),this},statusCode:function(ht){var Vt;if(ht)if(j)ct.always(ht[ct.status]);else for(Vt in ht)cn[Vt]=[cn[Vt],ht[Vt]];return this},abort:function(ht){var Vt=ht||gr;return h&&h.abort(Vt),Cu(0,Vt),this}};if(ft.promise(ct),W.url=((s||W.url||Xn.href)+"").replace(kA,Xn.protocol+"//"),W.type=f.method||f.type||W.method||W.type,W.dataTypes=(W.dataType||"*").toLowerCase().match(ge)||[""],W.crossDomain==null){N=w.createElement("a");try{N.href=W.url,N.href=N.href,W.crossDomain=Oc.protocol+"//"+Oc.host!=N.protocol+"//"+N.host}catch(ht){W.crossDomain=!0}}if(W.data&&W.processData&&typeof W.data!="string"&&(W.data=d.param(W.data,W.traditional)),Sh(Ch,W,f,ct),j)return ct;M=d.event&&W.global,M&&d.active++===0&&d.event.trigger("ajaxStart"),W.type=W.type.toUpperCase(),W.hasContent=!CA.test(W.type),g=W.url.replace(AA,""),W.hasContent?W.data&&W.processData&&(W.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(W.data=W.data.replace(bA,"+")):(ie=W.url.slice(g.length),W.data&&(W.processData||typeof W.data=="string")&&(g+=(vr.test(g)?"&":"?")+W.data,delete W.data),W.cache===!1&&(g=g.replace(EA,"$1"),ie=(vr.test(g)?"&":"?")+"_="+hr.guid+++ie),W.url=g+ie),W.ifModified&&(d.lastModified[g]&&ct.setRequestHeader("If-Modified-Since",d.lastModified[g]),d.etag[g]&&ct.setRequestHeader("If-None-Match",d.etag[g])),(W.data&&W.hasContent&&W.contentType!==!1||f.contentType)&&ct.setRequestHeader("Content-Type",W.contentType),ct.setRequestHeader("Accept",W.dataTypes[0]&&W.accepts[W.dataTypes[0]]?W.accepts[W.dataTypes[0]]+(W.dataTypes[0]!=="*"?", "+kh+"; q=0.01":""):W.accepts["*"]);for(X in W.headers)ct.setRequestHeader(X,W.headers[X]);if(W.beforeSend&&(W.beforeSend.call(fe,ct,W)===!1||j))return ct.abort();if(gr="abort",Je.add(W.complete),ct.done(W.success),ct.fail(W.error),h=Sh(Tc,W,f,ct),!h)Cu(-1,"No Transport");else{if(ct.readyState=1,M&&Ue.trigger("ajaxSend",[ct,W]),j)return ct;W.async&&W.timeout>0&&(k=n.setTimeout(function(){ct.abort("timeout")},W.timeout));try{j=!1,h.send(rn,Cu)}catch(ht){if(j)throw ht;Cu(-1,ht)}}function Cu(ht,Vt,di,Pc){var yr,pi,Dr,nu,ru,zn=Vt;j||(j=!0,k&&n.clearTimeout(k),h=void 0,A=Pc||"",ct.readyState=ht>0?4:0,yr=ht>=200&&ht<300||ht===304,di&&(nu=wA(W,ct,di)),!yr&&d.inArray("script",W.dataTypes)>-1&&d.inArray("json",W.dataTypes)<0&&(W.converters["text script"]=function(){}),nu=SA(W,nu,ct,yr),yr?(W.ifModified&&(ru=ct.getResponseHeader("Last-Modified"),ru&&(d.lastModified[g]=ru),ru=ct.getResponseHeader("etag"),ru&&(d.etag[g]=ru)),ht===204||W.type==="HEAD"?zn="nocontent":ht===304?zn="notmodified":(zn=nu.state,pi=nu.data,Dr=nu.error,yr=!Dr)):(Dr=zn,(ht||!zn)&&(zn="error",ht<0&&(ht=0))),ct.status=ht,ct.statusText=(Vt||zn)+"",yr?ft.resolveWith(fe,[pi,zn,ct]):ft.rejectWith(fe,[ct,zn,Dr]),ct.statusCode(cn),cn=void 0,M&&Ue.trigger(yr?"ajaxSuccess":"ajaxError",[ct,W,yr?pi:Dr]),Je.fireWith(fe,[ct,zn]),M&&(Ue.trigger("ajaxComplete",[ct,W]),--d.active||d.event.trigger("ajaxStop")))}return ct},getJSON:function(s,f,h){return d.get(s,f,h,"json")},getScript:function(s,f){return d.get(s,void 0,f,"script")}}),d.each(["get","post"],function(s,f){d[f]=function(h,g,A,E){return _(g)&&(E=E||A,A=g,g=void 0),d.ajax(d.extend({url:h,type:f,dataType:E,data:g,success:A},d.isPlainObject(h)&&h))}}),d.ajaxPrefilter(function(s){var f;for(f in s.headers)f.toLowerCase()==="content-type"&&(s.contentType=s.headers[f]||"")}),d._evalUrl=function(s,f,h){return d.ajax({url:s,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(g){d.globalEval(g,f,h)}})},d.fn.extend({wrapAll:function(s){var f;return this[0]&&(_(s)&&(s=s.call(this[0])),f=d(s,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&f.insertBefore(this[0]),f.map(function(){for(var h=this;h.firstElementChild;)h=h.firstElementChild;return h}).append(this)),this},wrapInner:function(s){return _(s)?this.each(function(f){d(this).wrapInner(s.call(this,f))}):this.each(function(){var f=d(this),h=f.contents();h.length?h.wrapAll(s):f.append(s)})},wrap:function(s){var f=_(s);return this.each(function(h){d(this).wrapAll(f?s.call(this,h):s)})},unwrap:function(s){return this.parent(s).not("body").each(function(){d(this).replaceWith(this.childNodes)}),this}}),d.expr.pseudos.hidden=function(s){return!d.expr.pseudos.visible(s)},d.expr.pseudos.visible=function(s){return!!(s.offsetWidth||s.offsetHeight||s.getClientRects().length)},d.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(s){}};var xA={0:200,1223:204},fi=d.ajaxSettings.xhr();D.cors=!!fi&&"withCredentials"in fi,D.ajax=fi=!!fi,d.ajaxTransport(function(s){var f,h;if(D.cors||fi&&!s.crossDomain)return{send:function(g,A){var E,k=s.xhr();if(k.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(E in s.xhrFields)k[E]=s.xhrFields[E];s.mimeType&&k.overrideMimeType&&k.overrideMimeType(s.mimeType),!s.crossDomain&&!g["X-Requested-With"]&&(g["X-Requested-With"]="XMLHttpRequest");for(E in g)k.setRequestHeader(E,g[E]);f=function(N){return function(){f&&(f=h=k.onload=k.onerror=k.onabort=k.ontimeout=k.onreadystatechange=null,N==="abort"?k.abort():N==="error"?typeof k.status!="number"?A(0,"error"):A(k.status,k.statusText):A(xA[k.status]||k.status,k.statusText,(k.responseType||"text")!=="text"||typeof k.responseText!="string"?{binary:k.response}:{text:k.responseText},k.getAllResponseHeaders()))}},k.onload=f(),h=k.onerror=k.ontimeout=f("error"),k.onabort!==void 0?k.onabort=h:k.onreadystatechange=function(){k.readyState===4&&n.setTimeout(function(){f&&h()})},f=f("abort");try{k.send(s.hasContent&&s.data||null)}catch(N){if(f)throw N}},abort:function(){f&&f()}}}),d.ajaxPrefilter(function(s){s.crossDomain&&(s.contents.script=!1)}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(s){return d.globalEval(s),s}}}),d.ajaxPrefilter("script",function(s){s.cache===void 0&&(s.cache=!1),s.crossDomain&&(s.type="GET")}),d.ajaxTransport("script",function(s){if(s.crossDomain||s.scriptAttrs){var f,h;return{send:function(g,A){f=d("<script>").attr(s.scriptAttrs||{}).prop({charset:s.scriptCharset,src:s.url}).on("load error",h=function(E){f.remove(),h=null,E&&A(E.type==="error"?404:200,E.type)}),w.head.appendChild(f[0])},abort:function(){h&&h()}}}});var xh=[],Bc=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var s=xh.pop()||d.expando+"_"+hr.guid++;return this[s]=!0,s}}),d.ajaxPrefilter("json jsonp",function(s,f,h){var g,A,E,k=s.jsonp!==!1&&(Bc.test(s.url)?"url":typeof s.data=="string"&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Bc.test(s.data)&&"data");if(k||s.dataTypes[0]==="jsonp")return g=s.jsonpCallback=_(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,k?s[k]=s[k].replace(Bc,"$1"+g):s.jsonp!==!1&&(s.url+=(vr.test(s.url)?"&":"?")+s.jsonp+"="+g),s.converters["script json"]=function(){return E||d.error(g+" was not called"),E[0]},s.dataTypes[0]="json",A=n[g],n[g]=function(){E=arguments},h.always(function(){A===void 0?d(n).removeProp(g):n[g]=A,s[g]&&(s.jsonpCallback=f.jsonpCallback,xh.push(g)),E&&_(A)&&A(E[0]),E=A=void 0}),"script"}),D.createHTMLDocument=(function(){var s=w.implementation.createHTMLDocument("").body;return s.innerHTML="<form></form><form></form>",s.childNodes.length===2})(),d.parseHTML=function(s,f,h){if(typeof s!="string")return[];typeof f=="boolean"&&(h=f,f=!1);var g,A,E;return f||(D.createHTMLDocument?(f=w.implementation.createHTMLDocument(""),g=f.createElement("base"),g.href=w.location.href,f.head.appendChild(g)):f=w),A=V.exec(s),E=!h&&[],A?[f.createElement(A[1])]:(A=_o([s],f,E),E&&E.length&&d(E).remove(),d.merge([],A.childNodes))},d.fn.load=function(s,f,h){var g,A,E,k=this,N=s.indexOf(" ");return N>-1&&(g=Tn(s.slice(N)),s=s.slice(0,N)),_(f)?(h=f,f=void 0):f&&typeof f=="object"&&(A="POST"),k.length>0&&d.ajax({url:s,type:A||"GET",dataType:"html",data:f}).done(function(j){E=arguments,k.html(g?d("<div>").append(d.parseHTML(j)).find(g):j)}).always(h&&function(j,M){k.each(function(){h.apply(this,E||[j.responseText,M,j])})}),this},d.expr.pseudos.animated=function(s){return d.grep(d.timers,function(f){return s===f.elem}).length},d.offset={setOffset:function(s,f,h){var g,A,E,k,N,j,M,X=d.css(s,"position"),ie=d(s),W={};X==="static"&&(s.style.position="relative"),N=ie.offset(),E=d.css(s,"top"),j=d.css(s,"left"),M=(X==="absolute"||X==="fixed")&&(E+j).indexOf("auto")>-1,M?(g=ie.position(),k=g.top,A=g.left):(k=parseFloat(E)||0,A=parseFloat(j)||0),_(f)&&(f=f.call(s,h,d.extend({},N))),f.top!=null&&(W.top=f.top-N.top+k),f.left!=null&&(W.left=f.left-N.left+A),"using"in f?f.using.call(s,W):ie.css(W)}},d.fn.extend({offset:function(s){if(arguments.length)return s===void 0?this:this.each(function(A){d.offset.setOffset(this,s,A)});var f,h,g=this[0];if(g)return g.getClientRects().length?(f=g.getBoundingClientRect(),h=g.ownerDocument.defaultView,{top:f.top+h.pageYOffset,left:f.left+h.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var s,f,h,g=this[0],A={top:0,left:0};if(d.css(g,"position")==="fixed")f=g.getBoundingClientRect();else{for(f=this.offset(),h=g.ownerDocument,s=g.offsetParent||h.documentElement;s&&(s===h.body||s===h.documentElement)&&d.css(s,"position")==="static";)s=s.parentNode;s&&s!==g&&s.nodeType===1&&(A=d(s).offset(),A.top+=d.css(s,"borderTopWidth",!0),A.left+=d.css(s,"borderLeftWidth",!0))}return{top:f.top-A.top-d.css(g,"marginTop",!0),left:f.left-A.left-d.css(g,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var s=this.offsetParent;s&&d.css(s,"position")==="static";)s=s.offsetParent;return s||Jn})}}),d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(s,f){var h=f==="pageYOffset";d.fn[s]=function(g){return Xt(this,function(A,E,k){var N;if(O(A)?N=A:A.nodeType===9&&(N=A.defaultView),k===void 0)return N?N[f]:A[E];N?N.scrollTo(h?N.pageXOffset:k,h?k:N.pageYOffset):A[E]=k},s,g,arguments.length)}}),d.each(["top","left"],function(s,f){d.cssHooks[f]=Ie(D.pixelPosition,function(h,g){if(g)return g=le(h,f),ea.test(g)?d(h).position()[f]+"px":g})}),d.each({Height:"height",Width:"width"},function(s,f){d.each({padding:"inner"+s,content:f,"":"outer"+s},function(h,g){d.fn[g]=function(A,E){var k=arguments.length&&(h||typeof A!="boolean"),N=h||(A===!0||E===!0?"margin":"border");return Xt(this,function(j,M,X){var ie;return O(j)?g.indexOf("outer")===0?j["inner"+s]:j.document.documentElement["client"+s]:j.nodeType===9?(ie=j.documentElement,Math.max(j.body["scroll"+s],ie["scroll"+s],j.body["offset"+s],ie["offset"+s],ie["client"+s])):X===void 0?d.css(j,M,N):d.style(j,M,X,N)},f,k?A:void 0,k)}})}),d.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(s,f){d.fn[f]=function(h){return this.on(f,h)}}),d.fn.extend({bind:function(s,f,h){return this.on(s,null,f,h)},unbind:function(s,f){return this.off(s,null,f)},delegate:function(s,f,h,g){return this.on(f,s,h,g)},undelegate:function(s,f,h){return arguments.length===1?this.off(s,"**"):this.off(f,s||"**",h)},hover:function(s,f){return this.on("mouseenter",s).on("mouseleave",f||s)}}),d.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(s,f){d.fn[f]=function(h,g){return arguments.length>0?this.on(f,null,h,g):this.trigger(f)}});var TA=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;d.proxy=function(s,f){var h,g,A;if(typeof f=="string"&&(h=s[f],f=s,s=h),!!_(s))return g=i.call(arguments,2),A=function(){return s.apply(f||this,g.concat(i.call(arguments)))},A.guid=s.guid=s.guid||d.guid++,A},d.holdReady=function(s){s?d.readyWait++:d.ready(!0)},d.isArray=Array.isArray,d.parseJSON=JSON.parse,d.nodeName=R,d.isFunction=_,d.isWindow=O,d.camelCase=Gt,d.type=T,d.now=Date.now,d.isNumeric=function(s){var f=d.type(s);return(f==="number"||f==="string")&&!isNaN(s-parseFloat(s))},d.trim=function(s){return s==null?"":(s+"").replace(TA,"$1")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return d});var OA=n.jQuery,IA=n.$;return d.noConflict=function(s){return n.$===d&&(n.$=IA),s&&n.jQuery===d&&(n.jQuery=OA),d},typeof r=="undefined"&&(n.jQuery=n.$=d),d})}}),MA=mi(zh()),ua=e=>e.getBoundingClientRect().height,qc=()=>{let e=window.innerHeight*.01;document.querySelector("html").setAttribute("style",`--vh:${e}px;`);let t=document.querySelector("header"),n=document.querySelector("footer");if(!t||!n)return;let r=window.innerHeight-ua(t)-ua(n);document.querySelector("main").setAttribute("style",`--mh:${r}px;`)};qc(),window.onresize=qc;var gi=()=>{let e=new Date;return e.setTime(e.getTime()+100*365*24*60*60*1e3),`expires=${e.toUTCString()};`},Po=e=>{let t=RegExp(`${e}=.[^;]*`),n=document.cookie.match(t);if(n){let r=n[0].split("=");return decodeURIComponent(r[1])}return!1};(()=>{let e=document.getElementById("topNoticeAlert"),t=window.sessionStorage.getItem("notice"),n=document.getElementById("cookieNoticeAlert"),r="chocolatey_hide_cookies_notice";e&&(t?e.remove():e.classList.remove("d-none"),e.querySelector("button").addEventListener("click",()=>sessionStorage.setItem("notice","true"),!1)),n&&(Po(r)?n.remove():n.classList.remove("d-none"),n.querySelectorAll("button").forEach(u=>{u.addEventListener("click",()=>{~location.hostname.indexOf("chocolatey.org")?document.cookie=`${r}=true; ${gi()}path=/; domain=chocolatey.org;`:document.cookie=`${r}=true; ${gi()}path=/;`},!1)}))})(),(()=>{let e=document.querySelectorAll(".callout"),t=document.querySelectorAll("blockquote"),n=r=>{r.forEach(u=>{let a=u.querySelector(".callout-header");if(u.nodeName==="BLOCKQUOTE"&&u.querySelector("p:first-child")&&u.querySelector("p:first-child").textContent.includes(":choco-")&&(a=u.querySelector("p:first-child")),a){let i="",o="",c=a.textContent;u.classList.contains("callout-success")||c.includes(":choco-success:")?(o="success",i="check",u.classList.add("callout-success")):u.classList.contains("callout-danger")||c.includes(":choco-danger:")?(o="danger",i="xmark",u.classList.add("callout-danger")):u.classList.contains("callout-warning")||c.includes(":choco-warning:")?(o="warning",i="triangle-exclamation",u.classList.add("callout-warning")):u.classList.contains("callout-tip")||c.includes(":choco-tip:")?(o="tip",i="lightbulb",u.classList.add("callout-tip")):(o="info",i="info",u.classList.add("callout-info")),c.includes(":choco-")&&(c=c.replace(/:.+?:/,"").trim());let l=`<div class="callout-header d-flex align-items-center"><span class="flex-shrink-0 text-bg-${o} h-px-30 w-px-30 d-flex align-items-center justify-content-center rounded me-3"><span class="fa-solid fa-${i}"></span></span><p class="lead"><strong>${c}</strong></p></div>`;a.outerHTML=l}})};n(e),n(t)})();var Zh=mi(Lh());(()=>{let e=new Zh.default(".btn-copy"),t=document.querySelectorAll(".user-select-all");e.on("success",n=>{if(n.trigger.classList.contains("copy-to-clipboard-button"))n.trigger.textContent="Copied!",setTimeout(()=>{n.trigger.blur(),setTimeout(()=>{n.trigger.textContent="Copy"},200)},2e3);else{let r=new bootstrap.Button(n.trigger);setTimeout(()=>{r.toggle()},2e3)}n.clearSelection()}),t&&t.forEach(n=>n.addEventListener("click",()=>n.select(),!1))})();var qh=e=>{e.innerHTML=e.innerHTML.trim()};(()=>{let e=document.querySelectorAll("code"),t=document.querySelectorAll("pre");e.forEach(qh),(()=>{let r=window.location.href;if(["en-us/choco/commands/","en-us/create/commands/"].some(a=>r.includes(a))){let a=document.querySelectorAll("h2");for(let i of a){let o=i.textContent.trim();if(o==="Examples"||o==="Usage"){let c=i.nextElementSibling;for(;c&&c.tagName!=="H2";){if(c.tagName==="PRE"&&c.firstElementChild&&c.firstElementChild.tagName==="CODE"){let l=c.firstElementChild,m=l.textContent.split(`
|
|
7
|
+
`).map(v=>v.trim());l.textContent=m.join(`
|
|
8
|
+
`)}c=c.nextElementSibling}}}}})();for(let r of t)!r.classList.contains("highlight-delay")&&!r.classList.contains("d-format-none")&&(r.classList.add("line-numbers","language-none"),Prism.highlightAll())})();var aa=e=>e.replace(/[.]/g,"\\$&"),Hc=e=>{let t=[],n=e;for(;n!=document;)t.push(n.parentNode),n=n.parentNode;return t};(()=>{let e=()=>{if(location.hash){let u=document.querySelector(aa(location.hash));if(u){let a=u,i=Hc(u).filter(o=>o!=document&&o.classList.contains("collapse"));i.length==0&&u.classList.contains("collapse")&&i.push(u),i.reverse().forEach((o,c,l)=>{o=document.getElementById(aa(o.id)),bootstrap.Collapse.getOrCreateInstance(o,{toggle:!1}).show(),o.addEventListener("shown.bs.collapse",m=>{m.stopImmediatePropagation(),c===l.length-1&&a.scrollIntoView()})})}}},t=()=>{if(location.hash){let u=document.querySelector(`[data-bs-toggle="tab"][href="${aa(location.hash)}"]`);if(u){let a=u,i=Hc(u).filter(o=>o!=document&&o.classList.contains("tab-pane"));i.push(u),i.reverse().forEach((o,c,l)=>{o.id.includes("-tab")||(o=document.getElementById(`${aa(o.id)}-tab`)),bootstrap.Tab.getOrCreateInstance(o,{toggle:!1}).show(),o.addEventListener("shown.bs.tab",m=>{m.stopImmediatePropagation(),c===l.length-1&&a.scrollIntoView()})})}}};e(),t(),window.addEventListener("hashchange",e,!1),window.addEventListener("hashchange",t,!1);let n=document.querySelectorAll(".btn-collapse-target");n&&n.forEach(u=>{u.addEventListener("click",()=>{let a=document.querySelector(u.getAttribute("data-collapse-target"));bootstrap.Collapse.getOrCreateInstance(a,{toggle:!1}).show()},!1)});let r=u=>{u.addEventListener("click",a=>{history.pushState(null,null,a.target.hash)})};document.querySelectorAll('[data-bs-toggle="tab"]:not(.d-hash-none)').forEach(u=>r(u)),document.querySelectorAll('[data-bs-toggle="collapse"]:not(.d-hash-none)').forEach(u=>r(u))})(),(()=>{let e=document.querySelector(".collapse-lg");if(e){let t=window.matchMedia("(max-width: 1199px)"),n=bootstrap.Collapse.getOrCreateInstance(e,{toggle:!1});e.querySelectorAll("a").forEach(u=>{u.addEventListener("click",()=>{t.matches&&(u.classList.add("active-scroll"),n.hide())},!1)}),e.addEventListener("hidden.bs.collapse",()=>{let u=e.querySelector(".active-scroll");u&&(document.querySelector(aa(u.getAttribute("href"))).scrollIntoView(),u.classList.remove("active-scroll"))});let r=u=>{u.matches?n.hide():n.show()};r(t),t.addEventListener("change",()=>r(t))}})(),(()=>{let e=document.querySelector(".collapse-y-height"),t=document.getElementById("mainContent"),n=r=>{let u=r.getBoundingClientRect();return{left:u.left+window.scrollX,top:u.top+window.scrollY}};if(e&&t){let r=()=>{if(window.innerWidth>=768)if(n(t).top+ua(t)<window.innerHeight){let a=window.innerHeight-ua(document.querySelector("header"))-ua(document.querySelector("footer"));e.style.height=`${a}px`}else e.style.height="";else e.style.height=""};r(),new ResizeObserver(()=>r()).observe(document.body),window.onresize=r}})(),(()=>{let e=document.querySelector("h2.title-child");e&&(document.querySelectorAll("h2")[0].classList.contains("title-child")||e.classList.remove("d-none"))})();function jo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uc(e,t,n,r,u,a,i){try{var o=e[a](i),c=o.value}catch(l){return void n(l)}o.done?t(c):Promise.resolve(c).then(r,u)}function vt(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var a=e.apply(t,n);function i(c){Uc(a,r,u,i,o,"next",c)}function o(c){Uc(a,r,u,i,o,"throw",c)}i(void 0)})}}function au(e,t,n){return t=ia(t),(function(r,u){if(u&&(typeof u=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wu(r)})(e,No()?Reflect.construct(t,n||[],ia(e).constructor):t.apply(e,n))}function Mn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wc(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,Kc(r.key),r)}}function $n(e,t,n){return t&&Wc(e.prototype,t),n&&Wc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Su(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=zo(e))||t){n&&(e=n);var r=0,u=function(){};return{s:u,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,i=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return i=c.done,c},e:function(c){o=!0,a=c},f:function(){try{i||n.return==null||n.return()}finally{if(o)throw a}}}}function Zn(e,t,n){return(t=Kc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ia(e){return ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ia(e)}function iu(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&&oa(e,t)}function No(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(No=function(){return!!e})()}function Vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vc(Object(n),!0).forEach(function(r){Zn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nr(e,t){if(e==null)return{};var n,r,u=(function(i,o){if(i==null)return{};var c={};for(var l in i)if({}.hasOwnProperty.call(i,l)){if(o.indexOf(l)!==-1)continue;c[l]=i[l]}return c})(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}function Oe(){var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",u=n.toStringTag||"@@toStringTag";function a(y,F,D,_){var O=F&&F.prototype instanceof o?F:o,w=Object.create(O.prototype);return Cn(w,"_invoke",(function(x,S,T){var I,B,d,H=0,R=T||[],Z=!1,q={p:0,n:0,v:e,a:G,f:G.bind(e,4),d:function(L,ne){return I=L,B=0,d=e,q.n=ne,i}};function G(L,ne){for(B=L,d=ne,t=0;!Z&&H&&!Q&&t<R.length;t++){var Q,$=R[t],Y=q.p,re=$[2];L>3?(Q=re===ne)&&(d=$[(B=$[4])?5:(B=3,3)],$[4]=$[5]=e):$[0]<=Y&&((Q=L<2&&Y<$[1])?(B=0,q.v=ne,q.n=$[1]):Y<re&&(Q=L<3||$[0]>ne||ne>re)&&($[4]=L,$[5]=ne,q.n=re,B=0))}if(Q||L>1)return i;throw Z=!0,ne}return function(L,ne,Q){if(H>1)throw TypeError("Generator is already running");for(Z&&ne===1&&G(ne,Q),B=ne,d=Q;(t=B<2?e:d)||!Z;){I||(B?B<3?(B>1&&(q.n=-1),G(B,d)):q.n=d:q.v=d);try{if(H=2,I){if(B||(L="next"),t=I[L]){if(!(t=t.call(I,d)))throw TypeError("iterator result is not an object");if(!t.done)return t;d=t.value,B<2&&(B=0)}else B===1&&(t=I.return)&&t.call(I),B<2&&(d=TypeError("The iterator does not provide a '"+L+"' method"),B=1);I=e}else if((t=(Z=q.n<0)?d:x.call(S,q))!==i)break}catch($){I=e,B=1,d=$}finally{H=1}}return{value:t,done:Z}}})(y,D,_),!0),w}var i={};function o(){}function c(){}function l(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(Cn(t={},r,function(){return this}),t),m=l.prototype=o.prototype=Object.create(p);function v(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,l):(y.__proto__=l,Cn(y,u,"GeneratorFunction")),y.prototype=Object.create(m),y}return c.prototype=l,Cn(m,"constructor",l),Cn(l,"constructor",c),c.displayName="GeneratorFunction",Cn(l,u,"GeneratorFunction"),Cn(m),Cn(m,u,"Generator"),Cn(m,r,function(){return this}),Cn(m,"toString",function(){return"[object Generator]"}),(Oe=function(){return{w:a,m:v}})()}function Cn(e,t,n,r){var u=Object.defineProperty;try{u({},"",{})}catch(a){u=0}Cn=function(a,i,o,c){function l(p,m){Cn(a,p,function(v){return this._invoke(p,m,v)})}i?u?u(a,i,{value:o,enumerable:!c,configurable:!c,writable:!c}):a[i]=o:(l("next",0),l("throw",1),l("return",2))},Cn(e,t,n,r)}function oa(e,t){return oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},oa(e,t)}function Ro(e,t){return(function(n){if(Array.isArray(n))return n})(e)||(function(n,r){var u=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(u!=null){var a,i,o,c,l=[],p=!0,m=!1;try{if(o=(u=u.call(n)).next,r!==0)for(;!(p=(a=o.call(u)).done)&&(l.push(a.value),l.length!==r);p=!0);}catch(v){m=!0,i=v}finally{try{if(!p&&u.return!=null&&(c=u.return(),Object(c)!==c))return}finally{if(m)throw i}}return l}})(e,t)||zo(e,t)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
10
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Qe(e){return(function(t){if(Array.isArray(t))return jo(t)})(e)||(function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||zo(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Kc(e){var t=(function(n,r){if(typeof n!="object"||!n)return n;var u=n[Symbol.toPrimitive];if(u!==void 0){var a=u.call(n,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)})(e,"string");return typeof t=="symbol"?t:t+""}function we(e){return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},we(e)}function zo(e,t){if(e){if(typeof e=="string")return jo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jo(e,t):void 0}}function Lo(e){var t=typeof Map=="function"?new Map:void 0;return Lo=function(n){if(n===null||!(function(u){try{return Function.toString.call(u).indexOf("[native code]")!==-1}catch(a){return typeof u=="function"}})(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return(function(u,a,i){if(No())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,a);var c=new(u.bind.apply(u,o));return i&&oa(c,i.prototype),c})(n,arguments,ia(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),oa(r,n)},Lo(e)}var et,Gc,ou,Jc,yi,Qc,Yc,Mo,$o,Zo,Xc,sa={},el=[],ca=Array.isArray,Di=el.slice,Ar=Object.assign;function qo(e){e&&e.parentNode&&e.remove()}function kn(e,t,n){var r,u,a,i={};for(a in t)a=="key"?r=t[a]:a=="ref"&&typeof e!="function"?u=t[a]:i[a]=t[a];return arguments.length>2&&(i.children=arguments.length>3?Di.call(arguments,2):n),la(e,i,r,u,null)}function la(e,t,n,r,u){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:u==null?++Gc:u,__i:-1,__u:0};return u==null&&et.vnode!=null&&et.vnode(a),a}function Hh(){return{current:null}}function tr(e){return e.children}function Er(e,t){this.props=e,this.context=t,this.__g=0}function xu(e,t){if(t==null)return e.__?xu(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?xu(e):null}function tl(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=n.__e;break}return tl(e)}}function Ho(e){(8&e.__g||!(e.__g|=8)||!ou.push(e)||yi++)&&Jc==et.debounceRendering||((Jc=et.debounceRendering)||queueMicrotask)(Uh)}function Uh(){for(var e,t,n,r,u,a,i,o,c=1;ou.length;)ou.length>c&&ou.sort(Qc),e=ou.shift(),c=ou.length,8&e.__g&&(n=void 0,u=(r=(t=e).__v).__e,a=[],i=[],(o=t.__P)&&((n=Ar({},r)).__v=r.__v+1,et.vnode&&et.vnode(n),Uo(o,n,r,t.__n,o.namespaceURI,32&r.__u?[u]:null,a,u==null?xu(r):u,!!(32&r.__u),i,o.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,il(a,n,i),n.__e!=u&&tl(n)));yi=0}function nl(e,t,n,r,u,a,i,o,c,l,p,m){var v,y,F,D,_,O,w,x=r&&r.__k||el,S=t.length;for(c=(function(T,I,B,d,H){var R,Z,q,G,L,ne=B.length,Q=ne,$=0;for(T.__k=new Array(H),R=0;R<H;R++)(Z=I[R])!=null&&typeof Z!="boolean"&&typeof Z!="function"?(G=R+$,(Z=T.__k[R]=typeof Z=="string"||typeof Z=="number"||typeof Z=="bigint"||Z.constructor==String?la(null,Z,null,null,null):ca(Z)?la(tr,{children:Z},null,null,null):Z.constructor==null&&Z.__b>0?la(Z.type,Z.props,Z.key,Z.ref?Z.ref:null,Z.__v):Z).__=T,Z.__b=T.__b+1,q=null,(L=Z.__i=Wh(Z,B,G,Q))!=-1&&(Q--,(q=B[L])&&(q.__u|=2)),q==null||q.__v==null?(L==-1&&(H>ne?$--:H<ne&&$++),typeof Z.type!="function"&&(Z.__u|=4)):L!=G&&(L==G-1?$--:L==G+1?$++:(L>G?$--:$++,Z.__u|=4))):T.__k[R]=null;if(Q)for(R=0;R<ne;R++)(q=B[R])!=null&&!(2&q.__u)&&(q.__e==d&&(d=xu(q)),sl(q,q));return d})(n,t,x,c,S),v=0;v<S;v++)(F=n.__k[v])!=null&&(y=F.__i==-1?sa:x[F.__i]||sa,F.__i=v,O=Uo(e,F,y,u,a,i,o,c,l,p,m),D=F.__e,F.ref&&y.ref!=F.ref&&(y.ref&&Vo(y.ref,null,F),p.push(F.ref,F.__c||D,F)),_==null&&D!=null&&(_=D),(w=!!(4&F.__u))||y.__k===F.__k?c=rl(F,c,e,w):typeof F.type=="function"&&O!==void 0?c=O:D&&(c=D.nextSibling),F.__u&=-7);return n.__e=_,c}function rl(e,t,n,r){var u,a;if(typeof e.type=="function"){for(u=e.__k,a=0;u&&a<u.length;a++)u[a]&&(u[a].__=e,t=rl(u[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=xu(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Rr(e,t){return t=t||[],e==null||typeof e=="boolean"||(ca(e)?e.some(function(n){Rr(n,t)}):t.push(e)),t}function Wh(e,t,n,r){var u,a,i,o=e.key,c=e.type,l=t[n],p=l!=null&&!(2&l.__u);if(l===null&&e.key==null||p&&o==l.key&&c==l.type)return n;if(r>(p?1:0)){for(u=n-1,a=n+1;u>=0||a<t.length;)if((l=t[i=u>=0?u--:a++])!=null&&!(2&l.__u)&&o==l.key&&c==l.type)return i}return-1}function ul(e,t,n){t[0]=="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":n}function bi(e,t,n,r,u){var a;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ul(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||ul(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")a=t!=(t=t.replace(Yc,"$1")),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||(e.__l={}),e.__l[t+a]=n,n?r?n.l=r.l:(n.l=Mo,e.addEventListener(t,a?Zo:$o,a)):e.removeEventListener(t,a?Zo:$o,a);else{if(u=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n==null?"":n;break e}catch(i){}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function al(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=Mo++;else if(t.u<n.l)return;return n(et.event?et.event(t):t)}}}function Uo(e,t,n,r,u,a,i,o,c,l,p){var m,v,y,F,D,_,O,w,x,S,T,I,B,d,H,R,Z,q,G,L,ne,Q=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),n.__c.__z&&(o=t.__e=n.__e=(a=n.__c.__z)[0],n.__c.__z=null)),(m=et.__b)&&m(t);e:if(typeof Q=="function")try{if(w=t.props,x="prototype"in Q&&Q.prototype.render,S=(m=Q.contextType)&&r[m.__c],T=m?S?S.props.value:m.__:r,n.__c?2&(v=t.__c=n.__c).__g&&(v.__g|=1,O=!0):(x?t.__c=v=new Q(w,T):(t.__c=v=new Er(w,T),v.constructor=Q,v.render=Vh),S&&S.sub(v),v.props=w,v.state||(v.state={}),v.context=T,v.__n=r,y=!0,v.__g|=8,v.__h=[],v._sb=[]),x&&v.__s==null&&(v.__s=v.state),x&&Q.getDerivedStateFromProps!=null&&(v.__s==v.state&&(v.__s=Ar({},v.__s)),Ar(v.__s,Q.getDerivedStateFromProps(w,v.__s))),F=v.props,D=v.state,v.__v=t,y)x&&Q.getDerivedStateFromProps==null&&v.componentWillMount!=null&&v.componentWillMount(),x&&v.componentDidMount!=null&&v.__h.push(v.componentDidMount);else{if(x&&Q.getDerivedStateFromProps==null&&w!==F&&v.componentWillReceiveProps!=null&&v.componentWillReceiveProps(w,T),!(4&v.__g)&&v.shouldComponentUpdate!=null&&v.shouldComponentUpdate(w,v.__s,T)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(v.props=w,v.state=v.__s,v.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function($){$&&($.__=t)}),I=0;I<v._sb.length;I++)v.__h.push(v._sb[I]);v._sb=[],v.__h.length&&i.push(v);break e}v.componentWillUpdate!=null&&v.componentWillUpdate(w,v.__s,T),x&&v.componentDidUpdate!=null&&v.__h.push(function(){v.componentDidUpdate(F,D,_)})}if(v.context=T,v.props=w,v.__P=e,v.__g&=-5,B=et.__r,d=0,x){for(v.state=v.__s,v.__g&=-9,B&&B(t),m=v.render(v.props,v.state,v.context),H=0;H<v._sb.length;H++)v.__h.push(v._sb[H]);v._sb=[]}else do v.__g&=-9,B&&B(t),m=v.render(v.props,v.state,v.context),v.state=v.__s;while(8&v.__g&&++d<25);v.state=v.__s,v.getChildContext!=null&&(r=Ar({},r,v.getChildContext())),x&&!y&&v.getSnapshotBeforeUpdate!=null&&(_=v.getSnapshotBeforeUpdate(F,D)),R=m,m!=null&&m.type===tr&&m.key==null&&(R=ol(m.props.children)),o=nl(e,ca(R)?R:[R],t,n,r,u,a,i,o,c,l,p),t.__u&=-161,v.__h.length&&i.push(v),O&&(v.__g&=-4)}catch($){if(t.__v=null,c||a!=null)if($.then){for(Z=0,q=!1,t.__u|=c?160:128,t.__c.__z=[],G=0;G<a.length;G++)(L=a[G])==null||q||(L.nodeType==8&&L.data=="$s"?(Z>0&&t.__c.__z.push(L),Z++,a[G]=null):L.nodeType==8&&L.data=="/$s"?(--Z>0&&t.__c.__z.push(L),q=Z===0,o=a[G],a[G]=null):Z>0&&(t.__c.__z.push(L),a[G]=null));if(!q){for(;o&&o.nodeType==8&&o.nextSibling;)o=o.nextSibling;a[a.indexOf(o)]=null,t.__c.__z=[o]}t.__e=o}else{for(ne=a.length;ne--;)qo(a[ne]);Wo(t)}else t.__e=n.__e,t.__k=n.__k,$.then||Wo(t);et.__e($,t,n)}else o=t.__e=(function($,Y,re,me,se,K,V,ue,oe,ce){var ee,he,Ce,Re,ge,Te,He,nt,Ge=re.props,yt=Y.props,Dt=Y.type;if(Dt=="svg"?se="http://www.w3.org/2000/svg":Dt=="math"?se="http://www.w3.org/1998/Math/MathML":se||(se="http://www.w3.org/1999/xhtml"),K!=null){for(ee=0;ee<K.length;ee++)if((ge=K[ee])&&"setAttribute"in ge==!!Dt&&(Dt?ge.localName==Dt:ge.nodeType==3)){$=ge,K[ee]=null;break}}if($==null){if(Dt==null)return ce.createTextNode(yt);$=ce.createElementNS(se,Dt,yt.is&&yt),ue&&(et.__m&&et.__m(Y,K),ue=!1),K=null}if(Dt==null)Ge===yt||ue&&$.data==yt||($.data=yt);else{if(K=K&&Di.call($.childNodes),Ge=re.props||sa,!ue&&K!=null)for(Ge={},ee=0;ee<$.attributes.length;ee++)Ge[(ge=$.attributes[ee]).name]=ge.value;for(ee in Ge)if(ge=Ge[ee],ee!="children"){if(ee=="dangerouslySetInnerHTML")Ce=ge;else if(!(ee in yt)){if(ee=="value"&&"defaultValue"in yt||ee=="checked"&&"defaultChecked"in yt)continue;bi($,ee,null,ge,se)}}for(ee in nt=1&re.__u,yt)ge=yt[ee],ee=="children"?Re=ge:ee=="dangerouslySetInnerHTML"?he=ge:ee=="value"?Te=ge:ee=="checked"?He=ge:ue&&typeof ge!="function"||Ge[ee]===ge&&!nt||bi($,ee,ge,Ge[ee],se);if(he)ue||Ce&&(he.__html==Ce.__html||he.__html==$.innerHTML)||($.innerHTML=he.__html),Y.__k=[];else if(Ce&&($.innerHTML=""),nl(Dt=="template"?$.content:$,ca(Re)?Re:[Re],Y,re,me,Dt=="foreignObject"?"http://www.w3.org/1999/xhtml":se,K,V,K?K[0]:re.__k&&xu(re,0),ue,oe,ce),K!=null)for(ee=K.length;ee--;)qo(K[ee]);ue||(ee="value",Dt=="progress"&&Te==null?$.removeAttribute("value"):Te==null||Te===$[ee]&&(Dt!=="progress"||Te)||bi($,ee,Te,Ge[ee],se),ee="checked",He!=null&&He!=$[ee]&&bi($,ee,He,Ge[ee],se))}return $})(n.__e,t,n,r,u,a,i,c,l,p);return(m=et.diffed)&&m(t),128&t.__u?void 0:o}function Wo(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(Wo)}function il(e,t,n){for(var r=0;r<n.length;r++)Vo(n[r],n[++r],n[++r]);et.__c&&et.__c(t,e),e.some(function(u){try{e=u.__h,u.__h=[],e.some(function(a){a.call(u)})}catch(a){et.__e(a,u.__v)}})}function ol(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:ca(e)?e.map(ol):Ar({},e)}function Vo(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(u){et.__e(u,n)}}function sl(e,t,n){var r,u;if(et.unmount&&et.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Vo(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){et.__e(a,t)}r.__P=null}if(r=e.__k)for(u=0;u<r.length;u++)r[u]&&sl(r[u],t,n||typeof e.type!="function");n||qo(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function Vh(e,t,n){return this.constructor(e,n)}function fa(e,t){var n,r,u,a;t==document&&(t=document.documentElement),et.__&&et.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=kn(tr,null,[e]),u=[],a=[],Uo(t,e,r||sa,sa,t.namespaceURI,r?null:t.firstChild?Di.call(t.childNodes):null,u,r?r.__e:t.firstChild,n,a,t.ownerDocument),il(u,e,a)}function Kh(e,t,n){var r,u,a,i=Ar({},e.props);for(a in t)a=="key"?r=t[a]:a=="ref"&&typeof e.type!="function"?u=t[a]:i[a]=t[a];return arguments.length>2&&(i.children=arguments.length>3?Di.call(arguments,2):n),la(e.type,i,r||e.key,u||e.ref,null)}et={__e:function(e,t,n,r){for(var u,a,i;t=t.__;)if((u=t.__c)&&!(1&u.__g)){u.__g|=4;try{if((a=u.constructor)&&a.getDerivedStateFromError!=null&&(u.setState(a.getDerivedStateFromError(e)),i=8&u.__g),u.componentDidCatch!=null&&(u.componentDidCatch(e,r||{}),i=8&u.__g),i)return void(u.__g|=2)}catch(o){e=o}}throw yi=0,e}},Gc=0,Er.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ar({},this.state),typeof e=="function"&&(e=e(Ar({},n),this.props)),e&&Ar(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ho(this))},Er.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),Ho(this))},Er.prototype.render=tr,ou=[],yi=0,Qc=function(e,t){return e.__v.__b-t.__v.__b},Yc=/(PointerCapture)$|Capture$/i,Mo=0,$o=al(!1),Zo=al(!0),Xc=0;var zr,xt,Ko,cl,Go=Object.is,Tu=0,ll=[],Rt=et,fl=Rt.__b,dl=Rt.__r,pl=Rt.diffed,hl=Rt.__c,vl=Rt.unmount,ml=Rt.__;function Ou(e,t){Rt.__h&&Rt.__h(xt,e,Tu||t),Tu=0;var n=xt.__H||(xt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function su(e){return Tu=1,Jo(El,e)}function Jo(e,t,n){var r=Ou(zr++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):El(void 0,t),function(o){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,o);Go(c,l)||(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=xt,!xt.__f)){var u=function(o,c,l){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(v){return!!v.__c});if(p.every(function(v){return!v.__N}))return!a||a.call(this,o,c,l);var m=r.__c.props!==o;return p.forEach(function(v){if(v.__N){var y=v.__[0];v.__=v.__N,v.__N=void 0,Go(y,v.__[0])||(m=!0)}}),a&&a.call(this,o,c,l)||m};xt.__f=!0;var a=xt.shouldComponentUpdate,i=xt.componentWillUpdate;xt.componentWillUpdate=function(o,c,l){if(4&this.__g){var p=a;a=void 0,u(o,c,l),a=p}i&&i.call(this,o,c,l)},xt.shouldComponentUpdate=u}return r.__N||r.__}function qn(e,t){var n=Ou(zr++,3);!Rt.__s&&Yo(n.__H,t)&&(n.__=e,n.u=t,xt.__H.__h.push(n))}function da(e,t){var n=Ou(zr++,4);!Rt.__s&&Yo(n.__H,t)&&(n.__=e,n.u=t,xt.__h.push(n))}function Iu(e){return Tu=5,On(function(){return{current:e}},[])}function gl(e,t,n){Tu=6,da(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function On(e,t){var n=Ou(zr++,7);return Yo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function pa(e,t){return Tu=8,On(function(){return e},t)}function yl(e){var t=xt.context[e.__c],n=Ou(zr++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(xt)),t.props.value):e.__}function Dl(e,t){Rt.useDebugValue&&Rt.useDebugValue(t?t(e):e)}function bl(){var e=Ou(zr++,11);if(!e.__){for(var t=xt.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Gh(){for(var e;e=ll.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ai),e.__H.__h.forEach(Qo),e.__H.__h=[]}catch(t){e.__H.__h=[],Rt.__e(t,e.__v)}}Rt.__b=function(e){xt=null,fl&&fl(e)},Rt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ml&&ml(e,t)},Rt.__r=function(e){dl&&dl(e),zr=0;var t=(xt=e.__c).__H;t&&(Ko===xt?(t.__h=[],xt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Ai),t.__h.forEach(Qo),t.__h=[],zr=0)),Ko=xt},Rt.diffed=function(e){pl&&pl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ll.push(t)!==1&&cl===Rt.requestAnimationFrame||((cl=Rt.requestAnimationFrame)||Jh)(Gh)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ko=xt=null},Rt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ai),n.__h=n.__h.filter(function(r){return!r.__||Qo(r)})}catch(r){t.some(function(u){u.__h&&(u.__h=[])}),t=[],Rt.__e(r,n.__v)}}),hl&&hl(e,t)},Rt.unmount=function(e){vl&&vl(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ai(r)}catch(u){t=u}}),n.__H=void 0,t&&Rt.__e(t,n.__v))};var Al=typeof requestAnimationFrame=="function";function Jh(e){var t,n=function(){clearTimeout(r),Al&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Al&&(t=requestAnimationFrame(n))}function Ai(e){var t=xt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),xt=t}function Qo(e){var t=xt;e.__c=e.__(),xt=t}function Yo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return!Go(n,e[r])})}function El(e,t){return typeof t=="function"?t(e):t}function ha(e,t){var n=t(),r=su({t:{__:n,u:t}}),u=r[0].t,a=r[1];return da(function(){u.__=n,u.u=t,Xo(u)&&a({t:u})},[e,n,t]),qn(function(){return Xo(u)&&a({t:u}),e(function(){Xo(u)&&a({t:u})})},[e]),n}function Xo(e){var t=e.u,n=e.__;try{var r=t();return!Object.is(n,r)}catch(u){return!0}}function Fl(e){e()}function _l(e){return e}function Cl(){return[!1,Fl]}var kl=da,es=Object.assign;function ts(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}var Qh=/^(-|f[lo].*[^se]$|g.{5,}[^ps]$|z|o[pr]|(W.{5})?[lL]i.*(t|mp)$|an|(bo|s).{4}Im|sca|m.{6}[ds]|ta|c.*[st]$|wido|ini)/;function ns(e,t){this.props=e,this.context=t}function wl(e,t){function n(u){var a=this.props.ref,i=a==u.ref;return!i&&a&&(a.call?a(null):a.current=null),t?!t(this.props,u)||!i:ts(this.props,u)}function r(u){return this.shouldComponentUpdate=n,kn(e,u)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.type=e,r}(ns.prototype=new Er).isPureReactComponent=!0,ns.prototype.shouldComponentUpdate=function(e,t){return ts(this.props,e)||ts(this.state,t)};var Yh=Symbol.for("react.forward_ref"),Sl=function(e,t,n){return e==null?null:Rr(Rr(e).map(t.bind(n)))},Xh={map:Sl,forEach:Sl,count:function(e){return e?Rr(e).length:0},only:function(e){var t=Rr(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Rr},ev=et.__e;et.__e=function(e,t,n,r){if(e.then){for(var u,a=t;a=a.__;)if((u=a.__c)&&u.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),u.__c(e,t)}ev(e,t,n,r)};var xl=et.unmount;function Tl(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=es({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__g|=4,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Tl(r,t,n)})),e}function Ol(e,t,n){return e&&n&&(typeof e.type=="string"&&(e.__u|=1),e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ol(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__g|=4,e.__c.__P=n)),e}function Ei(){this.__u=0,this.o=null,this.__b=null}function tv(e){return this.getChildContext=function(){return e.context},e.children}function nv(e){var t=this,n=e.i;if(t.componentWillUnmount=function(){fa(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),!t.l){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},ownerDocument:n.ownerDocument,insertBefore:function(u,a){this.childNodes.push(u),t.i.insertBefore(u,a)}}}fa(kn(tv,{context:t.context},e.__v),t.l)}function Il(e,t){var n=kn(nv,{__v:e,i:t});return n.containerInfo=t,n}et.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),xl&&xl(e)},(Ei.prototype=new Er).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var u=!1,a=function(){u||(u=!0,n.__R=null,i())};n.__R=a;var i=function(){if(!--r.__u){if(r.state.__a){var o=r.state.__a;r.__v.__k[0]=Ol(o,o.__c.__P,o.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Ei.prototype.componentWillUnmount=function(){this.o=[]},Ei.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Tl(this.__b,n,r.__O=r.__P)}this.__b=null}return[kn(tr,null,t.__a?null:e.children),t.__a&&kn(tr,null,e.fallback)]};var Bl=Symbol.for("react.element"),rv=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,uv=/[A-Z0-9]/g,av=typeof document!="undefined",iv=function(e){return/fil|che|rad/.test(e)};function Pl(e,t,n){return t.__k==null&&(t.textContent=""),fa(e,t),typeof n=="function"&&n(),e?e.__c:null}Er.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Er.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var jl=et.event;function ov(){}function sv(){return this.cancelBubble}function cv(){return this.defaultPrevented}et.event=function(e){return jl&&(e=jl(e)),e.persist=ov,e.isPropagationStopped=sv,e.isDefaultPrevented=cv,e.nativeEvent=e};var rs,lv={enumerable:!1,configurable:!0,get:function(){return this.class}},Nl=et.vnode;et.vnode=function(e){if(typeof e.type=="string")(function(r){var u=r.props,a=r.type,i={},o=a.indexOf("-")===-1;for(var c in u){var l=u[c];if(!(c==="value"&&"defaultValue"in u&&l==null||av&&c==="children"&&a==="noscript"||c==="class"||c==="className")){if(c==="style"&&typeof l=="object")for(var p in l)typeof l[p]!="number"||Qh.test(p)||(l[p]+="px");else if(c==="defaultValue"&&"value"in u&&u.value==null)c="value";else if(c==="download"&&l===!0)l="";else if(c==="translate"&&l==="no")l=!1;else if(c[0]==="o"&&c[1]==="n"){var m=c.toLowerCase();m==="ondoubleclick"?c="ondblclick":m!=="onchange"||a!=="input"&&a!=="textarea"||iv(u.type)?m==="onfocus"?c="onfocusin":m==="onblur"&&(c="onfocusout"):m=c="oninput",m==="oninput"&&i[c=m]&&(c="oninputCapture")}else o&&rv.test(c)?c=c.replace(uv,"-$&").toLowerCase():l===null&&(l=void 0);i[c]=l}}a=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Rr(u.children).forEach(function(v){v.props.selected=i.value.indexOf(v.props.value)!=-1})),a=="select"&&i.defaultValue!=null&&(i.value=Rr(u.children).forEach(function(v){v.props.selected=i.multiple?i.defaultValue.indexOf(v.props.value)!=-1:i.defaultValue==v.props.value})),u.class&&!u.className?(i.class=u.class,Object.defineProperty(i,"className",lv)):(u.className&&!u.class||u.class&&u.className)&&(i.class=i.className=u.className),r.props=i})(e);else if(typeof e.type=="function"&&("ref"in e.props&&"prototype"in e.type&&e.type.prototype.render&&(e.ref=e.props.ref,delete e.props.ref),e.type.defaultProps)){var t=es({},e.props);for(var n in e.type.defaultProps)t[n]===void 0&&(t[n]=e.type.defaultProps[n]);e.props=t}e.$$typeof=Bl,Nl&&Nl(e)};var Rl=et.__r;et.__r=function(e){Rl&&Rl(e),rs=e.__c};var zl=et.diffed;et.diffed=function(e){zl&&zl(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),rs=null};var fv={ReactCurrentDispatcher:{current:{readContext:function(e){return rs.__n[e.__c].props.value},useCallback:pa,useContext:yl,useDebugValue:Dl,useDeferredValue:_l,useEffect:qn,useId:bl,useImperativeHandle:gl,useInsertionEffect:kl,useLayoutEffect:da,useMemo:On,useReducer:Jo,useRef:Iu,useState:su,useSyncExternalStore:ha,useTransition:Cl}}};function va(e){return!!e&&e.$$typeof===Bl}function Ll(e){return!!e.__k&&(fa(null,e),!0)}var b={useState:su,useId:bl,useReducer:Jo,useEffect:qn,useLayoutEffect:da,useInsertionEffect:kl,useTransition:Cl,useDeferredValue:_l,useSyncExternalStore:ha,startTransition:Fl,useRef:Iu,useImperativeHandle:gl,useMemo:On,useCallback:pa,useContext:yl,useDebugValue:Dl,version:"18.3.1",Children:Xh,render:Pl,hydrate:function(e,t,n){return(function(r,u){r.__u|=32,fa(r,u)})(e,t),typeof n=="function"&&n(),e?e.__c:null},unmountComponentAtNode:Ll,createPortal:Il,createElement:kn,createContext:function(e){function t(n){var r,u;return this.getChildContext||(r=new Set,(u={})[t.__c]=this,this.getChildContext=function(){return u},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(a){this.props.value!=a.value&&r.forEach(function(i){i.__g|=4,Ho(i)})},this.sub=function(a){r.add(a);var i=a.componentWillUnmount;a.componentWillUnmount=function(){r&&r.delete(a),i&&i.call(a)}}),n.children}return t.__c="__cC"+Xc++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t},createFactory:function(e){return kn.bind(null,e)},cloneElement:function(e){return va(e)?Kh.apply(null,arguments):e},createRef:Hh,Fragment:tr,isValidElement:va,isElement:va,isFragment:function(e){return va(e)&&e.type===tr},isMemo:function(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")},findDOMNode:function(e){return e&&(e.__v&&e.__v.__e||e.nodeType===1&&e)||null},Component:Er,PureComponent:ns,memo:wl,forwardRef:function(e){function t(n){var r=es({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Yh,t.render=e,t.prototype.isReactComponent=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:tr,Suspense:Ei,lazy:function(e){var t,n,r;function u(a){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return kn(n,a)}return u.displayName="Lazy",u},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fv};function Ml(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dv(e,t,n){return(t=(function(r){var u=(function(a){if(we(a)!="object"||!a)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(we(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return we(u)=="symbol"?u:u+""})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$l(Object(n),!0).forEach(function(r){dv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ma(e,t){return(function(n){if(Array.isArray(n))return n})(e)||(function(n,r){var u=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(u!=null){var a,i,o,c,l=[],p=!0,m=!1;try{if(o=(u=u.call(n)).next,r!==0)for(;!(p=(a=o.call(u)).done)&&(l.push(a.value),l.length!==r);p=!0);}catch(v){m=!0,i=v}finally{try{if(!p&&u.return!=null&&(c=u.return(),Object(c)!==c))return}finally{if(m)throw i}}return l}})(e,t)||(function(n,r){if(n){if(typeof n=="string")return Ml(n,r);var u={}.toString.call(n).slice(8,-1);return u==="Object"&&n.constructor&&(u=n.constructor.name),u==="Map"||u==="Set"?Array.from(n):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Ml(n,r):void 0}})(e,t)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}var ql={"Ctrl/Cmd+K":!0,"/":!0,"Ctrl/Cmd+I":!0};function pv(e){return Zl(Zl({},ql),e)}function hv(e){var t=e.isOpen,n=e.isAskAiActive,r=e.onAskAiToggle,u=e.onClose,a=e.onOpen,i=e.keyboardShortcuts,o=i===void 0?ql:i;b.useEffect(function(){function c(l){var p;if(t&&l.code==="Escape"&&n)r(!1);else{var m=o["Ctrl/Cmd+K"]&&((p=l.key)===null||p===void 0?void 0:p.toLowerCase())==="k"&&(l.metaKey||l.ctrlKey),v=o["/"]&&l.key==="/";(l.code==="Escape"&&t||m||!(function(y){var F=y.composedPath()[0],D=F.tagName;return F.isContentEditable||D==="INPUT"||D==="SELECT"||D==="TEXTAREA"})(l)&&v&&!t)&&(l.preventDefault(),t?u():document.body.classList.contains("DocSearch--active")||a())}}return window.addEventListener("keydown",c),function(){window.removeEventListener("keydown",c)}},[t,n,o,a,u,r])}var vv=["children","theme","onReady","onOpen","onClose","onSidepanelOpen","onSidepanelClose"],us=b.createContext(void 0);us.displayName="DocSearchContext";var Hl=b.forwardRef(function(e,t){var n=e.children,r=e.theme,u=e.onReady,a=e.onOpen,i=e.onClose,o=e.onSidepanelOpen,c=e.onSidepanelClose,l=(function(se,K){if(se==null)return{};var V,ue,oe=(function(ee,he){if(ee==null)return{};var Ce={};for(var Re in ee)if({}.hasOwnProperty.call(ee,Re)){if(he.indexOf(Re)!==-1)continue;Ce[Re]=ee[Re]}return Ce})(se,K);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(se);for(ue=0;ue<ce.length;ue++)V=ce[ue],K.indexOf(V)===-1&&{}.propertyIsEnumerable.call(se,V)&&(oe[V]=se[V])}return oe})(e,vv),p=ma(b.useState("ready"),2),m=p[0],v=p[1],y=ma(b.useState(l.initialQuery||""),2),F=y[0],D=y[1],_=b.useRef(null),O=pv(l.keyboardShortcuts),w=ma(b.useState(),2),x=w[0],S=w[1],T=ma(b.useState(function(){return new Set}),2),I=T[0],B=T[1],d=(function(){var se=ma(b.useState(!1),2),K=se[0],V=se[1];return b.useEffect(function(){var ue=function(){var oe=window.matchMedia("(max-width: 768px)");V(oe.matches)};return ue(),window.addEventListener("resize",ue),function(){window.removeEventListener("resize",ue)}},[]),K})(),H=b.useRef("ready"),R=["modal-search","modal-askai"].includes(m),Z=m==="modal-askai",q=!d&&I.has("sidepanel"),G=m==="sidepanel";b.useEffect(function(){u==null||u()},[u]),b.useEffect(function(){var se=H.current,K=m;K!=="modal-search"&&K!=="modal-askai"||se==="modal-search"||se==="modal-askai"||a==null||a(),K!=="ready"||se!=="modal-search"&&se!=="modal-askai"||i==null||i(),K==="sidepanel"&&se!=="sidepanel"&&(o==null||o()),K!=="sidepanel"&&se==="sidepanel"&&(c==null||c()),H.current=K},[m,a,i,o,c]);var L=b.useCallback(function(){v("modal-search")},[]),ne=b.useCallback(function(){var se,K;v("ready"),(se=_.current)===null||se===void 0||se.focus(),D((K=l.initialQuery)!==null&&K!==void 0?K:"")},[v,l.initialQuery]),Q=b.useCallback(function(se,K){if(!d&&se&&q)return S(K),void v("sidepanel");v(se?"modal-askai":"modal-search")},[v,d,q]),$=b.useCallback(function(se){I.has("sidepanel")&&(S(se),v("sidepanel"))},[v,I]),Y=b.useCallback(function(se){v("modal-search"),D(se.key)},[v,D]),re=b.useCallback(function(se){I.has(se)||B(function(K){var V=new Set(K);return V.add(se),V})},[I]);b.useImperativeHandle(t,function(){return{open:L,close:ne,openAskAi:function(se){return Q(!0,se)},openSidepanel:$,get isReady(){return!0},get isOpen(){return R},get isSidepanelOpen(){return G},get isSidepanelSupported(){return q}}},[L,ne,Q,$,R,G,q]),(function(se){var K=se.theme;qn(function(){if(K){var V=document.documentElement.dataset.theme;if(K!==V)return document.documentElement.dataset.theme=K,function(){V===void 0?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=V}}},[K])})({theme:r}),hv({isOpen:R,onOpen:L,onClose:ne,onAskAiToggle:Q,onInput:Y,isAskAiActive:Z,searchButtonRef:_,keyboardShortcuts:O});var me=b.useMemo(function(){return{docsearchState:m,setDocsearchState:v,searchButtonRef:_,initialQuery:F,keyboardShortcuts:O,openModal:L,closeModal:ne,isAskAiActive:Z,isModalActive:R,onAskAiToggle:Q,initialAskAiMessage:x,registerView:re,isHybridModeSupported:q}},[m,_,F,O,L,ne,Z,R,Q,x,re,q]);return b.createElement(us.Provider,{value:me},n)});Hl.displayName="DocSearch";var mv=["type"],gv=["type"],yv=["additionalProperties"],Dv=["abortSignal"],bv=["messageId"],Av=["messages"],Ev=["experimental_throttle","resume"];function as(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ul(e,t,n,r,u,a,i){try{var o=e[a](i),c=o.value}catch(l){return void n(l)}o.done?t(c):Promise.resolve(c).then(r,u)}function Xe(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var a=e.apply(t,n);function i(c){Ul(a,r,u,i,o,"next",c)}function o(c){Ul(a,r,u,i,o,"throw",c)}i(void 0)})}}function $e(e,t,n){return t=ga(t),(function(r,u){if(u&&(we(u)=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a})(r)})(e,is()?Reflect.construct(t,n||[],ga(e).constructor):t.apply(e,n))}function Be(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wl(e,t,n){if(is())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var u=new(e.bind.apply(e,r));return n&&Bu(u,n.prototype),u}function Vl(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,Gl(r.key),r)}}function Pe(e,t,n){return t&&Vl(e.prototype,t),n&&Vl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ye(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=os(e))||t){n&&(e=n);var r=0,u=function(){};return{s:u,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,i=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return i=c.done,c},e:function(c){o=!0,a=c},f:function(){try{i||n.return==null||n.return()}finally{if(o)throw a}}}}function lt(e,t,n){return(t=Gl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tt(){return Tt=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},Tt.apply(null,arguments)}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ga(e)}function Me(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&&Bu(e,t)}function is(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(is=function(){return!!e})()}function Kl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kl(Object(n),!0).forEach(function(r){lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function an(e,t){if(e==null)return{};var n,r,u=(function(i,o){if(i==null)return{};var c={};for(var l in i)if({}.hasOwnProperty.call(i,l)){if(o.indexOf(l)!==-1)continue;c[l]=i[l]}return c})(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}function Ae(){var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",u=n.toStringTag||"@@toStringTag";function a(y,F,D,_){var O=F&&F.prototype instanceof o?F:o,w=Object.create(O.prototype);return wn(w,"_invoke",(function(x,S,T){var I,B,d,H=0,R=T||[],Z=!1,q={p:0,n:0,v:e,a:G,f:G.bind(e,4),d:function(L,ne){return I=L,B=0,d=e,q.n=ne,i}};function G(L,ne){for(B=L,d=ne,t=0;!Z&&H&&!Q&&t<R.length;t++){var Q,$=R[t],Y=q.p,re=$[2];L>3?(Q=re===ne)&&(d=$[(B=$[4])?5:(B=3,3)],$[4]=$[5]=e):$[0]<=Y&&((Q=L<2&&Y<$[1])?(B=0,q.v=ne,q.n=$[1]):Y<re&&(Q=L<3||$[0]>ne||ne>re)&&($[4]=L,$[5]=ne,q.n=re,B=0))}if(Q||L>1)return i;throw Z=!0,ne}return function(L,ne,Q){if(H>1)throw TypeError("Generator is already running");for(Z&&ne===1&&G(ne,Q),B=ne,d=Q;(t=B<2?e:d)||!Z;){I||(B?B<3?(B>1&&(q.n=-1),G(B,d)):q.n=d:q.v=d);try{if(H=2,I){if(B||(L="next"),t=I[L]){if(!(t=t.call(I,d)))throw TypeError("iterator result is not an object");if(!t.done)return t;d=t.value,B<2&&(B=0)}else B===1&&(t=I.return)&&t.call(I),B<2&&(d=TypeError("The iterator does not provide a '"+L+"' method"),B=1);I=e}else if((t=(Z=q.n<0)?d:x.call(S,q))!==i)break}catch($){I=e,B=1,d=$}finally{H=1}}return{value:t,done:Z}}})(y,D,_),!0),w}var i={};function o(){}function c(){}function l(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(wn(t={},r,function(){return this}),t),m=l.prototype=o.prototype=Object.create(p);function v(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,l):(y.__proto__=l,wn(y,u,"GeneratorFunction")),y.prototype=Object.create(m),y}return c.prototype=l,wn(m,"constructor",l),wn(l,"constructor",c),c.displayName="GeneratorFunction",wn(l,u,"GeneratorFunction"),wn(m),wn(m,u,"Generator"),wn(m,r,function(){return this}),wn(m,"toString",function(){return"[object Generator]"}),(Ae=function(){return{w:a,m:v}})()}function wn(e,t,n,r){var u=Object.defineProperty;try{u({},"",{})}catch(a){u=0}wn=function(a,i,o,c){function l(p,m){wn(a,p,function(v){return this._invoke(p,m,v)})}i?u?u(a,i,{value:o,enumerable:!c,configurable:!c,writable:!c}):a[i]=o:(l("next",0),l("throw",1),l("return",2))},wn(e,t,n,r)}function Bu(e,t){return Bu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Bu(e,t)}function dt(e,t){return(function(n){if(Array.isArray(n))return n})(e)||(function(n,r){var u=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(u!=null){var a,i,o,c,l=[],p=!0,m=!1;try{if(o=(u=u.call(n)).next,r===0){if(Object(u)!==u)return;p=!1}else for(;!(p=(a=o.call(u)).done)&&(l.push(a.value),l.length!==r);p=!0);}catch(v){m=!0,i=v}finally{try{if(!p&&u.return!=null&&(c=u.return(),Object(c)!==c))return}finally{if(m)throw i}}return l}})(e,t)||os(e,t)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function be(e){return(function(t){if(Array.isArray(t))return as(t)})(e)||(function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||os(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Gl(e){var t=(function(n){if(we(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var u=r.call(n,"string");if(we(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)})(e);return we(t)=="symbol"?t:t+""}function Qt(e){return Qt=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Qt(e)}function os(e,t){if(e){if(typeof e=="string")return as(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?as(e,t):void 0}}function Lr(e){var t=typeof Map=="function"?new Map:void 0;return Lr=function(n){if(n===null||!(function(u){try{return Function.toString.call(u).indexOf("[native code]")!==-1}catch(a){return typeof u=="function"}})(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return Wl(n,arguments,ga(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Bu(r,n)},Lr(e)}function Fi(){Fi=function(u,a){return new n(u,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(u,a,i){var o=RegExp(u,a);return t.set(o,i||t.get(u)),Bu(o,n.prototype)}function r(u,a){var i=t.get(a);return Object.keys(i).reduce(function(o,c){var l=i[c];if(typeof l=="number")o[c]=u[l];else{for(var p=0;u[l[p]]===void 0&&p+1<l.length;)p++;o[c]=u[l[p]]}return o},Object.create(null))}return Me(n,RegExp),n.prototype.exec=function(u){var a=e.exec.call(this,u);if(a){a.groups=r(a,this);var i=a.indices;i&&(i.groups=r(i,this))}return a},n.prototype[Symbol.replace]=function(u,a){if(typeof a=="string"){var i=t.get(this);return e[Symbol.replace].call(this,u,a.replace(/\$<([^>]+)(>|$)/g,function(c,l,p){if(p==="")return c;var m=i[l];return Array.isArray(m)?"$"+m.join("$"):typeof m=="number"?"$"+m:""}))}if(typeof a=="function"){var o=this;return e[Symbol.replace].call(this,u,function(){var c=arguments;return we(c[c.length-1])!="object"&&(c=[].slice.call(c)).push(r(c,o)),a.apply(this,c)})}return e[Symbol.replace].call(this,u,a)},Fi.apply(this,arguments)}var Jl=function(e){var t=e.theme;qn(function(){if(t){var n=document.documentElement.dataset.theme;if(t!==n)return document.documentElement.dataset.theme=t,function(){n===void 0?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=n}}},[t])},Fv={"Ctrl/Cmd+K":!0,"/":!0};function ya(e){var t=e.size,n=t===void 0?20:t,r=e.color,u=r===void 0?"currentColor":r;return b.createElement("svg",{width:n,height:n,className:"DocSearch-Search-Icon",viewBox:"0 0 24 24","aria-hidden":"true"},b.createElement("circle",{cx:"11",cy:"11",r:"8",stroke:u,fill:"none",strokeWidth:"1.4"}),b.createElement("path",{d:"m21 21-4.3-4.3",stroke:u,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}))}function Ql(e,t,n){return e.reduce(function(r,u){var a=t(u);return r.hasOwnProperty(a)||(r[a]=[]),r[a].length<(n||5)&&r[a].push(u),r},{})}function ss(e){return e}function _i(e){return e.button===1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}var cs="Ctrl";function _v(){}var Yl=/(<mark>|<\/mark>)/g,Cv=RegExp(Yl.source);function Xl(e){var t,n,r=e;if(!r.__docsearch_parent&&!e._highlightResult)return e.hierarchy.lvl0;var u=r.__docsearch_parent?(t=r.__docsearch_parent)===null||t===void 0||(t=t._highlightResult)===null||t===void 0||(t=t.hierarchy)===null||t===void 0?void 0:t.lvl0:(n=e._highlightResult)===null||n===void 0||(n=n.hierarchy)===null||n===void 0?void 0:n.lvl0;return u?u.value&&Cv.test(u.value)?u.value.replace(Yl,""):u.value:e.hierarchy.lvl0}var kv=["translations","keyboardShortcuts"],wv=b.forwardRef(function(e,t){var n=e.translations,r=n===void 0?{}:n,u=e.keyboardShortcuts,a=an(e,kv),i=r.buttonText,o=i===void 0?"Search":i,c=r.buttonAriaLabel,l=c===void 0?"Search":c,p=(function(S){return C(C({},Fv),S)})(u),m=dt(su(null),2),v=m[0],y=m[1];Jl({theme:a.theme}),qn(function(){typeof navigator!="undefined"&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?y("\u2318"):y(cs))},[]);var F=dt(v===cs?[cs,"Control","Ctrl"]:["Meta","Meta","\u2318"],3),D=F[0],_=F[1],O=F[2],w=p["Ctrl/Cmd+K"],x="".concat(_,"+k");return b.createElement("button",Tt({type:"button",className:"DocSearch DocSearch-Button","aria-label":w?"".concat(l," (").concat(x,")"):l,"aria-keyshortcuts":w?x:void 0},a,{ref:t}),b.createElement("span",{className:"DocSearch-Button-Container"},b.createElement(ya,null),b.createElement("span",{className:"DocSearch-Button-Placeholder"},o)),b.createElement("span",{className:"DocSearch-Button-Keys"},v!==null&&w&&b.createElement(b.Fragment,null,b.createElement(ef,{reactsToKey:D},O),b.createElement(ef,{reactsToKey:"k"},"K"))))});function ef(e){var t=e.reactsToKey,n=e.children,r=dt(su(!1),2),u=r[0],a=r[1];return qn(function(){if(t)return window.addEventListener("keydown",i),window.addEventListener("keyup",o),function(){window.removeEventListener("keydown",i),window.removeEventListener("keyup",o)};function i(c){c.key===t&&a(!0)}function o(c){c.key!==t&&c.key!=="Meta"||a(!1)}},[t]),b.createElement("kbd",{className:u?"DocSearch-Button-Key DocSearch-Button-Key--pressed":"DocSearch-Button-Key"+(t==="Ctrl"?" DocSearch-Button-Key--ctrl":"")},n)}function tf(e,t){var n=void 0;return function(){for(var r=arguments.length,u=new Array(r),a=0;a<r;a++)u[a]=arguments[a];n&&clearTimeout(n),n=setTimeout(function(){return e.apply(void 0,u)},t)}}function Da(e){return e.reduce(function(t,n){return t.concat(n)},[])}var Sv=0;function ls(e){return e.collections.length===0?0:e.collections.reduce(function(t,n){return t+n.items.length},0)}function nf(e){return e!==Object(e)}function rf(e,t){if(e===t)return!0;if(nf(e)||nf(t)||typeof e=="function"||typeof t=="function")return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=0,r=Object.keys(e);n<r.length;n++){var u=r[n];if(!(u in t)||!rf(e[u],t[u]))return!1}return!0}var Ci=function(){},xv=[{segment:"autocomplete-core",version:"1.19.2"}];function uf(e){var t=e.item,n=e.items,r=n===void 0?[]:n;return{index:t.__autocomplete_indexName,items:[t],positions:[1+r.findIndex(function(u){return u.objectID===t.objectID})],queryID:t.__autocomplete_queryID,algoliaSource:["autocomplete"]}}function af(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Tv=["items"],Ov=["items"];function ba(e){return ba=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},ba(e)}function ki(e){return(function(t){if(Array.isArray(t))return fs(t)})(e)||(function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||(function(t,n){if(t){if(typeof t=="string")return fs(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fs(t,n):void 0}})(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function fs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function of(e,t){if(e==null)return{};var n,r,u=(function(i,o){if(i==null)return{};var c,l,p={},m=Object.keys(i);for(l=0;l<m.length;l++)c=m[l],o.indexOf(c)>=0||(p[c]=i[c]);return p})(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}function sf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Pu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sf(Object(n),!0).forEach(function(r){Iv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iv(e,t,n){return(t=(function(r){var u=(function(a){if(ba(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(ba(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return ba(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wi(e){return e.map(function(t){var n=t.items,r=of(t,Tv);return Pu(Pu({},r),{},{objectIDs:(n==null?void 0:n.map(function(u){return u.objectID}))||r.objectIDs})})}function Bv(e){var t,n,r,u=(t=(function(i,o){return(function(c){if(Array.isArray(c))return c})(i)||(function(c,l){var p=c==null?null:typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(p!=null){var m,v,y,F,D=[],_=!0,O=!1;try{if(y=(p=p.call(c)).next,l!==0)for(;!(_=(m=y.call(p)).done)&&(D.push(m.value),D.length!==l);_=!0);}catch(w){O=!0,v=w}finally{try{if(!_&&p.return!=null&&(F=p.return(),Object(F)!==F))return}finally{if(O)throw v}}return D}})(i,o)||(function(c,l){if(c){if(typeof c=="string")return af(c,l);var p=Object.prototype.toString.call(c).slice(8,-1);return p==="Object"&&c.constructor&&(p=c.constructor.name),p==="Map"||p==="Set"?Array.from(c):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?af(c,l):void 0}})(i,o)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})((e.version||"").split(".").map(Number),2),n=t[0],r=t[1],n>=3||n===2&&r>=4||n===1&&r>=10);function a(i,o,c){if(u&&c!==void 0){var l=c[0].__autocomplete_algoliaCredentials,p={"X-Algolia-Application-Id":l.appId,"X-Algolia-API-Key":l.apiKey};e.apply(void 0,[i].concat(ki(o),[{headers:p}]))}else e.apply(void 0,[i].concat(ki(o)))}return{init:function(i,o){e("init",{appId:i,apiKey:o})},setAuthenticatedUserToken:function(i){e("setAuthenticatedUserToken",i)},setUserToken:function(i){e("setUserToken",i)},clickedObjectIDsAfterSearch:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&a("clickedObjectIDsAfterSearch",wi(o),o[0].items)},clickedObjectIDs:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&a("clickedObjectIDs",wi(o),o[0].items)},clickedFilters:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&e.apply(void 0,["clickedFilters"].concat(o))},convertedObjectIDsAfterSearch:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&a("convertedObjectIDsAfterSearch",wi(o),o[0].items)},convertedObjectIDs:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&a("convertedObjectIDs",wi(o),o[0].items)},convertedFilters:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&e.apply(void 0,["convertedFilters"].concat(o))},viewedObjectIDs:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&o.reduce(function(l,p){var m=p.items,v=of(p,Ov);return[].concat(ki(l),ki((function(y){for(var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,D=[],_=0;_<y.objectIDs.length;_+=F)D.push(Pu(Pu({},y),{},{objectIDs:y.objectIDs.slice(_,_+F)}));return D})(Pu(Pu({},v),{},{objectIDs:(m==null?void 0:m.map(function(y){return y.objectID}))||v.objectIDs})).map(function(y){return{items:m,payload:y}})))},[]).forEach(function(l){var p=l.items;return a("viewedObjectIDs",[l.payload],p)})},viewedFilters:function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];o.length>0&&e.apply(void 0,["viewedFilters"].concat(o))}}}function Pv(e){var t=e.items.reduce(function(n,r){var u;return n[r.__autocomplete_indexName]=((u=n[r.__autocomplete_indexName])!==null&&u!==void 0?u:[]).concat(r),n},{});return Object.keys(t).map(function(n){return{index:n,items:t[n],algoliaSource:["autocomplete"]}})}function Aa(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function Ea(e){return Ea=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Ea(e)}function ju(e){return(function(t){if(Array.isArray(t))return ds(t)})(e)||(function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||(function(t,n){if(t){if(typeof t=="string")return ds(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ds(t,n):void 0}})(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function ds(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cf(Object(n),!0).forEach(function(r){jv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jv(e,t,n){return(t=(function(r){var u=(function(a){if(Ea(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Ea(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Ea(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lf="2.15.0",Nv="https://cdn.jsdelivr.net/npm/search-insights@".concat(lf,"/dist/search-insights.min.js"),Rv=tf(function(e){var t=e.onItemsChange,n=e.items,r=e.insights,u=e.state;t({insights:r,insightsEvents:Pv({items:n}).map(function(a){return Hn({eventName:"Items Viewed"},a)}),state:u})},400);function ff(e){var t=(function(v){return Hn({onItemsChange:function(y){var F=y.insights,D=y.insightsEvents,_=y.state;F.viewedObjectIDs.apply(F,ju(D.map(function(O){return Hn(Hn({},O),{},{algoliaSource:df(O.algoliaSource,_.context)})})))},onSelect:function(y){var F=y.insights,D=y.insightsEvents,_=y.state;F.clickedObjectIDsAfterSearch.apply(F,ju(D.map(function(O){return Hn(Hn({},O),{},{algoliaSource:df(O.algoliaSource,_.context)})})))},onActive:Ci,__autocomplete_clickAnalytics:!0},v)})(e),n=t.insightsClient,r=t.insightsInitParams,u=t.onItemsChange,a=t.onSelect,i=t.onActive,o=t.__autocomplete_clickAnalytics,c=n;if(n||typeof window!="undefined"&&(function(v){var y=v.window,F=y.AlgoliaAnalyticsObject||"aa";typeof F=="string"&&(c=y[F]),c||(y.AlgoliaAnalyticsObject=F,y[F]||(y[F]=function(){y[F].queue||(y[F].queue=[]);for(var D=arguments.length,_=new Array(D),O=0;O<D;O++)_[O]=arguments[O];y[F].queue.push(_)}),y[F].version=lf,c=y[F],(function(D){var _="[Autocomplete]: Could not load search-insights.js. Please load it manually following https://alg.li/insights-autocomplete";try{var O=D.document.createElement("script");O.async=!0,O.src=Nv,O.onerror=function(){console.error(_)},document.body.appendChild(O)}catch(w){console.error(_)}})(y))})({window}),!c)return{};r&&c("init",Hn({partial:!0},r));var l=Bv(c),p={current:[]},m=tf(function(v){var y=v.state;if(y.isOpen){var F=y.collections.reduce(function(D,_){return[].concat(ju(D),ju(_.items))},[]).filter(Aa);rf(p.current.map(function(D){return D.objectID}),F.map(function(D){return D.objectID}))||(p.current=F,F.length>0&&Rv({onItemsChange:u,items:F,insights:l,state:y}))}},0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(v){var y=v.setContext,F=v.onSelect,D=v.onActive;function _(O){y({algoliaInsightsPlugin:{__algoliaSearchParameters:Hn(Hn({},o?{clickAnalytics:!0}:{}),O?{userToken:zv(O)}:{}),insights:l}})}c("addAlgoliaAgent","insights-plugin"),_(),c("onUserTokenChange",function(O){_(O)}),c("getUserToken",null,function(O,w){_(w)}),F(function(O){var w=O.item,x=O.state,S=O.event,T=O.source;Aa(w)&&a({state:x,event:S,insights:l,item:w,insightsEvents:[Hn({eventName:"Item Selected"},uf({item:w,items:T.getItems().filter(Aa)}))]})}),D(function(O){var w=O.item,x=O.source,S=O.state,T=O.event;Aa(w)&&i({state:S,event:T,insights:l,item:w,insightsEvents:[Hn({eventName:"Item Active"},uf({item:w,items:x.getItems().filter(Aa)}))]})})},onStateChange:function(v){var y=v.state;m({state:y})},__autocomplete_pluginOptions:e}}function df(){var e,t=arguments.length>1?arguments[1]:void 0;return[].concat(ju(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]),["autocomplete-internal"],ju((e=t.algoliaInsightsPlugin)!==null&&e!==void 0&&e.__automaticInsights?["autocomplete-automatic"]:[]))}function zv(e){return typeof e=="number"?e.toString():e}function Si(e,t){var n=t;return{then:function(r,u){return Si(e.then(xi(r,n,e),xi(u,n,e)),n)},catch:function(r){return Si(e.catch(xi(r,n,e)),n)},finally:function(r){return r&&n.onCancelList.push(r),Si(e.finally(xi(r&&function(){return n.onCancelList=[],r()},n,e)),n)},cancel:function(){n.isCanceled=!0;var r=n.onCancelList;n.onCancelList=[],r.forEach(function(u){u()})},isCanceled:function(){return n.isCanceled===!0}}}function pf(e){return Si(e,{isCanceled:!1,onCancelList:[]})}function xi(e,t,n){return e?function(r){return t.isCanceled?r:e(r)}:n}var ps,hs=!0;function hf(e,t,n,r){if(!n)return null;if(e<0&&(t===null||r!==null&&t===0))return n+e;var u=(t===null?-1:t)+e;return u<=-1||u>=n?r===null?null:0:u}function vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function mf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vf(Object(n),!0).forEach(function(r){Lv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lv(e,t,n){return(t=(function(r){var u=(function(a){if(Fa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Fa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Fa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fa(e){return Fa=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Fa(e)}function gf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yf=function(e,t){var n,r=!1,u=[],a=(function(p,m){var v=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(!v){if(Array.isArray(p)||(v=(function(w,x){if(w){if(typeof w=="string")return gf(w,x);var S=Object.prototype.toString.call(w).slice(8,-1);return S==="Object"&&w.constructor&&(S=w.constructor.name),S==="Map"||S==="Set"?Array.from(w):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?gf(w,x):void 0}})(p))||m){v&&(p=v);var y=0,F=function(){};return{s:F,n:function(){return y>=p.length?{done:!0}:{done:!1,value:p[y++]}},e:function(w){throw w},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D,_=!0,O=!1;return{s:function(){v=v.call(p)},n:function(){var w=v.next();return _=w.done,w},e:function(w){O=!0,D=w},f:function(){try{_||v.return==null||v.return()}finally{if(O)throw D}}}})(e);try{for(a.s();!(n=a.n()).done;){var i,o,c,l=(i=n.value.__autocomplete_pluginOptions)===null||i===void 0||(o=(c=i).awaitSubmit)===null||o===void 0?void 0:o.call(c);if(typeof l=="number")u.push(l);else if(l===!0){r=!0;break}}}catch(p){a.e(p)}finally{a.f()}return r?t.wait():u.length>0?t.wait(Math.max.apply(Math,u)):void 0};function cu(e){var t=(function(u){var a=u.collections.map(function(i){return i.items.length}).reduce(function(i,o,c){var l=(i[c-1]||0)+o;return i.push(l),i},[]).reduce(function(i,o){return o<=u.activeItemId?i+1:i},0);return u.collections[a]})(e);if(!t)return null;var n=t.items[(function(u){for(var a=u.state,i=u.collection,o=!1,c=0,l=0;o===!1;){var p=a.collections[c];if(p===i){o=!0;break}l+=p.items.length,c++}return a.activeItemId-l})({state:e,collection:t})],r=t.source;return{item:n,itemInputValue:r.getItemInputValue({item:n,state:e}),itemUrl:r.getItemUrl({item:n,state:e}),source:r}}function In(e,t,n){return[e,n==null?void 0:n.sourceId,t].filter(Boolean).join("-").replace(/\s/g,"")}var Mv=/((gt|sm)-|galaxy nexus)|samsung[- ]|samsungbrowser/i;function Df(e){return e.nativeEvent||e}function _a(e){return _a=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},_a(e)}function bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function $v(e,t,n){return(t=(function(r){var u=(function(a){if(_a(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(_a(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return _a(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e){return Ca=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Ca(e)}function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Ti(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Af(Object(n),!0).forEach(function(r){Zv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zv(e,t,n){return(t=(function(r){var u=(function(a){if(Ca(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Ca(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Ca(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ka(e){return ka=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},ka(e)}function vs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Nu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ef(Object(n),!0).forEach(function(r){qv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qv(e,t,n){return(t=(function(r){var u=(function(a){if(ka(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(ka(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return ka(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hv(e,t){var n,r=typeof window!="undefined"?window:{},u=e.plugins||[];return Nu(Nu({debug:!1,openOnFocus:!1,enterKeyHint:void 0,ignoreCompositionEvents:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,insights:void 0,environment:r,shouldPanelOpen:function(a){return ls(a.state)>0},reshape:function(a){return a.sources}},e),{},{id:(n=e.id)!==null&&n!==void 0?n:"autocomplete-".concat(Sv++),plugins:u,initialState:Nu({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(a){var i;(i=e.onStateChange)===null||i===void 0||i.call(e,a),u.forEach(function(o){var c;return(c=o.onStateChange)===null||c===void 0?void 0:c.call(o,a)})},onSubmit:function(a){var i;(i=e.onSubmit)===null||i===void 0||i.call(e,a),u.forEach(function(o){var c;return(c=o.onSubmit)===null||c===void 0?void 0:c.call(o,a)})},onReset:function(a){var i;(i=e.onReset)===null||i===void 0||i.call(e,a),u.forEach(function(o){var c;return(c=o.onReset)===null||c===void 0?void 0:c.call(o,a)})},getSources:function(a){return Promise.all([].concat((function(i){return(function(o){if(Array.isArray(o))return vs(o)})(i)||(function(o){if(typeof Symbol!="undefined"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)})(i)||(function(o,c){if(o){if(typeof o=="string")return vs(o,c);var l=Object.prototype.toString.call(o).slice(8,-1);return l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set"?Array.from(o):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?vs(o,c):void 0}})(i)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
20
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()})(u.map(function(i){return i.getSources})),[e.getSources]).filter(Boolean).map(function(i){return(function(o,c){var l=[];return Promise.resolve(o(c)).then(function(p){return Promise.all(p.filter(function(m){return!!m}).map(function(m){if(m.sourceId,l.includes(m.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(m.sourceId)," is not unique."));l.push(m.sourceId);var v={getItemInputValue:function(F){return F.state.query},getItemUrl:function(){},onSelect:function(F){(0,F.setIsOpen)(!1)},onActive:Ci,onResolve:Ci};Object.keys(v).forEach(function(F){v[F].__default=!0});var y=mf(mf({},v),m);return Promise.resolve(y)}))})})(i,a)})).then(function(i){return Da(i)}).then(function(i){return i.map(function(o){return Nu(Nu({},o),{},{onSelect:function(c){o.onSelect(c),t.forEach(function(l){var p;return(p=l.onSelect)===null||p===void 0?void 0:p.call(l,c)})},onActive:function(c){o.onActive(c),t.forEach(function(l){var p;return(p=l.onActive)===null||p===void 0?void 0:p.call(l,c)})},onResolve:function(c){o.onResolve(c),t.forEach(function(l){var p;return(p=l.onResolve)===null||p===void 0?void 0:p.call(l,c)})}})})})},navigator:Nu({navigate:function(a){var i=a.itemUrl;r.location.assign(i)},navigateNewTab:function(a){var i=a.itemUrl,o=r.open(i,"_blank","noopener");o==null||o.focus()},navigateNewWindow:function(a){var i=a.itemUrl;r.open(i,"_blank","noopener")}},e.navigator)})}function wa(e){return wa=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},wa(e)}function Ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Oi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ff(Object(n),!0).forEach(function(r){_f(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ff(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _f(e,t,n){return(t=(function(r){var u=(function(a){if(wa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(wa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return wa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sa(e){return Sa=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Sa(e)}function Cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Ru(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cf(Object(n),!0).forEach(function(r){Uv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uv(e,t,n){return(t=(function(r){var u=(function(a){if(Sa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Sa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Sa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kf(e){return(function(t){if(Array.isArray(t))return ms(t)})(e)||(function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||(function(t,n){if(t){if(typeof t=="string")return ms(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ms(t,n):void 0}})(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function ms(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ii(e){return!!e.execute}function Wv(e){var t=e.reduce(function(n,r){if(!Ii(r))return n.push(r),n;var u=r.searchClient,a=r.execute,i=r.requesterId,o=r.requests,c=n.find(function(m){return Ii(r)&&Ii(m)&&m.searchClient===u&&!!i&&m.requesterId===i});if(c){var l;(l=c.items).push.apply(l,kf(o))}else{var p={execute:a,requesterId:i,items:o,searchClient:u};n.push(p)}return n},[]).map(function(n){if(!Ii(n))return Promise.resolve(n);var r=n,u=r.execute,a=r.items;return u({searchClient:r.searchClient,requests:a})});return Promise.all(t).then(function(n){return Da(n)})}function xa(e){return xa=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},xa(e)}var Vv=["event","nextState","props","query","refresh","store"];function wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wf(Object(n),!0).forEach(function(r){Kv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kv(e,t,n){return(t=(function(r){var u=(function(a){if(xa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(xa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return xa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sf,gs,Bi,Ta=null,xf=(Sf=-1,gs=-1,Bi=void 0,function(e){var t=++Sf;return Promise.resolve(e).then(function(n){return Bi&&t<gs?Bi:(gs=t,Bi=n,n)})});function fu(e){var t=e.event,n=e.nextState,r=n===void 0?{}:n,u=e.props,a=e.query,i=e.refresh,o=e.store,c=(function(x,S){if(x==null)return{};var T,I,B=(function(H,R){if(H==null)return{};var Z,q,G={},L=Object.keys(H);for(q=0;q<L.length;q++)Z=L[q],R.indexOf(Z)>=0||(G[Z]=H[Z]);return G})(x,S);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(x);for(I=0;I<d.length;I++)T=d[I],S.indexOf(T)>=0||Object.prototype.propertyIsEnumerable.call(x,T)&&(B[T]=x[T])}return B})(e,Vv);Ta&&u.environment.clearTimeout(Ta);var l=c.setCollections,p=c.setIsOpen,m=c.setQuery,v=c.setActiveItemId,y=c.setStatus,F=c.setContext;if(m(a),v(u.defaultActiveItemId),!a&&u.openOnFocus===!1){var D,_=o.getState().collections.map(function(x){return lu(lu({},x),{},{items:[]})});y("idle"),l(_),p((D=r.isOpen)!==null&&D!==void 0?D:u.shouldPanelOpen({state:o.getState()}));var O=pf(xf(_).then(function(){return Promise.resolve()}));return o.pendingRequests.add(O)}y("loading"),Ta=u.environment.setTimeout(function(){y("stalled")},u.stallThreshold);var w=pf(xf(u.getSources(lu({query:a,refresh:i,state:o.getState()},c)).then(function(x){return Promise.all(x.map(function(S){return Promise.resolve(S.getItems(lu({query:a,refresh:i,state:o.getState()},c))).then(function(T){return(function(I,B,d){if(R=I,!!(R!=null&&R.execute)){var H=I.requesterId==="algolia"?Object.assign.apply(Object,[{}].concat(kf(Object.keys(d.context).map(function(Z){var q;return(q=d.context[Z])===null||q===void 0?void 0:q.__algoliaSearchParameters})))):{};return Ru(Ru({},I),{},{requests:I.queries.map(function(Z){return{query:I.requesterId==="algolia"?Ru(Ru({},Z),{},{params:Ru(Ru({},H),Z.params)}):Z,sourceId:B,transformResponse:I.transformResponse}})})}var R;return{items:I,sourceId:B}})(T,S.sourceId,o.getState())})})).then(Wv).then(function(S){var T,I=S.some(function(B){return(function(d){return!Array.isArray(d)&&!!(d!=null&&d._automaticInsights)})(B.items)});return I&&F({algoliaInsightsPlugin:lu(lu({},((T=o.getState().context)===null||T===void 0?void 0:T.algoliaInsightsPlugin)||{}),{},{__automaticInsights:I})}),(function(B,d,H){return d.map(function(R){var Z,q=B.filter(function(Q){return Q.sourceId===R.sourceId}),G=q.map(function(Q){return Q.items}),L=q[0].transformResponse,ne=L?L({results:Z=G,hits:Z.map(function(Q){return Q.hits}).filter(Boolean),facetHits:Z.map(function(Q){var $;return($=Q.facetHits)===null||$===void 0?void 0:$.map(function(Y){return{label:Y.value,count:Y.count,_highlightResult:{label:{value:Y.highlighted}}}})}).filter(Boolean)}):G;return R.onResolve({source:R,results:G,items:ne,state:H.getState()}),ne.every(Boolean),'The `getItems` function from source "'.concat(R.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),`.
|
|
22
22
|
|
|
23
23
|
Did you forget to return items?
|
|
24
24
|
|
|
25
|
-
See: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems`),{source:N,items:K}})})(x,S,o)}).then(function(x){return(function(O){var I=O.props,B=O.state,d=O.collections.reduce(function(N,Z){return ki(ki({},N),{},_f({},Z.source.sourceId,ki(ki({},Z.source),{},{getItems:function(){return ga(Z.items)}})))},{}),q=I.plugins.reduce(function(N,Z){return Z.reshape?Z.reshape(N):N},{sourcesBySourceId:d,state:B}).sourcesBySourceId;return ga(I.reshape({sourcesBySourceId:q,sources:Object.values(q),state:B})).filter(Boolean).map(function(N){return{source:N,items:N.getItems()}})})({collections:x,props:u,state:o.getState()})})}))).then(function(S){var x;y("idle"),l(S);var O=u.shouldPanelOpen({state:o.getState()});h((x=r.isOpen)!==null&&x!==void 0?x:u.openOnFocus&&!a&&O||O);var I=au(o.getState());if(o.getState().activeItemId!==null&&I){var B=I.item,d=I.itemInputValue,q=I.itemUrl,N=I.source;N.onActive(iu({event:t,item:B,itemInputValue:d,itemUrl:q,refresh:i,source:N,state:o.getState()},c))}}).finally(function(){y("idle"),xa&&u.environment.clearTimeout(xa)});return o.pendingRequests.add(w)}function Sa(e){return Sa=typeof Symbol=="function"&&Ce(Symbol.iterator)=="symbol"?function(t){return Ce(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Ce(t)},Sa(e)}var Xv=["event","props","refresh","store"];function Tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function su(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tf(Object(n),!0).forEach(function(r){e0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e0(e,t,n){return(t=(function(r){var u=(function(a){if(Sa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Sa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Sa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ta(e){return Ta=typeof Symbol=="function"&&Ce(Symbol.iterator)=="symbol"?function(t){return Ce(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Ce(t)},Ta(e)}var t0=["props","refresh","store"],n0=["inputElement","formElement","panelElement"],r0=["inputElement"],u0=["inputElement","maxLength"],a0=["source"],i0=["item","source"];function Of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Of(Object(n),!0).forEach(function(r){o0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Of(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function o0(e,t,n){return(t=(function(r){var u=(function(a){if(Ta(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Ta(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Ta(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ju(e,t){if(e==null)return{};var n,r,u=(function(i,o){if(i==null)return{};var c,l,h={},p=Object.keys(i);for(l=0;l<p.length;l++)c=p[l],o.indexOf(c)>=0||(h[c]=i[c]);return h})(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}function s0(e){var t=e.props,n=e.refresh,r=e.store,u=ju(e,t0);return{getEnvironmentProps:function(a){var i=a.inputElement,o=a.formElement,c=a.panelElement;function l(h){!r.getState().isOpen&&r.pendingRequests.isEmpty()||h.target===i||[o,c].some(function(p){return(g=p)===(y=h.target)||g.contains(y);var g,y})===!1&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return nn({onTouchStart:l,onMouseDown:l,onTouchMove:function(h){r.getState().isOpen!==!1&&i===t.environment.document.activeElement&&h.target!==i&&i.blur()}},ju(a,n0))},getRootProps:function(a){return nn({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-controls":r.getState().isOpen?r.getState().collections.map(function(i){var o=i.source;return Pn(t.id,"list",o)}).join(" "):void 0,"aria-labelledby":Pn(t.id,"label")},a)},getFormProps:function(a){a.inputElement;var i=ju(a,r0),o=function(c){var l;t.onSubmit(nn({event:c,refresh:n,state:r.getState()},u)),r.dispatch("submit",null),(l=a.inputElement)===null||l===void 0||l.blur()};return nn({action:"",noValidate:!0,role:"search",onSubmit:function(c){c.preventDefault();var l=yf(t.plugins,r.pendingRequests);l!==void 0?l.then(function(){return o(c)}):o(c)},onReset:function(c){var l;c.preventDefault(),t.onReset(nn({event:c,refresh:n,state:r.getState()},u)),r.dispatch("reset",null),(l=a.inputElement)===null||l===void 0||l.focus()}},i)},getLabelProps:function(a){return nn({htmlFor:Pn(t.id,"input"),id:Pn(t.id,"label")},a)},getInputProps:function(a){var i;function o(D){(t.openOnFocus||r.getState().query)&&ou(nn({event:D,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},u)),r.dispatch("focus",null)}var c=a||{};c.inputElement;var l=c.maxLength,h=l===void 0?512:l,p=ju(c,u0),g=au(r.getState()),y=(function(D){return!!(D&&D.match(Hv))})(((i=t.environment.navigator)===null||i===void 0?void 0:i.userAgent)||""),F=t.enterKeyHint||(g!=null&&g.itemUrl&&!y?"go":"search");return nn({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&r.getState().activeItemId!==null?Pn(t.id,"item-".concat(r.getState().activeItemId),g==null?void 0:g.source):void 0,"aria-controls":r.getState().isOpen?r.getState().collections.filter(function(D){return D.items.length>0}).map(function(D){var _=D.source;return Pn(t.id,"list",_)}).join(" "):void 0,"aria-labelledby":Pn(t.id,"label"),value:r.getState().completion||r.getState().query,id:Pn(t.id,"input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:F,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:h,type:"search",onChange:function(D){var _=D.currentTarget.value;t.ignoreCompositionEvents&&Df(D).isComposing?u.setQuery(_):ou(nn({event:D,props:t,query:_.slice(0,h),refresh:n,store:r},u))},onCompositionEnd:function(D){ou(nn({event:D,props:t,query:D.currentTarget.value.slice(0,h),refresh:n,store:r},u))},onKeyDown:function(D){Df(D).isComposing||(function(_){var T=_.event,w=_.props,S=_.refresh,x=_.store,O=(function(L,K){if(L==null)return{};var J,W,ee=(function(ye,oe){if(ye==null)return{};var ae,Y,ie={},re=Object.keys(ye);for(Y=0;Y<re.length;Y++)ae=re[Y],oe.indexOf(ae)>=0||(ie[ae]=ye[ae]);return ie})(L,K);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(L);for(W=0;W<ue.length;W++)J=ue[W],K.indexOf(J)>=0||Object.prototype.propertyIsEnumerable.call(L,J)&&(ee[J]=L[J])}return ee})(_,Xv);if(T.key==="ArrowUp"||T.key==="ArrowDown"){var I=function(){var L=au(x.getState()),K=w.environment.document.getElementById(Pn(w.id,"item-".concat(x.getState().activeItemId),L==null?void 0:L.source));K&&(K.scrollIntoViewIfNeeded?K.scrollIntoViewIfNeeded(!1):K.scrollIntoView(!1))},B=function(){var L=au(x.getState());if(x.getState().activeItemId!==null&&L){var K=L.item,J=L.itemInputValue,W=L.itemUrl,ee=L.source;ee.onActive(su({event:T,item:K,itemInputValue:J,itemUrl:W,refresh:S,source:ee,state:x.getState()},O))}};T.preventDefault(),x.getState().isOpen===!1&&(w.openOnFocus||x.getState().query)?ou(su({event:T,props:w,query:x.getState().query,refresh:S,store:x},O)).then(function(){x.dispatch(T.key,{nextActiveItemId:w.defaultActiveItemId}),B(),setTimeout(I,0)}):(x.dispatch(T.key,{}),B(),I())}else if(T.key==="Escape")T.preventDefault(),x.dispatch(T.key,null),x.pendingRequests.cancelAll();else if(T.key==="Tab")x.dispatch("blur",null),x.pendingRequests.cancelAll();else if(T.key==="Enter"){if(x.getState().activeItemId===null||x.getState().collections.every(function(L){return L.items.length===0})){var d=yf(w.plugins,x.pendingRequests);return void(d!==void 0?d.then(x.pendingRequests.cancelAll):w.debug||x.pendingRequests.cancelAll())}T.preventDefault();var q=au(x.getState()),N=q.item,Z=q.itemInputValue,z=q.itemUrl,H=q.source;if(T.metaKey||T.ctrlKey)z!==void 0&&(H.onSelect(su({event:T,item:N,itemInputValue:Z,itemUrl:z,refresh:S,source:H,state:x.getState()},O)),w.navigator.navigateNewTab({itemUrl:z,item:N,state:x.getState()}));else if(T.shiftKey)z!==void 0&&(H.onSelect(su({event:T,item:N,itemInputValue:Z,itemUrl:z,refresh:S,source:H,state:x.getState()},O)),w.navigator.navigateNewWindow({itemUrl:z,item:N,state:x.getState()}));else if(!T.altKey){if(z!==void 0)return H.onSelect(su({event:T,item:N,itemInputValue:Z,itemUrl:z,refresh:S,source:H,state:x.getState()},O)),void w.navigator.navigate({itemUrl:z,item:N,state:x.getState()});ou(su({event:T,nextState:{isOpen:!1},props:w,query:Z,refresh:S,store:x},O)).then(function(){H.onSelect(su({event:T,item:N,itemInputValue:Z,itemUrl:z,refresh:S,source:H,state:x.getState()},O))})}}})(nn({event:D,props:t,refresh:n,store:r},u))},onFocus:o,onBlur:bi,onClick:function(D){a.inputElement!==t.environment.document.activeElement||r.getState().isOpen||o(D)}},p)},getPanelProps:function(a){return nn({onMouseDown:function(i){i.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},a)},getListProps:function(a){var i=a||{},o=i.source,c=ju(i,a0);return nn({role:"listbox","aria-labelledby":Pn(t.id,"label"),id:Pn(t.id,"list",o)},c)},getItemProps:function(a){var i=a.item,o=a.source,c=ju(a,i0);return nn({id:Pn(t.id,"item-".concat(i.__autocomplete_id),o),role:"option","aria-selected":r.getState().activeItemId===i.__autocomplete_id,onMouseMove:function(l){if(i.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",i.__autocomplete_id);var h=au(r.getState());if(r.getState().activeItemId!==null&&h){var p=h.item,g=h.itemInputValue,y=h.itemUrl,F=h.source;F.onActive(nn({event:l,item:p,itemInputValue:g,itemUrl:y,refresh:n,source:F,state:r.getState()},u))}}},onMouseDown:function(l){l.preventDefault()},onClick:function(l){var h=o.getItemInputValue({item:i,state:r.getState()}),p=o.getItemUrl({item:i,state:r.getState()});(p?Promise.resolve():ou(nn({event:l,nextState:{isOpen:!1},props:t,query:h,refresh:n,store:r},u))).then(function(){o.onSelect(nn({event:l,item:i,itemInputValue:h,itemUrl:p,refresh:n,source:o,state:r.getState()},u))})}},c)}}}function Oa(e){return Oa=typeof Symbol=="function"&&Ce(Symbol.iterator)=="symbol"?function(t){return Ce(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Ce(t)},Oa(e)}function If(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function c0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?If(Object(n),!0).forEach(function(r){Bf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):If(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bf(e,t,n){return(t=(function(r){var u=(function(a){if(Oa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Oa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Oa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l0(e){var t,n,r,u,a=e.plugins,i=e.options,o=(t=(((n=i.__autocomplete_metadata)===null||n===void 0?void 0:n.userAgents)||[])[0])===null||t===void 0?void 0:t.segment,c=o?Bf({},o,Object.keys(((r=i.__autocomplete_metadata)===null||r===void 0?void 0:r.options)||{})):{};return{plugins:a.map(function(l){return{name:l.name,options:Object.keys(l.__autocomplete_pluginOptions||[])}}),options:c0({"autocomplete-core":Object.keys(i)},c),ua:Bv.concat(((u=i.__autocomplete_metadata)===null||u===void 0?void 0:u.userAgents)||[])}}function Pf(e){var t,n=e.state;return n.isOpen===!1||n.activeItemId===null?null:((t=au(n))===null||t===void 0?void 0:t.itemInputValue)||null}function Ia(e){return Ia=typeof Symbol=="function"&&Ce(Symbol.iterator)=="symbol"?function(t){return Ce(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Ce(t)},Ia(e)}function jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jf(Object(n),!0).forEach(function(r){f0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f0(e,t,n){return(t=(function(r){var u=(function(a){if(Ia(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Ia(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Ia(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d0=function(e,t){switch(t.type){case"setActiveItemId":case"mousemove":return ut(ut({},e),{},{activeItemId:t.payload});case"setQuery":return ut(ut({},e),{},{query:t.payload,completion:null});case"setCollections":return ut(ut({},e),{},{collections:t.payload});case"setIsOpen":return ut(ut({},e),{},{isOpen:t.payload});case"setStatus":return ut(ut({},e),{},{status:t.payload});case"setContext":return ut(ut({},e),{},{context:ut(ut({},e.context),t.payload)});case"ArrowDown":var n=ut(ut({},e),{},{activeItemId:t.payload.hasOwnProperty("nextActiveItemId")?t.payload.nextActiveItemId:hf(1,e.activeItemId,ts(e),t.props.defaultActiveItemId)});return ut(ut({},n),{},{completion:Pf({state:n})});case"ArrowUp":var r=ut(ut({},e),{},{activeItemId:hf(-1,e.activeItemId,ts(e),t.props.defaultActiveItemId)});return ut(ut({},r),{},{completion:Pf({state:r})});case"Escape":return e.isOpen?ut(ut({},e),{},{activeItemId:null,isOpen:!1,completion:null}):ut(ut({},e),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return ut(ut({},e),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return ut(ut({},e),{},{activeItemId:t.props.openOnFocus===!0?t.props.defaultActiveItemId:null,status:"idle",completion:null,query:""});case"focus":return ut(ut({},e),{},{activeItemId:t.props.defaultActiveItemId,isOpen:(t.props.openOnFocus||!!e.query)&&t.props.shouldPanelOpen({state:e})});case"blur":return t.props.debug?e:ut(ut({},e),{},{isOpen:!1,activeItemId:null});case"mouseleave":return ut(ut({},e),{},{activeItemId:t.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(t.type)," is not supported."),e}};function Ba(e){return Ba=typeof Symbol=="function"&&Ce(Symbol.iterator)=="symbol"?function(t){return Ce(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":Ce(t)},Ba(e)}function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function cu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nf(Object(n),!0).forEach(function(r){p0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p0(e,t,n){return(t=(function(r){var u=(function(a){if(Ba(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Ba(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Ba(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h0(e){var t=[],n=Gv(e,t),r=(function(h,p,g){var y,F=p.initialState;return{getState:function(){return F},dispatch:function(D,_){var T=(function(w){for(var S=1;S<arguments.length;S++){var x=arguments[S]!=null?arguments[S]:{};S%2?bf(Object(x),!0).forEach(function(O){Uv(w,O,x[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(x)):bf(Object(x)).forEach(function(O){Object.defineProperty(w,O,Object.getOwnPropertyDescriptor(x,O))})}return w})({},F);F=h(F,{type:D,props:p,payload:_}),g({state:F,prevState:T})},pendingRequests:(y=[],{add:function(D){return y.push(D),D.finally(function(){y=y.filter(function(_){return _!==D})})},cancelAll:function(){y.forEach(function(D){return D.cancel()})},isEmpty:function(){return y.length===0},wait:function(D){return as?(as=!1,us=D?Promise.race([Promise.all(y),new Promise(function(_){return setTimeout(_,D)})]):Promise.all(y),us.then(function(){as=!0})):us}})}})(d0,n,function(h){var p,g,y=h.prevState,F=h.state;if(n.onStateChange(cu({prevState:y,state:F,refresh:i,navigator:n.navigator},u)),!c()&&(p=F.context)!==null&&p!==void 0&&(g=p.algoliaInsightsPlugin)!==null&&g!==void 0&&g.__automaticInsights&&n.insights!==!1){var D=ff({__autocomplete_clickAnalytics:!1});n.plugins.push(D),o([D])}}),u=(function(h){var p=h.store;return{setActiveItemId:function(g){p.dispatch("setActiveItemId",g)},setQuery:function(g){p.dispatch("setQuery",g)},setCollections:function(g){var y=0,F=g.map(function(D){return Ci(Ci({},D),{},{items:ga(D.items).map(function(_){return Ci(Ci({},_),{},{__autocomplete_id:y++})})})});p.dispatch("setCollections",F)},setIsOpen:function(g){p.dispatch("setIsOpen",g)},setStatus:function(g){p.dispatch("setStatus",g)},setContext:function(g){p.dispatch("setContext",g)}}})({store:r}),a=s0(cu({props:n,refresh:i,store:r,navigator:n.navigator},u));function i(){return ou(cu({event:new Event("input"),nextState:{isOpen:r.getState().isOpen},props:n,navigator:n.navigator,query:r.getState().query,refresh:i,store:r},u))}function o(h){h.forEach(function(p){var g;return(g=p.subscribe)===null||g===void 0?void 0:g.call(p,cu(cu({},u),{},{navigator:n.navigator,refresh:i,onSelect:function(y){t.push({onSelect:y})},onActive:function(y){t.push({onActive:y})},onResolve:function(y){t.push({onResolve:y})}}))})}function c(){return n.plugins.some(function(h){return h.name==="aa.algoliaInsightsPlugin"})}if(n.insights&&!c()){var l=typeof n.insights=="boolean"?{}:n.insights;n.plugins.push(ff(l))}return o(n.plugins),(function(h){var p,g,y=h.metadata,F=h.environment;if(!((p=F.navigator)===null||p===void 0||(g=p.userAgent)===null||g===void 0)&&g.includes("Algolia Crawler")){var D=F.document.createElement("meta"),_=F.document.querySelector("head");D.name="algolia:metadata",setTimeout(function(){D.content=JSON.stringify(y),_.appendChild(D)},0)}})({metadata:l0({plugins:n.plugins,options:e}),environment:n.environment}),cu(cu({refresh:i,navigator:n.navigator},a),u)}var cs="https://askai.algolia.com/chat";function v0(e){var t=e.translations,n=(t===void 0?{}:t).poweredByText,r=n===void 0?"Powered by":n;return b.createElement("a",{href:"https://www.algolia.com/ref/docsearch/?utm_source=".concat(window.location.hostname,"&utm_medium=referral&utm_content=powered_by&utm_campaign=docsearch"),target:"_blank",rel:"noopener noreferrer"},b.createElement("span",{className:"DocSearch-Label"},r),b.createElement("svg",{width:"80",height:"24","aria-label":"Algolia",role:"img",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2196.2 500"},b.createElement("defs",null,b.createElement("style",null,".cls-1,.cls-2{fill:#003dff;}.cls-2{fill-rule:evenodd;}")),b.createElement("path",{className:"cls-2",d:"M1070.38,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),b.createElement("rect",{className:"cls-1",x:"1845.88",y:"104.73",width:"62.58",height:"277.9",rx:"5.9",ry:"5.9"}),b.createElement("path",{className:"cls-2",d:"M1851.78,71.38h50.77c3.26,0,5.9-2.64,5.9-5.9V5.9c0-3.62-3.24-6.39-6.82-5.83l-50.77,7.95c-2.87,.45-4.99,2.92-4.99,5.83v51.62c0,3.26,2.64,5.9,5.9,5.9Z"}),b.createElement("path",{className:"cls-2",d:"M1764.03,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),b.createElement("path",{className:"cls-2",d:"M1631.95,142.72c-11.14-12.25-24.83-21.65-40.78-28.31-15.92-6.53-33.26-9.85-52.07-9.85-18.78,0-36.15,3.17-51.92,9.85-15.59,6.66-29.29,16.05-40.76,28.31-11.47,12.23-20.38,26.87-26.76,44.03-6.38,17.17-9.24,37.37-9.24,58.36,0,20.99,3.19,36.87,9.55,54.21,6.38,17.32,15.14,32.11,26.45,44.36,11.29,12.23,24.83,21.62,40.6,28.46,15.77,6.83,40.12,10.33,52.4,10.48,12.25,0,36.78-3.82,52.7-10.48,15.92-6.68,29.46-16.23,40.78-28.46,11.29-12.25,20.05-27.04,26.25-44.36,6.22-17.34,9.24-33.22,9.24-54.21,0-20.99-3.34-41.19-10.03-58.36-6.38-17.17-15.14-31.8-26.43-44.03Zm-44.43,163.75c-11.47,15.75-27.56,23.7-48.09,23.7-20.55,0-36.63-7.8-48.1-23.7-11.47-15.75-17.21-34.01-17.21-61.2,0-26.89,5.59-49.14,17.06-64.87,11.45-15.75,27.54-23.52,48.07-23.52,20.55,0,36.63,7.78,48.09,23.52,11.47,15.57,17.36,37.98,17.36,64.87,0,27.19-5.72,45.3-17.19,61.2Z"}),b.createElement("path",{className:"cls-2",d:"M894.42,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),b.createElement("path",{className:"cls-2",d:"M2133.97,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),b.createElement("path",{className:"cls-2",d:"M1314.05,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-11.79,18.34-19.6,39.64-22.11,62.59-.58,5.3-.88,10.68-.88,16.14s.31,11.15,.93,16.59c4.28,38.09,23.14,71.61,50.66,94.52,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47h0c17.99,0,34.61-5.93,48.16-15.97,16.29-11.58,28.88-28.54,34.48-47.75v50.26h-.11v11.08c0,21.84-5.71,38.27-17.34,49.36-11.61,11.08-31.04,16.63-58.25,16.63-11.12,0-28.79-.59-46.6-2.41-2.83-.29-5.46,1.5-6.27,4.22l-12.78,43.11c-1.02,3.46,1.27,7.02,4.83,7.53,21.52,3.08,42.52,4.68,54.65,4.68,48.91,0,85.16-10.75,108.89-32.21,21.48-19.41,33.15-48.89,35.2-88.52V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,64.1s.65,139.13,0,143.36c-12.08,9.77-27.11,13.59-43.49,14.7-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-1.32,0-2.63-.03-3.94-.1-40.41-2.11-74.52-37.26-74.52-79.38,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33Z"}),b.createElement("path",{className:"cls-1",d:"M249.83,0C113.3,0,2,110.09,.03,246.16c-2,138.19,110.12,252.7,248.33,253.5,42.68,.25,83.79-10.19,120.3-30.03,3.56-1.93,4.11-6.83,1.08-9.51l-23.38-20.72c-4.75-4.21-11.51-5.4-17.36-2.92-25.48,10.84-53.17,16.38-81.71,16.03-111.68-1.37-201.91-94.29-200.13-205.96,1.76-110.26,92-199.41,202.67-199.41h202.69V407.41l-115-102.18c-3.72-3.31-9.42-2.66-12.42,1.31-18.46,24.44-48.53,39.64-81.93,37.34-46.33-3.2-83.87-40.5-87.34-86.81-4.15-55.24,39.63-101.52,94-101.52,49.18,0,89.68,37.85,93.91,85.95,.38,4.28,2.31,8.27,5.52,11.12l29.95,26.55c3.4,3.01,8.79,1.17,9.63-3.3,2.16-11.55,2.92-23.58,2.07-35.92-4.82-70.34-61.8-126.93-132.17-131.26-80.68-4.97-148.13,58.14-150.27,137.25-2.09,77.1,61.08,143.56,138.19,145.26,32.19,.71,62.03-9.41,86.14-26.95l150.26,133.2c6.44,5.71,16.61,1.14,16.61-7.47V9.48C499.66,4.25,495.42,0,490.18,0H249.83Z"})))}function ls(e){return b.createElement("svg",{width:"20",height:"20","aria-label":e.ariaLabel,viewBox:"0 0 24 24",role:"img"},b.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.4"},e.children))}function m0(e){var t=e.translations,n=t===void 0?{}:t,r=e.isAskAiActive,u=r!==void 0&&r,a=n.selectText,i=a===void 0?"Select":a,o=n.selectKeyAriaLabel,c=o===void 0?"Enter key":o,l=n.submitQuestionText,h=l===void 0?"Submit question":l,p=n.navigateText,g=p===void 0?"Navigate":p,y=n.navigateUpKeyAriaLabel,F=y===void 0?"Arrow up":y,D=n.navigateDownKeyAriaLabel,_=D===void 0?"Arrow down":D,T=n.closeText,w=T===void 0?"Close":T,S=n.backToSearchText,x=S===void 0?"Back to search":S,O=n.closeKeyAriaLabel,I=O===void 0?"Escape key":O,B=n.poweredByText,d=B===void 0?"Powered by":B;return b.createElement(b.Fragment,null,b.createElement("div",{className:"DocSearch-Logo"},b.createElement(v0,{translations:{poweredByText:d}})),b.createElement("ul",{className:"DocSearch-Commands"},b.createElement("li",null,b.createElement("kbd",{className:"DocSearch-Commands-Key"},b.createElement(ls,{ariaLabel:_},b.createElement("path",{d:"M12 5v14"}),b.createElement("path",{d:"m19 12-7 7-7-7"}))),b.createElement("kbd",{className:"DocSearch-Commands-Key"},b.createElement(ls,{ariaLabel:F},b.createElement("path",{d:"m5 12 7-7 7 7"}),b.createElement("path",{d:"M12 19V5"}))),b.createElement("span",{className:"DocSearch-Label"},g)),b.createElement("li",null,b.createElement("kbd",{className:"DocSearch-Commands-Key"},b.createElement(ls,{ariaLabel:c},b.createElement("polyline",{points:"9 10 4 15 9 20"}),b.createElement("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"}))),b.createElement("span",{className:"DocSearch-Label"},u?h:i)),b.createElement("li",null,b.createElement("kbd",{className:"DocSearch-Commands-Key"},b.createElement("span",{className:"DocSearch-Escape-Key"},"ESC")),b.createElement("span",{className:"DocSearch-Label","aria-label":I},u?x:w))))}function g0(e){var t=e.hit,n=e.children;return b.createElement("a",{href:t.url},n)}function Pa(e){var t=e.className;return b.createElement("svg",{viewBox:"0 0 38 38",className:t,stroke:"currentColor",strokeOpacity:".5"},b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},b.createElement("circle",{strokeOpacity:".3",cx:"18",cy:"18",r:"18"}),b.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},b.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))))}function fs(e){var t=e.className,n=t===void 0?"":t;return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round",className:"DocSearch-Hit-icon-sparkles ".concat(n)},b.createElement("path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"}),b.createElement("path",{d:"M20 3v4"}),b.createElement("path",{d:"M22 5h-4"}),b.createElement("path",{d:"M4 17v2"}),b.createElement("path",{d:"M5 18H3"}))}function y0(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"M3.18 6.6a8.23 8.23 0 1112.93 9.94h0a8.23 8.23 0 01-11.63 0"}),b.createElement("path",{d:"M6.44 7.25H2.55V3.36M10.45 6v5.6M10.45 11.6L13 13"})))}function ja(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("path",{d:"M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function D0(){return b.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-triangle-alert-icon lucide-triangle-alert"},b.createElement("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),b.createElement("path",{d:"M12 9v4"}),b.createElement("path",{d:"M12 17h.01"}))}function b0(){return b.createElement("svg",{className:"DocSearch-Hit-Select-Icon",width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"M18 3v4c0 2-2 4-4 4H2"}),b.createElement("path",{d:"M8 17l-6-6 6-6"})))}var A0=function(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),b.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),b.createElement("path",{d:"M10 9H8"}),b.createElement("path",{d:"M16 13H8"}),b.createElement("path",{d:"M16 17H8"}))};function E0(e){switch(e.type){case"lvl1":return b.createElement(A0,null);case"content":return b.createElement(_0,null);default:return b.createElement(F0,null)}}function F0(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("line",{x1:"4",x2:"20",y1:"9",y2:"9"}),b.createElement("line",{x1:"4",x2:"20",y1:"15",y2:"15"}),b.createElement("line",{x1:"10",x2:"8",y1:"3",y2:"21"}),b.createElement("line",{x1:"16",x2:"14",y1:"3",y2:"21"}))}function _0(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("path",{d:"M17 5H3h14zm0 5H3h14zm0 5H3h14z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function Rf(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("path",{d:"M10 14.2L5 17l1-5.6-4-4 5.5-.7 2.5-5 2.5 5 5.6.8-4 4 .9 5.5z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function C0(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",fill:"none"},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99984 1.29102C4.74264 1.29102 1.2915 4.74215 1.2915 8.99935C1.2915 13.2565 4.74264 16.7077 8.99984 16.7077C13.257 16.7077 16.7082 13.2565 16.7082 8.99935C16.7082 4.74215 13.257 1.29102 8.99984 1.29102ZM0.0415039 8.99935C0.0415039 4.0518 4.05229 0.0410156 8.99984 0.0410156C13.9474 0.0410156 17.9582 4.0518 17.9582 8.99935C17.9582 13.9469 13.9474 17.9577 8.99984 17.9577C4.05229 17.9577 0.0415039 13.9469 0.0415039 8.99935ZM5.87484 6.49935C5.87484 6.15417 6.15466 5.87435 6.49984 5.87435H11.4998C11.845 5.87435 12.1248 6.15417 12.1248 6.49935V11.4993C12.1248 11.8445 11.845 12.1243 11.4998 12.1243H6.49984C6.15466 12.1243 5.87484 11.8445 5.87484 11.4993V6.49935ZM7.12484 7.12435V10.8743H10.8748V7.12435H7.12484Z",fill:"currentcolor"}))}function k0(){return b.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"M19 4.8a16 16 0 00-2-1.2m-3.3-1.2A16 16 0 001.1 4.7M16.7 8a12 12 0 00-2.8-1.4M10 6a12 12 0 00-6.7 2M12.3 14.7a4 4 0 00-4.5 0M14.5 11.4A8 8 0 0010 10M3 16L18 2M10 18h0"}))}function w0(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"#5a5e9a",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"m13.5 8.5-5 5"}),b.createElement("path",{d:"m8.5 8.5 5 5"}),b.createElement("circle",{cx:"11",cy:"11",r:"8"}),b.createElement("path",{d:"m21 21-4.3-4.3"}))}function x0(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:4,height:16,viewBox:"0 0 4 16",fill:"none"},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.99984 1.95898C1.88478 1.95898 1.7915 2.05226 1.7915 2.16732C1.7915 2.28238 1.88478 2.37565 1.99984 2.37565C2.1149 2.37565 2.20817 2.28238 2.20817 2.16732C2.20817 2.05226 2.1149 1.95898 1.99984 1.95898ZM0.541504 2.16732C0.541504 1.3619 1.19442 0.708984 1.99984 0.708984C2.80525 0.708984 3.45817 1.3619 3.45817 2.16732C3.45817 2.97273 2.80525 3.62565 1.99984 3.62565C1.19442 3.62565 0.541504 2.97273 0.541504 2.16732ZM1.99984 7.79232C1.88478 7.79232 1.7915 7.88559 1.7915 8.00065C1.7915 8.11571 1.88478 8.20898 1.99984 8.20898C2.1149 8.20898 2.20817 8.11571 2.20817 8.00065C2.20817 7.88559 2.1149 7.79232 1.99984 7.79232ZM0.541504 8.00065C0.541504 7.19524 1.19442 6.54232 1.99984 6.54232C2.80525 6.54232 3.45817 7.19524 3.45817 8.00065C3.45817 8.80607 2.80525 9.45898 1.99984 9.45898C1.19442 9.45898 0.541504 8.80607 0.541504 8.00065ZM1.99984 13.6257C1.88478 13.6257 1.7915 13.7189 1.7915 13.834C1.7915 13.949 1.88478 14.0423 1.99984 14.0423C2.1149 14.0423 2.20817 13.949 2.20817 13.834C2.20817 13.7189 2.1149 13.6257 1.99984 13.6257ZM0.541504 13.834C0.541504 13.0286 1.19442 12.3757 1.99984 12.3757C2.80525 12.3757 3.45817 13.0286 3.45817 13.834C3.45817 14.6394 2.80525 15.2923 1.99984 15.2923C1.19442 15.2923 0.541504 14.6394 0.541504 13.834Z",fill:"currentcolor"}))}function S0(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},b.createElement("path",{d:"M9 0.875C10.6068 0.875 12.1776 1.35149 13.5137 2.24414C14.8498 3.13693 15.8919 4.40598 16.5068 5.89062C17.1218 7.37522 17.2822 9.00892 16.9688 10.585C16.6552 12.1611 15.8814 13.6088 14.7451 14.7451C13.6088 15.8814 12.1611 16.6552 10.585 16.9688C9.00892 17.2822 7.37523 17.1218 5.89062 16.5068C4.40598 15.8919 3.13693 14.8498 2.24414 13.5137C1.35149 12.1776 0.875 10.6068 0.875 9C0.875 8.65482 1.15482 8.375 1.5 8.375C1.84518 8.375 2.125 8.65482 2.125 9C2.125 10.3596 2.52792 11.6888 3.2832 12.8193C4.03864 13.9499 5.1129 14.8312 6.36914 15.3516C7.62523 15.8718 9.00736 16.0083 10.3408 15.7432C11.6744 15.4779 12.8998 14.8228 13.8613 13.8613C14.8228 12.8998 15.4779 11.6744 15.7432 10.3408C16.0083 9.00736 15.8718 7.62523 15.3516 6.36914C14.8312 5.1129 13.9499 4.03864 12.8193 3.2832C11.6888 2.52792 10.3596 2.125 9 2.125C7.06829 2.125 5.21604 2.89096 3.82129 4.22949L3.00879 5.04199H5.66699C6.01202 5.04217 6.29199 5.32192 6.29199 5.66699C6.29182 6.01191 6.01191 6.29182 5.66699 6.29199H1.5C1.45939 6.29199 1.41889 6.28716 1.37891 6.2793C1.36148 6.27587 1.345 6.26949 1.32812 6.26465C1.267 6.24714 1.20782 6.22205 1.15332 6.18555C1.08536 6.14005 1.02604 6.08256 0.980469 6.01465C0.970244 5.99942 0.962841 5.98268 0.954102 5.9668C0.904937 5.87756 0.875056 5.77606 0.875 5.66699V1.5C0.875 1.15482 1.15482 0.875002 1.5 0.875C1.84518 0.875 2.125 1.15482 2.125 1.5V4.15723L2.94141 3.3418L2.9502 3.33301C4.57158 1.77433 6.73388 0.875 9 0.875ZM9.33301 4.20801C9.67808 4.20801 9.95783 4.48798 9.95801 4.83301V9.44727L12.9463 10.9414C13.2548 11.0958 13.3798 11.4707 13.2256 11.7793C13.0712 12.088 12.6955 12.213 12.3867 12.0586L9.05371 10.3926C8.84198 10.2867 8.70801 10.0697 8.70801 9.83301V4.83301C8.70818 4.48809 8.98809 4.20819 9.33301 4.20801Z",fill:"currentcolor"}))}function T0(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none"},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.712717 3.38039C1.14249 2.95062 1.72538 2.70917 2.33317 2.70917H8.1665C8.51168 2.70917 8.7915 2.989 8.7915 3.33417C8.7915 3.67935 8.51168 3.95917 8.1665 3.95917H2.33317C2.0569 3.95917 1.79195 4.06892 1.5966 4.26427C1.40125 4.45962 1.2915 4.72457 1.2915 5.00084V16.6675C1.2915 16.9438 1.40125 17.2087 1.5966 17.4041C1.79195 17.5994 2.0569 17.7092 2.33317 17.7092H13.9998C14.2761 17.7092 14.5411 17.5994 14.7364 17.4041C14.9318 17.2087 15.0415 16.9438 15.0415 16.6675V10.8342C15.0415 10.489 15.3213 10.2092 15.6665 10.2092C16.0117 10.2092 16.2915 10.489 16.2915 10.8342V16.6675C16.2915 17.2753 16.0501 17.8582 15.6203 18.288C15.1905 18.7177 14.6076 18.9592 13.9998 18.9592H2.33317C1.72538 18.9592 1.14249 18.7177 0.712717 18.288C0.282947 17.8582 0.0415039 17.2753 0.0415039 16.6675V5.00084C0.0415039 4.39305 0.282947 3.81016 0.712717 3.38039Z",fill:"currentcolor"}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6665 2.19141C15.3634 2.19141 15.0728 2.3118 14.8584 2.52611L7.06419 10.3204L6.52548 12.4752L8.68031 11.9365L16.4746 4.14223C16.6889 3.92792 16.8093 3.63725 16.8093 3.33417C16.8093 3.03109 16.6889 2.74043 16.4746 2.52611C16.2603 2.3118 15.9696 2.19141 15.6665 2.19141ZM13.9746 1.64223C14.4233 1.1935 15.0319 0.941406 15.6665 0.941406C16.3011 0.941406 16.9097 1.1935 17.3584 1.64223C17.8072 2.09096 18.0593 2.69957 18.0593 3.33417C18.0593 3.96877 17.8072 4.57738 17.3584 5.02611L9.44178 12.9428C9.36168 13.0229 9.26132 13.0797 9.15142 13.1072L5.81809 13.9405C5.6051 13.9938 5.3798 13.9314 5.22456 13.7761C5.06932 13.6209 5.00692 13.3956 5.06016 13.1826L5.8935 9.84925C5.92097 9.73936 5.9778 9.639 6.0579 9.5589L13.9746 1.64223Z",fill:"currentcolor"}))}var Si,O0={before:"Searched for ",separator:", ",lastSeparator:" and ",after:""};function I0(e){var t=e.queries,n=e.translations,r=e.onSearchQueryClick;if(t.length===0)return null;if(typeof n.aggregatedToolCallNode=="function")return b.createElement(b.Fragment,null,n.aggregatedToolCallNode(t,r));var u=(n.aggregatedToolCallText?n.aggregatedToolCallText(t):O0)||{},a=u.before,i=a===void 0?"":a,o=u.separator,c=o===void 0?", ":o,l=u.lastSeparator,h=l===void 0?" and ":l,p=u.after,g=p===void 0?"":p;return b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent-Tool Tool--AggregatedResult"},b.createElement(ma,{size:18}),b.createElement("span",null,i&&b.createElement("span",null,i),t.map(function(y,F){return b.createElement(tr,{key:y+F},b.createElement("span",{role:"button",tabIndex:0,className:"DocSearch-AskAiScreen-MessageContent-Tool-Query",onKeyDown:function(D){D.key!=="enter"&&D.key!==" "||(D.preventDefault(),r(y))},onClick:function(){return r(y)}},'"',y,'"'),F<t.length-2&&c,F===t.length-2&&h)}),g&&b.createElement("span",null,g)))}var lu={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function zf(e){lu=e}var Na={exec:function(){return null}};function vt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=typeof e=="string"?e:e.source,r={replace:function(u,a){var i=typeof a=="string"?a:a.source;return i=i.replace(ln.caret,"$1"),n=n.replace(u,i),r},getRegex:function(){return new RegExp(n,t)}};return r}var B0=(function(){try{return!!new RegExp("(?<=1)(?<!1)")}catch(e){return!1}})(),ln={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDD40-\uDD65\uDD6F-\uDD85\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDDB0-\uDDDB\uDDE0-\uDDE9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D\uDD30-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE96\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD833[\uDCF0-\uDCF9]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDDD0-\uDDED\uDDF0-\uDDFA\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])/,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:function(e){return new RegExp("^( {0,3}".concat(e,")((?:[ ][^\\n]*)?(?:\\n|$))"))},nextBulletRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))"))},hrRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"))},fencesBeginRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}(?:```|~~~)"))},headingBeginRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}#"))},htmlBeginRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}<(?:[a-z].*>|!--)"),"i")}},Ra=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ds=/(?:[*+-]|\d{1,9}[.)])/,Lf=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Mf=vt(Lf).replace(/bull/g,ds).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),P0=vt(Lf).replace(/bull/g,ds).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ps=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,hs=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,j0=vt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",hs).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),N0=vt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ds).getRegex(),Ti="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vs=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,R0=vt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",vs).replace("tag",Ti).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$f=vt(ps).replace("hr",Ra).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ti).getRegex(),ms={blockquote:vt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$f).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:j0,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Ra,html:R0,lheading:Mf,list:N0,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:$f,table:Na,text:/^[^\n]+/},Zf=vt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ra).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ti).getRegex(),z0=C(C({},ms),{},{lheading:P0,table:Zf,paragraph:vt(ps).replace("hr",Ra).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Zf).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ti).getRegex()}),L0=C(C({},ms),{},{html:vt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vs).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Na,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:vt(ps).replace("hr",Ra).replace("heading",` *#{1,6} *[^
|
|
26
|
-
]`).replace("lheading",Mf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),qf=/^( {2,}|\\)\n(?!\s*$)/,Oi=/(?:[!-\/:-@\[-`\{-~\xA1-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2010-\u2027\u2030-\u205E\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/,gs=/(?:[\t-\r -\/:-@\[-`\{-~\xA0-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2000-\u200A\u2010-\u2029\u202F-\u205F\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/,Hf=/(?:[\0-\x08\x0E-\x1F0-9A-Za-z\x7F-\x9F\xAA\xAD\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376-\u037D\u037F-\u0383\u0386\u0388-\u03F5\u03F7-\u0481\u0483-\u0559\u0560-\u0588\u058B\u058C\u0590-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05F2\u05F5-\u0605\u0610-\u061A\u061C\u0620-\u0669\u066E-\u06D3\u06D5-\u06DD\u06DF-\u06E8\u06EA-\u06FC\u06FF\u070E-\u07F5\u07FA-\u07FD\u0800-\u082F\u083F-\u085D\u085F-\u0887\u0889-\u0963\u0966-\u096F\u0971-\u09F1\u09F4-\u09F9\u09FC\u09FE-\u0A75\u0A77-\u0AEF\u0AF2-\u0B6F\u0B71-\u0BF2\u0BFB-\u0C76\u0C78-\u0C7E\u0C80-\u0C83\u0C85-\u0D4E\u0D50-\u0D78\u0D7A-\u0DF3\u0DF5-\u0E3E\u0E40-\u0E4E\u0E50-\u0E59\u0E5C-\u0F00\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39\u0F3E-\u0F84\u0F86-\u0FBD\u0FC6\u0FCD\u0FDB-\u1049\u1050-\u109D\u10A0-\u10FA\u10FC-\u135F\u1369-\u138F\u139A-\u13FF\u1401-\u166C\u166F-\u167F\u1681-\u169A\u169D-\u16EA\u16EE-\u1734\u1737-\u17D3\u17D7\u17DC-\u17FF\u180B-\u193F\u1941-\u1943\u1946-\u19DD\u1A00-\u1A1D\u1A20-\u1A9F\u1AA7\u1AAE-\u1B4D\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BFB\u1C00-\u1C3A\u1C40-\u1C7D\u1C80-\u1CBF\u1CC8-\u1CD2\u1CD4-\u1FBC\u1FBE\u1FC2-\u1FCC\u1FD0-\u1FDC\u1FE0-\u1FEC\u1FF0-\u1FFC\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u2079\u207F-\u2089\u208F-\u209F\u20C2-\u20FF\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u218C-\u218F\u242A-\u243F\u244B-\u249B\u24EA-\u24FF\u2776-\u2793\u2B74\u2B75\u2C00-\u2CE4\u2CEB-\u2CF8\u2CFD\u2D00-\u2D6F\u2D71-\u2DFF\u2E2F\u2E5E-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3040-\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u318F\u3192-\u3195\u31A0-\u31BF\u31E6-\u31EE\u31F0-\u31FF\u321F-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48F\uA4C7-\uA4FD\uA500-\uA60C\uA610-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA6F8-\uA6FF\uA717-\uA71F\uA722-\uA788\uA78B-\uA827\uA82C-\uA835\uA83A-\uA873\uA878-\uA8CD\uA8D0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA95E\uA960-\uA9C0\uA9CE-\uA9DD\uA9E0-\uAA5B\uAA60-\uAA76\uAA7A-\uAADD\uAAE0-\uAAEF\uAAF2-\uAB5A\uAB5C-\uAB69\uAB6C-\uABEA\uABEC-\uD7FF\uE000-\uFB28\uFB2A-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDD0-\uFDFB\uFE00-\uFE0F\uFE1A-\uFE2F\uFE53\uFE67\uFE6C-\uFEFE\uFF00\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]|\uD800[\uDC00-\uDCFF\uDD03-\uDD36\uDD40-\uDD78\uDD8A\uDD8B\uDD8F\uDD9D-\uDD9F\uDDA1-\uDDCF\uDDFD-\uDF9E\uDFA0-\uDFCF\uDFD1-\uDFFF]|\uD801[\uDC00-\uDD6E\uDD70-\uDFFF]|\uD802[\uDC00-\uDC56\uDC58-\uDC76\uDC79-\uDD1E\uDD20-\uDD3E\uDD40-\uDE4F\uDE59-\uDE7E\uDE80-\uDEC7\uDEC9-\uDEEF\uDEF7-\uDF38\uDF40-\uDF98\uDF9D-\uDFFF]|\uD803[\uDC00-\uDD6D\uDD6F-\uDD8D\uDD90-\uDEAC\uDEAE-\uDECF\uDED9-\uDF54\uDF5A-\uDF85\uDF8A-\uDFFF]|\uD804[\uDC00-\uDC46\uDC4E-\uDCBA\uDCBD\uDCC2-\uDD3F\uDD44-\uDD73\uDD76-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE0-\uDE37\uDE3E-\uDEA8\uDEAA-\uDFD3\uDFD6\uDFD9-\uDFFF]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5C\uDC5E-\uDCC5\uDCC7-\uDDC0\uDDD8-\uDE40\uDE44-\uDE5F\uDE6D-\uDEB8\uDEBA-\uDF3B\uDF40-\uDFFF]|\uD806[\uDC00-\uDC3A\uDC3C-\uDD43\uDD47-\uDDE1\uDDE3-\uDE3E\uDE47-\uDE99\uDE9D\uDEA3-\uDEFF\uDF0A-\uDFE0\uDFE2-\uDFFF]|\uD807[\uDC00-\uDC40\uDC46-\uDC6F\uDC72-\uDEF6\uDEF9-\uDF42\uDF50-\uDFD4\uDFF2-\uDFFE]|[\uD808\uD80A\uD80C-\uD819\uD81C-\uD82E\uD830-\uD832\uD837\uD83F-\uDBFF][\uDC00-\uDFFF]|\uD809[\uDC00-\uDC6F\uDC75-\uDFFF]|\uD80B[\uDC00-\uDFF0\uDFF3-\uDFFF]|\uD81A[\uDC00-\uDE6D\uDE70-\uDEF4\uDEF6-\uDF36\uDF40-\uDF43\uDF46-\uDFFF]|\uD81B[\uDC00-\uDD6C\uDD70-\uDE96\uDE9B-\uDFE1\uDFE3-\uDFFF]|\uD82F[\uDC00-\uDC9B\uDC9D\uDC9E\uDCA0-\uDFFF]|\uD833[\uDCF0-\uDCF9\uDCFD-\uDCFF\uDEB4-\uDEB9\uDED1-\uDEDF\uDEF1-\uDF4F\uDFC4-\uDFFF]|\uD834[\uDCF6-\uDCFF\uDD27\uDD28\uDD65-\uDD69\uDD6D-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDDEB-\uDDFF\uDE42-\uDE44\uDE46-\uDEFF\uDF57-\uDFFF]|\uD835[\uDC00-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE8C-\uDFFF]|\uD838[\uDC00-\uDD4E\uDD50-\uDEFE\uDF00-\uDFFF]|\uD839[\uDC00-\uDDFE\uDE00-\uDFFF]|\uD83A[\uDC00-\uDD5D\uDD60-\uDFFF]|\uD83B[\uDC00-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDD2D\uDD2F-\uDEEF\uDEF2-\uDFFF]|\uD83C[\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCD0\uDCF6-\uDD0C\uDDAE-\uDDE5\uDE03-\uDE0F\uDE3C-\uDE3F\uDE49-\uDE4F\uDE52-\uDE5F\uDE66-\uDEFF]|\uD83D[\uDED9-\uDEDB\uDEED-\uDEEF\uDEFD-\uDEFF\uDFDA-\uDFDF\uDFEC-\uDFEF\uDFF1-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE\uDCAF\uDCBC-\uDCBF\uDCC2-\uDCCF\uDCD9-\uDCFF\uDE58-\uDE5F\uDE6E\uDE6F\uDE7D-\uDE7F\uDE8B-\uDE8D\uDEC7\uDEC9-\uDECC\uDEDD\uDEDE\uDEEB-\uDEEE\uDEF9-\uDEFF\uDF93\uDFF0-\uDFF9\uDFFB-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,M0=vt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,gs).getRegex(),Uf=/(?!~)(?:[!-\/:-@\[-`\{-~\xA1-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2010-\u2027\u2030-\u205E\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/,$0=vt(/link|precode-code|html/,"g").replace("link",yi(/\[(?:[^\[\]`]|(`+)[^`]+\1(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/,{a:1})).replace("precode-",B0?"(?<!`)()":"(^^|[^`])").replace("code",yi(/(`+)[^`]+\1(?!`)/,{b:1})).replace("html",/<(?! )[^<>]*?>/).getRegex(),Vf=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Z0=vt(Vf,"u").replace(/punct/g,Oi).getRegex(),q0=vt(Vf,"u").replace(/punct/g,Uf).getRegex(),Wf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",H0=vt(Wf,"gu").replace(/notPunctSpace/g,Hf).replace(/punctSpace/g,gs).replace(/punct/g,Oi).getRegex(),U0=vt(Wf,"gu").replace(/notPunctSpace/g,/(?:(?:[\0-\x08\x0E-\x1F0-9A-Za-z\x7F-\x9F\xAA\xAD\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376-\u037D\u037F-\u0383\u0386\u0388-\u03F5\u03F7-\u0481\u0483-\u0559\u0560-\u0588\u058B\u058C\u0590-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05F2\u05F5-\u0605\u0610-\u061A\u061C\u0620-\u0669\u066E-\u06D3\u06D5-\u06DD\u06DF-\u06E8\u06EA-\u06FC\u06FF\u070E-\u07F5\u07FA-\u07FD\u0800-\u082F\u083F-\u085D\u085F-\u0887\u0889-\u0963\u0966-\u096F\u0971-\u09F1\u09F4-\u09F9\u09FC\u09FE-\u0A75\u0A77-\u0AEF\u0AF2-\u0B6F\u0B71-\u0BF2\u0BFB-\u0C76\u0C78-\u0C7E\u0C80-\u0C83\u0C85-\u0D4E\u0D50-\u0D78\u0D7A-\u0DF3\u0DF5-\u0E3E\u0E40-\u0E4E\u0E50-\u0E59\u0E5C-\u0F00\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39\u0F3E-\u0F84\u0F86-\u0FBD\u0FC6\u0FCD\u0FDB-\u1049\u1050-\u109D\u10A0-\u10FA\u10FC-\u135F\u1369-\u138F\u139A-\u13FF\u1401-\u166C\u166F-\u167F\u1681-\u169A\u169D-\u16EA\u16EE-\u1734\u1737-\u17D3\u17D7\u17DC-\u17FF\u180B-\u193F\u1941-\u1943\u1946-\u19DD\u1A00-\u1A1D\u1A20-\u1A9F\u1AA7\u1AAE-\u1B4D\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BFB\u1C00-\u1C3A\u1C40-\u1C7D\u1C80-\u1CBF\u1CC8-\u1CD2\u1CD4-\u1FBC\u1FBE\u1FC2-\u1FCC\u1FD0-\u1FDC\u1FE0-\u1FEC\u1FF0-\u1FFC\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u2079\u207F-\u2089\u208F-\u209F\u20C2-\u20FF\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u218C-\u218F\u242A-\u243F\u244B-\u249B\u24EA-\u24FF\u2776-\u2793\u2B74\u2B75\u2C00-\u2CE4\u2CEB-\u2CF8\u2CFD\u2D00-\u2D6F\u2D71-\u2DFF\u2E2F\u2E5E-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3040-\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u318F\u3192-\u3195\u31A0-\u31BF\u31E6-\u31EE\u31F0-\u31FF\u321F-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48F\uA4C7-\uA4FD\uA500-\uA60C\uA610-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA6F8-\uA6FF\uA717-\uA71F\uA722-\uA788\uA78B-\uA827\uA82C-\uA835\uA83A-\uA873\uA878-\uA8CD\uA8D0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA95E\uA960-\uA9C0\uA9CE-\uA9DD\uA9E0-\uAA5B\uAA60-\uAA76\uAA7A-\uAADD\uAAE0-\uAAEF\uAAF2-\uAB5A\uAB5C-\uAB69\uAB6C-\uABEA\uABEC-\uD7FF\uE000-\uFB28\uFB2A-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDD0-\uFDFB\uFE00-\uFE0F\uFE1A-\uFE2F\uFE53\uFE67\uFE6C-\uFEFE\uFF00\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]|\uD800[\uDC00-\uDCFF\uDD03-\uDD36\uDD40-\uDD78\uDD8A\uDD8B\uDD8F\uDD9D-\uDD9F\uDDA1-\uDDCF\uDDFD-\uDF9E\uDFA0-\uDFCF\uDFD1-\uDFFF]|\uD801[\uDC00-\uDD6E\uDD70-\uDFFF]|\uD802[\uDC00-\uDC56\uDC58-\uDC76\uDC79-\uDD1E\uDD20-\uDD3E\uDD40-\uDE4F\uDE59-\uDE7E\uDE80-\uDEC7\uDEC9-\uDEEF\uDEF7-\uDF38\uDF40-\uDF98\uDF9D-\uDFFF]|\uD803[\uDC00-\uDD6D\uDD6F-\uDD8D\uDD90-\uDEAC\uDEAE-\uDECF\uDED9-\uDF54\uDF5A-\uDF85\uDF8A-\uDFFF]|\uD804[\uDC00-\uDC46\uDC4E-\uDCBA\uDCBD\uDCC2-\uDD3F\uDD44-\uDD73\uDD76-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE0-\uDE37\uDE3E-\uDEA8\uDEAA-\uDFD3\uDFD6\uDFD9-\uDFFF]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5C\uDC5E-\uDCC5\uDCC7-\uDDC0\uDDD8-\uDE40\uDE44-\uDE5F\uDE6D-\uDEB8\uDEBA-\uDF3B\uDF40-\uDFFF]|\uD806[\uDC00-\uDC3A\uDC3C-\uDD43\uDD47-\uDDE1\uDDE3-\uDE3E\uDE47-\uDE99\uDE9D\uDEA3-\uDEFF\uDF0A-\uDFE0\uDFE2-\uDFFF]|\uD807[\uDC00-\uDC40\uDC46-\uDC6F\uDC72-\uDEF6\uDEF9-\uDF42\uDF50-\uDFD4\uDFF2-\uDFFE]|[\uD808\uD80A\uD80C-\uD819\uD81C-\uD82E\uD830-\uD832\uD837\uD83F-\uDBFF][\uDC00-\uDFFF]|\uD809[\uDC00-\uDC6F\uDC75-\uDFFF]|\uD80B[\uDC00-\uDFF0\uDFF3-\uDFFF]|\uD81A[\uDC00-\uDE6D\uDE70-\uDEF4\uDEF6-\uDF36\uDF40-\uDF43\uDF46-\uDFFF]|\uD81B[\uDC00-\uDD6C\uDD70-\uDE96\uDE9B-\uDFE1\uDFE3-\uDFFF]|\uD82F[\uDC00-\uDC9B\uDC9D\uDC9E\uDCA0-\uDFFF]|\uD833[\uDCF0-\uDCF9\uDCFD-\uDCFF\uDEB4-\uDEB9\uDED1-\uDEDF\uDEF1-\uDF4F\uDFC4-\uDFFF]|\uD834[\uDCF6-\uDCFF\uDD27\uDD28\uDD65-\uDD69\uDD6D-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDDEB-\uDDFF\uDE42-\uDE44\uDE46-\uDEFF\uDF57-\uDFFF]|\uD835[\uDC00-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE8C-\uDFFF]|\uD838[\uDC00-\uDD4E\uDD50-\uDEFE\uDF00-\uDFFF]|\uD839[\uDC00-\uDDFE\uDE00-\uDFFF]|\uD83A[\uDC00-\uDD5D\uDD60-\uDFFF]|\uD83B[\uDC00-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDD2D\uDD2F-\uDEEF\uDEF2-\uDFFF]|\uD83C[\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCD0\uDCF6-\uDD0C\uDDAE-\uDDE5\uDE03-\uDE0F\uDE3C-\uDE3F\uDE49-\uDE4F\uDE52-\uDE5F\uDE66-\uDEFF]|\uD83D[\uDED9-\uDEDB\uDEED-\uDEEF\uDEFD-\uDEFF\uDFDA-\uDFDF\uDFEC-\uDFEF\uDFF1-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE\uDCAF\uDCBC-\uDCBF\uDCC2-\uDCCF\uDCD9-\uDCFF\uDE58-\uDE5F\uDE6E\uDE6F\uDE7D-\uDE7F\uDE8B-\uDE8D\uDEC7\uDEC9-\uDECC\uDEDD\uDEDE\uDEEB-\uDEEE\uDEF9-\uDEFF\uDF93\uDFF0-\uDFF9\uDFFB-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|~)/).replace(/punctSpace/g,/(?!~)(?:[\t-\r -\/:-@\[-`\{-~\xA0-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2000-\u200A\u2010-\u2029\u202F-\u205F\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/).replace(/punct/g,Uf).getRegex(),V0=vt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Hf).replace(/punctSpace/g,gs).replace(/punct/g,Oi).getRegex(),W0=vt(/\\(punct)/,"gu").replace(/punct/g,Oi).getRegex(),G0=vt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),J0=vt(vs).replace("(?:-->|$)","-->").getRegex(),K0=vt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",J0).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ii=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Q0=vt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ii).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Gf=vt(/^!?\[(label)\]\[(ref)\]/).replace("label",Ii).replace("ref",hs).getRegex(),Jf=vt(/^!?\[(ref)\](?:\[\])?/).replace("ref",hs).getRegex(),Kf=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ys={_backpedal:Na,anyPunctuation:W0,autolink:G0,blockSkip:$0,br:qf,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Na,emStrongLDelim:Z0,emStrongRDelimAst:H0,emStrongRDelimUnd:V0,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Q0,nolink:Jf,punctuation:M0,reflink:Gf,reflinkSearch:vt("reflink|nolink(?!\\()","g").replace("reflink",Gf).replace("nolink",Jf).getRegex(),tag:K0,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Na},Y0=C(C({},ys),{},{link:vt(/^!?\[(label)\]\((.*?)\)/).replace("label",Ii).getRegex(),reflink:vt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ii).getRegex()}),Ds=C(C({},ys),{},{emStrongRDelimAst:U0,emStrongLDelim:q0,url:vt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Kf).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:vt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Kf).getRegex()}),X0=C(C({},Ds),{},{br:vt(qf).replace("{2,}","*").getRegex(),text:vt(Ds.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Bi={normal:ms,gfm:z0,pedantic:L0},za={normal:ys,gfm:Ds,breaks:X0,pedantic:Y0},em={"&":"&","<":"<",">":">",'"':""","'":"'"},Qf=function(e){return em[e]};function rr(e,t){if(t){if(ln.escapeTest.test(e))return e.replace(ln.escapeReplace,Qf)}else if(ln.escapeTestNoEncode.test(e))return e.replace(ln.escapeReplaceNoEncode,Qf);return e}function Yf(e){try{e=encodeURI(e).replace(ln.percentDecode,"%")}catch(t){return null}return e}function Xf(e,t){var n,r=e.replace(ln.findPipe,function(a,i,o){for(var c=!1,l=i;--l>=0&&o[l]==="\\";)c=!c;return c?"|":" |"}).split(ln.splitPipe),u=0;if(r[0].trim()||r.shift(),r.length>0&&!((n=r.at(-1))!==null&&n!==void 0&&n.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;u<r.length;u++)r[u]=r[u].trim().replace(ln.slashPipe,"|");return r}function La(e,t,n){var r=e.length;if(r===0)return"";for(var u=0;u<r&&e.charAt(r-u-1)===t;)u++;return e.slice(0,r-u)}function ed(e,t,n,r,u){var a=t.href,i=t.title||null,o=e[1].replace(u.other.outputLinkReplace,"$1");r.state.inLink=!0;var c={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,c}var Pi=Be(function e(t){Ie(this,e),it(this,"options",void 0),it(this,"rules",void 0),it(this,"lexer",void 0),this.options=t||lu},[{key:"space",value:function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}},{key:"code",value:function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:La(n,`
|
|
25
|
+
See: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems`),{source:R,items:ne}})})(S,x,o)}).then(function(S){return(function(T){var I=T.props,B=T.state,d=T.collections.reduce(function(R,Z){return Oi(Oi({},R),{},_f({},Z.source.sourceId,Oi(Oi({},Z.source),{},{getItems:function(){return Da(Z.items)}})))},{}),H=I.plugins.reduce(function(R,Z){return Z.reshape?Z.reshape(R):R},{sourcesBySourceId:d,state:B}).sourcesBySourceId;return Da(I.reshape({sourcesBySourceId:H,sources:Object.values(H),state:B})).filter(Boolean).map(function(R){return{source:R,items:R.getItems()}})})({collections:S,props:u,state:o.getState()})})}))).then(function(x){var S;y("idle"),l(x);var T=u.shouldPanelOpen({state:o.getState()});p((S=r.isOpen)!==null&&S!==void 0?S:u.openOnFocus&&!a&&T||T);var I=cu(o.getState());if(o.getState().activeItemId!==null&&I){var B=I.item,d=I.itemInputValue,H=I.itemUrl,R=I.source;R.onActive(lu({event:t,item:B,itemInputValue:d,itemUrl:H,refresh:i,source:R,state:o.getState()},c))}}).finally(function(){y("idle"),Ta&&u.environment.clearTimeout(Ta)});return o.pendingRequests.add(w)}function Oa(e){return Oa=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Oa(e)}var Gv=["event","props","refresh","store"];function Tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function du(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tf(Object(n),!0).forEach(function(r){Jv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jv(e,t,n){return(t=(function(r){var u=(function(a){if(Oa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Oa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Oa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ia(e){return Ia=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Ia(e)}var Qv=["props","refresh","store"],Yv=["inputElement","formElement","panelElement"],Xv=["inputElement"],em=["inputElement","maxLength"],tm=["source"],nm=["item","source"];function Of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Of(Object(n),!0).forEach(function(r){rm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Of(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rm(e,t,n){return(t=(function(r){var u=(function(a){if(Ia(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Ia(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Ia(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zu(e,t){if(e==null)return{};var n,r,u=(function(i,o){if(i==null)return{};var c,l,p={},m=Object.keys(i);for(l=0;l<m.length;l++)c=m[l],o.indexOf(c)>=0||(p[c]=i[c]);return p})(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}function um(e){var t=e.props,n=e.refresh,r=e.store,u=zu(e,Qv);return{getEnvironmentProps:function(a){var i=a.inputElement,o=a.formElement,c=a.panelElement;function l(p){!r.getState().isOpen&&r.pendingRequests.isEmpty()||p.target===i||[o,c].some(function(m){return(v=m)===(y=p.target)||v.contains(y);var v,y})===!1&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return on({onTouchStart:l,onMouseDown:l,onTouchMove:function(p){r.getState().isOpen!==!1&&i===t.environment.document.activeElement&&p.target!==i&&i.blur()}},zu(a,Yv))},getRootProps:function(a){return on({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-controls":r.getState().isOpen?r.getState().collections.map(function(i){var o=i.source;return In(t.id,"list",o)}).join(" "):void 0,"aria-labelledby":In(t.id,"label")},a)},getFormProps:function(a){a.inputElement;var i=zu(a,Xv),o=function(c){var l;t.onSubmit(on({event:c,refresh:n,state:r.getState()},u)),r.dispatch("submit",null),(l=a.inputElement)===null||l===void 0||l.blur()};return on({action:"",noValidate:!0,role:"search",onSubmit:function(c){c.preventDefault();var l=yf(t.plugins,r.pendingRequests);l!==void 0?l.then(function(){return o(c)}):o(c)},onReset:function(c){var l;c.preventDefault(),t.onReset(on({event:c,refresh:n,state:r.getState()},u)),r.dispatch("reset",null),(l=a.inputElement)===null||l===void 0||l.focus()}},i)},getLabelProps:function(a){return on({htmlFor:In(t.id,"input"),id:In(t.id,"label")},a)},getInputProps:function(a){var i;function o(D){(t.openOnFocus||r.getState().query)&&fu(on({event:D,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},u)),r.dispatch("focus",null)}var c=a||{};c.inputElement;var l=c.maxLength,p=l===void 0?512:l,m=zu(c,em),v=cu(r.getState()),y=(function(D){return!!(D&&D.match(Mv))})(((i=t.environment.navigator)===null||i===void 0?void 0:i.userAgent)||""),F=t.enterKeyHint||(v!=null&&v.itemUrl&&!y?"go":"search");return on({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&r.getState().activeItemId!==null?In(t.id,"item-".concat(r.getState().activeItemId),v==null?void 0:v.source):void 0,"aria-controls":r.getState().isOpen?r.getState().collections.filter(function(D){return D.items.length>0}).map(function(D){var _=D.source;return In(t.id,"list",_)}).join(" "):void 0,"aria-labelledby":In(t.id,"label"),value:r.getState().completion||r.getState().query,id:In(t.id,"input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:F,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:p,type:"search",onChange:function(D){var _=D.currentTarget.value;t.ignoreCompositionEvents&&Df(D).isComposing?u.setQuery(_):fu(on({event:D,props:t,query:_.slice(0,p),refresh:n,store:r},u))},onCompositionEnd:function(D){fu(on({event:D,props:t,query:D.currentTarget.value.slice(0,p),refresh:n,store:r},u))},onKeyDown:function(D){Df(D).isComposing||(function(_){var O=_.event,w=_.props,x=_.refresh,S=_.store,T=(function(L,ne){if(L==null)return{};var Q,$,Y=(function(me,se){if(me==null)return{};var K,V,ue={},oe=Object.keys(me);for(V=0;V<oe.length;V++)K=oe[V],se.indexOf(K)>=0||(ue[K]=me[K]);return ue})(L,ne);if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(L);for($=0;$<re.length;$++)Q=re[$],ne.indexOf(Q)>=0||Object.prototype.propertyIsEnumerable.call(L,Q)&&(Y[Q]=L[Q])}return Y})(_,Gv);if(O.key==="ArrowUp"||O.key==="ArrowDown"){var I=function(){var L=cu(S.getState()),ne=w.environment.document.getElementById(In(w.id,"item-".concat(S.getState().activeItemId),L==null?void 0:L.source));ne&&(ne.scrollIntoViewIfNeeded?ne.scrollIntoViewIfNeeded(!1):ne.scrollIntoView(!1))},B=function(){var L=cu(S.getState());if(S.getState().activeItemId!==null&&L){var ne=L.item,Q=L.itemInputValue,$=L.itemUrl,Y=L.source;Y.onActive(du({event:O,item:ne,itemInputValue:Q,itemUrl:$,refresh:x,source:Y,state:S.getState()},T))}};O.preventDefault(),S.getState().isOpen===!1&&(w.openOnFocus||S.getState().query)?fu(du({event:O,props:w,query:S.getState().query,refresh:x,store:S},T)).then(function(){S.dispatch(O.key,{nextActiveItemId:w.defaultActiveItemId}),B(),setTimeout(I,0)}):(S.dispatch(O.key,{}),B(),I())}else if(O.key==="Escape")O.preventDefault(),S.dispatch(O.key,null),S.pendingRequests.cancelAll();else if(O.key==="Tab")S.dispatch("blur",null),S.pendingRequests.cancelAll();else if(O.key==="Enter"){if(S.getState().activeItemId===null||S.getState().collections.every(function(L){return L.items.length===0})){var d=yf(w.plugins,S.pendingRequests);return void(d!==void 0?d.then(S.pendingRequests.cancelAll):w.debug||S.pendingRequests.cancelAll())}O.preventDefault();var H=cu(S.getState()),R=H.item,Z=H.itemInputValue,q=H.itemUrl,G=H.source;if(O.metaKey||O.ctrlKey)q!==void 0&&(G.onSelect(du({event:O,item:R,itemInputValue:Z,itemUrl:q,refresh:x,source:G,state:S.getState()},T)),w.navigator.navigateNewTab({itemUrl:q,item:R,state:S.getState()}));else if(O.shiftKey)q!==void 0&&(G.onSelect(du({event:O,item:R,itemInputValue:Z,itemUrl:q,refresh:x,source:G,state:S.getState()},T)),w.navigator.navigateNewWindow({itemUrl:q,item:R,state:S.getState()}));else if(!O.altKey){if(q!==void 0)return G.onSelect(du({event:O,item:R,itemInputValue:Z,itemUrl:q,refresh:x,source:G,state:S.getState()},T)),void w.navigator.navigate({itemUrl:q,item:R,state:S.getState()});fu(du({event:O,nextState:{isOpen:!1},props:w,query:Z,refresh:x,store:S},T)).then(function(){G.onSelect(du({event:O,item:R,itemInputValue:Z,itemUrl:q,refresh:x,source:G,state:S.getState()},T))})}}})(on({event:D,props:t,refresh:n,store:r},u))},onFocus:o,onBlur:Ci,onClick:function(D){a.inputElement!==t.environment.document.activeElement||r.getState().isOpen||o(D)}},m)},getPanelProps:function(a){return on({onMouseDown:function(i){i.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},a)},getListProps:function(a){var i=a||{},o=i.source,c=zu(i,tm);return on({role:"listbox","aria-labelledby":In(t.id,"label"),id:In(t.id,"list",o)},c)},getItemProps:function(a){var i=a.item,o=a.source,c=zu(a,nm);return on({id:In(t.id,"item-".concat(i.__autocomplete_id),o),role:"option","aria-selected":r.getState().activeItemId===i.__autocomplete_id,onMouseMove:function(l){if(i.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",i.__autocomplete_id);var p=cu(r.getState());if(r.getState().activeItemId!==null&&p){var m=p.item,v=p.itemInputValue,y=p.itemUrl,F=p.source;F.onActive(on({event:l,item:m,itemInputValue:v,itemUrl:y,refresh:n,source:F,state:r.getState()},u))}}},onMouseDown:function(l){l.preventDefault()},onClick:function(l){var p=o.getItemInputValue({item:i,state:r.getState()}),m=o.getItemUrl({item:i,state:r.getState()});(m?Promise.resolve():fu(on({event:l,nextState:{isOpen:!1},props:t,query:p,refresh:n,store:r},u))).then(function(){o.onSelect(on({event:l,item:i,itemInputValue:p,itemUrl:m,refresh:n,source:o,state:r.getState()},u))})}},c)}}}function Ba(e){return Ba=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Ba(e)}function If(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function am(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?If(Object(n),!0).forEach(function(r){Bf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):If(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bf(e,t,n){return(t=(function(r){var u=(function(a){if(Ba(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Ba(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Ba(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function im(e){var t,n,r,u,a=e.plugins,i=e.options,o=(t=(((n=i.__autocomplete_metadata)===null||n===void 0?void 0:n.userAgents)||[])[0])===null||t===void 0?void 0:t.segment,c=o?Bf({},o,Object.keys(((r=i.__autocomplete_metadata)===null||r===void 0?void 0:r.options)||{})):{};return{plugins:a.map(function(l){return{name:l.name,options:Object.keys(l.__autocomplete_pluginOptions||[])}}),options:am({"autocomplete-core":Object.keys(i)},c),ua:xv.concat(((u=i.__autocomplete_metadata)===null||u===void 0?void 0:u.userAgents)||[])}}function Pf(e){var t,n=e.state;return n.isOpen===!1||n.activeItemId===null?null:((t=cu(n))===null||t===void 0?void 0:t.itemInputValue)||null}function Pa(e){return Pa=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},Pa(e)}function jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jf(Object(n),!0).forEach(function(r){om(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function om(e,t,n){return(t=(function(r){var u=(function(a){if(Pa(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(Pa(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return Pa(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sm=function(e,t){switch(t.type){case"setActiveItemId":case"mousemove":return st(st({},e),{},{activeItemId:t.payload});case"setQuery":return st(st({},e),{},{query:t.payload,completion:null});case"setCollections":return st(st({},e),{},{collections:t.payload});case"setIsOpen":return st(st({},e),{},{isOpen:t.payload});case"setStatus":return st(st({},e),{},{status:t.payload});case"setContext":return st(st({},e),{},{context:st(st({},e.context),t.payload)});case"ArrowDown":var n=st(st({},e),{},{activeItemId:t.payload.hasOwnProperty("nextActiveItemId")?t.payload.nextActiveItemId:hf(1,e.activeItemId,ls(e),t.props.defaultActiveItemId)});return st(st({},n),{},{completion:Pf({state:n})});case"ArrowUp":var r=st(st({},e),{},{activeItemId:hf(-1,e.activeItemId,ls(e),t.props.defaultActiveItemId)});return st(st({},r),{},{completion:Pf({state:r})});case"Escape":return e.isOpen?st(st({},e),{},{activeItemId:null,isOpen:!1,completion:null}):st(st({},e),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return st(st({},e),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return st(st({},e),{},{activeItemId:t.props.openOnFocus===!0?t.props.defaultActiveItemId:null,status:"idle",completion:null,query:""});case"focus":return st(st({},e),{},{activeItemId:t.props.defaultActiveItemId,isOpen:(t.props.openOnFocus||!!e.query)&&t.props.shouldPanelOpen({state:e})});case"blur":return t.props.debug?e:st(st({},e),{},{isOpen:!1,activeItemId:null});case"mouseleave":return st(st({},e),{},{activeItemId:t.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(t.type)," is not supported."),e}};function ja(e){return ja=typeof Symbol=="function"&&we(Symbol.iterator)=="symbol"?function(t){return we(t)}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":we(t)},ja(e)}function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function pu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nf(Object(n),!0).forEach(function(r){cm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cm(e,t,n){return(t=(function(r){var u=(function(a){if(ja(a)!=="object"||a===null)return a;var i=a[Symbol.toPrimitive];if(i!==void 0){var o=i.call(a,"string");if(ja(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)})(r);return ja(u)==="symbol"?u:String(u)})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lm(e){var t=[],n=Hv(e,t),r=(function(p,m,v){var y,F=m.initialState;return{getState:function(){return F},dispatch:function(D,_){var O=(function(w){for(var x=1;x<arguments.length;x++){var S=arguments[x]!=null?arguments[x]:{};x%2?bf(Object(S),!0).forEach(function(T){$v(w,T,S[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(S)):bf(Object(S)).forEach(function(T){Object.defineProperty(w,T,Object.getOwnPropertyDescriptor(S,T))})}return w})({},F);F=p(F,{type:D,props:m,payload:_}),v({state:F,prevState:O})},pendingRequests:(y=[],{add:function(D){return y.push(D),D.finally(function(){y=y.filter(function(_){return _!==D})})},cancelAll:function(){y.forEach(function(D){return D.cancel()})},isEmpty:function(){return y.length===0},wait:function(D){return hs?(hs=!1,ps=D?Promise.race([Promise.all(y),new Promise(function(_){return setTimeout(_,D)})]):Promise.all(y),ps.then(function(){hs=!0})):ps}})}})(sm,n,function(p){var m,v,y=p.prevState,F=p.state;if(n.onStateChange(pu({prevState:y,state:F,refresh:i,navigator:n.navigator},u)),!c()&&(m=F.context)!==null&&m!==void 0&&(v=m.algoliaInsightsPlugin)!==null&&v!==void 0&&v.__automaticInsights&&n.insights!==!1){var D=ff({__autocomplete_clickAnalytics:!1});n.plugins.push(D),o([D])}}),u=(function(p){var m=p.store;return{setActiveItemId:function(v){m.dispatch("setActiveItemId",v)},setQuery:function(v){m.dispatch("setQuery",v)},setCollections:function(v){var y=0,F=v.map(function(D){return Ti(Ti({},D),{},{items:Da(D.items).map(function(_){return Ti(Ti({},_),{},{__autocomplete_id:y++})})})});m.dispatch("setCollections",F)},setIsOpen:function(v){m.dispatch("setIsOpen",v)},setStatus:function(v){m.dispatch("setStatus",v)},setContext:function(v){m.dispatch("setContext",v)}}})({store:r}),a=um(pu({props:n,refresh:i,store:r,navigator:n.navigator},u));function i(){return fu(pu({event:new Event("input"),nextState:{isOpen:r.getState().isOpen},props:n,navigator:n.navigator,query:r.getState().query,refresh:i,store:r},u))}function o(p){p.forEach(function(m){var v;return(v=m.subscribe)===null||v===void 0?void 0:v.call(m,pu(pu({},u),{},{navigator:n.navigator,refresh:i,onSelect:function(y){t.push({onSelect:y})},onActive:function(y){t.push({onActive:y})},onResolve:function(y){t.push({onResolve:y})}}))})}function c(){return n.plugins.some(function(p){return p.name==="aa.algoliaInsightsPlugin"})}if(n.insights&&!c()){var l=typeof n.insights=="boolean"?{}:n.insights;n.plugins.push(ff(l))}return o(n.plugins),(function(p){var m,v,y=p.metadata,F=p.environment;if(!((m=F.navigator)===null||m===void 0||(v=m.userAgent)===null||v===void 0)&&v.includes("Algolia Crawler")){var D=F.document.createElement("meta"),_=F.document.querySelector("head");D.name="algolia:metadata",setTimeout(function(){D.content=JSON.stringify(y),_.appendChild(D)},0)}})({metadata:im({plugins:n.plugins,options:e}),environment:n.environment}),pu(pu({refresh:i,navigator:n.navigator},a),u)}var ys="https://askai.algolia.com/chat",Ds="https://beta-chat-askai.algolia.com";function fm(e){var t=e.translations,n=(t===void 0?{}:t).poweredByText,r=n===void 0?"Powered by":n;return b.createElement("a",{href:"https://www.algolia.com/ref/docsearch/?utm_source=".concat(window.location.hostname,"&utm_medium=referral&utm_content=powered_by&utm_campaign=docsearch"),target:"_blank",rel:"noopener noreferrer"},b.createElement("span",{className:"DocSearch-Label"},r),b.createElement("svg",{width:"80",height:"24","aria-label":"Algolia",role:"img",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2196.2 500"},b.createElement("defs",null,b.createElement("style",null,".cls-1,.cls-2{fill:#003dff;}.cls-2{fill-rule:evenodd;}")),b.createElement("path",{className:"cls-2",d:"M1070.38,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),b.createElement("rect",{className:"cls-1",x:"1845.88",y:"104.73",width:"62.58",height:"277.9",rx:"5.9",ry:"5.9"}),b.createElement("path",{className:"cls-2",d:"M1851.78,71.38h50.77c3.26,0,5.9-2.64,5.9-5.9V5.9c0-3.62-3.24-6.39-6.82-5.83l-50.77,7.95c-2.87,.45-4.99,2.92-4.99,5.83v51.62c0,3.26,2.64,5.9,5.9,5.9Z"}),b.createElement("path",{className:"cls-2",d:"M1764.03,275.3V5.91c0-3.63-3.24-6.39-6.82-5.83l-50.46,7.94c-2.87,.45-4.99,2.93-4.99,5.84l.17,273.22c0,12.92,0,92.7,95.97,95.49,3.33,.1,6.09-2.58,6.09-5.91v-40.78c0-2.96-2.19-5.51-5.12-5.84-34.85-4.01-34.85-47.57-34.85-54.72Z"}),b.createElement("path",{className:"cls-2",d:"M1631.95,142.72c-11.14-12.25-24.83-21.65-40.78-28.31-15.92-6.53-33.26-9.85-52.07-9.85-18.78,0-36.15,3.17-51.92,9.85-15.59,6.66-29.29,16.05-40.76,28.31-11.47,12.23-20.38,26.87-26.76,44.03-6.38,17.17-9.24,37.37-9.24,58.36,0,20.99,3.19,36.87,9.55,54.21,6.38,17.32,15.14,32.11,26.45,44.36,11.29,12.23,24.83,21.62,40.6,28.46,15.77,6.83,40.12,10.33,52.4,10.48,12.25,0,36.78-3.82,52.7-10.48,15.92-6.68,29.46-16.23,40.78-28.46,11.29-12.25,20.05-27.04,26.25-44.36,6.22-17.34,9.24-33.22,9.24-54.21,0-20.99-3.34-41.19-10.03-58.36-6.38-17.17-15.14-31.8-26.43-44.03Zm-44.43,163.75c-11.47,15.75-27.56,23.7-48.09,23.7-20.55,0-36.63-7.8-48.1-23.7-11.47-15.75-17.21-34.01-17.21-61.2,0-26.89,5.59-49.14,17.06-64.87,11.45-15.75,27.54-23.52,48.07-23.52,20.55,0,36.63,7.78,48.09,23.52,11.47,15.57,17.36,37.98,17.36,64.87,0,27.19-5.72,45.3-17.19,61.2Z"}),b.createElement("path",{className:"cls-2",d:"M894.42,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),b.createElement("path",{className:"cls-2",d:"M2133.97,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.1,1.82-.21,2.73-.34,.21-.03,.42-.07,.63-.1,32.89-5.07,61.56-30.82,70.9-62.81v57.83c0,3.26,2.64,5.9,5.9,5.9h50.42c3.26,0,5.9-2.64,5.9-5.9V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,206.92c-12.2,10.16-27.97,13.98-44.84,15.12-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-42.24,0-77.12-35.89-77.12-79.37,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33v142.83Z"}),b.createElement("path",{className:"cls-2",d:"M1314.05,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-11.79,18.34-19.6,39.64-22.11,62.59-.58,5.3-.88,10.68-.88,16.14s.31,11.15,.93,16.59c4.28,38.09,23.14,71.61,50.66,94.52,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47h0c17.99,0,34.61-5.93,48.16-15.97,16.29-11.58,28.88-28.54,34.48-47.75v50.26h-.11v11.08c0,21.84-5.71,38.27-17.34,49.36-11.61,11.08-31.04,16.63-58.25,16.63-11.12,0-28.79-.59-46.6-2.41-2.83-.29-5.46,1.5-6.27,4.22l-12.78,43.11c-1.02,3.46,1.27,7.02,4.83,7.53,21.52,3.08,42.52,4.68,54.65,4.68,48.91,0,85.16-10.75,108.89-32.21,21.48-19.41,33.15-48.89,35.2-88.52V110.63c0-3.26-2.64-5.9-5.9-5.9h-56.32Zm0,64.1s.65,139.13,0,143.36c-12.08,9.77-27.11,13.59-43.49,14.7-.16,.01-.33,.03-.49,.04-1.12,.07-2.24,.1-3.36,.1-1.32,0-2.63-.03-3.94-.1-40.41-2.11-74.52-37.26-74.52-79.38,0-10.25,1.96-20.01,5.42-28.98,11.22-29.12,38.77-49.74,71.06-49.74h49.33Z"}),b.createElement("path",{className:"cls-1",d:"M249.83,0C113.3,0,2,110.09,.03,246.16c-2,138.19,110.12,252.7,248.33,253.5,42.68,.25,83.79-10.19,120.3-30.03,3.56-1.93,4.11-6.83,1.08-9.51l-23.38-20.72c-4.75-4.21-11.51-5.4-17.36-2.92-25.48,10.84-53.17,16.38-81.71,16.03-111.68-1.37-201.91-94.29-200.13-205.96,1.76-110.26,92-199.41,202.67-199.41h202.69V407.41l-115-102.18c-3.72-3.31-9.42-2.66-12.42,1.31-18.46,24.44-48.53,39.64-81.93,37.34-46.33-3.2-83.87-40.5-87.34-86.81-4.15-55.24,39.63-101.52,94-101.52,49.18,0,89.68,37.85,93.91,85.95,.38,4.28,2.31,8.27,5.52,11.12l29.95,26.55c3.4,3.01,8.79,1.17,9.63-3.3,2.16-11.55,2.92-23.58,2.07-35.92-4.82-70.34-61.8-126.93-132.17-131.26-80.68-4.97-148.13,58.14-150.27,137.25-2.09,77.1,61.08,143.56,138.19,145.26,32.19,.71,62.03-9.41,86.14-26.95l150.26,133.2c6.44,5.71,16.61,1.14,16.61-7.47V9.48C499.66,4.25,495.42,0,490.18,0H249.83Z"})))}function bs(e){return b.createElement("svg",{width:"20",height:"20","aria-label":e.ariaLabel,viewBox:"0 0 24 24",role:"img"},b.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.4"},e.children))}function dm(e){var t=e.translations,n=t===void 0?{}:t,r=e.isAskAiActive,u=r!==void 0&&r,a=n.selectText,i=a===void 0?"Select":a,o=n.selectKeyAriaLabel,c=o===void 0?"Enter key":o,l=n.submitQuestionText,p=l===void 0?"Submit question":l,m=n.navigateText,v=m===void 0?"Navigate":m,y=n.navigateUpKeyAriaLabel,F=y===void 0?"Arrow up":y,D=n.navigateDownKeyAriaLabel,_=D===void 0?"Arrow down":D,O=n.closeText,w=O===void 0?"Close":O,x=n.backToSearchText,S=x===void 0?"Back to search":x,T=n.closeKeyAriaLabel,I=T===void 0?"Escape key":T,B=n.poweredByText,d=B===void 0?"Powered by":B;return b.createElement(b.Fragment,null,b.createElement("div",{className:"DocSearch-Logo"},b.createElement(fm,{translations:{poweredByText:d}})),b.createElement("ul",{className:"DocSearch-Commands"},b.createElement("li",null,b.createElement("kbd",{className:"DocSearch-Commands-Key"},b.createElement(bs,{ariaLabel:_},b.createElement("path",{d:"M12 5v14"}),b.createElement("path",{d:"m19 12-7 7-7-7"}))),b.createElement("kbd",{className:"DocSearch-Commands-Key"},b.createElement(bs,{ariaLabel:F},b.createElement("path",{d:"m5 12 7-7 7 7"}),b.createElement("path",{d:"M12 19V5"}))),b.createElement("span",{className:"DocSearch-Label"},v)),b.createElement("li",null,b.createElement("kbd",{className:"DocSearch-Commands-Key"},b.createElement(bs,{ariaLabel:c},b.createElement("polyline",{points:"9 10 4 15 9 20"}),b.createElement("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"}))),b.createElement("span",{className:"DocSearch-Label"},u?p:i)),b.createElement("li",null,b.createElement("kbd",{className:"DocSearch-Commands-Key"},b.createElement("span",{className:"DocSearch-Escape-Key"},"ESC")),b.createElement("span",{className:"DocSearch-Label","aria-label":I},u?S:w))))}function pm(e){var t=e.hit,n=e.children;return b.createElement("a",{href:t.url},n)}function Na(e){var t=e.className;return b.createElement("svg",{viewBox:"0 0 38 38",className:t,stroke:"currentColor",strokeOpacity:".5"},b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},b.createElement("circle",{strokeOpacity:".3",cx:"18",cy:"18",r:"18"}),b.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},b.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))))}function As(e){var t=e.className,n=t===void 0?"":t;return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round",className:"DocSearch-Hit-icon-sparkles ".concat(n)},b.createElement("path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"}),b.createElement("path",{d:"M20 3v4"}),b.createElement("path",{d:"M22 5h-4"}),b.createElement("path",{d:"M4 17v2"}),b.createElement("path",{d:"M5 18H3"}))}function hm(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"M3.18 6.6a8.23 8.23 0 1112.93 9.94h0a8.23 8.23 0 01-11.63 0"}),b.createElement("path",{d:"M6.44 7.25H2.55V3.36M10.45 6v5.6M10.45 11.6L13 13"})))}function Ra(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("path",{d:"M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function vm(){return b.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"lucide lucide-triangle-alert-icon lucide-triangle-alert"},b.createElement("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),b.createElement("path",{d:"M12 9v4"}),b.createElement("path",{d:"M12 17h.01"}))}function mm(){return b.createElement("svg",{className:"DocSearch-Hit-Select-Icon",width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"M18 3v4c0 2-2 4-4 4H2"}),b.createElement("path",{d:"M8 17l-6-6 6-6"})))}var gm=function(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),b.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),b.createElement("path",{d:"M10 9H8"}),b.createElement("path",{d:"M16 13H8"}),b.createElement("path",{d:"M16 17H8"}))};function ym(e){switch(e.type){case"lvl1":return b.createElement(gm,null);case"content":return b.createElement(bm,null);default:return b.createElement(Dm,null)}}function Dm(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("line",{x1:"4",x2:"20",y1:"9",y2:"9"}),b.createElement("line",{x1:"4",x2:"20",y1:"15",y2:"15"}),b.createElement("line",{x1:"10",x2:"8",y1:"3",y2:"21"}),b.createElement("line",{x1:"16",x2:"14",y1:"3",y2:"21"}))}function bm(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("path",{d:"M17 5H3h14zm0 5H3h14zm0 5H3h14z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function Rf(){return b.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},b.createElement("path",{d:"M10 14.2L5 17l1-5.6-4-4 5.5-.7 2.5-5 2.5 5 5.6.8-4 4 .9 5.5z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function Am(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 18 18",fill:"none"},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99984 1.29102C4.74264 1.29102 1.2915 4.74215 1.2915 8.99935C1.2915 13.2565 4.74264 16.7077 8.99984 16.7077C13.257 16.7077 16.7082 13.2565 16.7082 8.99935C16.7082 4.74215 13.257 1.29102 8.99984 1.29102ZM0.0415039 8.99935C0.0415039 4.0518 4.05229 0.0410156 8.99984 0.0410156C13.9474 0.0410156 17.9582 4.0518 17.9582 8.99935C17.9582 13.9469 13.9474 17.9577 8.99984 17.9577C4.05229 17.9577 0.0415039 13.9469 0.0415039 8.99935ZM5.87484 6.49935C5.87484 6.15417 6.15466 5.87435 6.49984 5.87435H11.4998C11.845 5.87435 12.1248 6.15417 12.1248 6.49935V11.4993C12.1248 11.8445 11.845 12.1243 11.4998 12.1243H6.49984C6.15466 12.1243 5.87484 11.8445 5.87484 11.4993V6.49935ZM7.12484 7.12435V10.8743H10.8748V7.12435H7.12484Z",fill:"currentcolor"}))}function Em(){return b.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"M19 4.8a16 16 0 00-2-1.2m-3.3-1.2A16 16 0 001.1 4.7M16.7 8a12 12 0 00-2.8-1.4M10 6a12 12 0 00-6.7 2M12.3 14.7a4 4 0 00-4.5 0M14.5 11.4A8 8 0 0010 10M3 16L18 2M10 18h0"}))}function Fm(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"#5a5e9a",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("path",{d:"m13.5 8.5-5 5"}),b.createElement("path",{d:"m8.5 8.5 5 5"}),b.createElement("circle",{cx:"11",cy:"11",r:"8"}),b.createElement("path",{d:"m21 21-4.3-4.3"}))}function _m(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:4,height:16,viewBox:"0 0 4 16",fill:"none"},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.99984 1.95898C1.88478 1.95898 1.7915 2.05226 1.7915 2.16732C1.7915 2.28238 1.88478 2.37565 1.99984 2.37565C2.1149 2.37565 2.20817 2.28238 2.20817 2.16732C2.20817 2.05226 2.1149 1.95898 1.99984 1.95898ZM0.541504 2.16732C0.541504 1.3619 1.19442 0.708984 1.99984 0.708984C2.80525 0.708984 3.45817 1.3619 3.45817 2.16732C3.45817 2.97273 2.80525 3.62565 1.99984 3.62565C1.19442 3.62565 0.541504 2.97273 0.541504 2.16732ZM1.99984 7.79232C1.88478 7.79232 1.7915 7.88559 1.7915 8.00065C1.7915 8.11571 1.88478 8.20898 1.99984 8.20898C2.1149 8.20898 2.20817 8.11571 2.20817 8.00065C2.20817 7.88559 2.1149 7.79232 1.99984 7.79232ZM0.541504 8.00065C0.541504 7.19524 1.19442 6.54232 1.99984 6.54232C2.80525 6.54232 3.45817 7.19524 3.45817 8.00065C3.45817 8.80607 2.80525 9.45898 1.99984 9.45898C1.19442 9.45898 0.541504 8.80607 0.541504 8.00065ZM1.99984 13.6257C1.88478 13.6257 1.7915 13.7189 1.7915 13.834C1.7915 13.949 1.88478 14.0423 1.99984 14.0423C2.1149 14.0423 2.20817 13.949 2.20817 13.834C2.20817 13.7189 2.1149 13.6257 1.99984 13.6257ZM0.541504 13.834C0.541504 13.0286 1.19442 12.3757 1.99984 12.3757C2.80525 12.3757 3.45817 13.0286 3.45817 13.834C3.45817 14.6394 2.80525 15.2923 1.99984 15.2923C1.19442 15.2923 0.541504 14.6394 0.541504 13.834Z",fill:"currentcolor"}))}function Cm(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},b.createElement("path",{d:"M9 0.875C10.6068 0.875 12.1776 1.35149 13.5137 2.24414C14.8498 3.13693 15.8919 4.40598 16.5068 5.89062C17.1218 7.37522 17.2822 9.00892 16.9688 10.585C16.6552 12.1611 15.8814 13.6088 14.7451 14.7451C13.6088 15.8814 12.1611 16.6552 10.585 16.9688C9.00892 17.2822 7.37523 17.1218 5.89062 16.5068C4.40598 15.8919 3.13693 14.8498 2.24414 13.5137C1.35149 12.1776 0.875 10.6068 0.875 9C0.875 8.65482 1.15482 8.375 1.5 8.375C1.84518 8.375 2.125 8.65482 2.125 9C2.125 10.3596 2.52792 11.6888 3.2832 12.8193C4.03864 13.9499 5.1129 14.8312 6.36914 15.3516C7.62523 15.8718 9.00736 16.0083 10.3408 15.7432C11.6744 15.4779 12.8998 14.8228 13.8613 13.8613C14.8228 12.8998 15.4779 11.6744 15.7432 10.3408C16.0083 9.00736 15.8718 7.62523 15.3516 6.36914C14.8312 5.1129 13.9499 4.03864 12.8193 3.2832C11.6888 2.52792 10.3596 2.125 9 2.125C7.06829 2.125 5.21604 2.89096 3.82129 4.22949L3.00879 5.04199H5.66699C6.01202 5.04217 6.29199 5.32192 6.29199 5.66699C6.29182 6.01191 6.01191 6.29182 5.66699 6.29199H1.5C1.45939 6.29199 1.41889 6.28716 1.37891 6.2793C1.36148 6.27587 1.345 6.26949 1.32812 6.26465C1.267 6.24714 1.20782 6.22205 1.15332 6.18555C1.08536 6.14005 1.02604 6.08256 0.980469 6.01465C0.970244 5.99942 0.962841 5.98268 0.954102 5.9668C0.904937 5.87756 0.875056 5.77606 0.875 5.66699V1.5C0.875 1.15482 1.15482 0.875002 1.5 0.875C1.84518 0.875 2.125 1.15482 2.125 1.5V4.15723L2.94141 3.3418L2.9502 3.33301C4.57158 1.77433 6.73388 0.875 9 0.875ZM9.33301 4.20801C9.67808 4.20801 9.95783 4.48798 9.95801 4.83301V9.44727L12.9463 10.9414C13.2548 11.0958 13.3798 11.4707 13.2256 11.7793C13.0712 12.088 12.6955 12.213 12.3867 12.0586L9.05371 10.3926C8.84198 10.2867 8.70801 10.0697 8.70801 9.83301V4.83301C8.70818 4.48809 8.98809 4.20819 9.33301 4.20801Z",fill:"currentcolor"}))}function km(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none"},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.712717 3.38039C1.14249 2.95062 1.72538 2.70917 2.33317 2.70917H8.1665C8.51168 2.70917 8.7915 2.989 8.7915 3.33417C8.7915 3.67935 8.51168 3.95917 8.1665 3.95917H2.33317C2.0569 3.95917 1.79195 4.06892 1.5966 4.26427C1.40125 4.45962 1.2915 4.72457 1.2915 5.00084V16.6675C1.2915 16.9438 1.40125 17.2087 1.5966 17.4041C1.79195 17.5994 2.0569 17.7092 2.33317 17.7092H13.9998C14.2761 17.7092 14.5411 17.5994 14.7364 17.4041C14.9318 17.2087 15.0415 16.9438 15.0415 16.6675V10.8342C15.0415 10.489 15.3213 10.2092 15.6665 10.2092C16.0117 10.2092 16.2915 10.489 16.2915 10.8342V16.6675C16.2915 17.2753 16.0501 17.8582 15.6203 18.288C15.1905 18.7177 14.6076 18.9592 13.9998 18.9592H2.33317C1.72538 18.9592 1.14249 18.7177 0.712717 18.288C0.282947 17.8582 0.0415039 17.2753 0.0415039 16.6675V5.00084C0.0415039 4.39305 0.282947 3.81016 0.712717 3.38039Z",fill:"currentcolor"}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6665 2.19141C15.3634 2.19141 15.0728 2.3118 14.8584 2.52611L7.06419 10.3204L6.52548 12.4752L8.68031 11.9365L16.4746 4.14223C16.6889 3.92792 16.8093 3.63725 16.8093 3.33417C16.8093 3.03109 16.6889 2.74043 16.4746 2.52611C16.2603 2.3118 15.9696 2.19141 15.6665 2.19141ZM13.9746 1.64223C14.4233 1.1935 15.0319 0.941406 15.6665 0.941406C16.3011 0.941406 16.9097 1.1935 17.3584 1.64223C17.8072 2.09096 18.0593 2.69957 18.0593 3.33417C18.0593 3.96877 17.8072 4.57738 17.3584 5.02611L9.44178 12.9428C9.36168 13.0229 9.26132 13.0797 9.15142 13.1072L5.81809 13.9405C5.6051 13.9938 5.3798 13.9314 5.22456 13.7761C5.06932 13.6209 5.00692 13.3956 5.06016 13.1826L5.8935 9.84925C5.92097 9.73936 5.9778 9.639 6.0579 9.5589L13.9746 1.64223Z",fill:"currentcolor"}))}var Pi,wm={before:"Searched for ",separator:", ",lastSeparator:" and ",after:""};function Sm(e){var t=e.queries,n=e.translations,r=e.onSearchQueryClick;if(t.length===0)return null;if(typeof n.aggregatedToolCallNode=="function")return b.createElement(b.Fragment,null,n.aggregatedToolCallNode(t,r));var u=(n.aggregatedToolCallText?n.aggregatedToolCallText(t):wm)||{},a=u.before,i=a===void 0?"":a,o=u.separator,c=o===void 0?", ":o,l=u.lastSeparator,p=l===void 0?" and ":l,m=u.after,v=m===void 0?"":m;return b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent-Tool Tool--AggregatedResult"},b.createElement(ya,{size:18}),b.createElement("span",null,i&&b.createElement("span",null,i),t.map(function(y,F){return b.createElement(tr,{key:y+F},b.createElement("span",{role:"button",tabIndex:0,className:"DocSearch-AskAiScreen-MessageContent-Tool-Query",onKeyDown:function(D){D.key!=="enter"&&D.key!==" "||(D.preventDefault(),r(y))},onClick:function(){return r(y)}},'"',y,'"'),F<t.length-2&&c,F===t.length-2&&p)}),v&&b.createElement("span",null,v)))}var hu={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function zf(e){hu=e}var za={exec:function(){return null}};function mt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=typeof e=="string"?e:e.source,r={replace:function(u,a){var i=typeof a=="string"?a:a.source;return i=i.replace(pn.caret,"$1"),n=n.replace(u,i),r},getRegex:function(){return new RegExp(n,t)}};return r}var xm=(function(){try{return!!new RegExp("(?<=1)(?<!1)")}catch(e){return!1}})(),pn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDD40-\uDD65\uDD6F-\uDD85\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDDB0-\uDDDB\uDDE0-\uDDE9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D\uDD30-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE96\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2-\uDFF6]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD833[\uDCF0-\uDCF9]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDDD0-\uDDED\uDDF0-\uDDFA\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])/,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:function(e){return new RegExp("^( {0,3}".concat(e,")((?:[ ][^\\n]*)?(?:\\n|$))"))},nextBulletRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))"))},hrRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"))},fencesBeginRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}(?:```|~~~)"))},headingBeginRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}#"))},htmlBeginRegex:function(e){return new RegExp("^ {0,".concat(Math.min(3,e-1),"}<(?:[a-z].*>|!--)"),"i")}},La=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Es=/(?:[*+-]|\d{1,9}[.)])/,Lf=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Mf=mt(Lf).replace(/bull/g,Es).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Tm=mt(Lf).replace(/bull/g,Es).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Fs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_s=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Om=mt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_s).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Im=mt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Es).getRegex(),ji="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Cs=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Bm=mt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Cs).replace("tag",ji).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$f=mt(Fs).replace("hr",La).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ji).getRegex(),ks={blockquote:mt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$f).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Om,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:La,html:Bm,lheading:Mf,list:Im,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:$f,table:za,text:/^[^\n]+/},Zf=mt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",La).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ji).getRegex(),Pm=C(C({},ks),{},{lheading:Tm,table:Zf,paragraph:mt(Fs).replace("hr",La).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Zf).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ji).getRegex()}),jm=C(C({},ks),{},{html:mt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Cs).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:za,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:mt(Fs).replace("hr",La).replace("heading",` *#{1,6} *[^
|
|
26
|
+
]`).replace("lheading",Mf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),qf=/^( {2,}|\\)\n(?!\s*$)/,Ni=/(?:[!-\/:-@\[-`\{-~\xA1-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2010-\u2027\u2030-\u205E\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/,ws=/(?:[\t-\r -\/:-@\[-`\{-~\xA0-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2000-\u200A\u2010-\u2029\u202F-\u205F\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/,Hf=/(?:[\0-\x08\x0E-\x1F0-9A-Za-z\x7F-\x9F\xAA\xAD\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376-\u037D\u037F-\u0383\u0386\u0388-\u03F5\u03F7-\u0481\u0483-\u0559\u0560-\u0588\u058B\u058C\u0590-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05F2\u05F5-\u0605\u0610-\u061A\u061C\u0620-\u0669\u066E-\u06D3\u06D5-\u06DD\u06DF-\u06E8\u06EA-\u06FC\u06FF\u070E-\u07F5\u07FA-\u07FD\u0800-\u082F\u083F-\u085D\u085F-\u0887\u0889-\u0963\u0966-\u096F\u0971-\u09F1\u09F4-\u09F9\u09FC\u09FE-\u0A75\u0A77-\u0AEF\u0AF2-\u0B6F\u0B71-\u0BF2\u0BFB-\u0C76\u0C78-\u0C7E\u0C80-\u0C83\u0C85-\u0D4E\u0D50-\u0D78\u0D7A-\u0DF3\u0DF5-\u0E3E\u0E40-\u0E4E\u0E50-\u0E59\u0E5C-\u0F00\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39\u0F3E-\u0F84\u0F86-\u0FBD\u0FC6\u0FCD\u0FDB-\u1049\u1050-\u109D\u10A0-\u10FA\u10FC-\u135F\u1369-\u138F\u139A-\u13FF\u1401-\u166C\u166F-\u167F\u1681-\u169A\u169D-\u16EA\u16EE-\u1734\u1737-\u17D3\u17D7\u17DC-\u17FF\u180B-\u193F\u1941-\u1943\u1946-\u19DD\u1A00-\u1A1D\u1A20-\u1A9F\u1AA7\u1AAE-\u1B4D\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BFB\u1C00-\u1C3A\u1C40-\u1C7D\u1C80-\u1CBF\u1CC8-\u1CD2\u1CD4-\u1FBC\u1FBE\u1FC2-\u1FCC\u1FD0-\u1FDC\u1FE0-\u1FEC\u1FF0-\u1FFC\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u2079\u207F-\u2089\u208F-\u209F\u20C2-\u20FF\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u218C-\u218F\u242A-\u243F\u244B-\u249B\u24EA-\u24FF\u2776-\u2793\u2B74\u2B75\u2C00-\u2CE4\u2CEB-\u2CF8\u2CFD\u2D00-\u2D6F\u2D71-\u2DFF\u2E2F\u2E5E-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3040-\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u318F\u3192-\u3195\u31A0-\u31BF\u31E6-\u31EE\u31F0-\u31FF\u321F-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48F\uA4C7-\uA4FD\uA500-\uA60C\uA610-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA6F8-\uA6FF\uA717-\uA71F\uA722-\uA788\uA78B-\uA827\uA82C-\uA835\uA83A-\uA873\uA878-\uA8CD\uA8D0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA95E\uA960-\uA9C0\uA9CE-\uA9DD\uA9E0-\uAA5B\uAA60-\uAA76\uAA7A-\uAADD\uAAE0-\uAAEF\uAAF2-\uAB5A\uAB5C-\uAB69\uAB6C-\uABEA\uABEC-\uD7FF\uE000-\uFB28\uFB2A-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDD0-\uFDFB\uFE00-\uFE0F\uFE1A-\uFE2F\uFE53\uFE67\uFE6C-\uFEFE\uFF00\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]|\uD800[\uDC00-\uDCFF\uDD03-\uDD36\uDD40-\uDD78\uDD8A\uDD8B\uDD8F\uDD9D-\uDD9F\uDDA1-\uDDCF\uDDFD-\uDF9E\uDFA0-\uDFCF\uDFD1-\uDFFF]|\uD801[\uDC00-\uDD6E\uDD70-\uDFFF]|\uD802[\uDC00-\uDC56\uDC58-\uDC76\uDC79-\uDD1E\uDD20-\uDD3E\uDD40-\uDE4F\uDE59-\uDE7E\uDE80-\uDEC7\uDEC9-\uDEEF\uDEF7-\uDF38\uDF40-\uDF98\uDF9D-\uDFFF]|\uD803[\uDC00-\uDD6D\uDD6F-\uDD8D\uDD90-\uDEAC\uDEAE-\uDECF\uDED9-\uDF54\uDF5A-\uDF85\uDF8A-\uDFFF]|\uD804[\uDC00-\uDC46\uDC4E-\uDCBA\uDCBD\uDCC2-\uDD3F\uDD44-\uDD73\uDD76-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE0-\uDE37\uDE3E-\uDEA8\uDEAA-\uDFD3\uDFD6\uDFD9-\uDFFF]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5C\uDC5E-\uDCC5\uDCC7-\uDDC0\uDDD8-\uDE40\uDE44-\uDE5F\uDE6D-\uDEB8\uDEBA-\uDF3B\uDF40-\uDFFF]|\uD806[\uDC00-\uDC3A\uDC3C-\uDD43\uDD47-\uDDE1\uDDE3-\uDE3E\uDE47-\uDE99\uDE9D\uDEA3-\uDEFF\uDF0A-\uDFE0\uDFE2-\uDFFF]|\uD807[\uDC00-\uDC40\uDC46-\uDC6F\uDC72-\uDEF6\uDEF9-\uDF42\uDF50-\uDFD4\uDFF2-\uDFFE]|[\uD808\uD80A\uD80C-\uD819\uD81C-\uD82E\uD830-\uD832\uD837\uD83F-\uDBFF][\uDC00-\uDFFF]|\uD809[\uDC00-\uDC6F\uDC75-\uDFFF]|\uD80B[\uDC00-\uDFF0\uDFF3-\uDFFF]|\uD81A[\uDC00-\uDE6D\uDE70-\uDEF4\uDEF6-\uDF36\uDF40-\uDF43\uDF46-\uDFFF]|\uD81B[\uDC00-\uDD6C\uDD70-\uDE96\uDE9B-\uDFE1\uDFE3-\uDFFF]|\uD82F[\uDC00-\uDC9B\uDC9D\uDC9E\uDCA0-\uDFFF]|\uD833[\uDCF0-\uDCF9\uDCFD-\uDCFF\uDEB4-\uDEB9\uDED1-\uDEDF\uDEF1-\uDF4F\uDFC4-\uDFFF]|\uD834[\uDCF6-\uDCFF\uDD27\uDD28\uDD65-\uDD69\uDD6D-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDDEB-\uDDFF\uDE42-\uDE44\uDE46-\uDEFF\uDF57-\uDFFF]|\uD835[\uDC00-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE8C-\uDFFF]|\uD838[\uDC00-\uDD4E\uDD50-\uDEFE\uDF00-\uDFFF]|\uD839[\uDC00-\uDDFE\uDE00-\uDFFF]|\uD83A[\uDC00-\uDD5D\uDD60-\uDFFF]|\uD83B[\uDC00-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDD2D\uDD2F-\uDEEF\uDEF2-\uDFFF]|\uD83C[\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCD0\uDCF6-\uDD0C\uDDAE-\uDDE5\uDE03-\uDE0F\uDE3C-\uDE3F\uDE49-\uDE4F\uDE52-\uDE5F\uDE66-\uDEFF]|\uD83D[\uDED9-\uDEDB\uDEED-\uDEEF\uDEFD-\uDEFF\uDFDA-\uDFDF\uDFEC-\uDFEF\uDFF1-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE\uDCAF\uDCBC-\uDCBF\uDCC2-\uDCCF\uDCD9-\uDCFF\uDE58-\uDE5F\uDE6E\uDE6F\uDE7D-\uDE7F\uDE8B-\uDE8D\uDEC7\uDEC9-\uDECC\uDEDD\uDEDE\uDEEB-\uDEEE\uDEF9-\uDEFF\uDF93\uDFF0-\uDFF9\uDFFB-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Nm=mt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ws).getRegex(),Uf=/(?!~)(?:[!-\/:-@\[-`\{-~\xA1-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2010-\u2027\u2030-\u205E\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3001-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/,Rm=mt(/link|precode-code|html/,"g").replace("link",Fi(/\[(?:[^\[\]`]|(`+)[^`]+\1(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/,{a:1})).replace("precode-",xm?"(?<!`)()":"(^^|[^`])").replace("code",Fi(/(`+)[^`]+\1(?!`)/,{b:1})).replace("html",/<(?! )[^<>]*?>/).getRegex(),Wf=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,zm=mt(Wf,"u").replace(/punct/g,Ni).getRegex(),Lm=mt(Wf,"u").replace(/punct/g,Uf).getRegex(),Vf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Mm=mt(Vf,"gu").replace(/notPunctSpace/g,Hf).replace(/punctSpace/g,ws).replace(/punct/g,Ni).getRegex(),$m=mt(Vf,"gu").replace(/notPunctSpace/g,/(?:(?:[\0-\x08\x0E-\x1F0-9A-Za-z\x7F-\x9F\xAA\xAD\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376-\u037D\u037F-\u0383\u0386\u0388-\u03F5\u03F7-\u0481\u0483-\u0559\u0560-\u0588\u058B\u058C\u0590-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05F2\u05F5-\u0605\u0610-\u061A\u061C\u0620-\u0669\u066E-\u06D3\u06D5-\u06DD\u06DF-\u06E8\u06EA-\u06FC\u06FF\u070E-\u07F5\u07FA-\u07FD\u0800-\u082F\u083F-\u085D\u085F-\u0887\u0889-\u0963\u0966-\u096F\u0971-\u09F1\u09F4-\u09F9\u09FC\u09FE-\u0A75\u0A77-\u0AEF\u0AF2-\u0B6F\u0B71-\u0BF2\u0BFB-\u0C76\u0C78-\u0C7E\u0C80-\u0C83\u0C85-\u0D4E\u0D50-\u0D78\u0D7A-\u0DF3\u0DF5-\u0E3E\u0E40-\u0E4E\u0E50-\u0E59\u0E5C-\u0F00\u0F18\u0F19\u0F20-\u0F33\u0F35\u0F37\u0F39\u0F3E-\u0F84\u0F86-\u0FBD\u0FC6\u0FCD\u0FDB-\u1049\u1050-\u109D\u10A0-\u10FA\u10FC-\u135F\u1369-\u138F\u139A-\u13FF\u1401-\u166C\u166F-\u167F\u1681-\u169A\u169D-\u16EA\u16EE-\u1734\u1737-\u17D3\u17D7\u17DC-\u17FF\u180B-\u193F\u1941-\u1943\u1946-\u19DD\u1A00-\u1A1D\u1A20-\u1A9F\u1AA7\u1AAE-\u1B4D\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BFB\u1C00-\u1C3A\u1C40-\u1C7D\u1C80-\u1CBF\u1CC8-\u1CD2\u1CD4-\u1FBC\u1FBE\u1FC2-\u1FCC\u1FD0-\u1FDC\u1FE0-\u1FEC\u1FF0-\u1FFC\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u2079\u207F-\u2089\u208F-\u209F\u20C2-\u20FF\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u218C-\u218F\u242A-\u243F\u244B-\u249B\u24EA-\u24FF\u2776-\u2793\u2B74\u2B75\u2C00-\u2CE4\u2CEB-\u2CF8\u2CFD\u2D00-\u2D6F\u2D71-\u2DFF\u2E2F\u2E5E-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3040-\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u318F\u3192-\u3195\u31A0-\u31BF\u31E6-\u31EE\u31F0-\u31FF\u321F-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48F\uA4C7-\uA4FD\uA500-\uA60C\uA610-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA6F8-\uA6FF\uA717-\uA71F\uA722-\uA788\uA78B-\uA827\uA82C-\uA835\uA83A-\uA873\uA878-\uA8CD\uA8D0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA95E\uA960-\uA9C0\uA9CE-\uA9DD\uA9E0-\uAA5B\uAA60-\uAA76\uAA7A-\uAADD\uAAE0-\uAAEF\uAAF2-\uAB5A\uAB5C-\uAB69\uAB6C-\uABEA\uABEC-\uD7FF\uE000-\uFB28\uFB2A-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDD0-\uFDFB\uFE00-\uFE0F\uFE1A-\uFE2F\uFE53\uFE67\uFE6C-\uFEFE\uFF00\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]|\uD800[\uDC00-\uDCFF\uDD03-\uDD36\uDD40-\uDD78\uDD8A\uDD8B\uDD8F\uDD9D-\uDD9F\uDDA1-\uDDCF\uDDFD-\uDF9E\uDFA0-\uDFCF\uDFD1-\uDFFF]|\uD801[\uDC00-\uDD6E\uDD70-\uDFFF]|\uD802[\uDC00-\uDC56\uDC58-\uDC76\uDC79-\uDD1E\uDD20-\uDD3E\uDD40-\uDE4F\uDE59-\uDE7E\uDE80-\uDEC7\uDEC9-\uDEEF\uDEF7-\uDF38\uDF40-\uDF98\uDF9D-\uDFFF]|\uD803[\uDC00-\uDD6D\uDD6F-\uDD8D\uDD90-\uDEAC\uDEAE-\uDECF\uDED9-\uDF54\uDF5A-\uDF85\uDF8A-\uDFFF]|\uD804[\uDC00-\uDC46\uDC4E-\uDCBA\uDCBD\uDCC2-\uDD3F\uDD44-\uDD73\uDD76-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDDE0-\uDE37\uDE3E-\uDEA8\uDEAA-\uDFD3\uDFD6\uDFD9-\uDFFF]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5C\uDC5E-\uDCC5\uDCC7-\uDDC0\uDDD8-\uDE40\uDE44-\uDE5F\uDE6D-\uDEB8\uDEBA-\uDF3B\uDF40-\uDFFF]|\uD806[\uDC00-\uDC3A\uDC3C-\uDD43\uDD47-\uDDE1\uDDE3-\uDE3E\uDE47-\uDE99\uDE9D\uDEA3-\uDEFF\uDF0A-\uDFE0\uDFE2-\uDFFF]|\uD807[\uDC00-\uDC40\uDC46-\uDC6F\uDC72-\uDEF6\uDEF9-\uDF42\uDF50-\uDFD4\uDFF2-\uDFFE]|[\uD808\uD80A\uD80C-\uD819\uD81C-\uD82E\uD830-\uD832\uD837\uD83F-\uDBFF][\uDC00-\uDFFF]|\uD809[\uDC00-\uDC6F\uDC75-\uDFFF]|\uD80B[\uDC00-\uDFF0\uDFF3-\uDFFF]|\uD81A[\uDC00-\uDE6D\uDE70-\uDEF4\uDEF6-\uDF36\uDF40-\uDF43\uDF46-\uDFFF]|\uD81B[\uDC00-\uDD6C\uDD70-\uDE96\uDE9B-\uDFE1\uDFE3-\uDFFF]|\uD82F[\uDC00-\uDC9B\uDC9D\uDC9E\uDCA0-\uDFFF]|\uD833[\uDCF0-\uDCF9\uDCFD-\uDCFF\uDEB4-\uDEB9\uDED1-\uDEDF\uDEF1-\uDF4F\uDFC4-\uDFFF]|\uD834[\uDCF6-\uDCFF\uDD27\uDD28\uDD65-\uDD69\uDD6D-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDDEB-\uDDFF\uDE42-\uDE44\uDE46-\uDEFF\uDF57-\uDFFF]|\uD835[\uDC00-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE8C-\uDFFF]|\uD838[\uDC00-\uDD4E\uDD50-\uDEFE\uDF00-\uDFFF]|\uD839[\uDC00-\uDDFE\uDE00-\uDFFF]|\uD83A[\uDC00-\uDD5D\uDD60-\uDFFF]|\uD83B[\uDC00-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDD2D\uDD2F-\uDEEF\uDEF2-\uDFFF]|\uD83C[\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCD0\uDCF6-\uDD0C\uDDAE-\uDDE5\uDE03-\uDE0F\uDE3C-\uDE3F\uDE49-\uDE4F\uDE52-\uDE5F\uDE66-\uDEFF]|\uD83D[\uDED9-\uDEDB\uDEED-\uDEEF\uDEFD-\uDEFF\uDFDA-\uDFDF\uDFEC-\uDFEF\uDFF1-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE\uDCAF\uDCBC-\uDCBF\uDCC2-\uDCCF\uDCD9-\uDCFF\uDE58-\uDE5F\uDE6E\uDE6F\uDE7D-\uDE7F\uDE8B-\uDE8D\uDEC7\uDEC9-\uDECC\uDEDD\uDEDE\uDEEB-\uDEEE\uDEF9-\uDEFF\uDF93\uDFF0-\uDFF9\uDFFB-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])|~)/).replace(/punctSpace/g,/(?!~)(?:[\t-\r -\/:-@\[-`\{-~\xA0-\xA9\xAB\xAC\xAE-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u037E\u0384\u0385\u0387\u03F6\u0482\u055A-\u055F\u0589\u058A\u058D-\u058F\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0606-\u060F\u061B\u061D-\u061F\u066A-\u066D\u06D4\u06DE\u06E9\u06FD\u06FE\u0700-\u070D\u07F6-\u07F9\u07FE\u07FF\u0830-\u083E\u085E\u0888\u0964\u0965\u0970\u09F2\u09F3\u09FA\u09FB\u09FD\u0A76\u0AF0\u0AF1\u0B70\u0BF3-\u0BFA\u0C77\u0C7F\u0C84\u0D4F\u0D79\u0DF4\u0E3F\u0E4F\u0E5A\u0E5B\u0F01-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F85\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u104A-\u104F\u109E\u109F\u10FB\u1360-\u1368\u1390-\u1399\u1400\u166D\u166E\u1680\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DB\u1800-\u180A\u1940\u1944\u1945\u19DE-\u19FF\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2000-\u200A\u2010-\u2029\u202F-\u205F\u207A-\u207E\u208A-\u208E\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2775\u2794-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u303F\u309B\u309C\u30A0\u30FB\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAA77-\uAA79\uAADE\uAADF\uAAF0\uAAF1\uAB5B\uAB6A\uAB6B\uABEB\uFB29\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD00-\uDD02\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDC77\uDC78\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEC8\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDD8E\uDD8F\uDEAD\uDED0-\uDED8\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3F]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFD5-\uDFF1\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3F\uDF44\uDF45]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F[\uDC9C\uDC9F]|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE8B]|\uD838[\uDD4F\uDEFF]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA])/).replace(/punct/g,Uf).getRegex(),Zm=mt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Hf).replace(/punctSpace/g,ws).replace(/punct/g,Ni).getRegex(),qm=mt(/\\(punct)/,"gu").replace(/punct/g,Ni).getRegex(),Hm=mt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Um=mt(Cs).replace("(?:-->|$)","-->").getRegex(),Wm=mt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Um).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ri=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Vm=mt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ri).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Kf=mt(/^!?\[(label)\]\[(ref)\]/).replace("label",Ri).replace("ref",_s).getRegex(),Gf=mt(/^!?\[(ref)\](?:\[\])?/).replace("ref",_s).getRegex(),Jf=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ss={_backpedal:za,anyPunctuation:qm,autolink:Hm,blockSkip:Rm,br:qf,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:za,emStrongLDelim:zm,emStrongRDelimAst:Mm,emStrongRDelimUnd:Zm,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Vm,nolink:Gf,punctuation:Nm,reflink:Kf,reflinkSearch:mt("reflink|nolink(?!\\()","g").replace("reflink",Kf).replace("nolink",Gf).getRegex(),tag:Wm,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:za},Km=C(C({},Ss),{},{link:mt(/^!?\[(label)\]\((.*?)\)/).replace("label",Ri).getRegex(),reflink:mt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ri).getRegex()}),xs=C(C({},Ss),{},{emStrongRDelimAst:$m,emStrongLDelim:Lm,url:mt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Jf).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:mt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Jf).getRegex()}),Gm=C(C({},xs),{},{br:mt(qf).replace("{2,}","*").getRegex(),text:mt(xs.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),zi={normal:ks,gfm:Pm,pedantic:jm},Ma={normal:Ss,gfm:xs,breaks:Gm,pedantic:Km},Jm={"&":"&","<":"<",">":">",'"':""","'":"'"},Qf=function(e){return Jm[e]};function nr(e,t){if(t){if(pn.escapeTest.test(e))return e.replace(pn.escapeReplace,Qf)}else if(pn.escapeTestNoEncode.test(e))return e.replace(pn.escapeReplaceNoEncode,Qf);return e}function Yf(e){try{e=encodeURI(e).replace(pn.percentDecode,"%")}catch(t){return null}return e}function Xf(e,t){var n,r=e.replace(pn.findPipe,function(a,i,o){for(var c=!1,l=i;--l>=0&&o[l]==="\\";)c=!c;return c?"|":" |"}).split(pn.splitPipe),u=0;if(r[0].trim()||r.shift(),r.length>0&&!((n=r.at(-1))!==null&&n!==void 0&&n.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;u<r.length;u++)r[u]=r[u].trim().replace(pn.slashPipe,"|");return r}function $a(e,t,n){var r=e.length;if(r===0)return"";for(var u=0;u<r&&e.charAt(r-u-1)===t;)u++;return e.slice(0,r-u)}function ed(e,t,n,r,u){var a=t.href,i=t.title||null,o=e[1].replace(u.other.outputLinkReplace,"$1");r.state.inLink=!0;var c={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,c}var Li=Pe(function e(t){Be(this,e),lt(this,"options",void 0),lt(this,"rules",void 0),lt(this,"lexer",void 0),this.options=t||hu},[{key:"space",value:function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}},{key:"code",value:function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:$a(n,`
|
|
27
27
|
`)}}}},{key:"fences",value:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=(function(u,a,i){var o=u.match(i.other.indentCodeCompensation);if(o===null)return a;var c=o[1];return a.split(`
|
|
28
|
-
`).map(function(l){var
|
|
29
|
-
`)})(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}},{key:"heading",value:function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(this.rules.other.endingHash.test(n)){var r
|
|
30
|
-
`)}}},{key:"blockquote",value:function(e){var t=this.rules.block.blockquote.exec(e);if(t){for(var n
|
|
28
|
+
`).map(function(l){var p=l.match(i.other.beginningSpace);return p===null?l:dt(p,1)[0].length>=c.length?l.slice(c.length):l}).join(`
|
|
29
|
+
`)})(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}},{key:"heading",value:function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(this.rules.other.endingHash.test(n)){var r=$a(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}},{key:"hr",value:function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:$a(t[0],`
|
|
30
|
+
`)}}},{key:"blockquote",value:function(e){var t=this.rules.block.blockquote.exec(e);if(t){for(var n=$a(t[0],`
|
|
31
31
|
`).split(`
|
|
32
32
|
`),r="",u="",a=[];n.length>0;){var i=!1,o=[],c=void 0;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))o.push(n[c]),i=!0;else{if(i)break;o.push(n[c])}n=n.slice(c);var l=o.join(`
|
|
33
|
-
`),
|
|
33
|
+
`),p=l.replace(this.rules.other.blockquoteSetextReplace,`
|
|
34
34
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?"".concat(r,`
|
|
35
35
|
`).concat(l):l,u=u?"".concat(u,`
|
|
36
|
-
`).concat(
|
|
36
|
+
`).concat(p):p;var m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,a,!0),this.lexer.state.top=m,n.length===0)break;var v=a.at(-1);if((v==null?void 0:v.type)==="code")break;if((v==null?void 0:v.type)==="blockquote"){var y=v,F=y.raw+`
|
|
37
37
|
`+n.join(`
|
|
38
|
-
`),D=this.blockquote(F);a[a.length-1]=D,r=r.substring(0,r.length-y.raw.length)+D.raw,u=u.substring(0,u.length-y.text.length)+D.text;break}if((
|
|
38
|
+
`),D=this.blockquote(F);a[a.length-1]=D,r=r.substring(0,r.length-y.raw.length)+D.raw,u=u.substring(0,u.length-y.text.length)+D.text;break}if((v==null?void 0:v.type)==="list"){var _=v,O=_.raw+`
|
|
39
39
|
`+n.join(`
|
|
40
|
-
`),w=this.list(
|
|
41
|
-
`)}}return{type:"blockquote",raw:r,tokens:a,text:u}}}},{key:"list",value:function(e){var t=this,n=this.rules.block.list.exec(e);if(n){var r=n[1].trim(),u=r.length>1,a={type:"list",raw:"",ordered:u,start:u?+r.slice(0,-1):"",loose:!1,items:[]};r=u?"\\d{1,9}\\".concat(r.slice(-1)):"\\".concat(r),this.options.pedantic&&(r=u?r:"[*+-]");for(var i=this.rules.other.listItemRegex(r),o=!1;e;){var c=!1,l="",
|
|
42
|
-
`,1)[0].replace(this.rules.other.listReplaceTabs,function(
|
|
43
|
-
`,1)[0],y=!
|
|
44
|
-
`,e=e.substring(
|
|
45
|
-
`,1)[0],
|
|
46
|
-
`+
|
|
47
|
-
`+
|
|
48
|
-
`,e=e.substring(
|
|
49
|
-
`):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(u.length===a.length){var c,l=
|
|
50
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}},{key:"text",value:function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}},{key:"escape",value:function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}},{key:"tag",value:function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}},{key:"link",value:function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;var r
|
|
51
|
-
`),this.blockTokens(t,this.tokens);for(var n=0;n<this.inlineQueue.length;n++){var r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}},{key:"blockTokens",value:function(t){var n,r=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=function(){var o,c,l;if((o=r.options.extensions)!==null&&o!==void 0&&(o=o.block)!==null&&o!==void 0&&o.some(function(
|
|
52
|
-
`:u.push(l),0}if(l=r.tokenizer.code(t)){t=t.substring(l.raw.length);var
|
|
40
|
+
`),w=this.list(O);a[a.length-1]=w,r=r.substring(0,r.length-v.raw.length)+w.raw,u=u.substring(0,u.length-_.raw.length)+w.raw,n=O.substring(a.at(-1).raw.length).split(`
|
|
41
|
+
`)}}return{type:"blockquote",raw:r,tokens:a,text:u}}}},{key:"list",value:function(e){var t=this,n=this.rules.block.list.exec(e);if(n){var r=n[1].trim(),u=r.length>1,a={type:"list",raw:"",ordered:u,start:u?+r.slice(0,-1):"",loose:!1,items:[]};r=u?"\\d{1,9}\\".concat(r.slice(-1)):"\\".concat(r),this.options.pedantic&&(r=u?r:"[*+-]");for(var i=this.rules.other.listItemRegex(r),o=!1;e;){var c=!1,l="",p="";if(!(n=i.exec(e))||this.rules.block.hr.test(e))break;l=n[0],e=e.substring(l.length);var m=n[2].split(`
|
|
42
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,function(G){return" ".repeat(3*G.length)}),v=e.split(`
|
|
43
|
+
`,1)[0],y=!m.trim(),F=0;if(this.options.pedantic?(F=2,p=m.trimStart()):y?F=n[1].length+1:(F=(F=n[2].search(this.rules.other.nonSpaceChar))>4?1:F,p=m.slice(F),F+=n[1].length),y&&this.rules.other.blankLine.test(v)&&(l+=v+`
|
|
44
|
+
`,e=e.substring(v.length+1),c=!0),!c)for(var D=this.rules.other.nextBulletRegex(F),_=this.rules.other.hrRegex(F),O=this.rules.other.fencesBeginRegex(F),w=this.rules.other.headingBeginRegex(F),x=this.rules.other.htmlBeginRegex(F);e;){var S=e.split(`
|
|
45
|
+
`,1)[0],T=void 0;if(v=S,T=this.options.pedantic?v=v.replace(this.rules.other.listReplaceNesting," "):v.replace(this.rules.other.tabCharGlobal," "),O.test(v)||w.test(v)||x.test(v)||D.test(v)||_.test(v))break;if(T.search(this.rules.other.nonSpaceChar)>=F||!v.trim())p+=`
|
|
46
|
+
`+T.slice(F);else{if(y||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(m)||w.test(m)||_.test(m))break;p+=`
|
|
47
|
+
`+v}!y&&!v.trim()&&(y=!0),l+=S+`
|
|
48
|
+
`,e=e.substring(S.length+1),m=T.slice(F)}a.loose||(o?a.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(o=!0));var I=null,B=void 0;this.options.gfm&&(I=this.rules.other.listIsTask.exec(p))&&(B=I[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,"")),a.items.push({type:"list_item",raw:l,task:!!I,checked:B,loose:!1,text:p,tokens:[]}),a.raw+=l}var d=a.items.at(-1);if(!d)return;d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd(),a.raw=a.raw.trimEnd();for(var H=0;H<a.items.length;H++)if(this.lexer.state.top=!1,a.items[H].tokens=this.lexer.blockTokens(a.items[H].text,[]),!a.loose){var R=a.items[H].tokens.filter(function(G){return G.type==="space"}),Z=R.length>0&&R.some(function(G){return t.rules.other.anyLine.test(G.raw)});a.loose=Z}if(a.loose)for(var q=0;q<a.items.length;q++)a.items[q].loose=!0;return a}}},{key:"html",value:function(e){var t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}},{key:"def",value:function(e){var t=this.rules.block.def.exec(e);if(t){var n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",u=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:u}}}},{key:"table",value:function(e){var t,n=this,r=this.rules.block.table.exec(e);if(r&&this.rules.other.tableDelimiter.test(r[2])){var u=Xf(r[1]),a=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(t=r[3])!==null&&t!==void 0&&t.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
49
|
+
`):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(u.length===a.length){var c,l=ye(a);try{for(l.s();!(c=l.n()).done;){var p=c.value;this.rules.other.tableAlignRight.test(p)?o.align.push("right"):this.rules.other.tableAlignCenter.test(p)?o.align.push("center"):this.rules.other.tableAlignLeft.test(p)?o.align.push("left"):o.align.push(null)}}catch(D){l.e(D)}finally{l.f()}for(var m=0;m<u.length;m++)o.header.push({text:u[m],tokens:this.lexer.inline(u[m]),header:!0,align:o.align[m]});var v,y=ye(i);try{for(y.s();!(v=y.n()).done;){var F=v.value;o.rows.push(Xf(F,o.header.length).map(function(D,_){return{text:D,tokens:n.lexer.inline(D),header:!1,align:o.align[_]}}))}}catch(D){y.e(D)}finally{y.f()}return o}}}},{key:"lheading",value:function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}},{key:"paragraph",value:function(e){var t=this.rules.block.paragraph.exec(e);if(t){var n=t[1].charAt(t[1].length-1)===`
|
|
50
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}},{key:"text",value:function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}},{key:"escape",value:function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}},{key:"tag",value:function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}},{key:"link",value:function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;var r=$a(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var u=(function(l,p){if(l.indexOf(p[1])===-1)return-1;for(var m=0,v=0;v<l.length;v++)if(l[v]==="\\")v++;else if(l[v]===p[0])m++;else if(l[v]===p[1]&&--m<0)return v;return m>0?-2:-1})(t[2],"()");if(u===-2)return;if(u>-1){var a=(t[0].indexOf("!")===0?5:4)+t[1].length+u;t[2]=t[2].substring(0,u),t[0]=t[0].substring(0,a).trim(),t[3]=""}}var i=t[2],o="";if(this.options.pedantic){var c=this.rules.other.pedanticHrefTitle.exec(i);c&&(i=c[1],o=c[3])}else o=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i.slice(1):i.slice(1,-1)),ed(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}},{key:"reflink",value:function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!r){var u=n[0].charAt(0);return{type:"text",raw:u,text:u}}return ed(n,r,n[0],this.lexer,this.rules)}}},{key:"emStrong",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){var u,a,i=be(r[0]).length-1,o=i,c=0,l=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+i);(r=l.exec(t))!=null;)if(u=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(a=be(u).length,r[3]||r[4])o+=a;else if(!((r[5]||r[6])&&i%3)||(i+a)%3){if(!((o-=a)>0)){a=Math.min(a,a+o+c);var p=be(r[0])[0].length,m=e.slice(0,i+r.index+p+a);if(Math.min(i,a)%2){var v=m.slice(1,-1);return{type:"em",raw:m,text:v,tokens:this.lexer.inlineTokens(v)}}var y=m.slice(2,-2);return{type:"strong",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}}else c+=a}}},{key:"codespan",value:function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),u=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&u&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}},{key:"br",value:function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}},{key:"del",value:function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}},{key:"autolink",value:function(e){var t,n,r=this.rules.inline.autolink.exec(e);if(r)return n=r[2]==="@"?"mailto:"+(t=r[1]):t=r[1],{type:"link",raw:r[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}},{key:"url",value:function(e){var t;if(t=this.rules.inline.url.exec(e)){var n,r;if(t[2]==="@")r="mailto:"+(n=t[0]);else{var u;do{var a,i;u=t[0],t[0]=(a=(i=this.rules.inline._backpedal.exec(t[0]))===null||i===void 0?void 0:i[0])!==null&&a!==void 0?a:""}while(u!==t[0]);n=t[0],r=t[1]==="www."?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}},{key:"inlineText",value:function(e){var t=this.rules.inline.text.exec(e);if(t){var n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}}]),Un=(function(){function e(t){Be(this,e),lt(this,"tokens",void 0),lt(this,"options",void 0),lt(this,"state",void 0),lt(this,"tokenizer",void 0),lt(this,"inlineQueue",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||hu,this.options.tokenizer=this.options.tokenizer||new Li,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={other:pn,block:zi.normal,inline:Ma.normal};this.options.pedantic?(n.block=zi.pedantic,n.inline=Ma.pedantic):this.options.gfm&&(n.block=zi.gfm,this.options.breaks?n.inline=Ma.breaks:n.inline=Ma.gfm),this.tokenizer.rules=n}return Pe(e,[{key:"lex",value:function(t){t=t.replace(pn.carriageReturn,`
|
|
51
|
+
`),this.blockTokens(t,this.tokens);for(var n=0;n<this.inlineQueue.length;n++){var r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}},{key:"blockTokens",value:function(t){var n,r=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=function(){var o,c,l;if((o=r.options.extensions)!==null&&o!==void 0&&(o=o.block)!==null&&o!==void 0&&o.some(function(S){return!!(l=S.call({lexer:r},t,u))&&(t=t.substring(l.raw.length),u.push(l),!0)}))return 0;if(l=r.tokenizer.space(t)){t=t.substring(l.raw.length);var p=u.at(-1);return l.raw.length===1&&p!==void 0?p.raw+=`
|
|
52
|
+
`:u.push(l),0}if(l=r.tokenizer.code(t)){t=t.substring(l.raw.length);var m=u.at(-1);return(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
|
|
53
53
|
`)?"":`
|
|
54
|
-
`)+l.raw,
|
|
55
|
-
`+l.text,r.inlineQueue.at(-1).src=
|
|
54
|
+
`)+l.raw,m.text+=`
|
|
55
|
+
`+l.text,r.inlineQueue.at(-1).src=m.text):u.push(l),0}if((l=r.tokenizer.fences(t))||(l=r.tokenizer.heading(t))||(l=r.tokenizer.hr(t))||(l=r.tokenizer.blockquote(t))||(l=r.tokenizer.list(t))||(l=r.tokenizer.html(t)))return t=t.substring(l.raw.length),u.push(l),0;if(l=r.tokenizer.def(t)){t=t.substring(l.raw.length);var v=u.at(-1);return(v==null?void 0:v.type)==="paragraph"||(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
|
|
56
56
|
`)?"":`
|
|
57
|
-
`)+l.raw,
|
|
58
|
-
`+l.raw,r.inlineQueue.at(-1).src=
|
|
57
|
+
`)+l.raw,v.text+=`
|
|
58
|
+
`+l.raw,r.inlineQueue.at(-1).src=v.text):r.tokens.links[l.tag]||(r.tokens.links[l.tag]={href:l.href,title:l.title},u.push(l)),0}if((l=r.tokenizer.table(t))||(l=r.tokenizer.lheading(t)))return t=t.substring(l.raw.length),u.push(l),0;var y=t;if((c=r.options.extensions)!==null&&c!==void 0&&c.startBlock){var F,D=1/0,_=t.slice(1);r.options.extensions.startBlock.forEach(function(S){typeof(F=S.call({lexer:r},_))=="number"&&F>=0&&(D=Math.min(D,F))}),D<1/0&&D>=0&&(y=t.substring(0,D+1))}if(r.state.top&&(l=r.tokenizer.paragraph(y))){var O=u.at(-1);return a&&(O==null?void 0:O.type)==="paragraph"?(O.raw+=(O.raw.endsWith(`
|
|
59
59
|
`)?"":`
|
|
60
|
-
`)+l.raw,
|
|
61
|
-
`+l.text,r.inlineQueue.pop(),r.inlineQueue.at(-1).src=
|
|
60
|
+
`)+l.raw,O.text+=`
|
|
61
|
+
`+l.text,r.inlineQueue.pop(),r.inlineQueue.at(-1).src=O.text):u.push(l),a=y.length!==t.length,t=t.substring(l.raw.length),0}if(l=r.tokenizer.text(t)){t=t.substring(l.raw.length);var w=u.at(-1);return(w==null?void 0:w.type)==="text"?(w.raw+=(w.raw.endsWith(`
|
|
62
62
|
`)?"":`
|
|
63
63
|
`)+l.raw,w.text+=`
|
|
64
|
-
`+l.text,r.inlineQueue.pop(),r.inlineQueue.at(-1).src=w.text):u.push(l),0}if(t){var
|
|
65
|
-
`;return a?'<pre><code class="language-'+
|
|
66
|
-
`:"<pre><code>"+(u?i:
|
|
64
|
+
`+l.text,r.inlineQueue.pop(),r.inlineQueue.at(-1).src=w.text):u.push(l),0}if(t){var x="Infinite loop on byte: "+t.charCodeAt(0);if(r.options.silent)return console.error(x),1;throw new Error(x)}};for(this.options.pedantic&&(t=t.replace(pn.tabCharGlobal," ").replace(pn.spaceLine,""));t&&((n=i())===0||n!==1););return this.state.top=!0,u}},{key:"inline",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return this.inlineQueue.push({src:t,tokens:n}),n}},{key:"inlineTokens",value:function(t){var n,r,u,a=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=t,c=null;if(this.tokens.links){var l=Object.keys(this.tokens.links);if(l.length>0)for(;(c=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)l.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(c=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,c.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(c=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)u=c[2]?c[2].length:0,o=o.slice(0,c.index+u)+"["+"a".repeat(c[0].length-u-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);o=(n=(r=this.options.hooks)===null||r===void 0||(r=r.emStrongMask)===null||r===void 0?void 0:r.call({lexer:this},o))!==null&&n!==void 0?n:o;for(var p,m=!1,v="",y=function(){var F,D,_;if(m||(v=""),m=!1,(F=a.options.extensions)!==null&&F!==void 0&&(F=F.inline)!==null&&F!==void 0&&F.some(function(d){return!!(_=d.call({lexer:a},t,i))&&(t=t.substring(_.raw.length),i.push(_),!0)}))return 0;if((_=a.tokenizer.escape(t))||(_=a.tokenizer.tag(t))||(_=a.tokenizer.link(t)))return t=t.substring(_.raw.length),i.push(_),0;if(_=a.tokenizer.reflink(t,a.tokens.links)){t=t.substring(_.raw.length);var O=i.at(-1);return _.type==="text"&&(O==null?void 0:O.type)==="text"?(O.raw+=_.raw,O.text+=_.text):i.push(_),0}if((_=a.tokenizer.emStrong(t,o,v))||(_=a.tokenizer.codespan(t))||(_=a.tokenizer.br(t))||(_=a.tokenizer.del(t))||(_=a.tokenizer.autolink(t))||!a.state.inLink&&(_=a.tokenizer.url(t)))return t=t.substring(_.raw.length),i.push(_),0;var w=t;if((D=a.options.extensions)!==null&&D!==void 0&&D.startInline){var x,S=1/0,T=t.slice(1);a.options.extensions.startInline.forEach(function(d){typeof(x=d.call({lexer:a},T))=="number"&&x>=0&&(S=Math.min(S,x))}),S<1/0&&S>=0&&(w=t.substring(0,S+1))}if(_=a.tokenizer.inlineText(w)){t=t.substring(_.raw.length),_.raw.slice(-1)!=="_"&&(v=_.raw.slice(-1)),m=!0;var I=i.at(-1);return(I==null?void 0:I.type)==="text"?(I.raw+=_.raw,I.text+=_.text):i.push(_),0}if(t){var B="Infinite loop on byte: "+t.charCodeAt(0);if(a.options.silent)return console.error(B),1;throw new Error(B)}};t&&((p=y())===0||p!==1););return i}}],[{key:"rules",get:function(){return{block:zi,inline:Ma}}},{key:"lex",value:function(t,n){return new e(n).lex(t)}},{key:"lexInline",value:function(t,n){return new e(n).inlineTokens(t)}}])})(),Mi=Pe(function e(t){Be(this,e),lt(this,"options",void 0),lt(this,"parser",void 0),this.options=t||hu},[{key:"space",value:function(e){return""}},{key:"code",value:function(e){var t,n=e.text,r=e.lang,u=e.escaped,a=(t=(r||"").match(pn.notSpaceStart))===null||t===void 0?void 0:t[0],i=n.replace(pn.endingNewline,"")+`
|
|
65
|
+
`;return a?'<pre><code class="language-'+nr(a)+'">'+(u?i:nr(i,!0))+`</code></pre>
|
|
66
|
+
`:"<pre><code>"+(u?i:nr(i,!0))+`</code></pre>
|
|
67
67
|
`}},{key:"blockquote",value:function(e){var t=e.tokens;return`<blockquote>
|
|
68
68
|
`.concat(this.parser.parse(t),`</blockquote>
|
|
69
69
|
`)}},{key:"html",value:function(e){return e.text}},{key:"def",value:function(e){return""}},{key:"heading",value:function(e){var t=e.tokens,n=e.depth;return"<h".concat(n,">").concat(this.parser.parseInline(t),"</h").concat(n,`>
|
|
70
70
|
`)}},{key:"hr",value:function(e){return`<hr>
|
|
71
71
|
`}},{key:"list",value:function(e){for(var t=e.ordered,n=e.start,r="",u=0;u<e.items.length;u++){var a=e.items[u];r+=this.listitem(a)}var i=t?"ol":"ul";return"<"+i+(t&&n!==1?' start="'+n+'"':"")+`>
|
|
72
72
|
`+r+"</"+i+`>
|
|
73
|
-
`}},{key:"listitem",value:function(e){var t="";if(e.task){var n,r=this.checkbox({checked:!!e.checked});e.loose?((n=e.tokens[0])===null||n===void 0?void 0:n.type)==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+
|
|
73
|
+
`}},{key:"listitem",value:function(e){var t="";if(e.task){var n,r=this.checkbox({checked:!!e.checked});e.loose?((n=e.tokens[0])===null||n===void 0?void 0:n.type)==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+nr(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),"<li>".concat(t,`</li>
|
|
74
74
|
`)}},{key:"checkbox",value:function(e){return"<input "+(e.checked?'checked="" ':"")+'disabled="" type="checkbox">'}},{key:"paragraph",value:function(e){var t=e.tokens;return"<p>".concat(this.parser.parseInline(t),`</p>
|
|
75
75
|
`)}},{key:"table",value:function(e){for(var t="",n="",r=0;r<e.header.length;r++)n+=this.tablecell(e.header[r]);t+=this.tablerow({text:n});for(var u="",a=0;a<e.rows.length;a++){var i=e.rows[a];n="";for(var o=0;o<i.length;o++)n+=this.tablecell(i[o]);u+=this.tablerow({text:n})}return u&&(u="<tbody>".concat(u,"</tbody>")),`<table>
|
|
76
76
|
<thead>
|
|
@@ -79,44 +79,44 @@ See: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources
|
|
|
79
79
|
`}},{key:"tablerow",value:function(e){var t=e.text;return`<tr>
|
|
80
80
|
`.concat(t,`</tr>
|
|
81
81
|
`)}},{key:"tablecell",value:function(e){var t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?"<".concat(n,' align="').concat(e.align,'">'):"<".concat(n,">"))+t+"</".concat(n,`>
|
|
82
|
-
`)}},{key:"strong",value:function(e){var t=e.tokens;return"<strong>".concat(this.parser.parseInline(t),"</strong>")}},{key:"em",value:function(e){var t=e.tokens;return"<em>".concat(this.parser.parseInline(t),"</em>")}},{key:"codespan",value:function(e){var t=e.text;return"<code>".concat(
|
|
83
|
-
`+this.renderer.text(
|
|
84
|
-
Please report this to https://github.com/markedjs/marked.`,e){var r="<p>An error occurred:</p><pre>"+
|
|
82
|
+
`)}},{key:"strong",value:function(e){var t=e.tokens;return"<strong>".concat(this.parser.parseInline(t),"</strong>")}},{key:"em",value:function(e){var t=e.tokens;return"<em>".concat(this.parser.parseInline(t),"</em>")}},{key:"codespan",value:function(e){var t=e.text;return"<code>".concat(nr(t,!0),"</code>")}},{key:"br",value:function(e){return"<br>"}},{key:"del",value:function(e){var t=e.tokens;return"<del>".concat(this.parser.parseInline(t),"</del>")}},{key:"link",value:function(e){var t=e.href,n=e.title,r=e.tokens,u=this.parser.parseInline(r),a=Yf(t);if(a===null)return u;var i='<a href="'+(t=a)+'"';return n&&(i+=' title="'+nr(n)+'"'),i+">"+u+"</a>"}},{key:"image",value:function(e){var t=e.href,n=e.title,r=e.text,u=e.tokens;u&&(r=this.parser.parseInline(u,this.parser.textRenderer));var a=Yf(t);if(a===null)return nr(r);var i='<img src="'.concat(t=a,'" alt="').concat(r,'"');return n&&(i+=' title="'.concat(nr(n),'"')),i+">"}},{key:"text",value:function(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:nr(e.text)}}]),Ts=Pe(function e(){Be(this,e)},[{key:"strong",value:function(e){return e.text}},{key:"em",value:function(e){return e.text}},{key:"codespan",value:function(e){return e.text}},{key:"del",value:function(e){return e.text}},{key:"html",value:function(e){return e.text}},{key:"text",value:function(e){return e.text}},{key:"link",value:function(e){return""+e.text}},{key:"image",value:function(e){return""+e.text}},{key:"br",value:function(){return""}}]),Wn=(function(){function e(t){Be(this,e),lt(this,"options",void 0),lt(this,"renderer",void 0),lt(this,"textRenderer",void 0),this.options=t||hu,this.options.renderer=this.options.renderer||new Mi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ts}return Pe(e,[{key:"parse",value:function(t){for(var n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],r="",u=0;u<t.length;u++){var a,i=t[u];if((a=this.options.extensions)!==null&&a!==void 0&&(a=a.renderers)!==null&&a!==void 0&&a[i.type]){var o=i,c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){r+=c||"";continue}}var l=i;switch(l.type){case"space":r+=this.renderer.space(l);continue;case"hr":r+=this.renderer.hr(l);continue;case"heading":r+=this.renderer.heading(l);continue;case"code":r+=this.renderer.code(l);continue;case"table":r+=this.renderer.table(l);continue;case"blockquote":r+=this.renderer.blockquote(l);continue;case"list":r+=this.renderer.list(l);continue;case"html":r+=this.renderer.html(l);continue;case"def":r+=this.renderer.def(l);continue;case"paragraph":r+=this.renderer.paragraph(l);continue;case"text":for(var p=l,m=this.renderer.text(p);u+1<t.length&&t[u+1].type==="text";)p=t[++u],m+=`
|
|
83
|
+
`+this.renderer.text(p);r+=n?this.renderer.paragraph({type:"paragraph",raw:m,text:m,tokens:[{type:"text",raw:m,text:m,escaped:!0}]}):m;continue;default:var v='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(v),"";throw new Error(v)}}return r}},{key:"parseInline",value:function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.renderer,r="",u=0;u<t.length;u++){var a,i=t[u];if((a=this.options.extensions)!==null&&a!==void 0&&(a=a.renderers)!==null&&a!==void 0&&a[i.type]){var o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=o||"";continue}}var c=i;switch(c.type){case"escape":case"text":r+=n.text(c);break;case"html":r+=n.html(c);break;case"link":r+=n.link(c);break;case"image":r+=n.image(c);break;case"strong":r+=n.strong(c);break;case"em":r+=n.em(c);break;case"codespan":r+=n.codespan(c);break;case"br":r+=n.br(c);break;case"del":r+=n.del(c);break;default:var l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}return r}}],[{key:"parse",value:function(t,n){return new e(n).parse(t)}},{key:"parseInline",value:function(t,n){return new e(n).parseInline(t)}}])})(),Za=(Pi=Pe(function e(t){Be(this,e),lt(this,"options",void 0),lt(this,"block",void 0),this.options=t||hu},[{key:"preprocess",value:function(e){return e}},{key:"postprocess",value:function(e){return e}},{key:"processAllTokens",value:function(e){return e}},{key:"emStrongMask",value:function(e){return e}},{key:"provideLexer",value:function(){return this.block?Un.lex:Un.lexInline}},{key:"provideParser",value:function(){return this.block?Wn.parse:Wn.parseInline}}]),lt(Pi,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),lt(Pi,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Pi),Qm=Pe(function e(){Be(this,e),lt(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),lt(this,"options",this.setOptions),lt(this,"parse",this.parseMarkdown(!0)),lt(this,"parseInline",this.parseMarkdown(!1)),lt(this,"Parser",Wn),lt(this,"Renderer",Mi),lt(this,"TextRenderer",Ts),lt(this,"Lexer",Un),lt(this,"Tokenizer",Li),lt(this,"Hooks",Za),this.use.apply(this,arguments)},[{key:"walkTokens",value:function(e,t){var n,r=this,u=[],a=ye(e);try{var i=function(){var o=n.value;switch(u=u.concat(t.call(r,o)),o.type){case"table":var c,l=o,p=ye(l.header);try{for(p.s();!(c=p.n()).done;){var m=c.value;u=u.concat(r.walkTokens(m.tokens,t))}}catch(S){p.e(S)}finally{p.f()}var v,y=ye(l.rows);try{for(y.s();!(v=y.n()).done;){var F,D=ye(v.value);try{for(D.s();!(F=D.n()).done;){var _=F.value;u=u.concat(r.walkTokens(_.tokens,t))}}catch(S){D.e(S)}finally{D.f()}}}catch(S){y.e(S)}finally{y.f()}break;case"list":var O=o;u=u.concat(r.walkTokens(O.items,t));break;default:var w,x=o;(w=r.defaults.extensions)!==null&&w!==void 0&&(w=w.childTokens)!==null&&w!==void 0&&w[x.type]?r.defaults.extensions.childTokens[x.type].forEach(function(S){var T=x[S].flat(1/0);u=u.concat(r.walkTokens(T,t))}):x.tokens&&(u=u.concat(r.walkTokens(x.tokens,t)))}};for(a.s();!(n=a.n()).done;)i()}catch(o){a.e(o)}finally{a.f()}return u}},{key:"use",value:function(){for(var e=this,t=this.defaults.extensions||{renderers:{},childTokens:{}},n=arguments.length,r=new Array(n),u=0;u<n;u++)r[u]=arguments[u];return r.forEach(function(a){var i=C({},a);if(i.async=e.defaults.async||i.async||!1,a.extensions&&(a.extensions.forEach(function(w){if(!w.name)throw new Error("extension name required");if("renderer"in w){var x=t.renderers[w.name];t.renderers[w.name]=x?function(){for(var T=arguments.length,I=new Array(T),B=0;B<T;B++)I[B]=arguments[B];var d=w.renderer.apply(this,I);return d===!1&&(d=x.apply(this,I)),d}:w.renderer}if("tokenizer"in w){if(!w.level||w.level!=="block"&&w.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");var S=t[w.level];S?S.unshift(w.tokenizer):t[w.level]=[w.tokenizer],w.start&&(w.level==="block"?t.startBlock?t.startBlock.push(w.start):t.startBlock=[w.start]:w.level==="inline"&&(t.startInline?t.startInline.push(w.start):t.startInline=[w.start]))}"childTokens"in w&&w.childTokens&&(t.childTokens[w.name]=w.childTokens)}),i.extensions=t),a.renderer){var o=e.defaults.renderer||new Mi(e.defaults),c=function(){if(!(l in o))throw new Error("renderer '".concat(l,"' does not exist"));if(["options","parser"].includes(l))return 1;var w=l,x=a.renderer[w],S=o[w];o[w]=function(){for(var T=arguments.length,I=new Array(T),B=0;B<T;B++)I[B]=arguments[B];var d=x.apply(o,I);return d===!1&&(d=S.apply(o,I)),d||""}};for(var l in a.renderer)c();i.renderer=o}if(a.tokenizer){var p=e.defaults.tokenizer||new Li(e.defaults),m=function(){if(!(v in p))throw new Error("tokenizer '".concat(v,"' does not exist"));if(["options","rules","lexer"].includes(v))return 1;var w=v,x=a.tokenizer[w],S=p[w];p[w]=function(){for(var T=arguments.length,I=new Array(T),B=0;B<T;B++)I[B]=arguments[B];var d=x.apply(p,I);return d===!1&&(d=S.apply(p,I)),d}};for(var v in a.tokenizer)m();i.tokenizer=p}if(a.hooks){var y=e.defaults.hooks||new Za,F=function(w){if(!(w in y))throw new Error("hook '".concat(w,"' does not exist"));if(["options","block"].includes(w))return 1;var x=w,S=a.hooks[x],T=y[x];Za.passThroughHooks.has(w)?y[x]=function(I){if(e.defaults.async&&Za.passThroughHooksRespectAsync.has(w))return Xe(Ae().m(function d(){var H;return Ae().w(function(R){for(;;)switch(R.n){case 0:return R.n=1,S.call(y,I);case 1:return H=R.v,R.a(2,T.call(y,H))}},d)}))();var B=S.call(y,I);return T.call(y,B)}:y[x]=function(){for(var I=arguments.length,B=new Array(I),d=0;d<I;d++)B[d]=arguments[d];if(e.defaults.async)return Xe(Ae().m(function R(){var Z;return Ae().w(function(q){for(;;)switch(q.n){case 0:return q.n=1,S.apply(y,B);case 1:if((Z=q.v)!==!1){q.n=3;break}return q.n=2,T.apply(y,B);case 2:Z=q.v;case 3:return q.a(2,Z)}},R)}))();var H=S.apply(y,B);return H===!1&&(H=T.apply(y,B)),H}};for(var D in a.hooks)F(D);i.hooks=y}if(a.walkTokens){var _=e.defaults.walkTokens,O=a.walkTokens;i.walkTokens=function(w){var x=[];return x.push(O.call(this,w)),_&&(x=x.concat(_.call(this,w))),x}}e.defaults=C(C({},e.defaults),i)}),this}},{key:"setOptions",value:function(e){return this.defaults=C(C({},this.defaults),e),this}},{key:"lexer",value:function(e,t){return Un.lex(e,t!=null?t:this.defaults)}},{key:"parser",value:function(e,t){return Wn.parse(e,t!=null?t:this.defaults)}},{key:"parseMarkdown",value:function(e){var t=this;return function(n,r){var u=C({},r),a=C(C({},t.defaults),u),i=t.onError(!!a.silent,!!a.async);if(t.defaults.async===!0&&u.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(Qt(n)>"u"||n===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return Xe(Ae().m(function l(){var p,m,v,y,F,D,_,O,w,x,S;return Ae().w(function(T){for(;;)switch(T.n){case 0:if(!a.hooks){T.n=2;break}return T.n=1,a.hooks.preprocess(n);case 1:F=T.v,T.n=3;break;case 2:F=n;case 3:if(p=F,!a.hooks){T.n=5;break}return T.n=4,a.hooks.provideLexer();case 4:D=T.v,T.n=6;break;case 5:D=e?Un.lex:Un.lexInline;case 6:return _=D,T.n=7,_(p,a);case 7:if(m=T.v,!a.hooks){T.n=9;break}return T.n=8,a.hooks.processAllTokens(m);case 8:O=T.v,T.n=10;break;case 9:O=m;case 10:if(v=O,!a.walkTokens){T.n=11;break}return T.n=11,Promise.all(t.walkTokens(v,a.walkTokens));case 11:if(!a.hooks){T.n=13;break}return T.n=12,a.hooks.provideParser();case 12:w=T.v,T.n=14;break;case 13:w=e?Wn.parse:Wn.parseInline;case 14:return x=w,T.n=15,x(v,a);case 15:if(y=T.v,!a.hooks){T.n=17;break}return T.n=16,a.hooks.postprocess(y);case 16:S=T.v,T.n=18;break;case 17:S=y;case 18:return T.a(2,S)}},l)}))().catch(i);try{a.hooks&&(n=a.hooks.preprocess(n));var o=(a.hooks?a.hooks.provideLexer():e?Un.lex:Un.lexInline)(n,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&t.walkTokens(o,a.walkTokens);var c=(a.hooks?a.hooks.provideParser():e?Wn.parse:Wn.parseInline)(o,a);return a.hooks&&(c=a.hooks.postprocess(c)),c}catch(l){return i(l)}}}},{key:"onError",value:function(e,t){return function(n){if(n.message+=`
|
|
84
|
+
Please report this to https://github.com/markedjs/marked.`,e){var r="<p>An error occurred:</p><pre>"+nr(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}}]),Mr=new Qm;function bt(e,t){return Mr.parse(e,t)}function $i(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}bt.options=bt.setOptions=function(e){return Mr.setOptions(e),bt.defaults=Mr.defaults,zf(bt.defaults),bt},bt.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},bt.defaults=hu,bt.use=function(){return Mr.use.apply(Mr,arguments),bt.defaults=Mr.defaults,zf(bt.defaults),bt},bt.walkTokens=function(e,t){return Mr.walkTokens(e,t)},bt.parseInline=Mr.parseInline,bt.Parser=Wn,bt.parser=Wn.parse,bt.Renderer=Mi,bt.TextRenderer=Ts,bt.Lexer=Un,bt.lexer=Un.lex,bt.Tokenizer=Li,bt.Hooks=Za,bt.parse=bt,bt.options,bt.setOptions,bt.use,bt.walkTokens,bt.parseInline,Wn.parse,Un.lex;var Os=new bt.Renderer;Os.code=function(e){var t=e.text,n=e.lang,r=n===void 0?"":n,u=e.escaped,a=r?"language-".concat(r):"",i=u?t:$i(t),o=encodeURIComponent(t);return`
|
|
85
85
|
<div class="DocSearch-CodeSnippet">
|
|
86
86
|
<button class="DocSearch-CodeSnippet-CopyButton" data-code="`.concat(o,'" aria-label="copy code">').concat('<svg class="DocSearch-CodeSnippet-CopyIcon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2" /><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></svg>').concat('<svg class="DocSearch-CodeSnippet-CheckIcon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5" /></svg>',`<span class="DocSearch-CodeSnippet-CopyButton-Label"></span></button>
|
|
87
87
|
<pre><code class="`).concat(a,'">').concat(i,`</code></pre>
|
|
88
88
|
</div>
|
|
89
|
-
`)},As.link=function(e){var t=e.href,n=e.title,r=e.text,u=n?' title="'.concat(Ni(n),'"'):"",a=t?Ni(t):"",i=Ni(r);return'<a href="'.concat(a,'"').concat(u,' target="_blank" rel="noopener noreferrer">').concat(i,"</a>")};var Ri=_l(function(e){var t=e.content,n=e.copyButtonText,r=e.copyButtonCopiedText,u=e.isStreaming,a=Vn(function(){return gt.parse(t,{gfm:!0,breaks:!0,renderer:As})},[t]),i=Su(null);return Un(function(){var o=i.current;if(o)return Array.from(o.querySelectorAll(".DocSearch-CodeSnippet-CopyButton")).forEach(function(l){var h=l.querySelector(".DocSearch-CodeSnippet-CopyButton-Label");h&&(h.textContent=n),l.classList.remove("DocSearch-CodeSnippet-CopyButton--copied")}),o.addEventListener("click",c),function(){o.removeEventListener("click",c)};function c(l){var h,p=l.target.closest(".DocSearch-CodeSnippet-CopyButton");if(p){var g=(h=p.getAttribute("data-code"))!==null&&h!==void 0?h:"";navigator.clipboard.writeText(decodeURIComponent(g)).catch(function(){});var y=p.querySelector(".DocSearch-CodeSnippet-CopyButton-Label");if(y){p.classList.add("DocSearch-CodeSnippet-CopyButton--copied");var F=n;y.textContent=r,setTimeout(function(){p.classList.remove("DocSearch-CodeSnippet-CopyButton--copied"),y.textContent=F},1500)}}}},[a,n,r]),b.createElement("div",{ref:i,className:"DocSearch-Markdown-Content ".concat(u?"DocSearch-Markdown-Content--streaming":""),dangerouslySetInnerHTML:{__html:a}})});Ri.displayName="MemoizedMarkdown";var nm=function(e,t){var n,r,u=t[0].parts.find(function(a){return a.type==="text"});return{query:e,objectID:(n=u==null?void 0:u.text)!==null&&n!==void 0?n:"",messages:t,type:"askAI",anchor:"stored",content:null,hierarchy:{lvl0:"askAI",lvl1:(r=u==null?void 0:u.text)!==null&&r!==void 0?r:"",lvl2:null,lvl3:null,lvl4:null,lvl5:null,lvl6:null},url:"",url_without_anchor:""}},td=function(e){return e==null?void 0:e.parts.find(function(t){return t.type==="text"})};function Es(e){var t;return e&&((t=e.message)===null||t===void 0?void 0:t.includes("AI-217"))||!1}var rm=["translations"];function um(e){var t=e.disclaimerText;return b.createElement("p",{className:"DocSearch-AskAiScreen-Disclaimer"},t)}function am(e){var t,n,r,u=e.exchange,a=e.askAiError,i=e.isLastExchange,o=e.loadingStatus,c=e.onSearchQueryClick,l=e.translations,h=e.conversations,p=e.onFeedback,g=u.userMessage,y=u.assistantMessage,F=l.stoppedStreamingText,D=F===void 0?"You stopped this response":F,_=l.errorTitleText,T=_===void 0?"Chat error":_,w=Es(a),S=Vn(function(){return td(y)},[y]),x=Vn(function(){return td(g)},[g]),O=b.useMemo(function(){return N=y,Z=[],z=new Set,N?(N.parts.forEach(function(H){if(H.type==="text"&&H.text.length!==0){var L,K=H.text.replace(/```[\s\S]*?```/g,"").replace(/`[^`]*`/g,""),J=me(K.matchAll(/\[([^\]]*)\]\(([^)]+)\)/g));try{for(J.s();!(L=J.n()).done;){var W=L.value,ee=W[1].trim(),ue=W[2];z.has(ue)||(z.add(ue),Z.push({url:ue,title:ee||void 0}))}}catch(Y){J.e(Y)}finally{J.f()}var ye,oe=me(K.matchAll(new RegExp('(?<!\\]\\()https?:\\/\\/[^\\s<>"{}|\\\\^`[\\]]+',"g")));try{for(oe.s();!(ye=oe.n()).done;){var ae=ye.value[0].replace(/[.,;:!?]+$/,"");z.has(ae)||(z.add(ae),Z.push({url:ae}))}}catch(Y){oe.e(Y)}finally{oe.f()}}}),Z):[];var N,Z,z},[y]),I=b.useMemo(function(){return(function(N){for(var Z=[],z=0;z<N.length;z++){var H=N[z];if(H.type==="tool-searchIndex"&&H.state==="output-available"){for(var L=[],K=z;K<N.length;){var J=N[K];if(J.type!=="tool-searchIndex"||J.state!=="output-available")break;var W,ee,ue=((W=(ee=J.output)===null||ee===void 0?void 0:ee.query)!==null&&W!==void 0?W:"").trim();ue&&ue.length>0&&L.push(ue),K++}L.length>1?Z.push({type:"aggregated-tool-call",queries:L}):L.length===1&&Z.push(H),z=K-1}else Z.push(H)}return Z})((y==null?void 0:y.parts)||[])},[y]),B=((t=g.metadata)===null||t===void 0?void 0:t.stopped)||(y==null||(n=y.metadata)===null||n===void 0?void 0:n.stopped),d=!B&&(!i||i&&o==="ready"&&!!y),q=["submitted","streaming"].includes(o)&&i&&!I.some(function(N){return N.type!=="step-start"});return b.createElement("div",{className:"DocSearch-AskAiScreen-Response-Container"},b.createElement("div",{className:"DocSearch-AskAiScreen-Response"},b.createElement("div",{className:"DocSearch-AskAiScreen-Message DocSearch-AskAiScreen-Message--user"},b.createElement("p",{className:"DocSearch-AskAiScreen-Query"},(r=x==null?void 0:x.text)!==null&&r!==void 0?r:"")),b.createElement("div",{className:"DocSearch-AskAiScreen-Message DocSearch-AskAiScreen-Message--assistant"},b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent"},o==="error"&&a&&i&&!w&&b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent DocSearch-AskAiScreen-Error"},b.createElement(D0,null),b.createElement("div",{className:"DocSearch-AskAiScreen-Error-Content"},b.createElement("h4",{className:"DocSearch-AskAiScreen-Error-Title"},T),b.createElement(Ri,{content:a.message,copyButtonText:"",copyButtonCopiedText:"",isStreaming:!1}))),q&&b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent-Reasoning"},b.createElement("span",{className:"shimmer"},l.thinkingText||"Thinking...")),I.map(function(N,Z){var z,H=Z;if(typeof N=="string")return b.createElement(Ri,{key:H,content:N,copyButtonText:l.copyButtonText||"Copy",copyButtonCopiedText:l.copyButtonCopiedText||"Copied!",isStreaming:o==="streaming"});if(N.type==="aggregated-tool-call")return b.createElement(I0,{key:H,queries:N.queries,translations:l,onSearchQueryClick:c});if(N.type==="reasoning"&&N.state==="streaming")return b.createElement("div",{key:H,className:"DocSearch-AskAiScreen-MessageContent-Reasoning shimmer"},b.createElement(Pa,{className:"DocSearch-AskAiScreen-SmallerLoadingIcon"}),b.createElement("span",{className:"shimmer"},"Reasoning..."));if(N.type==="text")return b.createElement(Ri,{key:H,content:N.text,copyButtonText:l.copyButtonText||"Copy",copyButtonCopiedText:l.copyButtonCopiedText||"Copied!",isStreaming:N.state==="streaming"});if(N.type==="tool-searchIndex")switch(N.state){case"input-streaming":return b.createElement("div",{key:H,className:"DocSearch-AskAiScreen-MessageContent-Tool Tool--PartialCall shimmer"},b.createElement(Pa,{className:"DocSearch-AskAiScreen-SmallerLoadingIcon"}),b.createElement("span",null,l.preToolCallText||"Searching..."));case"input-available":return b.createElement("div",{key:H,className:"DocSearch-AskAiScreen-MessageContent-Tool Tool--Call shimmer"},b.createElement(Pa,{className:"DocSearch-AskAiScreen-SmallerLoadingIcon"}),b.createElement("span",null,"".concat(l.duringToolCallText||"Searching for ",' "').concat(N.input.query||"",'" ...')));case"output-available":return b.createElement("div",{key:H,className:"DocSearch-AskAiScreen-MessageContent-Tool Tool--Result"},b.createElement(ma,null),b.createElement("span",null,"".concat(l.afterToolCallText||"Searched for")," ",b.createElement("span",{role:"button",tabIndex:0,className:"DocSearch-AskAiScreen-MessageContent-Tool-Query",onKeyDown:function(L){L.key!=="Enter"&&L.key!==" "||(L.preventDefault(),c(N.output.query||""))},onClick:function(){return c(N.output.query||"")}}," ",'"',N.output.query||"",'"')," ","found ",((z=N.output.hits)===null||z===void 0?void 0:z.length)||0," results"))}return null})),B&&b.createElement("p",{className:"DocSearck-AskAiScreen-MessageContent-Stopped"},D)),b.createElement("div",{className:"DocSearch-AskAiScreen-Answer-Footer"},b.createElement(im,{id:(g==null?void 0:g.id)||u.id,showActions:d,latestAssistantMessageContent:(S==null?void 0:S.text)||null,translations:l,conversations:h,onFeedback:p}))),O.length>0?b.createElement(om,{urlsToDisplay:O,relatedSourcesText:l.relatedSourcesText}):null)}function im(e){var t=e.id,n=e.showActions,r=e.latestAssistantMessageContent,u=e.translations,a=e.conversations,i=e.onFeedback,o=b.useMemo(function(){var d,q,N=(d=a.getOne)===null||d===void 0?void 0:d.call(a,t);return(q=N==null?void 0:N.feedback)!==null&&q!==void 0?q:null},[a,t]),c=ct(b.useState(o),2),l=c[0],h=c[1],p=ct(b.useState(!1),2),g=p[0],y=p[1],F=ct(b.useState(null),2),D=F[0],_=F[1],T=(function(){var d=Xe(be().m(function q(N){var Z;return be().w(function(z){for(;;)switch(z.p=z.n){case 0:if(!g){z.n=1;break}return z.a(2);case 1:return _(null),y(!0),z.p=2,z.n=3,i==null?void 0:i(t,N==="like"?1:0);case 3:h(N),z.n=5;break;case 4:z.p=4,Z=z.v,_(Z);case 5:return z.p=5,y(!1),z.f(5);case 6:return z.a(2)}},q,null,[[2,4,5,6]])}));return function(q){return d.apply(this,arguments)}})(),w=u.likeButtonTitle,S=w===void 0?"Like":w,x=u.dislikeButtonTitle,O=x===void 0?"Dislike":x,I=u.thanksForFeedbackText,B=I===void 0?"Thanks for your feedback!":I;return n&&r?b.createElement("div",{className:"DocSearch-AskAiScreen-Actions"},l===null?b.createElement(b.Fragment,null,g?b.createElement(Pa,{className:"DocSearch-AskAiScreen-SmallerLoadingIcon"}):b.createElement(b.Fragment,null,b.createElement(fm,{title:S,onClick:function(){return T("like")}}),b.createElement(dm,{title:O,onClick:function(){return T("dislike")}})),D&&b.createElement("p",{className:"DocSearch-AskAiScreen-FeedbackText"},D.message||"An error occured")):b.createElement("p",{className:"DocSearch-AskAiScreen-FeedbackText DocSearch-AskAiScreen-FeedbackText--visible"},B),b.createElement(lm,{translations:u,onClick:function(){return navigator.clipboard.writeText(r)}})):null}function om(e){var t=e.urlsToDisplay,n=e.relatedSourcesText;return b.createElement("div",{className:"DocSearch-AskAiScreen-RelatedSources"},b.createElement("p",{className:"DocSearch-AskAiScreen-RelatedSources-Title"},n||"Related sources"),b.createElement("div",{className:"DocSearch-AskAiScreen-RelatedSources-List"},t.length>0&&t.map(function(r){return b.createElement("a",{key:r.url,href:r.url,className:"DocSearch-AskAiScreen-RelatedSources-Item-Link",target:"_blank",rel:"noopener noreferrer"},b.createElement(cm,null),b.createElement("span",null,r.title||r.url))})))}function sm(e){var t=e.translations,n=t===void 0?{}:t,r=on(e,rm),u=n.disclaimerText,a=u===void 0?"Answers are generated with AI which can make mistakes. Verify responses.":u,i=n.threadDepthExceededMessage,o=i===void 0?"This conversation is now closed to keep responses accurate.":i,c=n.startNewConversationButtonText,l=c===void 0?"Start a new conversation":c,h=r.messages,p=r.askAiError,g=r.status,y=Vn(function(){return g==="error"&&Es(p)},[g,p]),F=Vn(function(){for(var T=[],w=0;w<h.length;w++)if(h[w].role==="user"){var S,x=h[w],O=((S=h[w+1])===null||S===void 0?void 0:S.role)==="assistant"?h[w+1]:null;T.push({id:x.id,userMessage:x,assistantMessage:O}),O&&w++}return y&&T.length>0&&(T[T.length-1].assistantMessage||T.pop()),T},[h,y]),D=function(T){r.onAskAiToggle(!1),r.setQuery(T)},_=y&&h.some(function(T){return T.role==="assistant"});return b.createElement("div",{className:"DocSearch-AskAiScreen DocSearch-AskAiScreen-Container"},_&&b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent DocSearch-AskAiScreen-Error DocSearch-AskAiScreen-Error--ThreadDepth"},b.createElement("div",{className:"DocSearch-AskAiScreen-Error-Content"},b.createElement("p",null,o," ",b.createElement("button",{type:"button",className:"DocSearch-ThreadDepthError-Link",onClick:r.onNewConversation},l)," ","to continue."))),b.createElement(um,{disclaimerText:a}),b.createElement("div",{className:"DocSearch-AskAiScreen-Body"},b.createElement("div",{className:"DocSearch-AskAiScreen-ExchangesList"},F.slice().reverse().map(function(T,w){return b.createElement(am,{key:T.id,exchange:T,askAiError:r.askAiError,isLastExchange:w===0,loadingStatus:r.status,translations:n,conversations:r.conversations,onSearchQueryClick:D,onFeedback:r.onFeedback})}))))}function cm(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("line",{x1:"4",x2:"20",y1:"9",y2:"9"}),b.createElement("line",{x1:"4",x2:"20",y1:"15",y2:"15"}),b.createElement("line",{x1:"10",x2:"8",y1:"3",y2:"21"}),b.createElement("line",{x1:"16",x2:"14",y1:"3",y2:"21"}))}function lm(e){var t=e.onClick,n=e.translations,r=n.copyButtonTitle,u=r===void 0?"Copy":r,a=n.copyButtonCopiedText,i=a===void 0?"Copied!":a,o=ct(uu(!1),2),c=o[0],l=o[1];return Un(function(){if(c){var h=setTimeout(function(){l(!1)},1500);return function(){return clearTimeout(h)}}},[c]),b.createElement("button",{type:"button",className:"DocSearch-AskAiScreen-ActionButton DocSearch-AskAiScreen-CopyButton ".concat(c?"DocSearch-AskAiScreen-CopyButton--copied":""),disabled:c,title:c?i:u,onClick:function(){t(),l(!0)}},c?b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-check-icon lucide-check"},b.createElement("path",{d:"M20 6 9 17l-5-5"})):b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-copy-icon lucide-copy"},b.createElement("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),b.createElement("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})))}function fm(e){var t=e.title,n=e.onClick;return b.createElement("button",{type:"button",className:"DocSearch-AskAiScreen-ActionButton DocSearch-AskAiScreen-LikeButton",title:t,onClick:n},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-thumbs-up-icon lucide-thumbs-up"},b.createElement("path",{d:"M7 10v12"}),b.createElement("path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"})))}function dm(e){var t=e.title,n=e.onClick;return b.createElement("button",{type:"button",className:"DocSearch-AskAiScreen-ActionButton DocSearch-AskAiScreen-DislikeButton",title:t,onClick:n},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-thumbs-down-icon lucide-thumbs-down"},b.createElement("path",{d:"M17 14V2"}),b.createElement("path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"})))}var pm=["hit","attribute","tagName"];function nd(e,t){return t.split(".").reduce(function(n,r){return n!=null&&n[r]?n[r]:null},e)}function fu(e){var t=e.hit,n=e.attribute,r=e.tagName;return wn(r===void 0?"span":r,C(C({},on(e,pm)),{},{dangerouslySetInnerHTML:{__html:nd(t,"_snippetResult.".concat(n,".value"))||nd(t,n)}}))}var hm=["item","getItemProps","onItemClick","translations","collection"];function $a(e){var t=b.useMemo(function(){return e.title.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")},[e.title]);return e.collection&&e.collection.items.length!==0?e.collection.source.sourceId==="askAI"?b.createElement("section",{className:"DocSearch-AskAi-Section"},b.createElement("ul",e.getListProps({source:e.collection.source}),b.createElement(mm,Ct({item:e.collection.items[0],translations:e.translations},e)))):(e.collection.source.sourceId,b.createElement("section",{className:"DocSearch-Hits"},b.createElement("div",{className:"DocSearch-Hit-source"},t),b.createElement("ul",e.getListProps({source:e.collection.source}),e.collection.items.map(function(n,r){return b.createElement(vm,Ct({key:[e.title,n.objectID].join(":"),item:n,index:r},e))})))):null}function vm(e){var t=e.item,n=e.index,r=e.renderIcon,u=e.renderAction,a=e.getItemProps,i=e.onItemClick,o=e.collection,c=e.hitComponent;return b.createElement("li",Ct({className:["DocSearch-Hit",t.__docsearch_parent&&"DocSearch-Hit--Child"].filter(Boolean).join(" ")},a({item:t,source:o.source,onClick:function(l){i(t,l)}})),b.createElement(c,{hit:t},b.createElement("div",{className:"DocSearch-Hit-Container"},r({item:t,index:n}),t.hierarchy[t.type]&&t.type==="lvl1"&&b.createElement("div",{className:"DocSearch-Hit-content-wrapper"},b.createElement(fu,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.lvl1"}),t.content&&b.createElement(fu,{className:"DocSearch-Hit-path",hit:t,attribute:"content"})),t.type==="askAI"&&b.createElement("div",{className:"DocSearch-Hit-content-wrapper"},b.createElement(fu,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.lvl1"})),t.hierarchy[t.type]&&(t.type==="lvl2"||t.type==="lvl3"||t.type==="lvl4"||t.type==="lvl5"||t.type==="lvl6")&&b.createElement("div",{className:"DocSearch-Hit-content-wrapper"},b.createElement(fu,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.".concat(t.type)}),b.createElement(fu,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),t.type==="content"&&b.createElement("div",{className:"DocSearch-Hit-content-wrapper"},b.createElement(fu,{className:"DocSearch-Hit-title",hit:t,attribute:"content"}),b.createElement(fu,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),u({item:t}))))}function mm(e){var t=e.item,n=e.getItemProps,r=e.onItemClick,u=e.translations,a=e.collection,i=on(e,hm),o=u||{},c=o.askAiPlaceholder,l=c===void 0?"Ask AI: ":c,h=o.noResultsAskAiPlaceholder,p=h===void 0?"Didn't find it in the docs? Ask AI to help: ":h,g=i.state.collections.length===1?p:l;return b.createElement("li",Ct({className:"DocSearch-Hit"},n({item:t,source:a.source,onClick:function(y){r(t,y)}})),b.createElement("div",{className:"DocSearch-Hit--AskAI"},b.createElement("div",{className:"DocSearch-Hit-AskAIButton DocSearch-Hit-Container"},b.createElement("div",{className:" DocSearch-Hit-AskAIButton-icon DocSearch-Hit-icon"},b.createElement(fs,null)),b.createElement("div",{className:"DocSearch-Hit-AskAIButton-title"},b.createElement("span",{className:"DocSearch-Hit-AskAIButton-title-highlight"},g),b.createElement("mark",{className:"DocSearch-Hit-AskAIButton-title-query"},t.query||"")))))}var gm=["onAskAiToggle"];function ym(e){var t=e.onAskAiToggle,n=on(e,gm),r=b.useMemo(function(){return n.state.collections[2]},[n.state]);return b.useEffect(function(){r&&r.items.length!==0||t(!0)},[r,t]),b.createElement("div",{className:"DocSearch-Dropdown-Container DocSearch-Conversation-History"},b.createElement($a,Ct({},n,{key:r.source.sourceId,title:"",translations:n.translations,collection:r,renderIcon:function(){return b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(fs,null))},renderAction:function(u){var a=u.item;return b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{type:"button",className:"DocSearch-Hit-action-button",onClick:function(i){i.preventDefault(),i.stopPropagation(),n.conversations.remove(a),n.refresh()}},b.createElement(ja,null)))}})))}function Dm(e){var t=e.translations,n=t===void 0?{}:t,r=n.titleText,u=r===void 0?"Unable to fetch results":r,a=n.helpText,i=a===void 0?"You might want to check your network connection.":a;return b.createElement("div",{className:"DocSearch-ErrorScreen"},b.createElement("div",{className:"DocSearch-Screen-Icon"},b.createElement(k0,null)),b.createElement("p",{className:"DocSearch-Title"},u),b.createElement("p",{className:"DocSearch-Help"},i))}function bm(e){var t=e.translations,n=t===void 0?{}:t,r=e.suggestedQuestions,u=r===void 0?[]:r,a=e.selectSuggestedQuestion,i=n.newConversationTitle,o=i===void 0?"How can I help you today?":i,c=n.newConversationDescription,l=c===void 0?"I search through your documentation to help you find setup guides, feature details and troubleshooting tips, fast.":c;return b.createElement("div",{className:"DocSearch-NewConversationScreen"},b.createElement("h3",{className:"DocSearch-NewConversationScreen-Title"},o),b.createElement("p",{className:"DocSearch-NewConversationScreen-Description"},l),b.createElement("div",{className:"DocSearch-NewConversationScreen-SuggestedQuestions"},u.map(function(h){return b.createElement("button",{key:h.objectID,type:"button",className:"DocSearch-NewConversationScreen-SuggestedQuestion",onClick:function(){return a(h)}},h.question)})))}var Am=["translations"];function rd(e){var t=e.translations,n=t===void 0?{}:t,r=on(e,Am),u=n.noResultsText,a=u===void 0?"No results found for":u,i=n.suggestedQueryText,o=i===void 0?"Try searching for":i,c=n.reportMissingResultsText,l=c===void 0?"Believe this query should return results?":c,h=n.reportMissingResultsLinkText,p=h===void 0?"Let us know.":h,g=r.state.context.searchSuggestions;return b.createElement("div",{className:"DocSearch-NoResults ".concat(r.canHandleAskAi?"DocSearch-NoResults--withAskAi":"")},b.createElement("div",{className:"DocSearch-Screen-Icon"},b.createElement(w0,null)),b.createElement("p",{className:"DocSearch-Title"},a,' "',b.createElement("strong",null,r.state.query),'"'),g&&g.length>0&&b.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},b.createElement("p",{className:"DocSearch-Help"},o,":"),b.createElement("div",{className:"DocSearch-NoResults-Prefill-List-Items"},g.slice(0,3).reduce(function(y,F){return[].concat(De(y),[b.createElement("p",{key:F},b.createElement(ma,{size:16}),b.createElement("button",{className:"DocSearch-Prefill",key:F,type:"button",onClick:function(){r.setQuery(F.toLowerCase()+" "),r.refresh(),r.inputRef.current.focus()}},F))])},[]))),r.getMissingResultsUrl&&b.createElement("p",{className:"DocSearch-Help"},"".concat(l," "),b.createElement("a",{href:r.getMissingResultsUrl({query:r.state.query}),target:"_blank",rel:"noopener noreferrer"},p)))}var Em=["translations"];function Fm(e){var t=e.translations,n=t===void 0?{}:t,r=on(e,Em);return b.createElement("div",{className:"DocSearch-Dropdown-Container"},r.state.collections.map(function(u){if(u.items.length===0)return null;var a=Xl(u.items[0]);return b.createElement($a,Ct({},r,{key:u.source.sourceId,translations:n,title:a,collection:u,renderIcon:function(i){var o,c=i.item,l=i.index;return b.createElement(b.Fragment,null,c.__docsearch_parent&&b.createElement("svg",{className:"DocSearch-Hit-Tree",viewBox:"0 0 24 54"},b.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},c.__docsearch_parent!==((o=u.items[l+1])===null||o===void 0?void 0:o.__docsearch_parent)?b.createElement("path",{d:"M8 6v21M20 27H8.3"}):b.createElement("path",{d:"M8 6v42M20 27H8.3"}))),b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(E0,{type:c.type})))},renderAction:function(){return b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement(b0,null))}}))}),r.resultsFooterComponent&&b.createElement("section",{className:"DocSearch-HitsFooter"},b.createElement(r.resultsFooterComponent,{state:r.state})))}var _m=["translations"];function Cm(e){var t=e.translations,n=t===void 0?{}:t,r=on(e,_m),u=n.recentSearchesTitle,a=u===void 0?"Recent":u,i=n.saveRecentSearchButtonTitle,o=i===void 0?"Save this search":i,c=n.removeRecentSearchButtonTitle,l=c===void 0?"Remove this search from history":c,h=n.favoriteSearchesTitle,p=h===void 0?"Favorite":h,g=n.removeFavoriteSearchButtonTitle,y=g===void 0?"Remove this search from favorites":g,F=n.recentConversationsTitle,D=F===void 0?"Recent conversations":F,_=n.removeRecentConversationButtonTitle,T=_===void 0?"Remove this conversation from history":_;return b.createElement("div",{className:"DocSearch-Dropdown-Container"},b.createElement($a,Ct({},r,{title:a,collection:r.state.collections[0],renderIcon:function(){return b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(y0,null))},renderAction:function(w){var S=w.item;return b.createElement(b.Fragment,null,b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{className:"DocSearch-Hit-action-button",title:o,type:"submit",onClick:function(x){x.preventDefault(),x.stopPropagation(),r.favoriteSearches.add(S),r.recentSearches.remove(S),r.refresh()}},b.createElement(Rf,null))),b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{className:"DocSearch-Hit-action-button",title:l,type:"submit",onClick:function(x){x.preventDefault(),x.stopPropagation(),r.recentSearches.remove(S),r.refresh()}},b.createElement(ja,null))))}})),b.createElement($a,Ct({},r,{title:p,collection:r.state.collections[1],renderIcon:function(){return b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(Rf,null))},renderAction:function(w){var S=w.item;return b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{className:"DocSearch-Hit-action-button",title:y,type:"submit",onClick:function(x){x.preventDefault(),x.stopPropagation(),r.favoriteSearches.remove(S),r.refresh()}},b.createElement(ja,null)))}})),b.createElement($a,Ct({},r,{title:D,collection:r.state.collections[2],renderIcon:function(){return b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(fs,null))},renderAction:function(w){var S=w.item;return b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{className:"DocSearch-Hit-action-button",title:T,type:"submit",onClick:function(x){x.preventDefault(),x.stopPropagation(),r.conversations.remove(S),r.refresh()}},b.createElement(ja,null)))}})))}var km=["translations"],wm=b.memo(function(e){var t,n=e.translations,r=n===void 0?{}:n,u=on(e,km);return u.canHandleAskAi&&u.isAskAiActive&&u.askAiState==="conversation-history"?b.createElement(ym,u):u.canHandleAskAi&&u.isAskAiActive&&u.askAiState==="new-conversation"?b.createElement(bm,{translations:r==null?void 0:r.newConversation,selectSuggestedQuestion:u.selectSuggestedQuestion,suggestedQuestions:u.suggestedQuestions}):u.isAskAiActive&&u.canHandleAskAi?b.createElement(sm,Ct({},u,{messages:u.messages,status:u.status,askAiError:u.askAiError,translations:r==null?void 0:r.askAiScreen})):((t=u.state)===null||t===void 0?void 0:t.status)==="error"?b.createElement(Dm,{translations:r==null?void 0:r.errorScreen}):u.state.query?u.hasCollections||u.canHandleAskAi?b.createElement(b.Fragment,null,b.createElement(Fm,Ct({},u,{translations:r==null?void 0:r.resultsScreen})),u.canHandleAskAi&&u.state.collections.length===1&&b.createElement(rd,Ct({},u,{translations:r==null?void 0:r.noResultsScreen}))):b.createElement(rd,Ct({},u,{translations:r==null?void 0:r.noResultsScreen})):b.createElement(Cm,Ct({},u,{hasCollections:u.hasCollections,translations:r==null?void 0:r.startScreen}))},function(e,t){return t.state.status==="loading"||t.state.status==="stalled"});function xm(e){var t=e.size,n=t===void 0?20:t,r=e.color,u=r===void 0?"currentColor":r;return b.createElement("svg",{width:n,height:n,className:"DocSearch-Back-Icon",viewBox:"0 0 24 24",fill:"none",stroke:u,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},b.createElement("path",{d:"m12 19-7-7 7-7"}),b.createElement("path",{d:"M19 12H5"}))}var Sm=["children","className","onClick"],zi=b.createContext({open:!1,setOpen:function(e){}});function Ir(e){var t=e.children,n=ct(b.useState(!1),2),r=n[0],u=n[1],a=b.useRef(null);return b.useEffect(function(){function i(o){var c;(c=a.current)!==null&&c!==void 0&&c.contains(o.target)||u(!1)}return r&&window.addEventListener("click",i),function(){window.removeEventListener("click",i)}},[r]),b.createElement(zi.Provider,{value:{open:r,setOpen:u}},b.createElement("div",{ref:a,className:"DocSearch-Menu"},t))}function Tm(e){var t=e.heading,n=e.shimmer,r=n!==void 0&&n;return b.createElement("span",{className:"DocSearch-Modal-heading".concat(r?" shimmer":"")},t)}Ir.Trigger=function(e){var t=e.children,n=e.className,r=n===void 0?"":n,u=b.useContext(zi),a=u.open,i=u.setOpen;return b.createElement("button",{type:"button",className:"DocSearch-Menu-trigger ".concat(r),onClick:function(){i(!a)}},t)},Ir.Content=function(e){var t=e.children,n=b.useContext(zi).open;return b.createElement("div",{className:"DocSearch-Menu-content".concat(n?" open":"")},t)},Ir.Item=function(e){var t=e.children,n=e.className,r=n===void 0?"":n,u=e.onClick,a=on(e,Sm),i=b.useContext(zi).setOpen;return b.createElement("button",Ct({type:"button",className:"DocSearch-Menu-item ".concat(r),onClick:function(o){u&&(u(o),i(!1))}},a),t)};var Om=["translations","askAiState","onAskAiToggle","setAskAiState"];function Im(e){var t=e.translations,n=t===void 0?{}:t,r=e.askAiState,u=e.onAskAiToggle,a=e.setAskAiState,i=on(e,Om),o=n.clearButtonTitle,c=o===void 0?"Clear":o,l=n.clearButtonAriaLabel,h=l===void 0?"Clear the query":l,p=n.closeButtonText,g=p===void 0?"Close":p,y=n.closeButtonAriaLabel,F=y===void 0?"Close":y,D=n.searchInputLabel,_=D===void 0?"Search":D,T=n.backToKeywordSearchButtonText,w=T===void 0?"Back to keyword search":T,S=n.backToKeywordSearchButtonAriaLabel,x=S===void 0?"Back to keyword search":S,O=n.placeholderTextAskAiStreaming,I=O===void 0?"Answering...":O,B=n.newConversationPlaceholder,d=B===void 0?"Ask a question":B,q=n.conversationHistoryTitle,N=q===void 0?"My conversation history":q,Z=n.startNewConversationText,z=Z===void 0?"Start a new conversation":Z,H=n.viewConversationHistoryText,L=H===void 0?"Conversation history":H,K=n.threadDepthErrorPlaceholder,J=K===void 0?"Conversation limit reached":K,W=i.getFormProps({inputElement:i.inputRef.current}).onReset;b.useEffect(function(){i.autoFocus&&i.inputRef.current&&i.inputRef.current.focus()},[i.autoFocus,i.inputRef]),b.useEffect(function(){i.isFromSelection&&i.inputRef.current&&i.inputRef.current.select()},[i.isFromSelection,i.inputRef]);var ee=b.useMemo(function(){var Se=i.state.collections[2];return!!Se&&Se.items.length>0},[i.state.collections]),ue=i.getInputProps({inputElement:i.inputRef.current,autoFocus:i.autoFocus,maxLength:512}),ye=new Set(["ArrowUp","ArrowDown","Enter"]),oe=ue.onKeyDown,ae=ue.onChange,Y=i.askAiStatus==="streaming"||i.askAiStatus==="submitted",ie=i.state.status==="stalled",re=i.isAskAiActive&&r!=="conversation-history",de=i.isThreadDepthError||!1,pe=i.placeholder;r==="new-conversation"&&(pe=d),de&&i.isAskAiActive&&(pe=J);var ve=null;Y&&(ve=I),r==="conversation-history"&&(ve=N),b.useEffect(function(){i.askAiStatus!=="streaming"&&i.askAiStatus!=="submitted"&&i.inputRef.current&&i.inputRef.current.focus()},[i.askAiStatus,i.inputRef]);var ke=C(C({},ue),{},{enterKeyHint:i.isAskAiActive?"enter":"search",onKeyDown:function(Se){if(i.isAskAiActive&&ye.has(Se.key))return Se.key==="Enter"&&!Y&&i.state.query&&i.onAskAgain(i.state.query),Se.preventDefault(),void Se.stopPropagation();oe==null||oe(Se)},onChange:function(Se){if(i.isAskAiActive)return i.setQuery(Se.currentTarget.value),Se.preventDefault(),void Se.stopPropagation();ae==null||ae(Se)},disabled:Y||de&&i.isAskAiActive}),ze=b.useCallback(function(){if(!de)return r==="conversation-history"?(u(!0),void a("initial")):void u(!1);i.onNewConversation()},[r,de,u,a,i]);return b.createElement(b.Fragment,null,b.createElement("form",{className:"DocSearch-Form",onSubmit:function(Se){Se.preventDefault()},onReset:W},i.isAskAiActive?b.createElement(b.Fragment,null,b.createElement("button",{type:"button",tabIndex:0,className:"DocSearch-Action DocSearch-AskAi-Return",title:w,"aria-label":x,onClick:ze},b.createElement(xm,null))):b.createElement(b.Fragment,null,ie&&b.createElement("div",{className:"DocSearch-LoadingIndicator"},b.createElement(Pa,null)),!ie&&b.createElement("label",Ct({className:"DocSearch-MagnifierLabel"},i.getLabelProps()),b.createElement(ma,null),b.createElement("span",{className:"DocSearch-VisuallyHiddenForAccessibility"},_))),ve&&b.createElement(Tm,{heading:ve,shimmer:Y}),b.createElement("input",Ct({className:"DocSearch-Input",ref:i.inputRef},ke,{placeholder:pe,hidden:!!ve})),b.createElement("div",{className:"DocSearch-Actions"},b.createElement("button",{className:"DocSearch-Clear",type:"reset","aria-label":h,hidden:!i.state.query,tabIndex:i.state.query?0:-1,"aria-hidden":i.state.query?"false":"true"},c),i.state.query&&b.createElement("div",{className:"DocSearch-Divider"}),Y&&b.createElement(b.Fragment,null,b.createElement("button",{type:"button",className:"DocSearch-Action DocSearch-StopStreaming",onClick:i.onStopAskAiStreaming},b.createElement(C0,null)),b.createElement("div",{className:"DocSearch-Divider"})),re&&b.createElement(b.Fragment,null,b.createElement(Ir,null,b.createElement(Ir.Trigger,{className:"DocSearch-Action"},b.createElement(x0,null)),b.createElement(Ir.Content,null,b.createElement(Ir.Item,{onClick:i.onNewConversation},b.createElement(T0,null),z),ee&&b.createElement(Ir.Item,{onClick:i.onViewConversationHistory},b.createElement(S0,null),L))),b.createElement("div",{className:"DocSearch-Divider"})),b.createElement("button",{type:"button",title:g,className:"DocSearch-Action DocSearch-Close","aria-label":F,onClick:i.onClose},b.createElement(ja,null)))))}function ud(){if(typeof window!="undefined"&&window.localStorage){var e=[];for(var t in window.localStorage)if(t.includes("__DOCSEARCH_")){var n=window.localStorage[t];e.push({key:t,size:n.length+t.length})}e.sort(function(a,i){return i.size-a.size});for(var r=Math.ceil(e.length/2),u=0;u<r&&u<e.length;u++)try{window.localStorage.removeItem(e[u].key)}catch(a){}}}function ad(e){return(function(){if(typeof window=="undefined"||!("localStorage"in window))return!1;var t="__TEST_KEY__";try{return window.localStorage.setItem(t,""),window.localStorage.removeItem(t),!0}catch(n){return!1}})()===!1?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(t){(function(n,r){try{window.localStorage.setItem(n,JSON.stringify(r))}catch(u){if(u instanceof DOMException&&u.name==="QuotaExceededError")try{ud(),window.localStorage.setItem(n,JSON.stringify(r))}catch(a){}}})(e,t)},getItem:function(){var t=window.localStorage.getItem(e);if(t===null)return[];try{var n=JSON.parse(t);return Array.isArray(n)?n:[]}catch(r){return window.localStorage.removeItem(e),[]}}}}var Bm=["_highlightResult","_snippetResult"];function id(e){var t=e.key,n=e.limit,r=n===void 0?5:n,u=ad(t),a=u.getItem().slice(0,r);return{add:function(i){var o=i;o._highlightResult,o._snippetResult;var c=on(o,Bm),l=a.findIndex(function(h){return h.objectID===c.objectID});l>-1&&a.splice(l,1),a.unshift(c),a=a.slice(0,r),u.setItem(a)},remove:function(i){a=a.filter(function(o){return o.objectID!==i.objectID}),u.setItem(a)},getAll:function(){return a}}}function od(e){var t=e.key,n=e.limit,r=n===void 0?5:n,u=ad(t),a=u.getItem().slice(0,r);return{add:function(i){var o=i.objectID,c=i.query,l=a.findIndex(function(h){return h.objectID===o||h.query===c});l>-1?a[l]=i:(a.unshift(i),a=a.slice(0,r)),u.setItem(a)},addFeedback:function(i,o){var c=a.find(function(h){var p;return(p=h.messages)===null||p===void 0?void 0:p.some(function(g){return g.id===i})});if(c&&c.messages){var l=c.messages.find(function(h){return h.id===i});l&&(l.feedback=o,u.setItem(a))}},getOne:function(i){var o,c=a.find(function(l){var h;return(h=l.messages)===null||h===void 0?void 0:h.some(function(p){return p.id===i})});return c==null||(o=c.messages)===null||o===void 0?void 0:o.find(function(l){return l.id===i})},getAll:function(){return a},remove:function(i){a=a.filter(function(o){return o.objectID!==i.objectID}),u.setItem(a)},getConversation:function(i){var o=a.find(function(c){var l;return(l=c.messages)===null||l===void 0?void 0:l.some(function(h){return h.id===i})});if(o&&o.messages)return o}}}var sd,cd="vercel.ai.error",Pm=Symbol.for(cd),jm=(function(){function e(t){var n,r=t.name,u=t.message,a=t.cause;return Zn(this,e),(n=tu(this,e,[u]))[sd]=!0,n.name=r,n.cause=a,n}return nu(e,Io(Error)),qn(e,null,[{key:"isInstance",value:function(t){return e.hasMarker(t,cd)}},{key:"hasMarker",value:function(t,n){var r=Symbol.for(n);return t!=null&&Ce(t)=="object"&&r in t&&typeof t[r]=="boolean"&&t[r]===!0}}])})();sd=Pm;var Br=jm;function ld(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var fd,dd="AI_InvalidArgumentError",pd="vercel.ai.error.".concat(dd),Nm=Symbol.for(pd),Rm=(function(){function e(t){var n,r=t.message,u=t.cause,a=t.argument;return Zn(this,e),(n=tu(this,e,[{name:dd,message:r,cause:u}]))[fd]=!0,n.argument=a,n}return nu(e,Br),qn(e,null,[{key:"isInstance",value:function(t){return Br.hasMarker(t,pd)}}])})();fd=Nm;var hd,vd="AI_JSONParseError",md="vercel.ai.error.".concat(vd),zm=Symbol.for(md),gd=(function(){function e(t){var n,r=t.text,u=t.cause;return Zn(this,e),(n=tu(this,e,[{name:vd,message:"JSON parsing failed: Text: ".concat(r,`.
|
|
90
|
-
Error message: `).concat(
|
|
91
|
-
Error message: `).concat(
|
|
92
|
-
`)?w.slice(0,-1):w}),c=void 0,w="",void(
|
|
93
|
-
`);break;case"id":c=B.includes("\0")?void 0:B;break;case"retry":/^\d+$/.test(B)?F(parseInt(B,10)):
|
|
94
|
-
|
|
95
|
-
`&&W++}return[K,J]})("".concat(_).concat(d)),N=ct(q,2),Z=N[0],z=N[1],H=me(Z);try{for(H.s();!(B=H.n()).done;)x(B.value)}catch(L){H.e(L)}finally{H.f()}_=z,T=!1},reset:function(){_&&(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).consume&&x(_),T=!0,c=void 0,w="",S="",_=""}}})({onEvent:function(o){i.enqueue(o)},onError:function(o){r==="terminate"?i.error(o):typeof r=="function"&&r(o)},onRetry:u,onComment:a})},transform:function(i){t.feed(i)}}])}return $e(e,Tr(TransformStream)),Be(e)})();function X(e,t,n){var r;function u(o,c){var l,h,p;for(var g in Object.defineProperty(o,"_zod",{value:(l=o._zod)!==null&&l!==void 0?l:{},enumerable:!1}),(h=(p=o._zod).traits)!==null&&h!==void 0||(p.traits=new Set),o._zod.traits.add(e),t(o,c),i.prototype)g in o||Object.defineProperty(o,g,{value:i.prototype[g].bind(o)});o._zod.constr=i,o._zod.def=c}var a=(function(o){function c(){return Ie(this,c),Ze(this,c,arguments)}return $e(c,o),Be(c)})((r=n==null?void 0:n.Parent)!==null&&r!==void 0?r:Object);function i(o){var c,l,h=n!=null&&n.Parent?new a:this;u(h,o),(c=(l=h._zod).deferred)!==null&&c!==void 0||(l.deferred=[]);var p,g=me(h._zod.deferred);try{for(g.s();!(p=g.n()).done;)(0,p.value)()}catch(y){g.e(y)}finally{g.f()}return h}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(i,"init",{value:u}),Object.defineProperty(i,Symbol.hasInstance,{value:function(o){var c;return!!(n!=null&&n.Parent&&o instanceof n.Parent)||(o==null||(c=o._zod)===null||c===void 0||(c=c.traits)===null||c===void 0?void 0:c.has(e))}}),Object.defineProperty(i,"name",{value:e}),i}var Nu=(function(){function e(){return Ie(this,e),Ze(this,e,["Encountered Promise during synchronous parse. Use .parseAsync() instead."])}return $e(e,Tr(Error)),Be(e)})(),Ed=(function(){function e(t){var n;return Ie(this,e),(n=Ze(this,e,["Encountered unidirectional transform during encode: ".concat(t)])).name="ZodEncodeError",n}return $e(e,Tr(Error)),Be(e)})(),Fd={};function Pr(e){return Fd}function _d(e){var t=Object.values(e).filter(function(r){return typeof r=="number"}),n=Object.entries(e).filter(function(r){var u=ct(r,2),a=u[0];return u[1],t.indexOf(+a)===-1}).map(function(r){var u=ct(r,2);return u[0],u[1]});return n}function _s(e,t){return typeof t=="bigint"?t.toString():t}function Mi(e){return{get value(){var t=e();return Object.defineProperty(this,"value",{value:t}),t}}}function Ru(e){return e==null}function Cs(e){var t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}var Cd=Symbol("evaluating");function mt(e,t,n){var r=void 0;Object.defineProperty(e,t,{get:function(){if(r!==Cd)return r===void 0&&(r=Cd,r=n()),r},set:function(u){Object.defineProperty(e,t,{value:u})},configurable:!0})}function du(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function pu(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var u=0,a=n;u<a.length;u++){var i=a[u],o=Object.getOwnPropertyDescriptors(i);Object.assign(e,o)}return Object.defineProperties({},e)}function kd(e){return JSON.stringify(e)}var wd="captureStackTrace"in Error?Error.captureStackTrace:function(){};function Za(e){return qt(e)==="object"&&e!==null&&!Array.isArray(e)}var $m=Mi(function(){var e;if(typeof navigator!="undefined"&&(e=navigator)!==null&&e!==void 0&&(e=e.userAgent)!==null&&e!==void 0&&e.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(t){return!1}});function zu(e){if(Za(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return Za(n)!==!1&&Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")!==!1}function xd(e){return zu(e)?C({},e):Array.isArray(e)?De(e):e}var Zm=new Set(["string","number","symbol"]);function Lu(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jr(e,t,n){var r=new e._zod.constr(t!=null?t:e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function xe(e){var t=e;if(!t)return{};if(typeof t=="string")return{error:function(){return t}};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?C(C({},t),{},{error:function(){return t.error}}):t}var qm={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Mu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e.aborted===!0)return!0;for(var n=t;n<e.issues.length;n++){var r;if(((r=e.issues[n])===null||r===void 0?void 0:r.continue)!==!0)return!0}return!1}function hu(e,t){return t.map(function(n){var r,u;return(r=(u=n).path)!==null&&r!==void 0||(u.path=[]),n.path.unshift(e),n})}function $i(e){return typeof e=="string"?e:e==null?void 0:e.message}function Nr(e,t,n){var r,u=C(C({},e),{},{path:(r=e.path)!==null&&r!==void 0?r:[]});if(!e.message){var a,i,o,c,l,h,p,g,y,F=(a=(i=(o=(c=$i((l=e.inst)===null||l===void 0||(l=l._zod.def)===null||l===void 0||(h=l.error)===null||h===void 0?void 0:h.call(l,e)))!==null&&c!==void 0?c:$i(t==null||(p=t.error)===null||p===void 0?void 0:p.call(t,e)))!==null&&o!==void 0?o:$i((g=n.customError)===null||g===void 0?void 0:g.call(n,e)))!==null&&i!==void 0?i:$i((y=n.localeError)===null||y===void 0?void 0:y.call(n,e)))!==null&&a!==void 0?a:"Invalid input";u.message=F}return delete u.inst,delete u.continue,t!=null&&t.reportInput||delete u.input,u}function ks(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ws(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function qa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],u=t[1],a=t[2];return typeof r=="string"?{message:r,code:"custom",input:u,inst:a}:C({},r)}var Sd=function(e,t){e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,_s,2),Object.defineProperty(e,"toString",{value:function(){return e.message},enumerable:!1})},Td=X("$ZodError",Sd),Od=X("$ZodError",Sd,{Parent:Error}),xs=function(e){return function(t,n,r,u){var a=r?Object.assign(r,{async:!1}):{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Nu;if(i.issues.length){var o,c=new((o=u==null?void 0:u.Err)!==null&&o!==void 0?o:e)(i.issues.map(function(l){return Nr(l,a,Pr())}));throw wd(c,u==null?void 0:u.callee),c}return i.value}},Ss=function(e){return(function(){var t=Xe(be().m(function n(r,u,a,i){var o,c,l,h;return be().w(function(p){for(;;)switch(p.n){case 0:if(o=a?Object.assign(a,{async:!0}):{async:!0},!((c=r._zod.run({value:u,issues:[]},o))instanceof Promise)){p.n=2;break}return p.n=1,c;case 1:c=p.v;case 2:if(!c.issues.length){p.n=3;break}throw h=new((l=i==null?void 0:i.Err)!==null&&l!==void 0?l:e)(c.issues.map(function(g){return Nr(g,o,Pr())})),wd(h,i==null?void 0:i.callee),h;case 3:return p.a(2,c.value)}},n)}));return function(n,r,u,a){return t.apply(this,arguments)}})()},Zi=function(e){return function(t,n,r){var u=r?C(C({},r),{},{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},u);if(a instanceof Promise)throw new Nu;return a.issues.length?{success:!1,error:new(e!=null?e:Td)(a.issues.map(function(i){return Nr(i,u,Pr())}))}:{success:!0,data:a.value}}},Hm=Zi(Od),qi=function(e){return(function(){var t=Xe(be().m(function n(r,u,a){var i,o;return be().w(function(c){for(;;)switch(c.n){case 0:if(i=a?Object.assign(a,{async:!0}):{async:!0},!((o=r._zod.run({value:u,issues:[]},i))instanceof Promise)){c.n=2;break}return c.n=1,o;case 1:o=c.v;case 2:return c.a(2,o.issues.length?{success:!1,error:new e(o.issues.map(function(l){return Nr(l,i,Pr())}))}:{success:!0,data:o.value})}},n)}));return function(n,r,u){return t.apply(this,arguments)}})()},Um=qi(Od),Vm=/^[cC][^\s-]{8,}$/,Wm=/^[0-9a-z]+$/,Gm=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Jm=/^[0-9a-vA-V]{20}$/,Km=/^[A-Za-z0-9]{27}$/,Qm=/^[a-zA-Z0-9_-]{21}$/,Ym=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Xm=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Id=function(e){return e?new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-".concat(e,"[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$")):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/},eg=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ng=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,rg=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ug=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ag=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Bd=/^[A-Za-z0-9_-]*$/,ig=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,og=/^\+(?:[0-9]){6,14}[0-9]$/,Pd="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",sg=new RegExp("^".concat(Pd,"$"));function jd(e){var t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?"".concat(t):e.precision===0?"".concat(t,":[0-5]\\d"):"".concat(t,":[0-5]\\d\\.\\d{").concat(e.precision,"}"):"".concat(t,"(?::[0-5]\\d(?:\\.\\d+)?)?")}var cg=/^-?\d+$/,lg=/^-?\d+(?:\.\d+)?/,fg=/^(?:true|false)$/i,dg=/^null$/i,pg=/^[^A-Z]*$/,hg=/^[^a-z]*$/,Ht=X("$ZodCheck",function(e,t){var n,r,u;(n=e._zod)!==null&&n!==void 0||(e._zod={}),e._zod.def=t,(r=(u=e._zod).onattach)!==null&&r!==void 0||(u.onattach=[])}),Nd={number:"number",bigint:"bigint",object:"date"},Rd=X("$ZodCheckLessThan",function(e,t){Ht.init(e,t);var n=Nd[qt(t.value)];e._zod.onattach.push(function(r){var u,a=r._zod.bag,i=(u=t.inclusive?a.maximum:a.exclusiveMaximum)!==null&&u!==void 0?u:Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=function(r){(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),zd=X("$ZodCheckGreaterThan",function(e,t){Ht.init(e,t);var n=Nd[qt(t.value)];e._zod.onattach.push(function(r){var u,a=r._zod.bag,i=(u=t.inclusive?a.minimum:a.exclusiveMinimum)!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=function(r){(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),vg=X("$ZodCheckMultipleOf",function(e,t){Ht.init(e,t),e._zod.onattach.push(function(n){var r,u;(r=(u=n._zod.bag).multipleOf)!==null&&r!==void 0||(u.multipleOf=t.value)}),e._zod.check=function(n){if(qt(n.value)!==qt(t.value))throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):(function(r,u){var a=(r.toString().split(".")[1]||"").length,i=u.toString(),o=(i.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(i)){var c=i.match(/\d?e-(\d?)/);c!=null&&c[1]&&(o=Number.parseInt(c[1]))}var l=a>o?a:o;return Number.parseInt(r.toFixed(l).replace(".",""))%Number.parseInt(u.toFixed(l).replace(".",""))/Math.pow(10,l)})(n.value,t.value)===0)||n.issues.push({origin:qt(n.value),code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),mg=X("$ZodCheckNumberFormat",function(e,t){var n;Ht.init(e,t),t.format=t.format||"float64";var r=(n=t.format)===null||n===void 0?void 0:n.includes("int"),u=r?"int":"number",a=ct(qm[t.format],2),i=a[0],o=a[1];e._zod.onattach.push(function(c){var l=c._zod.bag;l.format=t.format,l.minimum=i,l.maximum=o,r&&(l.pattern=cg)}),e._zod.check=function(c){var l=c.value;if(r){if(!Number.isInteger(l))return void c.issues.push({expected:u,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});if(!Number.isSafeInteger(l))return void(l>0?c.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:u,continue:!t.abort}):c.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:u,continue:!t.abort}))}l<i&&c.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),l>o&&c.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inst:e})}}),gg=X("$ZodCheckMaxSize",function(e,t){var n,r;Ht.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!Ru(a)&&a.size!==void 0}),e._zod.onattach.push(function(u){var a,i=(a=u._zod.bag.maximum)!==null&&a!==void 0?a:Number.POSITIVE_INFINITY;t.maximum<i&&(u._zod.bag.maximum=t.maximum)}),e._zod.check=function(u){var a=u.value;a.size<=t.maximum||u.issues.push({origin:ks(a),code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),yg=X("$ZodCheckMinSize",function(e,t){var n,r;Ht.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!Ru(a)&&a.size!==void 0}),e._zod.onattach.push(function(u){var a,i=(a=u._zod.bag.minimum)!==null&&a!==void 0?a:Number.NEGATIVE_INFINITY;t.minimum>i&&(u._zod.bag.minimum=t.minimum)}),e._zod.check=function(u){var a=u.value;a.size>=t.minimum||u.issues.push({origin:ks(a),code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),Dg=X("$ZodCheckSizeEquals",function(e,t){var n,r;Ht.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!Ru(a)&&a.size!==void 0}),e._zod.onattach.push(function(u){var a=u._zod.bag;a.minimum=t.size,a.maximum=t.size,a.size=t.size}),e._zod.check=function(u){var a=u.value,i=a.size;if(i!==t.size){var o=i>t.size;u.issues.push(C(C({origin:ks(a)},o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size}),{},{inclusive:!0,exact:!0,input:u.value,inst:e,continue:!t.abort}))}}}),bg=X("$ZodCheckMaxLength",function(e,t){var n,r;Ht.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!Ru(a)&&a.length!==void 0}),e._zod.onattach.push(function(u){var a,i=(a=u._zod.bag.maximum)!==null&&a!==void 0?a:Number.POSITIVE_INFINITY;t.maximum<i&&(u._zod.bag.maximum=t.maximum)}),e._zod.check=function(u){var a=u.value;if(!(a.length<=t.maximum)){var i=ws(a);u.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}}),Ag=X("$ZodCheckMinLength",function(e,t){var n,r;Ht.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!Ru(a)&&a.length!==void 0}),e._zod.onattach.push(function(u){var a,i=(a=u._zod.bag.minimum)!==null&&a!==void 0?a:Number.NEGATIVE_INFINITY;t.minimum>i&&(u._zod.bag.minimum=t.minimum)}),e._zod.check=function(u){var a=u.value;if(!(a.length>=t.minimum)){var i=ws(a);u.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}}),Eg=X("$ZodCheckLengthEquals",function(e,t){var n,r;Ht.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!Ru(a)&&a.length!==void 0}),e._zod.onattach.push(function(u){var a=u._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=function(u){var a=u.value,i=a.length;if(i!==t.length){var o=ws(a),c=i>t.length;u.issues.push(C(C({origin:o},c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length}),{},{inclusive:!0,exact:!0,input:u.value,inst:e,continue:!t.abort}))}}}),Hi=X("$ZodCheckStringFormat",function(e,t){var n,r,u,a;Ht.init(e,t),e._zod.onattach.push(function(i){var o,c=i._zod.bag;c.format=t.format,t.pattern&&((o=c.patterns)!==null&&o!==void 0||(c.patterns=new Set),c.patterns.add(t.pattern))}),t.pattern?(n=(u=e._zod).check)!==null&&n!==void 0||(u.check=function(i){t.pattern.lastIndex=0,t.pattern.test(i.value)||i.issues.push(C(C({origin:"string",code:"invalid_format",format:t.format,input:i.value},t.pattern?{pattern:t.pattern.toString()}:{}),{},{inst:e,continue:!t.abort}))}):(r=(a=e._zod).check)!==null&&r!==void 0||(a.check=function(){})}),Fg=X("$ZodCheckRegex",function(e,t){Hi.init(e,t),e._zod.check=function(n){t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),_g=X("$ZodCheckLowerCase",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=pg),Hi.init(e,t)}),Cg=X("$ZodCheckUpperCase",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=hg),Hi.init(e,t)}),kg=X("$ZodCheckIncludes",function(e,t){Ht.init(e,t);var n=Lu(t.includes),r=new RegExp(typeof t.position=="number"?"^.{".concat(t.position,"}").concat(n):n);t.pattern=r,e._zod.onattach.push(function(u){var a,i=u._zod.bag;(a=i.patterns)!==null&&a!==void 0||(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=function(u){u.value.includes(t.includes,t.position)||u.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:u.value,inst:e,continue:!t.abort})}}),wg=X("$ZodCheckStartsWith",function(e,t){var n;Ht.init(e,t);var r=new RegExp("^".concat(Lu(t.prefix),".*"));(n=t.pattern)!==null&&n!==void 0||(t.pattern=r),e._zod.onattach.push(function(u){var a,i=u._zod.bag;(a=i.patterns)!==null&&a!==void 0||(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=function(u){u.value.startsWith(t.prefix)||u.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:u.value,inst:e,continue:!t.abort})}}),xg=X("$ZodCheckEndsWith",function(e,t){var n;Ht.init(e,t);var r=new RegExp(".*".concat(Lu(t.suffix),"$"));(n=t.pattern)!==null&&n!==void 0||(t.pattern=r),e._zod.onattach.push(function(u){var a,i=u._zod.bag;(a=i.patterns)!==null&&a!==void 0||(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=function(u){u.value.endsWith(t.suffix)||u.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:u.value,inst:e,continue:!t.abort})}});function Ld(e,t,n){var r;e.issues.length&&(r=t.issues).push.apply(r,De(hu(n,e.issues)))}var Sg=X("$ZodCheckProperty",function(e,t){Ht.init(e,t),e._zod.check=function(n){var r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(function(u){return Ld(u,n,t.property)});Ld(r,n,t.property)}}),Tg=X("$ZodCheckMimeType",function(e,t){Ht.init(e,t);var n=new Set(t.mime);e._zod.onattach.push(function(r){r._zod.bag.mime=t.mime}),e._zod.check=function(r){n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Og=X("$ZodCheckOverwrite",function(e,t){Ht.init(e,t),e._zod.check=function(n){n.value=t.tx(n.value)}}),Ig=Be(function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ie(this,e),this.content=[],this.indent=0,this&&(this.args=t)},[{key:"indented",value:function(e){this.indent+=1,e(this),this.indent-=1}},{key:"write",value:function(e){var t=this;if(typeof e=="function")return e(this,{execution:"sync"}),void e(this,{execution:"async"});var n,r=e.split(`
|
|
96
|
-
`).filter(function(c){return c}),u=Math.min.apply(Math,
|
|
97
|
-
`)]))}}]),Bg={major:4,minor:1,patch:12},Ft=X("$ZodType",function(e,t){var n,r;e!=null||(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Bg;var u=De((n=e._zod.def.checks)!==null&&n!==void 0?n:[]);e._zod.traits.has("$ZodCheck")&&u.unshift(e);var a,i=me(u);try{for(i.s();!(a=i.n()).done;){var o,c=me(a.value._zod.onattach);try{for(c.s();!(o=c.n()).done;)(0,o.value)(e)}catch(y){c.e(y)}finally{c.f()}}}catch(y){i.e(y)}finally{i.f()}if(u.length===0){var l,h;(l=(r=e._zod).deferred)!==null&&l!==void 0||(r.deferred=[]),(h=e._zod.deferred)===null||h===void 0||h.push(function(){e._zod.run=e._zod.parse})}else{var p=function(y,F,D){var _,T,w=Mu(y),S=me(F);try{var x=function(){var O=T.value;if(O._zod.def.when){if(!O._zod.def.when(y))return 0}else if(w)return 0;var I=y.issues.length,B=O._zod.check(y);if(B instanceof Promise&&(D==null?void 0:D.async)===!1)throw new Nu;if(_||B instanceof Promise)_=(_!=null?_:Promise.resolve()).then(Xe(be().m(function d(){return be().w(function(q){for(;;)switch(q.n){case 0:return q.n=1,B;case 1:if(y.issues.length!==I){q.n=2;break}return q.a(2);case 2:w||(w=Mu(y,I));case 3:return q.a(2)}},d)})));else{if(y.issues.length===I)return 0;w||(w=Mu(y,I))}};for(S.s();!(T=S.n()).done;)x()}catch(O){S.e(O)}finally{S.f()}return _?_.then(function(){return y}):y},g=function(y,F,D){if(Mu(y))return y.aborted=!0,y;var _=p(F,u,D);if(_ instanceof Promise){if(D.async===!1)throw new Nu;return _.then(function(T){return e._zod.parse(T,D)})}return e._zod.parse(_,D)};e._zod.run=function(y,F){if(F.skipChecks)return e._zod.parse(y,F);if(F.direction==="backward"){var D=e._zod.parse({value:y.value,issues:[]},C(C({},F),{},{skipChecks:!0}));return D instanceof Promise?D.then(function(T){return g(T,y,F)}):g(D,y,F)}var _=e._zod.parse(y,F);if(_ instanceof Promise){if(F.async===!1)throw new Nu;return _.then(function(T){return p(T,u,F)})}return p(_,u,F)}}e["~standard"]={validate:function(y){try{var F,D=Hm(e,y);return D.success?{value:D.data}:{issues:(F=D.error)===null||F===void 0?void 0:F.issues}}catch(_){return Um(e,y).then(function(T){var w;return T.success?{value:T.data}:{issues:(w=T.error)===null||w===void 0?void 0:w.issues}})}},vendor:"zod",version:1}}),Ts=X("$ZodString",function(e,t){var n,r,u;Ft.init(e,t),e._zod.pattern=(n=De((r=e==null||(u=e._zod.bag)===null||u===void 0?void 0:u.patterns)!==null&&r!==void 0?r:[]).pop())!==null&&n!==void 0?n:(function(a){var i,o,c=a?"[\\s\\S]{".concat((i=a==null?void 0:a.minimum)!==null&&i!==void 0?i:0,",").concat((o=a==null?void 0:a.maximum)!==null&&o!==void 0?o:"","}"):"[\\s\\S]*";return new RegExp("^".concat(c,"$"))})(e._zod.bag),e._zod.parse=function(a,i){if(t.coerce)try{a.value=String(a.value)}catch(o){}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),kt=X("$ZodStringFormat",function(e,t){Hi.init(e,t),Ts.init(e,t)}),Pg=X("$ZodGUID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Xm),kt.init(e,t)}),jg=X("$ZodUUID",function(e,t){var n;if(t.version){var r,u={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(u===void 0)throw new Error('Invalid UUID version: "'.concat(t.version,'"'));(r=t.pattern)!==null&&r!==void 0||(t.pattern=Id(u))}else(n=t.pattern)!==null&&n!==void 0||(t.pattern=Id());kt.init(e,t)}),Ng=X("$ZodEmail",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=eg),kt.init(e,t)}),Rg=X("$ZodURL",function(e,t){kt.init(e,t),e._zod.check=function(n){try{var r=n.value.trim(),u=new URL(r);return t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(u.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:ig.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(u.protocol.endsWith(":")?u.protocol.slice(0,-1):u.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),void(t.normalize?n.value=u.href:n.value=r)}catch(a){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),zg=X("$ZodEmoji",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),kt.init(e,t)}),Lg=X("$ZodNanoID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Qm),kt.init(e,t)}),Mg=X("$ZodCUID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Vm),kt.init(e,t)}),$g=X("$ZodCUID2",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Wm),kt.init(e,t)}),Zg=X("$ZodULID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Gm),kt.init(e,t)}),qg=X("$ZodXID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Jm),kt.init(e,t)}),Hg=X("$ZodKSUID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Km),kt.init(e,t)}),Ug=X("$ZodISODateTime",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=(function(r){var u=jd({precision:r.precision}),a=["Z"];r.local&&a.push(""),r.offset&&a.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");var i="".concat(u,"(?:").concat(a.join("|"),")");return new RegExp("^".concat(Pd,"T(?:").concat(i,")$"))})(t)),kt.init(e,t)}),Vg=X("$ZodISODate",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=sg),kt.init(e,t)}),Wg=X("$ZodISOTime",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=new RegExp("^".concat(jd(t),"$"))),kt.init(e,t)}),Gg=X("$ZodISODuration",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Ym),kt.init(e,t)}),Jg=X("$ZodIPv4",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=tg),kt.init(e,t),e._zod.onattach.push(function(r){r._zod.bag.format="ipv4"})}),Kg=X("$ZodIPv6",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=ng),kt.init(e,t),e._zod.onattach.push(function(r){r._zod.bag.format="ipv6"}),e._zod.check=function(r){try{new URL("http://[".concat(r.value,"]"))}catch(u){r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Qg=X("$ZodCIDRv4",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=rg),kt.init(e,t)}),Yg=X("$ZodCIDRv6",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=ug),kt.init(e,t),e._zod.check=function(r){var u=r.value.split("/");try{if(u.length!==2)throw new Error;var a=ct(u,2),i=a[0],o=a[1];if(!o)throw new Error;var c=Number(o);if("".concat(c)!==o)throw new Error;if(c<0||c>128)throw new Error;new URL("http://[".concat(i,"]"))}catch(l){r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Md(e){if(e==="")return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch(t){return!1}}var Xg=X("$ZodBase64",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=ag),kt.init(e,t),e._zod.onattach.push(function(r){r._zod.bag.contentEncoding="base64"}),e._zod.check=function(r){Md(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),ey=X("$ZodBase64URL",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Bd),kt.init(e,t),e._zod.onattach.push(function(r){r._zod.bag.contentEncoding="base64url"}),e._zod.check=function(r){(function(u){if(!Bd.test(u))return!1;var a=u.replace(/[-_]/g,function(i){return i==="-"?"+":"/"});return Md(a.padEnd(4*Math.ceil(a.length/4),"="))})(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),ty=X("$ZodE164",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=og),kt.init(e,t)}),ny=X("$ZodJWT",function(e,t){kt.init(e,t),e._zod.check=function(n){(function(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var a=r.split(".");if(a.length!==3)return!1;var i=ct(a,1)[0];if(!i)return!1;var o=JSON.parse(atob(i));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||u&&(!("alg"in o)||o.alg!==u))}catch(c){return!1}})(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),$d=X("$ZodNumber",function(e,t){var n;Ft.init(e,t),e._zod.pattern=(n=e._zod.bag.pattern)!==null&&n!==void 0?n:lg,e._zod.parse=function(r,u){if(t.coerce)try{r.value=Number(r.value)}catch(o){}var a=r.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return r;var i=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return r.issues.push(C({expected:"number",code:"invalid_type",input:a,inst:e},i?{received:i}:{})),r}}),ry=X("$ZodNumber",function(e,t){mg.init(e,t),$d.init(e,t)}),uy=X("$ZodBoolean",function(e,t){Ft.init(e,t),e._zod.pattern=fg,e._zod.parse=function(n,r){if(t.coerce)try{n.value=!!n.value}catch(a){}var u=n.value;return typeof u=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:u,inst:e}),n}}),ay=X("$ZodNull",function(e,t){Ft.init(e,t),e._zod.pattern=dg,e._zod.values=new Set([null]),e._zod.parse=function(n,r){var u=n.value;return u===null||n.issues.push({expected:"null",code:"invalid_type",input:u,inst:e}),n}}),iy=X("$ZodUnknown",function(e,t){Ft.init(e,t),e._zod.parse=function(n){return n}}),oy=X("$ZodNever",function(e,t){Ft.init(e,t),e._zod.parse=function(n,r){return n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n}});function Zd(e,t,n){var r;e.issues.length&&(r=t.issues).push.apply(r,De(hu(n,e.issues))),t.value[n]=e.value}var sy=X("$ZodArray",function(e,t){Ft.init(e,t),e._zod.parse=function(n,r){var u=n.value;if(!Array.isArray(u))return n.issues.push({expected:"array",code:"invalid_type",input:u,inst:e}),n;n.value=Array(u.length);for(var a=[],i=function(c){var l=u[c],h=t.element._zod.run({value:l,issues:[]},r);h instanceof Promise?a.push(h.then(function(p){return Zd(p,n,c)})):Zd(h,n,c)},o=0;o<u.length;o++)i(o);return a.length?Promise.all(a).then(function(){return n}):n}});function Ui(e,t,n,r){var u;e.issues.length&&(u=t.issues).push.apply(u,De(hu(n,e.issues))),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function qd(e){for(var t=Object.keys(e.shape),n=0,r=t;n<r.length;n++){var u,a=r[n];if((u=e.shape)===null||u===void 0||(u=u[a])===null||u===void 0||(u=u._zod)===null||u===void 0||(u=u.traits)===null||u===void 0||!u.has("$ZodType"))throw new Error('Invalid element at key "'.concat(a,'": expected a Zod schema'))}var i,o=(i=e.shape,Object.keys(i).filter(function(c){return i[c]._zod.optin==="optional"&&i[c]._zod.optout==="optional"}));return C(C({},e),{},{keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)})}function Hd(e,t,n,r,u,a){for(var i=[],o=u.keySet,c=u.catchall._zod,l=c.def.type,h=function(){var y=g[p];if(o.has(y))return 0;if(l==="never")return i.push(y),0;var F=c.run({value:t[y],issues:[]},r);F instanceof Promise?e.push(F.then(function(D){return Ui(D,n,y,t)})):Ui(F,n,y,t)},p=0,g=Object.keys(t);p<g.length;p++)h();return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:a}),e.length?Promise.all(e).then(function(){return n}):n}var cy=X("$ZodObject",function(e,t){Ft.init(e,t);var n=Object.getOwnPropertyDescriptor(t,"shape");if(n==null||!n.get){var r=t.shape;Object.defineProperty(t,"shape",{get:function(){var c=C({},r);return Object.defineProperty(t,"shape",{value:c}),c}})}var u=Mi(function(){return qd(t)});mt(e._zod,"propValues",function(){var c=t.shape,l={};for(var h in c){var p=c[h]._zod;if(p.values){var g;(g=l[h])!==null&&g!==void 0||(l[h]=new Set);var y,F=me(p.values);try{for(F.s();!(y=F.n()).done;){var D=y.value;l[h].add(D)}}catch(_){F.e(_)}finally{F.f()}}}return l});var a,i=Za,o=t.catchall;e._zod.parse=function(c,l){a!=null||(a=u.value);var h=c.value;if(!i(h))return c.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),c;c.value={};var p,g=[],y=a.shape,F=me(a.keys);try{var D=function(){var _=p.value,T=y[_]._zod.run({value:h[_],issues:[]},l);T instanceof Promise?g.push(T.then(function(w){return Ui(w,c,_,h)})):Ui(T,c,_,h)};for(F.s();!(p=F.n()).done;)D()}catch(_){F.e(_)}finally{F.f()}return o?Hd(g,h,c,l,u.value,e):g.length?Promise.all(g).then(function(){return c}):c}}),ly=X("$ZodObjectJIT",function(e,t){cy.init(e,t);var n,r,u=e._zod.parse,a=Mi(function(){return qd(t)}),i=Za,o=!Fd.jitless,c=o&&$m.value,l=t.catchall;e._zod.parse=function(h,p){r!=null||(r=a.value);var g=h.value;return i(g)?o&&c&&(p==null?void 0:p.async)===!1&&p.jitless!==!0?(n||(n=(function(y){var F=new Ig(["shape","payload","ctx"]),D=a.value,_=function(Z){var z=kd(Z);return"shape[".concat(z,"]._zod.run({ value: input[").concat(z,"], issues: [] }, ctx)")};F.write("const input = payload.value;");var T,w=Object.create(null),S=0,x=me(D.keys);try{for(x.s();!(T=x.n()).done;)w[T.value]="key_".concat(S++)}catch(Z){x.e(Z)}finally{x.f()}F.write("const newResult = {};");var O,I=me(D.keys);try{for(I.s();!(O=I.n()).done;){var B=O.value,d=w[B],q=kd(B);F.write("const ".concat(d," = ").concat(_(B),";")),F.write(`
|
|
89
|
+
`)},Os.link=function(e){var t=e.href,n=e.title,r=e.text,u=n?' title="'.concat($i(n),'"'):"",a=t?$i(t):"",i=$i(r);return'<a href="'.concat(a,'"').concat(u,' target="_blank" rel="noopener noreferrer">').concat(i,"</a>")};var Zi=wl(function(e){var t=e.content,n=e.copyButtonText,r=e.copyButtonCopiedText,u=e.isStreaming,a=On(function(){return bt.parse(t,{gfm:!0,breaks:!0,renderer:Os})},[t]),i=Iu(null);return qn(function(){var o=i.current;if(o)return Array.from(o.querySelectorAll(".DocSearch-CodeSnippet-CopyButton")).forEach(function(l){var p=l.querySelector(".DocSearch-CodeSnippet-CopyButton-Label");p&&(p.textContent=n),l.classList.remove("DocSearch-CodeSnippet-CopyButton--copied")}),o.addEventListener("click",c),function(){o.removeEventListener("click",c)};function c(l){var p,m=l.target.closest(".DocSearch-CodeSnippet-CopyButton");if(m){var v=(p=m.getAttribute("data-code"))!==null&&p!==void 0?p:"";navigator.clipboard.writeText(decodeURIComponent(v)).catch(function(){});var y=m.querySelector(".DocSearch-CodeSnippet-CopyButton-Label");if(y){m.classList.add("DocSearch-CodeSnippet-CopyButton--copied");var F=n;y.textContent=r,setTimeout(function(){m.classList.remove("DocSearch-CodeSnippet-CopyButton--copied"),y.textContent=F},1500)}}}},[a,n,r]),b.createElement("div",{ref:i,className:"DocSearch-Markdown-Content ".concat(u?"DocSearch-Markdown-Content--streaming":""),dangerouslySetInnerHTML:{__html:a}})});function Ym(e){var t=e.part,n=e.translations,r=e.onSearchQueryClick,u=n.searchingText,a=n.preToolCallText,i=n.toolCallResultText;switch(t.state){case"input-streaming":return b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent-Tool Tool--PartialCall shimmer"},b.createElement(Na,{className:"DocSearch-AskAiScreen-SmallerLoadingIcon"}),b.createElement("span",null,u));case"input-available":return b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent-Tool Tool--Call shimmer"},b.createElement(Na,{className:"DocSearch-AskAiScreen-SmallerLoadingIcon"}),b.createElement("span",null,a," ",'"'.concat(t.input.query||"",'" ...')));case"output-available":var o,c=t.type==="tool-searchIndex"?t.output.query:t.input.query,l=t.type==="tool-searchIndex"?(o=t.output.hits)===null||o===void 0?void 0:o.length:t.output.nbHits;return b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent-Tool Tool--Result"},b.createElement(ya,null),b.createElement("span",null,i," ",r?b.createElement("span",{role:"button",tabIndex:0,className:"DocSearch-AskAiScreen-MessageContent-Tool-Query",onKeyDown:function(p){p.key!=="Enter"&&p.key!==" "||(p.preventDefault(),r(c||""))},onClick:function(){return r(c||"")}}," ",'"',c||"",'"'):b.createElement("span",{className:"DocSearch-AskAiScreen-MessageContent-Tool-Query"},' "',c||"",'"')," ","found ",l||0," results"));default:return null}}function td(e){return e.replace(/<[^>]*>/g,"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}Zi.displayName="MemoizedMarkdown";var Xm=function(e,t){var n=t[0].parts.find(function(u){return u.type==="text"}),r=n!=null&&n.text?td(n.text):"";return{query:e,objectID:r,messages:t,type:"askAI",anchor:"stored",content:null,hierarchy:{lvl0:"askAI",lvl1:r,lvl2:null,lvl3:null,lvl4:null,lvl5:null,lvl6:null},url:"",url_without_anchor:""}},nd=function(e){return e==null?void 0:e.parts.find(function(t){return t.type==="text"})};function Is(e){var t;return e&&((t=e.message)===null||t===void 0?void 0:t.includes("AI-217"))||!1}var e0=["translations"];function t0(e){var t=e.disclaimerText;return b.createElement("p",{className:"DocSearch-AskAiScreen-Disclaimer"},t)}function n0(e){var t,n,r,u=e.exchange,a=e.askAiError,i=e.isLastExchange,o=e.loadingStatus,c=e.onSearchQueryClick,l=e.translations,p=e.conversations,m=e.onFeedback,v=e.agentStudio,y=u.userMessage,F=u.assistantMessage,D=l.stoppedStreamingText,_=D===void 0?"You stopped this response":D,O=l.errorTitleText,w=O===void 0?"Chat error":O,x=l.preToolCallText,S=x===void 0?"Searching...":x,T=l.afterToolCallText,I=T===void 0?"Searched for":T,B=l.duringToolCallText,d=B===void 0?"Searching...":B,H=Is(a),R=On(function(){return nd(F)},[F]),Z=On(function(){return nd(y)},[y]),q=b.useMemo(function(){return $=F,Y=[],re=new Set,$?($.parts.forEach(function(me){if(me.type==="text"&&me.text.length!==0){var se,K=me.text.replace(/```[\s\S]*?```/g,"").replace(/`[^`]*`/g,""),V=ye(K.matchAll(/\[([^\]]*)\]\(([^)]+)\)/g));try{for(V.s();!(se=V.n()).done;){var ue=se.value,oe=ue[1].trim(),ce=ue[2];re.has(ce)||(re.add(ce),Y.push({url:ce,title:oe||void 0}))}}catch(Re){V.e(Re)}finally{V.f()}var ee,he=ye(K.matchAll(new RegExp('(?<!\\]\\()https?:\\/\\/[^\\s<>"{}|\\\\^`[\\]]+',"g")));try{for(he.s();!(ee=he.n()).done;){var Ce=ee.value[0].replace(/[.,;:!?]+$/,"");re.has(Ce)||(re.add(Ce),Y.push({url:Ce}))}}catch(Re){he.e(Re)}finally{he.f()}}}),Y):[];var $,Y,re},[F]),G=b.useMemo(function(){return(function($){for(var Y=[],re=0;re<$.length;re++){var me=$[re];if(me.type==="tool-searchIndex"&&me.state==="output-available"){for(var se=[],K=re;K<$.length;){var V=$[K];if(V.type!=="tool-searchIndex"||V.state!=="output-available")break;var ue,oe,ce=((ue=(oe=V.output)===null||oe===void 0?void 0:oe.query)!==null&&ue!==void 0?ue:"").trim();ce&&ce.length>0&&se.push(ce),K++}se.length>1?Y.push({type:"aggregated-tool-call",queries:se}):se.length===1&&Y.push(me),re=K-1}else Y.push(me)}return Y})((F==null?void 0:F.parts)||[])},[F]),L=((t=y.metadata)===null||t===void 0?void 0:t.stopped)||(F==null||(n=F.metadata)===null||n===void 0?void 0:n.stopped),ne=!L&&(!i||i&&o==="ready"&&!!F),Q=["submitted","streaming"].includes(o)&&i&&!G.some(function($){return $.type!=="step-start"});return b.createElement("div",{className:"DocSearch-AskAiScreen-Response-Container"},b.createElement("div",{className:"DocSearch-AskAiScreen-Response"},b.createElement("div",{className:"DocSearch-AskAiScreen-Message DocSearch-AskAiScreen-Message--user"},b.createElement("p",{className:"DocSearch-AskAiScreen-Query"},(r=Z==null?void 0:Z.text)!==null&&r!==void 0?r:"")),b.createElement("div",{className:"DocSearch-AskAiScreen-Message DocSearch-AskAiScreen-Message--assistant"},b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent"},o==="error"&&a&&i&&!H&&b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent DocSearch-AskAiScreen-Error"},b.createElement(vm,null),b.createElement("div",{className:"DocSearch-AskAiScreen-Error-Content"},b.createElement("h4",{className:"DocSearch-AskAiScreen-Error-Title"},w),b.createElement(Zi,{content:a.message,copyButtonText:"",copyButtonCopiedText:"",isStreaming:!1}))),Q&&b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent-Reasoning"},b.createElement("span",{className:"shimmer"},l.thinkingText||"Thinking...")),G.map(function($,Y){var re=Y;return typeof $=="string"?b.createElement(Zi,{key:re,content:$,copyButtonText:l.copyButtonText||"Copy",copyButtonCopiedText:l.copyButtonCopiedText||"Copied!",isStreaming:o==="streaming"}):$.type==="aggregated-tool-call"?b.createElement(Sm,{key:re,queries:$.queries,translations:l,onSearchQueryClick:c}):$.type==="reasoning"&&$.state==="streaming"?b.createElement("div",{key:re,className:"DocSearch-AskAiScreen-MessageContent-Reasoning shimmer"},b.createElement(Na,{className:"DocSearch-AskAiScreen-SmallerLoadingIcon"}),b.createElement("span",{className:"shimmer"},"Reasoning...")):$.type==="text"?b.createElement(Zi,{key:re,content:$.text,copyButtonText:l.copyButtonText||"Copy",copyButtonCopiedText:l.copyButtonCopiedText||"Copied!",isStreaming:$.state==="streaming"}):$.type==="tool-searchIndex"||$.type==="tool-algolia_search_index"?b.createElement(Ym,{key:re,translations:{preToolCallText:S,searchingText:d,toolCallResultText:I},part:$,onSearchQueryClick:c}):null})),L&&b.createElement("p",{className:"DocSearck-AskAiScreen-MessageContent-Stopped"},_)),b.createElement("div",{className:"DocSearch-AskAiScreen-Answer-Footer"},b.createElement(r0,{id:(y==null?void 0:y.id)||u.id,showActions:ne,latestAssistantMessageContent:(R==null?void 0:R.text)||null,translations:l,conversations:p,agentStudio:v,onFeedback:m}))),q.length>0?b.createElement(u0,{urlsToDisplay:q,relatedSourcesText:l.relatedSourcesText}):null)}function r0(e){var t=e.id,n=e.showActions,r=e.latestAssistantMessageContent,u=e.translations,a=e.conversations,i=e.onFeedback,o=e.agentStudio,c=b.useMemo(function(){var H,R,Z=(H=a.getOne)===null||H===void 0?void 0:H.call(a,t);return(R=Z==null?void 0:Z.feedback)!==null&&R!==void 0?R:null},[a,t]),l=dt(b.useState(c),2),p=l[0],m=l[1],v=dt(b.useState(!1),2),y=v[0],F=v[1],D=dt(b.useState(null),2),_=D[0],O=D[1],w=(function(){var H=Xe(Ae().m(function R(Z){var q;return Ae().w(function(G){for(;;)switch(G.p=G.n){case 0:if(!y){G.n=1;break}return G.a(2);case 1:return O(null),F(!0),G.p=2,G.n=3,i==null?void 0:i(t,Z==="like"?1:0);case 3:m(Z),G.n=5;break;case 4:G.p=4,q=G.v,O(q);case 5:return G.p=5,F(!1),G.f(5);case 6:return G.a(2)}},R,null,[[2,4,5,6]])}));return function(R){return H.apply(this,arguments)}})(),x=u.likeButtonTitle,S=x===void 0?"Like":x,T=u.dislikeButtonTitle,I=T===void 0?"Dislike":T,B=u.thanksForFeedbackText,d=B===void 0?"Thanks for your feedback!":B;return n&&r?b.createElement("div",{className:"DocSearch-AskAiScreen-Actions"},!o&&(p===null?b.createElement(b.Fragment,null,y?b.createElement(Na,{className:"DocSearch-AskAiScreen-SmallerLoadingIcon"}):b.createElement(b.Fragment,null,b.createElement(s0,{title:S,onClick:function(){return w("like")}}),b.createElement(c0,{title:I,onClick:function(){return w("dislike")}})),_&&b.createElement("p",{className:"DocSearch-AskAiScreen-FeedbackText"},_.message||"An error occured")):b.createElement("p",{className:"DocSearch-AskAiScreen-FeedbackText DocSearch-AskAiScreen-FeedbackText--visible"},d)),b.createElement(o0,{translations:u,onClick:function(){return navigator.clipboard.writeText(r)}})):null}function u0(e){var t=e.urlsToDisplay,n=e.relatedSourcesText;return b.createElement("div",{className:"DocSearch-AskAiScreen-RelatedSources"},b.createElement("p",{className:"DocSearch-AskAiScreen-RelatedSources-Title"},n||"Related sources"),b.createElement("div",{className:"DocSearch-AskAiScreen-RelatedSources-List"},t.length>0&&t.map(function(r){return b.createElement("a",{key:r.url,href:r.url,className:"DocSearch-AskAiScreen-RelatedSources-Item-Link",target:"_blank",rel:"noopener noreferrer"},b.createElement(i0,null),b.createElement("span",null,r.title||r.url))})))}function a0(e){var t=e.translations,n=t===void 0?{}:t,r=an(e,e0),u=n.disclaimerText,a=u===void 0?"Answers are generated with AI which can make mistakes. Verify responses.":u,i=n.threadDepthExceededMessage,o=i===void 0?"This conversation is now closed to keep responses accurate.":i,c=n.startNewConversationButtonText,l=c===void 0?"Start a new conversation":c,p=r.messages,m=r.askAiError,v=r.status,y=On(function(){return v==="error"&&Is(m)},[v,m]),F=On(function(){for(var O=[],w=0;w<p.length;w++)if(p[w].role==="user"){var x,S=p[w],T=((x=p[w+1])===null||x===void 0?void 0:x.role)==="assistant"?p[w+1]:null;O.push({id:S.id,userMessage:S,assistantMessage:T}),T&&w++}return y&&O.length>0&&(O[O.length-1].assistantMessage||O.pop()),O},[p,y]),D=function(O){r.onAskAiToggle(!1),r.setQuery(O)},_=y&&p.some(function(O){return O.role==="assistant"});return b.createElement("div",{className:"DocSearch-AskAiScreen DocSearch-AskAiScreen-Container"},_&&b.createElement("div",{className:"DocSearch-AskAiScreen-MessageContent DocSearch-AskAiScreen-Error DocSearch-AskAiScreen-Error--ThreadDepth"},b.createElement("div",{className:"DocSearch-AskAiScreen-Error-Content"},b.createElement("p",null,o," ",b.createElement("button",{type:"button",className:"DocSearch-ThreadDepthError-Link",onClick:r.onNewConversation},l)," ","to continue."))),b.createElement(t0,{disclaimerText:a}),b.createElement("div",{className:"DocSearch-AskAiScreen-Body"},b.createElement("div",{className:"DocSearch-AskAiScreen-ExchangesList"},F.slice().reverse().map(function(O,w){return b.createElement(n0,{key:O.id,exchange:O,askAiError:r.askAiError,isLastExchange:w===0,loadingStatus:r.status,translations:n,conversations:r.conversations,agentStudio:r.agentStudio,onSearchQueryClick:D,onFeedback:r.onFeedback})}))))}function i0(){return b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},b.createElement("line",{x1:"4",x2:"20",y1:"9",y2:"9"}),b.createElement("line",{x1:"4",x2:"20",y1:"15",y2:"15"}),b.createElement("line",{x1:"10",x2:"8",y1:"3",y2:"21"}),b.createElement("line",{x1:"16",x2:"14",y1:"3",y2:"21"}))}function o0(e){var t=e.onClick,n=e.translations,r=n.copyButtonTitle,u=r===void 0?"Copy":r,a=n.copyButtonCopiedText,i=a===void 0?"Copied!":a,o=dt(su(!1),2),c=o[0],l=o[1];return qn(function(){if(c){var p=setTimeout(function(){l(!1)},1500);return function(){return clearTimeout(p)}}},[c]),b.createElement("button",{type:"button",className:"DocSearch-AskAiScreen-ActionButton DocSearch-AskAiScreen-CopyButton ".concat(c?"DocSearch-AskAiScreen-CopyButton--copied":""),disabled:c,title:c?i:u,onClick:function(){t(),l(!0)}},c?b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-check-icon lucide-check"},b.createElement("path",{d:"M20 6 9 17l-5-5"})):b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-copy-icon lucide-copy"},b.createElement("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),b.createElement("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})))}function s0(e){var t=e.title,n=e.onClick;return b.createElement("button",{type:"button",className:"DocSearch-AskAiScreen-ActionButton DocSearch-AskAiScreen-LikeButton",title:t,onClick:n},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-thumbs-up-icon lucide-thumbs-up"},b.createElement("path",{d:"M7 10v12"}),b.createElement("path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"})))}function c0(e){var t=e.title,n=e.onClick;return b.createElement("button",{type:"button",className:"DocSearch-AskAiScreen-ActionButton DocSearch-AskAiScreen-DislikeButton",title:t,onClick:n},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-thumbs-down-icon lucide-thumbs-down"},b.createElement("path",{d:"M17 14V2"}),b.createElement("path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"})))}var l0=["hit","attribute","tagName"];function rd(e,t){return t.split(".").reduce(function(n,r){return n!=null&&n[r]?n[r]:null},e)}function Lu(e){var t=e.hit,n=e.attribute,r=e.tagName;return kn(r===void 0?"span":r,C(C({},an(e,l0)),{},{dangerouslySetInnerHTML:{__html:rd(t,"_snippetResult.".concat(n,".value"))||rd(t,n)}}))}var f0=["item","getItemProps","onItemClick","translations","collection"];function qa(e){var t=b.useMemo(function(){return e.title?e.title.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):null},[e.title]);return e.collection&&e.collection.items.length!==0?e.collection.source.sourceId==="askAI"?b.createElement("section",{className:"DocSearch-AskAi-Section"},b.createElement("ul",e.getListProps({source:e.collection.source}),b.createElement(p0,Tt({item:e.collection.items[0],translations:e.translations},e)))):(e.collection.source.sourceId,b.createElement("section",{className:"DocSearch-Hits"},b.createElement("div",{className:"DocSearch-Hit-source"},t),b.createElement("ul",e.getListProps({source:e.collection.source}),e.collection.items.map(function(n,r){return b.createElement(d0,Tt({key:[e.title,n.objectID].join(":"),item:n,index:r},e))})))):null}function d0(e){var t=e.item,n=e.index,r=e.renderIcon,u=e.renderAction,a=e.getItemProps,i=e.onItemClick,o=e.collection,c=e.hitComponent;return b.createElement("li",Tt({className:["DocSearch-Hit",t.__docsearch_parent&&"DocSearch-Hit--Child"].filter(Boolean).join(" ")},a({item:t,source:o.source,onClick:function(l){i(t,l)}})),b.createElement(c,{hit:t},b.createElement("div",{className:"DocSearch-Hit-Container"},r({item:t,index:n}),t.hierarchy[t.type]&&t.type==="lvl1"&&b.createElement("div",{className:"DocSearch-Hit-content-wrapper"},b.createElement(Lu,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.lvl1"}),t.content&&b.createElement(Lu,{className:"DocSearch-Hit-path",hit:t,attribute:"content"})),t.type==="askAI"&&b.createElement("div",{className:"DocSearch-Hit-content-wrapper"},b.createElement("span",{className:"DocSearch-Hit-title"},td(t.hierarchy.lvl1||""))),t.hierarchy[t.type]&&(t.type==="lvl2"||t.type==="lvl3"||t.type==="lvl4"||t.type==="lvl5"||t.type==="lvl6")&&b.createElement("div",{className:"DocSearch-Hit-content-wrapper"},b.createElement(Lu,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.".concat(t.type)}),b.createElement(Lu,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),t.type==="content"&&b.createElement("div",{className:"DocSearch-Hit-content-wrapper"},b.createElement(Lu,{className:"DocSearch-Hit-title",hit:t,attribute:"content"}),b.createElement(Lu,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),u({item:t}))))}function p0(e){var t=e.item,n=e.getItemProps,r=e.onItemClick,u=e.translations,a=e.collection,i=an(e,f0),o=u||{},c=o.askAiPlaceholder,l=c===void 0?"Ask AI: ":c,p=o.noResultsAskAiPlaceholder,m=p===void 0?"Didn't find it in the docs? Ask AI to help: ":p,v=i.state.collections.length===1?m:l;return b.createElement("li",Tt({className:"DocSearch-Hit"},n({item:t,source:a.source,onClick:function(y){r(t,y)}})),b.createElement("div",{className:"DocSearch-Hit--AskAI"},b.createElement("div",{className:"DocSearch-Hit-AskAIButton DocSearch-Hit-Container"},b.createElement("div",{className:" DocSearch-Hit-AskAIButton-icon DocSearch-Hit-icon"},b.createElement(As,null)),b.createElement("div",{className:"DocSearch-Hit-AskAIButton-title"},b.createElement("span",{className:"DocSearch-Hit-AskAIButton-title-highlight"},v),b.createElement("mark",{className:"DocSearch-Hit-AskAIButton-title-query"},String(t.query||""))))))}var h0=["onAskAiToggle"];function v0(e){var t=e.onAskAiToggle,n=an(e,h0),r=b.useMemo(function(){return n.state.collections[2]},[n.state]);return b.useEffect(function(){r&&r.items.length!==0||t(!0)},[r,t]),b.createElement("div",{className:"DocSearch-Dropdown-Container DocSearch-Conversation-History"},b.createElement(qa,Tt({},n,{key:r.source.sourceId,title:"",translations:n.translations,collection:r,renderIcon:function(){return b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(As,null))},renderAction:function(u){var a=u.item;return b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{type:"button",className:"DocSearch-Hit-action-button",onClick:function(i){i.preventDefault(),i.stopPropagation(),n.conversations.remove(a),n.refresh()}},b.createElement(Ra,null)))}})))}function m0(e){var t=e.translations,n=t===void 0?{}:t,r=n.titleText,u=r===void 0?"Unable to fetch results":r,a=n.helpText,i=a===void 0?"You might want to check your network connection.":a;return b.createElement("div",{className:"DocSearch-ErrorScreen"},b.createElement("div",{className:"DocSearch-Screen-Icon"},b.createElement(Em,null)),b.createElement("p",{className:"DocSearch-Title"},u),b.createElement("p",{className:"DocSearch-Help"},i))}function g0(e){var t=e.translations,n=t===void 0?{}:t,r=e.suggestedQuestions,u=r===void 0?[]:r,a=e.selectSuggestedQuestion,i=n.newConversationTitle,o=i===void 0?"How can I help you today?":i,c=n.newConversationDescription,l=c===void 0?"I search through your documentation to help you find setup guides, feature details and troubleshooting tips, fast.":c;return b.createElement("div",{className:"DocSearch-NewConversationScreen"},b.createElement("h3",{className:"DocSearch-NewConversationScreen-Title"},o),b.createElement("p",{className:"DocSearch-NewConversationScreen-Description"},l),b.createElement("div",{className:"DocSearch-NewConversationScreen-SuggestedQuestions"},u.map(function(p){return b.createElement("button",{key:p.objectID,type:"button",className:"DocSearch-NewConversationScreen-SuggestedQuestion",onClick:function(){return a(p)}},p.question)})))}var y0=["translations"];function ud(e){var t=e.translations,n=t===void 0?{}:t,r=an(e,y0),u=n.noResultsText,a=u===void 0?"No results found for":u,i=n.suggestedQueryText,o=i===void 0?"Try searching for":i,c=n.reportMissingResultsText,l=c===void 0?"Believe this query should return results?":c,p=n.reportMissingResultsLinkText,m=p===void 0?"Let us know.":p,v=r.state.context.searchSuggestions;return b.createElement("div",{className:"DocSearch-NoResults ".concat(r.canHandleAskAi?"DocSearch-NoResults--withAskAi":"")},b.createElement("div",{className:"DocSearch-Screen-Icon"},b.createElement(Fm,null)),b.createElement("p",{className:"DocSearch-Title"},a,' "',b.createElement("strong",null,r.state.query),'"'),v&&v.length>0&&b.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},b.createElement("p",{className:"DocSearch-Help"},o,":"),b.createElement("div",{className:"DocSearch-NoResults-Prefill-List-Items"},v.slice(0,3).reduce(function(y,F){return[].concat(be(y),[b.createElement("p",{key:F},b.createElement(ya,{size:16}),b.createElement("button",{className:"DocSearch-Prefill",key:F,type:"button",onClick:function(){r.setQuery(F.toLowerCase()+" "),r.refresh(),r.inputRef.current.focus()}},F))])},[]))),r.getMissingResultsUrl&&b.createElement("p",{className:"DocSearch-Help"},"".concat(l," "),b.createElement("a",{href:r.getMissingResultsUrl({query:r.state.query}),target:"_blank",rel:"noopener noreferrer"},m)))}var D0=["translations"];function b0(e){var t=e.translations,n=t===void 0?{}:t,r=an(e,D0);return b.createElement("div",{className:"DocSearch-Dropdown-Container"},r.state.collections.map(function(u){if(u.items.length===0)return null;var a=Xl(u.items[0]);return b.createElement(qa,Tt({},r,{key:u.source.sourceId,translations:n,title:a,collection:u,renderIcon:function(i){var o,c=i.item,l=i.index;return b.createElement(b.Fragment,null,c.__docsearch_parent&&b.createElement("svg",{className:"DocSearch-Hit-Tree",viewBox:"0 0 24 54"},b.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},c.__docsearch_parent!==((o=u.items[l+1])===null||o===void 0?void 0:o.__docsearch_parent)?b.createElement("path",{d:"M8 6v21M20 27H8.3"}):b.createElement("path",{d:"M8 6v42M20 27H8.3"}))),b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(ym,{type:c.type})))},renderAction:function(){return b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement(mm,null))}}))}),r.resultsFooterComponent&&b.createElement("section",{className:"DocSearch-HitsFooter"},b.createElement(r.resultsFooterComponent,{state:r.state})))}var A0=["translations"];function E0(e){var t=e.translations,n=t===void 0?{}:t,r=an(e,A0),u=n.recentSearchesTitle,a=u===void 0?"Recent":u,i=n.saveRecentSearchButtonTitle,o=i===void 0?"Save this search":i,c=n.removeRecentSearchButtonTitle,l=c===void 0?"Remove this search from history":c,p=n.favoriteSearchesTitle,m=p===void 0?"Favorite":p,v=n.removeFavoriteSearchButtonTitle,y=v===void 0?"Remove this search from favorites":v,F=n.recentConversationsTitle,D=F===void 0?"Recent conversations":F,_=n.removeRecentConversationButtonTitle,O=_===void 0?"Remove this conversation from history":_;return b.createElement("div",{className:"DocSearch-Dropdown-Container"},b.createElement(qa,Tt({},r,{title:a,collection:r.state.collections[0],renderIcon:function(){return b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(hm,null))},renderAction:function(w){var x=w.item;return b.createElement(b.Fragment,null,b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{className:"DocSearch-Hit-action-button",title:o,type:"submit",onClick:function(S){S.preventDefault(),S.stopPropagation(),r.favoriteSearches.add(x),r.recentSearches.remove(x),r.refresh()}},b.createElement(Rf,null))),b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{className:"DocSearch-Hit-action-button",title:l,type:"submit",onClick:function(S){S.preventDefault(),S.stopPropagation(),r.recentSearches.remove(x),r.refresh()}},b.createElement(Ra,null))))}})),b.createElement(qa,Tt({},r,{title:m,collection:r.state.collections[1],renderIcon:function(){return b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(Rf,null))},renderAction:function(w){var x=w.item;return b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{className:"DocSearch-Hit-action-button",title:y,type:"submit",onClick:function(S){S.preventDefault(),S.stopPropagation(),r.favoriteSearches.remove(x),r.refresh()}},b.createElement(Ra,null)))}})),b.createElement(qa,Tt({},r,{title:D,collection:r.state.collections[2],renderIcon:function(){return b.createElement("div",{className:"DocSearch-Hit-icon"},b.createElement(As,null))},renderAction:function(w){var x=w.item;return b.createElement("div",{className:"DocSearch-Hit-action"},b.createElement("button",{className:"DocSearch-Hit-action-button",title:O,type:"submit",onClick:function(S){S.preventDefault(),S.stopPropagation(),r.conversations.remove(x),r.refresh()}},b.createElement(Ra,null)))}})))}var F0=["translations"],_0=b.memo(function(e){var t,n=e.translations,r=n===void 0?{}:n,u=an(e,F0);return u.canHandleAskAi&&u.isAskAiActive&&u.askAiState==="conversation-history"?b.createElement(v0,u):u.canHandleAskAi&&u.isAskAiActive&&u.askAiState==="new-conversation"?b.createElement(g0,{translations:r==null?void 0:r.newConversation,selectSuggestedQuestion:u.selectSuggestedQuestion,suggestedQuestions:u.suggestedQuestions}):u.isAskAiActive&&u.canHandleAskAi?b.createElement(a0,Tt({},u,{messages:u.messages,status:u.status,askAiError:u.askAiError,translations:r==null?void 0:r.askAiScreen,agentStudio:u.agentStudio})):((t=u.state)===null||t===void 0?void 0:t.status)==="error"?b.createElement(m0,{translations:r==null?void 0:r.errorScreen}):u.state.query?u.hasCollections||u.canHandleAskAi?b.createElement(b.Fragment,null,b.createElement(b0,Tt({},u,{translations:r==null?void 0:r.resultsScreen})),u.canHandleAskAi&&u.state.collections.length===1&&b.createElement(ud,Tt({},u,{translations:r==null?void 0:r.noResultsScreen}))):b.createElement(ud,Tt({},u,{translations:r==null?void 0:r.noResultsScreen})):b.createElement(E0,Tt({},u,{hasCollections:u.hasCollections,translations:r==null?void 0:r.startScreen}))},function(e,t){return t.state.status==="loading"||t.state.status==="stalled"});function C0(e){var t=e.size,n=t===void 0?20:t,r=e.color,u=r===void 0?"currentColor":r;return b.createElement("svg",{width:n,height:n,className:"DocSearch-Back-Icon",viewBox:"0 0 24 24",fill:"none",stroke:u,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},b.createElement("path",{d:"m12 19-7-7 7-7"}),b.createElement("path",{d:"M19 12H5"}))}var k0=["children","className","onClick"],qi=b.createContext({open:!1,setOpen:function(e){}});function $r(e){var t=e.children,n=dt(b.useState(!1),2),r=n[0],u=n[1],a=b.useRef(null);return b.useEffect(function(){function i(o){var c;(c=a.current)!==null&&c!==void 0&&c.contains(o.target)||u(!1)}return r&&window.addEventListener("click",i),function(){window.removeEventListener("click",i)}},[r]),b.createElement(qi.Provider,{value:{open:r,setOpen:u}},b.createElement("div",{ref:a,className:"DocSearch-Menu"},t))}function w0(e){var t=e.heading,n=e.shimmer,r=n!==void 0&&n;return b.createElement("span",{className:"DocSearch-Modal-heading".concat(r?" shimmer":"")},t)}$r.Trigger=function(e){var t=e.children,n=e.className,r=n===void 0?"":n,u=e.disabled,a=b.useContext(qi),i=a.open,o=a.setOpen;return b.createElement("button",{type:"button",className:"DocSearch-Menu-trigger ".concat(r).concat(u?" disabled":""),"aria-disabled":u,onClick:function(){u||o(!i)}},t)},$r.Content=function(e){var t=e.children,n=b.useContext(qi).open;return b.createElement("div",{className:"DocSearch-Menu-content".concat(n?" open":"")},t)},$r.Item=function(e){var t=e.children,n=e.className,r=n===void 0?"":n,u=e.onClick,a=an(e,k0),i=b.useContext(qi).setOpen;return b.createElement("button",Tt({type:"button",className:"DocSearch-Menu-item ".concat(r),onClick:function(o){u&&(u(o),i(!1))}},a),t)};var S0=["translations","askAiState","onAskAiToggle","setAskAiState"];function x0(e){var t=e.translations,n=t===void 0?{}:t,r=e.askAiState,u=e.onAskAiToggle,a=e.setAskAiState,i=an(e,S0),o=n.clearButtonTitle,c=o===void 0?"Clear":o,l=n.clearButtonAriaLabel,p=l===void 0?"Clear the query":l,m=n.closeButtonText,v=m===void 0?"Close":m,y=n.closeButtonAriaLabel,F=y===void 0?"Close":y,D=n.searchInputLabel,_=D===void 0?"Search":D,O=n.backToKeywordSearchButtonText,w=O===void 0?"Back to keyword search":O,x=n.backToKeywordSearchButtonAriaLabel,S=x===void 0?"Back to keyword search":x,T=n.placeholderTextAskAiStreaming,I=T===void 0?"Answering...":T,B=n.newConversationPlaceholder,d=B===void 0?"Ask a question":B,H=n.conversationHistoryTitle,R=H===void 0?"My conversation history":H,Z=n.startNewConversationText,q=Z===void 0?"Start a new conversation":Z,G=n.viewConversationHistoryText,L=G===void 0?"Conversation history":G,ne=n.threadDepthErrorPlaceholder,Q=ne===void 0?"Conversation limit reached":ne,$=i.getFormProps({inputElement:i.inputRef.current}).onReset;b.useEffect(function(){i.autoFocus&&i.inputRef.current&&i.inputRef.current.focus()},[i.autoFocus,i.inputRef]),b.useEffect(function(){i.isFromSelection&&i.inputRef.current&&i.inputRef.current.select()},[i.isFromSelection,i.inputRef]);var Y=b.useMemo(function(){var ge=i.state.collections[2];return!!ge&&ge.items.length>0},[i.state.collections]),re=i.getInputProps({inputElement:i.inputRef.current,autoFocus:i.autoFocus,maxLength:512}),me=new Set(["ArrowUp","ArrowDown","Enter"]),se=re.onKeyDown,K=re.onChange,V=i.askAiStatus==="streaming"||i.askAiStatus==="submitted",ue=i.state.status==="stalled",oe=i.isAskAiActive&&r!=="conversation-history",ce=i.isThreadDepthError||!1,ee=i.placeholder;r==="new-conversation"&&(ee=d),ce&&i.isAskAiActive&&(ee=Q);var he=null;V&&(he=I),r==="conversation-history"&&(he=R),b.useEffect(function(){i.askAiStatus!=="streaming"&&i.askAiStatus!=="submitted"&&i.inputRef.current&&i.inputRef.current.focus()},[i.askAiStatus,i.inputRef]);var Ce=C(C({},re),{},{enterKeyHint:i.isAskAiActive?"enter":"search",onKeyDown:function(ge){if(i.isAskAiActive&&me.has(ge.key))return ge.key==="Enter"&&!V&&i.state.query&&i.onAskAgain(i.state.query),ge.preventDefault(),void ge.stopPropagation();se==null||se(ge)},onChange:function(ge){if(i.isAskAiActive)return i.setQuery(ge.currentTarget.value),ge.preventDefault(),void ge.stopPropagation();K==null||K(ge)},disabled:V||ce&&i.isAskAiActive}),Re=b.useCallback(function(){if(!ce)return r==="conversation-history"?(u(!0),void a("initial")):void u(!1);i.onNewConversation()},[r,ce,u,a,i]);return b.createElement(b.Fragment,null,b.createElement("form",{className:"DocSearch-Form",onSubmit:function(ge){ge.preventDefault()},onReset:$},i.isAskAiActive?b.createElement(b.Fragment,null,b.createElement("button",{type:"button",tabIndex:0,className:"DocSearch-Action DocSearch-AskAi-Return",title:w,"aria-label":S,onClick:Re},b.createElement(C0,null))):b.createElement(b.Fragment,null,ue&&b.createElement("div",{className:"DocSearch-LoadingIndicator"},b.createElement(Na,null)),!ue&&b.createElement("label",Tt({className:"DocSearch-MagnifierLabel"},i.getLabelProps()),b.createElement(ya,null),b.createElement("span",{className:"DocSearch-VisuallyHiddenForAccessibility"},_))),he&&b.createElement(w0,{heading:he,shimmer:V}),b.createElement("input",Tt({className:"DocSearch-Input",ref:i.inputRef},Ce,{placeholder:ee,hidden:!!he})),b.createElement("div",{className:"DocSearch-Actions"},b.createElement("button",{className:"DocSearch-Clear",type:"reset","aria-label":p,hidden:!i.state.query,tabIndex:i.state.query?0:-1,"aria-hidden":i.state.query?"false":"true"},c),i.state.query&&b.createElement("div",{className:"DocSearch-Divider"}),V&&b.createElement(b.Fragment,null,b.createElement("button",{type:"button",className:"DocSearch-Action DocSearch-StopStreaming",onClick:i.onStopAskAiStreaming},b.createElement(Am,null)),b.createElement("div",{className:"DocSearch-Divider"})),oe&&b.createElement(b.Fragment,null,b.createElement($r,null,b.createElement($r.Trigger,{className:"DocSearch-Action"},b.createElement(_m,null)),b.createElement($r.Content,null,b.createElement($r.Item,{onClick:i.onNewConversation},b.createElement(km,null),q),Y&&b.createElement($r.Item,{onClick:i.onViewConversationHistory},b.createElement(Cm,null),L))),b.createElement("div",{className:"DocSearch-Divider"})),b.createElement("button",{type:"button",title:v,className:"DocSearch-Action DocSearch-Close","aria-label":F,onClick:i.onClose},b.createElement(Ra,null)))))}function ad(){if(typeof window!="undefined"&&window.localStorage){var e=[];for(var t in window.localStorage)if(t.includes("__DOCSEARCH_")){var n=window.localStorage[t];e.push({key:t,size:n.length+t.length})}e.sort(function(a,i){return i.size-a.size});for(var r=Math.ceil(e.length/2),u=0;u<r&&u<e.length;u++)try{window.localStorage.removeItem(e[u].key)}catch(a){}}}function id(e){return(function(){if(typeof window=="undefined"||!("localStorage"in window))return!1;var t="__TEST_KEY__";try{return window.localStorage.setItem(t,""),window.localStorage.removeItem(t),!0}catch(n){return!1}})()===!1?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(t){(function(n,r){try{window.localStorage.setItem(n,JSON.stringify(r))}catch(u){if(u instanceof DOMException&&u.name==="QuotaExceededError")try{ad(),window.localStorage.setItem(n,JSON.stringify(r))}catch(a){}}})(e,t)},getItem:function(){var t=window.localStorage.getItem(e);if(t===null)return[];try{var n=JSON.parse(t);return Array.isArray(n)?n:[]}catch(r){return window.localStorage.removeItem(e),[]}}}}var T0=["_highlightResult","_snippetResult"];function od(e){var t=e.key,n=e.limit,r=n===void 0?5:n,u=id(t),a=u.getItem().slice(0,r);return{add:function(i){var o=i;o._highlightResult,o._snippetResult;var c=an(o,T0),l=a.findIndex(function(p){return p.objectID===c.objectID});l>-1&&a.splice(l,1),a.unshift(c),a=a.slice(0,r),u.setItem(a)},remove:function(i){a=a.filter(function(o){return o.objectID!==i.objectID}),u.setItem(a)},getAll:function(){return a}}}function sd(e){var t=e.key,n=e.limit,r=n===void 0?5:n,u=id(t),a=u.getItem().slice(0,r);return{add:function(i){var o=i.objectID,c=i.query,l=a.findIndex(function(p){return p.objectID===o||p.query===c});l>-1?a[l]=i:(a.unshift(i),a=a.slice(0,r)),u.setItem(a)},addFeedback:function(i,o){var c=a.find(function(p){var m;return(m=p.messages)===null||m===void 0?void 0:m.some(function(v){return v.id===i})});if(c&&c.messages){var l=c.messages.find(function(p){return p.id===i});l&&(l.feedback=o,u.setItem(a))}},getOne:function(i){var o,c=a.find(function(l){var p;return(p=l.messages)===null||p===void 0?void 0:p.some(function(m){return m.id===i})});return c==null||(o=c.messages)===null||o===void 0?void 0:o.find(function(l){return l.id===i})},getAll:function(){return a},remove:function(i){a=a.filter(function(o){return o.objectID!==i.objectID}),u.setItem(a)},getConversation:function(i){var o=a.find(function(c){var l;return(l=c.messages)===null||l===void 0?void 0:l.some(function(p){return p.id===i})});if(o&&o.messages)return o}}}var cd,ld="vercel.ai.error",O0=Symbol.for(ld),I0=(function(){function e(t){var n,r=t.name,u=t.message,a=t.cause;return Mn(this,e),(n=au(this,e,[u]))[cd]=!0,n.name=r,n.cause=a,n}return iu(e,Lo(Error)),$n(e,null,[{key:"isInstance",value:function(t){return e.hasMarker(t,ld)}},{key:"hasMarker",value:function(t,n){var r=Symbol.for(n);return t!=null&&we(t)=="object"&&r in t&&typeof t[r]=="boolean"&&t[r]===!0}}])})();cd=O0;var Zr=I0;function fd(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var dd,pd="AI_InvalidArgumentError",hd="vercel.ai.error.".concat(pd),B0=Symbol.for(hd),P0=(function(){function e(t){var n,r=t.message,u=t.cause,a=t.argument;return Mn(this,e),(n=au(this,e,[{name:pd,message:r,cause:u}]))[dd]=!0,n.argument=a,n}return iu(e,Zr),$n(e,null,[{key:"isInstance",value:function(t){return Zr.hasMarker(t,hd)}}])})();dd=B0;var vd,md="AI_JSONParseError",gd="vercel.ai.error.".concat(md),j0=Symbol.for(gd),yd=(function(){function e(t){var n,r=t.text,u=t.cause;return Mn(this,e),(n=au(this,e,[{name:md,message:"JSON parsing failed: Text: ".concat(r,`.
|
|
90
|
+
Error message: `).concat(fd(u)),cause:u}]))[vd]=!0,n.text=r,n}return iu(e,Zr),$n(e,null,[{key:"isInstance",value:function(t){return Zr.hasMarker(t,gd)}}])})();vd=j0;var Dd,bd="AI_TypeValidationError",Ad="vercel.ai.error.".concat(bd),N0=Symbol.for(Ad);Dd=N0;var Hi=(function(){function e(t){var n,r=t.value,u=t.cause;return Mn(this,e),(n=au(this,e,[{name:bd,message:"Type validation failed: Value: ".concat(JSON.stringify(r),`.
|
|
91
|
+
Error message: `).concat(fd(u)),cause:u}]))[Dd]=!0,n.value=r,n}return iu(e,Zr),$n(e,null,[{key:"isInstance",value:function(t){return Zr.hasMarker(t,Ad)}},{key:"wrap",value:function(t){var n=t.value,r=t.cause;return e.isInstance(r)&&r.value===n?r:new e({value:n,cause:r})}}])})(),Ed=(function(){function e(t,n){var r;return Be(this,e),(r=$e(this,e,[t])).name="ParseError",r.type=n.type,r.field=n.field,r.value=n.value,r.line=n.line,r}return Me(e,Lr(Error)),Pe(e)})();function Bs(e){}var R0=(function(){function e(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.onError,u=n.onRetry,a=n.onComment;return Be(this,e),$e(this,e,[{start:function(i){t=(function(o){if(typeof o=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");var c,l=o.onEvent,p=l===void 0?Bs:l,m=o.onError,v=m===void 0?Bs:m,y=o.onRetry,F=y===void 0?Bs:y,D=o.onComment,_="",O=!0,w="",x="";function S(I){if(I==="")return w.length>0&&p({id:c,event:x||void 0,data:w.endsWith(`
|
|
92
|
+
`)?w.slice(0,-1):w}),c=void 0,w="",void(x="");if(I.startsWith(":"))D&&D(I.slice(I.startsWith(": ")?2:1));else{var B=I.indexOf(":");if(B===-1)T(I,"",I);else{var d=I.slice(0,B),H=I[B+1]===" "?2:1;T(d,I.slice(B+H),I)}}}function T(I,B,d){switch(I){case"event":x=B;break;case"data":w="".concat(w).concat(B,`
|
|
93
|
+
`);break;case"id":c=B.includes("\0")?void 0:B;break;case"retry":/^\d+$/.test(B)?F(parseInt(B,10)):v(new Ed('Invalid `retry` value: "'.concat(B,'"'),{type:"invalid-retry",value:B,line:d}));break;default:v(new Ed('Unknown field "'.concat(I.length>20?"".concat(I.slice(0,20),"\u2026"):I,'"'),{type:"unknown-field",field:I,value:B,line:d}))}}return{feed:function(I){var B,d=O?I.replace(/^\xEF\xBB\xBF/,""):I,H=(function(L){for(var ne=[],Q="",$=0;$<L.length;){var Y=L.indexOf("\r",$),re=L.indexOf(`
|
|
94
|
+
`,$),me=-1;if(Y!==-1&&re!==-1?me=Math.min(Y,re):Y!==-1?me=Y===L.length-1?-1:Y:re!==-1&&(me=re),me===-1){Q=L.slice($);break}var se=L.slice($,me);ne.push(se),L[($=me+1)-1]==="\r"&&L[$]===`
|
|
95
|
+
`&&$++}return[ne,Q]})("".concat(_).concat(d)),R=dt(H,2),Z=R[0],q=R[1],G=ye(Z);try{for(G.s();!(B=G.n()).done;)S(B.value)}catch(L){G.e(L)}finally{G.f()}_=q,O=!1},reset:function(){_&&(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).consume&&S(_),O=!0,c=void 0,w="",x="",_=""}}})({onEvent:function(o){i.enqueue(o)},onError:function(o){r==="terminate"?i.error(o):typeof r=="function"&&r(o)},onRetry:u,onComment:a})},transform:function(i){t.feed(i)}}])}return Me(e,Lr(TransformStream)),Pe(e)})();function te(e,t,n){var r;function u(o,c){var l,p,m;for(var v in Object.defineProperty(o,"_zod",{value:(l=o._zod)!==null&&l!==void 0?l:{},enumerable:!1}),(p=(m=o._zod).traits)!==null&&p!==void 0||(m.traits=new Set),o._zod.traits.add(e),t(o,c),i.prototype)v in o||Object.defineProperty(o,v,{value:i.prototype[v].bind(o)});o._zod.constr=i,o._zod.def=c}var a=(function(o){function c(){return Be(this,c),$e(this,c,arguments)}return Me(c,o),Pe(c)})((r=n==null?void 0:n.Parent)!==null&&r!==void 0?r:Object);function i(o){var c,l,p=n!=null&&n.Parent?new a:this;u(p,o),(c=(l=p._zod).deferred)!==null&&c!==void 0||(l.deferred=[]);var m,v=ye(p._zod.deferred);try{for(v.s();!(m=v.n()).done;)(0,m.value)()}catch(y){v.e(y)}finally{v.f()}return p}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(i,"init",{value:u}),Object.defineProperty(i,Symbol.hasInstance,{value:function(o){var c;return!!(n!=null&&n.Parent&&o instanceof n.Parent)||(o==null||(c=o._zod)===null||c===void 0||(c=c.traits)===null||c===void 0?void 0:c.has(e))}}),Object.defineProperty(i,"name",{value:e}),i}var Mu=(function(){function e(){return Be(this,e),$e(this,e,["Encountered Promise during synchronous parse. Use .parseAsync() instead."])}return Me(e,Lr(Error)),Pe(e)})(),Fd=(function(){function e(t){var n;return Be(this,e),(n=$e(this,e,["Encountered unidirectional transform during encode: ".concat(t)])).name="ZodEncodeError",n}return Me(e,Lr(Error)),Pe(e)})(),_d={};function qr(e){return _d}function Cd(e){var t=Object.values(e).filter(function(r){return typeof r=="number"}),n=Object.entries(e).filter(function(r){var u=dt(r,2),a=u[0];return u[1],t.indexOf(+a)===-1}).map(function(r){var u=dt(r,2);return u[0],u[1]});return n}function Ps(e,t){return typeof t=="bigint"?t.toString():t}function Ui(e){return{get value(){var t=e();return Object.defineProperty(this,"value",{value:t}),t}}}function $u(e){return e==null}function js(e){var t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}var kd=Symbol("evaluating");function gt(e,t,n){var r=void 0;Object.defineProperty(e,t,{get:function(){if(r!==kd)return r===void 0&&(r=kd,r=n()),r},set:function(u){Object.defineProperty(e,t,{value:u})},configurable:!0})}function vu(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function mu(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var u=0,a=n;u<a.length;u++){var i=a[u],o=Object.getOwnPropertyDescriptors(i);Object.assign(e,o)}return Object.defineProperties({},e)}function wd(e){return JSON.stringify(e)}var Sd="captureStackTrace"in Error?Error.captureStackTrace:function(){};function Ha(e){return Qt(e)==="object"&&e!==null&&!Array.isArray(e)}var z0=Ui(function(){var e;if(typeof navigator!="undefined"&&(e=navigator)!==null&&e!==void 0&&(e=e.userAgent)!==null&&e!==void 0&&e.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(t){return!1}});function Zu(e){if(Ha(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return Ha(n)!==!1&&Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")!==!1}function xd(e){return Zu(e)?C({},e):Array.isArray(e)?be(e):e}var L0=new Set(["string","number","symbol"]);function qu(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Hr(e,t,n){var r=new e._zod.constr(t!=null?t:e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function xe(e){var t=e;if(!t)return{};if(typeof t=="string")return{error:function(){return t}};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?C(C({},t),{},{error:function(){return t.error}}):t}var M0={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Hu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e.aborted===!0)return!0;for(var n=t;n<e.issues.length;n++){var r;if(((r=e.issues[n])===null||r===void 0?void 0:r.continue)!==!0)return!0}return!1}function gu(e,t){return t.map(function(n){var r,u;return(r=(u=n).path)!==null&&r!==void 0||(u.path=[]),n.path.unshift(e),n})}function Wi(e){return typeof e=="string"?e:e==null?void 0:e.message}function Ur(e,t,n){var r,u=C(C({},e),{},{path:(r=e.path)!==null&&r!==void 0?r:[]});if(!e.message){var a,i,o,c,l,p,m,v,y,F=(a=(i=(o=(c=Wi((l=e.inst)===null||l===void 0||(l=l._zod.def)===null||l===void 0||(p=l.error)===null||p===void 0?void 0:p.call(l,e)))!==null&&c!==void 0?c:Wi(t==null||(m=t.error)===null||m===void 0?void 0:m.call(t,e)))!==null&&o!==void 0?o:Wi((v=n.customError)===null||v===void 0?void 0:v.call(n,e)))!==null&&i!==void 0?i:Wi((y=n.localeError)===null||y===void 0?void 0:y.call(n,e)))!==null&&a!==void 0?a:"Invalid input";u.message=F}return delete u.inst,delete u.continue,t!=null&&t.reportInput||delete u.input,u}function Ns(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Rs(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ua(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],u=t[1],a=t[2];return typeof r=="string"?{message:r,code:"custom",input:u,inst:a}:C({},r)}var Td=function(e,t){e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ps,2),Object.defineProperty(e,"toString",{value:function(){return e.message},enumerable:!1})},Od=te("$ZodError",Td),Id=te("$ZodError",Td,{Parent:Error}),zs=function(e){return function(t,n,r,u){var a=r?Object.assign(r,{async:!1}):{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Mu;if(i.issues.length){var o,c=new((o=u==null?void 0:u.Err)!==null&&o!==void 0?o:e)(i.issues.map(function(l){return Ur(l,a,qr())}));throw Sd(c,u==null?void 0:u.callee),c}return i.value}},Ls=function(e){return(function(){var t=Xe(Ae().m(function n(r,u,a,i){var o,c,l,p;return Ae().w(function(m){for(;;)switch(m.n){case 0:if(o=a?Object.assign(a,{async:!0}):{async:!0},!((c=r._zod.run({value:u,issues:[]},o))instanceof Promise)){m.n=2;break}return m.n=1,c;case 1:c=m.v;case 2:if(!c.issues.length){m.n=3;break}throw p=new((l=i==null?void 0:i.Err)!==null&&l!==void 0?l:e)(c.issues.map(function(v){return Ur(v,o,qr())})),Sd(p,i==null?void 0:i.callee),p;case 3:return m.a(2,c.value)}},n)}));return function(n,r,u,a){return t.apply(this,arguments)}})()},Vi=function(e){return function(t,n,r){var u=r?C(C({},r),{},{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},u);if(a instanceof Promise)throw new Mu;return a.issues.length?{success:!1,error:new(e!=null?e:Od)(a.issues.map(function(i){return Ur(i,u,qr())}))}:{success:!0,data:a.value}}},$0=Vi(Id),Ki=function(e){return(function(){var t=Xe(Ae().m(function n(r,u,a){var i,o;return Ae().w(function(c){for(;;)switch(c.n){case 0:if(i=a?Object.assign(a,{async:!0}):{async:!0},!((o=r._zod.run({value:u,issues:[]},i))instanceof Promise)){c.n=2;break}return c.n=1,o;case 1:o=c.v;case 2:return c.a(2,o.issues.length?{success:!1,error:new e(o.issues.map(function(l){return Ur(l,i,qr())}))}:{success:!0,data:o.value})}},n)}));return function(n,r,u){return t.apply(this,arguments)}})()},Z0=Ki(Id),q0=/^[cC][^\s-]{8,}$/,H0=/^[0-9a-z]+$/,U0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,W0=/^[0-9a-vA-V]{20}$/,V0=/^[A-Za-z0-9]{27}$/,K0=/^[a-zA-Z0-9_-]{21}$/,G0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,J0=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Bd=function(e){return e?new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-".concat(e,"[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$")):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/},Q0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Y0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,X0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,eg=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,tg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ng=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Pd=/^[A-Za-z0-9_-]*$/,rg=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ug=/^\+(?:[0-9]){6,14}[0-9]$/,jd="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ag=new RegExp("^".concat(jd,"$"));function Nd(e){var t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?"".concat(t):e.precision===0?"".concat(t,":[0-5]\\d"):"".concat(t,":[0-5]\\d\\.\\d{").concat(e.precision,"}"):"".concat(t,"(?::[0-5]\\d(?:\\.\\d+)?)?")}var ig=/^-?\d+$/,og=/^-?\d+(?:\.\d+)?/,sg=/^(?:true|false)$/i,cg=/^null$/i,lg=/^[^A-Z]*$/,fg=/^[^a-z]*$/,Yt=te("$ZodCheck",function(e,t){var n,r,u;(n=e._zod)!==null&&n!==void 0||(e._zod={}),e._zod.def=t,(r=(u=e._zod).onattach)!==null&&r!==void 0||(u.onattach=[])}),Rd={number:"number",bigint:"bigint",object:"date"},zd=te("$ZodCheckLessThan",function(e,t){Yt.init(e,t);var n=Rd[Qt(t.value)];e._zod.onattach.push(function(r){var u,a=r._zod.bag,i=(u=t.inclusive?a.maximum:a.exclusiveMaximum)!==null&&u!==void 0?u:Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=function(r){(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ld=te("$ZodCheckGreaterThan",function(e,t){Yt.init(e,t);var n=Rd[Qt(t.value)];e._zod.onattach.push(function(r){var u,a=r._zod.bag,i=(u=t.inclusive?a.minimum:a.exclusiveMinimum)!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=function(r){(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),dg=te("$ZodCheckMultipleOf",function(e,t){Yt.init(e,t),e._zod.onattach.push(function(n){var r,u;(r=(u=n._zod.bag).multipleOf)!==null&&r!==void 0||(u.multipleOf=t.value)}),e._zod.check=function(n){if(Qt(n.value)!==Qt(t.value))throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):(function(r,u){var a=(r.toString().split(".")[1]||"").length,i=u.toString(),o=(i.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(i)){var c=i.match(/\d?e-(\d?)/);c!=null&&c[1]&&(o=Number.parseInt(c[1]))}var l=a>o?a:o;return Number.parseInt(r.toFixed(l).replace(".",""))%Number.parseInt(u.toFixed(l).replace(".",""))/Math.pow(10,l)})(n.value,t.value)===0)||n.issues.push({origin:Qt(n.value),code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),pg=te("$ZodCheckNumberFormat",function(e,t){var n;Yt.init(e,t),t.format=t.format||"float64";var r=(n=t.format)===null||n===void 0?void 0:n.includes("int"),u=r?"int":"number",a=dt(M0[t.format],2),i=a[0],o=a[1];e._zod.onattach.push(function(c){var l=c._zod.bag;l.format=t.format,l.minimum=i,l.maximum=o,r&&(l.pattern=ig)}),e._zod.check=function(c){var l=c.value;if(r){if(!Number.isInteger(l))return void c.issues.push({expected:u,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});if(!Number.isSafeInteger(l))return void(l>0?c.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:u,continue:!t.abort}):c.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:u,continue:!t.abort}))}l<i&&c.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),l>o&&c.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inst:e})}}),hg=te("$ZodCheckMaxSize",function(e,t){var n,r;Yt.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!$u(a)&&a.size!==void 0}),e._zod.onattach.push(function(u){var a,i=(a=u._zod.bag.maximum)!==null&&a!==void 0?a:Number.POSITIVE_INFINITY;t.maximum<i&&(u._zod.bag.maximum=t.maximum)}),e._zod.check=function(u){var a=u.value;a.size<=t.maximum||u.issues.push({origin:Ns(a),code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),vg=te("$ZodCheckMinSize",function(e,t){var n,r;Yt.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!$u(a)&&a.size!==void 0}),e._zod.onattach.push(function(u){var a,i=(a=u._zod.bag.minimum)!==null&&a!==void 0?a:Number.NEGATIVE_INFINITY;t.minimum>i&&(u._zod.bag.minimum=t.minimum)}),e._zod.check=function(u){var a=u.value;a.size>=t.minimum||u.issues.push({origin:Ns(a),code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),mg=te("$ZodCheckSizeEquals",function(e,t){var n,r;Yt.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!$u(a)&&a.size!==void 0}),e._zod.onattach.push(function(u){var a=u._zod.bag;a.minimum=t.size,a.maximum=t.size,a.size=t.size}),e._zod.check=function(u){var a=u.value,i=a.size;if(i!==t.size){var o=i>t.size;u.issues.push(C(C({origin:Ns(a)},o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size}),{},{inclusive:!0,exact:!0,input:u.value,inst:e,continue:!t.abort}))}}}),gg=te("$ZodCheckMaxLength",function(e,t){var n,r;Yt.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!$u(a)&&a.length!==void 0}),e._zod.onattach.push(function(u){var a,i=(a=u._zod.bag.maximum)!==null&&a!==void 0?a:Number.POSITIVE_INFINITY;t.maximum<i&&(u._zod.bag.maximum=t.maximum)}),e._zod.check=function(u){var a=u.value;if(!(a.length<=t.maximum)){var i=Rs(a);u.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}}),yg=te("$ZodCheckMinLength",function(e,t){var n,r;Yt.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!$u(a)&&a.length!==void 0}),e._zod.onattach.push(function(u){var a,i=(a=u._zod.bag.minimum)!==null&&a!==void 0?a:Number.NEGATIVE_INFINITY;t.minimum>i&&(u._zod.bag.minimum=t.minimum)}),e._zod.check=function(u){var a=u.value;if(!(a.length>=t.minimum)){var i=Rs(a);u.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}}),Dg=te("$ZodCheckLengthEquals",function(e,t){var n,r;Yt.init(e,t),(n=(r=e._zod.def).when)!==null&&n!==void 0||(r.when=function(u){var a=u.value;return!$u(a)&&a.length!==void 0}),e._zod.onattach.push(function(u){var a=u._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=function(u){var a=u.value,i=a.length;if(i!==t.length){var o=Rs(a),c=i>t.length;u.issues.push(C(C({origin:o},c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length}),{},{inclusive:!0,exact:!0,input:u.value,inst:e,continue:!t.abort}))}}}),Gi=te("$ZodCheckStringFormat",function(e,t){var n,r,u,a;Yt.init(e,t),e._zod.onattach.push(function(i){var o,c=i._zod.bag;c.format=t.format,t.pattern&&((o=c.patterns)!==null&&o!==void 0||(c.patterns=new Set),c.patterns.add(t.pattern))}),t.pattern?(n=(u=e._zod).check)!==null&&n!==void 0||(u.check=function(i){t.pattern.lastIndex=0,t.pattern.test(i.value)||i.issues.push(C(C({origin:"string",code:"invalid_format",format:t.format,input:i.value},t.pattern?{pattern:t.pattern.toString()}:{}),{},{inst:e,continue:!t.abort}))}):(r=(a=e._zod).check)!==null&&r!==void 0||(a.check=function(){})}),bg=te("$ZodCheckRegex",function(e,t){Gi.init(e,t),e._zod.check=function(n){t.pattern.lastIndex=0,t.pattern.test(n.value)||n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ag=te("$ZodCheckLowerCase",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=lg),Gi.init(e,t)}),Eg=te("$ZodCheckUpperCase",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=fg),Gi.init(e,t)}),Fg=te("$ZodCheckIncludes",function(e,t){Yt.init(e,t);var n=qu(t.includes),r=new RegExp(typeof t.position=="number"?"^.{".concat(t.position,"}").concat(n):n);t.pattern=r,e._zod.onattach.push(function(u){var a,i=u._zod.bag;(a=i.patterns)!==null&&a!==void 0||(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=function(u){u.value.includes(t.includes,t.position)||u.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:u.value,inst:e,continue:!t.abort})}}),_g=te("$ZodCheckStartsWith",function(e,t){var n;Yt.init(e,t);var r=new RegExp("^".concat(qu(t.prefix),".*"));(n=t.pattern)!==null&&n!==void 0||(t.pattern=r),e._zod.onattach.push(function(u){var a,i=u._zod.bag;(a=i.patterns)!==null&&a!==void 0||(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=function(u){u.value.startsWith(t.prefix)||u.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:u.value,inst:e,continue:!t.abort})}}),Cg=te("$ZodCheckEndsWith",function(e,t){var n;Yt.init(e,t);var r=new RegExp(".*".concat(qu(t.suffix),"$"));(n=t.pattern)!==null&&n!==void 0||(t.pattern=r),e._zod.onattach.push(function(u){var a,i=u._zod.bag;(a=i.patterns)!==null&&a!==void 0||(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=function(u){u.value.endsWith(t.suffix)||u.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:u.value,inst:e,continue:!t.abort})}});function Md(e,t,n){var r;e.issues.length&&(r=t.issues).push.apply(r,be(gu(n,e.issues)))}var kg=te("$ZodCheckProperty",function(e,t){Yt.init(e,t),e._zod.check=function(n){var r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(function(u){return Md(u,n,t.property)});Md(r,n,t.property)}}),wg=te("$ZodCheckMimeType",function(e,t){Yt.init(e,t);var n=new Set(t.mime);e._zod.onattach.push(function(r){r._zod.bag.mime=t.mime}),e._zod.check=function(r){n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Sg=te("$ZodCheckOverwrite",function(e,t){Yt.init(e,t),e._zod.check=function(n){n.value=t.tx(n.value)}}),xg=Pe(function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Be(this,e),this.content=[],this.indent=0,this&&(this.args=t)},[{key:"indented",value:function(e){this.indent+=1,e(this),this.indent-=1}},{key:"write",value:function(e){var t=this;if(typeof e=="function")return e(this,{execution:"sync"}),void e(this,{execution:"async"});var n,r=e.split(`
|
|
96
|
+
`).filter(function(c){return c}),u=Math.min.apply(Math,be(r.map(function(c){return c.length-c.trimStart().length}))),a=r.map(function(c){return c.slice(u)}).map(function(c){return" ".repeat(2*t.indent)+c}),i=ye(a);try{for(i.s();!(n=i.n()).done;){var o=n.value;this.content.push(o)}}catch(c){i.e(c)}finally{i.f()}}},{key:"compile",value:function(){var e,t=Function,n=this==null?void 0:this.args,r=be(((e=this==null?void 0:this.content)!==null&&e!==void 0?e:[""]).map(function(u){return" ".concat(u)}));return Wl(t,be(n).concat([r.join(`
|
|
97
|
+
`)]))}}]),Tg={major:4,minor:1,patch:12},Ot=te("$ZodType",function(e,t){var n,r;e!=null||(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Tg;var u=be((n=e._zod.def.checks)!==null&&n!==void 0?n:[]);e._zod.traits.has("$ZodCheck")&&u.unshift(e);var a,i=ye(u);try{for(i.s();!(a=i.n()).done;){var o,c=ye(a.value._zod.onattach);try{for(c.s();!(o=c.n()).done;)(0,o.value)(e)}catch(y){c.e(y)}finally{c.f()}}}catch(y){i.e(y)}finally{i.f()}if(u.length===0){var l,p;(l=(r=e._zod).deferred)!==null&&l!==void 0||(r.deferred=[]),(p=e._zod.deferred)===null||p===void 0||p.push(function(){e._zod.run=e._zod.parse})}else{var m=function(y,F,D){var _,O,w=Hu(y),x=ye(F);try{var S=function(){var T=O.value;if(T._zod.def.when){if(!T._zod.def.when(y))return 0}else if(w)return 0;var I=y.issues.length,B=T._zod.check(y);if(B instanceof Promise&&(D==null?void 0:D.async)===!1)throw new Mu;if(_||B instanceof Promise)_=(_!=null?_:Promise.resolve()).then(Xe(Ae().m(function d(){return Ae().w(function(H){for(;;)switch(H.n){case 0:return H.n=1,B;case 1:if(y.issues.length!==I){H.n=2;break}return H.a(2);case 2:w||(w=Hu(y,I));case 3:return H.a(2)}},d)})));else{if(y.issues.length===I)return 0;w||(w=Hu(y,I))}};for(x.s();!(O=x.n()).done;)S()}catch(T){x.e(T)}finally{x.f()}return _?_.then(function(){return y}):y},v=function(y,F,D){if(Hu(y))return y.aborted=!0,y;var _=m(F,u,D);if(_ instanceof Promise){if(D.async===!1)throw new Mu;return _.then(function(O){return e._zod.parse(O,D)})}return e._zod.parse(_,D)};e._zod.run=function(y,F){if(F.skipChecks)return e._zod.parse(y,F);if(F.direction==="backward"){var D=e._zod.parse({value:y.value,issues:[]},C(C({},F),{},{skipChecks:!0}));return D instanceof Promise?D.then(function(O){return v(O,y,F)}):v(D,y,F)}var _=e._zod.parse(y,F);if(_ instanceof Promise){if(F.async===!1)throw new Mu;return _.then(function(O){return m(O,u,F)})}return m(_,u,F)}}e["~standard"]={validate:function(y){try{var F,D=$0(e,y);return D.success?{value:D.data}:{issues:(F=D.error)===null||F===void 0?void 0:F.issues}}catch(_){return Z0(e,y).then(function(O){var w;return O.success?{value:O.data}:{issues:(w=O.error)===null||w===void 0?void 0:w.issues}})}},vendor:"zod",version:1}}),Ms=te("$ZodString",function(e,t){var n,r,u;Ot.init(e,t),e._zod.pattern=(n=be((r=e==null||(u=e._zod.bag)===null||u===void 0?void 0:u.patterns)!==null&&r!==void 0?r:[]).pop())!==null&&n!==void 0?n:(function(a){var i,o,c=a?"[\\s\\S]{".concat((i=a==null?void 0:a.minimum)!==null&&i!==void 0?i:0,",").concat((o=a==null?void 0:a.maximum)!==null&&o!==void 0?o:"","}"):"[\\s\\S]*";return new RegExp("^".concat(c,"$"))})(e._zod.bag),e._zod.parse=function(a,i){if(t.coerce)try{a.value=String(a.value)}catch(o){}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),Pt=te("$ZodStringFormat",function(e,t){Gi.init(e,t),Ms.init(e,t)}),Og=te("$ZodGUID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=J0),Pt.init(e,t)}),Ig=te("$ZodUUID",function(e,t){var n;if(t.version){var r,u={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(u===void 0)throw new Error('Invalid UUID version: "'.concat(t.version,'"'));(r=t.pattern)!==null&&r!==void 0||(t.pattern=Bd(u))}else(n=t.pattern)!==null&&n!==void 0||(t.pattern=Bd());Pt.init(e,t)}),Bg=te("$ZodEmail",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Q0),Pt.init(e,t)}),Pg=te("$ZodURL",function(e,t){Pt.init(e,t),e._zod.check=function(n){try{var r=n.value.trim(),u=new URL(r);return t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(u.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:rg.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(u.protocol.endsWith(":")?u.protocol.slice(0,-1):u.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),void(t.normalize?n.value=u.href:n.value=r)}catch(a){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),jg=te("$ZodEmoji",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Pt.init(e,t)}),Ng=te("$ZodNanoID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=K0),Pt.init(e,t)}),Rg=te("$ZodCUID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=q0),Pt.init(e,t)}),zg=te("$ZodCUID2",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=H0),Pt.init(e,t)}),Lg=te("$ZodULID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=U0),Pt.init(e,t)}),Mg=te("$ZodXID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=W0),Pt.init(e,t)}),$g=te("$ZodKSUID",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=V0),Pt.init(e,t)}),Zg=te("$ZodISODateTime",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=(function(r){var u=Nd({precision:r.precision}),a=["Z"];r.local&&a.push(""),r.offset&&a.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");var i="".concat(u,"(?:").concat(a.join("|"),")");return new RegExp("^".concat(jd,"T(?:").concat(i,")$"))})(t)),Pt.init(e,t)}),qg=te("$ZodISODate",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=ag),Pt.init(e,t)}),Hg=te("$ZodISOTime",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=new RegExp("^".concat(Nd(t),"$"))),Pt.init(e,t)}),Ug=te("$ZodISODuration",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=G0),Pt.init(e,t)}),Wg=te("$ZodIPv4",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Y0),Pt.init(e,t),e._zod.onattach.push(function(r){r._zod.bag.format="ipv4"})}),Vg=te("$ZodIPv6",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=X0),Pt.init(e,t),e._zod.onattach.push(function(r){r._zod.bag.format="ipv6"}),e._zod.check=function(r){try{new URL("http://[".concat(r.value,"]"))}catch(u){r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Kg=te("$ZodCIDRv4",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=eg),Pt.init(e,t)}),Gg=te("$ZodCIDRv6",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=tg),Pt.init(e,t),e._zod.check=function(r){var u=r.value.split("/");try{if(u.length!==2)throw new Error;var a=dt(u,2),i=a[0],o=a[1];if(!o)throw new Error;var c=Number(o);if("".concat(c)!==o)throw new Error;if(c<0||c>128)throw new Error;new URL("http://[".concat(i,"]"))}catch(l){r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function $d(e){if(e==="")return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch(t){return!1}}var Jg=te("$ZodBase64",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=ng),Pt.init(e,t),e._zod.onattach.push(function(r){r._zod.bag.contentEncoding="base64"}),e._zod.check=function(r){$d(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),Qg=te("$ZodBase64URL",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=Pd),Pt.init(e,t),e._zod.onattach.push(function(r){r._zod.bag.contentEncoding="base64url"}),e._zod.check=function(r){(function(u){if(!Pd.test(u))return!1;var a=u.replace(/[-_]/g,function(i){return i==="-"?"+":"/"});return $d(a.padEnd(4*Math.ceil(a.length/4),"="))})(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Yg=te("$ZodE164",function(e,t){var n;(n=t.pattern)!==null&&n!==void 0||(t.pattern=ug),Pt.init(e,t)}),Xg=te("$ZodJWT",function(e,t){Pt.init(e,t),e._zod.check=function(n){(function(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var a=r.split(".");if(a.length!==3)return!1;var i=dt(a,1)[0];if(!i)return!1;var o=JSON.parse(atob(i));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||u&&(!("alg"in o)||o.alg!==u))}catch(c){return!1}})(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Zd=te("$ZodNumber",function(e,t){var n;Ot.init(e,t),e._zod.pattern=(n=e._zod.bag.pattern)!==null&&n!==void 0?n:og,e._zod.parse=function(r,u){if(t.coerce)try{r.value=Number(r.value)}catch(o){}var a=r.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return r;var i=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return r.issues.push(C({expected:"number",code:"invalid_type",input:a,inst:e},i?{received:i}:{})),r}}),ey=te("$ZodNumber",function(e,t){pg.init(e,t),Zd.init(e,t)}),ty=te("$ZodBoolean",function(e,t){Ot.init(e,t),e._zod.pattern=sg,e._zod.parse=function(n,r){if(t.coerce)try{n.value=!!n.value}catch(a){}var u=n.value;return typeof u=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:u,inst:e}),n}}),ny=te("$ZodNull",function(e,t){Ot.init(e,t),e._zod.pattern=cg,e._zod.values=new Set([null]),e._zod.parse=function(n,r){var u=n.value;return u===null||n.issues.push({expected:"null",code:"invalid_type",input:u,inst:e}),n}}),ry=te("$ZodUnknown",function(e,t){Ot.init(e,t),e._zod.parse=function(n){return n}}),uy=te("$ZodNever",function(e,t){Ot.init(e,t),e._zod.parse=function(n,r){return n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n}});function qd(e,t,n){var r;e.issues.length&&(r=t.issues).push.apply(r,be(gu(n,e.issues))),t.value[n]=e.value}var ay=te("$ZodArray",function(e,t){Ot.init(e,t),e._zod.parse=function(n,r){var u=n.value;if(!Array.isArray(u))return n.issues.push({expected:"array",code:"invalid_type",input:u,inst:e}),n;n.value=Array(u.length);for(var a=[],i=function(c){var l=u[c],p=t.element._zod.run({value:l,issues:[]},r);p instanceof Promise?a.push(p.then(function(m){return qd(m,n,c)})):qd(p,n,c)},o=0;o<u.length;o++)i(o);return a.length?Promise.all(a).then(function(){return n}):n}});function Ji(e,t,n,r){var u;e.issues.length&&(u=t.issues).push.apply(u,be(gu(n,e.issues))),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Hd(e){for(var t=Object.keys(e.shape),n=0,r=t;n<r.length;n++){var u,a=r[n];if((u=e.shape)===null||u===void 0||(u=u[a])===null||u===void 0||(u=u._zod)===null||u===void 0||(u=u.traits)===null||u===void 0||!u.has("$ZodType"))throw new Error('Invalid element at key "'.concat(a,'": expected a Zod schema'))}var i,o=(i=e.shape,Object.keys(i).filter(function(c){return i[c]._zod.optin==="optional"&&i[c]._zod.optout==="optional"}));return C(C({},e),{},{keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)})}function Ud(e,t,n,r,u,a){for(var i=[],o=u.keySet,c=u.catchall._zod,l=c.def.type,p=function(){var y=v[m];if(o.has(y))return 0;if(l==="never")return i.push(y),0;var F=c.run({value:t[y],issues:[]},r);F instanceof Promise?e.push(F.then(function(D){return Ji(D,n,y,t)})):Ji(F,n,y,t)},m=0,v=Object.keys(t);m<v.length;m++)p();return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:a}),e.length?Promise.all(e).then(function(){return n}):n}var iy=te("$ZodObject",function(e,t){Ot.init(e,t);var n=Object.getOwnPropertyDescriptor(t,"shape");if(n==null||!n.get){var r=t.shape;Object.defineProperty(t,"shape",{get:function(){var c=C({},r);return Object.defineProperty(t,"shape",{value:c}),c}})}var u=Ui(function(){return Hd(t)});gt(e._zod,"propValues",function(){var c=t.shape,l={};for(var p in c){var m=c[p]._zod;if(m.values){var v;(v=l[p])!==null&&v!==void 0||(l[p]=new Set);var y,F=ye(m.values);try{for(F.s();!(y=F.n()).done;){var D=y.value;l[p].add(D)}}catch(_){F.e(_)}finally{F.f()}}}return l});var a,i=Ha,o=t.catchall;e._zod.parse=function(c,l){a!=null||(a=u.value);var p=c.value;if(!i(p))return c.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),c;c.value={};var m,v=[],y=a.shape,F=ye(a.keys);try{var D=function(){var _=m.value,O=y[_]._zod.run({value:p[_],issues:[]},l);O instanceof Promise?v.push(O.then(function(w){return Ji(w,c,_,p)})):Ji(O,c,_,p)};for(F.s();!(m=F.n()).done;)D()}catch(_){F.e(_)}finally{F.f()}return o?Ud(v,p,c,l,u.value,e):v.length?Promise.all(v).then(function(){return c}):c}}),oy=te("$ZodObjectJIT",function(e,t){iy.init(e,t);var n,r,u=e._zod.parse,a=Ui(function(){return Hd(t)}),i=Ha,o=!_d.jitless,c=o&&z0.value,l=t.catchall;e._zod.parse=function(p,m){r!=null||(r=a.value);var v=p.value;return i(v)?o&&c&&(m==null?void 0:m.async)===!1&&m.jitless!==!0?(n||(n=(function(y){var F=new xg(["shape","payload","ctx"]),D=a.value,_=function(Z){var q=wd(Z);return"shape[".concat(q,"]._zod.run({ value: input[").concat(q,"], issues: [] }, ctx)")};F.write("const input = payload.value;");var O,w=Object.create(null),x=0,S=ye(D.keys);try{for(S.s();!(O=S.n()).done;)w[O.value]="key_".concat(x++)}catch(Z){S.e(Z)}finally{S.f()}F.write("const newResult = {};");var T,I=ye(D.keys);try{for(I.s();!(T=I.n()).done;){var B=T.value,d=w[B],H=wd(B);F.write("const ".concat(d," = ").concat(_(B),";")),F.write(`
|
|
98
98
|
if (`.concat(d,`.issues.length) {
|
|
99
99
|
payload.issues = payload.issues.concat(`).concat(d,`.issues.map(iss => ({
|
|
100
100
|
...iss,
|
|
101
|
-
path: iss.path ? [`).concat(
|
|
101
|
+
path: iss.path ? [`).concat(H,", ...iss.path] : [").concat(H,`]
|
|
102
102
|
})));
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
if (`).concat(d,`.value === undefined) {
|
|
107
|
-
if (`).concat(
|
|
108
|
-
newResult[`).concat(
|
|
107
|
+
if (`).concat(H,` in input) {
|
|
108
|
+
newResult[`).concat(H,`] = undefined;
|
|
109
109
|
}
|
|
110
110
|
} else {
|
|
111
|
-
newResult[`).concat(
|
|
111
|
+
newResult[`).concat(H,"] = ").concat(d,`.value;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
`))}}catch(Z){I.e(Z)}finally{I.f()}F.write("payload.value = newResult;"),F.write("return payload;");var N=F.compile();return function(Z,z){return N(y,Z,z)}})(t.shape)),h=n(h,p),l?Hd([],g,h,p,r,e):h):u(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),h)}});function Ud(e,t,n,r){var u,a=me(e);try{for(a.s();!(u=a.n()).done;){var i=u.value;if(i.issues.length===0)return t.value=i.value,t}}catch(c){a.e(c)}finally{a.f()}var o=e.filter(function(c){return!Mu(c)});return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(function(c){return c.issues.map(function(l){return Nr(l,r,Pr())})})}),t)}var Vd=X("$ZodUnion",function(e,t){Ft.init(e,t),mt(e._zod,"optin",function(){return t.options.some(function(u){return u._zod.optin==="optional"})?"optional":void 0}),mt(e._zod,"optout",function(){return t.options.some(function(u){return u._zod.optout==="optional"})?"optional":void 0}),mt(e._zod,"values",function(){if(t.options.every(function(u){return u._zod.values}))return new Set(t.options.flatMap(function(u){return Array.from(u._zod.values)}))}),mt(e._zod,"pattern",function(){if(t.options.every(function(a){return a._zod.pattern})){var u=t.options.map(function(a){return a._zod.pattern});return new RegExp("^(".concat(u.map(function(a){return Cs(a.source)}).join("|"),")$"))}});var n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=function(u,a){if(n)return r(u,a);var i,o=!1,c=[],l=me(t.options);try{for(l.s();!(i=l.n()).done;){var h=i.value._zod.run({value:u.value,issues:[]},a);if(h instanceof Promise)c.push(h),o=!0;else{if(h.issues.length===0)return h;c.push(h)}}}catch(p){l.e(p)}finally{l.f()}return o?Promise.all(c).then(function(p){return Ud(p,u,e,a)}):Ud(c,u,e,a)}}),fy=X("$ZodDiscriminatedUnion",function(e,t){Vd.init(e,t);var n=e._zod.parse;mt(e._zod,"propValues",function(){var u,a={},i=me(t.options);try{for(i.s();!(u=i.n()).done;){var o=u.value,c=o._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error('Invalid discriminated union option at index "'.concat(t.options.indexOf(o),'"'));for(var l=0,h=Object.entries(c);l<h.length;l++){var p=ct(h[l],2),g=p[0],y=p[1];a[g]||(a[g]=new Set);var F,D=me(y);try{for(D.s();!(F=D.n()).done;){var _=F.value;a[g].add(_)}}catch(T){D.e(T)}finally{D.f()}}}}catch(T){i.e(T)}finally{i.f()}return a});var r=Mi(function(){var u,a=t.options,i=new Map,o=me(a);try{for(o.s();!(u=o.n()).done;){var c,l=u.value,h=(c=l._zod.propValues)===null||c===void 0?void 0:c[t.discriminator];if(!h||h.size===0)throw new Error('Invalid discriminated union option at index "'.concat(t.options.indexOf(l),'"'));var p,g=me(h);try{for(g.s();!(p=g.n()).done;){var y=p.value;if(i.has(y))throw new Error('Duplicate discriminator value "'.concat(String(y),'"'));i.set(y,l)}}catch(F){g.e(F)}finally{g.f()}}}catch(F){o.e(F)}finally{o.f()}return i});e._zod.parse=function(u,a){var i=u.value;if(!Za(i))return u.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),u;var o=r.value.get(i==null?void 0:i[t.discriminator]);return o?o._zod.run(u,a):t.unionFallback?n(u,a):(u.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),u)}}),dy=X("$ZodIntersection",function(e,t){Ft.init(e,t),e._zod.parse=function(n,r){var u=n.value,a=t.left._zod.run({value:u,issues:[]},r),i=t.right._zod.run({value:u,issues:[]},r);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(function(o){var c=ct(o,2),l=c[0],h=c[1];return Wd(n,l,h)}):Wd(n,a,i)}});function Os(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(zu(e)&&zu(t)){var n,r=Object.keys(t),u=Object.keys(e).filter(function(g){return r.indexOf(g)!==-1}),a=C(C({},e),t),i=me(u);try{for(i.s();!(n=i.n()).done;){var o=n.value,c=Os(e[o],t[o]);if(!c.valid)return{valid:!1,mergeErrorPath:[o].concat(De(c.mergeErrorPath))};a[o]=c.data}}catch(g){i.e(g)}finally{i.f()}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};for(var l=[],h=0;h<e.length;h++){var p=Os(e[h],t[h]);if(!p.valid)return{valid:!1,mergeErrorPath:[h].concat(De(p.mergeErrorPath))};l.push(p.data)}return{valid:!0,data:l}}return{valid:!1,mergeErrorPath:[]}}function Wd(e,t,n){var r,u;if(t.issues.length&&(r=e.issues).push.apply(r,De(t.issues)),n.issues.length&&(u=e.issues).push.apply(u,De(n.issues)),Mu(e))return e;var a=Os(t.value,n.value);if(!a.valid)throw new Error("Unmergable intersection. Error path: "+"".concat(JSON.stringify(a.mergeErrorPath)));return e.value=a.data,e}var py=X("$ZodRecord",function(e,t){Ft.init(e,t),e._zod.parse=function(n,r){var u=n.value;if(!zu(u))return n.issues.push({expected:"record",code:"invalid_type",input:u,inst:e}),n;var a=[];if(t.keyType._zod.values){var i=t.keyType._zod.values;n.value={};var o,c,l=me(i);try{var h=function(){var D=o.value;if(typeof D=="string"||typeof D=="number"||qt(D)==="symbol"){var _,T=t.valueType._zod.run({value:u[D],issues:[]},r);T instanceof Promise?a.push(T.then(function(w){var S;w.issues.length&&(S=n.issues).push.apply(S,De(hu(D,w.issues))),n.value[D]=w.value})):(T.issues.length&&(_=n.issues).push.apply(_,De(hu(D,T.issues))),n.value[D]=T.value)}};for(l.s();!(o=l.n()).done;)h()}catch(D){l.e(D)}finally{l.f()}for(var p in u)i.has(p)||(c=c!=null?c:[]).push(p);c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:u,inst:e,keys:c})}else{n.value={};var g,y=me(Reflect.ownKeys(u));try{var F=function(){var D=g.value;if(D==="__proto__")return 0;var _=t.keyType._zod.run({value:D,issues:[]},r);if(_ instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(_.issues.length)return n.issues.push({code:"invalid_key",origin:"record",issues:_.issues.map(function(S){return Nr(S,r,Pr())}),input:D,path:[D],inst:e}),n.value[_.value]=_.value,0;var T,w=t.valueType._zod.run({value:u[D],issues:[]},r);w instanceof Promise?a.push(w.then(function(S){var x;S.issues.length&&(x=n.issues).push.apply(x,De(hu(D,S.issues))),n.value[_.value]=S.value})):(w.issues.length&&(T=n.issues).push.apply(T,De(hu(D,w.issues))),n.value[_.value]=w.value)};for(y.s();!(g=y.n()).done;)F()}catch(D){y.e(D)}finally{y.f()}}return a.length?Promise.all(a).then(function(){return n}):n}}),hy=X("$ZodEnum",function(e,t){Ft.init(e,t);var n=_d(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp("^(".concat(n.filter(function(u){return Zm.has(qt(u))}).map(function(u){return typeof u=="string"?Lu(u):u.toString()}).join("|"),")$")),e._zod.parse=function(u,a){var i=u.value;return r.has(i)||u.issues.push({code:"invalid_value",values:n,input:i,inst:e}),u}}),vy=X("$ZodLiteral",function(e,t){if(Ft.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp("^(".concat(t.values.map(function(n){return typeof n=="string"?Lu(n):n?Lu(n.toString()):String(n)}).join("|"),")$")),e._zod.parse=function(n,r){var u=n.value;return e._zod.values.has(u)||n.issues.push({code:"invalid_value",values:t.values,input:u,inst:e}),n}}),my=X("$ZodTransform",function(e,t){Ft.init(e,t),e._zod.parse=function(n,r){if(r.direction==="backward")throw new Ed(e.constructor.name);var u=t.transform(n.value,n);if(r.async)return(u instanceof Promise?u:Promise.resolve(u)).then(function(a){return n.value=a,n});if(u instanceof Promise)throw new Nu;return n.value=u,n}});function Gd(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var gy=X("$ZodOptional",function(e,t){Ft.init(e,t),e._zod.optin="optional",e._zod.optout="optional",mt(e._zod,"values",function(){return t.innerType._zod.values?new Set([].concat(De(t.innerType._zod.values),[void 0])):void 0}),mt(e._zod,"pattern",function(){var n=t.innerType._zod.pattern;return n?new RegExp("^(".concat(Cs(n.source),")?$")):void 0}),e._zod.parse=function(n,r){if(t.innerType._zod.optin==="optional"){var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(function(a){return Gd(a,n.value)}):Gd(u,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),yy=X("$ZodNullable",function(e,t){Ft.init(e,t),mt(e._zod,"optin",function(){return t.innerType._zod.optin}),mt(e._zod,"optout",function(){return t.innerType._zod.optout}),mt(e._zod,"pattern",function(){var n=t.innerType._zod.pattern;return n?new RegExp("^(".concat(Cs(n.source),"|null)$")):void 0}),mt(e._zod,"values",function(){return t.innerType._zod.values?new Set([].concat(De(t.innerType._zod.values),[null])):void 0}),e._zod.parse=function(n,r){return n.value===null?n:t.innerType._zod.run(n,r)}}),Dy=X("$ZodDefault",function(e,t){Ft.init(e,t),e._zod.optin="optional",mt(e._zod,"values",function(){return t.innerType._zod.values}),e._zod.parse=function(n,r){if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(function(a){return Jd(a,t)}):Jd(u,t)}});function Jd(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var by=X("$ZodPrefault",function(e,t){Ft.init(e,t),e._zod.optin="optional",mt(e._zod,"values",function(){return t.innerType._zod.values}),e._zod.parse=function(n,r){return r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r)}}),Ay=X("$ZodNonOptional",function(e,t){Ft.init(e,t),mt(e._zod,"values",function(){var n=t.innerType._zod.values;return n?new Set(De(n).filter(function(r){return r!==void 0})):void 0}),e._zod.parse=function(n,r){var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(function(a){return Kd(a,e)}):Kd(u,e)}});function Kd(e,t){return e.issues.length||e.value!==void 0||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Ey=X("$ZodCatch",function(e,t){Ft.init(e,t),mt(e._zod,"optin",function(){return t.innerType._zod.optin}),mt(e._zod,"optout",function(){return t.innerType._zod.optout}),mt(e._zod,"values",function(){return t.innerType._zod.values}),e._zod.parse=function(n,r){if(r.direction==="backward")return t.innerType._zod.run(n,r);var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(function(a){return n.value=a.value,a.issues.length&&(n.value=t.catchValue(C(C({},n),{},{error:{issues:a.issues.map(function(i){return Nr(i,r,Pr())})},input:n.value})),n.issues=[]),n}):(n.value=u.value,u.issues.length&&(n.value=t.catchValue(C(C({},n),{},{error:{issues:u.issues.map(function(a){return Nr(a,r,Pr())})},input:n.value})),n.issues=[]),n)}}),Fy=X("$ZodPipe",function(e,t){Ft.init(e,t),mt(e._zod,"values",function(){return t.in._zod.values}),mt(e._zod,"optin",function(){return t.in._zod.optin}),mt(e._zod,"optout",function(){return t.out._zod.optout}),mt(e._zod,"propValues",function(){return t.in._zod.propValues}),e._zod.parse=function(n,r){if(r.direction==="backward"){var u=t.out._zod.run(n,r);return u instanceof Promise?u.then(function(i){return Vi(i,t.in,r)}):Vi(u,t.in,r)}var a=t.in._zod.run(n,r);return a instanceof Promise?a.then(function(i){return Vi(i,t.out,r)}):Vi(a,t.out,r)}});function Vi(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var _y=X("$ZodReadonly",function(e,t){Ft.init(e,t),mt(e._zod,"propValues",function(){return t.innerType._zod.propValues}),mt(e._zod,"values",function(){return t.innerType._zod.values}),mt(e._zod,"optin",function(){return t.innerType._zod.optin}),mt(e._zod,"optout",function(){return t.innerType._zod.optout}),e._zod.parse=function(n,r){if(r.direction==="backward")return t.innerType._zod.run(n,r);var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(Qd):Qd(u)}});function Qd(e){return e.value=Object.freeze(e.value),e}var Cy=X("$ZodLazy",function(e,t){Ft.init(e,t),mt(e._zod,"innerType",function(){return t.getter()}),mt(e._zod,"pattern",function(){return e._zod.innerType._zod.pattern}),mt(e._zod,"propValues",function(){return e._zod.innerType._zod.propValues}),mt(e._zod,"optin",function(){var n;return(n=e._zod.innerType._zod.optin)!==null&&n!==void 0?n:void 0}),mt(e._zod,"optout",function(){var n;return(n=e._zod.innerType._zod.optout)!==null&&n!==void 0?n:void 0}),e._zod.parse=function(n,r){return e._zod.innerType._zod.run(n,r)}}),ky=X("$ZodCustom",function(e,t){Ht.init(e,t),Ft.init(e,t),e._zod.parse=function(n,r){return n},e._zod.check=function(n){var r=n.value,u=t.fn(r);if(u instanceof Promise)return u.then(function(a){return Yd(a,n,r,e)});Yd(u,n,r,e)}});function Yd(e,t,n,r){if(!e){var u,a={code:"custom",input:n,inst:r,path:De((u=r._zod.def.path)!==null&&u!==void 0?u:[]),continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(qa(a))}}var Xd=Be(function e(){Ie(this,e),this._map=new WeakMap,this._idmap=new Map},[{key:"add",value:function(e){var t=arguments.length<=1?void 0:arguments[1];if(this._map.set(e,t),t&&qt(t)==="object"&&"id"in t){if(this._idmap.has(t.id))throw new Error("ID ".concat(t.id," already exists in the registry"));this._idmap.set(t.id,e)}return this}},{key:"clear",value:function(){return this._map=new WeakMap,this._idmap=new Map,this}},{key:"remove",value:function(e){var t=this._map.get(e);return t&&qt(t)==="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}},{key:"get",value:function(e){var t=e._zod.parent;if(t){var n,r=C({},(n=this.get(t))!==null&&n!==void 0?n:{});delete r.id;var u=C(C({},r),this._map.get(e));return Object.keys(u).length?u:void 0}return this._map.get(e)}},{key:"has",value:function(e){return this._map.has(e)}}]),Ha=new Xd;function ep(e,t){return new e(C({type:"string",format:"guid",check:"string_format",abort:!1},xe(t)))}function Wi(e,t){return new Rd(C(C({check:"less_than"},xe(t)),{},{value:e,inclusive:!1}))}function Ua(e,t){return new Rd(C(C({check:"less_than"},xe(t)),{},{value:e,inclusive:!0}))}function Gi(e,t){return new zd(C(C({check:"greater_than"},xe(t)),{},{value:e,inclusive:!1}))}function Va(e,t){return new zd(C(C({check:"greater_than"},xe(t)),{},{value:e,inclusive:!0}))}function Is(e,t){return new vg(C(C({check:"multiple_of"},xe(t)),{},{value:e}))}function Bs(e,t){return new bg(C(C({check:"max_length"},xe(t)),{},{maximum:e}))}function Wa(e,t){return new Ag(C(C({check:"min_length"},xe(t)),{},{minimum:e}))}function Ps(e,t){return new Eg(C(C({check:"length_equals"},xe(t)),{},{length:e}))}function tp(e,t){return new Fg(C(C({check:"string_format",format:"regex"},xe(t)),{},{pattern:e}))}function np(e){return new _g(C({check:"string_format",format:"lowercase"},xe(e)))}function rp(e){return new Cg(C({check:"string_format",format:"uppercase"},xe(e)))}function up(e,t){return new kg(C(C({check:"string_format",format:"includes"},xe(t)),{},{includes:e}))}function ap(e,t){return new wg(C(C({check:"string_format",format:"starts_with"},xe(t)),{},{prefix:e}))}function ip(e,t){return new xg(C(C({check:"string_format",format:"ends_with"},xe(t)),{},{suffix:e}))}function $u(e){return new Og({check:"overwrite",tx:e})}function op(e){return $u(function(t){return t.normalize(e)})}function sp(){return $u(function(e){return e.trim()})}function cp(){return $u(function(e){return e.toLowerCase()})}function lp(){return $u(function(e){return e.toUpperCase()})}var fp=Be(function e(t){var n,r,u,a,i;Ie(this,e),this.counter=0,this.metadataRegistry=(n=t==null?void 0:t.metadata)!==null&&n!==void 0?n:Ha,this.target=(r=t==null?void 0:t.target)!==null&&r!==void 0?r:"draft-2020-12",this.unrepresentable=(u=t==null?void 0:t.unrepresentable)!==null&&u!==void 0?u:"throw",this.override=(a=t==null?void 0:t.override)!==null&&a!==void 0?a:function(){},this.io=(i=t==null?void 0:t.io)!==null&&i!==void 0?i:"output",this.seen=new Map},[{key:"process",value:function(e){var t,n,r,u,a=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:[],schemaPath:[]},o=e._zod.def,c=this.seen.get(e);if(c)return c.count++,i.schemaPath.includes(e)&&(c.cycle=i.path),c.schema;var l={schema:{},count:1,cycle:void 0,path:i.path};this.seen.set(e,l);var h=(t=(n=e._zod).toJSONSchema)===null||t===void 0?void 0:t.call(n);if(h)l.schema=h;else{var p=C(C({},i),{},{schemaPath:[].concat(De(i.schemaPath),[e]),path:i.path}),g=e._zod.parent;if(g)l.ref=g,this.process(g,p),this.seen.get(g).isParent=!0;else{var y=l.schema;switch(o.type){case"string":var F=y;F.type="string";var D,_=e._zod.bag,T=_.minimum,w=_.maximum,S=_.format,x=_.patterns,O=_.contentEncoding;if(typeof T=="number"&&(F.minLength=T),typeof w=="number"&&(F.maxLength=w),S&&(F.format=(D={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""}[S])!==null&&D!==void 0?D:S,F.format===""&&delete F.format),O&&(F.contentEncoding=O),x&&x.size>0){var I=De(x);I.length===1?F.pattern=I[0].source:I.length>1&&(l.schema.allOf=De(I.map(function(Ge){return C(C({},a.target==="draft-7"||a.target==="draft-4"||a.target==="openapi-3.0"?{type:"string"}:{}),{},{pattern:Ge.source})})))}break;case"number":var B=y,d=e._zod.bag,q=d.minimum,N=d.maximum,Z=d.format,z=d.multipleOf,H=d.exclusiveMaximum,L=d.exclusiveMinimum;typeof Z=="string"&&Z.includes("int")?B.type="integer":B.type="number",typeof L=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(B.minimum=L,B.exclusiveMinimum=!0):B.exclusiveMinimum=L),typeof q=="number"&&(B.minimum=q,typeof L=="number"&&this.target!=="draft-4"&&(L>=q?delete B.minimum:delete B.exclusiveMinimum)),typeof H=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(B.maximum=H,B.exclusiveMaximum=!0):B.exclusiveMaximum=H),typeof N=="number"&&(B.maximum=N,typeof H=="number"&&this.target!=="draft-4"&&(H<=N?delete B.maximum:delete B.exclusiveMaximum)),typeof z=="number"&&(B.multipleOf=z);break;case"boolean":case"success":y.type="boolean";break;case"bigint":if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break;case"symbol":if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break;case"null":this.target==="openapi-3.0"?(y.type="string",y.nullable=!0,y.enum=[null]):y.type="null";break;case"any":case"unknown":break;case"undefined":if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break;case"void":if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break;case"never":y.not={};break;case"date":if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break;case"array":var K=y,J=e._zod.bag,W=J.minimum,ee=J.maximum;typeof W=="number"&&(K.minItems=W),typeof ee=="number"&&(K.maxItems=ee),K.type="array",K.items=this.process(o.element,C(C({},p),{},{path:[].concat(De(p.path),["items"])}));break;case"object":var ue,ye=y;ye.type="object",ye.properties={};var oe=o.shape;for(var ae in oe)ye.properties[ae]=this.process(oe[ae],C(C({},p),{},{path:[].concat(De(p.path),["properties",ae])}));var Y=new Set(Object.keys(oe)),ie=new Set(De(Y).filter(function(Ge){var Lt=o.shape[Ge]._zod;return a.io==="input"?Lt.optin===void 0:Lt.optout===void 0}));ie.size>0&&(ye.required=Array.from(ie)),((ue=o.catchall)===null||ue===void 0?void 0:ue._zod.def.type)==="never"?ye.additionalProperties=!1:o.catchall?o.catchall&&(ye.additionalProperties=this.process(o.catchall,C(C({},p),{},{path:[].concat(De(p.path),["additionalProperties"])}))):this.io==="output"&&(ye.additionalProperties=!1);break;case"union":var re=y,de=o.options.map(function(Ge,Lt){return a.process(Ge,C(C({},p),{},{path:[].concat(De(p.path),["anyOf",Lt])}))});re.anyOf=de;break;case"intersection":var pe=y,ve=this.process(o.left,C(C({},p),{},{path:[].concat(De(p.path),["allOf",0])})),ke=this.process(o.right,C(C({},p),{},{path:[].concat(De(p.path),["allOf",1])})),ze=function(Ge){return"allOf"in Ge&&Object.keys(Ge).length===1},Se=[].concat(De(ze(ve)?ve.allOf:[ve]),De(ze(ke)?ke.allOf:[ke]));pe.allOf=Se;break;case"tuple":var je=y;je.type="array";var Me=this.target==="draft-2020-12"?"prefixItems":"items",ft=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",Bt=o.items.map(function(Ge,Lt){return a.process(Ge,C(C({},p),{},{path:[].concat(De(p.path),[Me,Lt])}))}),Pt=o.rest?this.process(o.rest,C(C({},p),{},{path:[].concat(De(p.path),[ft],De(this.target==="openapi-3.0"?[o.items.length]:[]))})):null;this.target==="draft-2020-12"?(je.prefixItems=Bt,Pt&&(je.items=Pt)):this.target==="openapi-3.0"?(je.items={anyOf:Bt},Pt&&je.items.anyOf.push(Pt),je.minItems=Bt.length,Pt||(je.maxItems=Bt.length)):(je.items=Bt,Pt&&(je.additionalItems=Pt));var sn=e._zod.bag,pn=sn.minimum,Ut=sn.maximum;typeof pn=="number"&&(je.minItems=pn),typeof Ut=="number"&&(je.maxItems=Ut);break;case"record":var zt=y;zt.type="object",this.target!=="draft-7"&&this.target!=="draft-2020-12"||(zt.propertyNames=this.process(o.keyType,C(C({},p),{},{path:[].concat(De(p.path),["propertyNames"])}))),zt.additionalProperties=this.process(o.valueType,C(C({},p),{},{path:[].concat(De(p.path),["additionalProperties"])}));break;case"map":if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break;case"set":if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break;case"enum":var Dn=y,Vt=_d(o.entries);Vt.every(function(Ge){return typeof Ge=="number"})&&(Dn.type="number"),Vt.every(function(Ge){return typeof Ge=="string"})&&(Dn.type="string"),Dn.enum=Vt;break;case"literal":var Yt,xt=y,Wt=[],Ae=me(o.values);try{for(Ae.s();!(Yt=Ae.n()).done;){var St=Yt.value;if(St===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof St=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");Wt.push(Number(St))}else Wt.push(St)}}catch(Ge){Ae.e(Ge)}finally{Ae.f()}if(Wt.length!==0)if(Wt.length===1){var $r=Wt[0];xt.type=$r===null?"null":qt($r),this.target==="draft-4"||this.target==="openapi-3.0"?xt.enum=[$r]:xt.const=$r}else Wt.every(function(Ge){return typeof Ge=="number"})&&(xt.type="number"),Wt.every(function(Ge){return typeof Ge=="string"})&&(xt.type="string"),Wt.every(function(Ge){return typeof Ge=="boolean"})&&(xt.type="string"),Wt.every(function(Ge){return Ge===null})&&(xt.type="null"),xt.enum=Wt;break;case"file":var Zr=y,bn={type:"string",format:"binary",contentEncoding:"binary"},hn=e._zod.bag,yu=hn.minimum,An=hn.maximum,$t=hn.mime;yu!==void 0&&(bn.minLength=yu),An!==void 0&&(bn.maxLength=An),$t?$t.length===1?(bn.contentMediaType=$t[0],Object.assign(Zr,bn)):Zr.anyOf=$t.map(function(Ge){return C(C({},bn),{},{contentMediaType:Ge})}):Object.assign(Zr,bn);break;case"transform":if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break;case"nullable":var En=this.process(o.innerType,p);this.target==="openapi-3.0"?(l.ref=o.innerType,y.nullable=!0):y.anyOf=[En,{type:"null"}];break;case"nonoptional":case"promise":case"optional":this.process(o.innerType,p),l.ref=o.innerType;break;case"default":this.process(o.innerType,p),l.ref=o.innerType,y.default=JSON.parse(JSON.stringify(o.defaultValue));break;case"prefault":this.process(o.innerType,p),l.ref=o.innerType,this.io==="input"&&(y._prefault=JSON.parse(JSON.stringify(o.defaultValue)));break;case"catch":var vn;this.process(o.innerType,p),l.ref=o.innerType;try{vn=o.catchValue(void 0)}catch(Ge){throw new Error("Dynamic catch values are not supported in JSON Schema")}y.default=vn;break;case"nan":if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break;case"template_literal":var Fr=y,cr=e._zod.pattern;if(!cr)throw new Error("Pattern not found in template literal");Fr.type="string",Fr.pattern=cr.source;break;case"pipe":var qr=this.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;this.process(qr,p),l.ref=qr;break;case"readonly":this.process(o.innerType,p),l.ref=o.innerType,y.readOnly=!0;break;case"lazy":var Hr=e._zod.innerType;this.process(Hr,p),l.ref=Hr;break;case"custom":if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break;case"function":if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")}}}var zn=this.metadataRegistry.get(e);return zn&&Object.assign(l.schema,zn),this.io==="input"&&fn(e)&&(delete l.schema.examples,delete l.schema.default),this.io==="input"&&l.schema._prefault&&((r=(u=l.schema).default)!==null&&r!==void 0||(u.default=l.schema._prefault)),delete l.schema._prefault,this.seen.get(e).schema}},{key:"emit",value:function(e,t){var n,r,u,a,i,o,c=this,l={cycles:(n=t==null?void 0:t.cycles)!==null&&n!==void 0?n:"ref",reused:(r=t==null?void 0:t.reused)!==null&&r!==void 0?r:"inline",external:(u=t==null?void 0:t.external)!==null&&u!==void 0?u:void 0},h=this.seen.get(e);if(!h)throw new Error("Unprocessed schema. This is a bug in Zod.");var p=function(ee){if(!ee[1].schema.$ref){var ue=ee[1],ye=(function(re){var de,pe=c.target==="draft-2020-12"?"$defs":"definitions";if(l.external){var ve,ke,ze,Se,je=(ve=l.external.registry.get(re[0]))===null||ve===void 0?void 0:ve.id,Me=(ke=l.external.uri)!==null&&ke!==void 0?ke:function(sn){return sn};if(je)return{ref:Me(je)};var ft=(ze=(Se=re[1].defId)!==null&&Se!==void 0?Se:re[1].schema.id)!==null&&ze!==void 0?ze:"schema".concat(c.counter++);return re[1].defId=ft,{defId:ft,ref:"".concat(Me("__shared"),"#/").concat(pe,"/").concat(ft)}}if(re[1]===h)return{ref:"#"};var Bt="".concat("#","/").concat(pe,"/"),Pt=(de=re[1].schema.id)!==null&&de!==void 0?de:"__schema".concat(c.counter++);return{defId:Pt,ref:Bt+Pt}})(ee),oe=ye.ref,ae=ye.defId;ue.def=C({},ue.schema),ae&&(ue.defId=ae);var Y=ue.schema;for(var ie in Y)delete Y[ie];Y.$ref=oe}};if(l.cycles==="throw"){var g,y=me(this.seen.entries());try{for(y.s();!(g=y.n()).done;){var F,D=g.value[1];if(D.cycle)throw new Error("Cycle detected: "+"#/".concat((F=D.cycle)===null||F===void 0?void 0:F.join("/"),"/<root>")+'\n\nSet the `cycles` parameter to `"ref"` to resolve cyclical schemas with defs.')}}catch(ee){y.e(ee)}finally{y.f()}}var _,T=me(this.seen.entries());try{for(T.s();!(_=T.n()).done;){var w,S=_.value,x=S[1];if(e!==S[0]){if(l.external){var O,I=(O=l.external.registry.get(S[0]))===null||O===void 0?void 0:O.id;if(e!==S[0]&&I){p(S);continue}}(!((w=this.metadataRegistry.get(S[0]))===null||w===void 0)&&w.id||x.cycle||x.count>1&&l.reused==="ref")&&p(S)}else p(S)}}catch(ee){T.e(ee)}finally{T.f()}var B,d=function(ee,ue){var ye,oe,ae=c.seen.get(ee),Y=(ye=ae.def)!==null&&ye!==void 0?ye:ae.schema,ie=C({},Y);if(ae.ref!==null){var re=ae.ref;if(ae.ref=null,re){d(re,ue);var de,pe=c.seen.get(re).schema;!pe.$ref||ue.target!=="draft-7"&&ue.target!=="draft-4"&&ue.target!=="openapi-3.0"?(Object.assign(Y,pe),Object.assign(Y,ie)):(Y.allOf=(de=Y.allOf)!==null&&de!==void 0?de:[],Y.allOf.push(pe))}ae.isParent||c.override({zodSchema:ee,jsonSchema:Y,path:(oe=ae.path)!==null&&oe!==void 0?oe:[]})}},q=me(De(this.seen.entries()).reverse());try{for(q.s();!(B=q.n()).done;){var N=B.value;d(N[0],{target:this.target})}}catch(ee){q.e(ee)}finally{q.f()}var Z={};if(this.target==="draft-2020-12"?Z.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?Z.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?Z.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn("Invalid target: ".concat(this.target)),(a=l.external)!==null&&a!==void 0&&a.uri){var z,H=(z=l.external.registry.get(e))===null||z===void 0?void 0:z.id;if(!H)throw new Error("Schema is missing an `id` property");Z.$id=l.external.uri(H)}Object.assign(Z,h.def);var L,K=(i=(o=l.external)===null||o===void 0?void 0:o.defs)!==null&&i!==void 0?i:{},J=me(this.seen.entries());try{for(J.s();!(L=J.n()).done;){var W=L.value[1];W.def&&W.defId&&(K[W.defId]=W.def)}}catch(ee){J.e(ee)}finally{J.f()}l.external||Object.keys(K).length>0&&(this.target==="draft-2020-12"?Z.$defs=K:Z.definitions=K);try{return JSON.parse(JSON.stringify(Z))}catch(ee){throw new Error("Error converting schema to JSON.")}}}]);function fn(e,t){var n=t!=null?t:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);var r=e._zod.def;switch(r.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":case"custom":case"success":case"catch":case"function":return!1;case"array":return fn(r.element,n);case"object":for(var u in r.shape)if(fn(r.shape[u],n))return!0;return!1;case"union":var a,i=me(r.options);try{for(i.s();!(a=i.n()).done;)if(fn(a.value,n))return!0}catch(l){i.e(l)}finally{i.f()}return!1;case"intersection":return fn(r.left,n)||fn(r.right,n);case"tuple":var o,c=me(r.items);try{for(c.s();!(o=c.n()).done;)if(fn(o.value,n))return!0}catch(l){c.e(l)}finally{c.f()}return!(!r.rest||!fn(r.rest,n));case"record":case"map":return fn(r.keyType,n)||fn(r.valueType,n);case"set":return fn(r.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":case"default":case"prefault":return fn(r.innerType,n);case"lazy":return fn(r.getter(),n);case"transform":return!0;case"pipe":return fn(r.in,n)||fn(r.out,n)}throw new Error("Unknown schema type: ".concat(r.type))}var br=Object.freeze({__proto__:null,endsWith:ip,gt:Gi,gte:Va,includes:up,length:Ps,lowercase:np,lt:Wi,lte:Ua,maxLength:Bs,maxSize:function(e,t){return new gg(C(C({check:"max_size"},xe(t)),{},{maximum:e}))},mime:function(e,t){return new Tg(C({check:"mime_type",mime:e},xe(t)))},minLength:Wa,minSize:function(e,t){return new yg(C(C({check:"min_size"},xe(t)),{},{minimum:e}))},multipleOf:Is,negative:function(e){return Wi(0,e)},nonnegative:function(e){return Va(0,e)},nonpositive:function(e){return Ua(0,e)},normalize:op,overwrite:$u,positive:function(e){return Gi(0,e)},property:function(e,t,n){return new Sg(C({check:"property",property:e,schema:t},xe(n)))},regex:tp,size:function(e,t){return new Dg(C(C({check:"size_equals"},xe(t)),{},{size:e}))},startsWith:ap,toLowerCase:cp,toUpperCase:lp,trim:sp,uppercase:rp}),wy=X("ZodISODateTime",function(e,t){Ug.init(e,t),Ot.init(e,t)}),xy=X("ZodISODate",function(e,t){Vg.init(e,t),Ot.init(e,t)}),Sy=X("ZodISOTime",function(e,t){Wg.init(e,t),Ot.init(e,t)}),Ty=X("ZodISODuration",function(e,t){Gg.init(e,t),Ot.init(e,t)}),jn=X("ZodError",function(e,t){Td.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:function(n){return(function(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(o){return o.message},a={_errors:[]},i=function(o){var c,l=me(o.issues);try{for(l.s();!(c=l.n()).done;){var h=c.value;if(h.code==="invalid_union"&&h.errors.length)h.errors.map(function(F){return i({issues:F})});else if(h.code==="invalid_key")i({issues:h.issues});else if(h.code==="invalid_element")i({issues:h.issues});else if(h.path.length===0)a._errors.push(u(h));else for(var p=a,g=0;g<h.path.length;){var y=h.path[g];g===h.path.length-1?(p[y]=p[y]||{_errors:[]},p[y]._errors.push(u(h))):p[y]=p[y]||{_errors:[]},p=p[y],g++}}}catch(F){l.e(F)}finally{l.f()}};return i(r),a})(e,n)}},flatten:{value:function(n){return(function(r){var u,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(h){return h.message},i={},o=[],c=me(r.issues);try{for(c.s();!(u=c.n()).done;){var l=u.value;l.path.length>0?(i[l.path[0]]=i[l.path[0]]||[],i[l.path[0]].push(a(l))):o.push(a(l))}}catch(h){c.e(h)}finally{c.f()}return{formErrors:o,fieldErrors:i}})(e,n)}},addIssue:{value:function(n){e.issues.push(n),e.message=JSON.stringify(e.issues,_s,2)}},addIssues:{value:function(n){var r;(r=e.issues).push.apply(r,De(n)),e.message=JSON.stringify(e.issues,_s,2)}},isEmpty:{get:function(){return e.issues.length===0}}})},{Parent:Error}),Oy=xs(jn),Iy=Ss(jn),By=Zi(jn),dp=qi(jn),Py=(function(e){return function(t,n,r){var u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return xs(e)(t,n,u)}})(jn),jy=(function(e){return function(t,n,r){return xs(e)(t,n,r)}})(jn),Ny=(function(e){return(function(){var t=Xe(be().m(function n(r,u,a){var i;return be().w(function(o){for(;;)if(o.n===0)return i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"},o.a(2,Ss(e)(r,u,i))},n)}));return function(n,r,u){return t.apply(this,arguments)}})()})(jn),Ry=(function(e){return(function(){var t=Xe(be().m(function n(r,u,a){return be().w(function(i){for(;;)if(i.n===0)return i.a(2,Ss(e)(r,u,a))},n)}));return function(n,r,u){return t.apply(this,arguments)}})()})(jn),zy=(function(e){return function(t,n,r){var u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Zi(e)(t,n,u)}})(jn),Ly=(function(e){return function(t,n,r){return Zi(e)(t,n,r)}})(jn),My=(function(e){return(function(){var t=Xe(be().m(function n(r,u,a){var i;return be().w(function(o){for(;;)if(o.n===0)return i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"},o.a(2,qi(e)(r,u,i))},n)}));return function(n,r,u){return t.apply(this,arguments)}})()})(jn),$y=(function(e){return(function(){var t=Xe(be().m(function n(r,u,a){return be().w(function(i){for(;;)if(i.n===0)return i.a(2,qi(e)(r,u,a))},n)}));return function(n,r,u){return t.apply(this,arguments)}})()})(jn),wt=X("ZodType",function(e,t){return Ft.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=function(){for(var n,r=arguments.length,u=new Array(r),a=0;a<r;a++)u[a]=arguments[a];return e.clone(pu(t,{checks:[].concat(De((n=t.checks)!==null&&n!==void 0?n:[]),De(u.map(function(i){return typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i})))}))},e.clone=function(n,r){return jr(e,n,r)},e.brand=function(){return e},e.register=function(n,r){return n.add(e,r),e},e.parse=function(n,r){return Oy(e,n,r,{callee:e.parse})},e.safeParse=function(n,r){return By(e,n,r)},e.parseAsync=(function(){var n=Xe(be().m(function r(u,a){return be().w(function(i){for(;;)if(i.n===0)return i.a(2,Iy(e,u,a,{callee:e.parseAsync}))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.safeParseAsync=(function(){var n=Xe(be().m(function r(u,a){return be().w(function(i){for(;;)if(i.n===0)return i.a(2,dp(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.spa=e.safeParseAsync,e.encode=function(n,r){return Py(e,n,r)},e.decode=function(n,r){return jy(e,n,r)},e.encodeAsync=(function(){var n=Xe(be().m(function r(u,a){return be().w(function(i){for(;;)if(i.n===0)return i.a(2,Ny(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.decodeAsync=(function(){var n=Xe(be().m(function r(u,a){return be().w(function(i){for(;;)if(i.n===0)return i.a(2,Ry(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.safeEncode=function(n,r){return zy(e,n,r)},e.safeDecode=function(n,r){return Ly(e,n,r)},e.safeEncodeAsync=(function(){var n=Xe(be().m(function r(u,a){return be().w(function(i){for(;;)if(i.n===0)return i.a(2,My(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.safeDecodeAsync=(function(){var n=Xe(be().m(function r(u,a){return be().w(function(i){for(;;)if(i.n===0)return i.a(2,$y(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.refine=function(n,r){return e.check((function(u){return(function(a,i,o){return new Rs(C({type:"custom",check:"custom",fn:i},xe(o)))})(0,u,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{})})(n,r))},e.superRefine=function(n){return e.check((function(r){var u=(function(a){var i=new Ht(C({check:"custom"},xe(void 0)));return i._zod.check=a,i})(function(a){return a.addIssue=function(i){if(typeof i=="string")a.issues.push(qa(i,a.value,u._zod.def));else{var o,c,l,h,p=i;p.fatal&&(p.continue=!1),(o=p.code)!==null&&o!==void 0||(p.code="custom"),(c=p.input)!==null&&c!==void 0||(p.input=a.value),(l=p.inst)!==null&&l!==void 0||(p.inst=u),(h=p.continue)!==null&&h!==void 0||(p.continue=!u._zod.def.abort),a.issues.push(qa(p))}},r(a.value,a)});return u})(n))},e.overwrite=function(n){return e.check($u(n))},e.optional=function(){return Ep(e)},e.nullable=function(){return Fp(e)},e.nullish=function(){return Ep(Fp(e))},e.nonoptional=function(n){return(function(r,u){return new _p(C({type:"nonoptional",innerType:r},xe(u)))})(e,n)},e.array=function(){return Zu(e)},e.or=function(n){return Nn([e,n])},e.and=function(n){return new vD({type:"intersection",left:e,right:n})},e.transform=function(n){return Cp(e,new yD({type:"transform",transform:n}))},e.default=function(n){return r=n,new bD({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():xd(r)}});var r},e.prefault=function(n){return r=n,new AD({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():xd(r)}});var r},e.catch=function(n){return new ED({type:"catch",innerType:e,catchValue:typeof(r=n)=="function"?r:function(){return r}});var r},e.pipe=function(n){return Cp(e,n)},e.readonly=function(){return new _D({type:"readonly",innerType:e})},e.describe=function(n){var r=e.clone();return Ha.add(r,{description:n}),r},Object.defineProperty(e,"description",{get:function(){var n;return(n=Ha.get(e))===null||n===void 0?void 0:n.description},configurable:!0}),e.meta=function(){if(arguments.length===0)return Ha.get(e);var n=e.clone();return Ha.add(n,arguments.length<=0?void 0:arguments[0]),n},e.isOptional=function(){return e.safeParse(void 0).success},e.isNullable=function(){return e.safeParse(null).success},e}),pp=X("_ZodString",function(e,t){var n,r,u;Ts.init(e,t),wt.init(e,t);var a=e._zod.bag;e.format=(n=a.format)!==null&&n!==void 0?n:null,e.minLength=(r=a.minimum)!==null&&r!==void 0?r:null,e.maxLength=(u=a.maximum)!==null&&u!==void 0?u:null,e.regex=function(){return e.check(tp.apply(br,arguments))},e.includes=function(){return e.check(up.apply(br,arguments))},e.startsWith=function(){return e.check(ap.apply(br,arguments))},e.endsWith=function(){return e.check(ip.apply(br,arguments))},e.min=function(){return e.check(Wa.apply(br,arguments))},e.max=function(){return e.check(Bs.apply(br,arguments))},e.length=function(){return e.check(Ps.apply(br,arguments))},e.nonempty=function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];return e.check(Wa.apply(br,[1].concat(o)))},e.lowercase=function(i){return e.check(np(i))},e.uppercase=function(i){return e.check(rp(i))},e.trim=function(){return e.check(sp())},e.normalize=function(){return e.check(op.apply(br,arguments))},e.toLowerCase=function(){return e.check(cp())},e.toUpperCase=function(){return e.check(lp())}}),Zy=X("ZodString",function(e,t){Ts.init(e,t),pp.init(e,t),e.email=function(n){return e.check((function(r,u){return new qy(C({type:"string",format:"email",check:"string_format",abort:!1},xe(u)))})(0,n))},e.url=function(n){return e.check((function(r,u){return new Hy(C({type:"string",format:"url",check:"string_format",abort:!1},xe(u)))})(0,n))},e.jwt=function(n){return e.check((function(r,u){return new aD(C({type:"string",format:"jwt",check:"string_format",abort:!1},xe(u)))})(0,n))},e.emoji=function(n){return e.check((function(r,u){return new Uy(C({type:"string",format:"emoji",check:"string_format",abort:!1},xe(u)))})(0,n))},e.guid=function(n){return e.check(ep(hp,n))},e.uuid=function(n){return e.check((function(r,u){return new Ji(C({type:"string",format:"uuid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.uuidv4=function(n){return e.check((function(r,u){return new Ji(C({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4"},xe(u)))})(0,n))},e.uuidv6=function(n){return e.check((function(r,u){return new Ji(C({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6"},xe(u)))})(0,n))},e.uuidv7=function(n){return e.check((function(r,u){return new Ji(C({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7"},xe(u)))})(0,n))},e.nanoid=function(n){return e.check((function(r,u){return new Vy(C({type:"string",format:"nanoid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.guid=function(n){return e.check(ep(hp,n))},e.cuid=function(n){return e.check((function(r,u){return new Wy(C({type:"string",format:"cuid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.cuid2=function(n){return e.check((function(r,u){return new Gy(C({type:"string",format:"cuid2",check:"string_format",abort:!1},xe(u)))})(0,n))},e.ulid=function(n){return e.check((function(r,u){return new Jy(C({type:"string",format:"ulid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.base64=function(n){return e.check((function(r,u){return new nD(C({type:"string",format:"base64",check:"string_format",abort:!1},xe(u)))})(0,n))},e.base64url=function(n){return e.check((function(r,u){return new rD(C({type:"string",format:"base64url",check:"string_format",abort:!1},xe(u)))})(0,n))},e.xid=function(n){return e.check((function(r,u){return new Ky(C({type:"string",format:"xid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.ksuid=function(n){return e.check((function(r,u){return new Qy(C({type:"string",format:"ksuid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.ipv4=function(n){return e.check((function(r,u){return new Yy(C({type:"string",format:"ipv4",check:"string_format",abort:!1},xe(u)))})(0,n))},e.ipv6=function(n){return e.check((function(r,u){return new Xy(C({type:"string",format:"ipv6",check:"string_format",abort:!1},xe(u)))})(0,n))},e.cidrv4=function(n){return e.check((function(r,u){return new eD(C({type:"string",format:"cidrv4",check:"string_format",abort:!1},xe(u)))})(0,n))},e.cidrv6=function(n){return e.check((function(r,u){return new tD(C({type:"string",format:"cidrv6",check:"string_format",abort:!1},xe(u)))})(0,n))},e.e164=function(n){return e.check((function(r,u){return new uD(C({type:"string",format:"e164",check:"string_format",abort:!1},xe(u)))})(0,n))},e.datetime=function(n){return e.check((function(r){return(function(u,a){return new wy(C({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null},xe(a)))})(0,r)})(n))},e.date=function(n){return e.check((function(r){return(function(u,a){return new xy(C({type:"string",format:"date",check:"string_format"},xe(a)))})(0,r)})(n))},e.time=function(n){return e.check((function(r){return(function(u,a){return new Sy(C({type:"string",format:"time",check:"string_format",precision:null},xe(a)))})(0,r)})(n))},e.duration=function(n){return e.check((function(r){return(function(u,a){return new Ty(C({type:"string",format:"duration",check:"string_format"},xe(a)))})(0,r)})(n))}});function Re(e){return(function(t,n){return new Zy(C({type:"string"},xe(n)))})(0,e)}var Ot=X("ZodStringFormat",function(e,t){kt.init(e,t),pp.init(e,t)}),qy=X("ZodEmail",function(e,t){Ng.init(e,t),Ot.init(e,t)}),hp=X("ZodGUID",function(e,t){Pg.init(e,t),Ot.init(e,t)}),Ji=X("ZodUUID",function(e,t){jg.init(e,t),Ot.init(e,t)}),Hy=X("ZodURL",function(e,t){Rg.init(e,t),Ot.init(e,t)}),Uy=X("ZodEmoji",function(e,t){zg.init(e,t),Ot.init(e,t)}),Vy=X("ZodNanoID",function(e,t){Lg.init(e,t),Ot.init(e,t)}),Wy=X("ZodCUID",function(e,t){Mg.init(e,t),Ot.init(e,t)}),Gy=X("ZodCUID2",function(e,t){$g.init(e,t),Ot.init(e,t)}),Jy=X("ZodULID",function(e,t){Zg.init(e,t),Ot.init(e,t)}),Ky=X("ZodXID",function(e,t){qg.init(e,t),Ot.init(e,t)}),Qy=X("ZodKSUID",function(e,t){Hg.init(e,t),Ot.init(e,t)}),Yy=X("ZodIPv4",function(e,t){Jg.init(e,t),Ot.init(e,t)}),Xy=X("ZodIPv6",function(e,t){Kg.init(e,t),Ot.init(e,t)}),eD=X("ZodCIDRv4",function(e,t){Qg.init(e,t),Ot.init(e,t)}),tD=X("ZodCIDRv6",function(e,t){Yg.init(e,t),Ot.init(e,t)}),nD=X("ZodBase64",function(e,t){Xg.init(e,t),Ot.init(e,t)}),rD=X("ZodBase64URL",function(e,t){ey.init(e,t),Ot.init(e,t)}),uD=X("ZodE164",function(e,t){ty.init(e,t),Ot.init(e,t)}),aD=X("ZodJWT",function(e,t){ny.init(e,t),Ot.init(e,t)}),vp=X("ZodNumber",function(e,t){var n,r,u,a,i,o,c,l,h;$d.init(e,t),wt.init(e,t),e.gt=function(g,y){return e.check(Gi(g,y))},e.gte=function(g,y){return e.check(Va(g,y))},e.min=function(g,y){return e.check(Va(g,y))},e.lt=function(g,y){return e.check(Wi(g,y))},e.lte=function(g,y){return e.check(Ua(g,y))},e.max=function(g,y){return e.check(Ua(g,y))},e.int=function(g){return e.check(mp(g))},e.safe=function(g){return e.check(mp(g))},e.positive=function(g){return e.check(Gi(0,g))},e.nonnegative=function(g){return e.check(Va(0,g))},e.negative=function(g){return e.check(Wi(0,g))},e.nonpositive=function(g){return e.check(Ua(0,g))},e.multipleOf=function(g,y){return e.check(Is(g,y))},e.step=function(g,y){return e.check(Is(g,y))},e.finite=function(){return e};var p=e._zod.bag;e.minValue=(n=Math.max((r=p.minimum)!==null&&r!==void 0?r:Number.NEGATIVE_INFINITY,(u=p.exclusiveMinimum)!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY))!==null&&n!==void 0?n:null,e.maxValue=(a=Math.min((i=p.maximum)!==null&&i!==void 0?i:Number.POSITIVE_INFINITY,(o=p.exclusiveMaximum)!==null&&o!==void 0?o:Number.POSITIVE_INFINITY))!==null&&a!==void 0?a:null,e.isInt=((c=p.format)!==null&&c!==void 0?c:"").includes("int")||Number.isSafeInteger((l=p.multipleOf)!==null&&l!==void 0?l:.5),e.isFinite=!0,e.format=(h=p.format)!==null&&h!==void 0?h:null});function iD(e){return(function(t,n){return new vp(C({type:"number",checks:[]},xe(n)))})(0,e)}var oD=X("ZodNumberFormat",function(e,t){ry.init(e,t),vp.init(e,t)});function mp(e){return(function(t,n){return new oD(C({type:"number",check:"number_format",abort:!1,format:"safeint"},xe(n)))})(0,e)}var sD=X("ZodBoolean",function(e,t){uy.init(e,t),wt.init(e,t)});function gn(e){return(function(t,n){return new sD(C({type:"boolean"},xe(n)))})(0,e)}var cD=X("ZodNull",function(e,t){ay.init(e,t),wt.init(e,t)});function lD(e){return(function(t,n){return new cD(C({type:"null"},xe(n)))})(0,e)}var fD=X("ZodUnknown",function(e,t){iy.init(e,t),wt.init(e,t)});function ur(){return new fD({type:"unknown"})}var dD=X("ZodNever",function(e,t){oy.init(e,t),wt.init(e,t)});function gp(e){return(function(t,n){return new dD(C({type:"never"},xe(n)))})(0,e)}var pD=X("ZodArray",function(e,t){sy.init(e,t),wt.init(e,t),e.element=t.element,e.min=function(n,r){return e.check(Wa(n,r))},e.nonempty=function(n){return e.check(Wa(1,n))},e.max=function(n,r){return e.check(Bs(n,r))},e.length=function(n,r){return e.check(Ps(n,r))},e.unwrap=function(){return e.element}});function Zu(e,t){return(function(n,r,u){return new pD(C({type:"array",element:r},xe(u)))})(0,e,t)}var yp=X("ZodObject",function(e,t){ly.init(e,t),wt.init(e,t),mt(e,"shape",function(){return t.shape}),e.keyof=function(){return bp(Object.keys(e._zod.def.shape))},e.catchall=function(n){return e.clone(C(C({},e._zod.def),{},{catchall:n}))},e.passthrough=function(){return e.clone(C(C({},e._zod.def),{},{catchall:ur()}))},e.loose=function(){return e.clone(C(C({},e._zod.def),{},{catchall:ur()}))},e.strict=function(){return e.clone(C(C({},e._zod.def),{},{catchall:gp()}))},e.strip=function(){return e.clone(C(C({},e._zod.def),{},{catchall:void 0}))},e.extend=function(n){return(function(r,u){if(!zu(u))throw new Error("Invalid input to extend: expected a plain object");var a=r._zod.def.checks;if(a&&a.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");var i=pu(r._zod.def,{get shape(){var o=C(C({},r._zod.def.shape),u);return du(this,"shape",o),o},checks:[]});return jr(r,i)})(e,n)},e.safeExtend=function(n){return(function(r,u){if(!zu(u))throw new Error("Invalid input to safeExtend: expected a plain object");var a=C(C({},r._zod.def),{},{get shape(){var i=C(C({},r._zod.def.shape),u);return du(this,"shape",i),i},checks:r._zod.def.checks});return jr(r,a)})(e,n)},e.merge=function(n){return(function(r,u){var a=pu(r._zod.def,{get shape(){var i=C(C({},r._zod.def.shape),u._zod.def.shape);return du(this,"shape",i),i},get catchall(){return u._zod.def.catchall},checks:[]});return jr(r,a)})(e,n)},e.pick=function(n){return(function(r,u){var a=r._zod.def;return jr(r,pu(r._zod.def,{get shape(){var i={};for(var o in u){if(!(o in a.shape))throw new Error('Unrecognized key: "'.concat(o,'"'));u[o]&&(i[o]=a.shape[o])}return du(this,"shape",i),i},checks:[]}))})(e,n)},e.omit=function(n){return(function(r,u){var a=r._zod.def,i=pu(r._zod.def,{get shape(){var o=C({},r._zod.def.shape);for(var c in u){if(!(c in a.shape))throw new Error('Unrecognized key: "'.concat(c,'"'));u[c]&&delete o[c]}return du(this,"shape",o),o},checks:[]});return jr(r,i)})(e,n)},e.partial=function(){return(function(n,r,u){var a=pu(r._zod.def,{get shape(){var i=r._zod.def.shape,o=C({},i);if(u)for(var c in u){if(!(c in i))throw new Error('Unrecognized key: "'.concat(c,'"'));u[c]&&(o[c]=new n({type:"optional",innerType:i[c]}))}else for(var l in i)o[l]=new n({type:"optional",innerType:i[l]});return du(this,"shape",o),o},checks:[]});return jr(r,a)})(Ap,e,arguments.length<=0?void 0:arguments[0])},e.required=function(){return(function(n,r,u){var a=pu(r._zod.def,{get shape(){var i=r._zod.def.shape,o=C({},i);if(u)for(var c in u){if(!(c in o))throw new Error('Unrecognized key: "'.concat(c,'"'));u[c]&&(o[c]=new n({type:"nonoptional",innerType:i[c]}))}else for(var l in i)o[l]=new n({type:"nonoptional",innerType:i[l]});return du(this,"shape",o),o},checks:[]});return jr(r,a)})(_p,e,arguments.length<=0?void 0:arguments[0])}});function rn(e,t){var n=C({type:"object",shape:e!=null?e:{}},xe(t));return new yp(n)}function It(e,t){return new yp(C({type:"object",shape:e,catchall:gp()},xe(t)))}var Dp=X("ZodUnion",function(e,t){Vd.init(e,t),wt.init(e,t),e.options=t.options});function Nn(e,t){return new Dp(C({type:"union",options:e},xe(t)))}var hD=X("ZodDiscriminatedUnion",function(e,t){Dp.init(e,t),fy.init(e,t)}),vD=X("ZodIntersection",function(e,t){dy.init(e,t),wt.init(e,t)}),mD=X("ZodRecord",function(e,t){py.init(e,t),wt.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function js(e,t,n){return new mD(C({type:"record",keyType:e,valueType:t},xe(n)))}var Ns=X("ZodEnum",function(e,t){hy.init(e,t),wt.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);var n=new Set(Object.keys(t.entries));e.extract=function(r,u){var a,i={},o=me(r);try{for(o.s();!(a=o.n()).done;){var c=a.value;if(!n.has(c))throw new Error("Key ".concat(c," not found in enum"));i[c]=t.entries[c]}}catch(l){o.e(l)}finally{o.f()}return new Ns(C(C(C({},t),{},{checks:[]},xe(u)),{},{entries:i}))},e.exclude=function(r,u){var a,i=C({},t.entries),o=me(r);try{for(o.s();!(a=o.n()).done;){var c=a.value;if(!n.has(c))throw new Error("Key ".concat(c," not found in enum"));delete i[c]}}catch(l){o.e(l)}finally{o.f()}return new Ns(C(C(C({},t),{},{checks:[]},xe(u)),{},{entries:i}))}});function bp(e,t){var n=Array.isArray(e)?Object.fromEntries(e.map(function(r){return[r,r]})):e;return new Ns(C({type:"enum",entries:n},xe(t)))}var gD=X("ZodLiteral",function(e,t){vy.init(e,t),wt.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get:function(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Ye(e,t){return new gD(C({type:"literal",values:Array.isArray(e)?e:[e]},xe(t)))}var yD=X("ZodTransform",function(e,t){my.init(e,t),wt.init(e,t),e._zod.parse=function(n,r){if(r.direction==="backward")throw new Ed(e.constructor.name);n.addIssue=function(a){if(typeof a=="string")n.issues.push(qa(a,n.value,t));else{var i,o,c,l=a;l.fatal&&(l.continue=!1),(i=l.code)!==null&&i!==void 0||(l.code="custom"),(o=l.input)!==null&&o!==void 0||(l.input=n.value),(c=l.inst)!==null&&c!==void 0||(l.inst=e),n.issues.push(qa(l))}};var u=t.transform(n.value,n);return u instanceof Promise?u.then(function(a){return n.value=a,n}):(n.value=u,n)}}),Ap=X("ZodOptional",function(e,t){gy.init(e,t),wt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}});function Ep(e){return new Ap({type:"optional",innerType:e})}var DD=X("ZodNullable",function(e,t){yy.init(e,t),wt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}});function Fp(e){return new DD({type:"nullable",innerType:e})}var bD=X("ZodDefault",function(e,t){Dy.init(e,t),wt.init(e,t),e.unwrap=function(){return e._zod.def.innerType},e.removeDefault=e.unwrap}),AD=X("ZodPrefault",function(e,t){by.init(e,t),wt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}}),_p=X("ZodNonOptional",function(e,t){Ay.init(e,t),wt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}}),ED=X("ZodCatch",function(e,t){Ey.init(e,t),wt.init(e,t),e.unwrap=function(){return e._zod.def.innerType},e.removeCatch=e.unwrap}),FD=X("ZodPipe",function(e,t){Fy.init(e,t),wt.init(e,t),e.in=t.in,e.out=t.out});function Cp(e,t){return new FD({type:"pipe",in:e,out:t})}var lt,kp,_D=X("ZodReadonly",function(e,t){_y.init(e,t),wt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}}),CD=X("ZodLazy",function(e,t){Cy.init(e,t),wt.init(e,t),e.unwrap=function(){return e._zod.def.getter()}}),Rs=X("ZodCustom",function(e,t){ky.init(e,t),wt.init(e,t)});function wp(e,t){return(function(n,r,u){var a,i=xe(u);return(a=i.abort)!==null&&a!==void 0||(i.abort=!0),new n(C({type:"custom",check:"custom",fn:r},i))})(Rs,e!=null?e:function(){return!0},t)}function Ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{error:"Input not instance of ".concat(e.name)},n=new Rs(C({type:"custom",check:"custom",fn:function(r){return r instanceof e},abort:!0},xe(t)));return n._zod.bag.Class=e,n}(function(e){e.assertEqual=function(t){},e.assertIs=function(t){},e.assertNever=function(t){throw new Error},e.arrayToEnum=function(t){var n,r={},u=me(t);try{for(u.s();!(n=u.n()).done;){var a=n.value;r[a]=a}}catch(i){u.e(i)}finally{u.f()}return r},e.getValidEnumValues=function(t){var n,r={},u=me(e.objectKeys(t).filter(function(i){return typeof t[t[i]]!="number"}));try{for(u.s();!(n=u.n()).done;){var a=n.value;r[a]=t[a]}}catch(i){u.e(i)}finally{u.f()}return e.objectValues(r)},e.objectValues=function(t){return e.objectKeys(t).map(function(n){return t[n]})},e.objectKeys=typeof Object.keys=="function"?function(t){return Object.keys(t)}:function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.push(r);return n},e.find=function(t,n){var r,u=me(t);try{for(u.s();!(r=u.n()).done;){var a=r.value;if(n(a))return a}}catch(i){u.e(i)}finally{u.f()}},e.isInteger=typeof Number.isInteger=="function"?function(t){return Number.isInteger(t)}:function(t){return typeof t=="number"&&Number.isFinite(t)&&Math.floor(t)===t},e.joinValues=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" | ";return t.map(function(r){return typeof r=="string"?"'".concat(r,"'"):r}).join(n)},e.jsonStringifyReplacer=function(t,n){return typeof n=="bigint"?n.toString():n}})(lt||(lt={})),(kp||(kp={})).mergeShapes=function(e,t){return C(C({},e),t)};var we=lt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Rr=function(e){switch(qt(e)){case"undefined":return we.undefined;case"string":return we.string;case"number":return Number.isNaN(e)?we.nan:we.number;case"boolean":return we.boolean;case"function":return we.function;case"bigint":return we.bigint;case"symbol":return we.symbol;case"object":return Array.isArray(e)?we.array:e===null?we.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?we.promise:typeof Map!="undefined"&&e instanceof Map?we.map:typeof Set!="undefined"&&e instanceof Set?we.set:typeof Date!="undefined"&&e instanceof Date?we.date:we.object;default:return we.unknown}},ce=lt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),ar=(function(){function e(t){var n;Ie(this,e),(n=Ze(this,e)).issues=[],n.addIssue=function(u){n.issues=[].concat(De(n.issues),[u])},n.addIssues=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];n.issues=[].concat(De(n.issues),De(u))};var r=(this instanceof e?this.constructor:void 0).prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r,n.name="ZodError",n.issues=t,n}return $e(e,Tr(Error)),Be(e,[{key:"errors",get:function(){return this.issues}},{key:"format",value:function(t){var n=t||function(a){return a.message},r={_errors:[]},u=function(a){var i,o=me(a.issues);try{for(o.s();!(i=o.n()).done;){var c=i.value;if(c.code==="invalid_union")c.unionErrors.map(u);else if(c.code==="invalid_return_type")u(c.returnTypeError);else if(c.code==="invalid_arguments")u(c.argumentsError);else if(c.path.length===0)r._errors.push(n(c));else for(var l=r,h=0;h<c.path.length;){var p=c.path[h];h===c.path.length-1?(l[p]=l[p]||{_errors:[]},l[p]._errors.push(n(c))):l[p]=l[p]||{_errors:[]},l=l[p],h++}}}catch(g){o.e(g)}finally{o.f()}};return u(this),r}},{key:"toString",value:function(){return this.message}},{key:"message",get:function(){return JSON.stringify(this.issues,lt.jsonStringifyReplacer,2)}},{key:"isEmpty",get:function(){return this.issues.length===0}},{key:"flatten",value:function(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c.message},r=Object.create(null),u=[],a=me(this.issues);try{for(a.s();!(t=a.n()).done;){var i=t.value;if(i.path.length>0){var o=i.path[0];r[o]=r[o]||[],r[o].push(n(i))}else u.push(n(i))}}catch(c){a.e(c)}finally{a.f()}return{formErrors:u,fieldErrors:r}}},{key:"formErrors",get:function(){return this.flatten()}}],[{key:"assert",value:function(t){if(!(t instanceof e))throw new Error("Not a ZodError: ".concat(t))}}])})();ar.create=function(e){return new ar(e)};var Ga=function(e,t){var n;switch(e.code){case ce.invalid_type:n=e.received===we.undefined?"Required":"Expected ".concat(e.expected,", received ").concat(e.received);break;case ce.invalid_literal:n="Invalid literal value, expected ".concat(JSON.stringify(e.expected,lt.jsonStringifyReplacer));break;case ce.unrecognized_keys:n="Unrecognized key(s) in object: ".concat(lt.joinValues(e.keys,", "));break;case ce.invalid_union:n="Invalid input";break;case ce.invalid_union_discriminator:n="Invalid discriminator value. Expected ".concat(lt.joinValues(e.options));break;case ce.invalid_enum_value:n="Invalid enum value. Expected ".concat(lt.joinValues(e.options),", received '").concat(e.received,"'");break;case ce.invalid_arguments:n="Invalid function arguments";break;case ce.invalid_return_type:n="Invalid function return type";break;case ce.invalid_date:n="Invalid date";break;case ce.invalid_string:qt(e.validation)==="object"?"includes"in e.validation?(n='Invalid input: must include "'.concat(e.validation.includes,'"'),typeof e.validation.position=="number"&&(n="".concat(n," at one or more positions greater than or equal to ").concat(e.validation.position))):"startsWith"in e.validation?n='Invalid input: must start with "'.concat(e.validation.startsWith,'"'):"endsWith"in e.validation?n='Invalid input: must end with "'.concat(e.validation.endsWith,'"'):lt.assertNever(e.validation):n=e.validation!=="regex"?"Invalid ".concat(e.validation):"Invalid";break;case ce.too_small:n=e.type==="array"?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"more than"," ").concat(e.minimum," element(s)"):e.type==="string"?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"over"," ").concat(e.minimum," character(s)"):e.type==="number"||e.type==="bigint"?"Number must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(e.minimum):e.type==="date"?"Date must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(new Date(Number(e.minimum))):"Invalid input";break;case ce.too_big:n=e.type==="array"?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"less than"," ").concat(e.maximum," element(s)"):e.type==="string"?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"under"," ").concat(e.maximum," character(s)"):e.type==="number"?"Number must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):e.type==="bigint"?"BigInt must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):e.type==="date"?"Date must be ".concat(e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"," ").concat(new Date(Number(e.maximum))):"Invalid input";break;case ce.custom:n="Invalid input";break;case ce.invalid_intersection_types:n="Intersection results could not be merged";break;case ce.not_multiple_of:n="Number must be a multiple of ".concat(e.multipleOf);break;case ce.not_finite:n="Number must be finite";break;default:n=t.defaultError,lt.assertNever(e)}return{message:n}},kD=Ga;function zs(){return kD}var Ls=function(e){var t=e.data,n=e.path,r=e.errorMaps,u=e.issueData,a=[].concat(De(n),De(u.path||[])),i=C(C({},u),{},{path:a});if(u.message!==void 0)return C(C({},u),{},{path:a,message:u.message});var o,c="",l=r.filter(function(p){return!!p}).slice().reverse(),h=me(l);try{for(h.s();!(o=h.n()).done;)c=(0,o.value)(i,{data:t,defaultError:c}).message}catch(p){h.e(p)}finally{h.f()}return C(C({},u),{},{path:a,message:c})};function Ee(e,t){var n=zs(),r=Ls({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ga?void 0:Ga].filter(function(u){return!!u})});e.common.issues.push(r)}var Pe,Sn=(function(){function e(){Ie(this,e),this.value="valid"}return Be(e,[{key:"dirty",value:function(){this.value==="valid"&&(this.value="dirty")}},{key:"abort",value:function(){this.value!=="aborted"&&(this.value="aborted")}}],[{key:"mergeArray",value:function(n,r){var u,a=[],i=me(r);try{for(i.s();!(u=i.n()).done;){var o=u.value;if(o.status==="aborted")return qe;o.status==="dirty"&&n.dirty(),a.push(o.value)}}catch(c){i.e(c)}finally{i.f()}return{status:n.value,value:a}}},{key:"mergeObjectAsync",value:(t=Xe(be().m(function n(r,u){var a,i,o,c,l,h,p;return be().w(function(g){for(;;)switch(g.p=g.n){case 0:a=[],i=me(u),g.p=1,i.s();case 2:if((o=i.n()).done){g.n=6;break}return c=o.value,g.n=3,c.key;case 3:return l=g.v,g.n=4,c.value;case 4:h=g.v,a.push({key:l,value:h});case 5:g.n=2;break;case 6:g.n=8;break;case 7:g.p=7,p=g.v,i.e(p);case 8:return g.p=8,i.f(),g.f(8);case 9:return g.a(2,e.mergeObjectSync(r,a))}},n,null,[[1,7,8,9]])})),function(n,r){return t.apply(this,arguments)})},{key:"mergeObjectSync",value:function(n,r){var u,a={},i=me(r);try{for(i.s();!(u=i.n()).done;){var o=u.value,c=o.key,l=o.value;if(c.status==="aborted"||l.status==="aborted")return qe;c.status==="dirty"&&n.dirty(),l.status==="dirty"&&n.dirty(),c.value==="__proto__"||l.value===void 0&&!o.alwaysSet||(a[c.value]=l.value)}}catch(h){i.e(h)}finally{i.f()}return{status:n.value,value:a}}}]);var t})(),qe=Object.freeze({status:"aborted"}),Qi=function(e){return{status:"dirty",value:e}},yn=function(e){return{status:"valid",value:e}},xp=function(e){return e.status==="aborted"},Sp=function(e){return e.status==="dirty"},qu=function(e){return e.status==="valid"},Yi=function(e){return typeof Promise!="undefined"&&e instanceof Promise};(function(e){e.errToObj=function(t){return typeof t=="string"?{message:t}:t||{}},e.toString=function(t){return typeof t=="string"?t:t==null?void 0:t.message}})(Pe||(Pe={}));var ir=Be(function e(t,n,r,u){Ie(this,e),this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=u},[{key:"path",get:function(){var e,t;return this._cachedPath.length||(Array.isArray(this._key)?(e=this._cachedPath).push.apply(e,De(this._path).concat(De(this._key))):(t=this._cachedPath).push.apply(t,De(this._path).concat([this._key]))),this._cachedPath}}]),Tp=function(e,t){if(qu(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;var n=new ar(e.common.issues);return this._error=n,this._error}}};function We(e){if(!e)return{};var t=e.errorMap,n=e.invalid_type_error,r=e.required_error,u=e.description;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:u}:{errorMap:function(a,i){var o,c,l=e.message;return a.code==="invalid_enum_value"?{message:l!=null?l:i.defaultError}:i.data===void 0?{message:(c=l!=null?l:r)!==null&&c!==void 0?c:i.defaultError}:a.code!=="invalid_type"?{message:i.defaultError}:{message:(o=l!=null?l:n)!==null&&o!==void 0?o:i.defaultError}},description:u}}var Ms,tt=(function(){return Be(function t(n){var r=this;Ie(this,t),this.spa=this.safeParseAsync,this._def=n,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:function(u){return r["~validate"](u)}}},[{key:"description",get:function(){return this._def.description}},{key:"_getType",value:function(t){return Rr(t.data)}},{key:"_getOrReturnCtx",value:function(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Rr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}},{key:"_processInputParams",value:function(t){return{status:new Sn,ctx:{common:t.parent.common,data:t.data,parsedType:Rr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}},{key:"_parseSync",value:function(t){var n=this._parse(t);if(Yi(n))throw new Error("Synchronous parse encountered promise.");return n}},{key:"_parseAsync",value:function(t){var n=this._parse(t);return Promise.resolve(n)}},{key:"parse",value:function(t,n){var r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}},{key:"safeParse",value:function(t,n){var r,u={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0&&r,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Rr(t)},a=this._parseSync({data:t,path:u.path,parent:u});return Tp(u,a)}},{key:"~validate",value:function(t){var n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Rr(t)};if(!this["~standard"].async)try{var r=this._parseSync({data:t,path:[],parent:n});return qu(r)?{value:r.value}:{issues:n.common.issues}}catch(a){var u;a!=null&&(u=a.message)!==null&&u!==void 0&&(u=u.toLowerCase())!==null&&u!==void 0&&u.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(function(a){return qu(a)?{value:a.value}:{issues:n.common.issues}})}},{key:"parseAsync",value:(e=Xe(be().m(function t(n,r){var u;return be().w(function(a){for(;;)switch(a.n){case 0:return a.n=1,this.safeParseAsync(n,r);case 1:if(!(u=a.v).success){a.n=2;break}return a.a(2,u.data);case 2:throw u.error;case 3:return a.a(2)}},t,this)})),function(t,n){return e.apply(this,arguments)})},{key:"safeParseAsync",value:(function(){var t=Xe(be().m(function n(r,u){var a,i,o;return be().w(function(c){for(;;)switch(c.n){case 0:return a={common:{issues:[],contextualErrorMap:u==null?void 0:u.errorMap,async:!0},path:(u==null?void 0:u.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Rr(r)},i=this._parse({data:r,path:a.path,parent:a}),c.n=1,Yi(i)?i:Promise.resolve(i);case 1:return o=c.v,c.a(2,Tp(a,o))}},n,this)}));return function(n,r){return t.apply(this,arguments)}})()},{key:"refine",value:function(t,n){return this._refinement(function(r,u){var a=t(r),i=function(){return u.addIssue(C({code:ce.custom},(function(o){return typeof n=="string"||n===void 0?{message:n}:typeof n=="function"?n(o):n})(r)))};return typeof Promise!="undefined"&&a instanceof Promise?a.then(function(o){return!!o||(i(),!1)}):!!a||(i(),!1)})}},{key:"refinement",value:function(t,n){return this._refinement(function(r,u){return!!t(r)||(u.addIssue(typeof n=="function"?n(r,u):n),!1)})}},{key:"_refinement",value:function(t){return new Ar({schema:this,typeName:he.ZodEffects,effect:{type:"refinement",refinement:t}})}},{key:"superRefine",value:function(t){return this._refinement(t)}},{key:"optional",value:function(){return Er.create(this,this._def)}},{key:"nullable",value:function(){return mu.create(this,this._def)}},{key:"nullish",value:function(){return this.nullable().optional()}},{key:"array",value:function(){return Uu.create(this)}},{key:"promise",value:function(){return Ja.create(this,this._def)}},{key:"or",value:function(t){return no.create([this,t],this._def)}},{key:"and",value:function(t){return ro.create(this,t,this._def)}},{key:"transform",value:function(t){return new Ar(C(C({},We(this._def)),{},{schema:this,typeName:he.ZodEffects,effect:{type:"transform",transform:t}}))}},{key:"default",value:function(t){var n=typeof t=="function"?t:function(){return t};return new so(C(C({},We(this._def)),{},{innerType:this,defaultValue:n,typeName:he.ZodDefault}))}},{key:"brand",value:function(){return new Pp(C({typeName:he.ZodBranded,type:this},We(this._def)))}},{key:"catch",value:function(t){var n=typeof t=="function"?t:function(){return t};return new co(C(C({},We(this._def)),{},{innerType:this,catchValue:n,typeName:he.ZodCatch}))}},{key:"describe",value:function(t){return new this.constructor(C(C({},this._def),{},{description:t}))}},{key:"pipe",value:function(t){return jp.create(this,t)}},{key:"readonly",value:function(){return lo.create(this)}},{key:"isOptional",value:function(){return this.safeParse(void 0).success}},{key:"isNullable",value:function(){return this.safeParse(null).success}}]);var e})(),wD=/^c[^\s-]{8,}$/i,xD=/^[0-9a-z]+$/,SD=/^[0-9A-HJKMNP-TV-Z]{26}$/i,TD=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,OD=/^[a-z0-9_-]{21}$/i,ID=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,BD=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,PD=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,jD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ND=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,RD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,zD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,LD=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,MD=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Op="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",$D=new RegExp("^".concat(Op,"$"));function Ip(e){var t="[0-5]\\d";e.precision?t="".concat(t,"\\.\\d{").concat(e.precision,"}"):e.precision==null&&(t="".concat(t,"(\\.\\d+)?"));var n=e.precision?"+":"?";return"([01]\\d|2[0-3]):[0-5]\\d(:".concat(t,")").concat(n)}function ZD(e){return new RegExp("^".concat(Ip(e),"$"))}function qD(e){var t="".concat(Op,"T").concat(Ip(e)),n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t="".concat(t,"(").concat(n.join("|"),")"),new RegExp("^".concat(t,"$"))}function HD(e,t){return!(t!=="v4"&&t||!jD.test(e))||!(t!=="v6"&&t||!RD.test(e))}function UD(e,t){if(!ID.test(e))return!1;try{var n=ct(e.split("."),1)[0];if(!n)return!1;var r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),u=JSON.parse(atob(r));return!(qt(u)!=="object"||u===null||"typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||t&&u.alg!==t)}catch(a){return!1}}function VD(e,t){return!(t!=="v4"&&t||!ND.test(e))||!(t!=="v6"&&t||!zD.test(e))}var Xi=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==we.string){var n=this._getOrReturnCtx(t);return Ee(n,{code:ce.invalid_type,expected:we.string,received:n.parsedType}),qe}var r,u=new Sn,a=void 0,i=me(this._def.checks);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o.kind==="min")t.data.length<o.value&&(Ee(a=this._getOrReturnCtx(t,a),{code:ce.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),u.dirty());else if(o.kind==="max")t.data.length>o.value&&(Ee(a=this._getOrReturnCtx(t,a),{code:ce.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),u.dirty());else if(o.kind==="length"){var c=t.data.length>o.value,l=t.data.length<o.value;(c||l)&&(a=this._getOrReturnCtx(t,a),c?Ee(a,{code:ce.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):l&&Ee(a,{code:ce.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),u.dirty())}else if(o.kind==="email")PD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"email",code:ce.invalid_string,message:o.message}),u.dirty());else if(o.kind==="emoji")Ms||(Ms=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Ms.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"emoji",code:ce.invalid_string,message:o.message}),u.dirty());else if(o.kind==="uuid")TD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"uuid",code:ce.invalid_string,message:o.message}),u.dirty());else if(o.kind==="nanoid")OD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"nanoid",code:ce.invalid_string,message:o.message}),u.dirty());else if(o.kind==="cuid")wD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"cuid",code:ce.invalid_string,message:o.message}),u.dirty());else if(o.kind==="cuid2")xD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"cuid2",code:ce.invalid_string,message:o.message}),u.dirty());else if(o.kind==="ulid")SD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"ulid",code:ce.invalid_string,message:o.message}),u.dirty());else if(o.kind==="url")try{new URL(t.data)}catch(h){Ee(a=this._getOrReturnCtx(t,a),{validation:"url",code:ce.invalid_string,message:o.message}),u.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"regex",code:ce.invalid_string,message:o.message}),u.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(Ee(a=this._getOrReturnCtx(t,a),{code:ce.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),u.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(Ee(a=this._getOrReturnCtx(t,a),{code:ce.invalid_string,validation:{startsWith:o.value},message:o.message}),u.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(Ee(a=this._getOrReturnCtx(t,a),{code:ce.invalid_string,validation:{endsWith:o.value},message:o.message}),u.dirty()):o.kind==="datetime"?qD(o).test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{code:ce.invalid_string,validation:"datetime",message:o.message}),u.dirty()):o.kind==="date"?$D.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{code:ce.invalid_string,validation:"date",message:o.message}),u.dirty()):o.kind==="time"?ZD(o).test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{code:ce.invalid_string,validation:"time",message:o.message}),u.dirty()):o.kind==="duration"?BD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"duration",code:ce.invalid_string,message:o.message}),u.dirty()):o.kind==="ip"?HD(t.data,o.version)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"ip",code:ce.invalid_string,message:o.message}),u.dirty()):o.kind==="jwt"?UD(t.data,o.alg)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"jwt",code:ce.invalid_string,message:o.message}),u.dirty()):o.kind==="cidr"?VD(t.data,o.version)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"cidr",code:ce.invalid_string,message:o.message}),u.dirty()):o.kind==="base64"?LD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"base64",code:ce.invalid_string,message:o.message}),u.dirty()):o.kind==="base64url"?MD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"base64url",code:ce.invalid_string,message:o.message}),u.dirty()):lt.assertNever(o)}}catch(h){i.e(h)}finally{i.f()}return{status:u.value,value:t.data}}},{key:"_regex",value:function(t,n,r){return this.refinement(function(u){return t.test(u)},C({validation:n,code:ce.invalid_string},Pe.errToObj(r)))}},{key:"_addCheck",value:function(t){return new e(C(C({},this._def),{},{checks:[].concat(De(this._def.checks),[t])}))}},{key:"email",value:function(t){return this._addCheck(C({kind:"email"},Pe.errToObj(t)))}},{key:"url",value:function(t){return this._addCheck(C({kind:"url"},Pe.errToObj(t)))}},{key:"emoji",value:function(t){return this._addCheck(C({kind:"emoji"},Pe.errToObj(t)))}},{key:"uuid",value:function(t){return this._addCheck(C({kind:"uuid"},Pe.errToObj(t)))}},{key:"nanoid",value:function(t){return this._addCheck(C({kind:"nanoid"},Pe.errToObj(t)))}},{key:"cuid",value:function(t){return this._addCheck(C({kind:"cuid"},Pe.errToObj(t)))}},{key:"cuid2",value:function(t){return this._addCheck(C({kind:"cuid2"},Pe.errToObj(t)))}},{key:"ulid",value:function(t){return this._addCheck(C({kind:"ulid"},Pe.errToObj(t)))}},{key:"base64",value:function(t){return this._addCheck(C({kind:"base64"},Pe.errToObj(t)))}},{key:"base64url",value:function(t){return this._addCheck(C({kind:"base64url"},Pe.errToObj(t)))}},{key:"jwt",value:function(t){return this._addCheck(C({kind:"jwt"},Pe.errToObj(t)))}},{key:"ip",value:function(t){return this._addCheck(C({kind:"ip"},Pe.errToObj(t)))}},{key:"cidr",value:function(t){return this._addCheck(C({kind:"cidr"},Pe.errToObj(t)))}},{key:"datetime",value:function(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck(C({kind:"datetime",precision:(t==null?void 0:t.precision)===void 0?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0&&n,local:(r=t==null?void 0:t.local)!==null&&r!==void 0&&r},Pe.errToObj(t==null?void 0:t.message)))}},{key:"date",value:function(t){return this._addCheck({kind:"date",message:t})}},{key:"time",value:function(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck(C({kind:"time",precision:(t==null?void 0:t.precision)===void 0?null:t==null?void 0:t.precision},Pe.errToObj(t==null?void 0:t.message)))}},{key:"duration",value:function(t){return this._addCheck(C({kind:"duration"},Pe.errToObj(t)))}},{key:"regex",value:function(t,n){return this._addCheck(C({kind:"regex",regex:t},Pe.errToObj(n)))}},{key:"includes",value:function(t,n){return this._addCheck(C({kind:"includes",value:t,position:n==null?void 0:n.position},Pe.errToObj(n==null?void 0:n.message)))}},{key:"startsWith",value:function(t,n){return this._addCheck(C({kind:"startsWith",value:t},Pe.errToObj(n)))}},{key:"endsWith",value:function(t,n){return this._addCheck(C({kind:"endsWith",value:t},Pe.errToObj(n)))}},{key:"min",value:function(t,n){return this._addCheck(C({kind:"min",value:t},Pe.errToObj(n)))}},{key:"max",value:function(t,n){return this._addCheck(C({kind:"max",value:t},Pe.errToObj(n)))}},{key:"length",value:function(t,n){return this._addCheck(C({kind:"length",value:t},Pe.errToObj(n)))}},{key:"nonempty",value:function(t){return this.min(1,Pe.errToObj(t))}},{key:"trim",value:function(){return new e(C(C({},this._def),{},{checks:[].concat(De(this._def.checks),[{kind:"trim"}])}))}},{key:"toLowerCase",value:function(){return new e(C(C({},this._def),{},{checks:[].concat(De(this._def.checks),[{kind:"toLowerCase"}])}))}},{key:"toUpperCase",value:function(){return new e(C(C({},this._def),{},{checks:[].concat(De(this._def.checks),[{kind:"toUpperCase"}])}))}},{key:"isDatetime",get:function(){return!!this._def.checks.find(function(t){return t.kind==="datetime"})}},{key:"isDate",get:function(){return!!this._def.checks.find(function(t){return t.kind==="date"})}},{key:"isTime",get:function(){return!!this._def.checks.find(function(t){return t.kind==="time"})}},{key:"isDuration",get:function(){return!!this._def.checks.find(function(t){return t.kind==="duration"})}},{key:"isEmail",get:function(){return!!this._def.checks.find(function(t){return t.kind==="email"})}},{key:"isURL",get:function(){return!!this._def.checks.find(function(t){return t.kind==="url"})}},{key:"isEmoji",get:function(){return!!this._def.checks.find(function(t){return t.kind==="emoji"})}},{key:"isUUID",get:function(){return!!this._def.checks.find(function(t){return t.kind==="uuid"})}},{key:"isNANOID",get:function(){return!!this._def.checks.find(function(t){return t.kind==="nanoid"})}},{key:"isCUID",get:function(){return!!this._def.checks.find(function(t){return t.kind==="cuid"})}},{key:"isCUID2",get:function(){return!!this._def.checks.find(function(t){return t.kind==="cuid2"})}},{key:"isULID",get:function(){return!!this._def.checks.find(function(t){return t.kind==="ulid"})}},{key:"isIP",get:function(){return!!this._def.checks.find(function(t){return t.kind==="ip"})}},{key:"isCIDR",get:function(){return!!this._def.checks.find(function(t){return t.kind==="cidr"})}},{key:"isBase64",get:function(){return!!this._def.checks.find(function(t){return t.kind==="base64"})}},{key:"isBase64url",get:function(){return!!this._def.checks.find(function(t){return t.kind==="base64url"})}},{key:"minLength",get:function(){var t,n=null,r=me(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="min"&&(n===null||u.value>n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"maxLength",get:function(){var t,n=null,r=me(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}}])})();function WD(e,t){var n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,u=n>r?n:r;return Number.parseInt(e.toFixed(u).replace(".",""))%Number.parseInt(t.toFixed(u).replace(".",""))/Math.pow(10,u)}Xi.create=function(e){var t;return new Xi(C({checks:[],typeName:he.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0&&t},We(e)))};var $s=(function(){function e(){var t;return Ie(this,e),(t=Ze(this,e,arguments)).min=t.gte,t.max=t.lte,t.step=t.multipleOf,t}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==we.number){var n=this._getOrReturnCtx(t);return Ee(n,{code:ce.invalid_type,expected:we.number,received:n.parsedType}),qe}var r,u=void 0,a=new Sn,i=me(this._def.checks);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.kind==="int"?lt.isInteger(t.data)||(Ee(u=this._getOrReturnCtx(t,u),{code:ce.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(Ee(u=this._getOrReturnCtx(t,u),{code:ce.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(Ee(u=this._getOrReturnCtx(t,u),{code:ce.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?WD(t.data,o.value)!==0&&(Ee(u=this._getOrReturnCtx(t,u),{code:ce.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(Ee(u=this._getOrReturnCtx(t,u),{code:ce.not_finite,message:o.message}),a.dirty()):lt.assertNever(o)}}catch(c){i.e(c)}finally{i.f()}return{status:a.value,value:t.data}}},{key:"gte",value:function(t,n){return this.setLimit("min",t,!0,Pe.toString(n))}},{key:"gt",value:function(t,n){return this.setLimit("min",t,!1,Pe.toString(n))}},{key:"lte",value:function(t,n){return this.setLimit("max",t,!0,Pe.toString(n))}},{key:"lt",value:function(t,n){return this.setLimit("max",t,!1,Pe.toString(n))}},{key:"setLimit",value:function(t,n,r,u){return new e(C(C({},this._def),{},{checks:[].concat(De(this._def.checks),[{kind:t,value:n,inclusive:r,message:Pe.toString(u)}])}))}},{key:"_addCheck",value:function(t){return new e(C(C({},this._def),{},{checks:[].concat(De(this._def.checks),[t])}))}},{key:"int",value:function(t){return this._addCheck({kind:"int",message:Pe.toString(t)})}},{key:"positive",value:function(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Pe.toString(t)})}},{key:"negative",value:function(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Pe.toString(t)})}},{key:"nonpositive",value:function(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Pe.toString(t)})}},{key:"nonnegative",value:function(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Pe.toString(t)})}},{key:"multipleOf",value:function(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Pe.toString(n)})}},{key:"finite",value:function(t){return this._addCheck({kind:"finite",message:Pe.toString(t)})}},{key:"safe",value:function(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Pe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Pe.toString(t)})}},{key:"minValue",get:function(){var t,n=null,r=me(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="min"&&(n===null||u.value>n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"maxValue",get:function(){var t,n=null,r=me(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"isInt",get:function(){return!!this._def.checks.find(function(t){return t.kind==="int"||t.kind==="multipleOf"&<.isInteger(t.value)})}},{key:"isFinite",get:function(){var t,n=null,r=null,u=me(this._def.checks);try{for(u.s();!(t=u.n()).done;){var a=t.value;if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(r===null||a.value>r)&&(r=a.value):a.kind==="max"&&(n===null||a.value<n)&&(n=a.value)}}catch(i){u.e(i)}finally{u.f()}return Number.isFinite(r)&&Number.isFinite(n)}}])})();$s.create=function(e){return new $s(C({checks:[],typeName:he.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1},We(e)))};var Zs=(function(){function e(){var t;return Ie(this,e),(t=Ze(this,e,arguments)).min=t.gte,t.max=t.lte,t}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch(o){return this._getInvalidInput(t)}if(this._getType(t)!==we.bigint)return this._getInvalidInput(t);var n,r=void 0,u=new Sn,a=me(this._def.checks);try{for(a.s();!(n=a.n()).done;){var i=n.value;i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(Ee(r=this._getOrReturnCtx(t,r),{code:ce.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),u.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(Ee(r=this._getOrReturnCtx(t,r),{code:ce.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),u.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(Ee(r=this._getOrReturnCtx(t,r),{code:ce.not_multiple_of,multipleOf:i.value,message:i.message}),u.dirty()):lt.assertNever(i)}}catch(o){a.e(o)}finally{a.f()}return{status:u.value,value:t.data}}},{key:"_getInvalidInput",value:function(t){var n=this._getOrReturnCtx(t);return Ee(n,{code:ce.invalid_type,expected:we.bigint,received:n.parsedType}),qe}},{key:"gte",value:function(t,n){return this.setLimit("min",t,!0,Pe.toString(n))}},{key:"gt",value:function(t,n){return this.setLimit("min",t,!1,Pe.toString(n))}},{key:"lte",value:function(t,n){return this.setLimit("max",t,!0,Pe.toString(n))}},{key:"lt",value:function(t,n){return this.setLimit("max",t,!1,Pe.toString(n))}},{key:"setLimit",value:function(t,n,r,u){return new e(C(C({},this._def),{},{checks:[].concat(De(this._def.checks),[{kind:t,value:n,inclusive:r,message:Pe.toString(u)}])}))}},{key:"_addCheck",value:function(t){return new e(C(C({},this._def),{},{checks:[].concat(De(this._def.checks),[t])}))}},{key:"positive",value:function(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Pe.toString(t)})}},{key:"negative",value:function(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Pe.toString(t)})}},{key:"nonpositive",value:function(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Pe.toString(t)})}},{key:"nonnegative",value:function(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Pe.toString(t)})}},{key:"multipleOf",value:function(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Pe.toString(n)})}},{key:"minValue",get:function(){var t,n=null,r=me(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="min"&&(n===null||u.value>n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"maxValue",get:function(){var t,n=null,r=me(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}}])})();Zs.create=function(e){var t;return new Zs(C({checks:[],typeName:he.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0&&t},We(e)))};var qs=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==we.boolean){var n=this._getOrReturnCtx(t);return Ee(n,{code:ce.invalid_type,expected:we.boolean,received:n.parsedType}),qe}return yn(t.data)}}])})();qs.create=function(e){return new qs(C({typeName:he.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1},We(e)))};var Hs=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==we.date){var n=this._getOrReturnCtx(t);return Ee(n,{code:ce.invalid_type,expected:we.date,received:n.parsedType}),qe}if(Number.isNaN(t.data.getTime()))return Ee(this._getOrReturnCtx(t),{code:ce.invalid_date}),qe;var r,u=new Sn,a=void 0,i=me(this._def.checks);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.kind==="min"?t.data.getTime()<o.value&&(Ee(a=this._getOrReturnCtx(t,a),{code:ce.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),u.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(Ee(a=this._getOrReturnCtx(t,a),{code:ce.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),u.dirty()):lt.assertNever(o)}}catch(c){i.e(c)}finally{i.f()}return{status:u.value,value:new Date(t.data.getTime())}}},{key:"_addCheck",value:function(t){return new e(C(C({},this._def),{},{checks:[].concat(De(this._def.checks),[t])}))}},{key:"min",value:function(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Pe.toString(n)})}},{key:"max",value:function(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Pe.toString(n)})}},{key:"minDate",get:function(){var t,n=null,r=me(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="min"&&(n===null||u.value>n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n!=null?new Date(n):null}},{key:"maxDate",get:function(){var t,n=null,r=me(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n!=null?new Date(n):null}}])})();Hs.create=function(e){return new Hs(C({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:he.ZodDate},We(e)))};var Us=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){if(this._getType(t)!==we.symbol){var n=this._getOrReturnCtx(t);return Ee(n,{code:ce.invalid_type,expected:we.symbol,received:n.parsedType}),qe}return yn(t.data)}}])})();Us.create=function(e){return new Us(C({typeName:he.ZodSymbol},We(e)))};var eo=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){if(this._getType(t)!==we.undefined){var n=this._getOrReturnCtx(t);return Ee(n,{code:ce.invalid_type,expected:we.undefined,received:n.parsedType}),qe}return yn(t.data)}}])})();eo.create=function(e){return new eo(C({typeName:he.ZodUndefined},We(e)))};var to=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){if(this._getType(t)!==we.null){var n=this._getOrReturnCtx(t);return Ee(n,{code:ce.invalid_type,expected:we.null,received:n.parsedType}),qe}return yn(t.data)}}])})();to.create=function(e){return new to(C({typeName:he.ZodNull},We(e)))};var Vs=(function(){function e(){var t;return Ie(this,e),(t=Ze(this,e,arguments))._any=!0,t}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){return yn(t.data)}}])})();Vs.create=function(e){return new Vs(C({typeName:he.ZodAny},We(e)))};var Hu=(function(){function e(){var t;return Ie(this,e),(t=Ze(this,e,arguments))._unknown=!0,t}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){return yn(t.data)}}])})();Hu.create=function(e){return new Hu(C({typeName:he.ZodUnknown},We(e)))};var zr=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=this._getOrReturnCtx(t);return Ee(n,{code:ce.invalid_type,expected:we.never,received:n.parsedType}),qe}}])})();zr.create=function(e){return new zr(C({typeName:he.ZodNever},We(e)))};var Ws=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){if(this._getType(t)!==we.undefined){var n=this._getOrReturnCtx(t);return Ee(n,{code:ce.invalid_type,expected:we.void,received:n.parsedType}),qe}return yn(t.data)}}])})();Ws.create=function(e){return new Ws(C({typeName:he.ZodVoid},We(e)))};var Uu=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.ctx,u=n.status,a=this._def;if(r.parsedType!==we.array)return Ee(r,{code:ce.invalid_type,expected:we.array,received:r.parsedType}),qe;if(a.exactLength!==null){var i=r.data.length>a.exactLength.value,o=r.data.length<a.exactLength.value;(i||o)&&(Ee(r,{code:i?ce.too_big:ce.too_small,minimum:o?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),u.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(Ee(r,{code:ce.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),u.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(Ee(r,{code:ce.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),u.dirty()),r.common.async)return Promise.all(De(r.data).map(function(l,h){return a.type._parseAsync(new ir(r,l,r.path,h))})).then(function(l){return Sn.mergeArray(u,l)});var c=De(r.data).map(function(l,h){return a.type._parseSync(new ir(r,l,r.path,h))});return Sn.mergeArray(u,c)}},{key:"element",get:function(){return this._def.type}},{key:"min",value:function(t,n){return new e(C(C({},this._def),{},{minLength:{value:t,message:Pe.toString(n)}}))}},{key:"max",value:function(t,n){return new e(C(C({},this._def),{},{maxLength:{value:t,message:Pe.toString(n)}}))}},{key:"length",value:function(t,n){return new e(C(C({},this._def),{},{exactLength:{value:t,message:Pe.toString(n)}}))}},{key:"nonempty",value:function(t){return this.min(1,t)}}])})();function Vu(e){if(e instanceof Kn){var t={};for(var n in e.shape){var r=e.shape[n];t[n]=Er.create(Vu(r))}return new Kn(C(C({},e._def),{},{shape:function(){return t}}))}return e instanceof Uu?new Uu(C(C({},e._def),{},{type:Vu(e.element)})):e instanceof Er?Er.create(Vu(e.unwrap())):e instanceof mu?mu.create(Vu(e.unwrap())):e instanceof vu?vu.create(e.items.map(function(u){return Vu(u)})):e}Uu.create=function(e,t){return new Uu(C({type:e,minLength:null,maxLength:null,exactLength:null,typeName:he.ZodArray},We(t)))};var Kn=(function(){function e(){var t;return Ie(this,e),(t=Ze(this,e,arguments))._cached=null,t.nonstrict=t.passthrough,t.augment=t.extend,t}return $e(e,tt),Be(e,[{key:"_getCached",value:function(){if(this._cached!==null)return this._cached;var t=this._def.shape(),n=lt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}},{key:"_parse",value:function(t){if(this._getType(t)!==we.object){var n=this._getOrReturnCtx(t);return Ee(n,{code:ce.invalid_type,expected:we.object,received:n.parsedType}),qe}var r=this._processInputParams(t),u=r.status,a=r.ctx,i=this._getCached(),o=i.shape,c=i.keys,l=[];if(!(this._def.catchall instanceof zr&&this._def.unknownKeys==="strip"))for(var h in a.data)c.includes(h)||l.push(h);var p,g=[],y=me(c);try{for(y.s();!(p=y.n()).done;){var F=p.value,D=o[F],_=a.data[F];g.push({key:{status:"valid",value:F},value:D._parse(new ir(a,_,a.path,F)),alwaysSet:F in a.data})}}catch(N){y.e(N)}finally{y.f()}if(this._def.catchall instanceof zr){var T=this._def.unknownKeys;if(T==="passthrough"){var w,S=me(l);try{for(S.s();!(w=S.n()).done;){var x=w.value;g.push({key:{status:"valid",value:x},value:{status:"valid",value:a.data[x]}})}}catch(N){S.e(N)}finally{S.f()}}else if(T==="strict")l.length>0&&(Ee(a,{code:ce.unrecognized_keys,keys:l}),u.dirty());else if(T!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{var O,I=this._def.catchall,B=me(l);try{for(B.s();!(O=B.n()).done;){var d=O.value,q=a.data[d];g.push({key:{status:"valid",value:d},value:I._parse(new ir(a,q,a.path,d)),alwaysSet:d in a.data})}}catch(N){B.e(N)}finally{B.f()}}return a.common.async?Promise.resolve().then(Xe(be().m(function N(){var Z,z,H,L,K,J,W;return be().w(function(ee){for(;;)switch(ee.p=ee.n){case 0:Z=[],z=me(g),ee.p=1,z.s();case 2:if((H=z.n()).done){ee.n=6;break}return L=H.value,ee.n=3,L.key;case 3:return K=ee.v,ee.n=4,L.value;case 4:J=ee.v,Z.push({key:K,value:J,alwaysSet:L.alwaysSet});case 5:ee.n=2;break;case 6:ee.n=8;break;case 7:ee.p=7,W=ee.v,z.e(W);case 8:return ee.p=8,z.f(),ee.f(8);case 9:return ee.a(2,Z)}},N,null,[[1,7,8,9]])}))).then(function(N){return Sn.mergeObjectSync(u,N)}):Sn.mergeObjectSync(u,g)}},{key:"shape",get:function(){return this._def.shape()}},{key:"strict",value:function(t){var n=this;return Pe.errToObj,new e(C(C({},this._def),{},{unknownKeys:"strict"},t!==void 0?{errorMap:function(r,u){var a,i,o,c,l=(a=(i=(o=n._def).errorMap)===null||i===void 0?void 0:i.call(o,r,u).message)!==null&&a!==void 0?a:u.defaultError;return r.code==="unrecognized_keys"?{message:(c=Pe.errToObj(t).message)!==null&&c!==void 0?c:l}:{message:l}}}:{}))}},{key:"strip",value:function(){return new e(C(C({},this._def),{},{unknownKeys:"strip"}))}},{key:"passthrough",value:function(){return new e(C(C({},this._def),{},{unknownKeys:"passthrough"}))}},{key:"extend",value:function(t){var n=this;return new e(C(C({},this._def),{},{shape:function(){return C(C({},n._def.shape()),t)}}))}},{key:"merge",value:function(t){var n=this;return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:function(){return C(C({},n._def.shape()),t._def.shape())},typeName:he.ZodObject})}},{key:"setKey",value:function(t,n){return this.augment(it({},t,n))}},{key:"catchall",value:function(t){return new e(C(C({},this._def),{},{catchall:t}))}},{key:"pick",value:function(t){var n,r={},u=me(lt.objectKeys(t));try{for(u.s();!(n=u.n()).done;){var a=n.value;t[a]&&this.shape[a]&&(r[a]=this.shape[a])}}catch(i){u.e(i)}finally{u.f()}return new e(C(C({},this._def),{},{shape:function(){return r}}))}},{key:"omit",value:function(t){var n,r={},u=me(lt.objectKeys(this.shape));try{for(u.s();!(n=u.n()).done;){var a=n.value;t[a]||(r[a]=this.shape[a])}}catch(i){u.e(i)}finally{u.f()}return new e(C(C({},this._def),{},{shape:function(){return r}}))}},{key:"deepPartial",value:function(){return Vu(this)}},{key:"partial",value:function(t){var n,r={},u=me(lt.objectKeys(this.shape));try{for(u.s();!(n=u.n()).done;){var a=n.value,i=this.shape[a];t&&!t[a]?r[a]=i:r[a]=i.optional()}}catch(o){u.e(o)}finally{u.f()}return new e(C(C({},this._def),{},{shape:function(){return r}}))}},{key:"required",value:function(t){var n,r={},u=me(lt.objectKeys(this.shape));try{for(u.s();!(n=u.n()).done;){var a=n.value;if(t&&!t[a])r[a]=this.shape[a];else{for(var i=this.shape[a];i instanceof Er;)i=i._def.innerType;r[a]=i}}}catch(o){u.e(o)}finally{u.f()}return new e(C(C({},this._def),{},{shape:function(){return r}}))}},{key:"keyof",value:function(){return Bp(lt.objectKeys(this.shape))}}])})();Kn.create=function(e,t){return new Kn(C({shape:function(){return e},unknownKeys:"strip",catchall:zr.create(),typeName:he.ZodObject},We(t)))},Kn.strictCreate=function(e,t){return new Kn(C({shape:function(){return e},unknownKeys:"strict",catchall:zr.create(),typeName:he.ZodObject},We(t)))},Kn.lazycreate=function(e,t){return new Kn(C({shape:e,unknownKeys:"strip",catchall:zr.create(),typeName:he.ZodObject},We(t)))};var no=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx,r=this._def.options;if(n.common.async)return Promise.all(r.map((function(){var y=Xe(be().m(function F(D){var _,T,w;return be().w(function(S){for(;;)switch(S.n){case 0:return _=C(C({},n),{},{common:C(C({},n.common),{},{issues:[]}),parent:null}),S.n=1,D._parseAsync({data:n.data,path:n.path,parent:_});case 1:return T=S.v,w=_,S.a(2,{result:T,ctx:w})}},F)}));return function(F){return y.apply(this,arguments)}})())).then(function(y){var F,D=me(y);try{for(D.s();!(F=D.n()).done;){var _=F.value;if(_.result.status==="valid")return _.result}}catch(I){D.e(I)}finally{D.f()}var T,w=me(y);try{for(w.s();!(T=w.n()).done;){var S,x=T.value;if(x.result.status==="dirty")return(S=n.common.issues).push.apply(S,De(x.ctx.common.issues)),x.result}}catch(I){w.e(I)}finally{w.f()}var O=y.map(function(I){return new ar(I.ctx.common.issues)});return Ee(n,{code:ce.invalid_union,unionErrors:O}),qe});var u,a,i=void 0,o=[],c=me(r);try{for(c.s();!(u=c.n()).done;){var l=u.value,h=C(C({},n),{},{common:C(C({},n.common),{},{issues:[]}),parent:null}),p=l._parseSync({data:n.data,path:n.path,parent:h});if(p.status==="valid")return p;p.status!=="dirty"||i||(i={result:p,ctx:h}),h.common.issues.length&&o.push(h.common.issues)}}catch(y){c.e(y)}finally{c.f()}if(i)return(a=n.common.issues).push.apply(a,De(i.ctx.common.issues)),i.result;var g=o.map(function(y){return new ar(y)});return Ee(n,{code:ce.invalid_union,unionErrors:g}),qe}},{key:"options",get:function(){return this._def.options}}])})();no.create=function(e,t){return new no(C({options:e,typeName:he.ZodUnion},We(t)))};var Lr=function(e){return e instanceof uo?Lr(e.schema):e instanceof Ar?Lr(e.innerType()):e instanceof ao?[e.value]:e instanceof io?e.options:e instanceof oo?lt.objectValues(e.enum):e instanceof so?Lr(e._def.innerType):e instanceof eo?[void 0]:e instanceof to?[null]:e instanceof Er?[void 0].concat(De(Lr(e.unwrap()))):e instanceof mu?[null].concat(De(Lr(e.unwrap()))):e instanceof Pp||e instanceof lo?Lr(e.unwrap()):e instanceof co?Lr(e._def.innerType):[]},GD=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx;if(n.parsedType!==we.object)return Ee(n,{code:ce.invalid_type,expected:we.object,received:n.parsedType}),qe;var r=this.discriminator,u=n.data[r],a=this.optionsMap.get(u);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(Ee(n,{code:ce.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),qe)}},{key:"discriminator",get:function(){return this._def.discriminator}},{key:"options",get:function(){return this._def.options}},{key:"optionsMap",get:function(){return this._def.optionsMap}}],[{key:"create",value:function(t,n,r){var u,a=new Map,i=me(n);try{for(i.s();!(u=i.n()).done;){var o=u.value,c=Lr(o.shape[t]);if(!c.length)throw new Error("A discriminator value for key `".concat(t,"` could not be extracted from all schema options"));var l,h=me(c);try{for(h.s();!(l=h.n()).done;){var p=l.value;if(a.has(p))throw new Error("Discriminator property ".concat(String(t)," has duplicate value ").concat(String(p)));a.set(p,o)}}catch(g){h.e(g)}finally{h.f()}}}catch(g){i.e(g)}finally{i.f()}return new e(C({typeName:he.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a},We(r)))}}])})();function Gs(e,t){var n=Rr(e),r=Rr(t);if(e===t)return{valid:!0,data:e};if(n===we.object&&r===we.object){var u,a=lt.objectKeys(t),i=lt.objectKeys(e).filter(function(F){return a.indexOf(F)!==-1}),o=C(C({},e),t),c=me(i);try{for(c.s();!(u=c.n()).done;){var l=u.value,h=Gs(e[l],t[l]);if(!h.valid)return{valid:!1};o[l]=h.data}}catch(F){c.e(F)}finally{c.f()}return{valid:!0,data:o}}if(n===we.array&&r===we.array){if(e.length!==t.length)return{valid:!1};for(var p=[],g=0;g<e.length;g++){var y=Gs(e[g],t[g]);if(!y.valid)return{valid:!1};p.push(y.data)}return{valid:!0,data:p}}return n===we.date&&r===we.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var ro=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.status,u=n.ctx,a=function(i,o){if(xp(i)||xp(o))return qe;var c=Gs(i.value,o.value);return c.valid?((Sp(i)||Sp(o))&&r.dirty(),{status:r.value,value:c.data}):(Ee(u,{code:ce.invalid_intersection_types}),qe)};return u.common.async?Promise.all([this._def.left._parseAsync({data:u.data,path:u.path,parent:u}),this._def.right._parseAsync({data:u.data,path:u.path,parent:u})]).then(function(i){var o=ct(i,2),c=o[0],l=o[1];return a(c,l)}):a(this._def.left._parseSync({data:u.data,path:u.path,parent:u}),this._def.right._parseSync({data:u.data,path:u.path,parent:u}))}}])})();ro.create=function(e,t,n){return new ro(C({left:e,right:t,typeName:he.ZodIntersection},We(n)))};var vu=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t),u=r.status,a=r.ctx;if(a.parsedType!==we.array)return Ee(a,{code:ce.invalid_type,expected:we.array,received:a.parsedType}),qe;if(a.data.length<this._def.items.length)return Ee(a,{code:ce.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),qe;!this._def.rest&&a.data.length>this._def.items.length&&(Ee(a,{code:ce.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),u.dirty());var i=De(a.data).map(function(o,c){var l=n._def.items[c]||n._def.rest;return l?l._parse(new ir(a,o,a.path,c)):null}).filter(function(o){return!!o});return a.common.async?Promise.all(i).then(function(o){return Sn.mergeArray(u,o)}):Sn.mergeArray(u,i)}},{key:"items",get:function(){return this._def.items}},{key:"rest",value:function(t){return new e(C(C({},this._def),{},{rest:t}))}}])})();vu.create=function(e,t){if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new vu(C({items:e,typeName:he.ZodTuple,rest:null},We(t)))};var JD=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"keySchema",get:function(){return this._def.keyType}},{key:"valueSchema",get:function(){return this._def.valueType}},{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.status,u=n.ctx;if(u.parsedType!==we.object)return Ee(u,{code:ce.invalid_type,expected:we.object,received:u.parsedType}),qe;var a=[],i=this._def.keyType,o=this._def.valueType;for(var c in u.data)a.push({key:i._parse(new ir(u,c,u.path,c)),value:o._parse(new ir(u,u.data[c],u.path,c)),alwaysSet:c in u.data});return u.common.async?Sn.mergeObjectAsync(r,a):Sn.mergeObjectSync(r,a)}},{key:"element",get:function(){return this._def.valueType}}],[{key:"create",value:function(t,n,r){return new e(n instanceof tt?C({keyType:t,valueType:n,typeName:he.ZodRecord},We(r)):C({keyType:Xi.create(),valueType:t,typeName:he.ZodRecord},We(n)))}}])})(),Js=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"keySchema",get:function(){return this._def.keyType}},{key:"valueSchema",get:function(){return this._def.valueType}},{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.status,u=n.ctx;if(u.parsedType!==we.map)return Ee(u,{code:ce.invalid_type,expected:we.map,received:u.parsedType}),qe;var a=this._def.keyType,i=this._def.valueType,o=De(u.data.entries()).map(function(D,_){var T=ct(D,2),w=T[0],S=T[1];return{key:a._parse(new ir(u,w,u.path,[_,"key"])),value:i._parse(new ir(u,S,u.path,[_,"value"]))}});if(u.common.async){var c=new Map;return Promise.resolve().then(Xe(be().m(function D(){var _,T,w,S,x,O;return be().w(function(I){for(;;)switch(I.p=I.n){case 0:_=me(o),I.p=1,_.s();case 2:if((T=_.n()).done){I.n=7;break}return w=T.value,I.n=3,w.key;case 3:return S=I.v,I.n=4,w.value;case 4:if(x=I.v,S.status!=="aborted"&&x.status!=="aborted"){I.n=5;break}return I.a(2,qe);case 5:S.status!=="dirty"&&x.status!=="dirty"||r.dirty(),c.set(S.value,x.value);case 6:I.n=2;break;case 7:I.n=9;break;case 8:I.p=8,O=I.v,_.e(O);case 9:return I.p=9,_.f(),I.f(9);case 10:return I.a(2,{status:r.value,value:c})}},D,null,[[1,8,9,10]])})))}var l,h=new Map,p=me(o);try{for(p.s();!(l=p.n()).done;){var g=l.value,y=g.key,F=g.value;if(y.status==="aborted"||F.status==="aborted")return qe;y.status!=="dirty"&&F.status!=="dirty"||r.dirty(),h.set(y.value,F.value)}}catch(D){p.e(D)}finally{p.f()}return{status:r.value,value:h}}}])})();Js.create=function(e,t,n){return new Js(C({valueType:t,keyType:e,typeName:he.ZodMap},We(n)))};var Ks=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.status,u=n.ctx;if(u.parsedType!==we.set)return Ee(u,{code:ce.invalid_type,expected:we.set,received:u.parsedType}),qe;var a=this._def;a.minSize!==null&&u.data.size<a.minSize.value&&(Ee(u,{code:ce.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&u.data.size>a.maxSize.value&&(Ee(u,{code:ce.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());var i=this._def.valueType;function o(l){var h,p=new Set,g=me(l);try{for(g.s();!(h=g.n()).done;){var y=h.value;if(y.status==="aborted")return qe;y.status==="dirty"&&r.dirty(),p.add(y.value)}}catch(F){g.e(F)}finally{g.f()}return{status:r.value,value:p}}var c=De(u.data.values()).map(function(l,h){return i._parse(new ir(u,l,u.path,h))});return u.common.async?Promise.all(c).then(function(l){return o(l)}):o(c)}},{key:"min",value:function(t,n){return new e(C(C({},this._def),{},{minSize:{value:t,message:Pe.toString(n)}}))}},{key:"max",value:function(t,n){return new e(C(C({},this._def),{},{maxSize:{value:t,message:Pe.toString(n)}}))}},{key:"size",value:function(t,n){return this.min(t,n).max(t,n)}},{key:"nonempty",value:function(t){return this.min(1,t)}}])})();Ks.create=function(e,t){return new Ks(C({valueType:e,minSize:null,maxSize:null,typeName:he.ZodSet},We(t)))};var KD=(function(){function e(){var t;return Ie(this,e),(t=Ze(this,e,arguments)).validate=t.implement,t}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx;if(n.parsedType!==we.function)return Ee(n,{code:ce.invalid_type,expected:we.function,received:n.parsedType}),qe;function r(l,h){return Ls({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,zs(),Ga].filter(function(p){return!!p}),issueData:{code:ce.invalid_arguments,argumentsError:h}})}function u(l,h){return Ls({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,zs(),Ga].filter(function(p){return!!p}),issueData:{code:ce.invalid_return_type,returnTypeError:h}})}var a={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Ja){var o=this;return yn(Xe(be().m(function l(){var h,p,g,y,F,D,_,T=arguments;return be().w(function(w){for(;;)switch(w.n){case 0:for(h=T.length,p=new Array(h),g=0;g<h;g++)p[g]=T[g];return y=new ar([]),w.n=1,o._def.args.parseAsync(p,a).catch(function(S){throw y.addIssue(r(p,S)),y});case 1:return F=w.v,w.n=2,Reflect.apply(i,this,F);case 2:return D=w.v,w.n=3,o._def.returns._def.type.parseAsync(D,a).catch(function(S){throw y.addIssue(u(D,S)),y});case 3:return _=w.v,w.a(2,_)}},l,this)})))}var c=this;return yn(function(){for(var l=arguments.length,h=new Array(l),p=0;p<l;p++)h[p]=arguments[p];var g=c._def.args.safeParse(h,a);if(!g.success)throw new ar([r(h,g.error)]);var y=Reflect.apply(i,this,g.data),F=c._def.returns.safeParse(y,a);if(!F.success)throw new ar([u(y,F.error)]);return F.data})}},{key:"parameters",value:function(){return this._def.args}},{key:"returnType",value:function(){return this._def.returns}},{key:"args",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new e(C(C({},this._def),{},{args:vu.create(n).rest(Hu.create())}))}},{key:"returns",value:function(t){return new e(C(C({},this._def),{},{returns:t}))}},{key:"implement",value:function(t){return this.parse(t)}},{key:"strictImplement",value:function(t){return this.parse(t)}}],[{key:"create",value:function(t,n,r){return new e(C({args:t||vu.create([]).rest(Hu.create()),returns:n||Hu.create(),typeName:he.ZodFunction},We(r)))}}])})(),uo=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"schema",get:function(){return this._def.getter()}},{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx;return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}])})();uo.create=function(e,t){return new uo(C({getter:e,typeName:he.ZodLazy},We(t)))};var ao=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){if(t.data!==this._def.value){var n=this._getOrReturnCtx(t);return Ee(n,{received:n.data,code:ce.invalid_literal,expected:this._def.value}),qe}return{status:"valid",value:t.data}}},{key:"value",get:function(){return this._def.value}}])})();function Bp(e,t){return new io(C({values:e,typeName:he.ZodEnum},We(t)))}ao.create=function(e,t){return new ao(C({value:e,typeName:he.ZodLiteral},We(t)))};var io=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){if(typeof t.data!="string"){var n=this._getOrReturnCtx(t),r=this._def.values;return Ee(n,{expected:lt.joinValues(r),received:n.parsedType,code:ce.invalid_type}),qe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){var u=this._getOrReturnCtx(t),a=this._def.values;return Ee(u,{received:u.data,code:ce.invalid_enum_value,options:a}),qe}return yn(t.data)}},{key:"options",get:function(){return this._def.values}},{key:"enum",get:function(){var t,n={},r=me(this._def.values);try{for(r.s();!(t=r.n()).done;){var u=t.value;n[u]=u}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"Values",get:function(){var t,n={},r=me(this._def.values);try{for(r.s();!(t=r.n()).done;){var u=t.value;n[u]=u}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"Enum",get:function(){var t,n={},r=me(this._def.values);try{for(r.s();!(t=r.n()).done;){var u=t.value;n[u]=u}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"extract",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._def;return e.create(t,C(C({},this._def),n))}},{key:"exclude",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._def;return e.create(this.options.filter(function(r){return!t.includes(r)}),C(C({},this._def),n))}}])})();io.create=Bp;var oo=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=lt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==we.string&&r.parsedType!==we.number){var u=lt.objectValues(n);return Ee(r,{expected:lt.joinValues(u),received:r.parsedType,code:ce.invalid_type}),qe}if(this._cache||(this._cache=new Set(lt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){var a=lt.objectValues(n);return Ee(r,{received:r.data,code:ce.invalid_enum_value,options:a}),qe}return yn(t.data)}},{key:"enum",get:function(){return this._def.values}}])})();oo.create=function(e,t){return new oo(C({values:e,typeName:he.ZodNativeEnum},We(t)))};var Ja=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"unwrap",value:function(){return this._def.type}},{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t).ctx;if(r.parsedType!==we.promise&&r.common.async===!1)return Ee(r,{code:ce.invalid_type,expected:we.promise,received:r.parsedType}),qe;var u=r.parsedType===we.promise?r.data:Promise.resolve(r.data);return yn(u.then(function(a){return n._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})}))}}])})();Ja.create=function(e,t){return new Ja(C({type:e,typeName:he.ZodPromise},We(t)))};var Ar=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"innerType",value:function(){return this._def.schema}},{key:"sourceType",value:function(){return this._def.schema._def.typeName===he.ZodEffects?this._def.schema.sourceType():this._def.schema}},{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t),u=r.status,a=r.ctx,i=this._def.effect||null,o={addIssue:function(F){Ee(a,F),F.fatal?u.abort():u.dirty()},get path(){return a.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){var c=i.transform(a.data,o);if(a.common.async)return Promise.resolve(c).then((function(){var F=Xe(be().m(function D(_){var T;return be().w(function(w){for(;;)switch(w.n){case 0:if(u.value!=="aborted"){w.n=1;break}return w.a(2,qe);case 1:return w.n=2,n._def.schema._parseAsync({data:_,path:a.path,parent:a});case 2:if((T=w.v).status!=="aborted"){w.n=3;break}return w.a(2,qe);case 3:if(T.status!=="dirty"){w.n=4;break}return w.a(2,Qi(T.value));case 4:if(u.value!=="dirty"){w.n=5;break}return w.a(2,Qi(T.value));case 5:return w.a(2,T)}},D)}));return function(D){return F.apply(this,arguments)}})());if(u.value==="aborted")return qe;var l=this._def.schema._parseSync({data:c,path:a.path,parent:a});return l.status==="aborted"?qe:l.status==="dirty"||u.value==="dirty"?Qi(l.value):l}if(i.type==="refinement"){var h=function(F){var D=i.refinement(F,o);if(a.common.async)return Promise.resolve(D);if(D instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return F};if(a.common.async===!1){var p=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return p.status==="aborted"?qe:(p.status==="dirty"&&u.dirty(),h(p.value),{status:u.value,value:p.value})}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(function(F){return F.status==="aborted"?qe:(F.status==="dirty"&&u.dirty(),h(F.value).then(function(){return{status:u.value,value:F.value}}))})}if(i.type==="transform"){if(a.common.async===!1){var g=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!qu(g))return qe;var y=i.transform(g.value,o);if(y instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:u.value,value:y}}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(function(F){return qu(F)?Promise.resolve(i.transform(F.value,o)).then(function(D){return{status:u.value,value:D}}):qe})}lt.assertNever(i)}}])})();Ar.create=function(e,t,n){return new Ar(C({schema:e,typeName:he.ZodEffects,effect:t},We(n)))},Ar.createWithPreprocess=function(e,t,n){return new Ar(C({schema:t,effect:{type:"preprocess",transform:e},typeName:he.ZodEffects},We(n)))};var Er=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){return this._getType(t)===we.undefined?yn(void 0):this._def.innerType._parse(t)}},{key:"unwrap",value:function(){return this._def.innerType}}])})();Er.create=function(e,t){return new Er(C({innerType:e,typeName:he.ZodOptional},We(t)))};var mu=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){return this._getType(t)===we.null?yn(null):this._def.innerType._parse(t)}},{key:"unwrap",value:function(){return this._def.innerType}}])})();mu.create=function(e,t){return new mu(C({innerType:e,typeName:he.ZodNullable},We(t)))};var so=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx,r=n.data;return n.parsedType===we.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}},{key:"removeDefault",value:function(){return this._def.innerType}}])})();so.create=function(e,t){return new so(C({innerType:e,typeName:he.ZodDefault,defaultValue:typeof t.default=="function"?t.default:function(){return t.default}},We(t)))};var co=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t).ctx,u=C(C({},r),{},{common:C(C({},r.common),{},{issues:[]})}),a=this._def.innerType._parse({data:u.data,path:u.path,parent:C({},u)});return Yi(a)?a.then(function(i){return{status:"valid",value:i.status==="valid"?i.value:n._def.catchValue({get error(){return new ar(u.common.issues)},input:u.data})}}):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ar(u.common.issues)},input:u.data})}}},{key:"removeCatch",value:function(){return this._def.innerType}}])})();co.create=function(e,t){return new co(C({innerType:e,typeName:he.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:function(){return t.catch}},We(t)))};var Qs=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){if(this._getType(t)!==we.nan){var n=this._getOrReturnCtx(t);return Ee(n,{code:ce.invalid_type,expected:we.nan,received:n.parsedType}),qe}return{status:"valid",value:t.data}}}])})();Qs.create=function(e){return new Qs(C({typeName:he.ZodNaN},We(e)))};var he,Pp=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx,r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}},{key:"unwrap",value:function(){return this._def.type}}])})(),jp=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t),u=r.status,a=r.ctx;if(a.common.async){var i=(function(){var c=Xe(be().m(function l(){var h;return be().w(function(p){for(;;)switch(p.n){case 0:return p.n=1,n._def.in._parseAsync({data:a.data,path:a.path,parent:a});case 1:if((h=p.v).status!=="aborted"){p.n=2;break}return p.a(2,qe);case 2:if(h.status!=="dirty"){p.n=3;break}return u.dirty(),p.a(2,Qi(h.value));case 3:return p.a(2,n._def.out._parseAsync({data:h.value,path:a.path,parent:a}));case 4:return p.a(2)}},l)}));return function(){return c.apply(this,arguments)}})();return i()}var o=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?qe:o.status==="dirty"?(u.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:a.path,parent:a})}}],[{key:"create",value:function(t,n){return new e({in:t,out:n,typeName:he.ZodPipeline})}}])})(),lo=(function(){function e(){return Ie(this,e),Ze(this,e,arguments)}return $e(e,tt),Be(e,[{key:"_parse",value:function(t){var n=this._def.innerType._parse(t),r=function(u){return qu(u)&&(u.value=Object.freeze(u.value)),u};return Yi(n)?n.then(function(u){return r(u)}):r(n)}},{key:"unwrap",value:function(){return this._def.innerType}}])})();lo.create=function(e,t){return new lo(C({innerType:e,typeName:he.ZodReadonly},We(t)))},Kn.lazycreate,(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(he||(he={})),Xi.create,$s.create,Qs.create,Zs.create,qs.create,Hs.create,Us.create,eo.create,to.create,Vs.create,Hu.create,zr.create,Ws.create,Uu.create,Kn.create,Kn.strictCreate,no.create,GD.create,ro.create,vu.create,JD.create,Js.create,Ks.create,KD.create,uo.create,ao.create,io.create,oo.create,Ja.create,Ar.create,Er.create,mu.create,Ar.createWithPreprocess,jp.create;var Ka=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.prefix,n=e.size,r=n===void 0?16:n,u=e.alphabet,a=u===void 0?"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz":u,i=e.separator,o=i===void 0?"-":i,c=function(){for(var l=a.length,h=new Array(r),p=0;p<r;p++)h[p]=a[Math.random()*l|0];return h.join("")};if(t==null)return c;if(a.includes(o))throw new Rm({argument:"separator",message:'The separator "'.concat(o,'" must not be part of the alphabet "').concat(a,'".')});return function(){return"".concat(t).concat(o).concat(c())}},QD=Ka();function Np(){var e,t,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:globalThis;return r.window?"runtime/browser":(e=r.navigator)!=null&&e.userAgent?"runtime/".concat(r.navigator.userAgent.toLowerCase()):(n=(t=r.process)==null?void 0:t.versions)!=null&&n.node?"runtime/node.js/".concat(r.process.version.substring(0)):r.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function gu(e){if(e==null)return{};var t={};if(e instanceof Headers)e.forEach(function(o,c){t[c.toLowerCase()]=o});else{Array.isArray(e)||(e=Object.entries(e));var n,r=Cu(e);try{for(r.s();!(n=r.n()).done;){var u=To(n.value,2),a=u[0],i=u[1];i!=null&&(t[a.toLowerCase()]=i)}}catch(o){r.e(o)}finally{r.f()}}return t}function Rp(e){for(var t=new Headers(gu(e)),n=t.get("user-agent")||"",r=arguments.length,u=new Array(r>1?r-1:0),a=1;a<r;a++)u[a-1]=arguments[a];return t.set("user-agent",[n].concat(u).filter(Boolean).join(" ")),Object.fromEntries(t.entries())}var YD=/"__proto__"\s*:/,XD=/"constructor"\s*:/;function zp(e){var t=JSON.parse(e);return t===null||Ce(t)!="object"||YD.test(e)===!1&&XD.test(e)===!1?t:(function(n){for(var r=[n];r.length;){var u=r;r=[];var a,i=Cu(u);try{for(i.s();!(a=i.n()).done;){var o=a.value;if(Object.prototype.hasOwnProperty.call(o,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(var c in o){var l=o[c];l&&Ce(l)=="object"&&r.push(l)}}}catch(h){i.e(h)}finally{i.f()}}return n})(t)}var fo=Symbol.for("vercel.ai.validator");function eb(e){return(function(r){return Ce(r)=="object"&&r!==null&&fo in r&&r[fo]===!0&&"validate"in r})(e)?e:typeof e=="function"?e():(t=e,n=(function(){var r=ht(Te().m(function u(a){var i;return Te().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,t["~standard"].validate(a);case 1:return i=o.v,o.a(2,i.issues==null?{success:!0,value:i.value}:{success:!1,error:new Li({value:a,cause:i.issues})})}},u)}));return function(u){return r.apply(this,arguments)}})(),Hn(Hn({},fo,!0),"validate",n));var t,n}function Lp(e){return Ys.apply(this,arguments)}function Ys(){return Ys=ht(Te().m(function e(t){var n,r,u;return Te().w(function(a){for(;;)switch(a.n){case 0:return n=t.value,r=t.schema,a.n=1,Xs({value:n,schema:r});case 1:if((u=a.v).success){a.n=2;break}throw Li.wrap({value:n,cause:u.error});case 2:return a.a(2,u.value)}},e)})),Ys.apply(this,arguments)}function Xs(e){return ec.apply(this,arguments)}function ec(){return ec=ht(Te().m(function e(t){var n,r,u,a,i;return Te().w(function(o){for(;;)switch(o.p=o.n){case 0:if(n=t.value,r=t.schema,u=eb(r),o.p=1,u.validate!=null){o.n=2;break}return o.a(2,{success:!0,value:n,rawValue:n});case 2:return o.n=3,u.validate(n);case 3:return a=o.v,o.a(2,a.success?{success:!0,value:a.value,rawValue:n}:{success:!1,error:Li.wrap({value:n,cause:a.error}),rawValue:n});case 4:return o.p=4,i=o.v,o.a(2,{success:!1,error:Li.wrap({value:n,cause:i}),rawValue:n})}},e,null,[[1,4]])})),ec.apply(this,arguments)}function po(e){return tc.apply(this,arguments)}function tc(){return tc=ht(Te().m(function e(t){var n,r,u,a,i;return Te().w(function(o){for(;;)switch(o.p=o.n){case 0:if(n=t.text,r=t.schema,o.p=1,u=(function(c){var l=Error.stackTraceLimit;try{Error.stackTraceLimit=0}catch(h){return zp(c)}try{return zp(c)}finally{Error.stackTraceLimit=l}})(n),r!=null){o.n=2;break}a={success:!0,value:u,rawValue:u},o.n=4;break;case 2:return o.n=3,Xs({value:u,schema:r});case 3:a=o.v;case 4:return o.a(2,a);case 5:return o.p=5,i=o.v,o.a(2,{success:!1,error:gd.isInstance(i)?i:new gd({text:n,cause:i}),rawValue:void 0})}},e,null,[[1,5]])})),tc.apply(this,arguments)}function Wu(e){return nc.apply(this,arguments)}function nc(){return nc=ht(Te().m(function e(t){return Te().w(function(n){for(;;)if(n.n===0)return n.a(2,(typeof t=="function"&&(t=t()),Promise.resolve(t)))},e)})),nc.apply(this,arguments)}var tb=function(e,t){for(var n=0;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString()].concat(Ke(t.slice(n))).join("/")},nb=Symbol("Let zodToJsonSchema decide on which parser to use"),Mp={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function $p(e,t){return Dt(e.type._def,t)}function Zp(e,t,n){var r=n!=null?n:t.dateStrategy;if(Array.isArray(r))return{anyOf:r.map(function(u,a){return Zp(e,t,u)})};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return rb(e)}}var rb=function(e){var t,n={type:"integer",format:"unix-time"},r=Cu(e.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;switch(u.kind){case"min":n.minimum=u.value;break;case"max":n.maximum=u.value}}}catch(a){r.e(a)}finally{r.f()}return n},rc=void 0,ub=/^[cC][^\s-]{8,}$/,ab=/^[0-9a-z]+$/,ib=/^[0-9A-HJKMNP-TV-Z]{26}$/,ob=/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,sb=function(){return rc===void 0&&(rc=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),rc},cb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,lb=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,fb=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,db=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,pb=/^[a-zA-Z0-9_-]{21}$/,hb=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;function qp(e,t){var n={type:"string"};if(e.checks){var r,u=Cu(e.checks);try{for(u.s();!(r=u.n()).done;){var a=r.value;switch(a.kind){case"min":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,a.value):a.value;break;case"max":n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,a.value):a.value;break;case"email":switch(t.emailStrategy){case"format:email":Qn(n,"email",a.message,t);break;case"format:idn-email":Qn(n,"idn-email",a.message,t);break;case"pattern:zod":dn(n,ob,a.message,t)}break;case"url":Qn(n,"uri",a.message,t);break;case"uuid":Qn(n,"uuid",a.message,t);break;case"regex":dn(n,a.regex,a.message,t);break;case"cuid":dn(n,ub,a.message,t);break;case"cuid2":dn(n,ab,a.message,t);break;case"startsWith":dn(n,RegExp("^".concat(uc(a.value,t))),a.message,t);break;case"endsWith":dn(n,RegExp("".concat(uc(a.value,t),"$")),a.message,t);break;case"datetime":Qn(n,"date-time",a.message,t);break;case"date":Qn(n,"date",a.message,t);break;case"time":Qn(n,"time",a.message,t);break;case"duration":Qn(n,"duration",a.message,t);break;case"length":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,a.value):a.value,n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,a.value):a.value;break;case"includes":dn(n,RegExp(uc(a.value,t)),a.message,t);break;case"ip":a.version!=="v6"&&Qn(n,"ipv4",a.message,t),a.version!=="v4"&&Qn(n,"ipv6",a.message,t);break;case"base64url":dn(n,db,a.message,t);break;case"jwt":dn(n,hb,a.message,t);break;case"cidr":a.version!=="v6"&&dn(n,cb,a.message,t),a.version!=="v4"&&dn(n,lb,a.message,t);break;case"emoji":dn(n,sb(),a.message,t);break;case"ulid":dn(n,ib,a.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":Qn(n,"binary",a.message,t);break;case"contentEncoding:base64":n.contentEncoding="base64";break;case"pattern:zod":dn(n,fb,a.message,t)}break;case"nanoid":dn(n,pb,a.message,t)}}}catch(i){u.e(i)}finally{u.f()}}return n}function uc(e,t){return t.patternStrategy==="escape"?(function(n){for(var r="",u=0;u<n.length;u++)vb.has(n[u])||(r+="\\"),r+=n[u];return r})(e):e}var vb=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function Qn(e,t,n,r){var u;e.format||(u=e.anyOf)!=null&&u.some(function(a){return a.format})?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push(le({format:t},n&&r.errorMessages&&{errorMessage:{format:n}}))):e.format=t}function dn(e,t,n,r){var u;e.pattern||(u=e.allOf)!=null&&u.some(function(a){return a.pattern})?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push(le({pattern:Hp(t,r)},n&&r.errorMessages&&{errorMessage:{pattern:n}}))):e.pattern=Hp(t,r)}function Hp(e,t){var n;if(!t.applyRegexFlags||!e.flags)return e.source;for(var r=e.flags.includes("i"),u=e.flags.includes("m"),a=e.flags.includes("s"),i=r?e.source.toLowerCase():e.source,o="",c=!1,l=!1,h=!1,p=0;p<i.length;p++)if(c)o+=i[p],c=!1;else{if(r){if(l){if(i[p].match(/[a-z]/)){h?(o+=i[p],o+="".concat(i[p-2],"-").concat(i[p]).toUpperCase(),h=!1):i[p+1]==="-"&&((n=i[p+2])!=null&&n.match(/[a-z]/))?(o+=i[p],h=!0):o+="".concat(i[p]).concat(i[p].toUpperCase());continue}}else if(i[p].match(/[a-z]/)){o+="[".concat(i[p]).concat(i[p].toUpperCase(),"]");continue}}if(u){if(i[p]==="^"){o+=`(^|(?<=[\r
|
|
115
|
-
]))`;continue}if(i[
|
|
116
|
-
]))`;continue}}a&&i[
|
|
117
|
-
`):"[".concat(i[
|
|
118
|
-
]`):(o+=i[p],i[p]==="\\"?c=!0:l&&i[p]==="]"?l=!1:l||i[p]!=="["||(l=!0))}try{new RegExp(o)}catch(g){return console.warn("Could not convert regex pattern at ".concat(t.currentPath.join("/")," to a flag-independent form! Falling back to the flag-ignorant source")),e.source}return o}function Up(e,t){var n,r,u,a,i,o,c={type:"object",additionalProperties:(n=Dt(e.valueType._def,le(le({},t),{},{currentPath:[].concat(Ke(t.currentPath),["additionalProperties"])})))!=null?n:t.allowedAdditionalProperties};if(((r=e.keyType)==null?void 0:r._def.typeName)===he.ZodString&&((u=e.keyType._def.checks)!=null&&u.length)){var l=qp(e.keyType._def,t);l.type;var h=xr(l,gv);return le(le({},c),{},{propertyNames:h})}if(((a=e.keyType)==null?void 0:a._def.typeName)===he.ZodEnum)return le(le({},c),{},{propertyNames:{enum:e.keyType._def.values}});if(((i=e.keyType)==null?void 0:i._def.typeName)===he.ZodBranded&&e.keyType._def.type._def.typeName===he.ZodString&&((o=e.keyType._def.type._def.checks)!=null&&o.length)){var p=$p(e.keyType._def,t);p.type;var g=xr(p,yv);return le(le({},c),{},{propertyNames:g})}return c}var ac={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function mb(e){try{return e.isOptional()}catch(t){return!0}}var gb=function(e,t,n){switch(t){case he.ZodString:return qp(e,n);case he.ZodNumber:return(function(r){var u={type:"number"};if(!r.checks)return u;var a,i=Cu(r.checks);try{for(i.s();!(a=i.n()).done;){var o=a.value;switch(o.kind){case"int":u.type="integer";break;case"min":o.inclusive?u.minimum=o.value:u.exclusiveMinimum=o.value;break;case"max":o.inclusive?u.maximum=o.value:u.exclusiveMaximum=o.value;break;case"multipleOf":u.multipleOf=o.value}}}catch(c){i.e(c)}finally{i.f()}return u})(e);case he.ZodObject:return(function(r,u){var a={type:"object",properties:{}},i=[],o=r.shape();for(var c in o){var l=o[c];if(l!==void 0&&l._def!==void 0){var h=mb(l),p=Dt(l._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["properties",c]),propertyPath:[].concat(Ke(u.currentPath),["properties",c])}));p!==void 0&&(a.properties[c]=p,h||i.push(c))}}i.length&&(a.required=i);var g=(function(y,F){if(y.catchall._def.typeName!=="ZodNever")return Dt(y.catchall._def,le(le({},F),{},{currentPath:[].concat(Ke(F.currentPath),["additionalProperties"])}));switch(y.unknownKeys){case"passthrough":return F.allowedAdditionalProperties;case"strict":return F.rejectedAdditionalProperties;case"strip":return F.removeAdditionalStrategy==="strict"?F.allowedAdditionalProperties:F.rejectedAdditionalProperties}})(r,u);return g!==void 0&&(a.additionalProperties=g),a})(e,n);case he.ZodBigInt:return(function(r){var u={type:"integer",format:"int64"};if(!r.checks)return u;var a,i=Cu(r.checks);try{for(i.s();!(a=i.n()).done;){var o=a.value;switch(o.kind){case"min":o.inclusive?u.minimum=o.value:u.exclusiveMinimum=o.value;break;case"max":o.inclusive?u.maximum=o.value:u.exclusiveMaximum=o.value;break;case"multipleOf":u.multipleOf=o.value}}}catch(c){i.e(c)}finally{i.f()}return u})(e);case he.ZodBoolean:return{type:"boolean"};case he.ZodDate:return Zp(e,n);case he.ZodUndefined:return{not:{}};case he.ZodNull:return{type:"null"};case he.ZodArray:return(function(r,u){var a,i,o,c={type:"array"};return(a=r.type)!=null&&a._def&&((o=(i=r.type)==null?void 0:i._def)==null?void 0:o.typeName)!==he.ZodAny&&(c.items=Dt(r.type._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["items"])}))),r.minLength&&(c.minItems=r.minLength.value),r.maxLength&&(c.maxItems=r.maxLength.value),r.exactLength&&(c.minItems=r.exactLength.value,c.maxItems=r.exactLength.value),c})(e,n);case he.ZodUnion:case he.ZodDiscriminatedUnion:return(function(r,u){var a=r.options instanceof Map?Array.from(r.options.values()):r.options;if(a.every(function(l){return l._def.typeName in ac&&(!l._def.checks||!l._def.checks.length)})){var i=a.reduce(function(l,h){var p=ac[h._def.typeName];return p&&!l.includes(p)?[].concat(Ke(l),[p]):l},[]);return{type:i.length>1?i:i[0]}}if(a.every(function(l){return l._def.typeName==="ZodLiteral"&&!l.description})){var o=a.reduce(function(l,h){var p=Ce(h._def.value);switch(p){case"string":case"number":case"boolean":return[].concat(Ke(l),[p]);case"bigint":return[].concat(Ke(l),["integer"]);case"object":if(h._def.value===null)return[].concat(Ke(l),["null"]);default:return l}},[]);if(o.length===a.length){var c=o.filter(function(l,h,p){return p.indexOf(l)===h});return{type:c.length>1?c:c[0],enum:a.reduce(function(l,h){return l.includes(h._def.value)?l:[].concat(Ke(l),[h._def.value])},[])}}}else if(a.every(function(l){return l._def.typeName==="ZodEnum"}))return{type:"string",enum:a.reduce(function(l,h){return[].concat(Ke(l),Ke(h._def.values.filter(function(p){return!l.includes(p)})))},[])};return(function(l,h){var p=(l.options instanceof Map?Array.from(l.options.values()):l.options).map(function(g,y){return Dt(g._def,le(le({},h),{},{currentPath:[].concat(Ke(h.currentPath),["anyOf","".concat(y)])}))}).filter(function(g){return!!g&&(!h.strictUnions||Ce(g)=="object"&&Object.keys(g).length>0)});return p.length?{anyOf:p}:void 0})(r,u)})(e,n);case he.ZodIntersection:return(function(r,u){var a=[Dt(r.left._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["allOf","0"])})),Dt(r.right._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["allOf","1"])}))].filter(function(o){return!!o}),i=[];return a.forEach(function(o){if("type"in(l=o)&&l.type==="string"||!("allOf"in l)){var c=o;"additionalProperties"in o&&o.additionalProperties===!1&&(o.additionalProperties,c=xr(o,Dv)),i.push(c)}else i.push.apply(i,Ke(o.allOf));var l}),i.length?{allOf:i}:void 0})(e,n);case he.ZodTuple:return(function(r,u){return r.rest?{type:"array",minItems:r.items.length,items:r.items.map(function(a,i){return Dt(a._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["items","".concat(i)])}))}).reduce(function(a,i){return i===void 0?a:[].concat(Ke(a),[i])},[]),additionalItems:Dt(r.rest._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["additionalItems"])}))}:{type:"array",minItems:r.items.length,maxItems:r.items.length,items:r.items.map(function(a,i){return Dt(a._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["items","".concat(i)])}))}).reduce(function(a,i){return i===void 0?a:[].concat(Ke(a),[i])},[])}})(e,n);case he.ZodRecord:return Up(e,n);case he.ZodLiteral:return(function(r){var u=Ce(r.value);return u!=="bigint"&&u!=="number"&&u!=="boolean"&&u!=="string"?{type:Array.isArray(r.value)?"array":"object"}:{type:u==="bigint"?"integer":u,const:r.value}})(e);case he.ZodEnum:return(function(r){return{type:"string",enum:Array.from(r.values)}})(e);case he.ZodNativeEnum:return(function(r){var u=r.values,a=Object.keys(r.values).filter(function(o){return typeof u[u[o]]!="number"}).map(function(o){return u[o]}),i=Array.from(new Set(a.map(function(o){return Ce(o)})));return{type:i.length===1?i[0]==="string"?"string":"number":["string","number"],enum:a}})(e);case he.ZodNullable:return(function(r,u){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(r.innerType._def.typeName)&&(!r.innerType._def.checks||!r.innerType._def.checks.length))return{type:[ac[r.innerType._def.typeName],"null"]};var a=Dt(r.innerType._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["anyOf","0"])}));return a&&{anyOf:[a,{type:"null"}]}})(e,n);case he.ZodOptional:return(function(r,u){var a;if(u.currentPath.toString()===((a=u.propertyPath)==null?void 0:a.toString()))return Dt(r.innerType._def,u);var i=Dt(r.innerType._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["anyOf","1"])}));return i?{anyOf:[{not:{}},i]}:{}})(e,n);case he.ZodMap:return(function(r,u){return u.mapStrategy==="record"?Up(r,u):{type:"array",maxItems:125,items:{type:"array",items:[Dt(r.keyType._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["items","items","0"])}))||{},Dt(r.valueType._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["items","items","1"])}))||{}],minItems:2,maxItems:2}}})(e,n);case he.ZodSet:return(function(r,u){var a={type:"array",uniqueItems:!0,items:Dt(r.valueType._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["items"])}))};return r.minSize&&(a.minItems=r.minSize.value),r.maxSize&&(a.maxItems=r.maxSize.value),a})(e,n);case he.ZodLazy:return function(){return e.getter()._def};case he.ZodPromise:return(function(r,u){return Dt(r.type._def,u)})(e,n);case he.ZodNaN:case he.ZodNever:return{not:{}};case he.ZodEffects:return(function(r,u){return u.effectStrategy==="input"?Dt(r.schema._def,u):{}})(e,n);case he.ZodAny:case he.ZodUnknown:return{};case he.ZodDefault:return(function(r,u){return le(le({},Dt(r.innerType._def,u)),{},{default:r.defaultValue()})})(e,n);case he.ZodBranded:return $p(e,n);case he.ZodReadonly:case he.ZodCatch:return(function(r,u){return Dt(r.innerType._def,u)})(e,n);case he.ZodPipeline:return(function(r,u){if(u.pipeStrategy==="input")return Dt(r.in._def,u);if(u.pipeStrategy==="output")return Dt(r.out._def,u);var a=Dt(r.in._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["allOf","0"])}));return{allOf:[a,Dt(r.out._def,le(le({},u),{},{currentPath:[].concat(Ke(u.currentPath),["allOf",a?"1":"0"])}))].filter(function(i){return i!==void 0})}})(e,n);case he.ZodFunction:case he.ZodVoid:case he.ZodSymbol:default:return}};function Dt(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],u=t.seen.get(e);if(t.override){var a=(n=t.override)==null?void 0:n.call(t,e,t,u,r);if(a!==nb)return a}if(u&&!r){var i=yb(u,t);if(i!==void 0)return i}var o={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,o);var c=gb(e,e.typeName,t),l=typeof c=="function"?Dt(c(),t):c;if(l&&Db(e,t,l),t.postProcess){var h=t.postProcess(l,e,t);return o.jsonSchema=l,h}return o.jsonSchema=l,l}var yb=function(e,t){switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:tb(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every(function(n,r){return t.currentPath[r]===n})?(console.warn("Recursive reference detected at ".concat(t.currentPath.join("/"),"! Defaulting to any")),{}):t.$refStrategy==="seen"?{}:void 0}},Db=function(e,t,n){return e.description&&(n.description=e.description),n},bb=function(e,t){var n,r=(function(l){var h=(function(g){return typeof g=="string"?le(le({},Mp),{},{name:g}):le(le({},Mp),g)})(l),p=h.name!==void 0?[].concat(Ke(h.basePath),[h.definitionPath,h.name]):h.basePath;return le(le({},h),{},{currentPath:p,propertyPath:void 0,seen:new Map(Object.entries(h.definitions).map(function(g){var y=To(g,2),F=y[0],D=y[1];return[D._def,{def:D._def,path:[].concat(Ke(h.basePath),[h.definitionPath,F]),jsonSchema:void 0}]}))})})(t),u=Ce(t)=="object"&&t.definitions?Object.entries(t.definitions).reduce(function(l,h){var p,g=To(h,2),y=g[0],F=g[1];return le(le({},l),{},Hn({},y,(p=Dt(F._def,le(le({},r),{},{currentPath:[].concat(Ke(r.basePath),[r.definitionPath,y])}),!0))!=null?p:{}))},{}):void 0,a=typeof t=="string"?t:(t==null?void 0:t.nameStrategy)==="title"||t==null?void 0:t.name,i=(n=Dt(e._def,a===void 0?r:le(le({},r),{},{currentPath:[].concat(Ke(r.basePath),[r.definitionPath,a])}),!1))!=null?n:{},o=Ce(t)=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;o!==void 0&&(i.title=o);var c=a===void 0?u?le(le({},i),{},Hn({},r.definitionPath,u)):i:Hn({$ref:[].concat(Ke(r.$refStrategy==="relative"?[]:r.basePath),[r.definitionPath,a]).join("/")},r.definitionPath,le(le({},u),{},Hn({},a,i)));return c.$schema="http://json-schema.org/draft-07/schema#",c};function Vp(e,t){return(function(n){return"_zod"in n})(e)?(function(n){return oc(function(){return(function(u,a){if(u instanceof Xd){var i,o=new fp(a),c={},l=me(u._idmap.entries());try{for(l.s();!(i=l.n()).done;){var h=ct(i.value,2),p=(h[0],h[1]);o.process(p)}}catch(O){l.e(O)}finally{l.f()}var g,y={},F={registry:u,uri:a==null?void 0:a.uri,defs:c},D=me(u._idmap.entries());try{for(D.s();!(g=D.n()).done;){var _=ct(g.value,2),T=_[0],w=_[1];y[T]=o.emit(w,C(C({},a),{},{external:F}))}}catch(O){D.e(O)}finally{D.f()}if(Object.keys(c).length>0){var S=o.target==="draft-2020-12"?"$defs":"definitions";y.__shared=it({},S,c)}return{schemas:y}}var x=new fp(a);return x.process(u),x.emit(u,a)})(n,{target:"draft-7",io:"output",reused:"inline"})},{validate:(r=ht(Te().m(function u(a){var i;return Te().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,dp(n,a);case 1:return i=o.v,o.a(2,i.success?{success:!0,value:i.data}:{success:!1,error:i.error})}},u)})),function(u){return r.apply(this,arguments)})});var r})(e):(function(n){return oc(function(){return bb(n,{$refStrategy:"none"})},{validate:(r=ht(Te().m(function u(a){var i;return Te().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,n.safeParseAsync(a);case 1:return i=o.v,o.a(2,i.success?{success:!0,value:i.data}:{success:!1,error:i.error})}},u)})),function(u){return r.apply(this,arguments)})});var r})(e)}var ic=Symbol.for("vercel.ai.schema");function oc(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).validate;return Hn((function(n,r,u,a){var i={configurable:!0,enumerable:!0};return i[n]=a,Object.defineProperty(r,u,i)})("get",Hn(Hn(Hn({},ic,!0),"_type",void 0),fo,!0),"jsonSchema",function(){return typeof e=="function"&&(e=e()),e}),"validate",t)}var Wp,Ab=Object.defineProperty,Gp="AI_NoObjectGeneratedError",Jp="vercel.ai.error.".concat(Gp),Eb=Symbol.for(Jp),Kp=(function(){function e(t){var n,r=t.message,u=r===void 0?"No object generated.":r,a=t.cause,i=t.text,o=t.response,c=t.usage,l=t.finishReason;return Zn(this,e),(n=tu(this,e,[{name:Gp,message:u,cause:a}]))[Wp]=!0,n.text=i,n.response=o,n.usage=c,n.finishReason=l,n}return nu(e,Br),qn(e,null,[{key:"isInstance",value:function(t){return Br.hasMarker(t,Jp)}}])})();Wp=Eb;var Qp="5.0.93",Yp=Nn([Re(),Ki(Uint8Array),Ki(ArrayBuffer),wp(function(e){var t,n;return(n=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null&&n},{message:"Must be a Buffer"})]),Qa=new CD({type:"lazy",getter:function(){return Nn([lD(),Re(),iD(),gn(),js(Re(),Qa),Zu(Qa)])}}),Rt=js(Re(),js(Re(),Qa)),Xp=rn({type:Ye("text"),text:Re(),providerOptions:Rt.optional()}),Fb=rn({type:Ye("image"),image:Nn([Yp,Ki(URL)]),mediaType:Re().optional(),providerOptions:Rt.optional()}),eh=rn({type:Ye("file"),data:Nn([Yp,Ki(URL)]),filename:Re().optional(),mediaType:Re(),providerOptions:Rt.optional()}),_b=rn({type:Ye("reasoning"),text:Re(),providerOptions:Rt.optional()}),Cb=rn({type:Ye("tool-call"),toolCallId:Re(),toolName:Re(),input:ur(),providerOptions:Rt.optional(),providerExecuted:gn().optional()}),kb=new hD(C({type:"union",options:[rn({type:Ye("text"),value:Re()}),rn({type:Ye("json"),value:Qa}),rn({type:Ye("error-text"),value:Re()}),rn({type:Ye("error-json"),value:Qa}),rn({type:Ye("content"),value:Zu(Nn([rn({type:Ye("text"),text:Re()}),rn({type:Ye("media"),data:Re(),mediaType:Re()})]))})],discriminator:"type"},xe(void 0))),th=rn({type:Ye("tool-result"),toolCallId:Re(),toolName:Re(),output:kb,providerOptions:Rt.optional()}),wb=rn({role:Ye("system"),content:Re(),providerOptions:Rt.optional()}),xb=rn({role:Ye("user"),content:Nn([Re(),Zu(Nn([Xp,Fb,eh]))]),providerOptions:Rt.optional()}),Sb=rn({role:Ye("assistant"),content:Nn([Re(),Zu(Nn([Xp,eh,_b,Cb,th]))]),providerOptions:Rt.optional()});Nn([wb,xb,Sb,rn({role:Ye("tool"),content:Zu(th),providerOptions:Rt.optional()})]),Ka({prefix:"aitxt",size:24}),TransformStream;var Tb=(function(){var e;return function(){return e==null&&(e=Vp(Nn([It({type:Ye("text-start"),id:Re(),providerMetadata:Rt.optional()}),It({type:Ye("text-delta"),id:Re(),delta:Re(),providerMetadata:Rt.optional()}),It({type:Ye("text-end"),id:Re(),providerMetadata:Rt.optional()}),It({type:Ye("error"),errorText:Re()}),It({type:Ye("tool-input-start"),toolCallId:Re(),toolName:Re(),providerExecuted:gn().optional(),dynamic:gn().optional()}),It({type:Ye("tool-input-delta"),toolCallId:Re(),inputTextDelta:Re()}),It({type:Ye("tool-input-available"),toolCallId:Re(),toolName:Re(),input:ur(),providerExecuted:gn().optional(),providerMetadata:Rt.optional(),dynamic:gn().optional()}),It({type:Ye("tool-input-error"),toolCallId:Re(),toolName:Re(),input:ur(),providerExecuted:gn().optional(),providerMetadata:Rt.optional(),dynamic:gn().optional(),errorText:Re()}),It({type:Ye("tool-output-available"),toolCallId:Re(),output:ur(),providerExecuted:gn().optional(),dynamic:gn().optional(),preliminary:gn().optional()}),It({type:Ye("tool-output-error"),toolCallId:Re(),errorText:Re(),providerExecuted:gn().optional(),dynamic:gn().optional()}),It({type:Ye("reasoning-start"),id:Re(),providerMetadata:Rt.optional()}),It({type:Ye("reasoning-delta"),id:Re(),delta:Re(),providerMetadata:Rt.optional()}),It({type:Ye("reasoning-end"),id:Re(),providerMetadata:Rt.optional()}),It({type:Ye("source-url"),sourceId:Re(),url:Re(),title:Re().optional(),providerMetadata:Rt.optional()}),It({type:Ye("source-document"),sourceId:Re(),mediaType:Re(),title:Re(),filename:Re().optional(),providerMetadata:Rt.optional()}),It({type:Ye("file"),url:Re(),mediaType:Re(),providerMetadata:Rt.optional()}),It({type:wp(function(t){return typeof t=="string"&&t.startsWith("data-")},{message:'Type must start with "data-"'}),id:Re().optional(),data:ur(),transient:gn().optional()}),It({type:Ye("start-step")}),It({type:Ye("finish-step")}),It({type:Ye("start"),messageId:Re().optional(),messageMetadata:ur().optional()}),It({type:Ye("finish"),finishReason:bp(["stop","length","content-filter","tool-calls","error","other","unknown"]).optional(),messageMetadata:ur().optional()}),It({type:Ye("abort")}),It({type:Ye("message-metadata"),messageMetadata:ur()})]))),e}})();function nh(e,t){if(e!==void 0||t!==void 0){if(e===void 0)return t;if(t===void 0)return e;var n=le({},e);for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var u=t[r];if(u===void 0)continue;var a=r in e?e[r]:void 0,i=!(u===null||Ce(u)!="object"||Array.isArray(u)||u instanceof Date||u instanceof RegExp),o=!(a==null||Ce(a)!="object"||Array.isArray(a)||a instanceof Date||a instanceof RegExp);n[r]=i&&o?nh(a,u):u}return n}}function Ob(e){var t=["ROOT"],n=-1,r=null;function u(y,F,D){switch(y){case'"':n=F,t.pop(),t.push(D),t.push("INSIDE_STRING");break;case"f":case"t":case"n":n=F,r=F,t.pop(),t.push(D),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(D),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n=F,t.pop(),t.push(D),t.push("INSIDE_NUMBER");break;case"{":n=F,t.pop(),t.push(D),t.push("INSIDE_OBJECT_START");break;case"[":n=F,t.pop(),t.push(D),t.push("INSIDE_ARRAY_START")}}function a(y,F){switch(y){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":n=F,t.pop()}}function i(y,F){switch(y){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":n=F,t.pop()}}for(var o=0;o<e.length;o++){var c=e[o];switch(t[t.length-1]){case"ROOT":u(c,o,"FINISH");break;case"INSIDE_OBJECT_START":switch(c){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY");break;case"}":n=o,t.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":c==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":c==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":c===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":u(c,o,"INSIDE_OBJECT_AFTER_VALUE");break;case"INSIDE_OBJECT_AFTER_VALUE":a(c,o);break;case"INSIDE_STRING":switch(c){case'"':t.pop(),n=o;break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:n=o}break;case"INSIDE_ARRAY_START":c==="]"?(n=o,t.pop()):(n=o,u(c,o,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(c){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":n=o,t.pop();break;default:n=o}break;case"INSIDE_ARRAY_AFTER_COMMA":u(c,o,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),n=o;break;case"INSIDE_NUMBER":switch(c){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n=o;break;case"e":case"E":case"-":case".":break;case",":t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(c,o),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&a(c,o);break;case"}":t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&a(c,o);break;case"]":t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(c,o);break;default:t.pop()}break;case"INSIDE_LITERAL":var l=e.substring(r,o+1);"false".startsWith(l)||"true".startsWith(l)||"null".startsWith(l)?n=o:(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?a(c,o):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(c,o))}}for(var h=e.slice(0,n+1),p=t.length-1;p>=0;p--)switch(t[p]){case"INSIDE_STRING":h+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":h+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":h+="]";break;case"INSIDE_LITERAL":var g=e.substring(r,e.length);"true".startsWith(g)?h+="true".slice(g.length):"false".startsWith(g)?h+="false".slice(g.length):"null".startsWith(g)&&(h+="null".slice(g.length))}return h}function rh(e){return sc.apply(this,arguments)}function sc(){return sc=ht(Te().m(function e(t){var n,r;return Te().w(function(u){for(;;)switch(u.n){case 0:if(t!==void 0){u.n=1;break}return u.a(2,{value:void 0,state:"undefined-input"});case 1:return u.n=2,po({text:t});case 2:if(!(n=u.v).success){u.n=3;break}r={value:n.value,state:"successful-parse"},u.n=5;break;case 3:return u.n=4,po({text:Ob(t)});case 4:n=u.v,r=n.success?{value:n.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"};case 5:return u.a(2,r)}},e)})),sc.apply(this,arguments)}function ho(e){return e.type.startsWith("tool-")}function cc(e){return ho(e)||(function(t){return t.type==="dynamic-tool"})(e)}function uh(e){return e.type.split("-").slice(1).join("-")}function Ib(e){var t=e.lastMessage,n=e.messageId;return{message:(t==null?void 0:t.role)==="assistant"?t:{id:n,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function Bb(e){var t=e.stream,n=e.messageMetadataSchema,r=e.dataPartSchemas,u=e.runUpdateMessageJob,a=e.onError,i=e.onToolCall,o=e.onData;return t.pipeThrough(new TransformStream({transform:function(c,l){return ht(Te().m(function h(){return Te().w(function(p){for(;;)switch(p.n){case 0:return p.n=1,u((function(){var g=ht(Te().m(function y(F){var D,_,T,w,S,x,O,I,B,d,q,N,Z,z,H,L,K,J,W,ee,ue,ye,oe,ae,Y,ie,re,de,pe;return Te().w(function(ve){for(;;)switch(ve.n){case 0:N=function(){return N=ht(Te().m(function ke(ze){var Se;return Te().w(function(je){for(;;)switch(je.n){case 0:if(ze==null){je.n=2;break}if(Se=D.message.metadata!=null?nh(D.message.metadata,ze):ze,n==null){je.n=1;break}return je.n=1,Lp({value:Se,schema:n});case 1:D.message.metadata=Se;case 2:return je.a(2)}},ke)})),N.apply(this,arguments)},q=function(ke){return N.apply(this,arguments)},d=function(ke){var ze,Se,je=D.message.parts.find(function(Bt){return Bt.type==="dynamic-tool"&&Bt.toolCallId===ke.toolCallId}),Me=ke,ft=je;je!=null?(je.state=ke.state,ft.toolName=ke.toolName,ft.input=Me.input,ft.output=Me.output,ft.errorText=Me.errorText,ft.rawInput=(ze=Me.rawInput)!=null?ze:ft.rawInput,ft.preliminary=Me.preliminary,ft.providerExecuted=(Se=Me.providerExecuted)!=null?Se:je.providerExecuted,Me.providerMetadata!=null&&je.state==="input-available"&&(je.callProviderMetadata=Me.providerMetadata)):D.message.parts.push(le({type:"dynamic-tool",toolName:ke.toolName,toolCallId:ke.toolCallId,state:ke.state,input:Me.input,output:Me.output,errorText:Me.errorText,preliminary:Me.preliminary,providerExecuted:Me.providerExecuted},Me.providerMetadata!=null?{callProviderMetadata:Me.providerMetadata}:{}))},B=function(ke){var ze,Se=D.message.parts.find(function(ft){return ho(ft)&&ft.toolCallId===ke.toolCallId}),je=ke,Me=Se;Se!=null?(Se.state=ke.state,Me.input=je.input,Me.output=je.output,Me.errorText=je.errorText,Me.rawInput=je.rawInput,Me.preliminary=je.preliminary,Me.providerExecuted=(ze=je.providerExecuted)!=null?ze:Se.providerExecuted,je.providerMetadata!=null&&Se.state==="input-available"&&(Se.callProviderMetadata=je.providerMetadata)):D.message.parts.push(le({type:"tool-".concat(ke.toolName),toolCallId:ke.toolCallId,state:ke.state,input:je.input,output:je.output,rawInput:je.rawInput,errorText:je.errorText,providerExecuted:je.providerExecuted,preliminary:je.preliminary},je.providerMetadata!=null?{callProviderMetadata:je.providerMetadata}:{}))},I=function(ke){var ze=D.message.parts.filter(function(Se){return Se.type==="dynamic-tool"}).find(function(Se){return Se.toolCallId===ke});if(ze==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return ze},O=function(ke){var ze=D.message.parts.filter(ho).find(function(Se){return Se.toolCallId===ke});if(ze==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return ze},D=F.state,_=F.write,pe=c.type,ve.n=pe==="text-start"?1:pe==="text-delta"?2:pe==="text-end"?3:pe==="reasoning-start"?4:pe==="reasoning-delta"?5:pe==="reasoning-end"?6:pe==="file"?7:pe==="source-url"?8:pe==="source-document"?9:pe==="tool-input-start"?10:pe==="tool-input-delta"?11:pe==="tool-input-available"?13:pe==="tool-input-error"?15:pe==="tool-output-available"?16:pe==="tool-output-error"?17:pe==="start-step"?18:pe==="finish-step"?19:pe==="start"?20:pe==="finish"?22:pe==="message-metadata"?24:pe==="error"?26:27;break;case 1:return Z={type:"text",text:"",providerMetadata:c.providerMetadata,state:"streaming"},D.activeTextParts[c.id]=Z,D.message.parts.push(Z),_(),ve.a(3,30);case 2:return(z=D.activeTextParts[c.id]).text+=c.delta,z.providerMetadata=(T=c.providerMetadata)!=null?T:z.providerMetadata,_(),ve.a(3,30);case 3:return(H=D.activeTextParts[c.id]).state="done",H.providerMetadata=(w=c.providerMetadata)!=null?w:H.providerMetadata,delete D.activeTextParts[c.id],_(),ve.a(3,30);case 4:return L={type:"reasoning",text:"",providerMetadata:c.providerMetadata,state:"streaming"},D.activeReasoningParts[c.id]=L,D.message.parts.push(L),_(),ve.a(3,30);case 5:return(K=D.activeReasoningParts[c.id]).text+=c.delta,K.providerMetadata=(S=c.providerMetadata)!=null?S:K.providerMetadata,_(),ve.a(3,30);case 6:return(J=D.activeReasoningParts[c.id]).providerMetadata=(x=c.providerMetadata)!=null?x:J.providerMetadata,J.state="done",delete D.activeReasoningParts[c.id],_(),ve.a(3,30);case 7:return D.message.parts.push({type:"file",mediaType:c.mediaType,url:c.url}),_(),ve.a(3,30);case 8:return D.message.parts.push({type:"source-url",sourceId:c.sourceId,url:c.url,title:c.title,providerMetadata:c.providerMetadata}),_(),ve.a(3,30);case 9:return D.message.parts.push({type:"source-document",sourceId:c.sourceId,mediaType:c.mediaType,title:c.title,filename:c.filename,providerMetadata:c.providerMetadata}),_(),ve.a(3,30);case 10:return W=D.message.parts.filter(ho),D.partialToolCalls[c.toolCallId]={text:"",toolName:c.toolName,index:W.length,dynamic:c.dynamic},c.dynamic?d({toolCallId:c.toolCallId,toolName:c.toolName,state:"input-streaming",input:void 0,providerExecuted:c.providerExecuted}):B({toolCallId:c.toolCallId,toolName:c.toolName,state:"input-streaming",input:void 0,providerExecuted:c.providerExecuted}),_(),ve.a(3,30);case 11:return(ee=D.partialToolCalls[c.toolCallId]).text+=c.inputTextDelta,ve.n=12,rh(ee.text);case 12:return ue=ve.v,ye=ue.value,ee.dynamic?d({toolCallId:c.toolCallId,toolName:ee.toolName,state:"input-streaming",input:ye}):B({toolCallId:c.toolCallId,toolName:ee.toolName,state:"input-streaming",input:ye}),_(),ve.a(3,30);case 13:if(c.dynamic?d({toolCallId:c.toolCallId,toolName:c.toolName,state:"input-available",input:c.input,providerExecuted:c.providerExecuted,providerMetadata:c.providerMetadata}):B({toolCallId:c.toolCallId,toolName:c.toolName,state:"input-available",input:c.input,providerExecuted:c.providerExecuted,providerMetadata:c.providerMetadata}),_(),!(i&&!c.providerExecuted)){ve.n=14;break}return ve.n=14,i({toolCall:c});case 14:return ve.a(3,30);case 15:return c.dynamic?d({toolCallId:c.toolCallId,toolName:c.toolName,state:"output-error",input:c.input,errorText:c.errorText,providerExecuted:c.providerExecuted,providerMetadata:c.providerMetadata}):B({toolCallId:c.toolCallId,toolName:c.toolName,state:"output-error",input:void 0,rawInput:c.input,errorText:c.errorText,providerExecuted:c.providerExecuted,providerMetadata:c.providerMetadata}),_(),ve.a(3,30);case 16:return c.dynamic?(oe=I(c.toolCallId),d({toolCallId:c.toolCallId,toolName:oe.toolName,state:"output-available",input:oe.input,output:c.output,preliminary:c.preliminary})):(ae=O(c.toolCallId),B({toolCallId:c.toolCallId,toolName:uh(ae),state:"output-available",input:ae.input,output:c.output,providerExecuted:c.providerExecuted,preliminary:c.preliminary})),_(),ve.a(3,30);case 17:return c.dynamic?(Y=I(c.toolCallId),d({toolCallId:c.toolCallId,toolName:Y.toolName,state:"output-error",input:Y.input,errorText:c.errorText,providerExecuted:c.providerExecuted})):(ie=O(c.toolCallId),B({toolCallId:c.toolCallId,toolName:uh(ie),state:"output-error",input:ie.input,rawInput:ie.rawInput,errorText:c.errorText,providerExecuted:c.providerExecuted})),_(),ve.a(3,30);case 18:return D.message.parts.push({type:"step-start"}),ve.a(3,30);case 19:return D.activeTextParts={},D.activeReasoningParts={},ve.a(3,30);case 20:return c.messageId!=null&&(D.message.id=c.messageId),ve.n=21,q(c.messageMetadata);case 21:return c.messageId==null&&c.messageMetadata==null||_(),ve.a(3,30);case 22:return c.finishReason!=null&&(D.finishReason=c.finishReason),ve.n=23,q(c.messageMetadata);case 23:return c.messageMetadata!=null&&_(),ve.a(3,30);case 24:return ve.n=25,q(c.messageMetadata);case 25:return c.messageMetadata!=null&&_(),ve.a(3,30);case 26:return a==null||a(new Error(c.errorText)),ve.a(3,30);case 27:if(!(function(ke){return ke.type.startsWith("data-")})(c)){ve.n=30;break}if((r==null?void 0:r[c.type])==null){ve.n=28;break}return ve.n=28,Lp({value:c.data,schema:r[c.type]});case 28:if(!(re=c).transient){ve.n=29;break}return o==null||o(re),ve.a(3,30);case 29:de=re.id!=null?D.message.parts.find(function(ke){return re.type===ke.type&&re.id===ke.id}):void 0,de!=null?de.data=re.data:D.message.parts.push(re),o==null||o(re),_();case 30:l.enqueue(c);case 31:return ve.a(2)}},y)}));return function(y){return g.apply(this,arguments)}})());case 1:return p.a(2)}},h)}))()}}))}Ka({prefix:"aitxt",size:24}),Ka({prefix:"aiobj",size:24});var Pb=(function(){return qn(function n(){Zn(this,n),this.queue=[],this.isProcessing=!1},[{key:"processQueue",value:(t=ht(Te().m(function n(){return Te().w(function(r){for(;;)switch(r.n){case 0:if(this.isProcessing){r.n=5;break}this.isProcessing=!0;case 1:if(!(this.queue.length>0)){r.n=4;break}return r.n=2,this.queue[0]();case 2:this.queue.shift();case 3:r.n=1;break;case 4:this.isProcessing=!1;case 5:return r.a(2)}},n,this)})),function(){return t.apply(this,arguments)})},{key:"run",value:(e=ht(Te().m(function n(r){var u=this;return Te().w(function(a){for(;;)if(a.n===0)return a.a(2,new Promise(function(i,o){u.queue.push(ht(Te().m(function c(){var l;return Te().w(function(h){for(;;)switch(h.p=h.n){case 0:return h.p=0,h.n=1,r();case 1:i(),h.n=3;break;case 2:h.p=2,l=h.v,o(l);case 3:return h.a(2)}},c,null,[[0,2]])}))),u.processQueue()}))},n)})),function(n){return e.apply(this,arguments)})}]);var e,t})();Ka({prefix:"aiobj",size:24}),(function(e,t){for(var n in t)Ab(e,n,{get:t[n],enumerable:!0})})({},{object:function(){return Nb},text:function(){return jb}});var ah,ih,jb=function(){return{type:"text",responseFormat:{type:"text"},parsePartial:(t=ht(Te().m(function n(r){var u;return Te().w(function(a){for(;;)if(a.n===0)return u=r.text,a.a(2,{partial:u})},n)})),function(n){return t.apply(this,arguments)}),parseOutput:(e=ht(Te().m(function n(r){var u;return Te().w(function(a){for(;;)if(a.n===0)return u=r.text,a.a(2,u)},n)})),function(n){return e.apply(this,arguments)})};var e,t},Nb=function(e){var t=(function(n){return n==null?oc({properties:{},additionalProperties:!1}):Ce(r=n)=="object"&&r!==null&&ic in r&&r[ic]===!0&&"jsonSchema"in r&&"validate"in r?n:typeof n=="function"?n():Vp(n);var r})(e.schema);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},parsePartial:function(n){return ht(Te().m(function r(){var u,a,i,o;return Te().w(function(c){for(;;)switch(c.n){case 0:return u=n.text,c.n=1,rh(u);case 1:a=c.v,o=a.state,c.n=o==="failed-parse"||o==="undefined-input"?2:o==="repaired-parse"||o==="successful-parse"?3:4;break;case 2:case 5:return c.a(2);case 3:return c.a(2,{partial:a.value});case 4:throw i=a.state,new Error("Unsupported parse state: ".concat(i))}},r)}))()},parseOutput:function(n,r){return ht(Te().m(function u(){var a,i,o;return Te().w(function(c){for(;;)switch(c.n){case 0:return a=n.text,c.n=1,po({text:a});case 1:if((i=c.v).success){c.n=2;break}throw new Kp({message:"No object generated: could not parse the response.",cause:i.error,text:a,response:r.response,usage:r.usage,finishReason:r.finishReason});case 2:return c.n=3,Xs({value:i.value,schema:t});case 3:if((o=c.v).success){c.n=4;break}throw new Kp({message:"No object generated: response did not match schema.",cause:o.error,text:a,response:r.response,usage:r.usage,finishReason:r.finishReason});case 4:return c.a(2,o.value)}},u)}))()}}},Rb=(function(){return qn(function n(r){var u=r.api,a=u===void 0?"/api/chat":u,i=r.credentials,o=r.headers,c=r.body,l=r.fetch,h=r.prepareSendMessagesRequest,p=r.prepareReconnectToStreamRequest;Zn(this,n),this.api=a,this.credentials=i,this.headers=o,this.body=c,this.fetch=l,this.prepareSendMessagesRequest=h,this.prepareReconnectToStreamRequest=p},[{key:"sendMessages",value:(t=ht(Te().m(function n(r){var u,a,i,o,c,l,h,p,g,y,F,D,_,T,w,S,x,O,I,B;return Te().w(function(d){for(;;)switch(d.n){case 0:return u=r.abortSignal,a=xr(r,bv),d.n=1,Wu(this.body);case 1:return p=d.v,d.n=2,Wu(this.headers);case 2:return g=d.v,d.n=3,Wu(this.credentials);case 3:return y=d.v,F=le(le({},gu(g)),gu(a.headers)),d.n=4,(i=this.prepareSendMessagesRequest)==null?void 0:i.call(this,{api:this.api,id:a.chatId,messages:a.messages,body:le(le({},p),a.body),headers:F,credentials:y,requestMetadata:a.metadata,trigger:a.trigger,messageId:a.messageId});case 4:return D=d.v,_=(o=D==null?void 0:D.api)!=null?o:this.api,T=(D==null?void 0:D.headers)!==void 0?gu(D.headers):F,w=(D==null?void 0:D.body)!==void 0?D.body:le(le(le({},p),a.body),{},{id:a.chatId,messages:a.messages,trigger:a.trigger,messageId:a.messageId}),S=(c=D==null?void 0:D.credentials)!=null?c:y,x=(l=this.fetch)!=null?l:globalThis.fetch,d.n=5,x(_,{method:"POST",headers:Rp(le({"Content-Type":"application/json"},T),"ai-sdk/".concat(Qp),Np()),body:JSON.stringify(w),credentials:S,signal:u});case 5:if((O=d.v).ok){d.n=9;break}return I=Error,d.n=6,O.text();case 6:if((h=d.v)==null){d.n=7;break}B=h,d.n=8;break;case 7:B="Failed to fetch the chat response.";case 8:throw new I(B);case 9:if(O.body){d.n=10;break}throw new Error("The response body is empty.");case 10:return d.a(2,this.processResponseStream(O.body))}},n,this)})),function(n){return t.apply(this,arguments)})},{key:"reconnectToStream",value:(e=ht(Te().m(function n(r){var u,a,i,o,c,l,h,p,g,y,F,D,_,T,w,S,x;return Te().w(function(O){for(;;)switch(O.n){case 0:return O.n=1,Wu(this.body);case 1:return l=O.v,O.n=2,Wu(this.headers);case 2:return h=O.v,O.n=3,Wu(this.credentials);case 3:return p=O.v,g=le(le({},gu(h)),gu(r.headers)),O.n=4,(u=this.prepareReconnectToStreamRequest)==null?void 0:u.call(this,{api:this.api,id:r.chatId,body:le(le({},l),r.body),headers:g,credentials:p,requestMetadata:r.metadata});case 4:return y=O.v,F=(a=y==null?void 0:y.api)!=null?a:"".concat(this.api,"/").concat(r.chatId,"/stream"),D=(y==null?void 0:y.headers)!==void 0?gu(y.headers):g,_=(i=y==null?void 0:y.credentials)!=null?i:p,T=(o=this.fetch)!=null?o:globalThis.fetch,O.n=5,T(F,{method:"GET",headers:Rp(D,"ai-sdk/".concat(Qp),Np()),credentials:_});case 5:if((w=O.v).status!==204){O.n=6;break}return O.a(2,null);case 6:if(w.ok){O.n=10;break}return S=Error,O.n=7,w.text();case 7:if((c=O.v)==null){O.n=8;break}x=c,O.n=9;break;case 8:x="Failed to fetch the chat response.";case 9:throw new S(x);case 10:if(w.body){O.n=11;break}throw new Error("The response body is empty.");case 11:return O.a(2,this.processResponseStream(w.body))}},n,this)})),function(n){return e.apply(this,arguments)})}]);var e,t})(),oh=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Zn(this,e),tu(this,e,[t])}return nu(e,Rb),qn(e,[{key:"processResponseStream",value:function(t){return(function(n){var r=n.schema;return n.stream.pipeThrough(new TextDecoderStream).pipeThrough(new Mm).pipeThrough(new TransformStream({transform:function(u,a){return ht(Te().m(function i(){var o,c;return Te().w(function(l){for(;;)switch(l.n){case 0:if(o=u.data,o==="[DONE]"){l.n=2;break}return c=a,l.n=1,po({text:o,schema:r});case 1:c.enqueue.call(c,l.v);case 2:return l.a(2)}},i)}))()}}))})({stream:t,schema:Tb}).pipeThrough(new TransformStream({transform:function(n,r){return ht(Te().m(function u(){return Te().w(function(a){for(;;)switch(a.n){case 0:if(n.success){a.n=1;break}throw n.error;case 1:r.enqueue(n.value);case 2:return a.a(2)}},u)}))()}}))}}])})(),zb=(function(){return qn(function t(n){var r=this,u=n.generateId,a=u===void 0?QD:u,i=n.id,o=i===void 0?a():i,c=n.transport,l=c===void 0?new oh:c,h=n.messageMetadataSchema,p=n.dataPartSchemas,g=n.state,y=n.onError,F=n.onToolCall,D=n.onFinish,_=n.onData,T=n.sendAutomaticallyWhen;Zn(this,t),this.activeResponse=void 0,this.jobExecutor=new Pb,this.sendMessage=(function(){var w=ht(Te().m(function S(x,O){var I,B,d,q,N,Z,z;return Te().w(function(H){for(;;)switch(H.n){case 0:if(x!=null){H.n=2;break}return H.n=1,r.makeRequest(le({trigger:"submit-message",messageId:(I=r.lastMessage)==null?void 0:I.id},O));case 1:return H.a(2,void H.v);case 2:if(!("text"in x)&&!("files"in x)){H.n=6;break}if(!Array.isArray(x.files)){H.n=3;break}z=x.files,H.n=5;break;case 3:return H.n=4,(function(){var L=ht(Te().m(function K(J){return Te().w(function(W){for(;;)switch(W.n){case 0:if(J!=null){W.n=1;break}return W.a(2,[]);case 1:if(globalThis.FileList&&J instanceof globalThis.FileList){W.n=2;break}throw new Error("FileList is not supported in the current environment");case 2:return W.a(2,Promise.all(Array.from(J).map((function(){var ee=ht(Te().m(function ue(ye){var oe,ae,Y,ie,re;return Te().w(function(de){for(;;)switch(de.n){case 0:return oe=ye.name,ae=ye.type,Y=ae,ie=oe,de.n=1,new Promise(function(pe,ve){var ke=new FileReader;ke.onload=function(ze){var Se;pe((Se=ze.target)==null?void 0:Se.result)},ke.onerror=function(ze){return ve(ze)},ke.readAsDataURL(ye)});case 1:return re=de.v,de.a(2,{type:"file",mediaType:Y,filename:ie,url:re})}},ue)}));return function(ue){return ee.apply(this,arguments)}})())))}},K)}));return function(K){return L.apply(this,arguments)}})()(x.files);case 4:z=H.v;case 5:N={parts:[].concat(Ke(z),Ke("text"in x&&x.text!=null?[{type:"text",text:x.text}]:[]))},H.n=7;break;case 6:N=x;case 7:if(x.messageId==null){H.n=10;break}if(Z=r.state.messages.findIndex(function(L){return L.id===x.messageId}),Z!==-1){H.n=8;break}throw new Error("message with id ".concat(x.messageId," not found"));case 8:if(r.state.messages[Z].role==="user"){H.n=9;break}throw new Error("message with id ".concat(x.messageId," is not a user message"));case 9:r.state.messages=r.state.messages.slice(0,Z+1),r.state.replaceMessage(Z,le(le({},N),{},{id:x.messageId,role:(B=N.role)!=null?B:"user",metadata:x.metadata})),H.n=11;break;case 10:r.state.pushMessage(le(le({},N),{},{id:(d=N.id)!=null?d:r.generateId(),role:(q=N.role)!=null?q:"user",metadata:x.metadata}));case 11:return H.n=12,r.makeRequest(le({trigger:"submit-message",messageId:x.messageId},O));case 12:return H.a(2)}},S)}));return function(S,x){return w.apply(this,arguments)}})(),this.regenerate=ht(Te().m(function w(){var S,x,O,I,B=arguments;return Te().w(function(d){for(;;)switch(d.n){case 0:if(x=(S=B.length>0&&B[0]!==void 0?B[0]:{}).messageId,O=xr(S,Av),I=x==null?r.state.messages.length-1:r.state.messages.findIndex(function(q){return q.id===x}),I!==-1){d.n=1;break}throw new Error("message ".concat(x," not found"));case 1:return r.state.messages=r.state.messages.slice(0,r.messages[I].role==="assistant"?I:I+1),d.n=2,r.makeRequest(le({trigger:"regenerate-message",messageId:x},O));case 2:return d.a(2)}},w)})),this.resumeStream=ht(Te().m(function w(){var S,x=arguments;return Te().w(function(O){for(;;)switch(O.n){case 0:return S=x.length>0&&x[0]!==void 0?x[0]:{},O.n=1,r.makeRequest(le({trigger:"resume-stream"},S));case 1:return O.a(2)}},w)})),this.clearError=function(){r.status==="error"&&(r.state.error=void 0,r.setStatus({status:"ready"}))},this.addToolOutput=(function(){var w=ht(Te().m(function S(x){var O,I,B,d,q;return Te().w(function(N){for(;;)if(N.n===0)return O=x.state,I=O===void 0?"output-available":O,x.tool,B=x.toolCallId,d=x.output,q=x.errorText,N.a(2,r.jobExecutor.run(ht(Te().m(function Z(){var z,H,L,K;return Te().w(function(J){for(;;)switch(J.n){case 0:L=r.state.messages,K=L[L.length-1],r.state.replaceMessage(L.length-1,le(le({},K),{},{parts:K.parts.map(function(W){return cc(W)&&W.toolCallId===B?le(le({},W),{},{state:I,output:d,errorText:q}):W})})),r.activeResponse&&(r.activeResponse.state.message.parts=r.activeResponse.state.message.parts.map(function(W){return cc(W)&&W.toolCallId===B?le(le({},W),{},{state:I,output:d,errorText:q}):W})),r.status!=="streaming"&&r.status!=="submitted"&&((z=r.sendAutomaticallyWhen)!=null&&z.call(r,{messages:r.state.messages}))&&r.makeRequest({trigger:"submit-message",messageId:(H=r.lastMessage)==null?void 0:H.id});case 1:return J.a(2)}},Z)}))))},S)}));return function(S){return w.apply(this,arguments)}})(),this.addToolResult=this.addToolOutput,this.stop=ht(Te().m(function w(){var S;return Te().w(function(x){for(;;)switch(x.n){case 0:r.status!=="streaming"&&r.status!=="submitted"||(S=r.activeResponse)!=null&&S.abortController&&r.activeResponse.abortController.abort();case 1:return x.a(2)}},w)})),this.id=o,this.transport=l,this.generateId=a,this.messageMetadataSchema=h,this.dataPartSchemas=p,this.state=g,this.onError=y,this.onToolCall=F,this.onFinish=D,this.onData=_,this.sendAutomaticallyWhen=T},[{key:"status",get:function(){return this.state.status}},{key:"setStatus",value:function(t){var n=t.status,r=t.error;this.status!==n&&(this.state.status=n,this.state.error=r)}},{key:"error",get:function(){return this.state.error}},{key:"messages",get:function(){return this.state.messages},set:function(t){this.state.messages=t}},{key:"lastMessage",get:function(){return this.state.messages[this.state.messages.length-1]}},{key:"makeRequest",value:(e=ht(Te().m(function t(n){var r,u,a,i,o,c,l,h,p,g,y,F,D,_,T,w,S,x,O=this;return Te().w(function(I){for(;;)switch(I.p=I.n){case 0:if(r=n.trigger,u=n.metadata,a=n.headers,i=n.body,o=n.messageId,this.setStatus({status:"submitted",error:void 0}),g=this.lastMessage,y=!1,F=!1,D=!1,I.p=1,(_={state:Ib({lastMessage:this.state.snapshot(g),messageId:this.generateId()}),abortController:new AbortController}).abortController.signal.addEventListener("abort",function(){y=!0}),this.activeResponse=_,r!=="resume-stream"){I.n=4;break}return I.n=2,this.transport.reconnectToStream({chatId:this.id,metadata:u,headers:a,body:i});case 2:if((w=I.v)!=null){I.n=3;break}return I.a(2,void this.setStatus({status:"ready"}));case 3:T=w,I.n=6;break;case 4:return I.n=5,this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:_.abortController.signal,metadata:u,headers:a,body:i,trigger:r,messageId:o});case 5:T=I.v;case 6:return S=function(B){return O.jobExecutor.run(function(){return B({state:_.state,write:function(){var d;O.setStatus({status:"streaming"}),_.state.message.id===((d=O.lastMessage)==null?void 0:d.id)?O.state.replaceMessage(O.state.messages.length-1,_.state.message):O.state.pushMessage(_.state.message)}})})},I.n=7,(function(){var B=ht(Te().m(function d(q){var N,Z,z,H;return Te().w(function(L){for(;;)switch(L.p=L.n){case 0:N=q.stream,Z=q.onError,z=N.getReader(),L.p=1;case 2:return L.n=3,z.read();case 3:if(!L.v.done){L.n=4;break}return L.a(3,5);case 4:L.n=2;break;case 5:L.n=7;break;case 6:L.p=6,H=L.v,Z==null||Z(H);case 7:return L.p=7,z.releaseLock(),L.f(7);case 8:return L.a(2)}},d,null,[[1,6,7,8]])}));return function(d){return B.apply(this,arguments)}})()({stream:Bb({stream:T,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:S,onError:function(B){throw B}}),onError:function(B){throw B}});case 7:this.setStatus({status:"ready"}),I.n=10;break;case 8:if(I.p=8,x=I.v,!y&&x.name!=="AbortError"){I.n=9;break}return I.a(2,(y=!0,this.setStatus({status:"ready"}),null));case 9:D=!0,x instanceof TypeError&&(x.message.toLowerCase().includes("fetch")||x.message.toLowerCase().includes("network"))&&(F=!0),this.onError&&x instanceof Error&&this.onError(x),this.setStatus({status:"error",error:x});case 10:I.p=10;try{(l=this.onFinish)==null||l.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:y,isDisconnect:F,isError:D,finishReason:(c=this.activeResponse)==null?void 0:c.state.finishReason})}catch(B){console.error(B)}return this.activeResponse=void 0,I.f(10);case 11:if(!((h=this.sendAutomaticallyWhen)!=null&&h.call(this,{messages:this.state.messages}))||D){I.n=12;break}return I.n=12,this.makeRequest({trigger:"submit-message",messageId:(p=this.lastMessage)==null?void 0:p.id,metadata:u,headers:a,body:i});case 12:return I.a(2)}},t,this,[[1,8,10,11]])})),function(t){return e.apply(this,arguments)})}]);var e})();function Lb(e){var t=e.messages,n=t[t.length-1];if(!n||n.role!=="assistant")return!1;var r=n.parts.reduce(function(a,i,o){return i.type==="step-start"?o:a},-1),u=n.parts.slice(r+1).filter(cc).filter(function(a){return!a.providerExecuted});return u.length>0&&u.every(function(a){return a.state==="output-available"||a.state==="output-error"})}var Rn,vo,mo,Ya,Xa,ei,Gu,lc,fc,Ju,Mb=(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e})((ih||(ih=1,ah=function(e,t){if(typeof e!="function")throw new TypeError("Expected the first argument to be a `function`, got `".concat(qt(e),"`."));var n,r=0;return function(){for(var u=this,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];clearTimeout(n);var c=Date.now(),l=t-(c-r);l<=0?(r=c,e.apply(this,i)):n=setTimeout(function(){r=Date.now(),e.apply(u,i)},l)}}),ah)),sh=function(e,t,n){if(!t.has(e))throw TypeError("Cannot "+n)},_t=function(e,t,n){return sh(e,t,"read from private field"),n?n.call(e):t.get(e)},or=function(e,t,n){if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Mr=function(e,t,n,r){return sh(e,t,"write to private field"),t.set(e,n),n},$b=(function(){return qn(function e(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Zn(this,e),or(this,Rn,void 0),or(this,vo,"ready"),or(this,mo,void 0),or(this,Ya,new Set),or(this,Xa,new Set),or(this,ei,new Set),this.pushMessage=function(r){Mr(t,Rn,_t(t,Rn).concat(r)),_t(t,Gu).call(t)},this.popMessage=function(){Mr(t,Rn,_t(t,Rn).slice(0,-1)),_t(t,Gu).call(t)},this.replaceMessage=function(r,u){Mr(t,Rn,[].concat(Ke(_t(t,Rn).slice(0,r)),[t.snapshot(u)],Ke(_t(t,Rn).slice(r+1)))),_t(t,Gu).call(t)},this.snapshot=function(r){return structuredClone(r)},this["~registerMessagesCallback"]=function(r,u){var a,i,o=u?(a=r,(i=u)!=null?Mb(a,i):a):r;return _t(t,Ya).add(o),function(){_t(t,Ya).delete(o)}},this["~registerStatusCallback"]=function(r){return _t(t,Xa).add(r),function(){_t(t,Xa).delete(r)}},this["~registerErrorCallback"]=function(r){return _t(t,ei).add(r),function(){_t(t,ei).delete(r)}},or(this,Gu,function(){_t(t,Ya).forEach(function(r){return r()})}),or(this,lc,function(){_t(t,Xa).forEach(function(r){return r()})}),or(this,fc,function(){_t(t,ei).forEach(function(r){return r()})}),Mr(this,Rn,n)},[{key:"status",get:function(){return _t(this,vo)},set:function(e){Mr(this,vo,e),_t(this,lc).call(this)}},{key:"error",get:function(){return _t(this,mo)},set:function(e){Mr(this,mo,e),_t(this,fc).call(this)}},{key:"messages",get:function(){return _t(this,Rn)},set:function(e){Mr(this,Rn,Ke(e)),_t(this,Gu).call(this)}}])})();Rn=new WeakMap,vo=new WeakMap,mo=new WeakMap,Ya=new WeakMap,Xa=new WeakMap,ei=new WeakMap,Gu=new WeakMap,lc=new WeakMap,fc=new WeakMap;var ch=(function(){function e(t){var n,r=t.messages,u=xr(t,Ev);Zn(this,e);var a=new $b(r);return n=tu(this,e,[le(le({},u),{},{state:a})]),or(_u(n),Ju,void 0),n["~registerMessagesCallback"]=function(i,o){return _t(_u(n),Ju)["~registerMessagesCallback"](i,o)},n["~registerStatusCallback"]=function(i){return _t(_u(n),Ju)["~registerStatusCallback"](i)},n["~registerErrorCallback"]=function(i){return _t(_u(n),Ju)["~registerErrorCallback"](i)},Mr(_u(n),Ju,a),n}return nu(e,zb),qn(e)})();Ju=new WeakMap;var lh="askai_token",Zb=function(e){if(!e)return!0;try{var t=(function(r){var u=ct(r.split("."),1)[0];return JSON.parse(atob(u))})(e),n=t.exp;return Date.now()/1e3>n-30}catch(r){return!0}},go=null,fh=(function(){var e=Xe(be().m(function t(n){var r,u,a;return be().w(function(i){for(;;)switch(i.n){case 0:if(r=n.assistantId,u=n.abortSignal,a=sessionStorage.getItem(lh),Zb(a)){i.n=1;break}return i.a(2,a);case 1:return go||(go=fetch("".concat(cs,"/token"),{method:"POST",headers:{"x-algolia-assistant-id":r,"content-type":"application/json"},signal:u}).then(function(o){return o.json()}).then(function(o){var c=o.token,l=o.success,h=o.message;if(!l&&h)throw new Error(h);return sessionStorage.setItem(lh,c),c}).finally(function(){return go=null})),i.a(2,go)}},t)}));return function(t){return e.apply(this,arguments)}})(),qb=(function(){var e=Xe(be().m(function t(n){var r,u,a,i,o,c,l;return be().w(function(h){for(;;)switch(h.n){case 0:return r=n.assistantId,u=n.thumbs,a=n.messageId,i=n.appId,o=n.abortSignal,(c=new Headers).set("x-algolia-assistant-id",r),c.set("content-type","application/json"),h.n=1,fh({assistantId:r,abortSignal:o});case 1:l=h.v,c.set("authorization","TOKEN ".concat(l));case 2:return h.a(2,fetch("".concat(cs,"/feedback"),{method:"POST",body:JSON.stringify({appId:i,messageId:a,thumbs:u}),headers:c}))}},t)}));return function(t){return e.apply(this,arguments)}})();function Hb(e){var t,n="algolia-client-js-".concat(e.key);function r(){return t===void 0&&(t=e.localStorage||window.localStorage),t}function u(){return JSON.parse(r().getItem(n)||"{}")}function a(i){r().setItem(n,JSON.stringify(i))}return{get:function(i,o){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){var l,h,p;return l=e.timeToLive?1e3*e.timeToLive:null,h=u(),a(p=Object.fromEntries(Object.entries(h).filter(function(g){return ct(g,2)[1].timestamp!==void 0}))),l&&a(Object.fromEntries(Object.entries(p).filter(function(g){var y=ct(g,2)[1],F=new Date().getTime();return!(y.timestamp+l<F)}))),u()[JSON.stringify(i)]}).then(function(l){return Promise.all([l?l.value:o(),l!==void 0])}).then(function(l){var h=ct(l,2),p=h[0],g=h[1];return Promise.all([p,g||c.miss(p)])}).then(function(l){return ct(l,1)[0]})},set:function(i,o){return Promise.resolve().then(function(){var c=u();return c[JSON.stringify(i)]={timestamp:new Date().getTime(),value:o},r().setItem(n,JSON.stringify(c)),o})},delete:function(i){return Promise.resolve().then(function(){var o=u();delete o[JSON.stringify(i)],r().setItem(n,JSON.stringify(o))})},clear:function(){return Promise.resolve().then(function(){r().removeItem(n)})}}}function ti(e){var t=De(e.caches),n=t.shift();return n===void 0?{get:function(r,u){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return u().then(function(i){return Promise.all([i,a.miss(i)])}).then(function(i){return ct(i,1)[0]})},set:function(r,u){return Promise.resolve(u)},delete:function(r){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(r,u){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(r,u,a).catch(function(){return ti({caches:t}).get(r,u,a)})},set:function(r,u){return n.set(r,u).catch(function(){return ti({caches:t}).set(r,u)})},delete:function(r){return n.delete(r).catch(function(){return ti({caches:t}).delete(r)})},clear:function(){return n.clear().catch(function(){return ti({caches:t}).clear()})}}}function dc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(n);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var i=r();return i.then(function(o){return u.miss(o)}).then(function(){return i})},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(n){return delete t[JSON.stringify(n)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function Ub(e){var t=e.algoliaAgents,n=e.client,r=e.version,u=(function(a){var i={value:"Algolia for JavaScript (".concat(a,")"),add:function(o){var c="; ".concat(o.segment).concat(o.version!==void 0?" (".concat(o.version,")"):"");return i.value.indexOf(c)===-1&&(i.value="".concat(i.value).concat(c)),i}};return i})(r).add({segment:n,version:r});return t.forEach(function(a){return u.add(a)}),u}var dh=12e4;function ph(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"up",n=Date.now();return C(C({},e),{},{status:t,lastUpdate:n,isUp:function(){return t==="up"||Date.now()-n>dh},isTimedOut:function(){return t==="timed out"&&Date.now()-n<=dh}})}var hh=(function(){function e(t,n){var r;return Ie(this,e),it(r=Ze(this,e,[t]),"name","AlgoliaError"),n&&(r.name=n),r}return $e(e,Tr(Error)),Be(e)})(),vh=(function(){function e(t,n,r){var u;return Ie(this,e),it(u=Ze(this,e,[t,r]),"stackTrace",void 0),u.stackTrace=n,u}return $e(e,hh),Be(e)})(),Vb=(function(){function e(t){return Ie(this,e),Ze(this,e,["Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",t,"RetryError"])}return $e(e,vh),Be(e)})(),pc=(function(){function e(t,n,r){var u,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"ApiError";return Ie(this,e),it(u=Ze(this,e,[t,r,a]),"status",void 0),u.status=n,u}return $e(e,vh),Be(e)})(),Wb=(function(){function e(t,n){var r;return Ie(this,e),it(r=Ze(this,e,[t,"DeserializationError"]),"response",void 0),r.response=n,r}return $e(e,hh),Be(e)})(),Gb=(function(){function e(t,n,r,u){var a;return Ie(this,e),it(a=Ze(this,e,[t,n,u,"DetailedApiError"]),"error",void 0),a.error=r,a}return $e(e,pc),Be(e)})();function Jb(e,t,n){var r,u=(r=n,Object.keys(r).filter(function(i){return r[i]!==void 0}).sort().map(function(i){return"".concat(i,"=").concat(encodeURIComponent(Object.prototype.toString.call(r[i])==="[object Array]"?r[i].join(","):r[i]).replace(/\+/g,"%20"))}).join("&")),a="".concat(e.protocol,"://").concat(e.url).concat(e.port?":".concat(e.port):"","/").concat(t.charAt(0)==="/"?t.substring(1):t);return u.length&&(a+="?".concat(u)),a}function Kb(e,t){if(e.method!=="GET"&&(e.data!==void 0||t.data!==void 0)){var n=Array.isArray(e.data)?e.data:C(C({},e.data),t.data);return JSON.stringify(n)}}function Qb(e,t,n){var r=C(C(C({Accept:"application/json"},e),t),n),u={};return Object.keys(r).forEach(function(a){var i=r[a];u[a.toLowerCase()]=i}),u}function Yb(e){try{return JSON.parse(e.content)}catch(t){throw new Wb(t.message,e)}}function Xb(e,t){var n=e.content,r=e.status;try{var u=JSON.parse(n);return"error"in u?new Gb(u.message,r,u.error,t):new pc(u.message,r,t)}catch(a){}return new pc(n,r,t)}function eA(e){var t=e.isTimedOut,n=e.status;return t||(function(r){return!r.isTimedOut&&~~r.status===0})({isTimedOut:t,status:n})||~~(n/100)!=2&&~~(n/100)!=4}function tA(e){return~~(e.status/100)==2}function nA(e){return e.map(function(t){return mh(t)})}function mh(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return C(C({},e),{},{request:C(C({},e.request),{},{headers:C(C({},e.request.headers),t)})})}var rA=["appId","apiKey","authMode","algoliaAgents"],uA=["params"],gh="5.43.0";function aA(e){return[{url:"".concat(e,"-dsn.algolia.net"),accept:"read",protocol:"https"},{url:"".concat(e,".algolia.net"),accept:"write",protocol:"https"}].concat((function(t){for(var n=t,r=t.length-1;r>0;r--){var u=Math.floor(Math.random()*(r+1)),a=t[r];n[r]=t[u],n[u]=a}return n})([{url:"".concat(e,"-1.algolianet.com"),accept:"readWrite",protocol:"https"},{url:"".concat(e,"-2.algolianet.com"),accept:"readWrite",protocol:"https"},{url:"".concat(e,"-3.algolianet.com"),accept:"readWrite",protocol:"https"}]))}var hc="4.4.0";function iA(e,t,n){var r=b.useMemo(function(){var u=(function(a,i){if(!a||typeof a!="string")throw new Error("`appId` is missing.");if(!i||typeof i!="string")throw new Error("`apiKey` is missing.");return(function(o){var c=o.appId,l=o.apiKey,h=o.authMode,p=o.algoliaAgents,g=on(o,rA),y=(function(D,_){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"WithinHeaders",w={"x-algolia-api-key":_,"x-algolia-application-id":D};return{headers:function(){return T==="WithinHeaders"?w:{}},queryParameters:function(){return T==="WithinQueryParameters"?w:{}}}})(c,l,h),F=(function(D){var _=D.hosts,T=D.hostsCache,w=D.baseHeaders,S=D.logger,x=D.baseQueryParameters,O=D.algoliaAgent,I=D.timeouts,B=D.requester,d=D.requestsCache,q=D.responsesCache;function N(L){return Z.apply(this,arguments)}function Z(){return(Z=Xe(be().m(function L(K){var J,W,ee,ue,ye;return be().w(function(oe){for(;;)switch(oe.n){case 0:return oe.n=1,Promise.all(K.map(function(ae){return T.get(ae,function(){return Promise.resolve(ph(ae))})}));case 1:return J=oe.v,W=J.filter(function(ae){return ae.isUp()}),ee=J.filter(function(ae){return ae.isTimedOut()}),ue=[].concat(De(W),De(ee)),ye=ue.length>0?ue:K,oe.a(2,{hosts:ye,getTimeout:function(ae,Y){return(ee.length===0&&ae===0?1:ee.length+3+ae)*Y}})}},L)}))).apply(this,arguments)}function z(L,K){return H.apply(this,arguments)}function H(){return H=Xe(be().m(function L(K,J){var W,ee,ue,ye,oe,ae,Y,ie,re,de,pe,ve,ke,ze=arguments;return be().w(function(Se){for(;;)switch(Se.n){case 0:if(W=!(ze.length>2&&ze[2]!==void 0)||ze[2],ee=[],ue=Kb(K,J),ye=Qb(w,K.headers,J.headers),oe=K.method==="GET"?C(C({},K.data),J.data):{},ae=C(C(C({},x),K.queryParameters),oe),O.value&&(ae["x-algolia-agent"]=O.value),J&&J.queryParameters)for(Y=0,ie=Object.keys(J.queryParameters);Y<ie.length;Y++)re=ie[Y],J.queryParameters[re]&&Object.prototype.toString.call(J.queryParameters[re])!=="[object Object]"?ae[re]=J.queryParameters[re].toString():ae[re]=J.queryParameters[re];return de=0,pe=(function(){var je=Xe(be().m(function Me(ft,Bt){var Pt,sn,pn,Ut,zt,Dn;return be().w(function(Vt){for(;;)switch(Vt.n){case 0:if((Pt=ft.pop())!==void 0){Vt.n=1;break}throw new Vb(nA(ee));case 1:return sn=C(C({},I),J.timeouts),pn={data:ue,headers:ye,method:K.method,url:Jb(Pt,K.path,ae),connectTimeout:Bt(de,sn.connect),responseTimeout:Bt(de,W?sn.read:sn.write)},Ut=function(Yt){var xt={request:pn,response:Yt,host:Pt,triesLeft:ft.length};return ee.push(xt),xt},Vt.n=2,B.send(pn);case 2:if(!eA(zt=Vt.v)){Vt.n=4;break}return Dn=Ut(zt),zt.isTimedOut&&de++,S.info("Retryable failure",mh(Dn)),Vt.n=3,T.set(Pt,ph(Pt,zt.isTimedOut?"timed out":"down"));case 3:return Vt.a(2,pe(ft,Bt));case 4:if(!tA(zt)){Vt.n=5;break}return Vt.a(2,Yb(zt));case 5:throw Ut(zt),Xb(zt,ee);case 6:return Vt.a(2)}},Me)}));return function(Me,ft){return je.apply(this,arguments)}})(),ve=_.filter(function(je){return je.accept==="readWrite"||(W?je.accept==="read":je.accept==="write")}),Se.n=1,N(ve);case 1:return ke=Se.v,Se.a(2,pe(De(ke.hosts).reverse(),ke.getTimeout))}},L)})),H.apply(this,arguments)}return{hostsCache:T,requester:B,timeouts:I,logger:S,algoliaAgent:O,baseHeaders:w,baseQueryParameters:x,hosts:_,request:function(L){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=L.useReadTransporter||L.method==="GET";if(!J)return z(L,K,J);var W=function(){return z(L,K)};if((K.cacheable||L.cacheable)!==!0)return W();var ee={request:L,requestOptions:K,transporter:{queryParameters:x,headers:w}};return q.get(ee,function(){return d.get(ee,function(){return d.set(ee,W()).then(function(ue){return Promise.all([d.delete(ee),ue])},function(ue){return Promise.all([d.delete(ee),Promise.reject(ue)])}).then(function(ue){var ye=ct(ue,2);return ye[0],ye[1]})})},{miss:function(ue){return q.set(ee,ue)}})},requestsCache:d,responsesCache:q}})(C(C({hosts:aA(c)},g),{},{algoliaAgent:Ub({algoliaAgents:p,client:"Lite",version:gh}),baseHeaders:C(C({"content-type":"text/plain"},y.headers()),g.baseHeaders),baseQueryParameters:C(C({},y.queryParameters()),g.baseQueryParameters)}));return{transporter:F,appId:c,apiKey:l,clearCache:function(){return Promise.all([F.requestsCache.clear(),F.responsesCache.clear()]).then(function(){})},get _ua(){return F.algoliaAgent.value},addAlgoliaAgent:function(D,_){F.algoliaAgent.add({segment:D,version:_})},setClientApiKey:function(D){var _=D.apiKey;h&&h!=="WithinHeaders"?F.baseQueryParameters["x-algolia-api-key"]=_:F.baseHeaders["x-algolia-api-key"]=_},searchForHits:function(D,_){return this.search(D,_)},searchForFacets:function(D,_){return this.search(D,_)},customPost:function(D,_){var T=D.path,w=D.parameters,S=D.body;if(!T)throw new Error("Parameter `path` is required when calling `customPost`.");var x={method:"POST",path:"/{path}".replace("{path}",T),queryParameters:w||{},headers:{},data:S||{}};return F.request(x,_)},getRecommendations:function(D,_){if(D&&Array.isArray(D)&&(D={requests:D}),!D)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!D.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");var T={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:D,useReadTransporter:!0,cacheable:!0};return F.request(T,_)},search:function(D,_){if(D&&Array.isArray(D)){var T={requests:D.map(function(S){var x=S.params,O=on(S,uA);return O.type==="facet"?C(C(C({},O),x),{},{type:"facet"}):C(C(C({},O),x),{},{facet:void 0,maxFacetHits:void 0,facetQuery:void 0})})};D=T}if(!D)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!D.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");var w={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:D,useReadTransporter:!0,cacheable:!0};return F.request(w,_)}}})(C({appId:a,apiKey:i,timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:function(o,c){return Promise.resolve()},info:function(o,c){return Promise.resolve()},error:function(o,c){return Promise.resolve()}},requester:{send:function(o){return new Promise(function(c){var l=new XMLHttpRequest;l.open(o.method,o.url,!0),Object.keys(o.headers).forEach(function(y){return l.setRequestHeader(y,o.headers[y])});var h,p=function(y,F){return setTimeout(function(){l.abort(),c({status:0,content:F,isTimedOut:!0})},y)},g=p(o.connectTimeout,"Connection timeout");l.onreadystatechange=function(){l.readyState>l.OPENED&&h===void 0&&(clearTimeout(g),h=p(o.responseTimeout,"Socket timeout"))},l.onerror=function(){l.status===0&&(clearTimeout(g),clearTimeout(h),c({content:l.responseText||"Network request failed",status:l.status,isTimedOut:!1}))},l.onload=function(){clearTimeout(g),clearTimeout(h),c({content:l.responseText,status:l.status,isTimedOut:!1})},l.send(o.data)})}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:dc(),requestsCache:dc({serializable:!1}),hostsCache:ti({caches:[Hb({key:"".concat(gh,"-").concat(a)}),dc()]})},void 0))})(e,t);return u.addAlgoliaAgent("docsearch",hc),/docsearch.js \(.*\)/.test(u.transporter.algoliaAgent.value)===!1&&u.addAlgoliaAgent("docsearch-react",hc),n(u)},[e,t,n]);return r}var oA=["appId","apiKey","askAi","maxResultsPerGroup","theme","onClose","transformItems","hitComponent","resultsFooterComponent","navigator","initialScrollY","transformSearchClient","disableUserPersonalization","initialQuery","translations","getMissingResultsUrl","insights","onAskAiToggle","isAskAiActive","recentSearchesLimit","recentSearchesWithFavoritesLimit","indices","indexName","searchParameters","isHybridModeSupported"],sA=["footer","searchBox"],cA=(function(){var e=Xe(be().m(function t(n){var r,u,a,i,o,c,l,h,p,g,y,F,D,_,T,w,S,x,O;return be().w(function(I){for(;;)switch(I.p=I.n){case 0:return r=n.query,u=n.state,a=n.setContext,i=n.setStatus,o=n.searchClient,c=n.indexes,l=n.snippetLength,h=n.insights,p=n.appId,g=n.apiKey,y=n.maxResultsPerGroup,F=n.transformItems,D=F===void 0?Xo:F,_=n.saveRecentSearch,T=n.onClose,w=h,I.p=1,I.n=2,o.search({requests:c.map(function(B){var d,q,N,Z,z,H,L,K=typeof B=="string"?B:B.name,J=typeof B=="string"?{}:B.searchParameters;return C({query:r,indexName:K,attributesToRetrieve:(d=J==null?void 0:J.attributesToRetrieve)!==null&&d!==void 0?d:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:(q=J==null?void 0:J.attributesToSnippet)!==null&&q!==void 0?q:["hierarchy.lvl1:".concat(l.current),"hierarchy.lvl2:".concat(l.current),"hierarchy.lvl3:".concat(l.current),"hierarchy.lvl4:".concat(l.current),"hierarchy.lvl5:".concat(l.current),"hierarchy.lvl6:".concat(l.current),"content:".concat(l.current)],snippetEllipsisText:(N=J==null?void 0:J.snippetEllipsisText)!==null&&N!==void 0?N:"\u2026",highlightPreTag:(Z=J==null?void 0:J.highlightPreTag)!==null&&Z!==void 0?Z:"<mark>",highlightPostTag:(z=J==null?void 0:J.highlightPostTag)!==null&&z!==void 0?z:"</mark>",hitsPerPage:(H=J==null?void 0:J.hitsPerPage)!==null&&H!==void 0?H:20,clickAnalytics:(L=J==null?void 0:J.clickAnalytics)!==null&&L!==void 0?L:w},J!=null?J:{})})});case 2:return S=I.v,x=S.results,I.a(2,x.flatMap(function(B){var d,q=B,N=q.hits,Z=q.nbHits,z=Ql(D(N),function(K){return Xl(K)},y);if(u.context.searchSuggestions.length<Object.keys(z).length&&a({searchSuggestions:C(C({},(d=u.context.searchSuggestions)!==null&&d!==void 0?d:[]),Object.keys(z))}),Z){var H=u.context.nbHits;a({nbHits:(H!=null?H:0)+Z})}var L={};return w&&(L={__autocomplete_indexName:q.index,__autocomplete_queryID:q.queryID,__autocomplete_algoliaCredentials:{appId:p,apiKey:g}}),Object.values(z).map(function(K,J){return{sourceId:"hits_".concat(q.index,"_").concat(J),onSelect:function(W){var ee=W.item,ue=W.event;_(ee),Di(ue)||T()},getItemUrl:function(W){return W.item.url},getItems:function(){return Object.values(Ql(K,function(W){return W.hierarchy.lvl1},y)).map(function(W){return W.map(function(ee){var ue=null,ye=W.find(function(oe){return oe.type==="lvl1"&&oe.hierarchy.lvl1===ee.hierarchy.lvl1});return ee.type!=="lvl1"&&ye&&(ue=ye),C(C({},ee),{},{__docsearch_parent:ue},L)})}).flat()}}})}));case 3:throw I.p=3,(O=I.v).name==="RetryError"&&i("error"),O;case 4:return I.a(2)}},t,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}})();function lA(e){var t,n,r,u=e.appId,a=e.apiKey,i=e.askAi,o=e.maxResultsPerGroup,c=e.theme,l=e.onClose,h=l===void 0?xv:l,p=e.transformItems,g=p===void 0?Xo:p,y=e.hitComponent,F=y===void 0?g0:y,D=e.resultsFooterComponent,_=D===void 0?function(){return null}:D,T=e.navigator,w=e.initialScrollY,S=w===void 0?0:w,x=e.transformSearchClient,O=x===void 0?Xo:x,I=e.disableUserPersonalization,B=I!==void 0&&I,d=e.initialQuery,q=d===void 0?"":d,N=e.translations,Z=N===void 0?{}:N,z=e.getMissingResultsUrl,H=e.insights,L=H!==void 0&&H,K=e.onAskAiToggle,J=e.isAskAiActive,W=J!==void 0&&J,ee=e.recentSearchesLimit,ue=ee===void 0?7:ee,ye=e.recentSearchesWithFavoritesLimit,oe=ye===void 0?4:ye,ae=e.indices,Y=ae===void 0?[]:ae,ie=e.indexName,re=e.searchParameters,de=e.isHybridModeSupported,pe=de!==void 0&&de,ve=on(e,oA),ke=Z.footer,ze=Z.searchBox,Se=on(Z,sA),je=ct(b.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),2),Me=je[0],ft=je[1],Bt=!!i,Pt=(Z==null||(t=Z.searchBox)===null||t===void 0?void 0:t.placeholderText)||ve.placeholder||"Search docs";Bt&&(Pt=(Z==null||(n=Z.searchBox)===null||n===void 0?void 0:n.placeholderText)||"Search docs or ask AI a question"),W&&(Pt=(Z==null||(r=Z.searchBox)===null||r===void 0?void 0:r.placeholderTextAskAi)||"Ask another question...");var sn=b.useRef(null),pn=b.useRef(null),Ut=b.useRef(null),zt=b.useRef(null),Dn=b.useRef(null),Vt=b.useRef(15),Yt=b.useRef(typeof window!="undefined"?window.getSelection().toString().slice(0,512):"").current,xt=b.useRef(q||Yt).current,Wt=iA(u,a,O),Ae=qt(i)==="object"?i:null,St=typeof i=="string"?i:(Ae==null?void 0:Ae.assistantId)||null,$r=Ae==null?void 0:Ae.searchParameters,Zr=ct(b.useState("initial"),2),bn=Zr[0],hn=Zr[1],yu=(function(fe){var Oe=fe.assistantId,et=fe.searchClient,bt=fe.suggestedQuestionsEnabled,dt=bt!==void 0&&bt,_n=ct(uu([]),2),Tn=_n[0],Yn=_n[1];return Un(function(){var On=(function(){var In=Xe(be().m(function Jt(){var un,Gr,pr;return be().w(function(Ln){for(;;)switch(Ln.n){case 0:return Ln.n=1,et.search({requests:[{indexName:"algolia_ask_ai_suggested_questions",filters:"state:published AND assistantId:".concat(Oe),hitsPerPage:3}]});case 1:un=Ln.v,Gr=un.results,pr=Gr[0],Yn(pr.hits);case 2:return Ln.a(2)}},Jt)}));return function(){return In.apply(this,arguments)}})();dt&&Oe&&Oe!==""&&On()},[dt,Oe,et]),Tn})({assistantId:St,searchClient:Wt,suggestedQuestionsEnabled:Ae==null?void 0:Ae.suggestedQuestions}),An=[];if(ie&&ie!==""&&An.push({name:ie,searchParameters:re}),Y.length>0&&Y.forEach(function(fe){An.push(typeof fe=="string"?{name:fe}:fe)}),An.length<1)throw new Error("Must supply either `indexName` or `indices` for DocSearch to work");var $t=An[0].name,En=b.useRef(od({key:"__DOCSEARCH_ASKAI_CONVERSATIONS__".concat((Ae==null?void 0:Ae.indexName)||$t),limit:10})).current,vn=b.useRef(id({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat($t),limit:10})).current,Fr=b.useRef(id({key:"__DOCSEARCH_RECENT_SEARCHES__".concat($t),limit:vn.getAll().length===0?ue:oe})).current,cr=ct(b.useState(!1),2),qr=cr[0],Hr=cr[1],zn=(function(fe){var Oe=fe.assistantId,et=fe.apiKey,bt=fe.appId,dt=fe.indexName,_n=fe.searchParameters,Tn=Su(new AbortController),Yn=Vn(function(){return new oh({api:cs,headers:(en=Xe(be().m(function Kt(){var Mt;return be().w(function(tn){for(;;)switch(tn.n){case 0:if(Oe){tn.n=1;break}throw new Error("Ask AI assistant ID is required");case 1:return Mt=null,tn.n=2,fh({assistantId:Oe,abortSignal:Tn.current.signal});case 2:Mt=tn.v;case 3:return tn.a(2,C(C({},Mt?{authorization:"TOKEN ".concat(Mt)}:{}),{},{"X-Algolia-API-Key":et,"X-Algolia-Application-Id":bt,"X-Algolia-Index-Name":dt,"X-Algolia-Assistant-Id":Oe||"","X-AI-SDK-Version":"v5"}))}},Kt)})),function(){return en.apply(this,arguments)}),body:_n?{searchParameters:_n}:{}});var en},[et,bt,Oe,dt,_n]),On=(function(){var en=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Kt=en.experimental_throttle,Mt=en.resume,tn=Mt!==void 0&&Mt,jt=xr(en,Fv),ot=Su("chat"in jt?jt.chat:new ch(jt));("chat"in jt&&jt.chat!==ot.current||"id"in jt&&ot.current.id!==jt.id)&&(ot.current="chat"in jt?jt.chat:new ch(jt));var Ao="id"in jt?jt.id:null,Dc=la(function(Qr){return ot.current["~registerMessagesCallback"](Qr,Kt)},[Kt,Ao]),bc=fa(Dc,function(){return ot.current.messages}),Bn=fa(ot.current["~registerStatusCallback"],function(){return ot.current.status}),Eo=fa(ot.current["~registerErrorCallback"],function(){return ot.current.error}),Du=la(function(Qr){typeof Qr=="function"&&(Qr=Qr(ot.current.messages)),ot.current.messages=Qr},[ot]);return Un(function(){tn&&ot.current.resumeStream()},[tn,ot]),{id:ot.current.id,messages:bc,setMessages:Du,sendMessage:ot.current.sendMessage,regenerate:ot.current.regenerate,clearError:ot.current.clearError,stop:ot.current.stop,error:Eo,resumeStream:ot.current.resumeStream,status:Bn,addToolResult:ot.current.addToolOutput,addToolOutput:ot.current.addToolOutput}})({sendAutomaticallyWhen:Lb,transport:Yn}),In=On.messages,Jt=On.sendMessage,un=On.status,Gr=On.setMessages,pr=On.error,Ln=On.stop,Xt=Su(od({key:"__DOCSEARCH_ASKAI_CONVERSATIONS__".concat(dt),limit:10})).current,Jr=la((function(){var en=Xe(be().m(function Kt(Mt,tn){var jt;return be().w(function(ot){for(;;)switch(ot.n){case 0:if(Oe){ot.n=1;break}return ot.a(2);case 1:return ot.n=2,qb({assistantId:Oe,thumbs:tn,messageId:Mt,appId:bt,abortSignal:Tn.current.signal});case 2:if(!(ot.v.status>=300)){ot.n=3;break}throw new Error("Failed, try again later.");case 3:(jt=Xt.addFeedback)===null||jt===void 0||jt.call(Xt,Mt,tn===1?"like":"dislike");case 4:return ot.a(2)}},Kt)}));return function(Kt,Mt){return en.apply(this,arguments)}})(),[Oe,bt,Xt]),Zt=(function(){var en=Xe(be().m(function Kt(){return be().w(function(Mt){for(;;)switch(Mt.n){case 0:return Tn.current.abort(),Mt.n=1,Ln();case 1:return Mt.a(2)}},Kt)}));return function(){return en.apply(this,arguments)}})(),Kr=Vn(function(){for(var en=[],Kt=0;Kt<In.length;Kt++)if(In[Kt].role==="user"){var Mt,tn=In[Kt],jt=((Mt=In[Kt+1])===null||Mt===void 0?void 0:Mt.role)==="assistant"?In[Kt+1]:null;en.push({id:tn.id,userMessage:tn,assistantMessage:jt}),jt&&Kt++}return en},[In]);return{messages:In,sendMessage:Jt,status:un,setMessages:Gr,askAiError:pr,stopAskAiStreaming:Zt,isStreaming:un==="streaming"||un==="submitted",exchanges:Kr,conversations:Xt,sendFeedback:Jr}})({assistantId:St,apiKey:(Ae==null?void 0:Ae.apiKey)||a,appId:(Ae==null?void 0:Ae.appId)||u,indexName:(Ae==null?void 0:Ae.indexName)||$t,searchParameters:$r}),Ge=zn.messages,Lt=zn.status,Ur=zn.setMessages,ni=zn.sendMessage,Fn=zn.stopAskAiStreaming,Gt=zn.askAiError,Ku=zn.sendFeedback,yo=b.useRef(Lt);b.useEffect(function(){if(!B){if(yo.current==="streaming"&&Lt==="ready"){qr&&Ge.at(-1)&&(Ge.at(-1).metadata={stopped:!0});var fe,Oe=me(Ge[0].parts);try{for(Oe.s();!(fe=Oe.n()).done;){var et=fe.value;et.type==="text"&&En.add(nm(et.text,Ge))}}catch(bt){Oe.e(bt)}finally{Oe.f()}}yo.current=Lt}},[Lt,Ge,En,B,qr]);var Do=b.useMemo(function(){return Lt==="error"&&Es(Gt)},[Lt,Gt]),ri=b.useCallback(function(fe){var Oe=fe.hierarchy,et=["lvl6","lvl5","lvl4","lvl3","lvl2","lvl1","lvl0"].find(function(bt){return Oe[bt]});return C(C({},fe),{},{type:et||"lvl0",content:null})},[]),lr=b.useCallback(function(fe){if(!B){var Oe=fe.type==="content"?fe.__docsearch_parent||ri(fe):fe;Oe&&vn.getAll().findIndex(function(et){return et.objectID===Oe.objectID})===-1&&Fr.add(Oe)}},[vn,Fr,B,ri]),Vr=b.useCallback(function(fe){if(Me.context.algoliaInsightsPlugin&&fe.__autocomplete_id){var Oe=fe,et={eventName:"Item Selected",index:Oe.__autocomplete_indexName,items:[Oe],positions:[fe.__autocomplete_id],queryID:Oe.__autocomplete_queryID};Me.context.algoliaInsightsPlugin.insights.clickedObjectIDsAfterSearch(et)}},[Me.context.algoliaInsightsPlugin]),_r=b.useRef(void 0),fr=b.useCallback(function(fe,Oe){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(fe&&bn==="new-conversation"&&hn("initial"),K(fe,{query:Oe,suggestedQuestionId:et==null?void 0:et.objectID}),!pe){Hr(!1);var bt={};if(et&&(bt.body={suggestedQuestionId:et.objectID}),ni({role:"user",parts:[{type:"text",text:Oe}]},bt),zt.current){var dt=zt.current;typeof dt.scrollTo=="function"?dt.scrollTo({top:0,behavior:"smooth"}):dt.scrollTop=0}_r.current&&_r.current.setQuery("")}},[K,ni,bn,hn,pe]),vc=b.useCallback((function(){var fe=Xe(be().m(function Oe(et,bt){return be().w(function(dt){for(;;)switch(dt.n){case 0:if(St&&u){dt.n=1;break}return dt.a(2);case 1:return dt.n=2,Ku(et,bt);case 2:return dt.a(2)}},Oe)}));return function(Oe,et){return fe.apply(this,arguments)}})(),[St,u,Ku]);_r.current||(_r.current=h0({id:"docsearch",defaultActiveItemId:0,openOnFocus:!0,initialState:{query:xt,context:{searchSuggestions:[]}},insights:!!L,navigator:T,onStateChange:function(fe){ft(fe.state)},getSources:function(fe){var Oe=fe.query,et=fe.state,bt=fe.setContext,dt=fe.setStatus;if(!Oe){var _n=(function(Jt){var un=Jt.recentSearches,Gr=Jt.favoriteSearches,pr=Jt.saveRecentSearch,Ln=Jt.onClose;return Jt.disableUserPersonalization?[]:[{sourceId:"recentSearches",onSelect:function(Xt){var Jr=Xt.item,Zt=Xt.event;pr(Jr),Di(Zt)||Ln()},getItemUrl:function(Xt){return Xt.item.url},getItems:function(){return un.getAll()}},{sourceId:"favoriteSearches",onSelect:function(Xt){var Jr=Xt.item,Zt=Xt.event;pr(Jr),Di(Zt)||Ln()},getItemUrl:function(Xt){return Xt.item.url},getItems:function(){return Gr.getAll()}}]})({recentSearches:Fr,favoriteSearches:vn,saveRecentSearch:lr,onClose:h,disableUserPersonalization:B,canHandleAskAi:Bt}),Tn=Bt?[{sourceId:"recentConversations",getItems:function(){return B?[]:En.getAll()},onSelect:function(Jt){var un=Jt.item;un.messages&&(Ur(un.messages),K(!0))}}]:[];return[].concat(De(_n),Tn)}var Yn={context:et.context},On=cA({query:Oe,state:Yn,setContext:bt,setStatus:dt,searchClient:Wt,indexes:An,snippetLength:Vt,insights:!!L,appId:u,apiKey:a,maxResultsPerGroup:o,transformItems:g,saveRecentSearch:lr,onClose:h}),In=Bt?[{sourceId:"askAI",getItems:function(){return[{type:"askAI",query:Oe,url_without_anchor:"",objectID:"ask-ai-button",content:null,url:"",anchor:null,hierarchy:{lvl0:"Ask AI",lvl1:Oe,lvl2:null,lvl3:null,lvl4:null,lvl5:null,lvl6:null},_highlightResult:{},_snippetResult:{},__docsearch_parent:null}]},onSelect:function(Jt){var un=Jt.item;un.type==="askAI"&&un.query&&fr(!0,un.query)}}]:[];return On.then(function(Jt){return[].concat(In,De(Jt))})}}));var bo,Wr,dr=_r.current,mc=dr.getEnvironmentProps,gc=dr.getRootProps,ui=dr.refresh;(function(fe){var Oe=fe.getEnvironmentProps,et=fe.panelElement,bt=fe.formElement,dt=fe.inputElement;b.useEffect(function(){if(et&&bt&&dt){var _n=Oe({panelElement:et,formElement:bt,inputElement:dt}),Tn=_n.onTouchStart,Yn=_n.onTouchMove;return window.addEventListener("touchstart",Tn),window.addEventListener("touchmove",Yn),function(){window.removeEventListener("touchstart",Tn),window.removeEventListener("touchmove",Yn)}}},[Oe,et,bt,dt])})({getEnvironmentProps:mc,panelElement:zt.current,formElement:Ut.current,inputElement:Dn.current}),bo={container:sn.current},Wr=bo.container,b.useEffect(function(){if(Wr){var fe=Wr.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), input:not([disabled])"),Oe=fe[0],et=fe[fe.length-1];return Wr.addEventListener("keydown",bt),function(){Wr.removeEventListener("keydown",bt)}}function bt(dt){dt.key==="Tab"&&(dt.shiftKey?document.activeElement===Oe&&(dt.preventDefault(),et.focus()):document.activeElement===et&&(dt.preventDefault(),Oe.focus()))}},[Wr]),Kl({theme:c}),b.useEffect(function(){return document.body.classList.add("DocSearch--active"),function(){var fe,Oe;document.body.classList.remove("DocSearch--active"),(fe=(Oe=window).scrollTo)===null||fe===void 0||fe.call(Oe,0,S)}},[]),b.useEffect(function(){typeof window!="undefined"&&window.localStorage&&(function(){if(typeof window=="undefined"||!window.localStorage)return 0;var fe=0;for(var Oe in window.localStorage)window.localStorage.hasOwnProperty(Oe)&&(fe+=window.localStorage[Oe].length+Oe.length);return fe})()>4194304&&ud()},[]),b.useLayoutEffect(function(){var fe=window.innerWidth-document.body.clientWidth;return document.body.style.marginInlineEnd="".concat(fe,"px"),function(){document.body.style.marginInlineEnd="0px"}},[]),b.useEffect(function(){window.matchMedia("(max-width: 768px)").matches&&(Vt.current=5)},[]),b.useEffect(function(){var fe;zt.current&&!W&&(typeof(fe=zt.current).scrollTo=="function"?fe.scrollTo({top:0,behavior:"smooth"}):fe.scrollTop=0)},[Me.query,W]),b.useEffect(function(){xt.length>0&&(ui(),Dn.current&&Dn.current.focus())},[xt,ui]),b.useEffect(function(){function fe(){if(pn.current){var Oe=.01*window.innerHeight;pn.current.style.setProperty("--docsearch-vh","".concat(Oe,"px"))}}return fe(),window.addEventListener("resize",fe),function(){window.removeEventListener("resize",fe)}},[]),b.useEffect(function(){W||(dr.refresh(),Ur([]))},[W,dr,Ur]),b.useEffect(function(){hn("initial")},[W,hn]);var yc=(function(){var fe=Xe(be().m(function Oe(){return be().w(function(et){for(;;)switch(et.n){case 0:return Hr(!0),et.n=1,Fn();case 1:return et.a(2)}},Oe)}));return function(){return fe.apply(this,arguments)}})(),Cr=function(){Ur([]),hn("new-conversation")},ai=!0,Qu=Me.collections.some(function(fe){return fe.items.length>0});return Me.status!=="idle"||Qu!==!1||Me.query.length!==0||W||(ai=!1),b.createElement("div",Ct({ref:sn},gc({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container",Me.status==="stalled"&&"DocSearch-Container--Stalled",Me.status==="error"&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(fe){fe.target===fe.currentTarget&&h()}}),b.createElement("div",{className:"DocSearch-Modal",ref:pn},b.createElement("header",{className:"DocSearch-SearchBar",ref:Ut},b.createElement(Im,Ct({},dr,{state:Me,placeholder:Pt||"Search docs",autoFocus:xt.length===0,inputRef:Dn,isFromSelection:!!xt&&xt===Yt,translations:ze,isAskAiActive:W,askAiStatus:Lt,askAiError:Gt,askAiState:bn,setAskAiState:hn,isThreadDepthError:Do&&bn!=="new-conversation",onClose:h,onAskAiToggle:K,onAskAgain:function(fe){fr(!0,fe)},onStopAskAiStreaming:yc,onNewConversation:Cr,onViewConversationHistory:function(){hn("conversation-history")}}))),ai&&b.createElement("div",{className:"DocSearch-Dropdown",ref:zt},b.createElement(wm,Ct({},dr,{indexName:$t,state:Me,hitComponent:F,resultsFooterComponent:_,disableUserPersonalization:B,recentSearches:Fr,favoriteSearches:vn,conversations:En,inputRef:Dn,translations:Se,getMissingResultsUrl:z,isAskAiActive:W,canHandleAskAi:Bt,messages:Ge,askAiError:Gt,status:Lt,hasCollections:Qu,askAiState:bn,selectAskAiQuestion:fr,suggestedQuestions:yu,selectSuggestedQuestion:function(fe){fr(!0,fe.question,fe)},onAskAiToggle:K,onNewConversation:Cr,onItemClick:function(fe,Oe){if(fe.type==="askAI"&&fe.query)return fe.anchor==="stored"&&"messages"in fe?(Ur(fe.messages),K(!0,{query:fe.query,messageId:fe.messages[0].id})):fr(!0,fe.query),hn("initial"),void Oe.preventDefault();Vr(fe),lr(fe),Di(Oe)||h()},onFeedback:vc}))),b.createElement("footer",{className:"DocSearch-Footer"},b.createElement(m0,{translations:ke,isAskAiActive:W}))))}function fA(e){return b.createElement(Hl,e,b.createElement(dA,e))}function dA(e){var t,n,r,u=mv(),a=u.searchButtonRef,i=u.keyboardShortcuts,o=u.isModalActive,c=u.isAskAiActive,l=u.initialQuery,h=u.onAskAiToggle,p=u.openModal,g=u.closeModal;return b.createElement(b.Fragment,null,b.createElement(Ov,{keyboardShortcuts:i,ref:a,translations:(t=e.translations)===null||t===void 0?void 0:t.button,onClick:p}),o&&Il(b.createElement(lA,Ct({},e,{initialScrollY:window.scrollY,initialQuery:l,translations:e==null||(n=e.translations)===null||n===void 0?void 0:n.modal,isAskAiActive:c,onAskAiToggle:h,onClose:g})),(r=e.portalContainer)!==null&&r!==void 0?r:document.body))}var yh=function(e,t,n,r){var u;t[0]=0;for(var a=1;a<t.length;a++){var i=t[a++],o=t[a]?(t[0]|=i?1:2,n[t[a++]]):t[++a];i===3?r[0]=o:i===4?r[1]=Object.assign(r[1]||{},o):i===5?(r[1]=r[1]||{})[t[++a]]=o:i===6?r[1][t[++a]]+=o+"":i?(u=e.apply(o,yh(e,o,n,["",null])),r.push(u),o[0]?t[0]|=2:(t[a-2]=0,t[a]=u)):r.push(o)}return r},Dh=new Map,pA=["container","environment","transformSearchClient","hitComponent","resultsFooterComponent"],hA=function(e){var t=Dh.get(this);return t||(t=new Map,Dh.set(this,t)),(t=yh(this,t.get(e)||(t.set(e,t=(function(n){for(var r,u,a=1,i="",o="",c=[0],l=function(g){a===1&&(g||(i=i.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?c.push(0,g,i):a===3&&(g||i)?(c.push(3,g,i),a=2):a===2&&i==="..."&&g?c.push(4,g,0):a===2&&i&&!g?c.push(5,0,!0,i):a>=5&&((i||!g&&a===5)&&(c.push(a,0,i,u),a=6),g&&(c.push(a,g,0,u),a=6)),i=""},h=0;h<n.length;h++){h&&(a===1&&l(),l(h));for(var p=0;p<n[h].length;p++)r=n[h][p],a===1?r==="<"?(l(),c=[c],a=3):i+=r:a===4?i==="--"&&r===">"?(a=1,i=""):i=r+i[0]:o?r===o?o="":i+=r:r==='"'||r==="'"?o=r:r===">"?(l(),a=1):a&&(r==="="?(a=5,u=i,i=""):r==="/"&&(a<5||n[h][p+1]===">")?(l(),a===3&&(c=c[0]),a=c,(c=c[0]).push(2,0,a),a=0):r===" "||r===" "||r===`
|
|
119
|
-
`||r==="\r"?(l(),a=2):i+=r),a===3&&i==="!--"&&(a=4,c=c[0])}return l(),c})(e)),t),arguments,[])).length>1?t:t[0]}.bind(
|
|
114
|
+
`))}}catch(Z){I.e(Z)}finally{I.f()}F.write("payload.value = newResult;"),F.write("return payload;");var R=F.compile();return function(Z,q){return R(y,Z,q)}})(t.shape)),p=n(p,m),l?Ud([],v,p,m,r,e):p):u(p,m):(p.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),p)}});function Wd(e,t,n,r){var u,a=ye(e);try{for(a.s();!(u=a.n()).done;){var i=u.value;if(i.issues.length===0)return t.value=i.value,t}}catch(c){a.e(c)}finally{a.f()}var o=e.filter(function(c){return!Hu(c)});return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(function(c){return c.issues.map(function(l){return Ur(l,r,qr())})})}),t)}var Vd=te("$ZodUnion",function(e,t){Ot.init(e,t),gt(e._zod,"optin",function(){return t.options.some(function(u){return u._zod.optin==="optional"})?"optional":void 0}),gt(e._zod,"optout",function(){return t.options.some(function(u){return u._zod.optout==="optional"})?"optional":void 0}),gt(e._zod,"values",function(){if(t.options.every(function(u){return u._zod.values}))return new Set(t.options.flatMap(function(u){return Array.from(u._zod.values)}))}),gt(e._zod,"pattern",function(){if(t.options.every(function(a){return a._zod.pattern})){var u=t.options.map(function(a){return a._zod.pattern});return new RegExp("^(".concat(u.map(function(a){return js(a.source)}).join("|"),")$"))}});var n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=function(u,a){if(n)return r(u,a);var i,o=!1,c=[],l=ye(t.options);try{for(l.s();!(i=l.n()).done;){var p=i.value._zod.run({value:u.value,issues:[]},a);if(p instanceof Promise)c.push(p),o=!0;else{if(p.issues.length===0)return p;c.push(p)}}}catch(m){l.e(m)}finally{l.f()}return o?Promise.all(c).then(function(m){return Wd(m,u,e,a)}):Wd(c,u,e,a)}}),sy=te("$ZodDiscriminatedUnion",function(e,t){Vd.init(e,t);var n=e._zod.parse;gt(e._zod,"propValues",function(){var u,a={},i=ye(t.options);try{for(i.s();!(u=i.n()).done;){var o=u.value,c=o._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error('Invalid discriminated union option at index "'.concat(t.options.indexOf(o),'"'));for(var l=0,p=Object.entries(c);l<p.length;l++){var m=dt(p[l],2),v=m[0],y=m[1];a[v]||(a[v]=new Set);var F,D=ye(y);try{for(D.s();!(F=D.n()).done;){var _=F.value;a[v].add(_)}}catch(O){D.e(O)}finally{D.f()}}}}catch(O){i.e(O)}finally{i.f()}return a});var r=Ui(function(){var u,a=t.options,i=new Map,o=ye(a);try{for(o.s();!(u=o.n()).done;){var c,l=u.value,p=(c=l._zod.propValues)===null||c===void 0?void 0:c[t.discriminator];if(!p||p.size===0)throw new Error('Invalid discriminated union option at index "'.concat(t.options.indexOf(l),'"'));var m,v=ye(p);try{for(v.s();!(m=v.n()).done;){var y=m.value;if(i.has(y))throw new Error('Duplicate discriminator value "'.concat(String(y),'"'));i.set(y,l)}}catch(F){v.e(F)}finally{v.f()}}}catch(F){o.e(F)}finally{o.f()}return i});e._zod.parse=function(u,a){var i=u.value;if(!Ha(i))return u.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),u;var o=r.value.get(i==null?void 0:i[t.discriminator]);return o?o._zod.run(u,a):t.unionFallback?n(u,a):(u.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),u)}}),cy=te("$ZodIntersection",function(e,t){Ot.init(e,t),e._zod.parse=function(n,r){var u=n.value,a=t.left._zod.run({value:u,issues:[]},r),i=t.right._zod.run({value:u,issues:[]},r);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(function(o){var c=dt(o,2),l=c[0],p=c[1];return Kd(n,l,p)}):Kd(n,a,i)}});function $s(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Zu(e)&&Zu(t)){var n,r=Object.keys(t),u=Object.keys(e).filter(function(v){return r.indexOf(v)!==-1}),a=C(C({},e),t),i=ye(u);try{for(i.s();!(n=i.n()).done;){var o=n.value,c=$s(e[o],t[o]);if(!c.valid)return{valid:!1,mergeErrorPath:[o].concat(be(c.mergeErrorPath))};a[o]=c.data}}catch(v){i.e(v)}finally{i.f()}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};for(var l=[],p=0;p<e.length;p++){var m=$s(e[p],t[p]);if(!m.valid)return{valid:!1,mergeErrorPath:[p].concat(be(m.mergeErrorPath))};l.push(m.data)}return{valid:!0,data:l}}return{valid:!1,mergeErrorPath:[]}}function Kd(e,t,n){var r,u;if(t.issues.length&&(r=e.issues).push.apply(r,be(t.issues)),n.issues.length&&(u=e.issues).push.apply(u,be(n.issues)),Hu(e))return e;var a=$s(t.value,n.value);if(!a.valid)throw new Error("Unmergable intersection. Error path: "+"".concat(JSON.stringify(a.mergeErrorPath)));return e.value=a.data,e}var ly=te("$ZodRecord",function(e,t){Ot.init(e,t),e._zod.parse=function(n,r){var u=n.value;if(!Zu(u))return n.issues.push({expected:"record",code:"invalid_type",input:u,inst:e}),n;var a=[];if(t.keyType._zod.values){var i=t.keyType._zod.values;n.value={};var o,c,l=ye(i);try{var p=function(){var D=o.value;if(typeof D=="string"||typeof D=="number"||Qt(D)==="symbol"){var _,O=t.valueType._zod.run({value:u[D],issues:[]},r);O instanceof Promise?a.push(O.then(function(w){var x;w.issues.length&&(x=n.issues).push.apply(x,be(gu(D,w.issues))),n.value[D]=w.value})):(O.issues.length&&(_=n.issues).push.apply(_,be(gu(D,O.issues))),n.value[D]=O.value)}};for(l.s();!(o=l.n()).done;)p()}catch(D){l.e(D)}finally{l.f()}for(var m in u)i.has(m)||(c=c!=null?c:[]).push(m);c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:u,inst:e,keys:c})}else{n.value={};var v,y=ye(Reflect.ownKeys(u));try{var F=function(){var D=v.value;if(D==="__proto__")return 0;var _=t.keyType._zod.run({value:D,issues:[]},r);if(_ instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(_.issues.length)return n.issues.push({code:"invalid_key",origin:"record",issues:_.issues.map(function(x){return Ur(x,r,qr())}),input:D,path:[D],inst:e}),n.value[_.value]=_.value,0;var O,w=t.valueType._zod.run({value:u[D],issues:[]},r);w instanceof Promise?a.push(w.then(function(x){var S;x.issues.length&&(S=n.issues).push.apply(S,be(gu(D,x.issues))),n.value[_.value]=x.value})):(w.issues.length&&(O=n.issues).push.apply(O,be(gu(D,w.issues))),n.value[_.value]=w.value)};for(y.s();!(v=y.n()).done;)F()}catch(D){y.e(D)}finally{y.f()}}return a.length?Promise.all(a).then(function(){return n}):n}}),fy=te("$ZodEnum",function(e,t){Ot.init(e,t);var n=Cd(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp("^(".concat(n.filter(function(u){return L0.has(Qt(u))}).map(function(u){return typeof u=="string"?qu(u):u.toString()}).join("|"),")$")),e._zod.parse=function(u,a){var i=u.value;return r.has(i)||u.issues.push({code:"invalid_value",values:n,input:i,inst:e}),u}}),dy=te("$ZodLiteral",function(e,t){if(Ot.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp("^(".concat(t.values.map(function(n){return typeof n=="string"?qu(n):n?qu(n.toString()):String(n)}).join("|"),")$")),e._zod.parse=function(n,r){var u=n.value;return e._zod.values.has(u)||n.issues.push({code:"invalid_value",values:t.values,input:u,inst:e}),n}}),py=te("$ZodTransform",function(e,t){Ot.init(e,t),e._zod.parse=function(n,r){if(r.direction==="backward")throw new Fd(e.constructor.name);var u=t.transform(n.value,n);if(r.async)return(u instanceof Promise?u:Promise.resolve(u)).then(function(a){return n.value=a,n});if(u instanceof Promise)throw new Mu;return n.value=u,n}});function Gd(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var hy=te("$ZodOptional",function(e,t){Ot.init(e,t),e._zod.optin="optional",e._zod.optout="optional",gt(e._zod,"values",function(){return t.innerType._zod.values?new Set([].concat(be(t.innerType._zod.values),[void 0])):void 0}),gt(e._zod,"pattern",function(){var n=t.innerType._zod.pattern;return n?new RegExp("^(".concat(js(n.source),")?$")):void 0}),e._zod.parse=function(n,r){if(t.innerType._zod.optin==="optional"){var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(function(a){return Gd(a,n.value)}):Gd(u,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),vy=te("$ZodNullable",function(e,t){Ot.init(e,t),gt(e._zod,"optin",function(){return t.innerType._zod.optin}),gt(e._zod,"optout",function(){return t.innerType._zod.optout}),gt(e._zod,"pattern",function(){var n=t.innerType._zod.pattern;return n?new RegExp("^(".concat(js(n.source),"|null)$")):void 0}),gt(e._zod,"values",function(){return t.innerType._zod.values?new Set([].concat(be(t.innerType._zod.values),[null])):void 0}),e._zod.parse=function(n,r){return n.value===null?n:t.innerType._zod.run(n,r)}}),my=te("$ZodDefault",function(e,t){Ot.init(e,t),e._zod.optin="optional",gt(e._zod,"values",function(){return t.innerType._zod.values}),e._zod.parse=function(n,r){if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(function(a){return Jd(a,t)}):Jd(u,t)}});function Jd(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var gy=te("$ZodPrefault",function(e,t){Ot.init(e,t),e._zod.optin="optional",gt(e._zod,"values",function(){return t.innerType._zod.values}),e._zod.parse=function(n,r){return r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r)}}),yy=te("$ZodNonOptional",function(e,t){Ot.init(e,t),gt(e._zod,"values",function(){var n=t.innerType._zod.values;return n?new Set(be(n).filter(function(r){return r!==void 0})):void 0}),e._zod.parse=function(n,r){var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(function(a){return Qd(a,e)}):Qd(u,e)}});function Qd(e,t){return e.issues.length||e.value!==void 0||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Dy=te("$ZodCatch",function(e,t){Ot.init(e,t),gt(e._zod,"optin",function(){return t.innerType._zod.optin}),gt(e._zod,"optout",function(){return t.innerType._zod.optout}),gt(e._zod,"values",function(){return t.innerType._zod.values}),e._zod.parse=function(n,r){if(r.direction==="backward")return t.innerType._zod.run(n,r);var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(function(a){return n.value=a.value,a.issues.length&&(n.value=t.catchValue(C(C({},n),{},{error:{issues:a.issues.map(function(i){return Ur(i,r,qr())})},input:n.value})),n.issues=[]),n}):(n.value=u.value,u.issues.length&&(n.value=t.catchValue(C(C({},n),{},{error:{issues:u.issues.map(function(a){return Ur(a,r,qr())})},input:n.value})),n.issues=[]),n)}}),by=te("$ZodPipe",function(e,t){Ot.init(e,t),gt(e._zod,"values",function(){return t.in._zod.values}),gt(e._zod,"optin",function(){return t.in._zod.optin}),gt(e._zod,"optout",function(){return t.out._zod.optout}),gt(e._zod,"propValues",function(){return t.in._zod.propValues}),e._zod.parse=function(n,r){if(r.direction==="backward"){var u=t.out._zod.run(n,r);return u instanceof Promise?u.then(function(i){return Qi(i,t.in,r)}):Qi(u,t.in,r)}var a=t.in._zod.run(n,r);return a instanceof Promise?a.then(function(i){return Qi(i,t.out,r)}):Qi(a,t.out,r)}});function Qi(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Ay=te("$ZodReadonly",function(e,t){Ot.init(e,t),gt(e._zod,"propValues",function(){return t.innerType._zod.propValues}),gt(e._zod,"values",function(){return t.innerType._zod.values}),gt(e._zod,"optin",function(){return t.innerType._zod.optin}),gt(e._zod,"optout",function(){return t.innerType._zod.optout}),e._zod.parse=function(n,r){if(r.direction==="backward")return t.innerType._zod.run(n,r);var u=t.innerType._zod.run(n,r);return u instanceof Promise?u.then(Yd):Yd(u)}});function Yd(e){return e.value=Object.freeze(e.value),e}var Ey=te("$ZodLazy",function(e,t){Ot.init(e,t),gt(e._zod,"innerType",function(){return t.getter()}),gt(e._zod,"pattern",function(){return e._zod.innerType._zod.pattern}),gt(e._zod,"propValues",function(){return e._zod.innerType._zod.propValues}),gt(e._zod,"optin",function(){var n;return(n=e._zod.innerType._zod.optin)!==null&&n!==void 0?n:void 0}),gt(e._zod,"optout",function(){var n;return(n=e._zod.innerType._zod.optout)!==null&&n!==void 0?n:void 0}),e._zod.parse=function(n,r){return e._zod.innerType._zod.run(n,r)}}),Fy=te("$ZodCustom",function(e,t){Yt.init(e,t),Ot.init(e,t),e._zod.parse=function(n,r){return n},e._zod.check=function(n){var r=n.value,u=t.fn(r);if(u instanceof Promise)return u.then(function(a){return Xd(a,n,r,e)});Xd(u,n,r,e)}});function Xd(e,t,n,r){if(!e){var u,a={code:"custom",input:n,inst:r,path:be((u=r._zod.def.path)!==null&&u!==void 0?u:[]),continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(Ua(a))}}var ep=Pe(function e(){Be(this,e),this._map=new WeakMap,this._idmap=new Map},[{key:"add",value:function(e){var t=arguments.length<=1?void 0:arguments[1];if(this._map.set(e,t),t&&Qt(t)==="object"&&"id"in t){if(this._idmap.has(t.id))throw new Error("ID ".concat(t.id," already exists in the registry"));this._idmap.set(t.id,e)}return this}},{key:"clear",value:function(){return this._map=new WeakMap,this._idmap=new Map,this}},{key:"remove",value:function(e){var t=this._map.get(e);return t&&Qt(t)==="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}},{key:"get",value:function(e){var t=e._zod.parent;if(t){var n,r=C({},(n=this.get(t))!==null&&n!==void 0?n:{});delete r.id;var u=C(C({},r),this._map.get(e));return Object.keys(u).length?u:void 0}return this._map.get(e)}},{key:"has",value:function(e){return this._map.has(e)}}]),Wa=new ep;function tp(e,t){return new e(C({type:"string",format:"guid",check:"string_format",abort:!1},xe(t)))}function Yi(e,t){return new zd(C(C({check:"less_than"},xe(t)),{},{value:e,inclusive:!1}))}function Va(e,t){return new zd(C(C({check:"less_than"},xe(t)),{},{value:e,inclusive:!0}))}function Xi(e,t){return new Ld(C(C({check:"greater_than"},xe(t)),{},{value:e,inclusive:!1}))}function Ka(e,t){return new Ld(C(C({check:"greater_than"},xe(t)),{},{value:e,inclusive:!0}))}function Zs(e,t){return new dg(C(C({check:"multiple_of"},xe(t)),{},{value:e}))}function qs(e,t){return new gg(C(C({check:"max_length"},xe(t)),{},{maximum:e}))}function Ga(e,t){return new yg(C(C({check:"min_length"},xe(t)),{},{minimum:e}))}function Hs(e,t){return new Dg(C(C({check:"length_equals"},xe(t)),{},{length:e}))}function np(e,t){return new bg(C(C({check:"string_format",format:"regex"},xe(t)),{},{pattern:e}))}function rp(e){return new Ag(C({check:"string_format",format:"lowercase"},xe(e)))}function up(e){return new Eg(C({check:"string_format",format:"uppercase"},xe(e)))}function ap(e,t){return new Fg(C(C({check:"string_format",format:"includes"},xe(t)),{},{includes:e}))}function ip(e,t){return new _g(C(C({check:"string_format",format:"starts_with"},xe(t)),{},{prefix:e}))}function op(e,t){return new Cg(C(C({check:"string_format",format:"ends_with"},xe(t)),{},{suffix:e}))}function Uu(e){return new Sg({check:"overwrite",tx:e})}function sp(e){return Uu(function(t){return t.normalize(e)})}function cp(){return Uu(function(e){return e.trim()})}function lp(){return Uu(function(e){return e.toLowerCase()})}function fp(){return Uu(function(e){return e.toUpperCase()})}var dp=Pe(function e(t){var n,r,u,a,i;Be(this,e),this.counter=0,this.metadataRegistry=(n=t==null?void 0:t.metadata)!==null&&n!==void 0?n:Wa,this.target=(r=t==null?void 0:t.target)!==null&&r!==void 0?r:"draft-2020-12",this.unrepresentable=(u=t==null?void 0:t.unrepresentable)!==null&&u!==void 0?u:"throw",this.override=(a=t==null?void 0:t.override)!==null&&a!==void 0?a:function(){},this.io=(i=t==null?void 0:t.io)!==null&&i!==void 0?i:"output",this.seen=new Map},[{key:"process",value:function(e){var t,n,r,u,a=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:[],schemaPath:[]},o=e._zod.def,c=this.seen.get(e);if(c)return c.count++,i.schemaPath.includes(e)&&(c.cycle=i.path),c.schema;var l={schema:{},count:1,cycle:void 0,path:i.path};this.seen.set(e,l);var p=(t=(n=e._zod).toJSONSchema)===null||t===void 0?void 0:t.call(n);if(p)l.schema=p;else{var m=C(C({},i),{},{schemaPath:[].concat(be(i.schemaPath),[e]),path:i.path}),v=e._zod.parent;if(v)l.ref=v,this.process(v,m),this.seen.get(v).isParent=!0;else{var y=l.schema;switch(o.type){case"string":var F=y;F.type="string";var D,_=e._zod.bag,O=_.minimum,w=_.maximum,x=_.format,S=_.patterns,T=_.contentEncoding;if(typeof O=="number"&&(F.minLength=O),typeof w=="number"&&(F.maxLength=w),x&&(F.format=(D={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""}[x])!==null&&D!==void 0?D:x,F.format===""&&delete F.format),T&&(F.contentEncoding=T),S&&S.size>0){var I=be(S);I.length===1?F.pattern=I[0].source:I.length>1&&(l.schema.allOf=be(I.map(function(rt){return C(C({},a.target==="draft-7"||a.target==="draft-4"||a.target==="openapi-3.0"?{type:"string"}:{}),{},{pattern:rt.source})})))}break;case"number":var B=y,d=e._zod.bag,H=d.minimum,R=d.maximum,Z=d.format,q=d.multipleOf,G=d.exclusiveMaximum,L=d.exclusiveMinimum;typeof Z=="string"&&Z.includes("int")?B.type="integer":B.type="number",typeof L=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(B.minimum=L,B.exclusiveMinimum=!0):B.exclusiveMinimum=L),typeof H=="number"&&(B.minimum=H,typeof L=="number"&&this.target!=="draft-4"&&(L>=H?delete B.minimum:delete B.exclusiveMinimum)),typeof G=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(B.maximum=G,B.exclusiveMaximum=!0):B.exclusiveMaximum=G),typeof R=="number"&&(B.maximum=R,typeof G=="number"&&this.target!=="draft-4"&&(G<=R?delete B.maximum:delete B.exclusiveMaximum)),typeof q=="number"&&(B.multipleOf=q);break;case"boolean":case"success":y.type="boolean";break;case"bigint":if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break;case"symbol":if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break;case"null":this.target==="openapi-3.0"?(y.type="string",y.nullable=!0,y.enum=[null]):y.type="null";break;case"any":case"unknown":break;case"undefined":if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break;case"void":if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break;case"never":y.not={};break;case"date":if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break;case"array":var ne=y,Q=e._zod.bag,$=Q.minimum,Y=Q.maximum;typeof $=="number"&&(ne.minItems=$),typeof Y=="number"&&(ne.maxItems=Y),ne.type="array",ne.items=this.process(o.element,C(C({},m),{},{path:[].concat(be(m.path),["items"])}));break;case"object":var re,me=y;me.type="object",me.properties={};var se=o.shape;for(var K in se)me.properties[K]=this.process(se[K],C(C({},m),{},{path:[].concat(be(m.path),["properties",K])}));var V=new Set(Object.keys(se)),ue=new Set(be(V).filter(function(rt){var gn=o.shape[rt]._zod;return a.io==="input"?gn.optin===void 0:gn.optout===void 0}));ue.size>0&&(me.required=Array.from(ue)),((re=o.catchall)===null||re===void 0?void 0:re._zod.def.type)==="never"?me.additionalProperties=!1:o.catchall?o.catchall&&(me.additionalProperties=this.process(o.catchall,C(C({},m),{},{path:[].concat(be(m.path),["additionalProperties"])}))):this.io==="output"&&(me.additionalProperties=!1);break;case"union":var oe=y,ce=o.options.map(function(rt,gn){return a.process(rt,C(C({},m),{},{path:[].concat(be(m.path),["anyOf",gn])}))});oe.anyOf=ce;break;case"intersection":var ee=y,he=this.process(o.left,C(C({},m),{},{path:[].concat(be(m.path),["allOf",0])})),Ce=this.process(o.right,C(C({},m),{},{path:[].concat(be(m.path),["allOf",1])})),Re=function(rt){return"allOf"in rt&&Object.keys(rt).length===1},ge=[].concat(be(Re(he)?he.allOf:[he]),be(Re(Ce)?Ce.allOf:[Ce]));ee.allOf=ge;break;case"tuple":var Te=y;Te.type="array";var He=this.target==="draft-2020-12"?"prefixItems":"items",nt=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",Ge=o.items.map(function(rt,gn){return a.process(rt,C(C({},m),{},{path:[].concat(be(m.path),[He,gn])}))}),yt=o.rest?this.process(o.rest,C(C({},m),{},{path:[].concat(be(m.path),[nt],be(this.target==="openapi-3.0"?[o.items.length]:[]))})):null;this.target==="draft-2020-12"?(Te.prefixItems=Ge,yt&&(Te.items=yt)):this.target==="openapi-3.0"?(Te.items={anyOf:Ge},yt&&Te.items.anyOf.push(yt),Te.minItems=Ge.length,yt||(Te.maxItems=Ge.length)):(Te.items=Ge,yt&&(Te.additionalItems=yt));var Dt=e._zod.bag,mn=Dt.minimum,Xt=Dt.maximum;typeof mn=="number"&&(Te.minItems=mn),typeof Xt=="number"&&(Te.maxItems=Xt);break;case"record":var un=y;un.type="object",this.target!=="draft-7"&&this.target!=="draft-2020-12"||(un.propertyNames=this.process(o.keyType,C(C({},m),{},{path:[].concat(be(m.path),["propertyNames"])}))),un.additionalProperties=this.process(o.valueType,C(C({},m),{},{path:[].concat(be(m.path),["additionalProperties"])}));break;case"map":if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break;case"set":if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break;case"enum":var Gn=y,Mt=Cd(o.entries);Mt.every(function(rt){return typeof rt=="number"})&&(Gn.type="number"),Mt.every(function(rt){return typeof rt=="string"})&&(Gn.type="string"),Gn.enum=Mt;break;case"literal":var Gt,Jt=y,en=[],ke=ye(o.values);try{for(ke.s();!(Gt=ke.n()).done;){var Ut=Gt.value;if(Ut===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof Ut=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");en.push(Number(Ut))}else en.push(Ut)}}catch(rt){ke.e(rt)}finally{ke.f()}if(en.length!==0)if(en.length===1){var Bt=en[0];Jt.type=Bt===null?"null":Qt(Bt),this.target==="draft-4"||this.target==="openapi-3.0"?Jt.enum=[Bt]:Jt.const=Bt}else en.every(function(rt){return typeof rt=="number"})&&(Jt.type="number"),en.every(function(rt){return typeof rt=="string"})&&(Jt.type="string"),en.every(function(rt){return typeof rt=="boolean"})&&(Jt.type="string"),en.every(function(rt){return rt===null})&&(Jt.type="null"),Jt.enum=en;break;case"file":var sr=y,cr={type:"string",format:"binary",contentEncoding:"binary"},Jr=e._zod.bag,Qr=Jr.minimum,Fn=Jr.maximum,$t=Jr.mime;Qr!==void 0&&(cr.minLength=Qr),Fn!==void 0&&(cr.maxLength=Fn),$t?$t.length===1?(cr.contentMediaType=$t[0],Object.assign(sr,cr)):sr.anyOf=$t.map(function(rt){return C(C({},cr),{},{contentMediaType:rt})}):Object.assign(sr,cr);break;case"transform":if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break;case"nullable":var Jn=this.process(o.innerType,m);this.target==="openapi-3.0"?(l.ref=o.innerType,y.nullable=!0):y.anyOf=[Jn,{type:"null"}];break;case"nonoptional":case"promise":case"optional":this.process(o.innerType,m),l.ref=o.innerType;break;case"default":this.process(o.innerType,m),l.ref=o.innerType,y.default=JSON.parse(JSON.stringify(o.defaultValue));break;case"prefault":this.process(o.innerType,m),l.ref=o.innerType,this.io==="input"&&(y._prefault=JSON.parse(JSON.stringify(o.defaultValue)));break;case"catch":var Nn;this.process(o.innerType,m),l.ref=o.innerType;try{Nn=o.catchValue(void 0)}catch(rt){throw new Error("Dynamic catch values are not supported in JSON Schema")}y.default=Nn;break;case"nan":if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break;case"template_literal":var lr=y,xn=e._zod.pattern;if(!xn)throw new Error("Pattern not found in template literal");lr.type="string",lr.pattern=xn.source;break;case"pipe":var fr=this.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;this.process(fr,m),l.ref=fr;break;case"readonly":this.process(o.innerType,m),l.ref=o.innerType,y.readOnly=!0;break;case"lazy":var Qn=e._zod.innerType;this.process(Qn,m),l.ref=Qn;break;case"custom":if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break;case"function":if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")}}}var kr=this.metadataRegistry.get(e);return kr&&Object.assign(l.schema,kr),this.io==="input"&&hn(e)&&(delete l.schema.examples,delete l.schema.default),this.io==="input"&&l.schema._prefault&&((r=(u=l.schema).default)!==null&&r!==void 0||(u.default=l.schema._prefault)),delete l.schema._prefault,this.seen.get(e).schema}},{key:"emit",value:function(e,t){var n,r,u,a,i,o,c=this,l={cycles:(n=t==null?void 0:t.cycles)!==null&&n!==void 0?n:"ref",reused:(r=t==null?void 0:t.reused)!==null&&r!==void 0?r:"inline",external:(u=t==null?void 0:t.external)!==null&&u!==void 0?u:void 0},p=this.seen.get(e);if(!p)throw new Error("Unprocessed schema. This is a bug in Zod.");var m=function(Y){if(!Y[1].schema.$ref){var re=Y[1],me=(function(oe){var ce,ee=c.target==="draft-2020-12"?"$defs":"definitions";if(l.external){var he,Ce,Re,ge,Te=(he=l.external.registry.get(oe[0]))===null||he===void 0?void 0:he.id,He=(Ce=l.external.uri)!==null&&Ce!==void 0?Ce:function(Dt){return Dt};if(Te)return{ref:He(Te)};var nt=(Re=(ge=oe[1].defId)!==null&&ge!==void 0?ge:oe[1].schema.id)!==null&&Re!==void 0?Re:"schema".concat(c.counter++);return oe[1].defId=nt,{defId:nt,ref:"".concat(He("__shared"),"#/").concat(ee,"/").concat(nt)}}if(oe[1]===p)return{ref:"#"};var Ge="".concat("#","/").concat(ee,"/"),yt=(ce=oe[1].schema.id)!==null&&ce!==void 0?ce:"__schema".concat(c.counter++);return{defId:yt,ref:Ge+yt}})(Y),se=me.ref,K=me.defId;re.def=C({},re.schema),K&&(re.defId=K);var V=re.schema;for(var ue in V)delete V[ue];V.$ref=se}};if(l.cycles==="throw"){var v,y=ye(this.seen.entries());try{for(y.s();!(v=y.n()).done;){var F,D=v.value[1];if(D.cycle)throw new Error("Cycle detected: "+"#/".concat((F=D.cycle)===null||F===void 0?void 0:F.join("/"),"/<root>")+'\n\nSet the `cycles` parameter to `"ref"` to resolve cyclical schemas with defs.')}}catch(Y){y.e(Y)}finally{y.f()}}var _,O=ye(this.seen.entries());try{for(O.s();!(_=O.n()).done;){var w,x=_.value,S=x[1];if(e!==x[0]){if(l.external){var T,I=(T=l.external.registry.get(x[0]))===null||T===void 0?void 0:T.id;if(e!==x[0]&&I){m(x);continue}}(!((w=this.metadataRegistry.get(x[0]))===null||w===void 0)&&w.id||S.cycle||S.count>1&&l.reused==="ref")&&m(x)}else m(x)}}catch(Y){O.e(Y)}finally{O.f()}var B,d=function(Y,re){var me,se,K=c.seen.get(Y),V=(me=K.def)!==null&&me!==void 0?me:K.schema,ue=C({},V);if(K.ref!==null){var oe=K.ref;if(K.ref=null,oe){d(oe,re);var ce,ee=c.seen.get(oe).schema;!ee.$ref||re.target!=="draft-7"&&re.target!=="draft-4"&&re.target!=="openapi-3.0"?(Object.assign(V,ee),Object.assign(V,ue)):(V.allOf=(ce=V.allOf)!==null&&ce!==void 0?ce:[],V.allOf.push(ee))}K.isParent||c.override({zodSchema:Y,jsonSchema:V,path:(se=K.path)!==null&&se!==void 0?se:[]})}},H=ye(be(this.seen.entries()).reverse());try{for(H.s();!(B=H.n()).done;){var R=B.value;d(R[0],{target:this.target})}}catch(Y){H.e(Y)}finally{H.f()}var Z={};if(this.target==="draft-2020-12"?Z.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?Z.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?Z.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn("Invalid target: ".concat(this.target)),(a=l.external)!==null&&a!==void 0&&a.uri){var q,G=(q=l.external.registry.get(e))===null||q===void 0?void 0:q.id;if(!G)throw new Error("Schema is missing an `id` property");Z.$id=l.external.uri(G)}Object.assign(Z,p.def);var L,ne=(i=(o=l.external)===null||o===void 0?void 0:o.defs)!==null&&i!==void 0?i:{},Q=ye(this.seen.entries());try{for(Q.s();!(L=Q.n()).done;){var $=L.value[1];$.def&&$.defId&&(ne[$.defId]=$.def)}}catch(Y){Q.e(Y)}finally{Q.f()}l.external||Object.keys(ne).length>0&&(this.target==="draft-2020-12"?Z.$defs=ne:Z.definitions=ne);try{return JSON.parse(JSON.stringify(Z))}catch(Y){throw new Error("Error converting schema to JSON.")}}}]);function hn(e,t){var n=t!=null?t:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);var r=e._zod.def;switch(r.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":case"custom":case"success":case"catch":case"function":return!1;case"array":return hn(r.element,n);case"object":for(var u in r.shape)if(hn(r.shape[u],n))return!0;return!1;case"union":var a,i=ye(r.options);try{for(i.s();!(a=i.n()).done;)if(hn(a.value,n))return!0}catch(l){i.e(l)}finally{i.f()}return!1;case"intersection":return hn(r.left,n)||hn(r.right,n);case"tuple":var o,c=ye(r.items);try{for(c.s();!(o=c.n()).done;)if(hn(o.value,n))return!0}catch(l){c.e(l)}finally{c.f()}return!(!r.rest||!hn(r.rest,n));case"record":case"map":return hn(r.keyType,n)||hn(r.valueType,n);case"set":return hn(r.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":case"default":case"prefault":return hn(r.innerType,n);case"lazy":return hn(r.getter(),n);case"transform":return!0;case"pipe":return hn(r.in,n)||hn(r.out,n)}throw new Error("Unknown schema type: ".concat(r.type))}var Fr=Object.freeze({__proto__:null,endsWith:op,gt:Xi,gte:Ka,includes:ap,length:Hs,lowercase:rp,lt:Yi,lte:Va,maxLength:qs,maxSize:function(e,t){return new hg(C(C({check:"max_size"},xe(t)),{},{maximum:e}))},mime:function(e,t){return new wg(C({check:"mime_type",mime:e},xe(t)))},minLength:Ga,minSize:function(e,t){return new vg(C(C({check:"min_size"},xe(t)),{},{minimum:e}))},multipleOf:Zs,negative:function(e){return Yi(0,e)},nonnegative:function(e){return Ka(0,e)},nonpositive:function(e){return Va(0,e)},normalize:sp,overwrite:Uu,positive:function(e){return Xi(0,e)},property:function(e,t,n){return new kg(C({check:"property",property:e,schema:t},xe(n)))},regex:np,size:function(e,t){return new mg(C(C({check:"size_equals"},xe(t)),{},{size:e}))},startsWith:ip,toLowerCase:lp,toUpperCase:fp,trim:cp,uppercase:up}),_y=te("ZodISODateTime",function(e,t){Zg.init(e,t),zt.init(e,t)}),Cy=te("ZodISODate",function(e,t){qg.init(e,t),zt.init(e,t)}),ky=te("ZodISOTime",function(e,t){Hg.init(e,t),zt.init(e,t)}),wy=te("ZodISODuration",function(e,t){Ug.init(e,t),zt.init(e,t)}),Bn=te("ZodError",function(e,t){Od.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:function(n){return(function(r){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(o){return o.message},a={_errors:[]},i=function(o){var c,l=ye(o.issues);try{for(l.s();!(c=l.n()).done;){var p=c.value;if(p.code==="invalid_union"&&p.errors.length)p.errors.map(function(F){return i({issues:F})});else if(p.code==="invalid_key")i({issues:p.issues});else if(p.code==="invalid_element")i({issues:p.issues});else if(p.path.length===0)a._errors.push(u(p));else for(var m=a,v=0;v<p.path.length;){var y=p.path[v];v===p.path.length-1?(m[y]=m[y]||{_errors:[]},m[y]._errors.push(u(p))):m[y]=m[y]||{_errors:[]},m=m[y],v++}}}catch(F){l.e(F)}finally{l.f()}};return i(r),a})(e,n)}},flatten:{value:function(n){return(function(r){var u,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(p){return p.message},i={},o=[],c=ye(r.issues);try{for(c.s();!(u=c.n()).done;){var l=u.value;l.path.length>0?(i[l.path[0]]=i[l.path[0]]||[],i[l.path[0]].push(a(l))):o.push(a(l))}}catch(p){c.e(p)}finally{c.f()}return{formErrors:o,fieldErrors:i}})(e,n)}},addIssue:{value:function(n){e.issues.push(n),e.message=JSON.stringify(e.issues,Ps,2)}},addIssues:{value:function(n){var r;(r=e.issues).push.apply(r,be(n)),e.message=JSON.stringify(e.issues,Ps,2)}},isEmpty:{get:function(){return e.issues.length===0}}})},{Parent:Error}),Sy=zs(Bn),xy=Ls(Bn),Ty=Vi(Bn),pp=Ki(Bn),Oy=(function(e){return function(t,n,r){var u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return zs(e)(t,n,u)}})(Bn),Iy=(function(e){return function(t,n,r){return zs(e)(t,n,r)}})(Bn),By=(function(e){return(function(){var t=Xe(Ae().m(function n(r,u,a){var i;return Ae().w(function(o){for(;;)if(o.n===0)return i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"},o.a(2,Ls(e)(r,u,i))},n)}));return function(n,r,u){return t.apply(this,arguments)}})()})(Bn),Py=(function(e){return(function(){var t=Xe(Ae().m(function n(r,u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,Ls(e)(r,u,a))},n)}));return function(n,r,u){return t.apply(this,arguments)}})()})(Bn),jy=(function(e){return function(t,n,r){var u=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Vi(e)(t,n,u)}})(Bn),Ny=(function(e){return function(t,n,r){return Vi(e)(t,n,r)}})(Bn),Ry=(function(e){return(function(){var t=Xe(Ae().m(function n(r,u,a){var i;return Ae().w(function(o){for(;;)if(o.n===0)return i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"},o.a(2,Ki(e)(r,u,i))},n)}));return function(n,r,u){return t.apply(this,arguments)}})()})(Bn),zy=(function(e){return(function(){var t=Xe(Ae().m(function n(r,u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,Ki(e)(r,u,a))},n)}));return function(n,r,u){return t.apply(this,arguments)}})()})(Bn),jt=te("ZodType",function(e,t){return Ot.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=function(){for(var n,r=arguments.length,u=new Array(r),a=0;a<r;a++)u[a]=arguments[a];return e.clone(mu(t,{checks:[].concat(be((n=t.checks)!==null&&n!==void 0?n:[]),be(u.map(function(i){return typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i})))}))},e.clone=function(n,r){return Hr(e,n,r)},e.brand=function(){return e},e.register=function(n,r){return n.add(e,r),e},e.parse=function(n,r){return Sy(e,n,r,{callee:e.parse})},e.safeParse=function(n,r){return Ty(e,n,r)},e.parseAsync=(function(){var n=Xe(Ae().m(function r(u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,xy(e,u,a,{callee:e.parseAsync}))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.safeParseAsync=(function(){var n=Xe(Ae().m(function r(u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,pp(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.spa=e.safeParseAsync,e.encode=function(n,r){return Oy(e,n,r)},e.decode=function(n,r){return Iy(e,n,r)},e.encodeAsync=(function(){var n=Xe(Ae().m(function r(u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,By(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.decodeAsync=(function(){var n=Xe(Ae().m(function r(u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,Py(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.safeEncode=function(n,r){return jy(e,n,r)},e.safeDecode=function(n,r){return Ny(e,n,r)},e.safeEncodeAsync=(function(){var n=Xe(Ae().m(function r(u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,Ry(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.safeDecodeAsync=(function(){var n=Xe(Ae().m(function r(u,a){return Ae().w(function(i){for(;;)if(i.n===0)return i.a(2,zy(e,u,a))},r)}));return function(r,u){return n.apply(this,arguments)}})(),e.refine=function(n,r){return e.check((function(u){return(function(a,i,o){return new Vs(C({type:"custom",check:"custom",fn:i},xe(o)))})(0,u,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{})})(n,r))},e.superRefine=function(n){return e.check((function(r){var u=(function(a){var i=new Yt(C({check:"custom"},xe(void 0)));return i._zod.check=a,i})(function(a){return a.addIssue=function(i){if(typeof i=="string")a.issues.push(Ua(i,a.value,u._zod.def));else{var o,c,l,p,m=i;m.fatal&&(m.continue=!1),(o=m.code)!==null&&o!==void 0||(m.code="custom"),(c=m.input)!==null&&c!==void 0||(m.input=a.value),(l=m.inst)!==null&&l!==void 0||(m.inst=u),(p=m.continue)!==null&&p!==void 0||(m.continue=!u._zod.def.abort),a.issues.push(Ua(m))}},r(a.value,a)});return u})(n))},e.overwrite=function(n){return e.check(Uu(n))},e.optional=function(){return Fp(e)},e.nullable=function(){return _p(e)},e.nullish=function(){return Fp(_p(e))},e.nonoptional=function(n){return(function(r,u){return new Cp(C({type:"nonoptional",innerType:r},xe(u)))})(e,n)},e.array=function(){return Wu(e)},e.or=function(n){return Pn([e,n])},e.and=function(n){return new dD({type:"intersection",left:e,right:n})},e.transform=function(n){return kp(e,new vD({type:"transform",transform:n}))},e.default=function(n){return r=n,new gD({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():xd(r)}});var r},e.prefault=function(n){return r=n,new yD({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():xd(r)}});var r},e.catch=function(n){return new DD({type:"catch",innerType:e,catchValue:typeof(r=n)=="function"?r:function(){return r}});var r},e.pipe=function(n){return kp(e,n)},e.readonly=function(){return new AD({type:"readonly",innerType:e})},e.describe=function(n){var r=e.clone();return Wa.add(r,{description:n}),r},Object.defineProperty(e,"description",{get:function(){var n;return(n=Wa.get(e))===null||n===void 0?void 0:n.description},configurable:!0}),e.meta=function(){if(arguments.length===0)return Wa.get(e);var n=e.clone();return Wa.add(n,arguments.length<=0?void 0:arguments[0]),n},e.isOptional=function(){return e.safeParse(void 0).success},e.isNullable=function(){return e.safeParse(null).success},e}),hp=te("_ZodString",function(e,t){var n,r,u;Ms.init(e,t),jt.init(e,t);var a=e._zod.bag;e.format=(n=a.format)!==null&&n!==void 0?n:null,e.minLength=(r=a.minimum)!==null&&r!==void 0?r:null,e.maxLength=(u=a.maximum)!==null&&u!==void 0?u:null,e.regex=function(){return e.check(np.apply(Fr,arguments))},e.includes=function(){return e.check(ap.apply(Fr,arguments))},e.startsWith=function(){return e.check(ip.apply(Fr,arguments))},e.endsWith=function(){return e.check(op.apply(Fr,arguments))},e.min=function(){return e.check(Ga.apply(Fr,arguments))},e.max=function(){return e.check(qs.apply(Fr,arguments))},e.length=function(){return e.check(Hs.apply(Fr,arguments))},e.nonempty=function(){for(var i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];return e.check(Ga.apply(Fr,[1].concat(o)))},e.lowercase=function(i){return e.check(rp(i))},e.uppercase=function(i){return e.check(up(i))},e.trim=function(){return e.check(cp())},e.normalize=function(){return e.check(sp.apply(Fr,arguments))},e.toLowerCase=function(){return e.check(lp())},e.toUpperCase=function(){return e.check(fp())}}),Ly=te("ZodString",function(e,t){Ms.init(e,t),hp.init(e,t),e.email=function(n){return e.check((function(r,u){return new My(C({type:"string",format:"email",check:"string_format",abort:!1},xe(u)))})(0,n))},e.url=function(n){return e.check((function(r,u){return new $y(C({type:"string",format:"url",check:"string_format",abort:!1},xe(u)))})(0,n))},e.jwt=function(n){return e.check((function(r,u){return new nD(C({type:"string",format:"jwt",check:"string_format",abort:!1},xe(u)))})(0,n))},e.emoji=function(n){return e.check((function(r,u){return new Zy(C({type:"string",format:"emoji",check:"string_format",abort:!1},xe(u)))})(0,n))},e.guid=function(n){return e.check(tp(vp,n))},e.uuid=function(n){return e.check((function(r,u){return new eo(C({type:"string",format:"uuid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.uuidv4=function(n){return e.check((function(r,u){return new eo(C({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4"},xe(u)))})(0,n))},e.uuidv6=function(n){return e.check((function(r,u){return new eo(C({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6"},xe(u)))})(0,n))},e.uuidv7=function(n){return e.check((function(r,u){return new eo(C({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7"},xe(u)))})(0,n))},e.nanoid=function(n){return e.check((function(r,u){return new qy(C({type:"string",format:"nanoid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.guid=function(n){return e.check(tp(vp,n))},e.cuid=function(n){return e.check((function(r,u){return new Hy(C({type:"string",format:"cuid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.cuid2=function(n){return e.check((function(r,u){return new Uy(C({type:"string",format:"cuid2",check:"string_format",abort:!1},xe(u)))})(0,n))},e.ulid=function(n){return e.check((function(r,u){return new Wy(C({type:"string",format:"ulid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.base64=function(n){return e.check((function(r,u){return new Xy(C({type:"string",format:"base64",check:"string_format",abort:!1},xe(u)))})(0,n))},e.base64url=function(n){return e.check((function(r,u){return new eD(C({type:"string",format:"base64url",check:"string_format",abort:!1},xe(u)))})(0,n))},e.xid=function(n){return e.check((function(r,u){return new Vy(C({type:"string",format:"xid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.ksuid=function(n){return e.check((function(r,u){return new Ky(C({type:"string",format:"ksuid",check:"string_format",abort:!1},xe(u)))})(0,n))},e.ipv4=function(n){return e.check((function(r,u){return new Gy(C({type:"string",format:"ipv4",check:"string_format",abort:!1},xe(u)))})(0,n))},e.ipv6=function(n){return e.check((function(r,u){return new Jy(C({type:"string",format:"ipv6",check:"string_format",abort:!1},xe(u)))})(0,n))},e.cidrv4=function(n){return e.check((function(r,u){return new Qy(C({type:"string",format:"cidrv4",check:"string_format",abort:!1},xe(u)))})(0,n))},e.cidrv6=function(n){return e.check((function(r,u){return new Yy(C({type:"string",format:"cidrv6",check:"string_format",abort:!1},xe(u)))})(0,n))},e.e164=function(n){return e.check((function(r,u){return new tD(C({type:"string",format:"e164",check:"string_format",abort:!1},xe(u)))})(0,n))},e.datetime=function(n){return e.check((function(r){return(function(u,a){return new _y(C({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null},xe(a)))})(0,r)})(n))},e.date=function(n){return e.check((function(r){return(function(u,a){return new Cy(C({type:"string",format:"date",check:"string_format"},xe(a)))})(0,r)})(n))},e.time=function(n){return e.check((function(r){return(function(u,a){return new ky(C({type:"string",format:"time",check:"string_format",precision:null},xe(a)))})(0,r)})(n))},e.duration=function(n){return e.check((function(r){return(function(u,a){return new wy(C({type:"string",format:"duration",check:"string_format"},xe(a)))})(0,r)})(n))}});function ze(e){return(function(t,n){return new Ly(C({type:"string"},xe(n)))})(0,e)}var zt=te("ZodStringFormat",function(e,t){Pt.init(e,t),hp.init(e,t)}),My=te("ZodEmail",function(e,t){Bg.init(e,t),zt.init(e,t)}),vp=te("ZodGUID",function(e,t){Og.init(e,t),zt.init(e,t)}),eo=te("ZodUUID",function(e,t){Ig.init(e,t),zt.init(e,t)}),$y=te("ZodURL",function(e,t){Pg.init(e,t),zt.init(e,t)}),Zy=te("ZodEmoji",function(e,t){jg.init(e,t),zt.init(e,t)}),qy=te("ZodNanoID",function(e,t){Ng.init(e,t),zt.init(e,t)}),Hy=te("ZodCUID",function(e,t){Rg.init(e,t),zt.init(e,t)}),Uy=te("ZodCUID2",function(e,t){zg.init(e,t),zt.init(e,t)}),Wy=te("ZodULID",function(e,t){Lg.init(e,t),zt.init(e,t)}),Vy=te("ZodXID",function(e,t){Mg.init(e,t),zt.init(e,t)}),Ky=te("ZodKSUID",function(e,t){$g.init(e,t),zt.init(e,t)}),Gy=te("ZodIPv4",function(e,t){Wg.init(e,t),zt.init(e,t)}),Jy=te("ZodIPv6",function(e,t){Vg.init(e,t),zt.init(e,t)}),Qy=te("ZodCIDRv4",function(e,t){Kg.init(e,t),zt.init(e,t)}),Yy=te("ZodCIDRv6",function(e,t){Gg.init(e,t),zt.init(e,t)}),Xy=te("ZodBase64",function(e,t){Jg.init(e,t),zt.init(e,t)}),eD=te("ZodBase64URL",function(e,t){Qg.init(e,t),zt.init(e,t)}),tD=te("ZodE164",function(e,t){Yg.init(e,t),zt.init(e,t)}),nD=te("ZodJWT",function(e,t){Xg.init(e,t),zt.init(e,t)}),mp=te("ZodNumber",function(e,t){var n,r,u,a,i,o,c,l,p;Zd.init(e,t),jt.init(e,t),e.gt=function(v,y){return e.check(Xi(v,y))},e.gte=function(v,y){return e.check(Ka(v,y))},e.min=function(v,y){return e.check(Ka(v,y))},e.lt=function(v,y){return e.check(Yi(v,y))},e.lte=function(v,y){return e.check(Va(v,y))},e.max=function(v,y){return e.check(Va(v,y))},e.int=function(v){return e.check(gp(v))},e.safe=function(v){return e.check(gp(v))},e.positive=function(v){return e.check(Xi(0,v))},e.nonnegative=function(v){return e.check(Ka(0,v))},e.negative=function(v){return e.check(Yi(0,v))},e.nonpositive=function(v){return e.check(Va(0,v))},e.multipleOf=function(v,y){return e.check(Zs(v,y))},e.step=function(v,y){return e.check(Zs(v,y))},e.finite=function(){return e};var m=e._zod.bag;e.minValue=(n=Math.max((r=m.minimum)!==null&&r!==void 0?r:Number.NEGATIVE_INFINITY,(u=m.exclusiveMinimum)!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY))!==null&&n!==void 0?n:null,e.maxValue=(a=Math.min((i=m.maximum)!==null&&i!==void 0?i:Number.POSITIVE_INFINITY,(o=m.exclusiveMaximum)!==null&&o!==void 0?o:Number.POSITIVE_INFINITY))!==null&&a!==void 0?a:null,e.isInt=((c=m.format)!==null&&c!==void 0?c:"").includes("int")||Number.isSafeInteger((l=m.multipleOf)!==null&&l!==void 0?l:.5),e.isFinite=!0,e.format=(p=m.format)!==null&&p!==void 0?p:null});function rD(e){return(function(t,n){return new mp(C({type:"number",checks:[]},xe(n)))})(0,e)}var uD=te("ZodNumberFormat",function(e,t){ey.init(e,t),mp.init(e,t)});function gp(e){return(function(t,n){return new uD(C({type:"number",check:"number_format",abort:!1,format:"safeint"},xe(n)))})(0,e)}var aD=te("ZodBoolean",function(e,t){ty.init(e,t),jt.init(e,t)});function An(e){return(function(t,n){return new aD(C({type:"boolean"},xe(n)))})(0,e)}var iD=te("ZodNull",function(e,t){ny.init(e,t),jt.init(e,t)});function oD(e){return(function(t,n){return new iD(C({type:"null"},xe(n)))})(0,e)}var sD=te("ZodUnknown",function(e,t){ry.init(e,t),jt.init(e,t)});function rr(){return new sD({type:"unknown"})}var cD=te("ZodNever",function(e,t){uy.init(e,t),jt.init(e,t)});function yp(e){return(function(t,n){return new cD(C({type:"never"},xe(n)))})(0,e)}var lD=te("ZodArray",function(e,t){ay.init(e,t),jt.init(e,t),e.element=t.element,e.min=function(n,r){return e.check(Ga(n,r))},e.nonempty=function(n){return e.check(Ga(1,n))},e.max=function(n,r){return e.check(qs(n,r))},e.length=function(n,r){return e.check(Hs(n,r))},e.unwrap=function(){return e.element}});function Wu(e,t){return(function(n,r,u){return new lD(C({type:"array",element:r},xe(u)))})(0,e,t)}var Dp=te("ZodObject",function(e,t){oy.init(e,t),jt.init(e,t),gt(e,"shape",function(){return t.shape}),e.keyof=function(){return Ap(Object.keys(e._zod.def.shape))},e.catchall=function(n){return e.clone(C(C({},e._zod.def),{},{catchall:n}))},e.passthrough=function(){return e.clone(C(C({},e._zod.def),{},{catchall:rr()}))},e.loose=function(){return e.clone(C(C({},e._zod.def),{},{catchall:rr()}))},e.strict=function(){return e.clone(C(C({},e._zod.def),{},{catchall:yp()}))},e.strip=function(){return e.clone(C(C({},e._zod.def),{},{catchall:void 0}))},e.extend=function(n){return(function(r,u){if(!Zu(u))throw new Error("Invalid input to extend: expected a plain object");var a=r._zod.def.checks;if(a&&a.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");var i=mu(r._zod.def,{get shape(){var o=C(C({},r._zod.def.shape),u);return vu(this,"shape",o),o},checks:[]});return Hr(r,i)})(e,n)},e.safeExtend=function(n){return(function(r,u){if(!Zu(u))throw new Error("Invalid input to safeExtend: expected a plain object");var a=C(C({},r._zod.def),{},{get shape(){var i=C(C({},r._zod.def.shape),u);return vu(this,"shape",i),i},checks:r._zod.def.checks});return Hr(r,a)})(e,n)},e.merge=function(n){return(function(r,u){var a=mu(r._zod.def,{get shape(){var i=C(C({},r._zod.def.shape),u._zod.def.shape);return vu(this,"shape",i),i},get catchall(){return u._zod.def.catchall},checks:[]});return Hr(r,a)})(e,n)},e.pick=function(n){return(function(r,u){var a=r._zod.def;return Hr(r,mu(r._zod.def,{get shape(){var i={};for(var o in u){if(!(o in a.shape))throw new Error('Unrecognized key: "'.concat(o,'"'));u[o]&&(i[o]=a.shape[o])}return vu(this,"shape",i),i},checks:[]}))})(e,n)},e.omit=function(n){return(function(r,u){var a=r._zod.def,i=mu(r._zod.def,{get shape(){var o=C({},r._zod.def.shape);for(var c in u){if(!(c in a.shape))throw new Error('Unrecognized key: "'.concat(c,'"'));u[c]&&delete o[c]}return vu(this,"shape",o),o},checks:[]});return Hr(r,i)})(e,n)},e.partial=function(){return(function(n,r,u){var a=mu(r._zod.def,{get shape(){var i=r._zod.def.shape,o=C({},i);if(u)for(var c in u){if(!(c in i))throw new Error('Unrecognized key: "'.concat(c,'"'));u[c]&&(o[c]=new n({type:"optional",innerType:i[c]}))}else for(var l in i)o[l]=new n({type:"optional",innerType:i[l]});return vu(this,"shape",o),o},checks:[]});return Hr(r,a)})(Ep,e,arguments.length<=0?void 0:arguments[0])},e.required=function(){return(function(n,r,u){var a=mu(r._zod.def,{get shape(){var i=r._zod.def.shape,o=C({},i);if(u)for(var c in u){if(!(c in o))throw new Error('Unrecognized key: "'.concat(c,'"'));u[c]&&(o[c]=new n({type:"nonoptional",innerType:i[c]}))}else for(var l in i)o[l]=new n({type:"nonoptional",innerType:i[l]});return vu(this,"shape",o),o},checks:[]});return Hr(r,a)})(Cp,e,arguments.length<=0?void 0:arguments[0])}});function sn(e,t){var n=C({type:"object",shape:e!=null?e:{}},xe(t));return new Dp(n)}function Lt(e,t){return new Dp(C({type:"object",shape:e,catchall:yp()},xe(t)))}var bp=te("ZodUnion",function(e,t){Vd.init(e,t),jt.init(e,t),e.options=t.options});function Pn(e,t){return new bp(C({type:"union",options:e},xe(t)))}var fD=te("ZodDiscriminatedUnion",function(e,t){bp.init(e,t),sy.init(e,t)}),dD=te("ZodIntersection",function(e,t){cy.init(e,t),jt.init(e,t)}),pD=te("ZodRecord",function(e,t){ly.init(e,t),jt.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function Us(e,t,n){return new pD(C({type:"record",keyType:e,valueType:t},xe(n)))}var Ws=te("ZodEnum",function(e,t){fy.init(e,t),jt.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);var n=new Set(Object.keys(t.entries));e.extract=function(r,u){var a,i={},o=ye(r);try{for(o.s();!(a=o.n()).done;){var c=a.value;if(!n.has(c))throw new Error("Key ".concat(c," not found in enum"));i[c]=t.entries[c]}}catch(l){o.e(l)}finally{o.f()}return new Ws(C(C(C({},t),{},{checks:[]},xe(u)),{},{entries:i}))},e.exclude=function(r,u){var a,i=C({},t.entries),o=ye(r);try{for(o.s();!(a=o.n()).done;){var c=a.value;if(!n.has(c))throw new Error("Key ".concat(c," not found in enum"));delete i[c]}}catch(l){o.e(l)}finally{o.f()}return new Ws(C(C(C({},t),{},{checks:[]},xe(u)),{},{entries:i}))}});function Ap(e,t){var n=Array.isArray(e)?Object.fromEntries(e.map(function(r){return[r,r]})):e;return new Ws(C({type:"enum",entries:n},xe(t)))}var hD=te("ZodLiteral",function(e,t){dy.init(e,t),jt.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get:function(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Ye(e,t){return new hD(C({type:"literal",values:Array.isArray(e)?e:[e]},xe(t)))}var vD=te("ZodTransform",function(e,t){py.init(e,t),jt.init(e,t),e._zod.parse=function(n,r){if(r.direction==="backward")throw new Fd(e.constructor.name);n.addIssue=function(a){if(typeof a=="string")n.issues.push(Ua(a,n.value,t));else{var i,o,c,l=a;l.fatal&&(l.continue=!1),(i=l.code)!==null&&i!==void 0||(l.code="custom"),(o=l.input)!==null&&o!==void 0||(l.input=n.value),(c=l.inst)!==null&&c!==void 0||(l.inst=e),n.issues.push(Ua(l))}};var u=t.transform(n.value,n);return u instanceof Promise?u.then(function(a){return n.value=a,n}):(n.value=u,n)}}),Ep=te("ZodOptional",function(e,t){hy.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}});function Fp(e){return new Ep({type:"optional",innerType:e})}var mD=te("ZodNullable",function(e,t){vy.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}});function _p(e){return new mD({type:"nullable",innerType:e})}var gD=te("ZodDefault",function(e,t){my.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType},e.removeDefault=e.unwrap}),yD=te("ZodPrefault",function(e,t){gy.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}}),Cp=te("ZodNonOptional",function(e,t){yy.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}}),DD=te("ZodCatch",function(e,t){Dy.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType},e.removeCatch=e.unwrap}),bD=te("ZodPipe",function(e,t){by.init(e,t),jt.init(e,t),e.in=t.in,e.out=t.out});function kp(e,t){return new bD({type:"pipe",in:e,out:t})}var pt,wp,AD=te("ZodReadonly",function(e,t){Ay.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.innerType}}),ED=te("ZodLazy",function(e,t){Ey.init(e,t),jt.init(e,t),e.unwrap=function(){return e._zod.def.getter()}}),Vs=te("ZodCustom",function(e,t){Fy.init(e,t),jt.init(e,t)});function Sp(e,t){return(function(n,r,u){var a,i=xe(u);return(a=i.abort)!==null&&a!==void 0||(i.abort=!0),new n(C({type:"custom",check:"custom",fn:r},i))})(Vs,e!=null?e:function(){return!0},t)}function to(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{error:"Input not instance of ".concat(e.name)},n=new Vs(C({type:"custom",check:"custom",fn:function(r){return r instanceof e},abort:!0},xe(t)));return n._zod.bag.Class=e,n}(function(e){e.assertEqual=function(t){},e.assertIs=function(t){},e.assertNever=function(t){throw new Error},e.arrayToEnum=function(t){var n,r={},u=ye(t);try{for(u.s();!(n=u.n()).done;){var a=n.value;r[a]=a}}catch(i){u.e(i)}finally{u.f()}return r},e.getValidEnumValues=function(t){var n,r={},u=ye(e.objectKeys(t).filter(function(i){return typeof t[t[i]]!="number"}));try{for(u.s();!(n=u.n()).done;){var a=n.value;r[a]=t[a]}}catch(i){u.e(i)}finally{u.f()}return e.objectValues(r)},e.objectValues=function(t){return e.objectKeys(t).map(function(n){return t[n]})},e.objectKeys=typeof Object.keys=="function"?function(t){return Object.keys(t)}:function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.push(r);return n},e.find=function(t,n){var r,u=ye(t);try{for(u.s();!(r=u.n()).done;){var a=r.value;if(n(a))return a}}catch(i){u.e(i)}finally{u.f()}},e.isInteger=typeof Number.isInteger=="function"?function(t){return Number.isInteger(t)}:function(t){return typeof t=="number"&&Number.isFinite(t)&&Math.floor(t)===t},e.joinValues=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" | ";return t.map(function(r){return typeof r=="string"?"'".concat(r,"'"):r}).join(n)},e.jsonStringifyReplacer=function(t,n){return typeof n=="bigint"?n.toString():n}})(pt||(pt={})),(wp||(wp={})).mergeShapes=function(e,t){return C(C({},e),t)};var Se=pt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Wr=function(e){switch(Qt(e)){case"undefined":return Se.undefined;case"string":return Se.string;case"number":return Number.isNaN(e)?Se.nan:Se.number;case"boolean":return Se.boolean;case"function":return Se.function;case"bigint":return Se.bigint;case"symbol":return Se.symbol;case"object":return Array.isArray(e)?Se.array:e===null?Se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Se.promise:typeof Map!="undefined"&&e instanceof Map?Se.map:typeof Set!="undefined"&&e instanceof Set?Se.set:typeof Date!="undefined"&&e instanceof Date?Se.date:Se.object;default:return Se.unknown}},de=pt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),ur=(function(){function e(t){var n;Be(this,e),(n=$e(this,e)).issues=[],n.addIssue=function(u){n.issues=[].concat(be(n.issues),[u])},n.addIssues=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];n.issues=[].concat(be(n.issues),be(u))};var r=(this instanceof e?this.constructor:void 0).prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r,n.name="ZodError",n.issues=t,n}return Me(e,Lr(Error)),Pe(e,[{key:"errors",get:function(){return this.issues}},{key:"format",value:function(t){var n=t||function(a){return a.message},r={_errors:[]},u=function(a){var i,o=ye(a.issues);try{for(o.s();!(i=o.n()).done;){var c=i.value;if(c.code==="invalid_union")c.unionErrors.map(u);else if(c.code==="invalid_return_type")u(c.returnTypeError);else if(c.code==="invalid_arguments")u(c.argumentsError);else if(c.path.length===0)r._errors.push(n(c));else for(var l=r,p=0;p<c.path.length;){var m=c.path[p];p===c.path.length-1?(l[m]=l[m]||{_errors:[]},l[m]._errors.push(n(c))):l[m]=l[m]||{_errors:[]},l=l[m],p++}}}catch(v){o.e(v)}finally{o.f()}};return u(this),r}},{key:"toString",value:function(){return this.message}},{key:"message",get:function(){return JSON.stringify(this.issues,pt.jsonStringifyReplacer,2)}},{key:"isEmpty",get:function(){return this.issues.length===0}},{key:"flatten",value:function(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c.message},r=Object.create(null),u=[],a=ye(this.issues);try{for(a.s();!(t=a.n()).done;){var i=t.value;if(i.path.length>0){var o=i.path[0];r[o]=r[o]||[],r[o].push(n(i))}else u.push(n(i))}}catch(c){a.e(c)}finally{a.f()}return{formErrors:u,fieldErrors:r}}},{key:"formErrors",get:function(){return this.flatten()}}],[{key:"assert",value:function(t){if(!(t instanceof e))throw new Error("Not a ZodError: ".concat(t))}}])})();ur.create=function(e){return new ur(e)};var Ja=function(e,t){var n;switch(e.code){case de.invalid_type:n=e.received===Se.undefined?"Required":"Expected ".concat(e.expected,", received ").concat(e.received);break;case de.invalid_literal:n="Invalid literal value, expected ".concat(JSON.stringify(e.expected,pt.jsonStringifyReplacer));break;case de.unrecognized_keys:n="Unrecognized key(s) in object: ".concat(pt.joinValues(e.keys,", "));break;case de.invalid_union:n="Invalid input";break;case de.invalid_union_discriminator:n="Invalid discriminator value. Expected ".concat(pt.joinValues(e.options));break;case de.invalid_enum_value:n="Invalid enum value. Expected ".concat(pt.joinValues(e.options),", received '").concat(e.received,"'");break;case de.invalid_arguments:n="Invalid function arguments";break;case de.invalid_return_type:n="Invalid function return type";break;case de.invalid_date:n="Invalid date";break;case de.invalid_string:Qt(e.validation)==="object"?"includes"in e.validation?(n='Invalid input: must include "'.concat(e.validation.includes,'"'),typeof e.validation.position=="number"&&(n="".concat(n," at one or more positions greater than or equal to ").concat(e.validation.position))):"startsWith"in e.validation?n='Invalid input: must start with "'.concat(e.validation.startsWith,'"'):"endsWith"in e.validation?n='Invalid input: must end with "'.concat(e.validation.endsWith,'"'):pt.assertNever(e.validation):n=e.validation!=="regex"?"Invalid ".concat(e.validation):"Invalid";break;case de.too_small:n=e.type==="array"?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"more than"," ").concat(e.minimum," element(s)"):e.type==="string"?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"over"," ").concat(e.minimum," character(s)"):e.type==="number"||e.type==="bigint"?"Number must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(e.minimum):e.type==="date"?"Date must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(new Date(Number(e.minimum))):"Invalid input";break;case de.too_big:n=e.type==="array"?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"less than"," ").concat(e.maximum," element(s)"):e.type==="string"?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"under"," ").concat(e.maximum," character(s)"):e.type==="number"?"Number must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):e.type==="bigint"?"BigInt must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):e.type==="date"?"Date must be ".concat(e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"," ").concat(new Date(Number(e.maximum))):"Invalid input";break;case de.custom:n="Invalid input";break;case de.invalid_intersection_types:n="Intersection results could not be merged";break;case de.not_multiple_of:n="Number must be a multiple of ".concat(e.multipleOf);break;case de.not_finite:n="Number must be finite";break;default:n=t.defaultError,pt.assertNever(e)}return{message:n}},FD=Ja;function Ks(){return FD}var Gs=function(e){var t=e.data,n=e.path,r=e.errorMaps,u=e.issueData,a=[].concat(be(n),be(u.path||[])),i=C(C({},u),{},{path:a});if(u.message!==void 0)return C(C({},u),{},{path:a,message:u.message});var o,c="",l=r.filter(function(m){return!!m}).slice().reverse(),p=ye(l);try{for(p.s();!(o=p.n()).done;)c=(0,o.value)(i,{data:t,defaultError:c}).message}catch(m){p.e(m)}finally{p.f()}return C(C({},u),{},{path:a,message:c})};function Ee(e,t){var n=Ks(),r=Gs({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ja?void 0:Ja].filter(function(u){return!!u})});e.common.issues.push(r)}var je,Sn=(function(){function e(){Be(this,e),this.value="valid"}return Pe(e,[{key:"dirty",value:function(){this.value==="valid"&&(this.value="dirty")}},{key:"abort",value:function(){this.value!=="aborted"&&(this.value="aborted")}}],[{key:"mergeArray",value:function(n,r){var u,a=[],i=ye(r);try{for(i.s();!(u=i.n()).done;){var o=u.value;if(o.status==="aborted")return Ze;o.status==="dirty"&&n.dirty(),a.push(o.value)}}catch(c){i.e(c)}finally{i.f()}return{status:n.value,value:a}}},{key:"mergeObjectAsync",value:(t=Xe(Ae().m(function n(r,u){var a,i,o,c,l,p,m;return Ae().w(function(v){for(;;)switch(v.p=v.n){case 0:a=[],i=ye(u),v.p=1,i.s();case 2:if((o=i.n()).done){v.n=6;break}return c=o.value,v.n=3,c.key;case 3:return l=v.v,v.n=4,c.value;case 4:p=v.v,a.push({key:l,value:p});case 5:v.n=2;break;case 6:v.n=8;break;case 7:v.p=7,m=v.v,i.e(m);case 8:return v.p=8,i.f(),v.f(8);case 9:return v.a(2,e.mergeObjectSync(r,a))}},n,null,[[1,7,8,9]])})),function(n,r){return t.apply(this,arguments)})},{key:"mergeObjectSync",value:function(n,r){var u,a={},i=ye(r);try{for(i.s();!(u=i.n()).done;){var o=u.value,c=o.key,l=o.value;if(c.status==="aborted"||l.status==="aborted")return Ze;c.status==="dirty"&&n.dirty(),l.status==="dirty"&&n.dirty(),c.value==="__proto__"||l.value===void 0&&!o.alwaysSet||(a[c.value]=l.value)}}catch(p){i.e(p)}finally{i.f()}return{status:n.value,value:a}}}]);var t})(),Ze=Object.freeze({status:"aborted"}),no=function(e){return{status:"dirty",value:e}},En=function(e){return{status:"valid",value:e}},xp=function(e){return e.status==="aborted"},Tp=function(e){return e.status==="dirty"},Vu=function(e){return e.status==="valid"},ro=function(e){return typeof Promise!="undefined"&&e instanceof Promise};(function(e){e.errToObj=function(t){return typeof t=="string"?{message:t}:t||{}},e.toString=function(t){return typeof t=="string"?t:t==null?void 0:t.message}})(je||(je={}));var ar=Pe(function e(t,n,r,u){Be(this,e),this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=u},[{key:"path",get:function(){var e,t;return this._cachedPath.length||(Array.isArray(this._key)?(e=this._cachedPath).push.apply(e,be(this._path).concat(be(this._key))):(t=this._cachedPath).push.apply(t,be(this._path).concat([this._key]))),this._cachedPath}}]),Op=function(e,t){if(Vu(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;var n=new ur(e.common.issues);return this._error=n,this._error}}};function Ke(e){if(!e)return{};var t=e.errorMap,n=e.invalid_type_error,r=e.required_error,u=e.description;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:u}:{errorMap:function(a,i){var o,c,l=e.message;return a.code==="invalid_enum_value"?{message:l!=null?l:i.defaultError}:i.data===void 0?{message:(c=l!=null?l:r)!==null&&c!==void 0?c:i.defaultError}:a.code!=="invalid_type"?{message:i.defaultError}:{message:(o=l!=null?l:n)!==null&&o!==void 0?o:i.defaultError}},description:u}}var Js,tt=(function(){return Pe(function t(n){var r=this;Be(this,t),this.spa=this.safeParseAsync,this._def=n,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:function(u){return r["~validate"](u)}}},[{key:"description",get:function(){return this._def.description}},{key:"_getType",value:function(t){return Wr(t.data)}},{key:"_getOrReturnCtx",value:function(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Wr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}},{key:"_processInputParams",value:function(t){return{status:new Sn,ctx:{common:t.parent.common,data:t.data,parsedType:Wr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}},{key:"_parseSync",value:function(t){var n=this._parse(t);if(ro(n))throw new Error("Synchronous parse encountered promise.");return n}},{key:"_parseAsync",value:function(t){var n=this._parse(t);return Promise.resolve(n)}},{key:"parse",value:function(t,n){var r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}},{key:"safeParse",value:function(t,n){var r,u={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0&&r,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wr(t)},a=this._parseSync({data:t,path:u.path,parent:u});return Op(u,a)}},{key:"~validate",value:function(t){var n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wr(t)};if(!this["~standard"].async)try{var r=this._parseSync({data:t,path:[],parent:n});return Vu(r)?{value:r.value}:{issues:n.common.issues}}catch(a){var u;a!=null&&(u=a.message)!==null&&u!==void 0&&(u=u.toLowerCase())!==null&&u!==void 0&&u.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(function(a){return Vu(a)?{value:a.value}:{issues:n.common.issues}})}},{key:"parseAsync",value:(e=Xe(Ae().m(function t(n,r){var u;return Ae().w(function(a){for(;;)switch(a.n){case 0:return a.n=1,this.safeParseAsync(n,r);case 1:if(!(u=a.v).success){a.n=2;break}return a.a(2,u.data);case 2:throw u.error;case 3:return a.a(2)}},t,this)})),function(t,n){return e.apply(this,arguments)})},{key:"safeParseAsync",value:(function(){var t=Xe(Ae().m(function n(r,u){var a,i,o;return Ae().w(function(c){for(;;)switch(c.n){case 0:return a={common:{issues:[],contextualErrorMap:u==null?void 0:u.errorMap,async:!0},path:(u==null?void 0:u.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Wr(r)},i=this._parse({data:r,path:a.path,parent:a}),c.n=1,ro(i)?i:Promise.resolve(i);case 1:return o=c.v,c.a(2,Op(a,o))}},n,this)}));return function(n,r){return t.apply(this,arguments)}})()},{key:"refine",value:function(t,n){return this._refinement(function(r,u){var a=t(r),i=function(){return u.addIssue(C({code:de.custom},(function(o){return typeof n=="string"||n===void 0?{message:n}:typeof n=="function"?n(o):n})(r)))};return typeof Promise!="undefined"&&a instanceof Promise?a.then(function(o){return!!o||(i(),!1)}):!!a||(i(),!1)})}},{key:"refinement",value:function(t,n){return this._refinement(function(r,u){return!!t(r)||(u.addIssue(typeof n=="function"?n(r,u):n),!1)})}},{key:"_refinement",value:function(t){return new _r({schema:this,typeName:ve.ZodEffects,effect:{type:"refinement",refinement:t}})}},{key:"superRefine",value:function(t){return this._refinement(t)}},{key:"optional",value:function(){return Cr.create(this,this._def)}},{key:"nullable",value:function(){return Du.create(this,this._def)}},{key:"nullish",value:function(){return this.nullable().optional()}},{key:"array",value:function(){return Gu.create(this)}},{key:"promise",value:function(){return Qa.create(this,this._def)}},{key:"or",value:function(t){return oo.create([this,t],this._def)}},{key:"and",value:function(t){return so.create(this,t,this._def)}},{key:"transform",value:function(t){return new _r(C(C({},Ke(this._def)),{},{schema:this,typeName:ve.ZodEffects,effect:{type:"transform",transform:t}}))}},{key:"default",value:function(t){var n=typeof t=="function"?t:function(){return t};return new ho(C(C({},Ke(this._def)),{},{innerType:this,defaultValue:n,typeName:ve.ZodDefault}))}},{key:"brand",value:function(){return new jp(C({typeName:ve.ZodBranded,type:this},Ke(this._def)))}},{key:"catch",value:function(t){var n=typeof t=="function"?t:function(){return t};return new vo(C(C({},Ke(this._def)),{},{innerType:this,catchValue:n,typeName:ve.ZodCatch}))}},{key:"describe",value:function(t){return new this.constructor(C(C({},this._def),{},{description:t}))}},{key:"pipe",value:function(t){return Np.create(this,t)}},{key:"readonly",value:function(){return mo.create(this)}},{key:"isOptional",value:function(){return this.safeParse(void 0).success}},{key:"isNullable",value:function(){return this.safeParse(null).success}}]);var e})(),_D=/^c[^\s-]{8,}$/i,CD=/^[0-9a-z]+$/,kD=/^[0-9A-HJKMNP-TV-Z]{26}$/i,wD=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,SD=/^[a-z0-9_-]{21}$/i,xD=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,TD=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,OD=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ID=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,BD=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,PD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,jD=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ND=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,RD=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ip="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",zD=new RegExp("^".concat(Ip,"$"));function Bp(e){var t="[0-5]\\d";e.precision?t="".concat(t,"\\.\\d{").concat(e.precision,"}"):e.precision==null&&(t="".concat(t,"(\\.\\d+)?"));var n=e.precision?"+":"?";return"([01]\\d|2[0-3]):[0-5]\\d(:".concat(t,")").concat(n)}function LD(e){return new RegExp("^".concat(Bp(e),"$"))}function MD(e){var t="".concat(Ip,"T").concat(Bp(e)),n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t="".concat(t,"(").concat(n.join("|"),")"),new RegExp("^".concat(t,"$"))}function $D(e,t){return!(t!=="v4"&&t||!ID.test(e))||!(t!=="v6"&&t||!PD.test(e))}function ZD(e,t){if(!xD.test(e))return!1;try{var n=dt(e.split("."),1)[0];if(!n)return!1;var r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),u=JSON.parse(atob(r));return!(Qt(u)!=="object"||u===null||"typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||t&&u.alg!==t)}catch(a){return!1}}function qD(e,t){return!(t!=="v4"&&t||!BD.test(e))||!(t!=="v6"&&t||!jD.test(e))}var uo=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Se.string){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.string,received:n.parsedType}),Ze}var r,u=new Sn,a=void 0,i=ye(this._def.checks);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o.kind==="min")t.data.length<o.value&&(Ee(a=this._getOrReturnCtx(t,a),{code:de.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),u.dirty());else if(o.kind==="max")t.data.length>o.value&&(Ee(a=this._getOrReturnCtx(t,a),{code:de.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),u.dirty());else if(o.kind==="length"){var c=t.data.length>o.value,l=t.data.length<o.value;(c||l)&&(a=this._getOrReturnCtx(t,a),c?Ee(a,{code:de.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):l&&Ee(a,{code:de.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),u.dirty())}else if(o.kind==="email")OD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"email",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="emoji")Js||(Js=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Js.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"emoji",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="uuid")wD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"uuid",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="nanoid")SD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"nanoid",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="cuid")_D.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"cuid",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="cuid2")CD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"cuid2",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="ulid")kD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"ulid",code:de.invalid_string,message:o.message}),u.dirty());else if(o.kind==="url")try{new URL(t.data)}catch(p){Ee(a=this._getOrReturnCtx(t,a),{validation:"url",code:de.invalid_string,message:o.message}),u.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"regex",code:de.invalid_string,message:o.message}),u.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(Ee(a=this._getOrReturnCtx(t,a),{code:de.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),u.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(Ee(a=this._getOrReturnCtx(t,a),{code:de.invalid_string,validation:{startsWith:o.value},message:o.message}),u.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(Ee(a=this._getOrReturnCtx(t,a),{code:de.invalid_string,validation:{endsWith:o.value},message:o.message}),u.dirty()):o.kind==="datetime"?MD(o).test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{code:de.invalid_string,validation:"datetime",message:o.message}),u.dirty()):o.kind==="date"?zD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{code:de.invalid_string,validation:"date",message:o.message}),u.dirty()):o.kind==="time"?LD(o).test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{code:de.invalid_string,validation:"time",message:o.message}),u.dirty()):o.kind==="duration"?TD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"duration",code:de.invalid_string,message:o.message}),u.dirty()):o.kind==="ip"?$D(t.data,o.version)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"ip",code:de.invalid_string,message:o.message}),u.dirty()):o.kind==="jwt"?ZD(t.data,o.alg)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"jwt",code:de.invalid_string,message:o.message}),u.dirty()):o.kind==="cidr"?qD(t.data,o.version)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"cidr",code:de.invalid_string,message:o.message}),u.dirty()):o.kind==="base64"?ND.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"base64",code:de.invalid_string,message:o.message}),u.dirty()):o.kind==="base64url"?RD.test(t.data)||(Ee(a=this._getOrReturnCtx(t,a),{validation:"base64url",code:de.invalid_string,message:o.message}),u.dirty()):pt.assertNever(o)}}catch(p){i.e(p)}finally{i.f()}return{status:u.value,value:t.data}}},{key:"_regex",value:function(t,n,r){return this.refinement(function(u){return t.test(u)},C({validation:n,code:de.invalid_string},je.errToObj(r)))}},{key:"_addCheck",value:function(t){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[t])}))}},{key:"email",value:function(t){return this._addCheck(C({kind:"email"},je.errToObj(t)))}},{key:"url",value:function(t){return this._addCheck(C({kind:"url"},je.errToObj(t)))}},{key:"emoji",value:function(t){return this._addCheck(C({kind:"emoji"},je.errToObj(t)))}},{key:"uuid",value:function(t){return this._addCheck(C({kind:"uuid"},je.errToObj(t)))}},{key:"nanoid",value:function(t){return this._addCheck(C({kind:"nanoid"},je.errToObj(t)))}},{key:"cuid",value:function(t){return this._addCheck(C({kind:"cuid"},je.errToObj(t)))}},{key:"cuid2",value:function(t){return this._addCheck(C({kind:"cuid2"},je.errToObj(t)))}},{key:"ulid",value:function(t){return this._addCheck(C({kind:"ulid"},je.errToObj(t)))}},{key:"base64",value:function(t){return this._addCheck(C({kind:"base64"},je.errToObj(t)))}},{key:"base64url",value:function(t){return this._addCheck(C({kind:"base64url"},je.errToObj(t)))}},{key:"jwt",value:function(t){return this._addCheck(C({kind:"jwt"},je.errToObj(t)))}},{key:"ip",value:function(t){return this._addCheck(C({kind:"ip"},je.errToObj(t)))}},{key:"cidr",value:function(t){return this._addCheck(C({kind:"cidr"},je.errToObj(t)))}},{key:"datetime",value:function(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck(C({kind:"datetime",precision:(t==null?void 0:t.precision)===void 0?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0&&n,local:(r=t==null?void 0:t.local)!==null&&r!==void 0&&r},je.errToObj(t==null?void 0:t.message)))}},{key:"date",value:function(t){return this._addCheck({kind:"date",message:t})}},{key:"time",value:function(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck(C({kind:"time",precision:(t==null?void 0:t.precision)===void 0?null:t==null?void 0:t.precision},je.errToObj(t==null?void 0:t.message)))}},{key:"duration",value:function(t){return this._addCheck(C({kind:"duration"},je.errToObj(t)))}},{key:"regex",value:function(t,n){return this._addCheck(C({kind:"regex",regex:t},je.errToObj(n)))}},{key:"includes",value:function(t,n){return this._addCheck(C({kind:"includes",value:t,position:n==null?void 0:n.position},je.errToObj(n==null?void 0:n.message)))}},{key:"startsWith",value:function(t,n){return this._addCheck(C({kind:"startsWith",value:t},je.errToObj(n)))}},{key:"endsWith",value:function(t,n){return this._addCheck(C({kind:"endsWith",value:t},je.errToObj(n)))}},{key:"min",value:function(t,n){return this._addCheck(C({kind:"min",value:t},je.errToObj(n)))}},{key:"max",value:function(t,n){return this._addCheck(C({kind:"max",value:t},je.errToObj(n)))}},{key:"length",value:function(t,n){return this._addCheck(C({kind:"length",value:t},je.errToObj(n)))}},{key:"nonempty",value:function(t){return this.min(1,je.errToObj(t))}},{key:"trim",value:function(){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[{kind:"trim"}])}))}},{key:"toLowerCase",value:function(){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[{kind:"toLowerCase"}])}))}},{key:"toUpperCase",value:function(){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[{kind:"toUpperCase"}])}))}},{key:"isDatetime",get:function(){return!!this._def.checks.find(function(t){return t.kind==="datetime"})}},{key:"isDate",get:function(){return!!this._def.checks.find(function(t){return t.kind==="date"})}},{key:"isTime",get:function(){return!!this._def.checks.find(function(t){return t.kind==="time"})}},{key:"isDuration",get:function(){return!!this._def.checks.find(function(t){return t.kind==="duration"})}},{key:"isEmail",get:function(){return!!this._def.checks.find(function(t){return t.kind==="email"})}},{key:"isURL",get:function(){return!!this._def.checks.find(function(t){return t.kind==="url"})}},{key:"isEmoji",get:function(){return!!this._def.checks.find(function(t){return t.kind==="emoji"})}},{key:"isUUID",get:function(){return!!this._def.checks.find(function(t){return t.kind==="uuid"})}},{key:"isNANOID",get:function(){return!!this._def.checks.find(function(t){return t.kind==="nanoid"})}},{key:"isCUID",get:function(){return!!this._def.checks.find(function(t){return t.kind==="cuid"})}},{key:"isCUID2",get:function(){return!!this._def.checks.find(function(t){return t.kind==="cuid2"})}},{key:"isULID",get:function(){return!!this._def.checks.find(function(t){return t.kind==="ulid"})}},{key:"isIP",get:function(){return!!this._def.checks.find(function(t){return t.kind==="ip"})}},{key:"isCIDR",get:function(){return!!this._def.checks.find(function(t){return t.kind==="cidr"})}},{key:"isBase64",get:function(){return!!this._def.checks.find(function(t){return t.kind==="base64"})}},{key:"isBase64url",get:function(){return!!this._def.checks.find(function(t){return t.kind==="base64url"})}},{key:"minLength",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="min"&&(n===null||u.value>n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"maxLength",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}}])})();function HD(e,t){var n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,u=n>r?n:r;return Number.parseInt(e.toFixed(u).replace(".",""))%Number.parseInt(t.toFixed(u).replace(".",""))/Math.pow(10,u)}uo.create=function(e){var t;return new uo(C({checks:[],typeName:ve.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0&&t},Ke(e)))};var Qs=(function(){function e(){var t;return Be(this,e),(t=$e(this,e,arguments)).min=t.gte,t.max=t.lte,t.step=t.multipleOf,t}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Se.number){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.number,received:n.parsedType}),Ze}var r,u=void 0,a=new Sn,i=ye(this._def.checks);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.kind==="int"?pt.isInteger(t.data)||(Ee(u=this._getOrReturnCtx(t,u),{code:de.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(Ee(u=this._getOrReturnCtx(t,u),{code:de.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(Ee(u=this._getOrReturnCtx(t,u),{code:de.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?HD(t.data,o.value)!==0&&(Ee(u=this._getOrReturnCtx(t,u),{code:de.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(Ee(u=this._getOrReturnCtx(t,u),{code:de.not_finite,message:o.message}),a.dirty()):pt.assertNever(o)}}catch(c){i.e(c)}finally{i.f()}return{status:a.value,value:t.data}}},{key:"gte",value:function(t,n){return this.setLimit("min",t,!0,je.toString(n))}},{key:"gt",value:function(t,n){return this.setLimit("min",t,!1,je.toString(n))}},{key:"lte",value:function(t,n){return this.setLimit("max",t,!0,je.toString(n))}},{key:"lt",value:function(t,n){return this.setLimit("max",t,!1,je.toString(n))}},{key:"setLimit",value:function(t,n,r,u){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[{kind:t,value:n,inclusive:r,message:je.toString(u)}])}))}},{key:"_addCheck",value:function(t){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[t])}))}},{key:"int",value:function(t){return this._addCheck({kind:"int",message:je.toString(t)})}},{key:"positive",value:function(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:je.toString(t)})}},{key:"negative",value:function(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:je.toString(t)})}},{key:"nonpositive",value:function(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:je.toString(t)})}},{key:"nonnegative",value:function(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:je.toString(t)})}},{key:"multipleOf",value:function(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(n)})}},{key:"finite",value:function(t){return this._addCheck({kind:"finite",message:je.toString(t)})}},{key:"safe",value:function(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:je.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:je.toString(t)})}},{key:"minValue",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="min"&&(n===null||u.value>n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"maxValue",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"isInt",get:function(){return!!this._def.checks.find(function(t){return t.kind==="int"||t.kind==="multipleOf"&&pt.isInteger(t.value)})}},{key:"isFinite",get:function(){var t,n=null,r=null,u=ye(this._def.checks);try{for(u.s();!(t=u.n()).done;){var a=t.value;if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(r===null||a.value>r)&&(r=a.value):a.kind==="max"&&(n===null||a.value<n)&&(n=a.value)}}catch(i){u.e(i)}finally{u.f()}return Number.isFinite(r)&&Number.isFinite(n)}}])})();Qs.create=function(e){return new Qs(C({checks:[],typeName:ve.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1},Ke(e)))};var Ys=(function(){function e(){var t;return Be(this,e),(t=$e(this,e,arguments)).min=t.gte,t.max=t.lte,t}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch(o){return this._getInvalidInput(t)}if(this._getType(t)!==Se.bigint)return this._getInvalidInput(t);var n,r=void 0,u=new Sn,a=ye(this._def.checks);try{for(a.s();!(n=a.n()).done;){var i=n.value;i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(Ee(r=this._getOrReturnCtx(t,r),{code:de.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),u.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(Ee(r=this._getOrReturnCtx(t,r),{code:de.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),u.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(Ee(r=this._getOrReturnCtx(t,r),{code:de.not_multiple_of,multipleOf:i.value,message:i.message}),u.dirty()):pt.assertNever(i)}}catch(o){a.e(o)}finally{a.f()}return{status:u.value,value:t.data}}},{key:"_getInvalidInput",value:function(t){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.bigint,received:n.parsedType}),Ze}},{key:"gte",value:function(t,n){return this.setLimit("min",t,!0,je.toString(n))}},{key:"gt",value:function(t,n){return this.setLimit("min",t,!1,je.toString(n))}},{key:"lte",value:function(t,n){return this.setLimit("max",t,!0,je.toString(n))}},{key:"lt",value:function(t,n){return this.setLimit("max",t,!1,je.toString(n))}},{key:"setLimit",value:function(t,n,r,u){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[{kind:t,value:n,inclusive:r,message:je.toString(u)}])}))}},{key:"_addCheck",value:function(t){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[t])}))}},{key:"positive",value:function(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:je.toString(t)})}},{key:"negative",value:function(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:je.toString(t)})}},{key:"nonpositive",value:function(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:je.toString(t)})}},{key:"nonnegative",value:function(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:je.toString(t)})}},{key:"multipleOf",value:function(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(n)})}},{key:"minValue",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="min"&&(n===null||u.value>n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"maxValue",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n}}])})();Ys.create=function(e){var t;return new Ys(C({checks:[],typeName:ve.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0&&t},Ke(e)))};var Xs=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Se.boolean){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.boolean,received:n.parsedType}),Ze}return En(t.data)}}])})();Xs.create=function(e){return new Xs(C({typeName:ve.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1},Ke(e)))};var ec=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Se.date){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.date,received:n.parsedType}),Ze}if(Number.isNaN(t.data.getTime()))return Ee(this._getOrReturnCtx(t),{code:de.invalid_date}),Ze;var r,u=new Sn,a=void 0,i=ye(this._def.checks);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.kind==="min"?t.data.getTime()<o.value&&(Ee(a=this._getOrReturnCtx(t,a),{code:de.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),u.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(Ee(a=this._getOrReturnCtx(t,a),{code:de.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),u.dirty()):pt.assertNever(o)}}catch(c){i.e(c)}finally{i.f()}return{status:u.value,value:new Date(t.data.getTime())}}},{key:"_addCheck",value:function(t){return new e(C(C({},this._def),{},{checks:[].concat(be(this._def.checks),[t])}))}},{key:"min",value:function(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:je.toString(n)})}},{key:"max",value:function(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:je.toString(n)})}},{key:"minDate",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="min"&&(n===null||u.value>n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n!=null?new Date(n):null}},{key:"maxDate",get:function(){var t,n=null,r=ye(this._def.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;u.kind==="max"&&(n===null||u.value<n)&&(n=u.value)}}catch(a){r.e(a)}finally{r.f()}return n!=null?new Date(n):null}}])})();ec.create=function(e){return new ec(C({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ve.ZodDate},Ke(e)))};var tc=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._getType(t)!==Se.symbol){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.symbol,received:n.parsedType}),Ze}return En(t.data)}}])})();tc.create=function(e){return new tc(C({typeName:ve.ZodSymbol},Ke(e)))};var ao=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._getType(t)!==Se.undefined){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.undefined,received:n.parsedType}),Ze}return En(t.data)}}])})();ao.create=function(e){return new ao(C({typeName:ve.ZodUndefined},Ke(e)))};var io=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._getType(t)!==Se.null){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.null,received:n.parsedType}),Ze}return En(t.data)}}])})();io.create=function(e){return new io(C({typeName:ve.ZodNull},Ke(e)))};var nc=(function(){function e(){var t;return Be(this,e),(t=$e(this,e,arguments))._any=!0,t}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){return En(t.data)}}])})();nc.create=function(e){return new nc(C({typeName:ve.ZodAny},Ke(e)))};var Ku=(function(){function e(){var t;return Be(this,e),(t=$e(this,e,arguments))._unknown=!0,t}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){return En(t.data)}}])})();Ku.create=function(e){return new Ku(C({typeName:ve.ZodUnknown},Ke(e)))};var Vr=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.never,received:n.parsedType}),Ze}}])})();Vr.create=function(e){return new Vr(C({typeName:ve.ZodNever},Ke(e)))};var rc=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._getType(t)!==Se.undefined){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.void,received:n.parsedType}),Ze}return En(t.data)}}])})();rc.create=function(e){return new rc(C({typeName:ve.ZodVoid},Ke(e)))};var Gu=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.ctx,u=n.status,a=this._def;if(r.parsedType!==Se.array)return Ee(r,{code:de.invalid_type,expected:Se.array,received:r.parsedType}),Ze;if(a.exactLength!==null){var i=r.data.length>a.exactLength.value,o=r.data.length<a.exactLength.value;(i||o)&&(Ee(r,{code:i?de.too_big:de.too_small,minimum:o?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),u.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(Ee(r,{code:de.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),u.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(Ee(r,{code:de.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),u.dirty()),r.common.async)return Promise.all(be(r.data).map(function(l,p){return a.type._parseAsync(new ar(r,l,r.path,p))})).then(function(l){return Sn.mergeArray(u,l)});var c=be(r.data).map(function(l,p){return a.type._parseSync(new ar(r,l,r.path,p))});return Sn.mergeArray(u,c)}},{key:"element",get:function(){return this._def.type}},{key:"min",value:function(t,n){return new e(C(C({},this._def),{},{minLength:{value:t,message:je.toString(n)}}))}},{key:"max",value:function(t,n){return new e(C(C({},this._def),{},{maxLength:{value:t,message:je.toString(n)}}))}},{key:"length",value:function(t,n){return new e(C(C({},this._def),{},{exactLength:{value:t,message:je.toString(n)}}))}},{key:"nonempty",value:function(t){return this.min(1,t)}}])})();function Ju(e){if(e instanceof Vn){var t={};for(var n in e.shape){var r=e.shape[n];t[n]=Cr.create(Ju(r))}return new Vn(C(C({},e._def),{},{shape:function(){return t}}))}return e instanceof Gu?new Gu(C(C({},e._def),{},{type:Ju(e.element)})):e instanceof Cr?Cr.create(Ju(e.unwrap())):e instanceof Du?Du.create(Ju(e.unwrap())):e instanceof yu?yu.create(e.items.map(function(u){return Ju(u)})):e}Gu.create=function(e,t){return new Gu(C({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ve.ZodArray},Ke(t)))};var Vn=(function(){function e(){var t;return Be(this,e),(t=$e(this,e,arguments))._cached=null,t.nonstrict=t.passthrough,t.augment=t.extend,t}return Me(e,tt),Pe(e,[{key:"_getCached",value:function(){if(this._cached!==null)return this._cached;var t=this._def.shape(),n=pt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}},{key:"_parse",value:function(t){if(this._getType(t)!==Se.object){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.object,received:n.parsedType}),Ze}var r=this._processInputParams(t),u=r.status,a=r.ctx,i=this._getCached(),o=i.shape,c=i.keys,l=[];if(!(this._def.catchall instanceof Vr&&this._def.unknownKeys==="strip"))for(var p in a.data)c.includes(p)||l.push(p);var m,v=[],y=ye(c);try{for(y.s();!(m=y.n()).done;){var F=m.value,D=o[F],_=a.data[F];v.push({key:{status:"valid",value:F},value:D._parse(new ar(a,_,a.path,F)),alwaysSet:F in a.data})}}catch(R){y.e(R)}finally{y.f()}if(this._def.catchall instanceof Vr){var O=this._def.unknownKeys;if(O==="passthrough"){var w,x=ye(l);try{for(x.s();!(w=x.n()).done;){var S=w.value;v.push({key:{status:"valid",value:S},value:{status:"valid",value:a.data[S]}})}}catch(R){x.e(R)}finally{x.f()}}else if(O==="strict")l.length>0&&(Ee(a,{code:de.unrecognized_keys,keys:l}),u.dirty());else if(O!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{var T,I=this._def.catchall,B=ye(l);try{for(B.s();!(T=B.n()).done;){var d=T.value,H=a.data[d];v.push({key:{status:"valid",value:d},value:I._parse(new ar(a,H,a.path,d)),alwaysSet:d in a.data})}}catch(R){B.e(R)}finally{B.f()}}return a.common.async?Promise.resolve().then(Xe(Ae().m(function R(){var Z,q,G,L,ne,Q,$;return Ae().w(function(Y){for(;;)switch(Y.p=Y.n){case 0:Z=[],q=ye(v),Y.p=1,q.s();case 2:if((G=q.n()).done){Y.n=6;break}return L=G.value,Y.n=3,L.key;case 3:return ne=Y.v,Y.n=4,L.value;case 4:Q=Y.v,Z.push({key:ne,value:Q,alwaysSet:L.alwaysSet});case 5:Y.n=2;break;case 6:Y.n=8;break;case 7:Y.p=7,$=Y.v,q.e($);case 8:return Y.p=8,q.f(),Y.f(8);case 9:return Y.a(2,Z)}},R,null,[[1,7,8,9]])}))).then(function(R){return Sn.mergeObjectSync(u,R)}):Sn.mergeObjectSync(u,v)}},{key:"shape",get:function(){return this._def.shape()}},{key:"strict",value:function(t){var n=this;return je.errToObj,new e(C(C({},this._def),{},{unknownKeys:"strict"},t!==void 0?{errorMap:function(r,u){var a,i,o,c,l=(a=(i=(o=n._def).errorMap)===null||i===void 0?void 0:i.call(o,r,u).message)!==null&&a!==void 0?a:u.defaultError;return r.code==="unrecognized_keys"?{message:(c=je.errToObj(t).message)!==null&&c!==void 0?c:l}:{message:l}}}:{}))}},{key:"strip",value:function(){return new e(C(C({},this._def),{},{unknownKeys:"strip"}))}},{key:"passthrough",value:function(){return new e(C(C({},this._def),{},{unknownKeys:"passthrough"}))}},{key:"extend",value:function(t){var n=this;return new e(C(C({},this._def),{},{shape:function(){return C(C({},n._def.shape()),t)}}))}},{key:"merge",value:function(t){var n=this;return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:function(){return C(C({},n._def.shape()),t._def.shape())},typeName:ve.ZodObject})}},{key:"setKey",value:function(t,n){return this.augment(lt({},t,n))}},{key:"catchall",value:function(t){return new e(C(C({},this._def),{},{catchall:t}))}},{key:"pick",value:function(t){var n,r={},u=ye(pt.objectKeys(t));try{for(u.s();!(n=u.n()).done;){var a=n.value;t[a]&&this.shape[a]&&(r[a]=this.shape[a])}}catch(i){u.e(i)}finally{u.f()}return new e(C(C({},this._def),{},{shape:function(){return r}}))}},{key:"omit",value:function(t){var n,r={},u=ye(pt.objectKeys(this.shape));try{for(u.s();!(n=u.n()).done;){var a=n.value;t[a]||(r[a]=this.shape[a])}}catch(i){u.e(i)}finally{u.f()}return new e(C(C({},this._def),{},{shape:function(){return r}}))}},{key:"deepPartial",value:function(){return Ju(this)}},{key:"partial",value:function(t){var n,r={},u=ye(pt.objectKeys(this.shape));try{for(u.s();!(n=u.n()).done;){var a=n.value,i=this.shape[a];t&&!t[a]?r[a]=i:r[a]=i.optional()}}catch(o){u.e(o)}finally{u.f()}return new e(C(C({},this._def),{},{shape:function(){return r}}))}},{key:"required",value:function(t){var n,r={},u=ye(pt.objectKeys(this.shape));try{for(u.s();!(n=u.n()).done;){var a=n.value;if(t&&!t[a])r[a]=this.shape[a];else{for(var i=this.shape[a];i instanceof Cr;)i=i._def.innerType;r[a]=i}}}catch(o){u.e(o)}finally{u.f()}return new e(C(C({},this._def),{},{shape:function(){return r}}))}},{key:"keyof",value:function(){return Pp(pt.objectKeys(this.shape))}}])})();Vn.create=function(e,t){return new Vn(C({shape:function(){return e},unknownKeys:"strip",catchall:Vr.create(),typeName:ve.ZodObject},Ke(t)))},Vn.strictCreate=function(e,t){return new Vn(C({shape:function(){return e},unknownKeys:"strict",catchall:Vr.create(),typeName:ve.ZodObject},Ke(t)))},Vn.lazycreate=function(e,t){return new Vn(C({shape:e,unknownKeys:"strip",catchall:Vr.create(),typeName:ve.ZodObject},Ke(t)))};var oo=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx,r=this._def.options;if(n.common.async)return Promise.all(r.map((function(){var y=Xe(Ae().m(function F(D){var _,O,w;return Ae().w(function(x){for(;;)switch(x.n){case 0:return _=C(C({},n),{},{common:C(C({},n.common),{},{issues:[]}),parent:null}),x.n=1,D._parseAsync({data:n.data,path:n.path,parent:_});case 1:return O=x.v,w=_,x.a(2,{result:O,ctx:w})}},F)}));return function(F){return y.apply(this,arguments)}})())).then(function(y){var F,D=ye(y);try{for(D.s();!(F=D.n()).done;){var _=F.value;if(_.result.status==="valid")return _.result}}catch(I){D.e(I)}finally{D.f()}var O,w=ye(y);try{for(w.s();!(O=w.n()).done;){var x,S=O.value;if(S.result.status==="dirty")return(x=n.common.issues).push.apply(x,be(S.ctx.common.issues)),S.result}}catch(I){w.e(I)}finally{w.f()}var T=y.map(function(I){return new ur(I.ctx.common.issues)});return Ee(n,{code:de.invalid_union,unionErrors:T}),Ze});var u,a,i=void 0,o=[],c=ye(r);try{for(c.s();!(u=c.n()).done;){var l=u.value,p=C(C({},n),{},{common:C(C({},n.common),{},{issues:[]}),parent:null}),m=l._parseSync({data:n.data,path:n.path,parent:p});if(m.status==="valid")return m;m.status!=="dirty"||i||(i={result:m,ctx:p}),p.common.issues.length&&o.push(p.common.issues)}}catch(y){c.e(y)}finally{c.f()}if(i)return(a=n.common.issues).push.apply(a,be(i.ctx.common.issues)),i.result;var v=o.map(function(y){return new ur(y)});return Ee(n,{code:de.invalid_union,unionErrors:v}),Ze}},{key:"options",get:function(){return this._def.options}}])})();oo.create=function(e,t){return new oo(C({options:e,typeName:ve.ZodUnion},Ke(t)))};var Kr=function(e){return e instanceof co?Kr(e.schema):e instanceof _r?Kr(e.innerType()):e instanceof lo?[e.value]:e instanceof fo?e.options:e instanceof po?pt.objectValues(e.enum):e instanceof ho?Kr(e._def.innerType):e instanceof ao?[void 0]:e instanceof io?[null]:e instanceof Cr?[void 0].concat(be(Kr(e.unwrap()))):e instanceof Du?[null].concat(be(Kr(e.unwrap()))):e instanceof jp||e instanceof mo?Kr(e.unwrap()):e instanceof vo?Kr(e._def.innerType):[]},UD=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx;if(n.parsedType!==Se.object)return Ee(n,{code:de.invalid_type,expected:Se.object,received:n.parsedType}),Ze;var r=this.discriminator,u=n.data[r],a=this.optionsMap.get(u);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(Ee(n,{code:de.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ze)}},{key:"discriminator",get:function(){return this._def.discriminator}},{key:"options",get:function(){return this._def.options}},{key:"optionsMap",get:function(){return this._def.optionsMap}}],[{key:"create",value:function(t,n,r){var u,a=new Map,i=ye(n);try{for(i.s();!(u=i.n()).done;){var o=u.value,c=Kr(o.shape[t]);if(!c.length)throw new Error("A discriminator value for key `".concat(t,"` could not be extracted from all schema options"));var l,p=ye(c);try{for(p.s();!(l=p.n()).done;){var m=l.value;if(a.has(m))throw new Error("Discriminator property ".concat(String(t)," has duplicate value ").concat(String(m)));a.set(m,o)}}catch(v){p.e(v)}finally{p.f()}}}catch(v){i.e(v)}finally{i.f()}return new e(C({typeName:ve.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a},Ke(r)))}}])})();function uc(e,t){var n=Wr(e),r=Wr(t);if(e===t)return{valid:!0,data:e};if(n===Se.object&&r===Se.object){var u,a=pt.objectKeys(t),i=pt.objectKeys(e).filter(function(F){return a.indexOf(F)!==-1}),o=C(C({},e),t),c=ye(i);try{for(c.s();!(u=c.n()).done;){var l=u.value,p=uc(e[l],t[l]);if(!p.valid)return{valid:!1};o[l]=p.data}}catch(F){c.e(F)}finally{c.f()}return{valid:!0,data:o}}if(n===Se.array&&r===Se.array){if(e.length!==t.length)return{valid:!1};for(var m=[],v=0;v<e.length;v++){var y=uc(e[v],t[v]);if(!y.valid)return{valid:!1};m.push(y.data)}return{valid:!0,data:m}}return n===Se.date&&r===Se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var so=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.status,u=n.ctx,a=function(i,o){if(xp(i)||xp(o))return Ze;var c=uc(i.value,o.value);return c.valid?((Tp(i)||Tp(o))&&r.dirty(),{status:r.value,value:c.data}):(Ee(u,{code:de.invalid_intersection_types}),Ze)};return u.common.async?Promise.all([this._def.left._parseAsync({data:u.data,path:u.path,parent:u}),this._def.right._parseAsync({data:u.data,path:u.path,parent:u})]).then(function(i){var o=dt(i,2),c=o[0],l=o[1];return a(c,l)}):a(this._def.left._parseSync({data:u.data,path:u.path,parent:u}),this._def.right._parseSync({data:u.data,path:u.path,parent:u}))}}])})();so.create=function(e,t,n){return new so(C({left:e,right:t,typeName:ve.ZodIntersection},Ke(n)))};var yu=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t),u=r.status,a=r.ctx;if(a.parsedType!==Se.array)return Ee(a,{code:de.invalid_type,expected:Se.array,received:a.parsedType}),Ze;if(a.data.length<this._def.items.length)return Ee(a,{code:de.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ze;!this._def.rest&&a.data.length>this._def.items.length&&(Ee(a,{code:de.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),u.dirty());var i=be(a.data).map(function(o,c){var l=n._def.items[c]||n._def.rest;return l?l._parse(new ar(a,o,a.path,c)):null}).filter(function(o){return!!o});return a.common.async?Promise.all(i).then(function(o){return Sn.mergeArray(u,o)}):Sn.mergeArray(u,i)}},{key:"items",get:function(){return this._def.items}},{key:"rest",value:function(t){return new e(C(C({},this._def),{},{rest:t}))}}])})();yu.create=function(e,t){if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new yu(C({items:e,typeName:ve.ZodTuple,rest:null},Ke(t)))};var WD=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"keySchema",get:function(){return this._def.keyType}},{key:"valueSchema",get:function(){return this._def.valueType}},{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.status,u=n.ctx;if(u.parsedType!==Se.object)return Ee(u,{code:de.invalid_type,expected:Se.object,received:u.parsedType}),Ze;var a=[],i=this._def.keyType,o=this._def.valueType;for(var c in u.data)a.push({key:i._parse(new ar(u,c,u.path,c)),value:o._parse(new ar(u,u.data[c],u.path,c)),alwaysSet:c in u.data});return u.common.async?Sn.mergeObjectAsync(r,a):Sn.mergeObjectSync(r,a)}},{key:"element",get:function(){return this._def.valueType}}],[{key:"create",value:function(t,n,r){return new e(n instanceof tt?C({keyType:t,valueType:n,typeName:ve.ZodRecord},Ke(r)):C({keyType:uo.create(),valueType:t,typeName:ve.ZodRecord},Ke(n)))}}])})(),ac=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"keySchema",get:function(){return this._def.keyType}},{key:"valueSchema",get:function(){return this._def.valueType}},{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.status,u=n.ctx;if(u.parsedType!==Se.map)return Ee(u,{code:de.invalid_type,expected:Se.map,received:u.parsedType}),Ze;var a=this._def.keyType,i=this._def.valueType,o=be(u.data.entries()).map(function(D,_){var O=dt(D,2),w=O[0],x=O[1];return{key:a._parse(new ar(u,w,u.path,[_,"key"])),value:i._parse(new ar(u,x,u.path,[_,"value"]))}});if(u.common.async){var c=new Map;return Promise.resolve().then(Xe(Ae().m(function D(){var _,O,w,x,S,T;return Ae().w(function(I){for(;;)switch(I.p=I.n){case 0:_=ye(o),I.p=1,_.s();case 2:if((O=_.n()).done){I.n=7;break}return w=O.value,I.n=3,w.key;case 3:return x=I.v,I.n=4,w.value;case 4:if(S=I.v,x.status!=="aborted"&&S.status!=="aborted"){I.n=5;break}return I.a(2,Ze);case 5:x.status!=="dirty"&&S.status!=="dirty"||r.dirty(),c.set(x.value,S.value);case 6:I.n=2;break;case 7:I.n=9;break;case 8:I.p=8,T=I.v,_.e(T);case 9:return I.p=9,_.f(),I.f(9);case 10:return I.a(2,{status:r.value,value:c})}},D,null,[[1,8,9,10]])})))}var l,p=new Map,m=ye(o);try{for(m.s();!(l=m.n()).done;){var v=l.value,y=v.key,F=v.value;if(y.status==="aborted"||F.status==="aborted")return Ze;y.status!=="dirty"&&F.status!=="dirty"||r.dirty(),p.set(y.value,F.value)}}catch(D){m.e(D)}finally{m.f()}return{status:r.value,value:p}}}])})();ac.create=function(e,t,n){return new ac(C({valueType:t,keyType:e,typeName:ve.ZodMap},Ke(n)))};var ic=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t),r=n.status,u=n.ctx;if(u.parsedType!==Se.set)return Ee(u,{code:de.invalid_type,expected:Se.set,received:u.parsedType}),Ze;var a=this._def;a.minSize!==null&&u.data.size<a.minSize.value&&(Ee(u,{code:de.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&u.data.size>a.maxSize.value&&(Ee(u,{code:de.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());var i=this._def.valueType;function o(l){var p,m=new Set,v=ye(l);try{for(v.s();!(p=v.n()).done;){var y=p.value;if(y.status==="aborted")return Ze;y.status==="dirty"&&r.dirty(),m.add(y.value)}}catch(F){v.e(F)}finally{v.f()}return{status:r.value,value:m}}var c=be(u.data.values()).map(function(l,p){return i._parse(new ar(u,l,u.path,p))});return u.common.async?Promise.all(c).then(function(l){return o(l)}):o(c)}},{key:"min",value:function(t,n){return new e(C(C({},this._def),{},{minSize:{value:t,message:je.toString(n)}}))}},{key:"max",value:function(t,n){return new e(C(C({},this._def),{},{maxSize:{value:t,message:je.toString(n)}}))}},{key:"size",value:function(t,n){return this.min(t,n).max(t,n)}},{key:"nonempty",value:function(t){return this.min(1,t)}}])})();ic.create=function(e,t){return new ic(C({valueType:e,minSize:null,maxSize:null,typeName:ve.ZodSet},Ke(t)))};var VD=(function(){function e(){var t;return Be(this,e),(t=$e(this,e,arguments)).validate=t.implement,t}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx;if(n.parsedType!==Se.function)return Ee(n,{code:de.invalid_type,expected:Se.function,received:n.parsedType}),Ze;function r(l,p){return Gs({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ks(),Ja].filter(function(m){return!!m}),issueData:{code:de.invalid_arguments,argumentsError:p}})}function u(l,p){return Gs({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ks(),Ja].filter(function(m){return!!m}),issueData:{code:de.invalid_return_type,returnTypeError:p}})}var a={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Qa){var o=this;return En(Xe(Ae().m(function l(){var p,m,v,y,F,D,_,O=arguments;return Ae().w(function(w){for(;;)switch(w.n){case 0:for(p=O.length,m=new Array(p),v=0;v<p;v++)m[v]=O[v];return y=new ur([]),w.n=1,o._def.args.parseAsync(m,a).catch(function(x){throw y.addIssue(r(m,x)),y});case 1:return F=w.v,w.n=2,Reflect.apply(i,this,F);case 2:return D=w.v,w.n=3,o._def.returns._def.type.parseAsync(D,a).catch(function(x){throw y.addIssue(u(D,x)),y});case 3:return _=w.v,w.a(2,_)}},l,this)})))}var c=this;return En(function(){for(var l=arguments.length,p=new Array(l),m=0;m<l;m++)p[m]=arguments[m];var v=c._def.args.safeParse(p,a);if(!v.success)throw new ur([r(p,v.error)]);var y=Reflect.apply(i,this,v.data),F=c._def.returns.safeParse(y,a);if(!F.success)throw new ur([u(y,F.error)]);return F.data})}},{key:"parameters",value:function(){return this._def.args}},{key:"returnType",value:function(){return this._def.returns}},{key:"args",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new e(C(C({},this._def),{},{args:yu.create(n).rest(Ku.create())}))}},{key:"returns",value:function(t){return new e(C(C({},this._def),{},{returns:t}))}},{key:"implement",value:function(t){return this.parse(t)}},{key:"strictImplement",value:function(t){return this.parse(t)}}],[{key:"create",value:function(t,n,r){return new e(C({args:t||yu.create([]).rest(Ku.create()),returns:n||Ku.create(),typeName:ve.ZodFunction},Ke(r)))}}])})(),co=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"schema",get:function(){return this._def.getter()}},{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx;return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}])})();co.create=function(e,t){return new co(C({getter:e,typeName:ve.ZodLazy},Ke(t)))};var lo=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(t.data!==this._def.value){var n=this._getOrReturnCtx(t);return Ee(n,{received:n.data,code:de.invalid_literal,expected:this._def.value}),Ze}return{status:"valid",value:t.data}}},{key:"value",get:function(){return this._def.value}}])})();function Pp(e,t){return new fo(C({values:e,typeName:ve.ZodEnum},Ke(t)))}lo.create=function(e,t){return new lo(C({value:e,typeName:ve.ZodLiteral},Ke(t)))};var fo=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(typeof t.data!="string"){var n=this._getOrReturnCtx(t),r=this._def.values;return Ee(n,{expected:pt.joinValues(r),received:n.parsedType,code:de.invalid_type}),Ze}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){var u=this._getOrReturnCtx(t),a=this._def.values;return Ee(u,{received:u.data,code:de.invalid_enum_value,options:a}),Ze}return En(t.data)}},{key:"options",get:function(){return this._def.values}},{key:"enum",get:function(){var t,n={},r=ye(this._def.values);try{for(r.s();!(t=r.n()).done;){var u=t.value;n[u]=u}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"Values",get:function(){var t,n={},r=ye(this._def.values);try{for(r.s();!(t=r.n()).done;){var u=t.value;n[u]=u}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"Enum",get:function(){var t,n={},r=ye(this._def.values);try{for(r.s();!(t=r.n()).done;){var u=t.value;n[u]=u}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"extract",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._def;return e.create(t,C(C({},this._def),n))}},{key:"exclude",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._def;return e.create(this.options.filter(function(r){return!t.includes(r)}),C(C({},this._def),n))}}])})();fo.create=Pp;var po=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=pt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Se.string&&r.parsedType!==Se.number){var u=pt.objectValues(n);return Ee(r,{expected:pt.joinValues(u),received:r.parsedType,code:de.invalid_type}),Ze}if(this._cache||(this._cache=new Set(pt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){var a=pt.objectValues(n);return Ee(r,{received:r.data,code:de.invalid_enum_value,options:a}),Ze}return En(t.data)}},{key:"enum",get:function(){return this._def.values}}])})();po.create=function(e,t){return new po(C({values:e,typeName:ve.ZodNativeEnum},Ke(t)))};var Qa=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"unwrap",value:function(){return this._def.type}},{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t).ctx;if(r.parsedType!==Se.promise&&r.common.async===!1)return Ee(r,{code:de.invalid_type,expected:Se.promise,received:r.parsedType}),Ze;var u=r.parsedType===Se.promise?r.data:Promise.resolve(r.data);return En(u.then(function(a){return n._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})}))}}])})();Qa.create=function(e,t){return new Qa(C({type:e,typeName:ve.ZodPromise},Ke(t)))};var _r=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"innerType",value:function(){return this._def.schema}},{key:"sourceType",value:function(){return this._def.schema._def.typeName===ve.ZodEffects?this._def.schema.sourceType():this._def.schema}},{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t),u=r.status,a=r.ctx,i=this._def.effect||null,o={addIssue:function(F){Ee(a,F),F.fatal?u.abort():u.dirty()},get path(){return a.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){var c=i.transform(a.data,o);if(a.common.async)return Promise.resolve(c).then((function(){var F=Xe(Ae().m(function D(_){var O;return Ae().w(function(w){for(;;)switch(w.n){case 0:if(u.value!=="aborted"){w.n=1;break}return w.a(2,Ze);case 1:return w.n=2,n._def.schema._parseAsync({data:_,path:a.path,parent:a});case 2:if((O=w.v).status!=="aborted"){w.n=3;break}return w.a(2,Ze);case 3:if(O.status!=="dirty"){w.n=4;break}return w.a(2,no(O.value));case 4:if(u.value!=="dirty"){w.n=5;break}return w.a(2,no(O.value));case 5:return w.a(2,O)}},D)}));return function(D){return F.apply(this,arguments)}})());if(u.value==="aborted")return Ze;var l=this._def.schema._parseSync({data:c,path:a.path,parent:a});return l.status==="aborted"?Ze:l.status==="dirty"||u.value==="dirty"?no(l.value):l}if(i.type==="refinement"){var p=function(F){var D=i.refinement(F,o);if(a.common.async)return Promise.resolve(D);if(D instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return F};if(a.common.async===!1){var m=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return m.status==="aborted"?Ze:(m.status==="dirty"&&u.dirty(),p(m.value),{status:u.value,value:m.value})}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(function(F){return F.status==="aborted"?Ze:(F.status==="dirty"&&u.dirty(),p(F.value).then(function(){return{status:u.value,value:F.value}}))})}if(i.type==="transform"){if(a.common.async===!1){var v=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Vu(v))return Ze;var y=i.transform(v.value,o);if(y instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:u.value,value:y}}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(function(F){return Vu(F)?Promise.resolve(i.transform(F.value,o)).then(function(D){return{status:u.value,value:D}}):Ze})}pt.assertNever(i)}}])})();_r.create=function(e,t,n){return new _r(C({schema:e,typeName:ve.ZodEffects,effect:t},Ke(n)))},_r.createWithPreprocess=function(e,t,n){return new _r(C({schema:t,effect:{type:"preprocess",transform:e},typeName:ve.ZodEffects},Ke(n)))};var Cr=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){return this._getType(t)===Se.undefined?En(void 0):this._def.innerType._parse(t)}},{key:"unwrap",value:function(){return this._def.innerType}}])})();Cr.create=function(e,t){return new Cr(C({innerType:e,typeName:ve.ZodOptional},Ke(t)))};var Du=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){return this._getType(t)===Se.null?En(null):this._def.innerType._parse(t)}},{key:"unwrap",value:function(){return this._def.innerType}}])})();Du.create=function(e,t){return new Du(C({innerType:e,typeName:ve.ZodNullable},Ke(t)))};var ho=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx,r=n.data;return n.parsedType===Se.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}},{key:"removeDefault",value:function(){return this._def.innerType}}])})();ho.create=function(e,t){return new ho(C({innerType:e,typeName:ve.ZodDefault,defaultValue:typeof t.default=="function"?t.default:function(){return t.default}},Ke(t)))};var vo=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t).ctx,u=C(C({},r),{},{common:C(C({},r.common),{},{issues:[]})}),a=this._def.innerType._parse({data:u.data,path:u.path,parent:C({},u)});return ro(a)?a.then(function(i){return{status:"valid",value:i.status==="valid"?i.value:n._def.catchValue({get error(){return new ur(u.common.issues)},input:u.data})}}):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ur(u.common.issues)},input:u.data})}}},{key:"removeCatch",value:function(){return this._def.innerType}}])})();vo.create=function(e,t){return new vo(C({innerType:e,typeName:ve.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:function(){return t.catch}},Ke(t)))};var oc=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){if(this._getType(t)!==Se.nan){var n=this._getOrReturnCtx(t);return Ee(n,{code:de.invalid_type,expected:Se.nan,received:n.parsedType}),Ze}return{status:"valid",value:t.data}}}])})();oc.create=function(e){return new oc(C({typeName:ve.ZodNaN},Ke(e)))};var ve,jp=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._processInputParams(t).ctx,r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}},{key:"unwrap",value:function(){return this._def.type}}])})(),Np=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this,r=this._processInputParams(t),u=r.status,a=r.ctx;if(a.common.async){var i=(function(){var c=Xe(Ae().m(function l(){var p;return Ae().w(function(m){for(;;)switch(m.n){case 0:return m.n=1,n._def.in._parseAsync({data:a.data,path:a.path,parent:a});case 1:if((p=m.v).status!=="aborted"){m.n=2;break}return m.a(2,Ze);case 2:if(p.status!=="dirty"){m.n=3;break}return u.dirty(),m.a(2,no(p.value));case 3:return m.a(2,n._def.out._parseAsync({data:p.value,path:a.path,parent:a}));case 4:return m.a(2)}},l)}));return function(){return c.apply(this,arguments)}})();return i()}var o=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?Ze:o.status==="dirty"?(u.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:a.path,parent:a})}}],[{key:"create",value:function(t,n){return new e({in:t,out:n,typeName:ve.ZodPipeline})}}])})(),mo=(function(){function e(){return Be(this,e),$e(this,e,arguments)}return Me(e,tt),Pe(e,[{key:"_parse",value:function(t){var n=this._def.innerType._parse(t),r=function(u){return Vu(u)&&(u.value=Object.freeze(u.value)),u};return ro(n)?n.then(function(u){return r(u)}):r(n)}},{key:"unwrap",value:function(){return this._def.innerType}}])})();mo.create=function(e,t){return new mo(C({innerType:e,typeName:ve.ZodReadonly},Ke(t)))},Vn.lazycreate,(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ve||(ve={})),uo.create,Qs.create,oc.create,Ys.create,Xs.create,ec.create,tc.create,ao.create,io.create,nc.create,Ku.create,Vr.create,rc.create,Gu.create,Vn.create,Vn.strictCreate,oo.create,UD.create,so.create,yu.create,WD.create,ac.create,ic.create,VD.create,co.create,lo.create,fo.create,po.create,Qa.create,_r.create,Cr.create,Du.create,_r.createWithPreprocess,Np.create;var Ya=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.prefix,n=e.size,r=n===void 0?16:n,u=e.alphabet,a=u===void 0?"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz":u,i=e.separator,o=i===void 0?"-":i,c=function(){for(var l=a.length,p=new Array(r),m=0;m<r;m++)p[m]=a[Math.random()*l|0];return p.join("")};if(t==null)return c;if(a.includes(o))throw new P0({argument:"separator",message:'The separator "'.concat(o,'" must not be part of the alphabet "').concat(a,'".')});return function(){return"".concat(t).concat(o).concat(c())}},KD=Ya();function Rp(){var e,t,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:globalThis;return r.window?"runtime/browser":(e=r.navigator)!=null&&e.userAgent?"runtime/".concat(r.navigator.userAgent.toLowerCase()):(n=(t=r.process)==null?void 0:t.versions)!=null&&n.node?"runtime/node.js/".concat(r.process.version.substring(0)):r.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function bu(e){if(e==null)return{};var t={};if(e instanceof Headers)e.forEach(function(o,c){t[c.toLowerCase()]=o});else{Array.isArray(e)||(e=Object.entries(e));var n,r=Su(e);try{for(r.s();!(n=r.n()).done;){var u=Ro(n.value,2),a=u[0],i=u[1];i!=null&&(t[a.toLowerCase()]=i)}}catch(o){r.e(o)}finally{r.f()}}return t}function zp(e){for(var t=new Headers(bu(e)),n=t.get("user-agent")||"",r=arguments.length,u=new Array(r>1?r-1:0),a=1;a<r;a++)u[a-1]=arguments[a];return t.set("user-agent",[n].concat(u).filter(Boolean).join(" ")),Object.fromEntries(t.entries())}var GD=/"__proto__"\s*:/,JD=/"constructor"\s*:/;function Lp(e){var t=JSON.parse(e);return t===null||we(t)!="object"||GD.test(e)===!1&&JD.test(e)===!1?t:(function(n){for(var r=[n];r.length;){var u=r;r=[];var a,i=Su(u);try{for(i.s();!(a=i.n()).done;){var o=a.value;if(Object.prototype.hasOwnProperty.call(o,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(var c in o){var l=o[c];l&&we(l)=="object"&&r.push(l)}}}catch(p){i.e(p)}finally{i.f()}}return n})(t)}var go=Symbol.for("vercel.ai.validator");function QD(e){return(function(r){return we(r)=="object"&&r!==null&&go in r&&r[go]===!0&&"validate"in r})(e)?e:typeof e=="function"?e():(t=e,n=(function(){var r=vt(Oe().m(function u(a){var i;return Oe().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,t["~standard"].validate(a);case 1:return i=o.v,o.a(2,i.issues==null?{success:!0,value:i.value}:{success:!1,error:new Hi({value:a,cause:i.issues})})}},u)}));return function(u){return r.apply(this,arguments)}})(),Zn(Zn({},go,!0),"validate",n));var t,n}function Mp(e){return sc.apply(this,arguments)}function sc(){return sc=vt(Oe().m(function e(t){var n,r,u;return Oe().w(function(a){for(;;)switch(a.n){case 0:return n=t.value,r=t.schema,a.n=1,cc({value:n,schema:r});case 1:if((u=a.v).success){a.n=2;break}throw Hi.wrap({value:n,cause:u.error});case 2:return a.a(2,u.value)}},e)})),sc.apply(this,arguments)}function cc(e){return lc.apply(this,arguments)}function lc(){return lc=vt(Oe().m(function e(t){var n,r,u,a,i;return Oe().w(function(o){for(;;)switch(o.p=o.n){case 0:if(n=t.value,r=t.schema,u=QD(r),o.p=1,u.validate!=null){o.n=2;break}return o.a(2,{success:!0,value:n,rawValue:n});case 2:return o.n=3,u.validate(n);case 3:return a=o.v,o.a(2,a.success?{success:!0,value:a.value,rawValue:n}:{success:!1,error:Hi.wrap({value:n,cause:a.error}),rawValue:n});case 4:return o.p=4,i=o.v,o.a(2,{success:!1,error:Hi.wrap({value:n,cause:i}),rawValue:n})}},e,null,[[1,4]])})),lc.apply(this,arguments)}function yo(e){return fc.apply(this,arguments)}function fc(){return fc=vt(Oe().m(function e(t){var n,r,u,a,i;return Oe().w(function(o){for(;;)switch(o.p=o.n){case 0:if(n=t.text,r=t.schema,o.p=1,u=(function(c){var l=Error.stackTraceLimit;try{Error.stackTraceLimit=0}catch(p){return Lp(c)}try{return Lp(c)}finally{Error.stackTraceLimit=l}})(n),r!=null){o.n=2;break}a={success:!0,value:u,rawValue:u},o.n=4;break;case 2:return o.n=3,cc({value:u,schema:r});case 3:a=o.v;case 4:return o.a(2,a);case 5:return o.p=5,i=o.v,o.a(2,{success:!1,error:yd.isInstance(i)?i:new yd({text:n,cause:i}),rawValue:void 0})}},e,null,[[1,5]])})),fc.apply(this,arguments)}function Qu(e){return dc.apply(this,arguments)}function dc(){return dc=vt(Oe().m(function e(t){return Oe().w(function(n){for(;;)if(n.n===0)return n.a(2,(typeof t=="function"&&(t=t()),Promise.resolve(t)))},e)})),dc.apply(this,arguments)}var YD=function(e,t){for(var n=0;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString()].concat(Qe(t.slice(n))).join("/")},XD=Symbol("Let zodToJsonSchema decide on which parser to use"),$p={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function Zp(e,t){return _t(e.type._def,t)}function qp(e,t,n){var r=n!=null?n:t.dateStrategy;if(Array.isArray(r))return{anyOf:r.map(function(u,a){return qp(e,t,u)})};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return eb(e)}}var eb=function(e){var t,n={type:"integer",format:"unix-time"},r=Su(e.checks);try{for(r.s();!(t=r.n()).done;){var u=t.value;switch(u.kind){case"min":n.minimum=u.value;break;case"max":n.maximum=u.value}}}catch(a){r.e(a)}finally{r.f()}return n},pc=void 0,tb=/^[cC][^\s-]{8,}$/,nb=/^[0-9a-z]+$/,rb=/^[0-9A-HJKMNP-TV-Z]{26}$/,ub=/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,ab=function(){return pc===void 0&&(pc=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),pc},ib=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ob=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,sb=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,cb=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,lb=/^[a-zA-Z0-9_-]{21}$/,fb=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;function Hp(e,t){var n={type:"string"};if(e.checks){var r,u=Su(e.checks);try{for(u.s();!(r=u.n()).done;){var a=r.value;switch(a.kind){case"min":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,a.value):a.value;break;case"max":n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,a.value):a.value;break;case"email":switch(t.emailStrategy){case"format:email":Kn(n,"email",a.message,t);break;case"format:idn-email":Kn(n,"idn-email",a.message,t);break;case"pattern:zod":vn(n,ub,a.message,t)}break;case"url":Kn(n,"uri",a.message,t);break;case"uuid":Kn(n,"uuid",a.message,t);break;case"regex":vn(n,a.regex,a.message,t);break;case"cuid":vn(n,tb,a.message,t);break;case"cuid2":vn(n,nb,a.message,t);break;case"startsWith":vn(n,RegExp("^".concat(hc(a.value,t))),a.message,t);break;case"endsWith":vn(n,RegExp("".concat(hc(a.value,t),"$")),a.message,t);break;case"datetime":Kn(n,"date-time",a.message,t);break;case"date":Kn(n,"date",a.message,t);break;case"time":Kn(n,"time",a.message,t);break;case"duration":Kn(n,"duration",a.message,t);break;case"length":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,a.value):a.value,n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,a.value):a.value;break;case"includes":vn(n,RegExp(hc(a.value,t)),a.message,t);break;case"ip":a.version!=="v6"&&Kn(n,"ipv4",a.message,t),a.version!=="v4"&&Kn(n,"ipv6",a.message,t);break;case"base64url":vn(n,cb,a.message,t);break;case"jwt":vn(n,fb,a.message,t);break;case"cidr":a.version!=="v6"&&vn(n,ib,a.message,t),a.version!=="v4"&&vn(n,ob,a.message,t);break;case"emoji":vn(n,ab(),a.message,t);break;case"ulid":vn(n,rb,a.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":Kn(n,"binary",a.message,t);break;case"contentEncoding:base64":n.contentEncoding="base64";break;case"pattern:zod":vn(n,sb,a.message,t)}break;case"nanoid":vn(n,lb,a.message,t)}}}catch(i){u.e(i)}finally{u.f()}}return n}function hc(e,t){return t.patternStrategy==="escape"?(function(n){for(var r="",u=0;u<n.length;u++)db.has(n[u])||(r+="\\"),r+=n[u];return r})(e):e}var db=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function Kn(e,t,n,r){var u;e.format||(u=e.anyOf)!=null&&u.some(function(a){return a.format})?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push(pe({format:t},n&&r.errorMessages&&{errorMessage:{format:n}}))):e.format=t}function vn(e,t,n,r){var u;e.pattern||(u=e.allOf)!=null&&u.some(function(a){return a.pattern})?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push(pe({pattern:Up(t,r)},n&&r.errorMessages&&{errorMessage:{pattern:n}}))):e.pattern=Up(t,r)}function Up(e,t){var n;if(!t.applyRegexFlags||!e.flags)return e.source;for(var r=e.flags.includes("i"),u=e.flags.includes("m"),a=e.flags.includes("s"),i=r?e.source.toLowerCase():e.source,o="",c=!1,l=!1,p=!1,m=0;m<i.length;m++)if(c)o+=i[m],c=!1;else{if(r){if(l){if(i[m].match(/[a-z]/)){p?(o+=i[m],o+="".concat(i[m-2],"-").concat(i[m]).toUpperCase(),p=!1):i[m+1]==="-"&&((n=i[m+2])!=null&&n.match(/[a-z]/))?(o+=i[m],p=!0):o+="".concat(i[m]).concat(i[m].toUpperCase());continue}}else if(i[m].match(/[a-z]/)){o+="[".concat(i[m]).concat(i[m].toUpperCase(),"]");continue}}if(u){if(i[m]==="^"){o+=`(^|(?<=[\r
|
|
115
|
+
]))`;continue}if(i[m]==="$"){o+=`($|(?=[\r
|
|
116
|
+
]))`;continue}}a&&i[m]==="."?o+=l?"".concat(i[m],`\r
|
|
117
|
+
`):"[".concat(i[m],`\r
|
|
118
|
+
]`):(o+=i[m],i[m]==="\\"?c=!0:l&&i[m]==="]"?l=!1:l||i[m]!=="["||(l=!0))}try{new RegExp(o)}catch(v){return console.warn("Could not convert regex pattern at ".concat(t.currentPath.join("/")," to a flag-independent form! Falling back to the flag-ignorant source")),e.source}return o}function Wp(e,t){var n,r,u,a,i,o,c={type:"object",additionalProperties:(n=_t(e.valueType._def,pe(pe({},t),{},{currentPath:[].concat(Qe(t.currentPath),["additionalProperties"])})))!=null?n:t.allowedAdditionalProperties};if(((r=e.keyType)==null?void 0:r._def.typeName)===ve.ZodString&&((u=e.keyType._def.checks)!=null&&u.length)){var l=Hp(e.keyType._def,t);l.type;var p=Nr(l,mv);return pe(pe({},c),{},{propertyNames:p})}if(((a=e.keyType)==null?void 0:a._def.typeName)===ve.ZodEnum)return pe(pe({},c),{},{propertyNames:{enum:e.keyType._def.values}});if(((i=e.keyType)==null?void 0:i._def.typeName)===ve.ZodBranded&&e.keyType._def.type._def.typeName===ve.ZodString&&((o=e.keyType._def.type._def.checks)!=null&&o.length)){var m=Zp(e.keyType._def,t);m.type;var v=Nr(m,gv);return pe(pe({},c),{},{propertyNames:v})}return c}var vc={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function pb(e){try{return e.isOptional()}catch(t){return!0}}var hb=function(e,t,n){switch(t){case ve.ZodString:return Hp(e,n);case ve.ZodNumber:return(function(r){var u={type:"number"};if(!r.checks)return u;var a,i=Su(r.checks);try{for(i.s();!(a=i.n()).done;){var o=a.value;switch(o.kind){case"int":u.type="integer";break;case"min":o.inclusive?u.minimum=o.value:u.exclusiveMinimum=o.value;break;case"max":o.inclusive?u.maximum=o.value:u.exclusiveMaximum=o.value;break;case"multipleOf":u.multipleOf=o.value}}}catch(c){i.e(c)}finally{i.f()}return u})(e);case ve.ZodObject:return(function(r,u){var a={type:"object",properties:{}},i=[],o=r.shape();for(var c in o){var l=o[c];if(l!==void 0&&l._def!==void 0){var p=pb(l),m=_t(l._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["properties",c]),propertyPath:[].concat(Qe(u.currentPath),["properties",c])}));m!==void 0&&(a.properties[c]=m,p||i.push(c))}}i.length&&(a.required=i);var v=(function(y,F){if(y.catchall._def.typeName!=="ZodNever")return _t(y.catchall._def,pe(pe({},F),{},{currentPath:[].concat(Qe(F.currentPath),["additionalProperties"])}));switch(y.unknownKeys){case"passthrough":return F.allowedAdditionalProperties;case"strict":return F.rejectedAdditionalProperties;case"strip":return F.removeAdditionalStrategy==="strict"?F.allowedAdditionalProperties:F.rejectedAdditionalProperties}})(r,u);return v!==void 0&&(a.additionalProperties=v),a})(e,n);case ve.ZodBigInt:return(function(r){var u={type:"integer",format:"int64"};if(!r.checks)return u;var a,i=Su(r.checks);try{for(i.s();!(a=i.n()).done;){var o=a.value;switch(o.kind){case"min":o.inclusive?u.minimum=o.value:u.exclusiveMinimum=o.value;break;case"max":o.inclusive?u.maximum=o.value:u.exclusiveMaximum=o.value;break;case"multipleOf":u.multipleOf=o.value}}}catch(c){i.e(c)}finally{i.f()}return u})(e);case ve.ZodBoolean:return{type:"boolean"};case ve.ZodDate:return qp(e,n);case ve.ZodUndefined:return{not:{}};case ve.ZodNull:return{type:"null"};case ve.ZodArray:return(function(r,u){var a,i,o,c={type:"array"};return(a=r.type)!=null&&a._def&&((o=(i=r.type)==null?void 0:i._def)==null?void 0:o.typeName)!==ve.ZodAny&&(c.items=_t(r.type._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["items"])}))),r.minLength&&(c.minItems=r.minLength.value),r.maxLength&&(c.maxItems=r.maxLength.value),r.exactLength&&(c.minItems=r.exactLength.value,c.maxItems=r.exactLength.value),c})(e,n);case ve.ZodUnion:case ve.ZodDiscriminatedUnion:return(function(r,u){var a=r.options instanceof Map?Array.from(r.options.values()):r.options;if(a.every(function(l){return l._def.typeName in vc&&(!l._def.checks||!l._def.checks.length)})){var i=a.reduce(function(l,p){var m=vc[p._def.typeName];return m&&!l.includes(m)?[].concat(Qe(l),[m]):l},[]);return{type:i.length>1?i:i[0]}}if(a.every(function(l){return l._def.typeName==="ZodLiteral"&&!l.description})){var o=a.reduce(function(l,p){var m=we(p._def.value);switch(m){case"string":case"number":case"boolean":return[].concat(Qe(l),[m]);case"bigint":return[].concat(Qe(l),["integer"]);case"object":if(p._def.value===null)return[].concat(Qe(l),["null"]);default:return l}},[]);if(o.length===a.length){var c=o.filter(function(l,p,m){return m.indexOf(l)===p});return{type:c.length>1?c:c[0],enum:a.reduce(function(l,p){return l.includes(p._def.value)?l:[].concat(Qe(l),[p._def.value])},[])}}}else if(a.every(function(l){return l._def.typeName==="ZodEnum"}))return{type:"string",enum:a.reduce(function(l,p){return[].concat(Qe(l),Qe(p._def.values.filter(function(m){return!l.includes(m)})))},[])};return(function(l,p){var m=(l.options instanceof Map?Array.from(l.options.values()):l.options).map(function(v,y){return _t(v._def,pe(pe({},p),{},{currentPath:[].concat(Qe(p.currentPath),["anyOf","".concat(y)])}))}).filter(function(v){return!!v&&(!p.strictUnions||we(v)=="object"&&Object.keys(v).length>0)});return m.length?{anyOf:m}:void 0})(r,u)})(e,n);case ve.ZodIntersection:return(function(r,u){var a=[_t(r.left._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["allOf","0"])})),_t(r.right._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["allOf","1"])}))].filter(function(o){return!!o}),i=[];return a.forEach(function(o){if("type"in(l=o)&&l.type==="string"||!("allOf"in l)){var c=o;"additionalProperties"in o&&o.additionalProperties===!1&&(o.additionalProperties,c=Nr(o,yv)),i.push(c)}else i.push.apply(i,Qe(o.allOf));var l}),i.length?{allOf:i}:void 0})(e,n);case ve.ZodTuple:return(function(r,u){return r.rest?{type:"array",minItems:r.items.length,items:r.items.map(function(a,i){return _t(a._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["items","".concat(i)])}))}).reduce(function(a,i){return i===void 0?a:[].concat(Qe(a),[i])},[]),additionalItems:_t(r.rest._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["additionalItems"])}))}:{type:"array",minItems:r.items.length,maxItems:r.items.length,items:r.items.map(function(a,i){return _t(a._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["items","".concat(i)])}))}).reduce(function(a,i){return i===void 0?a:[].concat(Qe(a),[i])},[])}})(e,n);case ve.ZodRecord:return Wp(e,n);case ve.ZodLiteral:return(function(r){var u=we(r.value);return u!=="bigint"&&u!=="number"&&u!=="boolean"&&u!=="string"?{type:Array.isArray(r.value)?"array":"object"}:{type:u==="bigint"?"integer":u,const:r.value}})(e);case ve.ZodEnum:return(function(r){return{type:"string",enum:Array.from(r.values)}})(e);case ve.ZodNativeEnum:return(function(r){var u=r.values,a=Object.keys(r.values).filter(function(o){return typeof u[u[o]]!="number"}).map(function(o){return u[o]}),i=Array.from(new Set(a.map(function(o){return we(o)})));return{type:i.length===1?i[0]==="string"?"string":"number":["string","number"],enum:a}})(e);case ve.ZodNullable:return(function(r,u){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(r.innerType._def.typeName)&&(!r.innerType._def.checks||!r.innerType._def.checks.length))return{type:[vc[r.innerType._def.typeName],"null"]};var a=_t(r.innerType._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["anyOf","0"])}));return a&&{anyOf:[a,{type:"null"}]}})(e,n);case ve.ZodOptional:return(function(r,u){var a;if(u.currentPath.toString()===((a=u.propertyPath)==null?void 0:a.toString()))return _t(r.innerType._def,u);var i=_t(r.innerType._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["anyOf","1"])}));return i?{anyOf:[{not:{}},i]}:{}})(e,n);case ve.ZodMap:return(function(r,u){return u.mapStrategy==="record"?Wp(r,u):{type:"array",maxItems:125,items:{type:"array",items:[_t(r.keyType._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["items","items","0"])}))||{},_t(r.valueType._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["items","items","1"])}))||{}],minItems:2,maxItems:2}}})(e,n);case ve.ZodSet:return(function(r,u){var a={type:"array",uniqueItems:!0,items:_t(r.valueType._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["items"])}))};return r.minSize&&(a.minItems=r.minSize.value),r.maxSize&&(a.maxItems=r.maxSize.value),a})(e,n);case ve.ZodLazy:return function(){return e.getter()._def};case ve.ZodPromise:return(function(r,u){return _t(r.type._def,u)})(e,n);case ve.ZodNaN:case ve.ZodNever:return{not:{}};case ve.ZodEffects:return(function(r,u){return u.effectStrategy==="input"?_t(r.schema._def,u):{}})(e,n);case ve.ZodAny:case ve.ZodUnknown:return{};case ve.ZodDefault:return(function(r,u){return pe(pe({},_t(r.innerType._def,u)),{},{default:r.defaultValue()})})(e,n);case ve.ZodBranded:return Zp(e,n);case ve.ZodReadonly:case ve.ZodCatch:return(function(r,u){return _t(r.innerType._def,u)})(e,n);case ve.ZodPipeline:return(function(r,u){if(u.pipeStrategy==="input")return _t(r.in._def,u);if(u.pipeStrategy==="output")return _t(r.out._def,u);var a=_t(r.in._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["allOf","0"])}));return{allOf:[a,_t(r.out._def,pe(pe({},u),{},{currentPath:[].concat(Qe(u.currentPath),["allOf",a?"1":"0"])}))].filter(function(i){return i!==void 0})}})(e,n);case ve.ZodFunction:case ve.ZodVoid:case ve.ZodSymbol:default:return}};function _t(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],u=t.seen.get(e);if(t.override){var a=(n=t.override)==null?void 0:n.call(t,e,t,u,r);if(a!==XD)return a}if(u&&!r){var i=vb(u,t);if(i!==void 0)return i}var o={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,o);var c=hb(e,e.typeName,t),l=typeof c=="function"?_t(c(),t):c;if(l&&mb(e,t,l),t.postProcess){var p=t.postProcess(l,e,t);return o.jsonSchema=l,p}return o.jsonSchema=l,l}var vb=function(e,t){switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:YD(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every(function(n,r){return t.currentPath[r]===n})?(console.warn("Recursive reference detected at ".concat(t.currentPath.join("/"),"! Defaulting to any")),{}):t.$refStrategy==="seen"?{}:void 0}},mb=function(e,t,n){return e.description&&(n.description=e.description),n},gb=function(e,t){var n,r=(function(l){var p=(function(v){return typeof v=="string"?pe(pe({},$p),{},{name:v}):pe(pe({},$p),v)})(l),m=p.name!==void 0?[].concat(Qe(p.basePath),[p.definitionPath,p.name]):p.basePath;return pe(pe({},p),{},{currentPath:m,propertyPath:void 0,seen:new Map(Object.entries(p.definitions).map(function(v){var y=Ro(v,2),F=y[0],D=y[1];return[D._def,{def:D._def,path:[].concat(Qe(p.basePath),[p.definitionPath,F]),jsonSchema:void 0}]}))})})(t),u=we(t)=="object"&&t.definitions?Object.entries(t.definitions).reduce(function(l,p){var m,v=Ro(p,2),y=v[0],F=v[1];return pe(pe({},l),{},Zn({},y,(m=_t(F._def,pe(pe({},r),{},{currentPath:[].concat(Qe(r.basePath),[r.definitionPath,y])}),!0))!=null?m:{}))},{}):void 0,a=typeof t=="string"?t:(t==null?void 0:t.nameStrategy)==="title"||t==null?void 0:t.name,i=(n=_t(e._def,a===void 0?r:pe(pe({},r),{},{currentPath:[].concat(Qe(r.basePath),[r.definitionPath,a])}),!1))!=null?n:{},o=we(t)=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;o!==void 0&&(i.title=o);var c=a===void 0?u?pe(pe({},i),{},Zn({},r.definitionPath,u)):i:Zn({$ref:[].concat(Qe(r.$refStrategy==="relative"?[]:r.basePath),[r.definitionPath,a]).join("/")},r.definitionPath,pe(pe({},u),{},Zn({},a,i)));return c.$schema="http://json-schema.org/draft-07/schema#",c};function Vp(e,t){return(function(n){return"_zod"in n})(e)?(function(n){return gc(function(){return(function(u,a){if(u instanceof ep){var i,o=new dp(a),c={},l=ye(u._idmap.entries());try{for(l.s();!(i=l.n()).done;){var p=dt(i.value,2),m=(p[0],p[1]);o.process(m)}}catch(T){l.e(T)}finally{l.f()}var v,y={},F={registry:u,uri:a==null?void 0:a.uri,defs:c},D=ye(u._idmap.entries());try{for(D.s();!(v=D.n()).done;){var _=dt(v.value,2),O=_[0],w=_[1];y[O]=o.emit(w,C(C({},a),{},{external:F}))}}catch(T){D.e(T)}finally{D.f()}if(Object.keys(c).length>0){var x=o.target==="draft-2020-12"?"$defs":"definitions";y.__shared=lt({},x,c)}return{schemas:y}}var S=new dp(a);return S.process(u),S.emit(u,a)})(n,{target:"draft-7",io:"output",reused:"inline"})},{validate:(r=vt(Oe().m(function u(a){var i;return Oe().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,pp(n,a);case 1:return i=o.v,o.a(2,i.success?{success:!0,value:i.data}:{success:!1,error:i.error})}},u)})),function(u){return r.apply(this,arguments)})});var r})(e):(function(n){return gc(function(){return gb(n,{$refStrategy:"none"})},{validate:(r=vt(Oe().m(function u(a){var i;return Oe().w(function(o){for(;;)switch(o.n){case 0:return o.n=1,n.safeParseAsync(a);case 1:return i=o.v,o.a(2,i.success?{success:!0,value:i.data}:{success:!1,error:i.error})}},u)})),function(u){return r.apply(this,arguments)})});var r})(e)}var mc=Symbol.for("vercel.ai.schema");function gc(e){var t=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).validate;return Zn((function(n,r,u,a){var i={configurable:!0,enumerable:!0};return i[n]=a,Object.defineProperty(r,u,i)})("get",Zn(Zn(Zn({},mc,!0),"_type",void 0),go,!0),"jsonSchema",function(){return typeof e=="function"&&(e=e()),e}),"validate",t)}var Kp,yb=Object.defineProperty,Gp="AI_NoObjectGeneratedError",Jp="vercel.ai.error.".concat(Gp),Db=Symbol.for(Jp),Qp=(function(){function e(t){var n,r=t.message,u=r===void 0?"No object generated.":r,a=t.cause,i=t.text,o=t.response,c=t.usage,l=t.finishReason;return Mn(this,e),(n=au(this,e,[{name:Gp,message:u,cause:a}]))[Kp]=!0,n.text=i,n.response=o,n.usage=c,n.finishReason=l,n}return iu(e,Zr),$n(e,null,[{key:"isInstance",value:function(t){return Zr.hasMarker(t,Jp)}}])})();Kp=Db;var Yp="5.0.93",Xp=Pn([ze(),to(Uint8Array),to(ArrayBuffer),Sp(function(e){var t,n;return(n=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null&&n},{message:"Must be a Buffer"})]),Xa=new ED({type:"lazy",getter:function(){return Pn([oD(),ze(),rD(),An(),Us(ze(),Xa),Wu(Xa)])}}),Kt=Us(ze(),Us(ze(),Xa)),eh=sn({type:Ye("text"),text:ze(),providerOptions:Kt.optional()}),bb=sn({type:Ye("image"),image:Pn([Xp,to(URL)]),mediaType:ze().optional(),providerOptions:Kt.optional()}),th=sn({type:Ye("file"),data:Pn([Xp,to(URL)]),filename:ze().optional(),mediaType:ze(),providerOptions:Kt.optional()}),Ab=sn({type:Ye("reasoning"),text:ze(),providerOptions:Kt.optional()}),Eb=sn({type:Ye("tool-call"),toolCallId:ze(),toolName:ze(),input:rr(),providerOptions:Kt.optional(),providerExecuted:An().optional()}),Fb=new fD(C({type:"union",options:[sn({type:Ye("text"),value:ze()}),sn({type:Ye("json"),value:Xa}),sn({type:Ye("error-text"),value:ze()}),sn({type:Ye("error-json"),value:Xa}),sn({type:Ye("content"),value:Wu(Pn([sn({type:Ye("text"),text:ze()}),sn({type:Ye("media"),data:ze(),mediaType:ze()})]))})],discriminator:"type"},xe(void 0))),nh=sn({type:Ye("tool-result"),toolCallId:ze(),toolName:ze(),output:Fb,providerOptions:Kt.optional()}),_b=sn({role:Ye("system"),content:ze(),providerOptions:Kt.optional()}),Cb=sn({role:Ye("user"),content:Pn([ze(),Wu(Pn([eh,bb,th]))]),providerOptions:Kt.optional()}),kb=sn({role:Ye("assistant"),content:Pn([ze(),Wu(Pn([eh,th,Ab,Eb,nh]))]),providerOptions:Kt.optional()});Pn([_b,Cb,kb,sn({role:Ye("tool"),content:Wu(nh),providerOptions:Kt.optional()})]),Ya({prefix:"aitxt",size:24}),TransformStream;var wb=(function(){var e;return function(){return e==null&&(e=Vp(Pn([Lt({type:Ye("text-start"),id:ze(),providerMetadata:Kt.optional()}),Lt({type:Ye("text-delta"),id:ze(),delta:ze(),providerMetadata:Kt.optional()}),Lt({type:Ye("text-end"),id:ze(),providerMetadata:Kt.optional()}),Lt({type:Ye("error"),errorText:ze()}),Lt({type:Ye("tool-input-start"),toolCallId:ze(),toolName:ze(),providerExecuted:An().optional(),dynamic:An().optional()}),Lt({type:Ye("tool-input-delta"),toolCallId:ze(),inputTextDelta:ze()}),Lt({type:Ye("tool-input-available"),toolCallId:ze(),toolName:ze(),input:rr(),providerExecuted:An().optional(),providerMetadata:Kt.optional(),dynamic:An().optional()}),Lt({type:Ye("tool-input-error"),toolCallId:ze(),toolName:ze(),input:rr(),providerExecuted:An().optional(),providerMetadata:Kt.optional(),dynamic:An().optional(),errorText:ze()}),Lt({type:Ye("tool-output-available"),toolCallId:ze(),output:rr(),providerExecuted:An().optional(),dynamic:An().optional(),preliminary:An().optional()}),Lt({type:Ye("tool-output-error"),toolCallId:ze(),errorText:ze(),providerExecuted:An().optional(),dynamic:An().optional()}),Lt({type:Ye("reasoning-start"),id:ze(),providerMetadata:Kt.optional()}),Lt({type:Ye("reasoning-delta"),id:ze(),delta:ze(),providerMetadata:Kt.optional()}),Lt({type:Ye("reasoning-end"),id:ze(),providerMetadata:Kt.optional()}),Lt({type:Ye("source-url"),sourceId:ze(),url:ze(),title:ze().optional(),providerMetadata:Kt.optional()}),Lt({type:Ye("source-document"),sourceId:ze(),mediaType:ze(),title:ze(),filename:ze().optional(),providerMetadata:Kt.optional()}),Lt({type:Ye("file"),url:ze(),mediaType:ze(),providerMetadata:Kt.optional()}),Lt({type:Sp(function(t){return typeof t=="string"&&t.startsWith("data-")},{message:'Type must start with "data-"'}),id:ze().optional(),data:rr(),transient:An().optional()}),Lt({type:Ye("start-step")}),Lt({type:Ye("finish-step")}),Lt({type:Ye("start"),messageId:ze().optional(),messageMetadata:rr().optional()}),Lt({type:Ye("finish"),finishReason:Ap(["stop","length","content-filter","tool-calls","error","other","unknown"]).optional(),messageMetadata:rr().optional()}),Lt({type:Ye("abort")}),Lt({type:Ye("message-metadata"),messageMetadata:rr()})]))),e}})();function rh(e,t){if(e!==void 0||t!==void 0){if(e===void 0)return t;if(t===void 0)return e;var n=pe({},e);for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var u=t[r];if(u===void 0)continue;var a=r in e?e[r]:void 0,i=!(u===null||we(u)!="object"||Array.isArray(u)||u instanceof Date||u instanceof RegExp),o=!(a==null||we(a)!="object"||Array.isArray(a)||a instanceof Date||a instanceof RegExp);n[r]=i&&o?rh(a,u):u}return n}}function Sb(e){var t=["ROOT"],n=-1,r=null;function u(y,F,D){switch(y){case'"':n=F,t.pop(),t.push(D),t.push("INSIDE_STRING");break;case"f":case"t":case"n":n=F,r=F,t.pop(),t.push(D),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(D),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n=F,t.pop(),t.push(D),t.push("INSIDE_NUMBER");break;case"{":n=F,t.pop(),t.push(D),t.push("INSIDE_OBJECT_START");break;case"[":n=F,t.pop(),t.push(D),t.push("INSIDE_ARRAY_START")}}function a(y,F){switch(y){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":n=F,t.pop()}}function i(y,F){switch(y){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":n=F,t.pop()}}for(var o=0;o<e.length;o++){var c=e[o];switch(t[t.length-1]){case"ROOT":u(c,o,"FINISH");break;case"INSIDE_OBJECT_START":switch(c){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY");break;case"}":n=o,t.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":c==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":c==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":c===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":u(c,o,"INSIDE_OBJECT_AFTER_VALUE");break;case"INSIDE_OBJECT_AFTER_VALUE":a(c,o);break;case"INSIDE_STRING":switch(c){case'"':t.pop(),n=o;break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:n=o}break;case"INSIDE_ARRAY_START":c==="]"?(n=o,t.pop()):(n=o,u(c,o,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(c){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":n=o,t.pop();break;default:n=o}break;case"INSIDE_ARRAY_AFTER_COMMA":u(c,o,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),n=o;break;case"INSIDE_NUMBER":switch(c){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n=o;break;case"e":case"E":case"-":case".":break;case",":t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(c,o),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&a(c,o);break;case"}":t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&a(c,o);break;case"]":t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(c,o);break;default:t.pop()}break;case"INSIDE_LITERAL":var l=e.substring(r,o+1);"false".startsWith(l)||"true".startsWith(l)||"null".startsWith(l)?n=o:(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?a(c,o):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(c,o))}}for(var p=e.slice(0,n+1),m=t.length-1;m>=0;m--)switch(t[m]){case"INSIDE_STRING":p+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":p+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":p+="]";break;case"INSIDE_LITERAL":var v=e.substring(r,e.length);"true".startsWith(v)?p+="true".slice(v.length):"false".startsWith(v)?p+="false".slice(v.length):"null".startsWith(v)&&(p+="null".slice(v.length))}return p}function uh(e){return yc.apply(this,arguments)}function yc(){return yc=vt(Oe().m(function e(t){var n,r;return Oe().w(function(u){for(;;)switch(u.n){case 0:if(t!==void 0){u.n=1;break}return u.a(2,{value:void 0,state:"undefined-input"});case 1:return u.n=2,yo({text:t});case 2:if(!(n=u.v).success){u.n=3;break}r={value:n.value,state:"successful-parse"},u.n=5;break;case 3:return u.n=4,yo({text:Sb(t)});case 4:n=u.v,r=n.success?{value:n.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"};case 5:return u.a(2,r)}},e)})),yc.apply(this,arguments)}function Do(e){return e.type.startsWith("tool-")}function Dc(e){return Do(e)||(function(t){return t.type==="dynamic-tool"})(e)}function ah(e){return e.type.split("-").slice(1).join("-")}function xb(e){var t=e.lastMessage,n=e.messageId;return{message:(t==null?void 0:t.role)==="assistant"?t:{id:n,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function Tb(e){var t=e.stream,n=e.messageMetadataSchema,r=e.dataPartSchemas,u=e.runUpdateMessageJob,a=e.onError,i=e.onToolCall,o=e.onData;return t.pipeThrough(new TransformStream({transform:function(c,l){return vt(Oe().m(function p(){return Oe().w(function(m){for(;;)switch(m.n){case 0:return m.n=1,u((function(){var v=vt(Oe().m(function y(F){var D,_,O,w,x,S,T,I,B,d,H,R,Z,q,G,L,ne,Q,$,Y,re,me,se,K,V,ue,oe,ce,ee;return Oe().w(function(he){for(;;)switch(he.n){case 0:R=function(){return R=vt(Oe().m(function Ce(Re){var ge;return Oe().w(function(Te){for(;;)switch(Te.n){case 0:if(Re==null){Te.n=2;break}if(ge=D.message.metadata!=null?rh(D.message.metadata,Re):Re,n==null){Te.n=1;break}return Te.n=1,Mp({value:ge,schema:n});case 1:D.message.metadata=ge;case 2:return Te.a(2)}},Ce)})),R.apply(this,arguments)},H=function(Ce){return R.apply(this,arguments)},d=function(Ce){var Re,ge,Te=D.message.parts.find(function(Ge){return Ge.type==="dynamic-tool"&&Ge.toolCallId===Ce.toolCallId}),He=Ce,nt=Te;Te!=null?(Te.state=Ce.state,nt.toolName=Ce.toolName,nt.input=He.input,nt.output=He.output,nt.errorText=He.errorText,nt.rawInput=(Re=He.rawInput)!=null?Re:nt.rawInput,nt.preliminary=He.preliminary,nt.providerExecuted=(ge=He.providerExecuted)!=null?ge:Te.providerExecuted,He.providerMetadata!=null&&Te.state==="input-available"&&(Te.callProviderMetadata=He.providerMetadata)):D.message.parts.push(pe({type:"dynamic-tool",toolName:Ce.toolName,toolCallId:Ce.toolCallId,state:Ce.state,input:He.input,output:He.output,errorText:He.errorText,preliminary:He.preliminary,providerExecuted:He.providerExecuted},He.providerMetadata!=null?{callProviderMetadata:He.providerMetadata}:{}))},B=function(Ce){var Re,ge=D.message.parts.find(function(nt){return Do(nt)&&nt.toolCallId===Ce.toolCallId}),Te=Ce,He=ge;ge!=null?(ge.state=Ce.state,He.input=Te.input,He.output=Te.output,He.errorText=Te.errorText,He.rawInput=Te.rawInput,He.preliminary=Te.preliminary,He.providerExecuted=(Re=Te.providerExecuted)!=null?Re:ge.providerExecuted,Te.providerMetadata!=null&&ge.state==="input-available"&&(ge.callProviderMetadata=Te.providerMetadata)):D.message.parts.push(pe({type:"tool-".concat(Ce.toolName),toolCallId:Ce.toolCallId,state:Ce.state,input:Te.input,output:Te.output,rawInput:Te.rawInput,errorText:Te.errorText,providerExecuted:Te.providerExecuted,preliminary:Te.preliminary},Te.providerMetadata!=null?{callProviderMetadata:Te.providerMetadata}:{}))},I=function(Ce){var Re=D.message.parts.filter(function(ge){return ge.type==="dynamic-tool"}).find(function(ge){return ge.toolCallId===Ce});if(Re==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return Re},T=function(Ce){var Re=D.message.parts.filter(Do).find(function(ge){return ge.toolCallId===Ce});if(Re==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return Re},D=F.state,_=F.write,ee=c.type,he.n=ee==="text-start"?1:ee==="text-delta"?2:ee==="text-end"?3:ee==="reasoning-start"?4:ee==="reasoning-delta"?5:ee==="reasoning-end"?6:ee==="file"?7:ee==="source-url"?8:ee==="source-document"?9:ee==="tool-input-start"?10:ee==="tool-input-delta"?11:ee==="tool-input-available"?13:ee==="tool-input-error"?15:ee==="tool-output-available"?16:ee==="tool-output-error"?17:ee==="start-step"?18:ee==="finish-step"?19:ee==="start"?20:ee==="finish"?22:ee==="message-metadata"?24:ee==="error"?26:27;break;case 1:return Z={type:"text",text:"",providerMetadata:c.providerMetadata,state:"streaming"},D.activeTextParts[c.id]=Z,D.message.parts.push(Z),_(),he.a(3,30);case 2:return(q=D.activeTextParts[c.id]).text+=c.delta,q.providerMetadata=(O=c.providerMetadata)!=null?O:q.providerMetadata,_(),he.a(3,30);case 3:return(G=D.activeTextParts[c.id]).state="done",G.providerMetadata=(w=c.providerMetadata)!=null?w:G.providerMetadata,delete D.activeTextParts[c.id],_(),he.a(3,30);case 4:return L={type:"reasoning",text:"",providerMetadata:c.providerMetadata,state:"streaming"},D.activeReasoningParts[c.id]=L,D.message.parts.push(L),_(),he.a(3,30);case 5:return(ne=D.activeReasoningParts[c.id]).text+=c.delta,ne.providerMetadata=(x=c.providerMetadata)!=null?x:ne.providerMetadata,_(),he.a(3,30);case 6:return(Q=D.activeReasoningParts[c.id]).providerMetadata=(S=c.providerMetadata)!=null?S:Q.providerMetadata,Q.state="done",delete D.activeReasoningParts[c.id],_(),he.a(3,30);case 7:return D.message.parts.push({type:"file",mediaType:c.mediaType,url:c.url}),_(),he.a(3,30);case 8:return D.message.parts.push({type:"source-url",sourceId:c.sourceId,url:c.url,title:c.title,providerMetadata:c.providerMetadata}),_(),he.a(3,30);case 9:return D.message.parts.push({type:"source-document",sourceId:c.sourceId,mediaType:c.mediaType,title:c.title,filename:c.filename,providerMetadata:c.providerMetadata}),_(),he.a(3,30);case 10:return $=D.message.parts.filter(Do),D.partialToolCalls[c.toolCallId]={text:"",toolName:c.toolName,index:$.length,dynamic:c.dynamic},c.dynamic?d({toolCallId:c.toolCallId,toolName:c.toolName,state:"input-streaming",input:void 0,providerExecuted:c.providerExecuted}):B({toolCallId:c.toolCallId,toolName:c.toolName,state:"input-streaming",input:void 0,providerExecuted:c.providerExecuted}),_(),he.a(3,30);case 11:return(Y=D.partialToolCalls[c.toolCallId]).text+=c.inputTextDelta,he.n=12,uh(Y.text);case 12:return re=he.v,me=re.value,Y.dynamic?d({toolCallId:c.toolCallId,toolName:Y.toolName,state:"input-streaming",input:me}):B({toolCallId:c.toolCallId,toolName:Y.toolName,state:"input-streaming",input:me}),_(),he.a(3,30);case 13:if(c.dynamic?d({toolCallId:c.toolCallId,toolName:c.toolName,state:"input-available",input:c.input,providerExecuted:c.providerExecuted,providerMetadata:c.providerMetadata}):B({toolCallId:c.toolCallId,toolName:c.toolName,state:"input-available",input:c.input,providerExecuted:c.providerExecuted,providerMetadata:c.providerMetadata}),_(),!(i&&!c.providerExecuted)){he.n=14;break}return he.n=14,i({toolCall:c});case 14:return he.a(3,30);case 15:return c.dynamic?d({toolCallId:c.toolCallId,toolName:c.toolName,state:"output-error",input:c.input,errorText:c.errorText,providerExecuted:c.providerExecuted,providerMetadata:c.providerMetadata}):B({toolCallId:c.toolCallId,toolName:c.toolName,state:"output-error",input:void 0,rawInput:c.input,errorText:c.errorText,providerExecuted:c.providerExecuted,providerMetadata:c.providerMetadata}),_(),he.a(3,30);case 16:return c.dynamic?(se=I(c.toolCallId),d({toolCallId:c.toolCallId,toolName:se.toolName,state:"output-available",input:se.input,output:c.output,preliminary:c.preliminary})):(K=T(c.toolCallId),B({toolCallId:c.toolCallId,toolName:ah(K),state:"output-available",input:K.input,output:c.output,providerExecuted:c.providerExecuted,preliminary:c.preliminary})),_(),he.a(3,30);case 17:return c.dynamic?(V=I(c.toolCallId),d({toolCallId:c.toolCallId,toolName:V.toolName,state:"output-error",input:V.input,errorText:c.errorText,providerExecuted:c.providerExecuted})):(ue=T(c.toolCallId),B({toolCallId:c.toolCallId,toolName:ah(ue),state:"output-error",input:ue.input,rawInput:ue.rawInput,errorText:c.errorText,providerExecuted:c.providerExecuted})),_(),he.a(3,30);case 18:return D.message.parts.push({type:"step-start"}),he.a(3,30);case 19:return D.activeTextParts={},D.activeReasoningParts={},he.a(3,30);case 20:return c.messageId!=null&&(D.message.id=c.messageId),he.n=21,H(c.messageMetadata);case 21:return c.messageId==null&&c.messageMetadata==null||_(),he.a(3,30);case 22:return c.finishReason!=null&&(D.finishReason=c.finishReason),he.n=23,H(c.messageMetadata);case 23:return c.messageMetadata!=null&&_(),he.a(3,30);case 24:return he.n=25,H(c.messageMetadata);case 25:return c.messageMetadata!=null&&_(),he.a(3,30);case 26:return a==null||a(new Error(c.errorText)),he.a(3,30);case 27:if(!(function(Ce){return Ce.type.startsWith("data-")})(c)){he.n=30;break}if((r==null?void 0:r[c.type])==null){he.n=28;break}return he.n=28,Mp({value:c.data,schema:r[c.type]});case 28:if(!(oe=c).transient){he.n=29;break}return o==null||o(oe),he.a(3,30);case 29:ce=oe.id!=null?D.message.parts.find(function(Ce){return oe.type===Ce.type&&oe.id===Ce.id}):void 0,ce!=null?ce.data=oe.data:D.message.parts.push(oe),o==null||o(oe),_();case 30:l.enqueue(c);case 31:return he.a(2)}},y)}));return function(y){return v.apply(this,arguments)}})());case 1:return m.a(2)}},p)}))()}}))}Ya({prefix:"aitxt",size:24}),Ya({prefix:"aiobj",size:24});var Ob=(function(){return $n(function n(){Mn(this,n),this.queue=[],this.isProcessing=!1},[{key:"processQueue",value:(t=vt(Oe().m(function n(){return Oe().w(function(r){for(;;)switch(r.n){case 0:if(this.isProcessing){r.n=5;break}this.isProcessing=!0;case 1:if(!(this.queue.length>0)){r.n=4;break}return r.n=2,this.queue[0]();case 2:this.queue.shift();case 3:r.n=1;break;case 4:this.isProcessing=!1;case 5:return r.a(2)}},n,this)})),function(){return t.apply(this,arguments)})},{key:"run",value:(e=vt(Oe().m(function n(r){var u=this;return Oe().w(function(a){for(;;)if(a.n===0)return a.a(2,new Promise(function(i,o){u.queue.push(vt(Oe().m(function c(){var l;return Oe().w(function(p){for(;;)switch(p.p=p.n){case 0:return p.p=0,p.n=1,r();case 1:i(),p.n=3;break;case 2:p.p=2,l=p.v,o(l);case 3:return p.a(2)}},c,null,[[0,2]])}))),u.processQueue()}))},n)})),function(n){return e.apply(this,arguments)})}]);var e,t})();Ya({prefix:"aiobj",size:24}),(function(e,t){for(var n in t)yb(e,n,{get:t[n],enumerable:!0})})({},{object:function(){return Bb},text:function(){return Ib}});var ih,oh,Ib=function(){return{type:"text",responseFormat:{type:"text"},parsePartial:(t=vt(Oe().m(function n(r){var u;return Oe().w(function(a){for(;;)if(a.n===0)return u=r.text,a.a(2,{partial:u})},n)})),function(n){return t.apply(this,arguments)}),parseOutput:(e=vt(Oe().m(function n(r){var u;return Oe().w(function(a){for(;;)if(a.n===0)return u=r.text,a.a(2,u)},n)})),function(n){return e.apply(this,arguments)})};var e,t},Bb=function(e){var t=(function(n){return n==null?gc({properties:{},additionalProperties:!1}):we(r=n)=="object"&&r!==null&&mc in r&&r[mc]===!0&&"jsonSchema"in r&&"validate"in r?n:typeof n=="function"?n():Vp(n);var r})(e.schema);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},parsePartial:function(n){return vt(Oe().m(function r(){var u,a,i,o;return Oe().w(function(c){for(;;)switch(c.n){case 0:return u=n.text,c.n=1,uh(u);case 1:a=c.v,o=a.state,c.n=o==="failed-parse"||o==="undefined-input"?2:o==="repaired-parse"||o==="successful-parse"?3:4;break;case 2:case 5:return c.a(2);case 3:return c.a(2,{partial:a.value});case 4:throw i=a.state,new Error("Unsupported parse state: ".concat(i))}},r)}))()},parseOutput:function(n,r){return vt(Oe().m(function u(){var a,i,o;return Oe().w(function(c){for(;;)switch(c.n){case 0:return a=n.text,c.n=1,yo({text:a});case 1:if((i=c.v).success){c.n=2;break}throw new Qp({message:"No object generated: could not parse the response.",cause:i.error,text:a,response:r.response,usage:r.usage,finishReason:r.finishReason});case 2:return c.n=3,cc({value:i.value,schema:t});case 3:if((o=c.v).success){c.n=4;break}throw new Qp({message:"No object generated: response did not match schema.",cause:o.error,text:a,response:r.response,usage:r.usage,finishReason:r.finishReason});case 4:return c.a(2,o.value)}},u)}))()}}},Pb=(function(){return $n(function n(r){var u=r.api,a=u===void 0?"/api/chat":u,i=r.credentials,o=r.headers,c=r.body,l=r.fetch,p=r.prepareSendMessagesRequest,m=r.prepareReconnectToStreamRequest;Mn(this,n),this.api=a,this.credentials=i,this.headers=o,this.body=c,this.fetch=l,this.prepareSendMessagesRequest=p,this.prepareReconnectToStreamRequest=m},[{key:"sendMessages",value:(t=vt(Oe().m(function n(r){var u,a,i,o,c,l,p,m,v,y,F,D,_,O,w,x,S,T,I,B;return Oe().w(function(d){for(;;)switch(d.n){case 0:return u=r.abortSignal,a=Nr(r,Dv),d.n=1,Qu(this.body);case 1:return m=d.v,d.n=2,Qu(this.headers);case 2:return v=d.v,d.n=3,Qu(this.credentials);case 3:return y=d.v,F=pe(pe({},bu(v)),bu(a.headers)),d.n=4,(i=this.prepareSendMessagesRequest)==null?void 0:i.call(this,{api:this.api,id:a.chatId,messages:a.messages,body:pe(pe({},m),a.body),headers:F,credentials:y,requestMetadata:a.metadata,trigger:a.trigger,messageId:a.messageId});case 4:return D=d.v,_=(o=D==null?void 0:D.api)!=null?o:this.api,O=(D==null?void 0:D.headers)!==void 0?bu(D.headers):F,w=(D==null?void 0:D.body)!==void 0?D.body:pe(pe(pe({},m),a.body),{},{id:a.chatId,messages:a.messages,trigger:a.trigger,messageId:a.messageId}),x=(c=D==null?void 0:D.credentials)!=null?c:y,S=(l=this.fetch)!=null?l:globalThis.fetch,d.n=5,S(_,{method:"POST",headers:zp(pe({"Content-Type":"application/json"},O),"ai-sdk/".concat(Yp),Rp()),body:JSON.stringify(w),credentials:x,signal:u});case 5:if((T=d.v).ok){d.n=9;break}return I=Error,d.n=6,T.text();case 6:if((p=d.v)==null){d.n=7;break}B=p,d.n=8;break;case 7:B="Failed to fetch the chat response.";case 8:throw new I(B);case 9:if(T.body){d.n=10;break}throw new Error("The response body is empty.");case 10:return d.a(2,this.processResponseStream(T.body))}},n,this)})),function(n){return t.apply(this,arguments)})},{key:"reconnectToStream",value:(e=vt(Oe().m(function n(r){var u,a,i,o,c,l,p,m,v,y,F,D,_,O,w,x,S;return Oe().w(function(T){for(;;)switch(T.n){case 0:return T.n=1,Qu(this.body);case 1:return l=T.v,T.n=2,Qu(this.headers);case 2:return p=T.v,T.n=3,Qu(this.credentials);case 3:return m=T.v,v=pe(pe({},bu(p)),bu(r.headers)),T.n=4,(u=this.prepareReconnectToStreamRequest)==null?void 0:u.call(this,{api:this.api,id:r.chatId,body:pe(pe({},l),r.body),headers:v,credentials:m,requestMetadata:r.metadata});case 4:return y=T.v,F=(a=y==null?void 0:y.api)!=null?a:"".concat(this.api,"/").concat(r.chatId,"/stream"),D=(y==null?void 0:y.headers)!==void 0?bu(y.headers):v,_=(i=y==null?void 0:y.credentials)!=null?i:m,O=(o=this.fetch)!=null?o:globalThis.fetch,T.n=5,O(F,{method:"GET",headers:zp(D,"ai-sdk/".concat(Yp),Rp()),credentials:_});case 5:if((w=T.v).status!==204){T.n=6;break}return T.a(2,null);case 6:if(w.ok){T.n=10;break}return x=Error,T.n=7,w.text();case 7:if((c=T.v)==null){T.n=8;break}S=c,T.n=9;break;case 8:S="Failed to fetch the chat response.";case 9:throw new x(S);case 10:if(w.body){T.n=11;break}throw new Error("The response body is empty.");case 11:return T.a(2,this.processResponseStream(w.body))}},n,this)})),function(n){return e.apply(this,arguments)})}]);var e,t})(),bc=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Mn(this,e),au(this,e,[t])}return iu(e,Pb),$n(e,[{key:"processResponseStream",value:function(t){return(function(n){var r=n.schema;return n.stream.pipeThrough(new TextDecoderStream).pipeThrough(new R0).pipeThrough(new TransformStream({transform:function(u,a){return vt(Oe().m(function i(){var o,c;return Oe().w(function(l){for(;;)switch(l.n){case 0:if(o=u.data,o==="[DONE]"){l.n=2;break}return c=a,l.n=1,yo({text:o,schema:r});case 1:c.enqueue.call(c,l.v);case 2:return l.a(2)}},i)}))()}}))})({stream:t,schema:wb}).pipeThrough(new TransformStream({transform:function(n,r){return vt(Oe().m(function u(){return Oe().w(function(a){for(;;)switch(a.n){case 0:if(n.success){a.n=1;break}throw n.error;case 1:r.enqueue(n.value);case 2:return a.a(2)}},u)}))()}}))}}])})(),jb=(function(){return $n(function t(n){var r=this,u=n.generateId,a=u===void 0?KD:u,i=n.id,o=i===void 0?a():i,c=n.transport,l=c===void 0?new bc:c,p=n.messageMetadataSchema,m=n.dataPartSchemas,v=n.state,y=n.onError,F=n.onToolCall,D=n.onFinish,_=n.onData,O=n.sendAutomaticallyWhen;Mn(this,t),this.activeResponse=void 0,this.jobExecutor=new Ob,this.sendMessage=(function(){var w=vt(Oe().m(function x(S,T){var I,B,d,H,R,Z,q;return Oe().w(function(G){for(;;)switch(G.n){case 0:if(S!=null){G.n=2;break}return G.n=1,r.makeRequest(pe({trigger:"submit-message",messageId:(I=r.lastMessage)==null?void 0:I.id},T));case 1:return G.a(2,void G.v);case 2:if(!("text"in S)&&!("files"in S)){G.n=6;break}if(!Array.isArray(S.files)){G.n=3;break}q=S.files,G.n=5;break;case 3:return G.n=4,(function(){var L=vt(Oe().m(function ne(Q){return Oe().w(function($){for(;;)switch($.n){case 0:if(Q!=null){$.n=1;break}return $.a(2,[]);case 1:if(globalThis.FileList&&Q instanceof globalThis.FileList){$.n=2;break}throw new Error("FileList is not supported in the current environment");case 2:return $.a(2,Promise.all(Array.from(Q).map((function(){var Y=vt(Oe().m(function re(me){var se,K,V,ue,oe;return Oe().w(function(ce){for(;;)switch(ce.n){case 0:return se=me.name,K=me.type,V=K,ue=se,ce.n=1,new Promise(function(ee,he){var Ce=new FileReader;Ce.onload=function(Re){var ge;ee((ge=Re.target)==null?void 0:ge.result)},Ce.onerror=function(Re){return he(Re)},Ce.readAsDataURL(me)});case 1:return oe=ce.v,ce.a(2,{type:"file",mediaType:V,filename:ue,url:oe})}},re)}));return function(re){return Y.apply(this,arguments)}})())))}},ne)}));return function(ne){return L.apply(this,arguments)}})()(S.files);case 4:q=G.v;case 5:R={parts:[].concat(Qe(q),Qe("text"in S&&S.text!=null?[{type:"text",text:S.text}]:[]))},G.n=7;break;case 6:R=S;case 7:if(S.messageId==null){G.n=10;break}if(Z=r.state.messages.findIndex(function(L){return L.id===S.messageId}),Z!==-1){G.n=8;break}throw new Error("message with id ".concat(S.messageId," not found"));case 8:if(r.state.messages[Z].role==="user"){G.n=9;break}throw new Error("message with id ".concat(S.messageId," is not a user message"));case 9:r.state.messages=r.state.messages.slice(0,Z+1),r.state.replaceMessage(Z,pe(pe({},R),{},{id:S.messageId,role:(B=R.role)!=null?B:"user",metadata:S.metadata})),G.n=11;break;case 10:r.state.pushMessage(pe(pe({},R),{},{id:(d=R.id)!=null?d:r.generateId(),role:(H=R.role)!=null?H:"user",metadata:S.metadata}));case 11:return G.n=12,r.makeRequest(pe({trigger:"submit-message",messageId:S.messageId},T));case 12:return G.a(2)}},x)}));return function(x,S){return w.apply(this,arguments)}})(),this.regenerate=vt(Oe().m(function w(){var x,S,T,I,B=arguments;return Oe().w(function(d){for(;;)switch(d.n){case 0:if(S=(x=B.length>0&&B[0]!==void 0?B[0]:{}).messageId,T=Nr(x,bv),I=S==null?r.state.messages.length-1:r.state.messages.findIndex(function(H){return H.id===S}),I!==-1){d.n=1;break}throw new Error("message ".concat(S," not found"));case 1:return r.state.messages=r.state.messages.slice(0,r.messages[I].role==="assistant"?I:I+1),d.n=2,r.makeRequest(pe({trigger:"regenerate-message",messageId:S},T));case 2:return d.a(2)}},w)})),this.resumeStream=vt(Oe().m(function w(){var x,S=arguments;return Oe().w(function(T){for(;;)switch(T.n){case 0:return x=S.length>0&&S[0]!==void 0?S[0]:{},T.n=1,r.makeRequest(pe({trigger:"resume-stream"},x));case 1:return T.a(2)}},w)})),this.clearError=function(){r.status==="error"&&(r.state.error=void 0,r.setStatus({status:"ready"}))},this.addToolOutput=(function(){var w=vt(Oe().m(function x(S){var T,I,B,d,H;return Oe().w(function(R){for(;;)if(R.n===0)return T=S.state,I=T===void 0?"output-available":T,S.tool,B=S.toolCallId,d=S.output,H=S.errorText,R.a(2,r.jobExecutor.run(vt(Oe().m(function Z(){var q,G,L,ne;return Oe().w(function(Q){for(;;)switch(Q.n){case 0:L=r.state.messages,ne=L[L.length-1],r.state.replaceMessage(L.length-1,pe(pe({},ne),{},{parts:ne.parts.map(function($){return Dc($)&&$.toolCallId===B?pe(pe({},$),{},{state:I,output:d,errorText:H}):$})})),r.activeResponse&&(r.activeResponse.state.message.parts=r.activeResponse.state.message.parts.map(function($){return Dc($)&&$.toolCallId===B?pe(pe({},$),{},{state:I,output:d,errorText:H}):$})),r.status!=="streaming"&&r.status!=="submitted"&&((q=r.sendAutomaticallyWhen)!=null&&q.call(r,{messages:r.state.messages}))&&r.makeRequest({trigger:"submit-message",messageId:(G=r.lastMessage)==null?void 0:G.id});case 1:return Q.a(2)}},Z)}))))},x)}));return function(x){return w.apply(this,arguments)}})(),this.addToolResult=this.addToolOutput,this.stop=vt(Oe().m(function w(){var x;return Oe().w(function(S){for(;;)switch(S.n){case 0:r.status!=="streaming"&&r.status!=="submitted"||(x=r.activeResponse)!=null&&x.abortController&&r.activeResponse.abortController.abort();case 1:return S.a(2)}},w)})),this.id=o,this.transport=l,this.generateId=a,this.messageMetadataSchema=p,this.dataPartSchemas=m,this.state=v,this.onError=y,this.onToolCall=F,this.onFinish=D,this.onData=_,this.sendAutomaticallyWhen=O},[{key:"status",get:function(){return this.state.status}},{key:"setStatus",value:function(t){var n=t.status,r=t.error;this.status!==n&&(this.state.status=n,this.state.error=r)}},{key:"error",get:function(){return this.state.error}},{key:"messages",get:function(){return this.state.messages},set:function(t){this.state.messages=t}},{key:"lastMessage",get:function(){return this.state.messages[this.state.messages.length-1]}},{key:"makeRequest",value:(e=vt(Oe().m(function t(n){var r,u,a,i,o,c,l,p,m,v,y,F,D,_,O,w,x,S,T=this;return Oe().w(function(I){for(;;)switch(I.p=I.n){case 0:if(r=n.trigger,u=n.metadata,a=n.headers,i=n.body,o=n.messageId,this.setStatus({status:"submitted",error:void 0}),v=this.lastMessage,y=!1,F=!1,D=!1,I.p=1,(_={state:xb({lastMessage:this.state.snapshot(v),messageId:this.generateId()}),abortController:new AbortController}).abortController.signal.addEventListener("abort",function(){y=!0}),this.activeResponse=_,r!=="resume-stream"){I.n=4;break}return I.n=2,this.transport.reconnectToStream({chatId:this.id,metadata:u,headers:a,body:i});case 2:if((w=I.v)!=null){I.n=3;break}return I.a(2,void this.setStatus({status:"ready"}));case 3:O=w,I.n=6;break;case 4:return I.n=5,this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:_.abortController.signal,metadata:u,headers:a,body:i,trigger:r,messageId:o});case 5:O=I.v;case 6:return x=function(B){return T.jobExecutor.run(function(){return B({state:_.state,write:function(){var d;T.setStatus({status:"streaming"}),_.state.message.id===((d=T.lastMessage)==null?void 0:d.id)?T.state.replaceMessage(T.state.messages.length-1,_.state.message):T.state.pushMessage(_.state.message)}})})},I.n=7,(function(){var B=vt(Oe().m(function d(H){var R,Z,q,G;return Oe().w(function(L){for(;;)switch(L.p=L.n){case 0:R=H.stream,Z=H.onError,q=R.getReader(),L.p=1;case 2:return L.n=3,q.read();case 3:if(!L.v.done){L.n=4;break}return L.a(3,5);case 4:L.n=2;break;case 5:L.n=7;break;case 6:L.p=6,G=L.v,Z==null||Z(G);case 7:return L.p=7,q.releaseLock(),L.f(7);case 8:return L.a(2)}},d,null,[[1,6,7,8]])}));return function(d){return B.apply(this,arguments)}})()({stream:Tb({stream:O,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:x,onError:function(B){throw B}}),onError:function(B){throw B}});case 7:this.setStatus({status:"ready"}),I.n=10;break;case 8:if(I.p=8,S=I.v,!y&&S.name!=="AbortError"){I.n=9;break}return I.a(2,(y=!0,this.setStatus({status:"ready"}),null));case 9:D=!0,S instanceof TypeError&&(S.message.toLowerCase().includes("fetch")||S.message.toLowerCase().includes("network"))&&(F=!0),this.onError&&S instanceof Error&&this.onError(S),this.setStatus({status:"error",error:S});case 10:I.p=10;try{(l=this.onFinish)==null||l.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:y,isDisconnect:F,isError:D,finishReason:(c=this.activeResponse)==null?void 0:c.state.finishReason})}catch(B){console.error(B)}return this.activeResponse=void 0,I.f(10);case 11:if(!((p=this.sendAutomaticallyWhen)!=null&&p.call(this,{messages:this.state.messages}))||D){I.n=12;break}return I.n=12,this.makeRequest({trigger:"submit-message",messageId:(m=this.lastMessage)==null?void 0:m.id,metadata:u,headers:a,body:i});case 12:return I.a(2)}},t,this,[[1,8,10,11]])})),function(t){return e.apply(this,arguments)})}]);var e})();function Nb(e){var t=e.messages,n=t[t.length-1];if(!n||n.role!=="assistant")return!1;var r=n.parts.reduce(function(a,i,o){return i.type==="step-start"?o:a},-1),u=n.parts.slice(r+1).filter(Dc).filter(function(a){return!a.providerExecuted});return u.length>0&&u.every(function(a){return a.state==="output-available"||a.state==="output-error"})}var jn,bo,Ao,ei,ti,ni,Yu,Ac,Ec,Xu,Rb=(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e})((oh||(oh=1,ih=function(e,t){if(typeof e!="function")throw new TypeError("Expected the first argument to be a `function`, got `".concat(Qt(e),"`."));var n,r=0;return function(){for(var u=this,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];clearTimeout(n);var c=Date.now(),l=t-(c-r);l<=0?(r=c,e.apply(this,i)):n=setTimeout(function(){r=Date.now(),e.apply(u,i)},l)}}),ih)),sh=function(e,t,n){if(!t.has(e))throw TypeError("Cannot "+n)},It=function(e,t,n){return sh(e,t,"read from private field"),n?n.call(e):t.get(e)},ir=function(e,t,n){if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Gr=function(e,t,n,r){return sh(e,t,"write to private field"),t.set(e,n),n},zb=(function(){return $n(function e(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Mn(this,e),ir(this,jn,void 0),ir(this,bo,"ready"),ir(this,Ao,void 0),ir(this,ei,new Set),ir(this,ti,new Set),ir(this,ni,new Set),this.pushMessage=function(r){Gr(t,jn,It(t,jn).concat(r)),It(t,Yu).call(t)},this.popMessage=function(){Gr(t,jn,It(t,jn).slice(0,-1)),It(t,Yu).call(t)},this.replaceMessage=function(r,u){Gr(t,jn,[].concat(Qe(It(t,jn).slice(0,r)),[t.snapshot(u)],Qe(It(t,jn).slice(r+1)))),It(t,Yu).call(t)},this.snapshot=function(r){return structuredClone(r)},this["~registerMessagesCallback"]=function(r,u){var a,i,o=u?(a=r,(i=u)!=null?Rb(a,i):a):r;return It(t,ei).add(o),function(){It(t,ei).delete(o)}},this["~registerStatusCallback"]=function(r){return It(t,ti).add(r),function(){It(t,ti).delete(r)}},this["~registerErrorCallback"]=function(r){return It(t,ni).add(r),function(){It(t,ni).delete(r)}},ir(this,Yu,function(){It(t,ei).forEach(function(r){return r()})}),ir(this,Ac,function(){It(t,ti).forEach(function(r){return r()})}),ir(this,Ec,function(){It(t,ni).forEach(function(r){return r()})}),Gr(this,jn,n)},[{key:"status",get:function(){return It(this,bo)},set:function(e){Gr(this,bo,e),It(this,Ac).call(this)}},{key:"error",get:function(){return It(this,Ao)},set:function(e){Gr(this,Ao,e),It(this,Ec).call(this)}},{key:"messages",get:function(){return It(this,jn)},set:function(e){Gr(this,jn,Qe(e)),It(this,Yu).call(this)}}])})();jn=new WeakMap,bo=new WeakMap,Ao=new WeakMap,ei=new WeakMap,ti=new WeakMap,ni=new WeakMap,Yu=new WeakMap,Ac=new WeakMap,Ec=new WeakMap;var ch=(function(){function e(t){var n,r=t.messages,u=Nr(t,Av);Mn(this,e);var a=new zb(r);return n=au(this,e,[pe(pe({},u),{},{state:a})]),ir(wu(n),Xu,void 0),n["~registerMessagesCallback"]=function(i,o){return It(wu(n),Xu)["~registerMessagesCallback"](i,o)},n["~registerStatusCallback"]=function(i){return It(wu(n),Xu)["~registerStatusCallback"](i)},n["~registerErrorCallback"]=function(i){return It(wu(n),Xu)["~registerErrorCallback"](i)},Gr(wu(n),Xu,a),n}return iu(e,jb),$n(e)})();Xu=new WeakMap;var lh="askai_token",Lb=function(e){if(!e)return!0;try{var t=(function(r){var u=dt(r.split("."),1)[0];return JSON.parse(atob(u))})(e),n=t.exp;return Date.now()/1e3>n-30}catch(r){return!0}},Eo=null,fh=(function(){var e=Xe(Ae().m(function t(n){var r,u,a,i,o,c;return Ae().w(function(l){for(;;)switch(l.n){case 0:if(r=n.assistantId,u=n.abortSignal,a=n.useStagingEnv,i=a!==void 0&&a,o=sessionStorage.getItem(lh),Lb(o)){l.n=1;break}return l.a(2,o);case 1:return c=i?Ds:ys,Eo||(Eo=fetch("".concat(c,"/token"),{method:"POST",headers:{"x-algolia-assistant-id":r,"content-type":"application/json"},signal:u}).then(function(p){return p.json()}).then(function(p){var m=p.token,v=p.success,y=p.message;if(!v&&y)throw new Error(y);return sessionStorage.setItem(lh,m),m}).finally(function(){return Eo=null})),l.a(2,Eo)}},t)}));return function(t){return e.apply(this,arguments)}})(),Mb=(function(){var e=Xe(Ae().m(function t(n){var r,u,a,i,o,c,l,p,m,v;return Ae().w(function(y){for(;;)switch(y.n){case 0:return r=n.assistantId,u=n.thumbs,a=n.messageId,i=n.appId,o=n.abortSignal,c=n.useStagingEnv,l=c!==void 0&&c,(p=new Headers).set("x-algolia-assistant-id",r),p.set("content-type","application/json"),y.n=1,fh({assistantId:r,abortSignal:o,useStagingEnv:l});case 1:return m=y.v,p.set("authorization","TOKEN ".concat(m)),v=l?Ds:ys,y.a(2,fetch("".concat(v,"/feedback"),{method:"POST",body:JSON.stringify({appId:i,messageId:a,thumbs:u}),headers:p}))}},t)}));return function(t){return e.apply(this,arguments)}})(),$b=["assistantId","apiKey","appId","indexName","useStagingEnv"];function Zb(e){var t,n="algolia-client-js-".concat(e.key);function r(){return t===void 0&&(t=e.localStorage||window.localStorage),t}function u(){return JSON.parse(r().getItem(n)||"{}")}function a(i){r().setItem(n,JSON.stringify(i))}return{get:function(i,o){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){var l,p,m;return l=e.timeToLive?1e3*e.timeToLive:null,p=u(),a(m=Object.fromEntries(Object.entries(p).filter(function(v){return dt(v,2)[1].timestamp!==void 0}))),l&&a(Object.fromEntries(Object.entries(m).filter(function(v){var y=dt(v,2)[1],F=new Date().getTime();return!(y.timestamp+l<F)}))),u()[JSON.stringify(i)]}).then(function(l){return Promise.all([l?l.value:o(),l!==void 0])}).then(function(l){var p=dt(l,2),m=p[0],v=p[1];return Promise.all([m,v||c.miss(m)])}).then(function(l){return dt(l,1)[0]})},set:function(i,o){return Promise.resolve().then(function(){var c=u();return c[JSON.stringify(i)]={timestamp:new Date().getTime(),value:o},r().setItem(n,JSON.stringify(c)),o})},delete:function(i){return Promise.resolve().then(function(){var o=u();delete o[JSON.stringify(i)],r().setItem(n,JSON.stringify(o))})},clear:function(){return Promise.resolve().then(function(){r().removeItem(n)})}}}function ri(e){var t=be(e.caches),n=t.shift();return n===void 0?{get:function(r,u){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return u().then(function(i){return Promise.all([i,a.miss(i)])}).then(function(i){return dt(i,1)[0]})},set:function(r,u){return Promise.resolve(u)},delete:function(r){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(r,u){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(r,u,a).catch(function(){return ri({caches:t}).get(r,u,a)})},set:function(r,u){return n.set(r,u).catch(function(){return ri({caches:t}).set(r,u)})},delete:function(r){return n.delete(r).catch(function(){return ri({caches:t}).delete(r)})},clear:function(){return n.clear().catch(function(){return ri({caches:t}).clear()})}}}function Fc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(n);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var i=r();return i.then(function(o){return u.miss(o)}).then(function(){return i})},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(n){return delete t[JSON.stringify(n)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function qb(e){var t=e.algoliaAgents,n=e.client,r=e.version,u=(function(a){var i={value:"Algolia for JavaScript (".concat(a,")"),add:function(o){var c="; ".concat(o.segment).concat(o.version!==void 0?" (".concat(o.version,")"):"");return i.value.indexOf(c)===-1&&(i.value="".concat(i.value).concat(c)),i}};return i})(r).add({segment:n,version:r});return t.forEach(function(a){return u.add(a)}),u}var dh=12e4;function ph(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"up",n=Date.now();return C(C({},e),{},{status:t,lastUpdate:n,isUp:function(){return t==="up"||Date.now()-n>dh},isTimedOut:function(){return t==="timed out"&&Date.now()-n<=dh}})}var hh=(function(){function e(t,n){var r;return Be(this,e),lt(r=$e(this,e,[t]),"name","AlgoliaError"),n&&(r.name=n),r}return Me(e,Lr(Error)),Pe(e)})(),vh=(function(){function e(t,n,r){var u;return Be(this,e),lt(u=$e(this,e,[t,r]),"stackTrace",void 0),u.stackTrace=n,u}return Me(e,hh),Pe(e)})(),Hb=(function(){function e(t){return Be(this,e),$e(this,e,["Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",t,"RetryError"])}return Me(e,vh),Pe(e)})(),_c=(function(){function e(t,n,r){var u,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"ApiError";return Be(this,e),lt(u=$e(this,e,[t,r,a]),"status",void 0),u.status=n,u}return Me(e,vh),Pe(e)})(),Ub=(function(){function e(t,n){var r;return Be(this,e),lt(r=$e(this,e,[t,"DeserializationError"]),"response",void 0),r.response=n,r}return Me(e,hh),Pe(e)})(),Wb=(function(){function e(t,n,r,u){var a;return Be(this,e),lt(a=$e(this,e,[t,n,u,"DetailedApiError"]),"error",void 0),a.error=r,a}return Me(e,_c),Pe(e)})();function Vb(e,t,n){var r,u=(r=n,Object.keys(r).filter(function(i){return r[i]!==void 0}).sort().map(function(i){return"".concat(i,"=").concat(encodeURIComponent(Object.prototype.toString.call(r[i])==="[object Array]"?r[i].join(","):r[i]).replace(/\+/g,"%20"))}).join("&")),a="".concat(e.protocol,"://").concat(e.url).concat(e.port?":".concat(e.port):"","/").concat(t.charAt(0)==="/"?t.substring(1):t);return u.length&&(a+="?".concat(u)),a}function Kb(e,t){if(e.method!=="GET"&&(e.data!==void 0||t.data!==void 0)){var n=Array.isArray(e.data)?e.data:C(C({},e.data),t.data);return JSON.stringify(n)}}function Gb(e,t,n){var r=C(C(C({Accept:"application/json"},e),t),n),u={};return Object.keys(r).forEach(function(a){var i=r[a];u[a.toLowerCase()]=i}),u}function Jb(e){try{return JSON.parse(e.content)}catch(t){throw new Ub(t.message,e)}}function Qb(e,t){var n=e.content,r=e.status;try{var u=JSON.parse(n);return"error"in u?new Wb(u.message,r,u.error,t):new _c(u.message,r,t)}catch(a){}return new _c(n,r,t)}function Yb(e){var t=e.isTimedOut,n=e.status;return t||(function(r){return!r.isTimedOut&&~~r.status===0})({isTimedOut:t,status:n})||~~(n/100)!=2&&~~(n/100)!=4}function Xb(e){return~~(e.status/100)==2}function eA(e){return e.map(function(t){return mh(t)})}function mh(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return C(C({},e),{},{request:C(C({},e.request),{},{headers:C(C({},e.request.headers),t)})})}var tA=["appId","apiKey","authMode","algoliaAgents"],nA=["params"],gh="5.43.0";function rA(e){return[{url:"".concat(e,"-dsn.algolia.net"),accept:"read",protocol:"https"},{url:"".concat(e,".algolia.net"),accept:"write",protocol:"https"}].concat((function(t){for(var n=t,r=t.length-1;r>0;r--){var u=Math.floor(Math.random()*(r+1)),a=t[r];n[r]=t[u],n[u]=a}return n})([{url:"".concat(e,"-1.algolianet.com"),accept:"readWrite",protocol:"https"},{url:"".concat(e,"-2.algolianet.com"),accept:"readWrite",protocol:"https"},{url:"".concat(e,"-3.algolianet.com"),accept:"readWrite",protocol:"https"}]))}var Cc="4.5.4";function uA(e,t,n){var r=b.useMemo(function(){var u=(function(a,i){if(!a||typeof a!="string")throw new Error("`appId` is missing.");if(!i||typeof i!="string")throw new Error("`apiKey` is missing.");return(function(o){var c=o.appId,l=o.apiKey,p=o.authMode,m=o.algoliaAgents,v=an(o,tA),y=(function(D,_){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"WithinHeaders",w={"x-algolia-api-key":_,"x-algolia-application-id":D};return{headers:function(){return O==="WithinHeaders"?w:{}},queryParameters:function(){return O==="WithinQueryParameters"?w:{}}}})(c,l,p),F=(function(D){var _=D.hosts,O=D.hostsCache,w=D.baseHeaders,x=D.logger,S=D.baseQueryParameters,T=D.algoliaAgent,I=D.timeouts,B=D.requester,d=D.requestsCache,H=D.responsesCache;function R(L){return Z.apply(this,arguments)}function Z(){return(Z=Xe(Ae().m(function L(ne){var Q,$,Y,re,me;return Ae().w(function(se){for(;;)switch(se.n){case 0:return se.n=1,Promise.all(ne.map(function(K){return O.get(K,function(){return Promise.resolve(ph(K))})}));case 1:return Q=se.v,$=Q.filter(function(K){return K.isUp()}),Y=Q.filter(function(K){return K.isTimedOut()}),re=[].concat(be($),be(Y)),me=re.length>0?re:ne,se.a(2,{hosts:me,getTimeout:function(K,V){return(Y.length===0&&K===0?1:Y.length+3+K)*V}})}},L)}))).apply(this,arguments)}function q(L,ne){return G.apply(this,arguments)}function G(){return G=Xe(Ae().m(function L(ne,Q){var $,Y,re,me,se,K,V,ue,oe,ce,ee,he,Ce,Re=arguments;return Ae().w(function(ge){for(;;)switch(ge.n){case 0:if($=!(Re.length>2&&Re[2]!==void 0)||Re[2],Y=[],re=Kb(ne,Q),me=Gb(w,ne.headers,Q.headers),se=ne.method==="GET"?C(C({},ne.data),Q.data):{},K=C(C(C({},S),ne.queryParameters),se),T.value&&(K["x-algolia-agent"]=T.value),Q&&Q.queryParameters)for(V=0,ue=Object.keys(Q.queryParameters);V<ue.length;V++)oe=ue[V],Q.queryParameters[oe]&&Object.prototype.toString.call(Q.queryParameters[oe])!=="[object Object]"?K[oe]=Q.queryParameters[oe].toString():K[oe]=Q.queryParameters[oe];return ce=0,ee=(function(){var Te=Xe(Ae().m(function He(nt,Ge){var yt,Dt,mn,Xt,un,Gn;return Ae().w(function(Mt){for(;;)switch(Mt.n){case 0:if((yt=nt.pop())!==void 0){Mt.n=1;break}throw new Hb(eA(Y));case 1:return Dt=C(C({},I),Q.timeouts),mn={data:re,headers:me,method:ne.method,url:Vb(yt,ne.path,K),connectTimeout:Ge(ce,Dt.connect),responseTimeout:Ge(ce,$?Dt.read:Dt.write)},Xt=function(Gt){var Jt={request:mn,response:Gt,host:yt,triesLeft:nt.length};return Y.push(Jt),Jt},Mt.n=2,B.send(mn);case 2:if(!Yb(un=Mt.v)){Mt.n=4;break}return Gn=Xt(un),un.isTimedOut&&ce++,x.info("Retryable failure",mh(Gn)),Mt.n=3,O.set(yt,ph(yt,un.isTimedOut?"timed out":"down"));case 3:return Mt.a(2,ee(nt,Ge));case 4:if(!Xb(un)){Mt.n=5;break}return Mt.a(2,Jb(un));case 5:throw Xt(un),Qb(un,Y);case 6:return Mt.a(2)}},He)}));return function(He,nt){return Te.apply(this,arguments)}})(),he=_.filter(function(Te){return Te.accept==="readWrite"||($?Te.accept==="read":Te.accept==="write")}),ge.n=1,R(he);case 1:return Ce=ge.v,ge.a(2,ee(be(Ce.hosts).reverse(),Ce.getTimeout))}},L)})),G.apply(this,arguments)}return{hostsCache:O,requester:B,timeouts:I,logger:x,algoliaAgent:T,baseHeaders:w,baseQueryParameters:S,hosts:_,request:function(L){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=L.useReadTransporter||L.method==="GET";if(!Q)return q(L,ne,Q);var $=function(){return q(L,ne)};if((ne.cacheable||L.cacheable)!==!0)return $();var Y={request:L,requestOptions:ne,transporter:{queryParameters:S,headers:w}};return H.get(Y,function(){return d.get(Y,function(){return d.set(Y,$()).then(function(re){return Promise.all([d.delete(Y),re])},function(re){return Promise.all([d.delete(Y),Promise.reject(re)])}).then(function(re){var me=dt(re,2);return me[0],me[1]})})},{miss:function(re){return H.set(Y,re)}})},requestsCache:d,responsesCache:H}})(C(C({hosts:rA(c)},v),{},{algoliaAgent:qb({algoliaAgents:m,client:"Lite",version:gh}),baseHeaders:C(C({"content-type":"text/plain"},y.headers()),v.baseHeaders),baseQueryParameters:C(C({},y.queryParameters()),v.baseQueryParameters)}));return{transporter:F,appId:c,apiKey:l,clearCache:function(){return Promise.all([F.requestsCache.clear(),F.responsesCache.clear()]).then(function(){})},get _ua(){return F.algoliaAgent.value},addAlgoliaAgent:function(D,_){F.algoliaAgent.add({segment:D,version:_})},setClientApiKey:function(D){var _=D.apiKey;p&&p!=="WithinHeaders"?F.baseQueryParameters["x-algolia-api-key"]=_:F.baseHeaders["x-algolia-api-key"]=_},searchForHits:function(D,_){return this.search(D,_)},searchForFacets:function(D,_){return this.search(D,_)},customPost:function(D,_){var O=D.path,w=D.parameters,x=D.body;if(!O)throw new Error("Parameter `path` is required when calling `customPost`.");var S={method:"POST",path:"/{path}".replace("{path}",O),queryParameters:w||{},headers:{},data:x||{}};return F.request(S,_)},getRecommendations:function(D,_){if(D&&Array.isArray(D)&&(D={requests:D}),!D)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!D.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");var O={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:D,useReadTransporter:!0,cacheable:!0};return F.request(O,_)},search:function(D,_){if(D&&Array.isArray(D)){var O={requests:D.map(function(x){var S=x.params,T=an(x,nA);return T.type==="facet"?C(C(C({},T),S),{},{type:"facet"}):C(C(C({},T),S),{},{facet:void 0,maxFacetHits:void 0,facetQuery:void 0})})};D=O}if(!D)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!D.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");var w={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:D,useReadTransporter:!0,cacheable:!0};return F.request(w,_)}}})(C({appId:a,apiKey:i,timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:function(o,c){return Promise.resolve()},info:function(o,c){return Promise.resolve()},error:function(o,c){return Promise.resolve()}},requester:{send:function(o){return new Promise(function(c){var l=new XMLHttpRequest;l.open(o.method,o.url,!0),Object.keys(o.headers).forEach(function(y){return l.setRequestHeader(y,o.headers[y])});var p,m=function(y,F){return setTimeout(function(){l.abort(),c({status:0,content:F,isTimedOut:!0})},y)},v=m(o.connectTimeout,"Connection timeout");l.onreadystatechange=function(){l.readyState>l.OPENED&&p===void 0&&(clearTimeout(v),p=m(o.responseTimeout,"Socket timeout"))},l.onerror=function(){l.status===0&&(clearTimeout(v),clearTimeout(p),c({content:l.responseText||"Network request failed",status:l.status,isTimedOut:!1}))},l.onload=function(){clearTimeout(v),clearTimeout(p),c({content:l.responseText,status:l.status,isTimedOut:!1})},l.send(o.data)})}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:Fc(),requestsCache:Fc({serializable:!1}),hostsCache:ri({caches:[Zb({key:"".concat(gh,"-").concat(a)}),Fc()]})},void 0))})(e,t);return u.addAlgoliaAgent("docsearch",Cc),/docsearch.js \(.*\)/.test(u.transporter.algoliaAgent.value)===!1&&u.addAlgoliaAgent("docsearch-react",Cc),n(u)},[e,t,n]);return r}var aA=["appId","apiKey","askAi","maxResultsPerGroup","theme","onClose","transformItems","hitComponent","resultsFooterComponent","navigator","initialScrollY","transformSearchClient","disableUserPersonalization","initialQuery","translations","getMissingResultsUrl","insights","onAskAiToggle","interceptAskAiEvent","isAskAiActive","recentSearchesLimit","recentSearchesWithFavoritesLimit","indices","indexName","searchParameters","isHybridModeSupported"],iA=["footer","searchBox"],oA=(function(){var e=Xe(Ae().m(function t(n){var r,u,a,i,o,c,l,p,m,v,y,F,D,_,O,w,x,S,T;return Ae().w(function(I){for(;;)switch(I.p=I.n){case 0:return r=n.query,u=n.state,a=n.setContext,i=n.setStatus,o=n.searchClient,c=n.indexes,l=n.snippetLength,p=n.insights,m=n.appId,v=n.apiKey,y=n.maxResultsPerGroup,F=n.transformItems,D=F===void 0?ss:F,_=n.saveRecentSearch,O=n.onClose,w=p,I.p=1,I.n=2,o.search({requests:c.map(function(B){var d,H,R,Z,q,G,L,ne=typeof B=="string"?B:B.name,Q=typeof B=="string"?{}:B.searchParameters;return C({query:r,indexName:ne,attributesToRetrieve:(d=Q==null?void 0:Q.attributesToRetrieve)!==null&&d!==void 0?d:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:(H=Q==null?void 0:Q.attributesToSnippet)!==null&&H!==void 0?H:["hierarchy.lvl1:".concat(l.current),"hierarchy.lvl2:".concat(l.current),"hierarchy.lvl3:".concat(l.current),"hierarchy.lvl4:".concat(l.current),"hierarchy.lvl5:".concat(l.current),"hierarchy.lvl6:".concat(l.current),"content:".concat(l.current)],snippetEllipsisText:(R=Q==null?void 0:Q.snippetEllipsisText)!==null&&R!==void 0?R:"\u2026",highlightPreTag:(Z=Q==null?void 0:Q.highlightPreTag)!==null&&Z!==void 0?Z:"<mark>",highlightPostTag:(q=Q==null?void 0:Q.highlightPostTag)!==null&&q!==void 0?q:"</mark>",hitsPerPage:(G=Q==null?void 0:Q.hitsPerPage)!==null&&G!==void 0?G:20,clickAnalytics:(L=Q==null?void 0:Q.clickAnalytics)!==null&&L!==void 0?L:w},Q!=null?Q:{})})});case 2:return x=I.v,S=x.results,I.a(2,S.flatMap(function(B){var d,H=B,R=H.hits,Z=H.nbHits,q=Ql(D(R),function(ne){return Xl(ne)},y);if(u.context.searchSuggestions.length<Object.keys(q).length&&a({searchSuggestions:C(C({},(d=u.context.searchSuggestions)!==null&&d!==void 0?d:[]),Object.keys(q))}),Z){var G=u.context.nbHits;a({nbHits:(G!=null?G:0)+Z})}var L={};return w&&(L={__autocomplete_indexName:H.index,__autocomplete_queryID:H.queryID,__autocomplete_algoliaCredentials:{appId:m,apiKey:v}}),Object.values(q).map(function(ne,Q){return{sourceId:"hits_".concat(H.index,"_").concat(Q),onSelect:function($){var Y=$.item,re=$.event;_(Y),_i(re)||O()},getItemUrl:function($){return $.item.url},getItems:function(){return Object.values(Ql(ne,function($){return $.hierarchy.lvl1},y)).map(function($){return $.map(function(Y){var re=null,me=$.find(function(se){return se.type==="lvl1"&&se.hierarchy.lvl1===Y.hierarchy.lvl1});return Y.type!=="lvl1"&&me&&(re=me),C(C({},Y),{},{__docsearch_parent:re},L)})}).flat()}}})}));case 3:throw I.p=3,(T=I.v).name==="RetryError"&&i("error"),T;case 4:return I.a(2)}},t,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}})();function sA(e){var t,n,r,u,a=e.appId,i=e.apiKey,o=e.askAi,c=e.maxResultsPerGroup,l=e.theme,p=e.onClose,m=p===void 0?_v:p,v=e.transformItems,y=v===void 0?ss:v,F=e.hitComponent,D=F===void 0?pm:F,_=e.resultsFooterComponent,O=_===void 0?function(){return null}:_,w=e.navigator,x=e.initialScrollY,S=x===void 0?0:x,T=e.transformSearchClient,I=T===void 0?ss:T,B=e.disableUserPersonalization,d=B!==void 0&&B,H=e.initialQuery,R=H===void 0?"":H,Z=e.translations,q=Z===void 0?{}:Z,G=e.getMissingResultsUrl,L=e.insights,ne=L!==void 0&&L,Q=e.onAskAiToggle,$=e.interceptAskAiEvent,Y=e.isAskAiActive,re=Y!==void 0&&Y,me=e.recentSearchesLimit,se=me===void 0?7:me,K=e.recentSearchesWithFavoritesLimit,V=K===void 0?4:K,ue=e.indices,oe=ue===void 0?[]:ue,ce=e.indexName,ee=e.searchParameters,he=e.isHybridModeSupported,Ce=he!==void 0&&he,Re=an(e,aA),ge=q.footer,Te=q.searchBox,He=an(q,iA),nt=dt(b.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),2),Ge=nt[0],yt=nt[1],Dt=!!o,mn=(q==null||(t=q.searchBox)===null||t===void 0?void 0:t.placeholderText)||Re.placeholder||"Search docs";Dt&&(mn=(q==null||(r=q.searchBox)===null||r===void 0?void 0:r.placeholderText)||"Search docs or ask AI a question"),re&&(mn=(q==null||(u=q.searchBox)===null||u===void 0?void 0:u.placeholderTextAskAi)||"Ask another question...");var Xt=b.useRef(null),un=b.useRef(null),Gn=b.useRef(null),Mt=b.useRef(null),Gt=b.useRef(null),Jt=b.useRef(15),en=b.useRef(typeof window!="undefined"?window.getSelection().toString().slice(0,512):"").current,ke=b.useRef(R||en).current,Ut=uA(a,i,I),Bt=Qt(o)==="object"?o:null,sr=typeof o=="string"?o:(Bt==null?void 0:Bt.assistantId)||null,cr=Bt==null?void 0:Bt.searchParameters,Jr=(Bt==null?void 0:Bt.useStagingEnv)||!1,Qr=dt(b.useState("initial"),2),Fn=Qr[0],$t=Qr[1],Jn=(function(le){var Ie=le.assistantId,Ve=le.searchClient,Ct=le.suggestedQuestionsEnabled,At=Ct!==void 0&&Ct,ln=dt(su([]),2),yn=ln[0],Dn=ln[1];return qn(function(){var Ir=(function(){var eu=Xe(Ae().m(function qt(){var Ht,Br,Nt;return Ae().w(function(fn){for(;;)switch(fn.n){case 0:return fn.n=1,Ve.search({requests:[{indexName:"algolia_ask_ai_suggested_questions",filters:"state:published AND assistantId:".concat(Ie),hitsPerPage:3}]});case 1:Ht=fn.v,Br=Ht.results,Nt=Br[0],Dn(Nt.hits);case 2:return fn.a(2)}},qt)}));return function(){return eu.apply(this,arguments)}})();At&&Ie&&Ie!==""&&Ir()},[At,Ie,Ve]),yn})({assistantId:sr,searchClient:Ut,suggestedQuestionsEnabled:Bt==null?void 0:Bt.suggestedQuestions}),Nn=(n=Bt==null?void 0:Bt.agentStudio)!==null&&n!==void 0&&n,lr=[];if(ce&&ce!==""&&lr.push({name:ce,searchParameters:ee}),oe.length>0&&oe.forEach(function(le){lr.push(typeof le=="string"?{name:le}:le)}),lr.length<1)throw new Error("Must supply either `indexName` or `indices` for DocSearch to work");var xn=lr[0].name,fr=b.useRef(sd({key:"__DOCSEARCH_ASKAI_CONVERSATIONS__".concat((Bt==null?void 0:Bt.indexName)||xn),limit:10})).current,Qn=b.useRef(od({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(xn),limit:10})).current,kr=b.useRef(od({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(xn),limit:Qn.getAll().length===0?se:V})).current,rt=dt(b.useState(!1),2),gn=rt[0],ui=rt[1],dr=(function(le){var Ie=le.assistantId,Ve=le.apiKey,Ct=le.appId,At=le.indexName,ln=le.useStagingEnv,yn=ln!==void 0&&ln,Dn=an(le,$b),Ir=Iu(new AbortController),eu=On(function(){return Dn.agentStudio?(function(kt){var ut=kt.appId,wt=kt.apiKey,Wt=kt.assistantId,Et=kt.searchParameters;return new bc({api:"https://".concat(ut,".algolia.net/agent-studio/1/agents/").concat(Wt,"/completions?stream=true&compatibilityMode=ai-sdk-5"),headers:{"x-algolia-application-id":ut,"x-algolia-api-key":wt},body:Et?{algolia:{searchParameters:Et}}:{}})})({apiKey:Ve,appId:Ct,assistantId:Ie!=null?Ie:"",searchParameters:Dn.searchParameters}):(function(kt){var ut,wt=kt.assistantId,Wt=kt.apiKey,Et=kt.indexName,at=kt.searchParameters,Tn=kt.appId,Rn=kt.abortController,tu=kt.useStagingEnv;return new bc({api:tu?Ds:ys,headers:(ut=Xe(Ae().m(function li(){var Xn;return Ae().w(function(hr){for(;;)switch(hr.n){case 0:if(wt){hr.n=1;break}throw new Error("Ask AI assistant ID is required");case 1:return hr.n=2,fh({assistantId:wt,abortSignal:Rn.signal,useStagingEnv:tu});case 2:return Xn=hr.v,hr.a(2,C(C({},Xn?{authorization:"TOKEN ".concat(Xn)}:{}),{},{"X-Algolia-API-Key":Wt,"X-Algolia-Application-Id":Tn,"X-Algolia-Index-Name":Et,"X-Algolia-Assistant-Id":wt||"","X-AI-SDK-Version":"v5"}))}},li)})),function(){return ut.apply(this,arguments)}),body:at?{searchParameters:at}:{}})})({assistantId:Ie!=null?Ie:"",apiKey:Ve,appId:Ct,indexName:At,searchParameters:Dn.searchParameters,abortController:Ir.current,useStagingEnv:yn})},[Ve,Ct,Ie,At,yn,Dn]),qt=(function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ut=kt.experimental_throttle,wt=kt.resume,Wt=wt!==void 0&&wt,Et=Nr(kt,Ev),at=Iu("chat"in Et?Et.chat:new ch(Et));("chat"in Et&&Et.chat!==at.current||"id"in Et&&at.current.id!==Et.id)&&(at.current="chat"in Et?Et.chat:new ch(Et));var Tn="id"in Et?Et.id:null,Rn=pa(function(vr){return at.current["~registerMessagesCallback"](vr,ut)},[ut,Tn]),tu=ha(Rn,function(){return at.current.messages}),li=ha(at.current["~registerStatusCallback"],function(){return at.current.status}),Xn=ha(at.current["~registerErrorCallback"],function(){return at.current.error}),hr=pa(function(vr){typeof vr=="function"&&(vr=vr(at.current.messages)),at.current.messages=vr},[at]);return qn(function(){Wt&&at.current.resumeStream()},[Wt,at]),{id:at.current.id,messages:tu,setMessages:hr,sendMessage:at.current.sendMessage,regenerate:at.current.regenerate,clearError:at.current.clearError,stop:at.current.stop,error:Xn,resumeStream:at.current.resumeStream,status:li,addToolResult:at.current.addToolOutput,addToolOutput:at.current.addToolOutput}})({sendAutomaticallyWhen:Nb,transport:eu}),Ht=qt.messages,Br=qt.sendMessage,Nt=qt.status,fn=qt.setMessages,nn=qt.error,_u=qt.stop,pr=Iu(sd({key:"__DOCSEARCH_ASKAI_CONVERSATIONS__".concat(At),limit:10})).current,ci=pa((function(){var kt=Xe(Ae().m(function ut(wt,Wt){var Et;return Ae().w(function(at){for(;;)switch(at.n){case 0:if(Ie){at.n=1;break}return at.a(2);case 1:return at.n=2,Mb({assistantId:Ie,thumbs:Wt,messageId:wt,appId:Ct,abortSignal:Ir.current.signal,useStagingEnv:yn});case 2:if(!(at.v.status>=300)){at.n=3;break}throw new Error("Failed, try again later.");case 3:(Et=pr.addFeedback)===null||Et===void 0||Et.call(pr,wt,Wt===1?"like":"dislike");case 4:return at.a(2)}},ut)}));return function(ut,wt){return kt.apply(this,arguments)}})(),[Ie,Ct,pr,yn]),So=(function(){var kt=Xe(Ae().m(function ut(){return Ae().w(function(wt){for(;;)switch(wt.n){case 0:return Ir.current.abort(),wt.n=1,_u();case 1:return wt.a(2)}},ut)}));return function(){return kt.apply(this,arguments)}})(),ta=On(function(){for(var kt=[],ut=0;ut<Ht.length;ut++)if(Ht[ut].role==="user"){var wt,Wt=Ht[ut],Et=((wt=Ht[ut+1])===null||wt===void 0?void 0:wt.role)==="assistant"?Ht[ut+1]:null;kt.push({id:Wt.id,userMessage:Wt,assistantMessage:Et}),Et&&ut++}return kt},[Ht]),xo=Nt==="streaming"||Nt==="submitted",Sc=On(function(){if(nn)return Dn.agentStudio?(function(kt){var ut=kt.message;try{var wt=JSON.parse(kt.message);if(wt.name==="ValidationError"){var Wt=wt;if(Wt.detail&&Wt.detail.length>0){var Et=Wt.detail[0],at=Et.msg,Tn=Et.loc.at(-1);ut="".concat(at,": ").concat(Tn)}}else ut=wt.message}catch(Rn){}return new Error(ut)})(nn):nn},[nn,Dn.agentStudio]);return{messages:Ht,sendMessage:Br,status:Nt,setMessages:fn,askAiError:Sc,stopAskAiStreaming:So,isStreaming:xo,exchanges:ta,conversations:pr,sendFeedback:ci}})({assistantId:sr,apiKey:(Bt==null?void 0:Bt.apiKey)||i,appId:(Bt==null?void 0:Bt.appId)||a,indexName:(Bt==null?void 0:Bt.indexName)||xn,searchParameters:cr,useStagingEnv:Jr,agentStudio:Nn}),tn=dr.messages,Zt=dr.status,wr=dr.setMessages,Fo=dr.sendMessage,_o=dr.stopAskAiStreaming,Au=dr.askAiError,Sr=dr.sendFeedback,xr=b.useRef(Zt);b.useEffect(function(){if(!d){if(xr.current==="streaming"&&Zt==="ready"){gn&&tn.at(-1)&&(tn.at(-1).metadata={stopped:!0});var le,Ie=ye(tn[0].parts);try{for(Ie.s();!(le=Ie.n()).done;){var Ve=le.value;Ve.type==="text"&&fr.add(Xm(Ve.text,tn))}}catch(Ct){Ie.e(Ct)}finally{Ie.f()}}xr.current=Zt}},[Zt,tn,fr,d,gn]);var ai=b.useMemo(function(){return Zt==="error"&&Is(Au)},[Zt,Au]),Eu=b.useCallback(function(le){var Ie=le.hierarchy,Ve=["lvl6","lvl5","lvl4","lvl3","lvl2","lvl1","lvl0"].find(function(Ct){return Ie[Ct]});return C(C({},le),{},{type:Ve||"lvl0",content:null})},[]),ii=b.useCallback(function(le){if(!d){var Ie=le.type==="content"?le.__docsearch_parent||Eu(le):le;Ie&&Qn.getAll().findIndex(function(Ve){return Ve.objectID===Ie.objectID})===-1&&kr.add(Ie)}},[Qn,kr,d,Eu]),kc=b.useCallback(function(le){if(Ge.context.algoliaInsightsPlugin&&le.__autocomplete_id){var Ie=le,Ve={eventName:"Item Selected",index:Ie.__autocomplete_indexName,items:[Ie],positions:[le.__autocomplete_id],queryID:Ie.__autocomplete_queryID};Ge.context.algoliaInsightsPlugin.insights.clickedObjectIDsAfterSearch(Ve)}},[Ge.context.algoliaInsightsPlugin]),Yn=b.useRef(void 0),Yr=b.useCallback(function(le,Ie){var Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(le){var Ct={query:Ie,suggestedQuestionId:Ve==null?void 0:Ve.objectID};if($!=null&&$(Ct))return void(Yn.current&&Yn.current.setQuery(""))}if(le&&Fn==="new-conversation"&&$t("initial"),Q(le,{query:Ie,suggestedQuestionId:Ve==null?void 0:Ve.objectID}),!Ce){ui(!1);var At={};if(Ve&&(At.body={suggestedQuestionId:Ve.objectID}),Fo({role:"user",parts:[{type:"text",text:Ie}]},At),Mt.current){var ln=Mt.current;typeof ln.scrollTo=="function"?ln.scrollTo({top:0,behavior:"smooth"}):ln.scrollTop=0}Yn.current&&Yn.current.setQuery("")}},[Q,$,Fo,Fn,$t,Ce]),wc=b.useCallback((function(){var le=Xe(Ae().m(function Ie(Ve,Ct){return Ae().w(function(At){for(;;)switch(At.n){case 0:if(sr&&a){At.n=1;break}return At.a(2);case 1:return At.n=2,Sr(Ve,Ct);case 2:return At.a(2)}},Ie)}));return function(Ie,Ve){return le.apply(this,arguments)}})(),[sr,a,Sr]);Yn.current||(Yn.current=lm({id:"docsearch",defaultActiveItemId:0,openOnFocus:!0,initialState:{query:ke,context:{searchSuggestions:[]}},insights:!!ne,navigator:w,onStateChange:function(le){yt(le.state)},getSources:function(le){var Ie=le.query,Ve=le.state,Ct=le.setContext,At=le.setStatus;if(!Ie){var ln=(function(qt){var Ht=qt.recentSearches,Br=qt.favoriteSearches,Nt=qt.saveRecentSearch,fn=qt.onClose;return qt.disableUserPersonalization?[]:[{sourceId:"recentSearches",onSelect:function(nn){var _u=nn.item,pr=nn.event;Nt(_u),_i(pr)||fn()},getItemUrl:function(nn){return nn.item.url},getItems:function(){return Ht.getAll()}},{sourceId:"favoriteSearches",onSelect:function(nn){var _u=nn.item,pr=nn.event;Nt(_u),_i(pr)||fn()},getItemUrl:function(nn){return nn.item.url},getItems:function(){return Br.getAll()}}]})({recentSearches:kr,favoriteSearches:Qn,saveRecentSearch:ii,onClose:m,disableUserPersonalization:d,canHandleAskAi:Dt}),yn=Dt?[{sourceId:"recentConversations",getItems:function(){return d?[]:fr.getAll()},onSelect:function(qt){var Ht=qt.item;Ht.messages&&(wr(Ht.messages),Q(!0))}}]:[];return[].concat(be(ln),yn)}var Dn={context:Ve.context},Ir=oA({query:Ie,state:Dn,setContext:Ct,setStatus:At,searchClient:Ut,indexes:lr,snippetLength:Jt,insights:!!ne,appId:a,apiKey:i,maxResultsPerGroup:c,transformItems:y,saveRecentSearch:ii,onClose:m}),eu=Dt?[{sourceId:"askAI",getItems:function(){return[{type:"askAI",query:Ie,url_without_anchor:"",objectID:"ask-ai-button",content:null,url:"",anchor:null,hierarchy:{lvl0:"Ask AI",lvl1:Ie,lvl2:null,lvl3:null,lvl4:null,lvl5:null,lvl6:null},_highlightResult:{},_snippetResult:{},__docsearch_parent:null}]},onSelect:function(qt){var Ht=qt.item;Ht.type==="askAI"&&Ht.query&&Yr(!0,Ht.query)}}]:[];return Ir.then(function(qt){return[].concat(eu,be(qt))})}}));var Co,Tr,Or=Yn.current,Xr=Or.getEnvironmentProps,ko=Or.getRootProps,ea=Or.refresh;(function(le){var Ie=le.getEnvironmentProps,Ve=le.panelElement,Ct=le.formElement,At=le.inputElement;b.useEffect(function(){if(Ve&&Ct&&At){var ln=Ie({panelElement:Ve,formElement:Ct,inputElement:At}),yn=ln.onTouchStart,Dn=ln.onTouchMove;return window.addEventListener("touchstart",yn),window.addEventListener("touchmove",Dn),function(){window.removeEventListener("touchstart",yn),window.removeEventListener("touchmove",Dn)}}},[Ie,Ve,Ct,At])})({getEnvironmentProps:Xr,panelElement:Mt.current,formElement:Gn.current,inputElement:Gt.current}),Co={container:Xt.current},Tr=Co.container,b.useEffect(function(){if(Tr){var le=Tr.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), input:not([disabled])"),Ie=le[0],Ve=le[le.length-1];return Tr.addEventListener("keydown",Ct),function(){Tr.removeEventListener("keydown",Ct)}}function Ct(At){At.key==="Tab"&&(At.shiftKey?document.activeElement===Ie&&(At.preventDefault(),Ve.focus()):document.activeElement===Ve&&(At.preventDefault(),Ie.focus()))}},[Tr]),Jl({theme:l}),b.useEffect(function(){return document.body.classList.add("DocSearch--active"),function(){var le,Ie;document.body.classList.remove("DocSearch--active"),(le=(Ie=window).scrollTo)===null||le===void 0||le.call(Ie,0,S)}},[]),b.useEffect(function(){typeof window!="undefined"&&window.localStorage&&(function(){if(typeof window=="undefined"||!window.localStorage)return 0;var le=0;for(var Ie in window.localStorage)window.localStorage.hasOwnProperty(Ie)&&(le+=window.localStorage[Ie].length+Ie.length);return le})()>4194304&&ad()},[]),b.useLayoutEffect(function(){var le=window.innerWidth-document.body.clientWidth;return document.body.style.marginInlineEnd="".concat(le,"px"),function(){document.body.style.marginInlineEnd="0px"}},[]),b.useEffect(function(){window.matchMedia("(max-width: 768px)").matches&&(Jt.current=5)},[]),b.useEffect(function(){var le;Mt.current&&!re&&(typeof(le=Mt.current).scrollTo=="function"?le.scrollTo({top:0,behavior:"smooth"}):le.scrollTop=0)},[Ge.query,re]),b.useEffect(function(){ke.length>0&&(ea(),Gt.current&&Gt.current.focus())},[ke,ea]),b.useEffect(function(){function le(){if(un.current){var Ie=.01*window.innerHeight;un.current.style.setProperty("--docsearch-vh","".concat(Ie,"px"))}}return le(),window.addEventListener("resize",le),function(){window.removeEventListener("resize",le)}},[]),b.useEffect(function(){re||(Or.refresh(),wr([]))},[re,Or,wr]),b.useEffect(function(){$t("initial")},[re,$t]);var oi=(function(){var le=Xe(Ae().m(function Ie(){return Ae().w(function(Ve){for(;;)switch(Ve.n){case 0:return ui(!0),Ve.n=1,_o();case 1:return Ve.a(2)}},Ie)}));return function(){return le.apply(this,arguments)}})(),Fu=function(){wr([]),$t("new-conversation")},si=!0,wo=Ge.collections.some(function(le){return le.items.length>0});return Ge.status!=="idle"||wo!==!1||Ge.query.length!==0||re||(si=!1),b.createElement("div",Tt({ref:Xt},ko({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container",Ge.status==="stalled"&&"DocSearch-Container--Stalled",Ge.status==="error"&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(le){le.target===le.currentTarget&&m()}}),b.createElement("div",{className:"DocSearch-Modal",ref:un},b.createElement("header",{className:"DocSearch-SearchBar",ref:Gn},b.createElement(x0,Tt({},Or,{state:Ge,placeholder:mn||"Search docs",autoFocus:ke.length===0,inputRef:Gt,isFromSelection:!!ke&&ke===en,translations:Te,isAskAiActive:re,askAiStatus:Zt,askAiError:Au,askAiState:Fn,setAskAiState:$t,isThreadDepthError:ai&&Fn!=="new-conversation",onClose:m,onAskAiToggle:Q,onAskAgain:function(le){Yr(!0,le)},onStopAskAiStreaming:oi,onNewConversation:Fu,onViewConversationHistory:function(){$t("conversation-history")}}))),si&&b.createElement("div",{className:"DocSearch-Dropdown",ref:Mt},b.createElement(_0,Tt({},Or,{indexName:xn,state:Ge,hitComponent:D,resultsFooterComponent:O,disableUserPersonalization:d,recentSearches:kr,favoriteSearches:Qn,conversations:fr,inputRef:Gt,translations:He,getMissingResultsUrl:G,isAskAiActive:re,canHandleAskAi:Dt,messages:tn,askAiError:Au,status:Zt,hasCollections:wo,askAiState:Fn,selectAskAiQuestion:Yr,suggestedQuestions:Jn,selectSuggestedQuestion:function(le){Yr(!0,le.question,le)},agentStudio:Nn,onAskAiToggle:Q,onNewConversation:Fu,onItemClick:function(le,Ie){if(le.type==="askAI"&&le.query){if(le.anchor==="stored"&&"messages"in le){wr(le.messages);var Ve={query:le.query,messageId:le.messages[0].id};if($!=null&&$(Ve))return Yn.current&&Yn.current.setQuery(""),void Ie.preventDefault();Q(!0,Ve)}else Yr(!0,le.query);return $t("initial"),void Ie.preventDefault()}kc(le),ii(le),_i(Ie)||m()},onFeedback:wc}))),b.createElement("footer",{className:"DocSearch-Footer"},b.createElement(dm,{translations:ge,isAskAiActive:re}))))}var cA=b.forwardRef(function(e,t){return b.createElement(Hl,Tt({},e,{ref:t}),b.createElement(lA,e))});function lA(e){var t,n,r,u=(function(){var y=b.useContext(us);if(y===void 0)throw new Error("`useDocSearch` must be used within the `DocSearch` provider");return y})(),a=u.searchButtonRef,i=u.keyboardShortcuts,o=u.isModalActive,c=u.isAskAiActive,l=u.initialQuery,p=u.onAskAiToggle,m=u.openModal,v=u.closeModal;return b.createElement(b.Fragment,null,b.createElement(wv,{keyboardShortcuts:i,ref:a,translations:(t=e.translations)===null||t===void 0?void 0:t.button,onClick:m}),o&&Il(b.createElement(sA,Tt({},e,{initialScrollY:window.scrollY,initialQuery:l,translations:e==null||(n=e.translations)===null||n===void 0?void 0:n.modal,isAskAiActive:c,onAskAiToggle:p,onClose:v})),(r=e.portalContainer)!==null&&r!==void 0?r:document.body))}var yh=function(e,t,n,r){var u;t[0]=0;for(var a=1;a<t.length;a++){var i=t[a++],o=t[a]?(t[0]|=i?1:2,n[t[a++]]):t[++a];i===3?r[0]=o:i===4?r[1]=Object.assign(r[1]||{},o):i===5?(r[1]=r[1]||{})[t[++a]]=o:i===6?r[1][t[++a]]+=o+"":i?(u=e.apply(o,yh(e,o,n,["",null])),r.push(u),o[0]?t[0]|=2:(t[a-2]=0,t[a]=u)):r.push(o)}return r},Dh=new Map,fA=["container","environment","transformSearchClient","hitComponent","resultsFooterComponent"],dA=function(e){var t=Dh.get(this);return t||(t=new Map,Dh.set(this,t)),(t=yh(this,t.get(e)||(t.set(e,t=(function(n){for(var r,u,a=1,i="",o="",c=[0],l=function(v){a===1&&(v||(i=i.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?c.push(0,v,i):a===3&&(v||i)?(c.push(3,v,i),a=2):a===2&&i==="..."&&v?c.push(4,v,0):a===2&&i&&!v?c.push(5,0,!0,i):a>=5&&((i||!v&&a===5)&&(c.push(a,0,i,u),a=6),v&&(c.push(a,v,0,u),a=6)),i=""},p=0;p<n.length;p++){p&&(a===1&&l(),l(p));for(var m=0;m<n[p].length;m++)r=n[p][m],a===1?r==="<"?(l(),c=[c],a=3):i+=r:a===4?i==="--"&&r===">"?(a=1,i=""):i=r+i[0]:o?r===o?o="":i+=r:r==='"'||r==="'"?o=r:r===">"?(l(),a=1):a&&(r==="="?(a=5,u=i,i=""):r==="/"&&(a<5||n[p][m+1]===">")?(l(),a===3&&(c=c[0]),a=c,(c=c[0]).push(2,0,a),a=0):r===" "||r===" "||r===`
|
|
119
|
+
`||r==="\r"?(l(),a=2):i+=r),a===3&&i==="!--"&&(a=4,c=c[0])}return l(),c})(e)),t),arguments,[])).length>1?t:t[0]}.bind(kn);function bh(e){if(e)return function(t){var n=e(t,{html:dA});return va(n)?n:typeof n=="function"?n(t):typeof n=="string"?kn("span",null,n):n}}function pA(e){var t=e.container,n=e.environment,r=e.transformSearchClient,u=e.hitComponent,a=e.resultsFooterComponent,i=Nr(e,fA),o=(function(m,v){if(typeof m!="string")return m;if(!v)throw new Error("Cannot resolve a selector without a browser environment.");var y=v.document.querySelector(m);if(!y)throw new Error('Container selector did not match any element: "'.concat(m,'"'));return y})(t,n||(typeof window!="undefined"?window:void 0)),c={current:null},l=!1,p=pe(pe({},i),{},{ref:c,hitComponent:bh(u),resultsFooterComponent:bh(a),transformSearchClient:function(m){return m!=null&&m.addAlgoliaAgent&&m.addAlgoliaAgent("docsearch.js",Cc),typeof r=="function"?r(m):m}});return Pl(kn(cA,p),o),l=!0,{open:function(){var m;(m=c.current)===null||m===void 0||m.open()},close:function(){var m;(m=c.current)===null||m===void 0||m.close()},openAskAi:function(m){var v;(v=c.current)===null||v===void 0||v.openAskAi(m)},get isReady(){return l},get isOpen(){var m,v;return(m=(v=c.current)===null||v===void 0?void 0:v.isOpen)!==null&&m!==void 0&&m},destroy:function(){Ll(o),l=!1}}}pA({appId:"S4T2OSB07R",apiKey:"ea6ae2e0546ad6007f7f464a296b67de",indexName:"chocolatey",container:"#docsearchResults"}),(()=>{let e=document.querySelectorAll('.task-list-item [type="checkbox"]');e&&e.forEach(t=>{t.classList.add("form-check-input"),t.outerHTML=`<div class="form-check">${t.outerHTML}<label class="form-check-label"></label></div>`})})();var hA=mi(Mh());window.addEventListener("DOMContentLoaded",()=>{if(document.querySelector(".anchorjs-container")){for(let t of document.querySelectorAll("li")){let n=t.firstChild,r=t.classList.contains("task-list-item"),u;switch(r?u=n.nextElementSibling:u=n,u.nodeName){case"STRONG":case"CODE":u.classList.add("d-anchor");break;default:break}}let e=new hA.default;e.options.placement="left",e.add(".anchorjs-container h2:not(.d-anchor-none), .anchorjs-container h3:not(.d-anchor-none), .anchorjs-container h4:not(.d-anchor-none), .anchorjs-container h5:not(.d-anchor-none), .anchorjs-container h6:not(.d-anchor-none), .anchorjs-container li .d-anchor")}});var or=mi($h());(0,or.default)(".nav-scrollspy .nav-link").each((e,t)=>{let n=(0,or.default)(t).attr("href"),r=u=>{if(u==="#"){(0,or.default)(t).parent().remove();return}~u.indexOf(".")&&(u=u.replace(/\./g,"\\.")),(0,or.default)(u).length&&((0,or.default)(window).scrollTop()>(0,or.default)(u).offset().top-30&&(0,or.default)(u).is(":visible")?((0,or.default)(`a[href="${u}"].nav-link`).addClass("active active-page"),(0,or.default)(`a[href="${u}"].nav-link`).parent().prev().find("a.active").removeClass("active active-page")):(0,or.default)(`a[href="${u}"].nav-link`).removeClass("active active-page"))};r(n),window.addEventListener("scroll",()=>{r(n)})}),window.addEventListener("DOMContentLoaded",()=>{let e="data-choco-tab-multi",t=document.querySelectorAll(`[${e}]`),n=new Set;if(t&&t.length>0){for(let r of t){let u=r.getAttribute(e).replace(/\s/g,""),a=null;if(u){try{a=JSON.parse(u!=null?u:"")}catch(i){return}for(let i in a)Object.prototype.hasOwnProperty.call(a,i)&&n.add(i);r.addEventListener("click",()=>{let i=r.getAttribute(e).replace(/\s/g,"");for(let c of t){let l=c.getAttribute(e).replace(/\s/g,"");l!=null&&l.includes(i!=null?i:"")&&window.bootstrap.Tab.getOrCreateInstance(c).show()}let o=~location.hostname.indexOf("chocolatey.org")?"domain=chocolatey.org;":"";for(let c in a)if(Object.prototype.hasOwnProperty.call(a,c)){let l=a[c];document.cookie=`${c}=${l}; ${gi()}path=/; ${o}`}})}}for(let r of n){let u=Po(r);if(u)for(let a of t){let i=a.getAttribute(e).replace(/\s/g,"");i!=null&&i.includes(r)&&(i!=null&&i.includes(u))&&window.bootstrap.Tab.getOrCreateInstance(a).show()}}}}),(()=>{let e=document.querySelectorAll("table");e&&e.forEach(t=>{t.classList.add("table","table-bordered","table-striped"),t.outerHTML=`<div class="table-responsive">${t.outerHTML}</div>`})})(),document.querySelectorAll(".dropdown-theme").forEach(t=>{t.querySelectorAll(".dropdown-toggle").forEach(n=>{n.addEventListener("hide.bs.dropdown",()=>{document.querySelectorAll("main").forEach(r=>{r.classList.remove("z-0")})}),n.addEventListener("show.bs.dropdown",()=>{document.querySelectorAll("main").forEach(r=>{r.classList.add("z-0")})})})});var vA=()=>{document.querySelectorAll(".copy-command").forEach(e=>{let t=e.querySelector("code").getAttribute("class").split(" "),n=e.querySelector("button");n&&(n.classList.add("btn-copy"),n.setAttribute("data-clipboard-target",`.${t[0]}`))})},mA=e=>e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"),Ah=(e,t,n,r)=>{let u;if(n==="never")u=gi();else if(n==="expired")u="expires=Thu, 01 Jan 1970 00:00:00 UTC";else{let i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3),u=`expires=${i.toUTCString()}`}let a=r||"";document.cookie=`${e}=${encodeURIComponent(t)};${u};path=/;${a};`};document.addEventListener("DOMContentLoaded",()=>{let e=document.querySelectorAll(".dynamic-code-block-container"),t=document.querySelectorAll(".dynamic-code-block-input"),n=document.querySelectorAll(".dynamic-code-block-validation"),r=(a,i,o,c)=>{let l=document.querySelectorAll(`.${i}`),p=c||a.value;if(a.value||c)for(let m of l)m.textContent=p,Ah(i,p,"never"),c&&c!==o&&(a.value=c);else for(let m of l)m.textContent=o,Ah(i,o,"never")},u=()=>{n.forEach(a=>{let i=a.getAttribute("data-input-names").split(","),o=!0;for(let c of i){let l=document.querySelector(`.dynamic-code-block-input[name="${c}"]`);l.value?l.classList.remove("is-invalid"):(o=!1,l.classList.add("is-invalid"))}o?(a.classList.remove("show"),setTimeout(()=>{a.classList.add("d-none")},150)):(a.classList.remove("d-none"),a.classList.add("show"))})};t.forEach(a=>{let i=a.name,o=a.getAttribute("data-default-value"),c=Po(i),l=new RegExp(`\\b${i}\\b`,"g");for(let p of e){let v=mA(c||o);p.innerHTML=p.innerHTML.replaceAll(l,`<span class="${i}">${v}</span>`)}r(a,i,o,c),u(),a.addEventListener("keyup",()=>{r(a,i,o),u()})}),vA()})})();})();
|
|
120
120
|
/**
|
|
121
121
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
122
122
|
*
|
|
@@ -148,6 +148,6 @@ jquery/dist/jquery.js:
|
|
|
148
148
|
*)
|
|
149
149
|
|
|
150
150
|
@docsearch/js/dist/esm/index.js:
|
|
151
|
-
(*! @docsearch/js 4.4
|
|
151
|
+
(*! @docsearch/js 4.5.4 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com *)
|
|
152
152
|
(*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)
|
|
153
153
|
*/
|