gentiq 0.7.16 → 0.7.18

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.
Files changed (69) hide show
  1. package/dist/{_basePickBy-Ba1O1aN_.js → _basePickBy-Bwy02uOI.js} +2 -2
  2. package/dist/{_baseUniq-ZYcTy3dt.js → _baseUniq-ByX5iP2R.js} +1 -1
  3. package/dist/{arc-D74-mypI.js → arc-C92OOCYb.js} +1 -1
  4. package/dist/architecture-PBZL5I3N-CPpQxL9E.js +6 -0
  5. package/dist/{architectureDiagram-2XIMDMQ5-ErRAP-I9.js → architectureDiagram-2XIMDMQ5-jcquC5Fs.js} +4 -4
  6. package/dist/{blockDiagram-WCTKOSBZ-BVrQ22ho.js → blockDiagram-WCTKOSBZ-p2Y6YLy_.js} +5 -5
  7. package/dist/{c4Diagram-IC4MRINW-siS8JjKk.js → c4Diagram-IC4MRINW-CT-bgSCq.js} +2 -2
  8. package/dist/{channel-CIXFkKpD.js → channel-CzU12X97.js} +1 -1
  9. package/dist/{chunk-4BX2VUAB-BH32r-Iv.js → chunk-4BX2VUAB-BM4uwQd-.js} +1 -1
  10. package/dist/{chunk-55IACEB6-DZ7RlWLE.js → chunk-55IACEB6-FpgJQlU4.js} +1 -1
  11. package/dist/{chunk-FMBD7UC4-AHUFFGm4.js → chunk-FMBD7UC4-SPMw3w3s.js} +1 -1
  12. package/dist/{chunk-JSJVCQXG-D2xt9HjJ.js → chunk-JSJVCQXG-WG0da_qE.js} +1 -1
  13. package/dist/{chunk-KX2RTZJC-BdIqhDiq.js → chunk-KX2RTZJC-DHHf_6as.js} +1 -1
  14. package/dist/{chunk-NQ4KR5QH-DX6jdkUz.js → chunk-NQ4KR5QH-D1-lYlKL.js} +3 -3
  15. package/dist/{chunk-QZHKN3VN-XW7uA2lJ.js → chunk-QZHKN3VN-COGgoAxy.js} +1 -1
  16. package/dist/{chunk-WL4C6EOR-CWjemoKM.js → chunk-WL4C6EOR-C-YuQk_i.js} +5 -5
  17. package/dist/{classDiagram-VBA2DB6C-BW6wO8k8.js → classDiagram-VBA2DB6C-BeuYhO48.js} +2 -2
  18. package/dist/{classDiagram-v2-RAHNMMFH-BW6wO8k8.js → classDiagram-v2-RAHNMMFH-BeuYhO48.js} +2 -2
  19. package/dist/{clone-DHfmKz_W.js → clone-Bu-BRsjr.js} +1 -1
  20. package/dist/{code-block-IT6T5CEO-BBq6W6Yg.js → code-block-IT6T5CEO-PGTyqyHi.js} +1 -1
  21. package/dist/{cose-bilkent-S5V4N54A-Zm2LSJE6.js → cose-bilkent-S5V4N54A-Bt573Ag7.js} +2 -2
  22. package/dist/{dagre-KLK3FWXG-6olvWyKp.js → dagre-KLK3FWXG-BP6i_Yu1.js} +6 -6
  23. package/dist/{diagram-E7M64L7V-D4MVpA72.js → diagram-E7M64L7V-BBlEQXbQ.js} +4 -4
  24. package/dist/{diagram-IFDJBPK2-DvPWZ6ls.js → diagram-IFDJBPK2-DP2kzw2s.js} +3 -3
  25. package/dist/{diagram-P4PSJMXO-ClscR4M_.js → diagram-P4PSJMXO-mwS5eNXf.js} +3 -3
  26. package/dist/{erDiagram-INFDFZHY-DWJnjIgk.js → erDiagram-INFDFZHY-CK3ciwdD.js} +4 -4
  27. package/dist/{flowDiagram-PKNHOUZH-2tTeNuGj.js → flowDiagram-PKNHOUZH-BQtNZ3SW.js} +6 -6
  28. package/dist/{ganttDiagram-A5KZAMGK-DDf63lb2.js → ganttDiagram-A5KZAMGK-DDW4Z8wq.js} +3 -3
  29. package/dist/gentiq.es.js +1 -1
  30. package/dist/gentiq.umd.js +2 -2
  31. package/dist/gitGraph-HDMCJU4V-kibTplAn.js +6 -0
  32. package/dist/{gitGraphDiagram-K3NZZRJ6-C-LGJqof.js → gitGraphDiagram-K3NZZRJ6-CxiD1jNH.js} +4 -4
  33. package/dist/{graph-BCpTmeIJ.js → graph-DMAt1jL8.js} +2 -2
  34. package/dist/{index--xKK3SRf.js → index-CoaFrRYX.js} +5 -4
  35. package/dist/info-3K5VOQVL-C7QeV3XN.js +6 -0
  36. package/dist/{infoDiagram-LFFYTUFH-ChRneZC0.js → infoDiagram-LFFYTUFH-D8m44ew9.js} +2 -2
  37. package/dist/{ishikawaDiagram-PHBUUO56--ZThjr91.js → ishikawaDiagram-PHBUUO56-CeNWq9Kb.js} +1 -1
  38. package/dist/{journeyDiagram-4ABVD52K-CN0zdsbZ.js → journeyDiagram-4ABVD52K-OV7h8QH_.js} +4 -4
  39. package/dist/{kanban-definition-K7BYSVSG-B1Yuvonm.js → kanban-definition-K7BYSVSG-CUxJFNiY.js} +2 -2
  40. package/dist/{layout-DKQ9MV5v.js → layout-CtSxjJnL.js} +4 -4
  41. package/dist/{linear-Bkre9GR5.js → linear-BWkgvSxS.js} +1 -1
  42. package/dist/mermaid-VLURNSYL-Cr-1e-_D.js +4 -0
  43. package/dist/{mermaid-parser.core-CN7lMmk6.js → mermaid-parser.core-DKzfh8WS.js} +12 -12
  44. package/dist/{mermaid.core-BaMDe5Gy.js → mermaid.core-DKXzcvsN.js} +33 -33
  45. package/dist/{mindmap-definition-YRQLILUH-B1NM94hN.js → mindmap-definition-YRQLILUH-Cmxg3Ddt.js} +3 -3
  46. package/dist/packet-RMMSAZCW-BGE25BGV.js +6 -0
  47. package/dist/pie-UPGHQEXC-CkPtIXt7.js +6 -0
  48. package/dist/{pieDiagram-SKSYHLDU-D885CmJ1.js → pieDiagram-SKSYHLDU-BECspdot.js} +4 -4
  49. package/dist/{quadrantDiagram-337W2JSQ-DO7XaYwK.js → quadrantDiagram-337W2JSQ-yOe96QAv.js} +2 -2
  50. package/dist/radar-KQ55EAFF-Dh7FZr1l.js +6 -0
  51. package/dist/{requirementDiagram-Z7DCOOCP-CptXM6XW.js → requirementDiagram-Z7DCOOCP-BndtIzBH.js} +3 -3
  52. package/dist/{sankeyDiagram-WA2Y5GQK-DRFW-gJQ.js → sankeyDiagram-WA2Y5GQK-vDTTrNzz.js} +1 -1
  53. package/dist/{sequenceDiagram-2WXFIKYE-HgCVP3JX.js → sequenceDiagram-2WXFIKYE-B_vQSD3O.js} +3 -3
  54. package/dist/src/types.d.ts +2 -0
  55. package/dist/{stateDiagram-RAJIS63D-I4IFVvdi.js → stateDiagram-RAJIS63D-SQ79ZZuk.js} +4 -4
  56. package/dist/{stateDiagram-v2-FVOUBMTO-CyaWLi4g.js → stateDiagram-v2-FVOUBMTO-D6u_dVBV.js} +2 -2
  57. package/dist/{timeline-definition-YZTLITO2-tr3arSpv.js → timeline-definition-YZTLITO2-KPkfL0FA.js} +2 -2
  58. package/dist/treemap-KZPCXAKY-D32H0fCu.js +6 -0
  59. package/dist/{vennDiagram-LZ73GAT5-DqOCLwGH.js → vennDiagram-LZ73GAT5-Czz1Fvfa.js} +1 -1
  60. package/dist/{xychartDiagram-JWTSCODW-nhint4RF.js → xychartDiagram-JWTSCODW-BN8stGX-.js} +2 -2
  61. package/package.json +1 -1
  62. package/dist/architecture-PBZL5I3N-CNwE8_yP.js +0 -6
  63. package/dist/gitGraph-HDMCJU4V-qXgSiL_C.js +0 -6
  64. package/dist/info-3K5VOQVL-Cy4FFQjD.js +0 -6
  65. package/dist/mermaid-VLURNSYL-AHX42Ywn.js +0 -4
  66. package/dist/packet-RMMSAZCW-BMyTnFiH.js +0 -6
  67. package/dist/pie-UPGHQEXC-BnFXP4cv.js +0 -6
  68. package/dist/radar-KQ55EAFF-BnlQk6iy.js +0 -6
  69. package/dist/treemap-KZPCXAKY-vGM-Dfnr.js +0 -6
@@ -424,7 +424,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
424
424
  `)};if(D===0){var B=d.slice(m+1,A).concat(ux({children:[R],className:E.properties.className})),T=f(B,N);p.push(T)}else if(D===S.length-1){var F=d[A+1]&&d[A+1].children&&d[A+1].children[0],L={type:"text",value:"".concat(I)};if(F){var M=ux({children:[L],className:E.properties.className});d.splice(A+1,0,M)}else{var P=[L],O=f(P,N,E.properties.className);p.push(O)}}else{var $=[R],q=f($,N,E.properties.className);p.push(q)}}),m=A}A++};A<d.length;)b();if(m!==d.length-1){var y=d.slice(m+1,d.length);if(y&&y.length){var w=a&&p.length+i,k=f(y,w);p.push(k)}}return t?p:(u=[]).concat.apply(u,p)}function $Ve(e){var t=e.rows,n=e.stylesheet,a=e.useInlineStyles;return t.map(function(r,i){return hae({node:r,stylesheet:n,useInlineStyles:a,key:"code-segment-".concat(i)})})}function kae(e){return e&&typeof e.highlightAuto<"u"}function jVe(e){var t=e.astGenerator,n=e.language,a=e.code,r=e.defaultCodeValue;if(kae(t)){var i=TVe(t,n);return n==="text"?{value:r,language:"text"}:i?t.highlight(n,a):t.highlightAuto(a)}try{return n&&n!=="text"?{value:t.highlight(a,n)}:{value:r}}catch{return{value:r}}}function qVe(e,t){return function(a){var r,i,o=a.language,s=a.children,l=a.style,u=l===void 0?t:l,d=a.customStyle,p=d===void 0?{}:d,m=a.codeTagProps,A=m===void 0?{className:o?"language-".concat(o):void 0,style:dp(dp({},u['code[class*="language-"]']),u['code[class*="language-'.concat(o,'"]')])}:m,g=a.useInlineStyles,h=g===void 0?!0:g,f=a.showLineNumbers,b=f===void 0?!1:f,y=a.showInlineLineNumbers,w=y===void 0?!0:y,k=a.startingLineNumber,_=k===void 0?1:k,E=a.lineNumberContainerStyle,v=a.lineNumberStyle,x=v===void 0?{}:v,S=a.wrapLines,I=a.wrapLongLines,D=I===void 0?!1:I,N=a.lineProps,R=N===void 0?{}:N,B=a.renderer,T=a.PreTag,F=T===void 0?"pre":T,L=a.CodeTag,M=L===void 0?"code":L,P=a.code,O=P===void 0?(Array.isArray(s)?s[0]:s)||"":P,$=a.astGenerator,q=kVe(a,NVe);$=$||e;var j=b?te.createElement(MVe,{containerStyle:E,codeStyle:A.style||{},numberStyle:x,startingLineNumber:_,codeString:O}):null,K=u.hljs||u['pre[class*="language-"]']||{backgroundColor:"#fff"},U=kae($)?"hljs":"prismjs",W=h?Object.assign({},q,{style:Object.assign({},K,p)}):Object.assign({},q,{className:q.className?"".concat(U," ").concat(q.className):U,style:Object.assign({},p)});if(D?A.style=dp({whiteSpace:"pre-wrap"},A.style):A.style=dp({whiteSpace:"pre"},A.style),!$)return te.createElement(F,W,j,te.createElement(M,A,O));(S===void 0&&B||D)&&(S=!0),B=B||$Ve;var Y=[{type:"text",value:O}],ae=jVe({astGenerator:$,language:o,code:O,defaultCodeValue:Y});ae.language===null&&(ae.value=Y);var V=(r=(i=O.match(/\n/g))===null||i===void 0?void 0:i.length)!==null&&r!==void 0?r:0,X=_+V,ee=PVe(ae,S,R,b,w,_,X,x,D);return te.createElement(F,W,te.createElement(M,A,!w&&j,B({rows:ee,stylesheet:u,useInlineStyles:h})))}}const GVe=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var uN,vae;function zVe(){if(vae)return uN;vae=1,uN=t;var e=Object.prototype.hasOwnProperty;function t(){for(var n={},a=0;a<arguments.length;a++){var r=arguments[a];for(var i in r)e.call(r,i)&&(n[i]=r[i])}return n}return uN}var dN,_ae;function Cae(){if(_ae)return dN;_ae=1,dN=t;var e=t.prototype;e.space=null,e.normal={},e.property={};function t(n,a,r){this.property=n,this.normal=a,r&&(this.space=r)}return dN}var pN,Eae;function UVe(){if(Eae)return pN;Eae=1;var e=zVe(),t=Cae();pN=n;function n(a){for(var r=a.length,i=[],o=[],s=-1,l,u;++s<r;)l=a[s],i.push(l.property),o.push(l.normal),u=l.space;return new t(e.apply(null,i),e.apply(null,o),u)}return pN}var mN,xae;function AN(){if(xae)return mN;xae=1,mN=e;function e(t){return t.toLowerCase()}return mN}var gN,Bae;function Iae(){if(Bae)return gN;Bae=1,gN=t;var e=t.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function t(n,a){this.property=n,this.attribute=a}return gN}var Fu={},Sae;function hN(){if(Sae)return Fu;Sae=1;var e=0;Fu.boolean=t(),Fu.booleanish=t(),Fu.overloadedBoolean=t(),Fu.number=t(),Fu.spaceSeparated=t(),Fu.commaSeparated=t(),Fu.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++e)}return Fu}var fN,Dae;function Qae(){if(Dae)return fN;Dae=1;var e=Iae(),t=hN();fN=r,r.prototype=new e,r.prototype.defined=!0;var n=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=n.length;function r(o,s,l,u){var d=-1,p;for(i(this,"space",u),e.call(this,o,s);++d<a;)p=n[d],i(this,p,(l&t[p])===t[p])}function i(o,s,l){l&&(o[s]=l)}return fN}var bN,Tae;function Gw(){if(Tae)return bN;Tae=1;var e=AN(),t=Cae(),n=Qae();bN=a;function a(r){var i=r.space,o=r.mustUseProperty||[],s=r.attributes||{},l=r.properties,u=r.transform,d={},p={},m,A;for(m in l)A=new n(m,u(s,m),l[m],i),o.indexOf(m)!==-1&&(A.mustUseProperty=!0),d[m]=A,p[e(m)]=m,p[e(A.attribute)]=m;return new t(d,p,i)}return bN}var yN,Nae;function HVe(){if(Nae)return yN;Nae=1;var e=Gw();yN=e({space:"xlink",transform:t,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t(n,a){return"xlink:"+a.slice(5).toLowerCase()}return yN}var wN,Fae;function YVe(){if(Fae)return wN;Fae=1;var e=Gw();wN=e({space:"xml",transform:t,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t(n,a){return"xml:"+a.slice(3).toLowerCase()}return wN}var kN,Lae;function WVe(){if(Lae)return kN;Lae=1,kN=e;function e(t,n){return n in t?t[n]:n}return kN}var vN,Rae;function Mae(){if(Rae)return vN;Rae=1;var e=WVe();vN=t;function t(n,a){return e(n,a.toLowerCase())}return vN}var _N,Oae;function KVe(){if(Oae)return _N;Oae=1;var e=Gw(),t=Mae();return _N=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t,properties:{xmlns:null,xmlnsXLink:null}}),_N}var CN,Pae;function ZVe(){if(Pae)return CN;Pae=1;var e=hN(),t=Gw(),n=e.booleanish,a=e.number,r=e.spaceSeparated;CN=t({transform:i,properties:{ariaActiveDescendant:null,ariaAtomic:n,ariaAutoComplete:null,ariaBusy:n,ariaChecked:n,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:r,ariaCurrent:null,ariaDescribedBy:r,ariaDetails:null,ariaDisabled:n,ariaDropEffect:r,ariaErrorMessage:null,ariaExpanded:n,ariaFlowTo:r,ariaGrabbed:n,ariaHasPopup:null,ariaHidden:n,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:r,ariaLevel:a,ariaLive:null,ariaModal:n,ariaMultiLine:n,ariaMultiSelectable:n,ariaOrientation:null,ariaOwns:r,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:n,ariaReadOnly:n,ariaRelevant:null,ariaRequired:n,ariaRoleDescription:r,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:n,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}});function i(o,s){return s==="role"?s:"aria-"+s.slice(4).toLowerCase()}return CN}var EN,$ae;function VVe(){if($ae)return EN;$ae=1;var e=hN(),t=Gw(),n=Mae(),a=e.boolean,r=e.overloadedBoolean,i=e.booleanish,o=e.number,s=e.spaceSeparated,l=e.commaSeparated;return EN=t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:n,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l,acceptCharset:s,accessKey:s,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:s,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:s,cols:o,colSpan:null,content:null,contentEditable:i,controls:a,controlsList:s,coords:o|l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:r,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:s,height:o,hidden:a,high:o,href:null,hrefLang:null,htmlFor:s,httpEquiv:s,id:null,imageSizes:null,imageSrcSet:l,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:s,itemRef:s,itemScope:a,itemType:s,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:o,manifest:null,max:null,maxLength:o,media:null,method:null,min:null,minLength:o,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:o,pattern:null,ping:s,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:s,required:a,reversed:a,rows:o,rowSpan:o,sandbox:s,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:o,sizes:null,slot:null,span:o,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:l,start:o,step:null,style:null,tabIndex:o,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:i,width:o,wrap:null,align:null,aLink:null,archive:s,axis:null,background:null,bgColor:null,border:o,borderColor:null,bottomMargin:o,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:o,leftMargin:o,link:null,longDesc:null,lowSrc:null,marginHeight:o,marginWidth:o,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:o,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:o,valueType:null,version:null,vAlign:null,vLink:null,vSpace:o,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:o,security:null,unselectable:null}}),EN}var xN,jae;function JVe(){if(jae)return xN;jae=1;var e=UVe(),t=HVe(),n=YVe(),a=KVe(),r=ZVe(),i=VVe();return xN=e([n,t,a,r,i]),xN}var BN,qae;function XVe(){if(qae)return BN;qae=1;var e=AN(),t=Qae(),n=Iae(),a="data";BN=s;var r=/^data[-\w.:]+$/i,i=/-[a-z]/g,o=/[A-Z]/g;function s(m,A){var g=e(A),h=A,f=n;return g in m.normal?m.property[m.normal[g]]:(g.length>4&&g.slice(0,4)===a&&r.test(A)&&(A.charAt(4)==="-"?h=l(A):A=u(A),f=t),new f(h,A))}function l(m){var A=m.slice(5).replace(i,p);return a+A.charAt(0).toUpperCase()+A.slice(1)}function u(m){var A=m.slice(4);return i.test(A)?m:(A=A.replace(o,d),A.charAt(0)!=="-"&&(A="-"+A),a+A)}function d(m){return"-"+m.toLowerCase()}function p(m){return m.charAt(1).toUpperCase()}return BN}var IN,Gae;function eJe(){if(Gae)return IN;Gae=1,IN=t;var e=/[#.]/g;function t(n,a){for(var r=n||"",i=a||"div",o={},s=0,l,u,d;s<r.length;)e.lastIndex=s,d=e.exec(r),l=r.slice(s,d?d.index:r.length),l&&(u?u==="#"?o.id=l:o.className?o.className.push(l):o.className=[l]:i=l,s+=l.length),d&&(u=d[0],s++);return{type:"element",tagName:i,properties:o,children:[]}}return IN}var dx={},zae;function tJe(){if(zae)return dx;zae=1,dx.parse=a,dx.stringify=r;var e="",t=" ",n=/[ \t\n\r\f]+/g;function a(i){var o=String(i||e).trim();return o===e?[]:o.split(n)}function r(i){return i.join(t).trim()}return dx}var px={},Uae;function nJe(){if(Uae)return px;Uae=1,px.parse=a,px.stringify=r;var e=",",t=" ",n="";function a(i){for(var o=[],s=String(i||n),l=s.indexOf(e),u=0,d=!1,p;!d;)l===-1&&(l=s.length,d=!0),p=s.slice(u,l).trim(),(p||!d)&&o.push(p),u=l+1,l=s.indexOf(e,u);return o}function r(i,o){var s=o||{},l=s.padLeft===!1?n:t,u=s.padRight?t:n;return i[i.length-1]===n&&(i=i.concat(n)),i.join(u+e+l).trim()}return px}var SN,Hae;function aJe(){if(Hae)return SN;Hae=1;var e=XVe(),t=AN(),n=eJe(),a=tJe().parse,r=nJe().parse;SN=o;var i={}.hasOwnProperty;function o(g,h,f){var b=f?A(f):null;return y;function y(k,_){var E=n(k,h),v=Array.prototype.slice.call(arguments,2),x=E.tagName.toLowerCase(),S;if(E.tagName=b&&i.call(b,x)?b[x]:x,_&&s(_,E)&&(v.unshift(_),_=null),_)for(S in _)w(E.properties,S,_[S]);return u(E.children,v),E.tagName==="template"&&(E.content={type:"root",children:E.children},E.children=[]),E}function w(k,_,E){var v,x,S;E==null||E!==E||(v=e(g,_),x=v.property,S=E,typeof S=="string"&&(v.spaceSeparated?S=a(S):v.commaSeparated?S=r(S):v.commaOrSpaceSeparated&&(S=a(r(S).join(" ")))),x==="style"&&typeof E!="string"&&(S=m(S)),x==="className"&&k.className&&(S=k.className.concat(S)),k[x]=d(v,x,S))}}function s(g,h){return typeof g=="string"||"length"in g||l(h.tagName,g)}function l(g,h){var f=h.type;return g==="input"||!f||typeof f!="string"?!1:typeof h.children=="object"&&"length"in h.children?!0:(f=f.toLowerCase(),g==="button"?f!=="menu"&&f!=="submit"&&f!=="reset"&&f!=="button":"value"in h)}function u(g,h){var f,b;if(typeof h=="string"||typeof h=="number"){g.push({type:"text",value:String(h)});return}if(typeof h=="object"&&"length"in h){for(f=-1,b=h.length;++f<b;)u(g,h[f]);return}if(typeof h!="object"||!("type"in h))throw new Error("Expected node, nodes, or string, got `"+h+"`");g.push(h)}function d(g,h,f){var b,y,w;if(typeof f!="object"||!("length"in f))return p(g,h,f);for(y=f.length,b=-1,w=[];++b<y;)w[b]=p(g,h,f[b]);return w}function p(g,h,f){var b=f;return g.number||g.positiveNumber?!isNaN(b)&&b!==""&&(b=Number(b)):(g.boolean||g.overloadedBoolean)&&typeof b=="string"&&(b===""||t(f)===t(h))&&(b=!0),b}function m(g){var h=[],f;for(f in g)h.push([f,g[f]].join(": "));return h.join("; ")}function A(g){for(var h=g.length,f=-1,b={},y;++f<h;)y=g[f],b[y.toLowerCase()]=y;return b}return SN}var DN,Yae;function rJe(){if(Yae)return DN;Yae=1;var e=JVe(),t=aJe(),n=t(e,"div");return n.displayName="html",DN=n,DN}var QN,Wae;function iJe(){return Wae||(Wae=1,QN=rJe()),QN}const oJe={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},sJe={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var TN,Kae;function Zae(){if(Kae)return TN;Kae=1,TN=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=48&&n<=57}return TN}var NN,Vae;function cJe(){if(Vae)return NN;Vae=1,NN=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}return NN}var FN,Jae;function lJe(){if(Jae)return FN;Jae=1,FN=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=122||n>=65&&n<=90}return FN}var LN,Xae;function uJe(){if(Xae)return LN;Xae=1;var e=lJe(),t=Zae();LN=n;function n(a){return e(a)||t(a)}return LN}var RN,ere;function dJe(){if(ere)return RN;ere=1;var e,t=59;RN=n;function n(a){var r="&"+a+";",i;return e=e||document.createElement("i"),e.innerHTML=r,i=e.textContent,i.charCodeAt(i.length-1)===t&&a!=="semi"||i===r?!1:i}return RN}var MN,tre;function pJe(){if(tre)return MN;tre=1;var e=oJe,t=sJe,n=Zae(),a=cJe(),r=uJe(),i=dJe();MN=P;var o={}.hasOwnProperty,s=String.fromCharCode,l=Function.prototype,u={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},d=9,p=10,m=12,A=32,g=38,h=59,f=60,b=61,y=35,w=88,k=120,_=65533,E="named",v="hexadecimal",x="decimal",S={};S[v]=16,S[x]=10;var I={};I[E]=r,I[x]=n,I[v]=a;var D=1,N=2,R=3,B=4,T=5,F=6,L=7,M={};M[D]="Named character references must be terminated by a semicolon",M[N]="Numeric character references must be terminated by a semicolon",M[R]="Named character references cannot be empty",M[B]="Numeric character references cannot be empty",M[T]="Named character references must be known",M[F]="Numeric character references cannot be disallowed",M[L]="Numeric character references cannot be outside the permissible Unicode range";function P(j,K){var U={},W,Y;K||(K={});for(Y in u)W=K[Y],U[Y]=W??u[Y];return(U.position.indent||U.position.start)&&(U.indent=U.position.indent||[],U.position=U.position.start),O(j,U)}function O(j,K){var U=K.additional,W=K.nonTerminated,Y=K.text,ae=K.reference,V=K.warning,X=K.textContext,ee=K.referenceContext,J=K.warningContext,pe=K.position,ue=K.indent||[],Te=j.length,Le=0,qe=-1,Ee=pe.column||1,De=pe.line||1,Ue="",ye=[],et,Be,He,Je,he,_e,$e,de,je,ne,Ae,z,le,ce,be,we,Ie,Re,ve;for(typeof U=="string"&&(U=U.charCodeAt(0)),we=Oe(),de=V?Xe:l,Le--,Te++;++Le<Te;)if(he===p&&(Ee=ue[qe]||1),he=j.charCodeAt(Le),he===g){if($e=j.charCodeAt(Le+1),$e===d||$e===p||$e===m||$e===A||$e===g||$e===f||$e!==$e||U&&$e===U){Ue+=s(he),Ee++;continue}for(le=Le+1,z=le,ve=le,$e===y?(ve=++z,$e=j.charCodeAt(ve),$e===w||$e===k?(ce=v,ve=++z):ce=x):ce=E,et="",Ae="",Je="",be=I[ce],ve--;++ve<Te&&($e=j.charCodeAt(ve),!!be($e));)Je+=s($e),ce===E&&o.call(e,Je)&&(et=Je,Ae=e[Je]);He=j.charCodeAt(ve)===h,He&&(ve++,Be=ce===E?i(Je):!1,Be&&(et=Je,Ae=Be)),Re=1+ve-le,!He&&!W||(Je?ce===E?(He&&!Ae?de(T,1):(et!==Je&&(ve=z+et.length,Re=1+ve-z,He=!1),He||(je=et?D:R,K.attribute?($e=j.charCodeAt(ve),$e===b?(de(je,Re),Ae=null):r($e)?Ae=null:de(je,Re)):de(je,Re))),_e=Ae):(He||de(N,Re),_e=parseInt(Je,S[ce]),$(_e)?(de(L,Re),_e=s(_)):_e in t?(de(F,Re),_e=t[_e]):(ne="",q(_e)&&de(F,Re),_e>65535&&(_e-=65536,ne+=s(_e>>>10|55296),_e=56320|_e&1023),_e=ne+s(_e))):ce!==E&&de(B,Re)),_e?(Ge(),we=Oe(),Le=ve-1,Ee+=ve-le+1,ye.push(_e),Ie=Oe(),Ie.offset++,ae&&ae.call(ee,_e,{start:we,end:Ie},j.slice(le-1,ve)),we=Ie):(Je=j.slice(le-1,ve),Ue+=Je,Ee+=Je.length,Le=ve-1)}else he===10&&(De++,qe++,Ee=0),he===he?(Ue+=s(he),Ee++):Ge();return ye.join("");function Oe(){return{line:De,column:Ee,offset:Le+(pe.offset||0)}}function Xe(We,me){var Ye=Oe();Ye.column+=me,Ye.offset+=me,V.call(J,M[We],Ye,We)}function Ge(){Ue&&(ye.push(Ue),Y&&Y.call(X,Ue,{start:we,end:Oe()}),Ue="")}}function $(j){return j>=55296&&j<=57343||j>1114111}function q(j){return j>=1&&j<=8||j===11||j>=13&&j<=31||j>=127&&j<=159||j>=64976&&j<=65007||(j&65535)===65535||(j&65535)===65534}return MN}var ON={exports:{}},nre;function mJe(){return nre||(nre=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var n=(function(a){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},s={manual:a.Prism&&a.Prism.manual,disableWorkerMessageHandler:a.Prism&&a.Prism.disableWorkerMessageHandler,util:{encode:function y(w){return w instanceof l?new l(w.type,y(w.content),w.alias):Array.isArray(w)?w.map(y):w.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++i}),y.__id},clone:function y(w,k){k=k||{};var _,E;switch(s.util.type(w)){case"Object":if(E=s.util.objId(w),k[E])return k[E];_={},k[E]=_;for(var v in w)w.hasOwnProperty(v)&&(_[v]=y(w[v],k));return _;case"Array":return E=s.util.objId(w),k[E]?k[E]:(_=[],k[E]=_,w.forEach(function(x,S){_[S]=y(x,k)}),_);default:return w}},getLanguage:function(y){for(;y;){var w=r.exec(y.className);if(w)return w[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,w){y.className=y.className.replace(RegExp(r,"gi"),""),y.classList.add("language-"+w)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(_){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(y){var w=document.getElementsByTagName("script");for(var k in w)if(w[k].src==y)return w[k]}return null}},isActive:function(y,w,k){for(var _="no-"+w;y;){var E=y.classList;if(E.contains(w))return!0;if(E.contains(_))return!1;y=y.parentElement}return!!k}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(y,w){var k=s.util.clone(s.languages[y]);for(var _ in w)k[_]=w[_];return k},insertBefore:function(y,w,k,_){_=_||s.languages;var E=_[y],v={};for(var x in E)if(E.hasOwnProperty(x)){if(x==w)for(var S in k)k.hasOwnProperty(S)&&(v[S]=k[S]);k.hasOwnProperty(x)||(v[x]=E[x])}var I=_[y];return _[y]=v,s.languages.DFS(s.languages,function(D,N){N===I&&D!=y&&(this[D]=v)}),v},DFS:function y(w,k,_,E){E=E||{};var v=s.util.objId;for(var x in w)if(w.hasOwnProperty(x)){k.call(w,x,w[x],_||x);var S=w[x],I=s.util.type(S);I==="Object"&&!E[v(S)]?(E[v(S)]=!0,y(S,k,null,E)):I==="Array"&&!E[v(S)]&&(E[v(S)]=!0,y(S,k,x,E))}}},plugins:{},highlightAll:function(y,w){s.highlightAllUnder(document,y,w)},highlightAllUnder:function(y,w,k){var _={callback:k,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),s.hooks.run("before-all-elements-highlight",_);for(var E=0,v;v=_.elements[E++];)s.highlightElement(v,w===!0,_.callback)},highlightElement:function(y,w,k){var _=s.util.getLanguage(y),E=s.languages[_];s.util.setLanguage(y,_);var v=y.parentElement;v&&v.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(v,_);var x=y.textContent,S={element:y,language:_,grammar:E,code:x};function I(N){S.highlightedCode=N,s.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,s.hooks.run("after-highlight",S),s.hooks.run("complete",S),k&&k.call(S.element)}if(s.hooks.run("before-sanity-check",S),v=S.element.parentElement,v&&v.nodeName.toLowerCase()==="pre"&&!v.hasAttribute("tabindex")&&v.setAttribute("tabindex","0"),!S.code){s.hooks.run("complete",S),k&&k.call(S.element);return}if(s.hooks.run("before-highlight",S),!S.grammar){I(s.util.encode(S.code));return}if(w&&a.Worker){var D=new Worker(s.filename);D.onmessage=function(N){I(N.data)},D.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else I(s.highlight(S.code,S.grammar,S.language))},highlight:function(y,w,k){var _={code:y,grammar:w,language:k};if(s.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=s.tokenize(_.code,_.grammar),s.hooks.run("after-tokenize",_),l.stringify(s.util.encode(_.tokens),_.language)},tokenize:function(y,w){var k=w.rest;if(k){for(var _ in k)w[_]=k[_];delete w.rest}var E=new p;return m(E,E.head,y),d(y,E,w,E.head,0),g(E)},hooks:{all:{},add:function(y,w){var k=s.hooks.all;k[y]=k[y]||[],k[y].push(w)},run:function(y,w){var k=s.hooks.all[y];if(!(!k||!k.length))for(var _=0,E;E=k[_++];)E(w)}},Token:l};a.Prism=s;function l(y,w,k,_){this.type=y,this.content=w,this.alias=k,this.length=(_||"").length|0}l.stringify=function y(w,k){if(typeof w=="string")return w;if(Array.isArray(w)){var _="";return w.forEach(function(I){_+=y(I,k)}),_}var E={type:w.type,content:y(w.content,k),tag:"span",classes:["token",w.type],attributes:{},language:k},v=w.alias;v&&(Array.isArray(v)?Array.prototype.push.apply(E.classes,v):E.classes.push(v)),s.hooks.run("wrap",E);var x="";for(var S in E.attributes)x+=" "+S+'="'+(E.attributes[S]||"").replace(/"/g,"&quot;")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+x+">"+E.content+"</"+E.tag+">"};function u(y,w,k,_){y.lastIndex=w;var E=y.exec(k);if(E&&_&&E[1]){var v=E[1].length;E.index+=v,E[0]=E[0].slice(v)}return E}function d(y,w,k,_,E,v){for(var x in k)if(!(!k.hasOwnProperty(x)||!k[x])){var S=k[x];S=Array.isArray(S)?S:[S];for(var I=0;I<S.length;++I){if(v&&v.cause==x+","+I)return;var D=S[I],N=D.inside,R=!!D.lookbehind,B=!!D.greedy,T=D.alias;if(B&&!D.pattern.global){var F=D.pattern.toString().match(/[imsuy]*$/)[0];D.pattern=RegExp(D.pattern.source,F+"g")}for(var L=D.pattern||D,M=_.next,P=E;M!==w.tail&&!(v&&P>=v.reach);P+=M.value.length,M=M.next){var O=M.value;if(w.length>y.length)return;if(!(O instanceof l)){var $=1,q;if(B){if(q=u(L,P,y,R),!q||q.index>=y.length)break;var W=q.index,j=q.index+q[0].length,K=P;for(K+=M.value.length;W>=K;)M=M.next,K+=M.value.length;if(K-=M.value.length,P=K,M.value instanceof l)continue;for(var U=M;U!==w.tail&&(K<j||typeof U.value=="string");U=U.next)$++,K+=U.value.length;$--,O=y.slice(P,K),q.index-=P}else if(q=u(L,0,O,R),!q)continue;var W=q.index,Y=q[0],ae=O.slice(0,W),V=O.slice(W+Y.length),X=P+O.length;v&&X>v.reach&&(v.reach=X);var ee=M.prev;ae&&(ee=m(w,ee,ae),P+=ae.length),A(w,ee,$);var J=new l(x,N?s.tokenize(Y,N):Y,T,Y);if(M=m(w,ee,J),V&&m(w,M,V),$>1){var pe={cause:x+","+I,reach:X};d(y,w,k,M.prev,P,pe),v&&pe.reach>v.reach&&(v.reach=pe.reach)}}}}}}function p(){var y={value:null,prev:null,next:null},w={value:null,prev:y,next:null};y.next=w,this.head=y,this.tail=w,this.length=0}function m(y,w,k){var _=w.next,E={value:k,prev:w,next:_};return w.next=E,_.prev=E,y.length++,E}function A(y,w,k){for(var _=w.next,E=0;E<k&&_!==y.tail;E++)_=_.next;w.next=_,_.prev=w,y.length-=E}function g(y){for(var w=[],k=y.head.next;k!==y.tail;)w.push(k.value),k=k.next;return w}if(!a.document)return a.addEventListener&&(s.disableWorkerMessageHandler||a.addEventListener("message",function(y){var w=JSON.parse(y.data),k=w.language,_=w.code,E=w.immediateClose;a.postMessage(s.highlight(_,s.languages[k],k)),E&&a.close()},!1)),s;var h=s.util.currentScript();h&&(s.filename=h.src,h.hasAttribute("data-manual")&&(s.manual=!0));function f(){s.manual||s.highlightAll()}if(!s.manual){var b=document.readyState;b==="loading"||b==="interactive"&&h&&h.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return s})(t);e.exports&&(e.exports=n),typeof c1<"u"&&(c1.Prism=n)})(ON)),ON.exports}var PN,are;function AJe(){if(are)return PN;are=1,PN=e,e.displayName="markup",e.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function e(t){t.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"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(a,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var s={};s[a]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,a){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\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:t.languages[a]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml}return PN}var $N,rre;function gJe(){if(rre)return $N;rre=1,$N=e,e.displayName="css",e.aliases=[];function e(t){(function(n){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,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:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var r=n.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(t)}return $N}var jN,ire;function hJe(){if(ire)return jN;ire=1,jN=e,e.displayName="clike",e.aliases=[];function e(t){t.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:/[{}[\];(),.:]/}}return jN}var qN,ore;function fJe(){if(ore)return qN;ore=1,qN=e,e.displayName="javascript",e.aliases=["js"];function e(t){t.languages.javascript=t.languages.extend("clike",{"class-name":[t.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}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.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:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.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:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.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:t.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"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.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")),t.languages.js=t.languages.javascript}return qN}var GN,sre;function bJe(){if(sre)return GN;sre=1;var e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof c1=="object"?c1:{},t=_();e.Prism={manual:!0,disableWorkerMessageHandler:!0};var n=iJe(),a=pJe(),r=mJe(),i=AJe(),o=gJe(),s=hJe(),l=fJe();t();var u={}.hasOwnProperty;function d(){}d.prototype=r;var p=new d;GN=p,p.highlight=g,p.register=m,p.alias=A,p.registered=h,p.listLanguages=f,m(i),m(o),m(s),m(l),p.util.encode=w,p.Token.stringify=b;function m(E){if(typeof E!="function"||!E.displayName)throw new Error("Expected `function` for `grammar`, got `"+E+"`");p.languages[E.displayName]===void 0&&E(p)}function A(E,v){var x=p.languages,S=E,I,D,N,R;v&&(S={},S[E]=v);for(I in S)for(D=S[I],D=typeof D=="string"?[D]:D,N=D.length,R=-1;++R<N;)x[D[R]]=x[I]}function g(E,v){var x=r.highlight,S;if(typeof E!="string")throw new Error("Expected `string` for `value`, got `"+E+"`");if(p.util.type(v)==="Object")S=v,v=null;else{if(typeof v!="string")throw new Error("Expected `string` for `name`, got `"+v+"`");if(u.call(p.languages,v))S=p.languages[v];else throw new Error("Unknown language: `"+v+"` is not registered")}return x.call(this,E,S,v)}function h(E){if(typeof E!="string")throw new Error("Expected `string` for `language`, got `"+E+"`");return u.call(p.languages,E)}function f(){var E=p.languages,v=[],x;for(x in E)u.call(E,x)&&typeof E[x]=="object"&&v.push(x);return v}function b(E,v,x){var S;return typeof E=="string"?{type:"text",value:E}:p.util.type(E)==="Array"?y(E,v):(S={type:E.type,content:p.Token.stringify(E.content,v,x),tag:"span",classes:["token",E.type],attributes:{},language:v,parent:x},E.alias&&(S.classes=S.classes.concat(E.alias)),p.hooks.run("wrap",S),n(S.tag+"."+S.classes.join("."),k(S.attributes),S.content))}function y(E,v){for(var x=[],S=E.length,I=-1,D;++I<S;)D=E[I],D!==""&&D!==null&&D!==void 0&&x.push(D);for(I=-1,S=x.length;++I<S;)D=x[I],x[I]=p.Token.stringify(D,v,x);return x}function w(E){return E}function k(E){var v;for(v in E)E[v]=a(E[v]);return E}function _(){var E="Prism"in e,v=E?e.Prism:void 0;return x;function x(){E?e.Prism=v:delete e.Prism,E=void 0,v=void 0}}return GN}const yJe={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var zN,cre;function wJe(){if(cre)return zN;cre=1,zN=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return zN}var UN,lre;function kJe(){if(lre)return UN;lre=1,UN=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var a="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+a+"|<"+a+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return UN}var HN,ure;function vJe(){if(ure)return HN;ure=1,HN=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return HN}var YN,dre;function _Je(){if(dre)return YN;dre=1,YN=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return YN}var WN,pre;function CJe(){if(pre)return WN;pre=1,WN=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return WN}var KN,mre;function EJe(){if(mre)return KN;mre=1,KN=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return KN}var ZN,Are;function xJe(){if(Are)return ZN;Are=1,ZN=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return ZN}var VN,gre;function BJe(){if(gre)return VN;gre=1,VN=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return VN}var JN,hre;function XN(){if(hre)return JN;hre=1,JN=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return JN}var eF,fre;function IJe(){if(fre)return eF;fre=1;var e=XN();eF=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),(function(a){var r=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,i=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return r.source});function o(l){return RegExp(l.replace(/<CLASS-NAME>/g,function(){return i}),"i")}var s={keyword:r,punctuation:/[()\[\]{};,:.<>]/};a.languages.apex={comment:a.languages.clike.comment,string:a.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:a.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:s},{pattern:o(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:o(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:r,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}})(n)}return eF}var tF,bre;function SJe(){if(bre)return tF;bre=1,tF=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return tF}var nF,yre;function DJe(){if(yre)return nF;yre=1,nF=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return nF}var aF,wre;function QJe(){if(wre)return aF;wre=1,aF=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return aF}var rF,kre;function cA(){if(kre)return rF;kre=1,rF=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return rF}var iF,vre;function oF(){if(vre)return iF;vre=1;var e=cA();iF=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),(function(a){var r=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,i=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return r.source});a.languages.cpp=a.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:r,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),a.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return i})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),a.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:a.languages.cpp}}}}),a.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),a.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:a.languages.extend("cpp",{})}}),a.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},a.languages.cpp["base-clause"])})(n)}return iF}var sF,_re;function TJe(){if(_re)return sF;_re=1;var e=oF();sF=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return sF}var cF,Cre;function NJe(){if(Cre)return cF;Cre=1,cF=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return cF}var lF,Ere;function FJe(){if(Ere)return lF;Ere=1,lF=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var a={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:a,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:a.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:a,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var s={},l=0,u=o.length;l<u;l++)s[o[l]]=r[o[l]];return s}a.inside.interpreted.inside.rest=i("macro inline replacement entity"),r["passthrough-block"].inside.rest=i("macro"),r["literal-block"].inside.rest=i("callout"),r.table.inside.rest=i("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),r["other-block"].inside.rest=i("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),r.title.inside.rest=i("macro inline replacement entity"),n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.value.replace(/&amp;/,"&"))}),n.languages.adoc=n.languages.asciidoc})(t)}return lF}var uF,xre;function LJe(){if(xre)return uF;xre=1,uF=e,e.displayName="asm6502",e.aliases=[];function e(t){t.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}return uF}var dF,Bre;function RJe(){if(Bre)return dF;Bre=1,dF=e,e.displayName="asmatmel",e.aliases=[];function e(t){t.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return dF}var pF,Ire;function mx(){if(Ire)return pF;Ire=1,pF=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function a($,q){return $.replace(/<<(\d+)>>/g,function(j,K){return"(?:"+q[+K]+")"})}function r($,q,j){return RegExp(a($,q),"")}function i($,q){for(var j=0;j<q;j++)$=$.replace(/<<self>>/g,function(){return"(?:"+$+")"});return $.replace(/<<self>>/g,"[^\\s\\S]")}var o={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 s($){return"\\b(?:"+$.trim().replace(/ /g,"|")+")\\b"}var l=s(o.typeDeclaration),u=RegExp(s(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),d=s(o.typeDeclaration+" "+o.contextual+" "+o.other),p=s(o.type+" "+o.typeDeclaration+" "+o.other),m=i(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),A=i(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,h=a(/<<0>>(?:\s*<<1>>)?/.source,[g,m]),f=a(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,h]),b=/\[\s*(?:,\s*)*\]/.source,y=a(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[f,b]),w=a(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[m,A,b]),k=a(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),_=a(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,f,b]),E={keyword:u,punctuation:/[<>()?,.:[\]]/},v=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,x=/"(?:\\.|[^\\"\r\n])*"/.source,S=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[f]),lookbehind:!0,inside:E},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,_]),lookbehind:!0,inside:E},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,h]),lookbehind:!0,inside:E},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[f]),lookbehind:!0,inside:E},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[_,p,g]),inside:E}],keyword:u,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:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[A]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[_,f]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[_]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,m]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(m),alias:"class-name",inside:E}}},"type-list":{pattern:r(/\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,[l,h,g,_,u.source,A,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[h,A]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:u,"class-name":{pattern:RegExp(_),greedy:!0,inside:E},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 I=x+"|"+v,D=a(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[I]),N=i(a(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[D]),2),R=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,B=a(/<<0>>(?:\s*\(<<1>>*\))?/.source,[f,N]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[R,B]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[R]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[N]),inside:n.languages.csharp},"class-name":{pattern:RegExp(f),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var T=/:[^}\r\n]+/.source,F=i(a(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[D]),2),L=a(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,T]),M=i(a(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[I]),2),P=a(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,T]);function O($,q){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[$]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[q,T]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:O(L,F)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:O(P,M)}],char:{pattern:RegExp(v),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return pF}var mF,Sre;function MJe(){if(Sre)return mF;Sre=1;var e=mx();mF=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return mF}var AF,Dre;function OJe(){if(Dre)return AF;Dre=1,AF=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return AF}var gF,Qre;function PJe(){if(Qre)return gF;Qre=1,gF=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return gF}var hF,Tre;function $Je(){if(Tre)return hF;Tre=1,hF=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function a(d,p){return d.replace(/<<(\d+)>>/g,function(m,A){return p[+A]})}function r(d,p,m){return RegExp(a(d,p),m)}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),l=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[o,s,l].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return hF}var fF,Nre;function jJe(){if(Nre)return fF;Nre=1,fF=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return fF}var bF,Fre;function Lre(){if(Fre)return bF;Fre=1,bF=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){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",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,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})/};n.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+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+a),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+a),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|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|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|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}},r.inside=n.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,l=0;l<o.length;l++)s[o[l]]=n.languages.bash[o[l]];n.languages.shell=n.languages.bash})(t)}return bF}var yF,Rre;function Mre(){if(Rre)return yF;Rre=1,yF=e,e.displayName="basic",e.aliases=[];function e(t){t.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return yF}var wF,Ore;function qJe(){if(Ore)return wF;Ore=1,wF=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var a=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:a,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:a,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[a,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:a,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return wF}var kF,Pre;function GJe(){if(Pre)return kF;Pre=1,kF=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return kF}var vF,$re;function zJe(){if($re)return vF;$re=1,vF=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return vF}var _F,jre;function UJe(){if(jre)return _F;jre=1,_F=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return _F}var CF,qre;function HJe(){if(qre)return CF;qre=1;var e=cA();CF=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return CF}var EF,Gre;function YJe(){if(Gre)return EF;Gre=1,EF=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return EF}var xF,zre;function WJe(){if(zre)return xF;zre=1,xF=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return xF}var BF,Ure;function KJe(){if(Ure)return BF;Ure=1,BF=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return BF}var IF,Hre;function ZJe(){if(Hre)return IF;Hre=1,IF=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return IF}var SF,Yre;function VJe(){if(Yre)return SF;Yre=1,SF=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return SF}var DF,Wre;function JJe(){if(Wre)return DF;Wre=1,DF=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return DF}var QF,Kre;function XJe(){if(Kre)return QF;Kre=1;var e=oF();QF=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return QF}var TF,Zre;function eXe(){if(Zre)return TF;Zre=1,TF=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return TF}var NF,Vre;function tXe(){if(Vre)return NF;Vre=1,NF=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return NF}var FF,Jre;function nXe(){if(Jre)return FF;Jre=1,FF=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return FF}var LF,Xre;function aXe(){if(Xre)return LF;Xre=1,LF=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return LF}var RF,eie;function rXe(){if(eie)return RF;eie=1,RF=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var a=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:a,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:a,interpolation:r}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return RF}var MF,tie;function iXe(){if(tie)return MF;tie=1,MF=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return MF}var OF,nie;function oXe(){if(nie)return OF;nie=1,OF=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var a=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,r=0;r<2;r++)a=a.replace(/<self>/g,function(){return a});a=a.replace(/<self>/g,"[]"),n.languages.coq={comment:RegExp(a),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return a})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(a),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return OF}var PF,aie;function Ax(){if(aie)return PF;aie=1,PF=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.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:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var a={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var r="(?:"+[/([^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("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[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+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.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:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),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+r),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 n.languages.ruby.string,n.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)/}),n.languages.rb=n.languages.ruby})(t)}return PF}var $F,rie;function sXe(){if(rie)return $F;rie=1;var e=Ax();$F=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),(function(a){a.languages.crystal=a.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,a.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),a.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:a.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})})(n)}return $F}var jF,iie;function cXe(){if(iie)return jF;iie=1;var e=mx();jF=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),(function(a){var r=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(f,b){for(var y=0;y<b;y++)f=f.replace(/<self>/g,function(){return"(?:"+f+")"});return f.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+i+")").replace(/<comment>/g,"(?:"+r+")")}var s=o(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),l=o(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),u=o(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),d=o(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,m=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,A=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+m+"|"+o(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+m+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+m+")";a.languages.cshtml=a.languages.extend("markup",{});var g=a.languages.insertBefore("csharp","string",{html:{pattern:RegExp(A),greedy:!0,inside:a.languages.cshtml}},{csharp:a.languages.extend("csharp",{})}),h={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:g};a.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[u,/(?:code|functions)\s*/.source+u,/(?:for|foreach|lock|switch|using|while)\s*/.source+s+/\s*/.source+u,/do\s*/.source+u+/\s*while\s*/.source+s+/(?:\s*;)?/.source,/try\s*/.source+u+/\s*catch\s*/.source+s+/\s*/.source+u+/\s*finally\s*/.source+u,/if\s*/.source+s+/\s*/.source+u+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+s+")?"+/\s*/.source+u+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:h}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:h}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+s+")(?:"+/[?!]?\.\w+\b/.source+"|"+s+"|"+l+"|"+d+s+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:h}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),a.languages.razor=a.languages.cshtml})(n)}return jF}var qF,oie;function lXe(){if(oie)return qF;oie=1,qF=e,e.displayName="csp",e.aliases=[];function e(t){(function(n){function a(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}n.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:a(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:a(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:a(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:a(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:a(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:a(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:a(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(t)}return qF}var GF,sie;function uXe(){if(sie)return GF;sie=1,GF=e,e.displayName="cssExtras",e.aliases=[];function e(t){(function(n){var a=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;n.languages.css.selector={pattern:n.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+a.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[a,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=r,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})})(t)}return GF}var zF,cie;function dXe(){if(cie)return zF;cie=1,zF=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return zF}var UF,lie;function pXe(){if(lie)return UF;lie=1,UF=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return UF}var HF,uie;function mXe(){if(uie)return HF;uie=1,HF=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return HF}var YF,die;function AXe(){if(die)return YF;die=1,YF=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var a=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:a,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:a,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return YF}var WF,pie;function gXe(){if(pie)return WF;pie=1,WF=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return WF}var KF,mie;function hXe(){if(mie)return KF;mie=1,KF=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return KF}var ZF,Aie;function fXe(){if(Aie)return ZF;Aie=1,ZF=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return ZF}var VF,gie;function bXe(){if(gie)return VF;gie=1,VF=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.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(r){var i=a[r],o=[];/^\w+$/.test(r)||o.push(/\w+/.exec(r)[0]),r==="diff"&&o.push("bold"),n.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r
425
425
  ?|
426
426
  |(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:a})})(t)}return VF}var JF,hie;function ts(){if(hie)return JF;hie=1,JF=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function a(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,o,s){if(r.language===i){var l=r.tokenStack=[];r.code=r.code.replace(o,function(u){if(typeof s=="function"&&!s(u))return u;for(var d=l.length,p;r.code.indexOf(p=a(i,d))!==-1;)++d;return l[d]=u,p}),r.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=n.languages[i];var o=0,s=Object.keys(r.tokenStack);function l(u){for(var d=0;d<u.length&&!(o>=s.length);d++){var p=u[d];if(typeof p=="string"||p.content&&typeof p.content=="string"){var m=s[o],A=r.tokenStack[m],g=typeof p=="string"?p:p.content,h=a(i,m),f=g.indexOf(h);if(f>-1){++o;var b=g.substring(0,f),y=new n.Token(i,n.tokenize(A,r.grammar),"language-"+i,A),w=g.substring(f+h.length),k=[];b&&k.push.apply(k,l([b])),k.push(y),w&&k.push.apply(k,l([w])),typeof p=="string"?u.splice.apply(u,[d,1].concat(k)):p.content=k}}else p.content&&l(p.content)}return u}l(r.tokens)}}})})(t)}return JF}var XF,fie;function yXe(){if(fie)return XF;fie=1;var e=ts();XF=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),(function(a){a.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var r=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=a.languages["markup-templating"];a.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",r)}),a.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),a.languages.jinja2=a.languages.django,a.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",r)}),a.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})})(n)}return XF}var e6,bie;function wXe(){if(bie)return e6;bie=1,e6=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return e6}var t6,yie;function kXe(){if(yie)return t6;yie=1,t6=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var a=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return a}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return i}),s={pattern:RegExp(i),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(d,p){return d=d.replace(/<OPT>/g,function(){return o}).replace(/<SP>/g,function(){return r}),RegExp(d,p)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},n.languages.dockerfile=n.languages.docker})(t)}return t6}var n6,wie;function vXe(){if(wie)return n6;wie=1,n6=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var a="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function i(o,s){return RegExp(o.replace(/<ID>/g,function(){return a}),s)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return n6}var a6,kie;function _Xe(){if(kie)return a6;kie=1,a6=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return a6}var r6,vie;function CXe(){if(vie)return r6;vie=1,r6=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return r6}var i6,_ie;function EXe(){if(_ie)return i6;_ie=1,i6=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return i6}var o6,Cie;function xXe(){if(Cie)return o6;Cie=1;var e=ts();o6=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),(function(a){a.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:a.languages.javascript}},a.hooks.add("before-tokenize",function(r){var i=/<%(?!%)[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(r,"ejs",i)}),a.hooks.add("after-tokenize",function(r){a.languages["markup-templating"].tokenizePlaceholders(r,"ejs")}),a.languages.eta=a.languages.ejs})(n)}return o6}var s6,Eie;function BXe(){if(Eie)return s6;Eie=1,s6=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return s6}var c6,xie;function IXe(){if(xie)return c6;xie=1,c6=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return c6}var l6,Bie;function SXe(){if(Bie)return l6;Bie=1;var e=Ax(),t=ts();l6=n,n.displayName="erb",n.aliases=[];function n(a){a.register(e),a.register(t),(function(r){r.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:r.languages.ruby}},r.hooks.add("before-tokenize",function(i){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;r.languages["markup-templating"].buildPlaceholders(i,"erb",o)}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"erb")})})(a)}return l6}var u6,Iie;function DXe(){if(Iie)return u6;Iie=1,u6=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return u6}var d6,Sie;function Die(){if(Sie)return d6;Sie=1,d6=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return d6}var p6,Qie;function QXe(){if(Qie)return p6;Qie=1;var e=Die(),t=ts();p6=n,n.displayName="etlua",n.aliases=[];function n(a){a.register(e),a.register(t),(function(r){r.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:r.languages.lua}},r.hooks.add("before-tokenize",function(i){var o=/<%[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(i,"etlua",o)}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})})(a)}return p6}var m6,Tie;function TXe(){if(Tie)return m6;Tie=1,m6=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return m6}var A6,Nie;function NXe(){if(Nie)return A6;Nie=1,A6=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var a={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:a},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:a}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},o=function(d){return(d+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(d){return new RegExp("(^|\\s)(?:"+d.map(o).join("|")+")(?=\\s|$)")},l={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(l).forEach(function(d){i[d].pattern=s(l[d])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];i.combinators.pattern=s(u),n.languages.factor=i})(t)}return A6}var g6,Fie;function FXe(){if(Fie)return g6;Fie=1,g6=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(t)}return g6}var h6,Lie;function LXe(){if(Lie)return h6;Lie=1,h6=e,e.displayName="firestoreSecurityRules",e.aliases=[];function e(t){t.languages["firestore-security-rules"]=t.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return h6}var f6,Rie;function RXe(){if(Rie)return f6;Rie=1,f6=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return f6}var b6,Mie;function MXe(){if(Mie)return b6;Mie=1,b6=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return b6}var y6,Oie;function OXe(){if(Oie)return y6;Oie=1,y6=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return y6}var w6,Pie;function PXe(){if(Pie)return w6;Pie=1;var e=ts();w6=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),(function(a){for(var r=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)r=r.replace(/<expr>/g,function(){return r});r=r.replace(/<expr>/g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return r})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return r})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,a.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},a.hooks.add("before-tokenize",function(s){var l=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return r}),"gi");a.languages["markup-templating"].buildPlaceholders(s,"ftl",l)}),a.hooks.add("after-tokenize",function(s){a.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})})(n)}return w6}var k6,$ie;function $Xe(){if($ie)return k6;$ie=1,k6=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return k6}var v6,jie;function jXe(){if(jie)return v6;jie=1,v6=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return v6}var _6,qie;function qXe(){if(qie)return _6;qie=1,_6=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return _6}var C6,Gie;function GXe(){if(Gie)return C6;Gie=1,C6=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return C6}var E6,zie;function zXe(){if(zie)return E6;zie=1,E6=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var a=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+a+")(?:"+a+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(a),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return E6}var x6,Uie;function UXe(){if(Uie)return x6;Uie=1,x6=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return x6}var B6,Hie;function HXe(){if(Hie)return B6;Hie=1;var e=cA();B6=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return B6}var I6,Yie;function YXe(){if(Yie)return I6;Yie=1,I6=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return I6}var S6,Wie;function WXe(){if(Wie)return S6;Wie=1,S6=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return S6}var D6,Kie;function KXe(){if(Kie)return D6;Kie=1,D6=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return D6}var Q6,Zie;function ZXe(){if(Zie)return Q6;Zie=1,Q6=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return Q6}var T6,Vie;function VXe(){if(Vie)return T6;Vie=1,T6=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(a){if(a.language!=="graphql")return;var r=a.tokens.filter(function(b){return typeof b!="string"&&b.type!=="comment"&&b.type!=="scalar"}),i=0;function o(b){return r[i+b]}function s(b,y){y=y||0;for(var w=0;w<b.length;w++){var k=o(w+y);if(!k||k.type!==b[w])return!1}return!0}function l(b,y){for(var w=1,k=i;k<r.length;k++){var _=r[k],E=_.content;if(_.type==="punctuation"&&typeof E=="string"){if(b.test(E))w++;else if(y.test(E)&&(w--,w===0))return k}}return-1}function u(b,y){var w=b.alias;w?Array.isArray(w)||(b.alias=w=[w]):b.alias=w=[],w.push(y)}for(;i<r.length;){var d=r[i++];if(d.type==="keyword"&&d.content==="mutation"){var p=[];if(s(["definition-mutation","punctuation"])&&o(1).content==="("){i+=2;var m=l(/^\($/,/^\)$/);if(m===-1)continue;for(;i<m;i++){var A=o(0);A.type==="variable"&&(u(A,"variable-input"),p.push(A.content))}i=m+1}if(s(["punctuation","property-query"])&&o(0).content==="{"&&(i++,u(o(0),"property-mutation"),p.length>0)){var g=l(/^\{$/,/^\}$/);if(g===-1)continue;for(var h=i;h<g;h++){var f=r[h];f.type==="variable"&&p.indexOf(f.content)>=0&&u(f,"variable-input")}}}}})}return T6}var N6,Jie;function JXe(){if(Jie)return N6;Jie=1,N6=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var a=n.content.value[0];if(a!="'"){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;a==="$"&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:r,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(a==="/"?"regex":"gstring")}}})}return N6}var F6,Xie;function XXe(){if(Xie)return F6;Xie=1;var e=Ax();F6=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),(function(a){a.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:a.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:a.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:a.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:a.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:a.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:a.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:a.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var r="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},s=0,l=i.length;s<l;s++){var u=i[s];u=typeof u=="string"?{filter:u,language:u}:u,a.languages[u.language]&&(o["filter-"+u.filter]={pattern:RegExp(r.replace("{{filter_name}}",function(){return u.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[u.language,"language-"+u.language],inside:a.languages[u.language]}}})}a.languages.insertBefore("haml","filter",o)})(n)}return F6}var L6,eoe;function eet(){if(eoe)return L6;eoe=1;var e=ts();L6=t,t.displayName="handlebars",t.aliases=["hbs"];function t(n){n.register(e),(function(a){a.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},a.hooks.add("before-tokenize",function(r){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;a.languages["markup-templating"].buildPlaceholders(r,"handlebars",i)}),a.hooks.add("after-tokenize",function(r){a.languages["markup-templating"].tokenizePlaceholders(r,"handlebars")}),a.languages.hbs=a.languages.handlebars})(n)}return L6}var R6,toe;function M6(){if(toe)return R6;toe=1,R6=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return R6}var O6,noe;function tet(){if(noe)return O6;noe=1,O6=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return O6}var P6,aoe;function net(){if(aoe)return P6;aoe=1,P6=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return P6}var $6,roe;function aet(){if(roe)return $6;roe=1;var e=cA();$6=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return $6}var j6,ioe;function ret(){if(ioe)return j6;ioe=1,j6=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return j6}var q6,ooe;function iet(){if(ooe)return q6;ooe=1,q6=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return q6}var G6,soe;function oet(){if(soe)return G6;soe=1,G6=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return G6}var z6,coe;function set(){if(coe)return z6;coe=1,z6=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function a(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:a(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:a(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:a(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:a(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=n.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},o={"application/json":!0,"application/xml":!0};function s(p){var m=p.replace(/^[a-z]+\//,""),A="\\w+/(?:[\\w.-]+\\+)+"+m+"(?![+\\w.-])";return"(?:"+p+"|"+A+")"}var l;for(var u in i)if(i[u]){l=l||{};var d=o[u]?s(u):u;l[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+d+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}l&&n.languages.insertBefore("http","header",l)})(t)}return z6}var U6,loe;function cet(){if(loe)return U6;loe=1,U6=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return U6}var H6,uoe;function uet(){if(uoe)return H6;uoe=1,H6=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return H6}var Y6,doe;function det(){if(doe)return Y6;doe=1,Y6=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function a(u,d){return d<=0?/[]/.source:u.replace(/<SELF>/g,function(){return a(u,d-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:r,greedy:!0,inside:{escape:i}},s=a(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return r.source}),8),l={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":l,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":l,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+a(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},l.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return Y6}var W6,poe;function pet(){if(poe)return W6;poe=1;var e=M6();W6=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return W6}var K6,moe;function met(){if(moe)return K6;moe=1,K6=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return K6}var Z6,Aoe;function Aet(){if(Aoe)return Z6;Aoe=1,Z6=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return Z6}var V6,goe;function get(){if(goe)return V6;goe=1,V6=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return V6}var J6,hoe;function het(){if(hoe)return J6;hoe=1,J6=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return J6}var X6,foe;function fet(){if(foe)return X6;foe=1,X6=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}return X6}var eL,boe;function bet(){if(boe)return eL;boe=1,eL=e,e.displayName="j",e.aliases=[];function e(t){t.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return eL}var tL,yoe;function nL(){if(yoe)return tL;yoe=1,tL=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var a=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:a,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:a,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return a.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return tL}var aL,woe;function gx(){if(woe)return aL;woe=1,aL=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var a=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(o,s){var l="doc-comment",u=n.languages[o];if(u){var d=u[l];if(!d){var p={};p[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=n.languages.insertBefore(o,"comment",p),d=u[l]}if(d instanceof RegExp&&(d=u[l]={pattern:d}),Array.isArray(d))for(var m=0,A=d.length;m<A;m++)d[m]instanceof RegExp&&(d[m]={pattern:d[m]}),s(d[m]);else s(d)}}function i(o,s){typeof o=="string"&&(o=[o]),o.forEach(function(l){r(l,function(u){u.inside||(u.inside={}),u.inside.rest=s})})}Object.defineProperty(a,"addSupport",{value:i}),a.addSupport(["java","javascript","php"],a)})(t)}return aL}var rL,koe;function yet(){if(koe)return rL;koe=1;var e=nL(),t=gx();rL=n,n.displayName="javadoc",n.aliases=[];function n(a){a.register(e),a.register(t),(function(r){var i=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,o=/#\s*\w+(?:\s*\([^()]*\))?/.source,s=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return o});r.languages.javadoc=r.languages.extend("javadoclike",{}),r.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:r.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:r.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:r.languages.markup.tag,entity:r.languages.markup.entity,code:{pattern:/.+/,inside:r.languages.java,alias:"language-java"}}}}}],tag:r.languages.markup.tag,entity:r.languages.markup.entity}),r.languages.javadoclike.addSupport("java",r.languages.javadoc)})(a)}return rL}var iL,voe;function wet(){if(voe)return iL;voe=1,iL=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return iL}var oL,_oe;function ket(){if(_oe)return oL;_oe=1,oL=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return oL}var sL,Coe;function vet(){if(Coe)return sL;Coe=1,sL=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return sL}var cL,Eoe;function _et(){if(Eoe)return cL;Eoe=1,cL=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var a=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return a})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+a),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(t)}return cL}var lL,xoe;function Cet(){if(xoe)return lL;xoe=1,lL=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function a(u,d){return RegExp(u.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),d)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:a(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:a(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:a(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],i=0;i<r.length;i++){var o=r[i],s=n.languages.javascript[o];n.util.type(s)==="RegExp"&&(s=n.languages.javascript[o]={pattern:s});var l=s.inside||{};s.inside=l,l["maybe-class-name"]=/^[A-Z][\s\S]*/}})(t)}return lL}var uL,Boe;function Eet(){if(Boe)return uL;Boe=1,uL=e,e.displayName="jsTemplates",e.aliases=[];function e(t){(function(n){var a=n.languages.javascript["template-string"],r=a.pattern.source,i=a.inside.interpolation,o=i.inside["interpolation-punctuation"],s=i.pattern.source;function l(h,f){if(n.languages[h])return{pattern:RegExp("((?:"+f+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:h}}}}n.languages.javascript["template-string"]=[l("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),l("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),l("svg",/\bsvg/.source),l("markdown",/\b(?:markdown|md)/.source),l("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),l("sql",/\bsql/.source),a].filter(Boolean);function u(h,f){return"___"+f.toUpperCase()+"_"+h+"___"}function d(h,f,b){var y={code:h,grammar:f,language:b};return n.hooks.run("before-tokenize",y),y.tokens=n.tokenize(y.code,y.grammar),n.hooks.run("after-tokenize",y),y.tokens}function p(h){var f={};f["interpolation-punctuation"]=o;var b=n.tokenize(h,f);if(b.length===3){var y=[1,1];y.push.apply(y,d(b[1],n.languages.javascript,"javascript")),b.splice.apply(b,y)}return new n.Token("interpolation",b,i.alias,h)}function m(h,f,b){var y=n.tokenize(h,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),w=0,k={},_=y.map(function(S){if(typeof S=="string")return S;for(var I=S.content,D;h.indexOf(D=u(w++,b))!==-1;);return k[D]=I,D}).join(""),E=d(_,f,b),v=Object.keys(k);w=0;function x(S){for(var I=0;I<S.length;I++){if(w>=v.length)return;var D=S[I];if(typeof D=="string"||typeof D.content=="string"){var N=v[w],R=typeof D=="string"?D:D.content,B=R.indexOf(N);if(B!==-1){++w;var T=R.substring(0,B),F=p(k[N]),L=R.substring(B+N.length),M=[];if(T&&M.push(T),M.push(F),L){var P=[L];x(P),M.push.apply(M,P)}typeof D=="string"?(S.splice.apply(S,[I,1].concat(M)),I+=M.length-1):D.content=M}}else{var O=D.content;Array.isArray(O)?x(O):x([O])}}}return x(E),new n.Token(b,E,"language-"+b,h)}var A={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(h){if(!(h.language in A))return;function f(b){for(var y=0,w=b.length;y<w;y++){var k=b[y];if(typeof k!="string"){var _=k.content;if(!Array.isArray(_)){typeof _!="string"&&f([_]);continue}if(k.type==="template-string"){var E=_[1];if(_.length===3&&typeof E!="string"&&E.type==="embedded-code"){var v=g(E),x=E.alias,S=Array.isArray(x)?x[0]:x,I=n.languages[S];if(!I)continue;_[1]=m(v,I,S)}}else f(_)}}}f(h.tokens)});function g(h){return typeof h=="string"?h:Array.isArray(h)?h.map(g).join(""):g(h.content)}})(t)}return uL}var dL,Ioe;function pL(){if(Ioe)return dL;Ioe=1,dL=e,e.displayName="typescript",e.aliases=["ts"];function e(t){(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var a=n.languages.extend("typescript",{});delete a["class-name"],n.languages.typescript["class-name"].inside=a,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:a}}}}),n.languages.ts=n.languages.typescript})(t)}return dL}var mL,Soe;function xet(){if(Soe)return mL;Soe=1;var e=gx(),t=pL();mL=n,n.displayName="jsdoc",n.aliases=[];function n(a){a.register(e),a.register(t),(function(r){var i=r.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";r.languages.jsdoc=r.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),r.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:r.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),r.languages.javadoclike.addSupport("javascript",r.languages.jsdoc)})(a)}return mL}var AL,Doe;function gL(){if(Doe)return AL;Doe=1,AL=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.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"}},t.languages.webmanifest=t.languages.json}return AL}var hL,Qoe;function Bet(){if(Qoe)return hL;Qoe=1;var e=gL();hL=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),(function(a){var r=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;a.languages.json5=a.languages.extend("json",{property:[{pattern:RegExp(r.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:r,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(n)}return hL}var fL,Toe;function Iet(){if(Toe)return fL;Toe=1;var e=gL();fL=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return fL}var bL,Noe;function Det(){if(Noe)return bL;Noe=1,bL=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return bL}var yL,Foe;function Loe(){if(Foe)return yL;Foe=1,yL=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var a=n.util.clone(n.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function s(d,p){return d=d.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(d,p)}o=s(o).source,n.languages.jsx=n.languages.extend("markup",a),n.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=a.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:s(/<SPREAD>/.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var l=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(l).join(""):""},u=function(d){for(var p=[],m=0;m<d.length;m++){var A=d[m],g=!1;if(typeof A!="string"&&(A.type==="tag"&&A.content[0]&&A.content[0].type==="tag"?A.content[0].content[0].content==="</"?p.length>0&&p[p.length-1].tagName===l(A.content[0].content[1])&&p.pop():A.content[A.content.length-1].content==="/>"||p.push({tagName:l(A.content[0].content[1]),openedBraces:0}):p.length>0&&A.type==="punctuation"&&A.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&A.type==="punctuation"&&A.content==="}"?p[p.length-1].openedBraces--:g=!0),(g||typeof A=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var h=l(A);m<d.length-1&&(typeof d[m+1]=="string"||d[m+1].type==="plain-text")&&(h+=l(d[m+1]),d.splice(m+1,1)),m>0&&(typeof d[m-1]=="string"||d[m-1].type==="plain-text")&&(h=l(d[m-1])+h,d.splice(m-1,1),m--),d[m]=new n.Token("plain-text",h,null,h)}A.content&&typeof A.content!="string"&&u(A.content)}};n.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||u(d.tokens)})})(t)}return yL}var wL,Roe;function Qet(){if(Roe)return wL;Roe=1,wL=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return wL}var kL,Moe;function Tet(){if(Moe)return kL;Moe=1,kL=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return kL}var vL,Ooe;function Net(){if(Ooe)return vL;Ooe=1,vL=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return vL}var _L,Poe;function Fet(){if(Poe)return _L;Poe=1,_L=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var a={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:a},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:a},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return _L}var CL,$oe;function Let(){if($oe)return CL;$oe=1,CL=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var a=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,o){return RegExp(i.replace(/<nonId>/g,a),o)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(t)}return CL}var EL,joe;function Ret(){if(joe)return EL;joe=1,EL=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return EL}var xL,qoe;function Met(){if(qoe)return xL;qoe=1,xL=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var a=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:a,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:a,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return xL}var BL,Goe;function hx(){if(Goe)return BL;Goe=1;var e=ts();BL=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),(function(a){var r=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,l=/[{}\[\](),:;]/;a.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:r,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:s,punctuation:l};var u={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:a.languages.php},d=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:u}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:u}}];a.languages.insertBefore("php","variable",{string:d,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:r,string:d,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:o,operator:s,punctuation:l}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),a.hooks.add("before-tokenize",function(p){if(/<\?/.test(p.code)){var m=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;a.languages["markup-templating"].buildPlaceholders(p,"php",m)}}),a.hooks.add("after-tokenize",function(p){a.languages["markup-templating"].tokenizePlaceholders(p,"php")})})(n)}return BL}var IL,zoe;function Oet(){if(zoe)return IL;zoe=1;var e=ts(),t=hx();IL=n,n.displayName="latte",n.aliases=[];function n(a){a.register(e),a.register(t),(function(r){r.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:r.languages.php}};var i=r.languages.extend("markup",{});r.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.php}}}}}},i.tag),r.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;r.languages["markup-templating"].buildPlaceholders(o,"latte",s),o.grammar=i}}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"latte")})})(a)}return IL}var SL,Uoe;function Pet(){if(Uoe)return SL;Uoe=1,SL=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return SL}var DL,Hoe;function QL(){if(Hoe)return DL;Hoe=1,DL=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(a({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function a(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+r[o].trim()+")"});return r[i]}})(t)}return DL}var TL,Yoe;function $et(){if(Yoe)return TL;Yoe=1;var e=QL();TL=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),(function(a){for(var r=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,i=5,o=0;o<i;o++)r=r.replace(/<expr>/g,function(){return r});r=r.replace(/<expr>/g,/[^\s\S]/.source);var s=a.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return r}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:a.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,a.languages.ly=s})(n)}return TL}var NL,Woe;function jet(){if(Woe)return NL;Woe=1;var e=ts();NL=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(a){var r=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;n.languages["markup-templating"].buildPlaceholders(a,"liquid",r,function(o){var s=/^\{%-?\s*(\w+)/.exec(o);if(s){var l=s[1];if(l==="raw"&&!i)return i=!0,!0;if(l==="endraw")return i=!1,!0}return!i})}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"liquid")})}return NL}var FL,Koe;function qet(){if(Koe)return FL;Koe=1,FL=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function a(h){return RegExp(/(\()/.source+"(?:"+h+")"+/(?=[\s\)])/.source)}function r(h){return RegExp(/([\s([])/.source+"(?:"+h+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,s="(\\()",l="(?=\\))",u="(?=\\s)",d=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:a(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:a(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+d+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},m={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+d+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},A="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(s+d+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+A),inside:m},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+A),inside:m},keys:{pattern:RegExp("&key\\s+"+A+"(?:\\s+&allow-other-keys)?"),inside:m},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=g,p.defun.inside.arguments=n.util.clone(g),p.defun.inside.arguments.inside.sublist=g,n.languages.lisp=p,n.languages.elisp=p,n.languages.emacs=p,n.languages["emacs-lisp"]=p})(t)}return FL}var LL,Zoe;function Get(){if(Zoe)return LL;Zoe=1,LL=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return LL}var RL,Voe;function zet(){if(Voe)return RL;Voe=1,RL=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return RL}var ML,Joe;function Uet(){if(Joe)return ML;Joe=1,ML=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return ML}var OL,Xoe;function Het(){if(Xoe)return OL;Xoe=1,OL=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return OL}var PL,ese;function Yet(){if(ese)return PL;ese=1,PL=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return PL}var $L,tse;function Wet(){if(tse)return $L;tse=1,$L=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return $L}var jL,nse;function Ket(){if(nse)return jL;nse=1,jL=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var a=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(m){return m=m.replace(/<inner>/g,function(){return a}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+m+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+s+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+s+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(m){["url","bold","italic","strike","code-snippet"].forEach(function(A){m!==A&&(n.languages.markdown[m].inside.content.inside[A]=n.languages.markdown[A])})}),n.hooks.add("after-tokenize",function(m){if(m.language!=="markdown"&&m.language!=="md")return;function A(g){if(!(!g||typeof g=="string"))for(var h=0,f=g.length;h<f;h++){var b=g[h];if(b.type!=="code"){A(b.content);continue}var y=b.content[1],w=b.content[3];if(y&&w&&y.type==="code-language"&&w.type==="code-block"&&typeof y.content=="string"){var k=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");k=(/[a-z][\w-]*/i.exec(k)||[""])[0].toLowerCase();var _="language-"+k;w.alias?typeof w.alias=="string"?w.alias=[w.alias,_]:w.alias.push(_):w.alias=[_]}}}A(m.tokens)}),n.hooks.add("wrap",function(m){if(m.type==="code-block"){for(var A="",g=0,h=m.classes.length;g<h;g++){var f=m.classes[g],b=/language-(.+)/.exec(f);if(b){A=b[1];break}}var y=n.languages[A];if(y)m.content=n.highlight(p(m.content.value),y,A);else if(A&&A!=="none"&&n.plugins.autoloader){var w="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);m.attributes.id=w,n.plugins.autoloader.loadLanguages(A,function(){var k=document.getElementById(w);k&&(k.innerHTML=n.highlight(k.textContent,n.languages[A],A))})}}});var l=RegExp(n.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function p(m){var A=m.replace(l,"");return A=A.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(g,h){if(h=h.toLowerCase(),h[0]==="#"){var f;return h[1]==="x"?f=parseInt(h.slice(2),16):f=Number(h.slice(1)),d(f)}else{var b=u[h];return b||g}}),A}n.languages.md=n.languages.markdown})(t)}return jL}var qL,ase;function Zet(){if(ase)return qL;ase=1,qL=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return qL}var GL,rse;function Vet(){if(rse)return GL;rse=1,GL=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var a=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+a.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+a.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:a,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return GL}var zL,ise;function Jet(){if(ise)return zL;ise=1,zL=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return zL}var UL,ose;function Xet(){if(ose)return UL;ose=1,UL=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return UL}var HL,sse;function ett(){if(sse)return HL;sse=1,HL=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return HL}var YL,cse;function ttt(){if(cse)return YL;cse=1,YL=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var a=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];a=a.map(function(o){return o.replace("$","\\$")});var i="(?:"+a.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})})(t)}return YL}var WL,lse;function ntt(){if(lse)return WL;lse=1,WL=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return WL}var KL,use;function att(){if(use)return KL;use=1,KL=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return KL}var ZL,dse;function rtt(){if(dse)return ZL;dse=1,ZL=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return ZL}var VL,pse;function itt(){if(pse)return VL;pse=1,VL=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return VL}var JL,mse;function ott(){if(mse)return JL;mse=1,JL=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return JL}var XL,Ase;function stt(){if(Ase)return XL;Ase=1,XL=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var a=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:a,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:a,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:a,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(s){var l=s.tokens;l.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var d=o(u);i(d)||(u.type="bad-line",u.content=d)}})});function i(s){for(var l="[]{}",u=[],d=0;d<s.length;d++){var p=s[d],m=l.indexOf(p);if(m!==-1){if(m%2===0)u.push(m+1);else if(u.pop()!==m)return!1}}return u.length===0}function o(s){return typeof s=="string"?s:Array.isArray(s)?s.map(o).join(""):o(s.content)}})(t)}return XL}var e9,gse;function ctt(){if(gse)return e9;gse=1,e9=e,e.displayName="nasm",e.aliases=[];function e(t){t.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}return e9}var t9,hse;function ltt(){if(hse)return t9;hse=1,t9=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return t9}var n9,fse;function utt(){if(fse)return n9;fse=1,n9=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return n9}var a9,bse;function dtt(){if(bse)return a9;bse=1,a9=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var a=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:a}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:a}},punctuation:/[{};]/}})(t)}return a9}var r9,yse;function ptt(){if(yse)return r9;yse=1,r9=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return r9}var i9,wse;function mtt(){if(wse)return i9;wse=1,i9=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return i9}var o9,kse;function Att(){if(kse)return o9;kse=1,o9=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return o9}var s9,vse;function gtt(){if(vse)return s9;vse=1;var e=cA();s9=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return s9}var c9,_se;function htt(){if(_se)return c9;_se=1,c9=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return c9}var l9,Cse;function ftt(){if(Cse)return l9;Cse=1;var e=cA();l9=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),(function(a){a.languages.opencl=a.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),a.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var r={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};a.languages.insertBefore("c","keyword",r),a.languages.cpp&&(r["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},a.languages.insertBefore("cpp","keyword",r))})(n)}return l9}var u9,Ese;function btt(){if(Ese)return u9;Ese=1,u9=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return u9}var d9,xse;function ytt(){if(xse)return d9;xse=1,d9=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return d9}var p9,Bse;function wtt(){if(Bse)return p9;Bse=1,p9=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(a){return a.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return p9}var m9,Ise;function ktt(){if(Ise)return m9;Ise=1,m9=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var a=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});a=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:a.keyword,variable:a.variable,function:a.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:a.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:a.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:a.expression,keyword:a.keyword,variable:a.variable,function:a.function,escape:a.escape,"parser-punctuation":{pattern:a.punctuation,alias:"punctuation"}},a.tag.inside["attr-value"])})(t)}return m9}var A9,Sse;function vtt(){if(Sse)return A9;Sse=1,A9=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return A9}var g9,Dse;function _tt(){if(Dse)return g9;Dse=1,g9=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var a=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return a}),i=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,l){return s[l]=i[l],s},{});i["class-name"].forEach(function(s){s.inside=o})})(t)}return g9}var h9,Qse;function Ctt(){if(Qse)return h9;Qse=1,h9=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return h9}var f9,Tse;function Ett(){if(Tse)return f9;Tse=1,f9=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return f9}var b9,Nse;function xtt(){if(Nse)return b9;Nse=1,b9=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var a=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,a].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,a].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,a+/\s*/.source+a].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return b9}var y9,Fse;function Btt(){if(Fse)return y9;Fse=1;var e=hx();y9=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return y9}var w9,Lse;function Itt(){if(Lse)return w9;Lse=1;var e=hx(),t=gx();w9=n,n.displayName="phpdoc",n.aliases=[];function n(a){a.register(e),a.register(t),(function(r){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;r.languages.phpdoc=r.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),r.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),r.languages.javadoclike.addSupport("php",r.languages.phpdoc)})(a)}return w9}var k9,Rse;function Stt(){if(Rse)return k9;Rse=1;var e=XN();k9=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return k9}var v9,Mse;function Dtt(){if(Mse)return v9;Mse=1,v9=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return v9}var _9,Ose;function Qtt(){if(Ose)return _9;Ose=1,_9=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var a=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{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}})(t)}return _9}var C9,Pse;function Ttt(){if(Pse)return C9;Pse=1,C9=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return C9}var E9,$se;function Ntt(){if($se)return E9;$se=1,E9=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return E9}var x9,jse;function Ftt(){if(jse)return x9;jse=1,x9=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var a=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=a.concat(r,i);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return x9}var B9,qse;function Ltt(){if(qse)return B9;qse=1,B9=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return B9}var I9,Gse;function Rtt(){if(Gse)return I9;Gse=1,I9=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var a=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:a}},builtin:a,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return I9}var S9,zse;function Mtt(){if(zse)return S9;zse=1,S9=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return S9}var D9,Use;function Ott(){if(Use)return D9;Use=1,D9=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var a=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,s=r.length;o<s;o++){var l=r[o];l=typeof l=="string"?{filter:l,language:l}:l,n.languages[l.language]&&(i["filter-"+l.filter]={pattern:RegExp(a.replace("<filter_name>",function(){return l.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[l.language,"language-"+l.language],inside:n.languages[l.language]}}})}n.languages.insertBefore("pug","filter",i)})(t)}return D9}var Q9,Hse;function Ptt(){if(Hse)return Q9;Hse=1,Q9=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.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:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=a,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=a})(t)}return Q9}var T9,Yse;function $tt(){if(Yse)return T9;Yse=1,T9=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var a=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;a.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),n.languages[o]){var s={};s["inline-lang-"+o]={pattern:RegExp(r.replace("<lang>",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},s["inline-lang-"+o].inside.rest=n.util.clone(n.languages[o]),n.languages.insertBefore("pure","inline-lang",s)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return T9}var N9,Wse;function jtt(){if(Wse)return N9;Wse=1,N9=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return N9}var F9,Kse;function qtt(){if(Kse)return F9;Kse=1;var e=M6();F9=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\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-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return F9}var L9,Zse;function Gtt(){if(Zse)return L9;Zse=1,L9=e,e.displayName="python",e.aliases=["py"];function e(t){t.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:/![sra](?=[:}]$)/,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:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return L9}var R9,Vse;function ztt(){if(Vse)return R9;Vse=1,R9=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return R9}var M9,Jse;function Utt(){if(Jse)return M9;Jse=1,M9=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var a=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return a}).replace(/<comment>/g,function(){return r}),o=0;o<2;o++)i=i.replace(/<expr>/g,function(){return i});i=i.replace(/<expr>/g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return M9}var O9,Xse;function Htt(){if(Xse)return O9;Xse=1,O9=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return O9}var P9,ece;function Ytt(){if(ece)return P9;ece=1,P9=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function a(g,h){return g.replace(/<<(\d+)>>/g,function(f,b){return"(?:"+h[+b]+")"})}function r(g,h,f){return RegExp(a(g,h),"")}function i(g,h){for(var f=0;f<h;f++)g=g.replace(/<<self>>/g,function(){return"(?:"+g+")"});return g.replace(/<<self>>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(s(o.type+" "+o.other)),u=/\b[A-Za-z_]\w*\b/.source,d=a(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),p={keyword:l,punctuation:/[<>()?,.:[\]]/},m=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[m]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[d]),lookbehind:!0,inside:p},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[d]),lookbehind:!0,inside:p}],keyword:l,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var A=i(a(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[m]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[A]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[A]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return P9}var $9,tce;function Wtt(){if(tce)return $9;tce=1,$9=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return $9}var j9,nce;function Ktt(){if(nce)return j9;nce=1;var e=QL();j9=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return j9}var q9,ace;function Ztt(){if(ace)return q9;ace=1,q9=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return q9}var G9,rce;function Vtt(){if(rce)return G9;rce=1,G9=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var a={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",l=RegExp(s+"-"+s),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":a,"char-set":o,escape:r}},"special-escape":a,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":u}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(t)}return G9}var z9,ice;function Jtt(){if(ice)return z9;ice=1,z9=e,e.displayName="rego",e.aliases=[];function e(t){t.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return z9}var U9,oce;function Xtt(){if(oce)return U9;oce=1,U9=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return U9}var H9,sce;function ent(){if(sce)return H9;sce=1,H9=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return H9}var Y9,cce;function tnt(){if(cce)return Y9;cce=1,Y9=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return Y9}var W9,lce;function nnt(){if(lce)return W9;lce=1,W9=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return W9}var K9,uce;function ant(){if(uce)return K9;uce=1,K9=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var a={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,d){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var m in d)p[m]=d[m];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=r,p.comment=a,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return u}),"im"),alias:"section",inside:p}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},l={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};n.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:o,property:l}),keywords:i("Keywords",{"keyword-name":s,documentation:o,property:l}),tasks:i("Tasks",{"task-name":s,documentation:o,property:l}),comment:a},n.languages.robot=n.languages.robotframework})(t)}return K9}var Z9,dce;function rnt(){if(dce)return Z9;dce=1,Z9=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var a=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)a=a.replace(/<self>/g,function(){return a});a=a.replace(/<self>/g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+a),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return Z9}var V9,pce;function int(){if(pce)return V9;pce=1,V9=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var a=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(a+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},l={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={pattern:RegExp(a),greedy:!0},p=/[$%@.(){}\[\];,\\]/,m={pattern:/%?\b\w+(?=\()/,alias:"keyword"},A={function:m,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:d},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},h={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},f={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},b={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},y=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,w={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return y}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return y}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:m,"arg-value":A["arg-value"],operator:A.operator,argument:A.arg,number:r,"numeric-constant":i,punctuation:p,string:d}},k={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return a}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":f,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:p,string:d}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return a}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:k,"submit-statement":b,"global-statements":f,number:r,"numeric-constant":i,punctuation:p,string:d}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return a}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:k,"submit-statement":b,"global-statements":f,number:r,"numeric-constant":i,punctuation:p,string:d}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:A}},"cas-actions":w,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:A},step:l,keyword:k,function:m,format:g,altformat:h,"global-statements":f,number:r,"numeric-constant":i,punctuation:p,string:d}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return a}),"im"),lookbehind:!0,inside:A},"macro-keyword":s,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:A},"cas-actions":w,comment:u,function:m,format:g,altformat:h,"numeric-constant":i,datetime:{pattern:RegExp(a+"(?:dt?|t)"),alias:"number"},string:d,step:l,keyword:k,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(t)}return V9}var J9,mce;function ont(){if(mce)return J9;mce=1,J9=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var a=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:a,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:a,operator:r,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return J9}var X9,Ace;function snt(){if(Ace)return X9;Ace=1;var e=nL();X9=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return X9}var eR,gce;function cnt(){if(gce)return eR;gce=1,eR=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.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]+\}/}}}),t.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}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.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}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return eR}var tR,hce;function lnt(){if(hce)return tR;hce=1;var e=Lre();tR=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),(function(a){var r=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");a.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 r}),"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:a.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},a.languages["sh-session"]=a.languages.shellsession=a.languages["shell-session"]})(n)}return tR}var nR,fce;function unt(){if(fce)return nR;fce=1,nR=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return nR}var aR,bce;function dnt(){if(bce)return aR;bce=1,aR=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return aR}var rR,yce;function pnt(){if(yce)return rR;yce=1;var e=ts();rR=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),(function(a){a.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:a.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},a.languages.smarty["embedded-php"].inside.smarty.inside=a.languages.smarty,a.languages.smarty.string[0].inside.interpolation.inside.expression.inside=a.languages.smarty;var r=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return r.source}),"g");a.hooks.add("before-tokenize",function(o){var s="{literal}",l="{/literal}",u=!1;a.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(d){return d===l&&(u=!1),u?!1:(d===s&&(u=!0),!0)})}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})})(n)}return rR}var iR,wce;function mnt(){if(wce)return iR;wce=1,iR=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var a=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return a.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:a,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return iR}var oR,kce;function Ant(){if(kce)return oR;kce=1,oR=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return oR}var sR,vce;function gnt(){if(vce)return sR;vce=1,sR=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var a={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:a}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:a}},guid:a,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return sR}var cR,_ce;function hnt(){if(_ce)return cR;_ce=1;var e=ts();cR=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),(function(a){var r=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;a.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:r,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:r,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},a.hooks.add("before-tokenize",function(o){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,l="{literal}",u="{/literal}",d=!1;a.languages["markup-templating"].buildPlaceholders(o,"soy",s,function(p){return p===u&&(d=!1),d?!1:(p===l&&(d=!0),!0)})}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"soy")})})(n)}return cR}var lR,Cce;function Ece(){if(Cce)return lR;Cce=1,lR=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return lR}var uR,xce;function fnt(){if(xce)return uR;xce=1;var e=Ece();uR=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return uR}var dR,Bce;function bnt(){if(Bce)return dR;Bce=1,dR=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return dR}var pR,Ice;function ynt(){if(Ice)return pR;Ice=1,pR=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return pR}var mR,Sce;function wnt(){if(Sce)return mR;Sce=1,mR=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return mR}var AR,Dce;function knt(){if(Dce)return AR;Dce=1,AR=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var a=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+a.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,a],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return AR}var gR,Qce;function vnt(){if(Qce)return gR;Qce=1,gR=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var a={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:a,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return gR}var hR,Tce;function _nt(){if(Tce)return hR;Tce=1,hR=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=t.languages.swift})}return hR}var fR,Nce;function Cnt(){if(Nce)return fR;Nce=1,fR=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var a={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:a,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r
427
- ]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:a,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return fR}var bR,Fce;function yR(){if(Fce)return bR;Fce=1,bR=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function a(i,o,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:s}}}}function r(i){var o=n.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:a("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:a("=",o,s),"class-feature":a("\\+",o,s),standard:a("",o,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(t)}return bR}var wR,Lce;function Ent(){if(Lce)return wR;Lce=1;var e=yR(),t=mx();wR=n,n.displayName="t4Cs",n.aliases=[];function n(a){a.register(e),a.register(t),a.languages.t4=a.languages["t4-cs"]=a.languages["t4-templating"].createT4("csharp")}return wR}var kR,Rce;function Mce(){if(Rce)return kR;Rce=1;var e=Mre();kR=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return kR}var vR,Oce;function xnt(){if(Oce)return vR;Oce=1;var e=yR(),t=Mce();vR=n,n.displayName="t4Vb",n.aliases=[];function n(a){a.register(e),a.register(t),a.languages["t4-vb"]=a.languages["t4-templating"].createT4("vbnet")}return vR}var _R,Pce;function $ce(){if(Pce)return _R;Pce=1,_R=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var a=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+a.source+")?|"+a.source+"(?:[ ]+"+r.source+")?)",o=/(?:[^\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}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(u,d){d=(d||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return u});return RegExp(p,d)}n.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 i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\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:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:a,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return _R}var CR,jce;function Bnt(){if(jce)return CR;jce=1;var e=$ce();CR=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return CR}var ER,qce;function Int(){if(qce)return ER;qce=1,ER=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return ER}var xR,Gce;function Snt(){if(Gce)return xR;Gce=1,xR=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var a=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(m,A){return RegExp(m.replace(/<MOD>/g,function(){return"(?:"+a+")"}).replace(/<PAR>/g,function(){return"(?:"+r+")"}),A||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")<MOD>+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=s.phrase.inside,u={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=l.inline.inside;d.bold.inside=u,d.italic.inside=u,d.inserted.inside=u,d.deleted.inside=u,d.span.inside=u;var p=l.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark})(t)}return xR}var BR,zce;function Dnt(){if(zce)return BR;zce=1,BR=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var a=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return a})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return BR}var IR,Uce;function Qnt(){if(Uce)return IR;Uce=1,IR=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var a=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+a+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+a+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(a),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return IR}var SR,Hce;function Tnt(){if(Hce)return SR;Hce=1;var e=Loe(),t=pL();SR=n,n.displayName="tsx",n.aliases=[];function n(a){a.register(e),a.register(t),(function(r){var i=r.util.clone(r.languages.typescript);r.languages.tsx=r.languages.extend("jsx",i),delete r.languages.tsx.parameter,delete r.languages.tsx["literal-property"];var o=r.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0})(a)}return SR}var DR,Yce;function Nnt(){if(Yce)return DR;Yce=1;var e=ts();DR=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),(function(a){a.languages.tt2=a.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),a.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),a.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),a.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete a.languages.tt2.string,a.hooks.add("before-tokenize",function(r){var i=/\[%[\s\S]+?%\]/g;a.languages["markup-templating"].buildPlaceholders(r,"tt2",i)}),a.hooks.add("after-tokenize",function(r){a.languages["markup-templating"].tokenizePlaceholders(r,"tt2")})})(n)}return DR}var QR,Wce;function Fnt(){if(Wce)return QR;Wce=1;var e=ts();QR=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(a){if(a.language==="twig"){var r=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(a,"twig",r)}}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"twig")})}return QR}var TR,Kce;function Lnt(){if(Kce)return TR;Kce=1,TR=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var a=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:a}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:a,number:/^\d+$/,punctuation:/[,|:]/}},keyword:a,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return TR}var NR,Zce;function Rnt(){if(Zce)return NR;Zce=1,NR=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return NR}var FR,Vce;function Mnt(){if(Vce)return FR;Vce=1,FR=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return FR}var LR,Jce;function Ont(){if(Jce)return LR;Jce=1,LR=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return LR}var RR,Xce;function Pnt(){if(Xce)return RR;Xce=1,RR=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var a={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":a}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),a.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return RR}var MR,ele;function $nt(){if(ele)return MR;ele=1,MR=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return MR}var OR,tle;function jnt(){if(tle)return OR;tle=1,OR=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var a={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};a.variable.inside={string:a.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:a.number,boolean:a.boolean,punctuation:a.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:a}},variable:a.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return OR}var PR,nle;function qnt(){if(nle)return PR;nle=1,PR=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return PR}var $R,ale;function Gnt(){if(ale)return $R;ale=1,$R=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return $R}var jR,rle;function znt(){if(rle)return jR;rle=1,jR=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return jR}var qR,ile;function Unt(){if(ile)return qR;ile=1,qR=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return qR}var GR,ole;function Hnt(){if(ole)return GR;ole=1,GR=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return GR}var zR,sle;function Ynt(){if(sle)return zR;sle=1,zR=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return zR}var UR,cle;function Wnt(){if(cle)return UR;cle=1,UR=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var a=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+a+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+a),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+a+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+a),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+a),lookbehind:!0},RegExp(a+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+a),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+a+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in n.languages["web-idl"])o!=="class-name"&&(i[o]=n.languages["web-idl"][o]);n.languages.webidl=n.languages["web-idl"]})(t)}return UR}var HR,lle;function Knt(){if(lle)return HR;lle=1,HR=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return HR}var YR,ule;function Znt(){if(ule)return YR;ule=1,YR=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return YR}var WR,dle;function Vnt(){if(dle)return WR;dle=1,WR=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return WR}var KR,ple;function Jnt(){if(ple)return KR;ple=1,KR=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return KR}var ZR,mle;function Xnt(){if(mle)return ZR;mle=1,ZR=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function a(s,l){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":l})}var r=n.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};a("csharp",i),a("fsharp",i),a("vbnet",o)})(t)}return ZR}var VR,Ale;function eat(){if(Ale)return VR;Ale=1,VR=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return VR}var JR,gle;function tat(){if(gle)return JR;gle=1,JR=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var a=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(a).join("")},r=function(i){for(var o=[],s=0;s<i.length;s++){var l=i[s],u=!1;if(typeof l!="string"&&(l.type==="tag"&&l.content[0]&&l.content[0].type==="tag"?l.content[0].content[0].content==="</"?o.length>0&&o[o.length-1].tagName===a(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:a(l.content[0].content[1]),openedBraces:0}):o.length>0&&l.type==="punctuation"&&l.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?o[o.length-1].openedBraces--:l.type!=="comment"&&(u=!0)),(u||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var d=a(l);s<i.length-1&&(typeof i[s+1]=="string"||i[s+1].type==="plain-text")&&(d+=a(i[s+1]),i.splice(s+1,1)),s>0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(d=a(i[s-1])+d,i.splice(s-1,1),s--),/^\s+$/.test(d)?i[s]=d:i[s]=new n.Token("plain-text",d,null,d)}l.content&&typeof l.content!="string"&&r(l.content)}};n.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})})(t)}return JR}var XR,hle;function nat(){if(hle)return XR;hle=1,XR=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return XR}var e5,fle;function aat(){if(fle)return e5;fle=1,e5=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function a(d){return function(){return d}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,a(o)),l=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,a(i)),u="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,a(u)).replace(/<ALIGN>/g,a(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,a(u)).replace(/<ALIGN>/g,a(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=n.languages.zig)})})(t)}return e5}var t5,ble;function rat(){if(ble)return t5;ble=1;var e=bJe();return t5=e,e.register(wJe()),e.register(kJe()),e.register(vJe()),e.register(_Je()),e.register(CJe()),e.register(EJe()),e.register(xJe()),e.register(BJe()),e.register(IJe()),e.register(SJe()),e.register(DJe()),e.register(QJe()),e.register(TJe()),e.register(NJe()),e.register(FJe()),e.register(LJe()),e.register(RJe()),e.register(MJe()),e.register(OJe()),e.register(PJe()),e.register($Je()),e.register(jJe()),e.register(Lre()),e.register(Mre()),e.register(qJe()),e.register(GJe()),e.register(zJe()),e.register(UJe()),e.register(HJe()),e.register(YJe()),e.register(WJe()),e.register(KJe()),e.register(ZJe()),e.register(VJe()),e.register(cA()),e.register(JJe()),e.register(XJe()),e.register(eXe()),e.register(tXe()),e.register(nXe()),e.register(aXe()),e.register(rXe()),e.register(iXe()),e.register(oXe()),e.register(oF()),e.register(sXe()),e.register(mx()),e.register(cXe()),e.register(lXe()),e.register(uXe()),e.register(dXe()),e.register(pXe()),e.register(mXe()),e.register(AXe()),e.register(gXe()),e.register(hXe()),e.register(fXe()),e.register(bXe()),e.register(yXe()),e.register(wXe()),e.register(kXe()),e.register(vXe()),e.register(_Xe()),e.register(CXe()),e.register(EXe()),e.register(xXe()),e.register(BXe()),e.register(IXe()),e.register(SXe()),e.register(DXe()),e.register(QXe()),e.register(TXe()),e.register(NXe()),e.register(FXe()),e.register(LXe()),e.register(RXe()),e.register(MXe()),e.register(OXe()),e.register(PXe()),e.register($Xe()),e.register(jXe()),e.register(qXe()),e.register(GXe()),e.register(zXe()),e.register(UXe()),e.register(HXe()),e.register(YXe()),e.register(WXe()),e.register(KXe()),e.register(ZXe()),e.register(VXe()),e.register(JXe()),e.register(XXe()),e.register(eet()),e.register(M6()),e.register(tet()),e.register(net()),e.register(aet()),e.register(ret()),e.register(iet()),e.register(oet()),e.register(set()),e.register(cet()),e.register(uet()),e.register(det()),e.register(pet()),e.register(met()),e.register(Aet()),e.register(get()),e.register(het()),e.register(fet()),e.register(bet()),e.register(nL()),e.register(yet()),e.register(gx()),e.register(wet()),e.register(ket()),e.register(vet()),e.register(_et()),e.register(Cet()),e.register(Eet()),e.register(xet()),e.register(gL()),e.register(Bet()),e.register(Iet()),e.register(Det()),e.register(Loe()),e.register(Qet()),e.register(Tet()),e.register(Net()),e.register(Fet()),e.register(Let()),e.register(Ret()),e.register(Met()),e.register(Oet()),e.register(Pet()),e.register($et()),e.register(jet()),e.register(qet()),e.register(Get()),e.register(zet()),e.register(Uet()),e.register(Het()),e.register(Die()),e.register(Yet()),e.register(Wet()),e.register(Ket()),e.register(ts()),e.register(Zet()),e.register(Vet()),e.register(Jet()),e.register(Xet()),e.register(ett()),e.register(ttt()),e.register(ntt()),e.register(att()),e.register(rtt()),e.register(itt()),e.register(ott()),e.register(stt()),e.register(ctt()),e.register(ltt()),e.register(utt()),e.register(dtt()),e.register(ptt()),e.register(mtt()),e.register(Att()),e.register(gtt()),e.register(htt()),e.register(ftt()),e.register(btt()),e.register(ytt()),e.register(wtt()),e.register(ktt()),e.register(vtt()),e.register(_tt()),e.register(Ctt()),e.register(Ett()),e.register(xtt()),e.register(Btt()),e.register(hx()),e.register(Itt()),e.register(Stt()),e.register(Dtt()),e.register(Qtt()),e.register(Ttt()),e.register(Ntt()),e.register(Ftt()),e.register(Ltt()),e.register(Rtt()),e.register(Mtt()),e.register(Ott()),e.register(Ptt()),e.register($tt()),e.register(jtt()),e.register(qtt()),e.register(Gtt()),e.register(ztt()),e.register(Utt()),e.register(Htt()),e.register(Ytt()),e.register(Wtt()),e.register(Ktt()),e.register(Ztt()),e.register(Vtt()),e.register(Jtt()),e.register(Xtt()),e.register(ent()),e.register(tnt()),e.register(nnt()),e.register(ant()),e.register(Ax()),e.register(rnt()),e.register(int()),e.register(ont()),e.register(snt()),e.register(QL()),e.register(cnt()),e.register(lnt()),e.register(unt()),e.register(dnt()),e.register(pnt()),e.register(mnt()),e.register(Ant()),e.register(gnt()),e.register(hnt()),e.register(fnt()),e.register(bnt()),e.register(ynt()),e.register(XN()),e.register(wnt()),e.register(knt()),e.register(vnt()),e.register(_nt()),e.register(Cnt()),e.register(Ent()),e.register(yR()),e.register(xnt()),e.register(Bnt()),e.register(Int()),e.register(Snt()),e.register(Dnt()),e.register(Qnt()),e.register(Tnt()),e.register(Nnt()),e.register(Ece()),e.register(Fnt()),e.register(pL()),e.register(Lnt()),e.register(Rnt()),e.register(Mnt()),e.register(Ont()),e.register(Pnt()),e.register($nt()),e.register(Mce()),e.register(jnt()),e.register(qnt()),e.register(Gnt()),e.register(znt()),e.register(Unt()),e.register(Hnt()),e.register(Ynt()),e.register(Wnt()),e.register(Knt()),e.register(Znt()),e.register(Vnt()),e.register(Jnt()),e.register(Xnt()),e.register(eat()),e.register(tat()),e.register($ce()),e.register(nat()),e.register(aat()),t5}var iat=rat(),n5=qVe(Zs(iat),yJe);n5.supportedLanguages=GVe;const oat={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},sat={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},cat=te.createContext({code:""}),a5=({code:e,language:t,showLineNumbers:n=!1,className:a,children:r,...i})=>Q.jsx(cat.Provider,{value:{code:e},children:Q.jsx("div",{className:yt("relative w-full overflow-hidden rounded-md border bg-background text-foreground",a),dir:"ltr",...i,children:Q.jsxs("div",{className:"relative",children:[Q.jsx(n5,{className:"overflow-hidden dark:hidden",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:t,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:n,style:sat,children:e}),Q.jsx(n5,{className:"hidden overflow-hidden dark:block",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:t,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:n,style:oat,children:e}),r&&Q.jsx("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:r})]})})});function lat(e,t="size-4"){return{web_search:Q.jsx(MW,{className:t}),web_fetch:Q.jsx(Hd,{className:t}),code_execution:Q.jsx(P6e,{className:t}),image_generation:Q.jsx(q6e,{className:t})}[e]??Q.jsx(pLe,{className:t})}const uat=({className:e,...t})=>Q.jsx(Y4,{className:yt("not-prose mb-4 w-full rounded-md border",e),...t}),dat=({status:e})=>{const{t}=fa(["tools_ui"]),n={"input-streaming":t("pending"),"input-available":t("running"),"output-available":t("completed"),"output-error":t("error")},a={"input-streaming":Q.jsx(M6e,{className:"size-4"}),"input-available":Q.jsx(O6e,{className:"size-4 animate-pulse"}),"output-available":Q.jsx(F6e,{className:"size-4 text-green-600"}),"output-error":Q.jsx(LW,{className:"size-4 text-red-600"})};return Q.jsxs(mZe,{className:"gap-1.5 rounded-full text-xs",variant:"secondary",children:[a[e],n[e]]})},pat=({className:e,type:t,state:n,toolName:a,...r})=>{const i=a||(t.startsWith("tool-")?t.slice(5):t),o=lat(i,"size-4 text-muted-foreground");return Q.jsxs(W4,{className:yt("flex w-full items-center justify-between gap-4 p-3",e),...r,children:[Q.jsxs("div",{className:"flex items-center gap-2",children:[o,Q.jsx("span",{className:"font-medium text-sm",children:i}),Q.jsx(dat,{status:n})]}),Q.jsx(Y0,{className:"size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})},mat=({className:e,...t})=>Q.jsx(K4,{className:yt("data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}),yle=e=>{if(typeof e=="string")try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}return JSON.stringify(e,null,2)},Aat=({className:e,input:t,...n})=>{const{t:a}=fa(["tools_ui"]);return Q.jsxs("div",{className:yt("space-y-2 overflow-hidden p-4",e),...n,children:[Q.jsx("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:a("parameters")}),Q.jsx("div",{className:"rounded-md bg-muted/50",children:Q.jsx(a5,{code:yle(t),language:"json"})})]})},gat=({className:e,output:t,errorText:n,...a})=>{const{t:r}=fa(["tools_ui"]),[i,o]=te.useState(!1);if(!(t||n))return null;const s=()=>{n&&navigator.clipboard.writeText(n).then(()=>{o(!0),setTimeout(()=>o(!1),2e3)})},l=()=>{if(typeof t=="string")try{const u=JSON.parse(t);return Q.jsx(a5,{code:JSON.stringify(u,null,2),language:"json"})}catch{return Q.jsx("div",{className:"p-4 text-sm whitespace-pre-wrap",dir:"ltr",children:t})}return typeof t=="object"&&t!==null&&!("$$typeof"in t)?Q.jsx(a5,{code:JSON.stringify(t,null,2),language:"json"}):t};return Q.jsxs("div",{className:yt("space-y-2 p-4",e),...a,children:[Q.jsx("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:r(n?"error":"result")}),n&&Q.jsxs(rN,{children:[Q.jsx(uae,{asChild:!0,children:Q.jsxs(Nr,{variant:"destructive",size:"sm",children:[Q.jsx(LW,{className:"mr-1.5 size-4"}),r("view_error")]})}),Q.jsxs(iN,{className:"max-w-2xl",children:[Q.jsx(dae,{children:Q.jsx(pae,{className:"text-destructive",children:r("tool_error")})}),Q.jsxs("div",{className:"space-y-4",children:[Q.jsx("div",{className:"max-h-96 overflow-auto rounded-md bg-destructive/10 p-4 text-destructive text-sm",children:Q.jsx("pre",{className:"whitespace-pre-wrap break-words",children:yle(n)})}),Q.jsxs(Nr,{variant:"outline",size:"sm",onClick:s,children:[Q.jsx(b1,{className:"mr-1.5 size-4"}),r(i?"copied":"copy_error")]})]})]})]}),t&&!n&&Q.jsx("div",{className:"overflow-x-auto rounded-md bg-muted/50 text-foreground text-xs [&_table]:w-full line-clamp-[20]",children:Q.jsx("div",{children:l()})})]})};function wle({part:e,message:t,chat:n,toolComponents:a,showToolCalls:r}){const i=e;let o=i.toolName;if(!o&&e.type.startsWith("tool-")){const s=e.type.slice(5);s!=="invocation"&&s!=="result"&&(o=s)}if(!o&&i.toolCallId&&Array.isArray(t.parts))try{const s=t.parts.find(l=>l&&typeof l=="object"&&l.toolCallId===i.toolCallId&&(l.toolName||l.type&&l.type.startsWith("tool-")));s&&(o=s.toolName||(s.type.startsWith("tool-")?s.type.slice(5):void 0))}catch(s){console.error("Error resolving toolName in ToolPart:",s)}if(a&&o&&a[o]){const s=a[o];return Q.jsx(s,{part:e,message:t,chat:n})}return r?Q.jsxs(uat,{className:"animate-in-bubble",children:[Q.jsx(pat,{type:e.type,state:i.state,toolName:o}),Q.jsxs(mat,{children:[Q.jsx(Aat,{input:i.input}),(i.state==="output-available"||i.state==="output-error")&&Q.jsx(gat,{errorText:i.errorText,output:i.output})]})]}):null}function kle({part:e,message:t}){const{t:n}=fa(["chat","admin"]),a=e,r=(a.mediaType||a.media_type)?.startsWith("image/"),i=a.filename??"file",o=s=>{if(s.preventDefault(),!a.url)return;const l=document.createElement("a");l.href=a.url,l.download=i,document.body.appendChild(l),l.click(),document.body.removeChild(l)};return Q.jsx("div",{className:"py-2 animate-in-bubble",children:Q.jsx(rZ,{from:t.role,children:Q.jsx(iZ,{isPlain:!0,children:r?Q.jsxs("div",{className:"group relative max-w-[280px] rounded-xl overflow-hidden border border-border/5 transition-all duration-300 hover:border-primary/30 hover:shadow-[0_0_20px_var(--glow)]",children:[Q.jsx("img",{src:a.url,alt:i,className:"max-h-[280px] w-full rounded-xl object-cover transition-transform duration-500 group-hover:scale-105"}),Q.jsxs("div",{className:"absolute inset-x-0 bottom-0 p-3 bg-gradient-to-t from-black/80 via-black/40 to-transparent opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-between",children:[Q.jsx("span",{className:"text-[10px] text-white truncate max-w-[150px] font-medium drop-shadow-sm",children:i}),Q.jsx("button",{onClick:o,className:"p-1.5 bg-white/20 hover:bg-white/30 backdrop-blur-md rounded-full text-white transition-all hover:scale-110 active:scale-95",title:n("download","Download"),children:Q.jsx(Hd,{className:"size-4"})})]}),Q.jsx("div",{className:"absolute top-2 right-2 md:hidden",children:Q.jsx("button",{onClick:o,className:"p-1.5 bg-black/40 backdrop-blur-md rounded-full text-white",children:Q.jsx(Hd,{className:"size-4"})})})]}):Q.jsx("div",{className:"flex flex-col gap-1.5",children:Q.jsxs("div",{className:"group inline-flex items-center gap-3 rounded-xl p-3 text-sm transition-all duration-300 bg-secondary/10 border border-border/5 hover:border-primary/30 hover:bg-secondary/20 hover:shadow-[0_0_15px_var(--glow)]",children:[Q.jsx("div",{className:"p-2.5 rounded-lg bg-background/50 border border-border/10 group-hover:border-primary/20 group-hover:text-primary transition-colors",children:Q.jsx(RW,{className:"size-4 shrink-0"})}),Q.jsxs("div",{className:"flex flex-col min-w-0 mr-4",children:[Q.jsx("span",{className:"truncate max-w-[180px] font-semibold text-foreground/90 leading-none mb-1 group-hover:text-foreground transition-colors",children:i}),(a.mediaType||a.media_type)&&Q.jsx("span",{className:"text-[10px] text-muted-foreground uppercase font-bold tracking-widest opacity-60",children:(a.mediaType||a.media_type).split("/").pop()})]}),Q.jsx("button",{onClick:o,className:"ml-auto p-2 hover:bg-primary hover:text-primary-foreground rounded-lg text-muted-foreground transition-all active:scale-90",title:n("download","Download"),children:Q.jsx(Hd,{className:"size-4"})})]})})})})})}const pi={MessageList:rK,PromptInput:tZ,WelcomeScreen:aZ,TextPart:hne,ReasoningPart:kne,ToolPart:wle,FilePart:kle,toolComponents:void 0,textComponents:void 0,remarkPlugins:void 0,rehypePlugins:void 0,history:{enabled:!0,showDelete:!0,showRename:!0,showShare:!0,showPin:!0},welcome:{icon:null},threadActions:{feedback:!0,retry:!0},composer:{attachments:{enabled:!0}},theme:void 0,disclaimer:void 0,app:{name:void 0,adminTitle:void 0,cacheNamespace:"gentiq"},i18n:void 0},vle=te.createContext(pi);function Or(){return te.useContext(vle)}function _le({components:e,history:t,welcome:n,threadActions:a,composer:r,theme:i,disclaimer:o,app:s,i18n:l,children:u}){const d=te.useMemo(()=>({...pi,...e,toolComponents:e?.toolComponents??pi.toolComponents,history:t?{...pi.history,...t}:pi.history,welcome:n?{...pi.welcome,...n}:pi.welcome,threadActions:a?{...pi.threadActions,...a}:pi.threadActions,composer:r?{...pi.composer,...r,attachments:r.attachments?{...pi.composer?.attachments,...r.attachments}:pi.composer?.attachments}:pi.composer,theme:i??pi.theme,disclaimer:o??pi.disclaimer,app:s?{...pi.app,...s}:pi.app,i18n:l??pi.i18n}),[e,t,n,a,r,i,o,s,l]);return Q.jsx(vle.Provider,{value:d,children:u})}const hat={theme:"system",setTheme:()=>null,accent:void 0,setAccent:()=>null,radius:void 0,setRadius:()=>null},Cle=te.createContext(hat);function Ele({children:e,defaultTheme:t="system",storageKey:n="chatbot-theme",...a}){const[r,i]=te.useState(()=>window.localStorage.getItem(n)??t),[o,s]=te.useState(()=>window.localStorage.getItem(n+"-accent")||void 0),[l,u]=te.useState(()=>window.localStorage.getItem(n+"-radius")||"1.25rem"),{theme:d}=Or(),{i18n:p}=fa(["theme"]);te.useEffect(()=>{const A=window.document.documentElement;if(A.classList.remove("light","dark"),r==="system"){const g=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";A.classList.add(g);return}A.classList.add(r)},[r]),te.useEffect(()=>{const A=window.document.documentElement,g=p.language?.split("-")[0]||p.language;let h=d?.typography?.fontFamily;if(typeof h=="object"&&h!==null&&(h=h[p.language]||h[g]||h.en||Object.values(h)[0]),h){const y=h.includes(" ")&&!h.startsWith("'")&&!h.startsWith('"')?`"${h}"`:h;A.style.setProperty("--gentiq-font-family",y),A.style.fontFamily=y,window.document.body&&(window.document.body.style.fontFamily=y)}const f=l||(typeof d?.radius=="number"?`${d.radius}px`:d?.radius);f!==void 0&&A.style.setProperty("--radius",f);const b=o||d?.accent;b!==void 0&&A.style.setProperty("--gentiq-primary",b),window.document.documentElement.dir=p.dir()},[d,p,p.language,o,l]);const m={theme:r,setTheme:A=>{window.localStorage.setItem(n,A),i(A)},accent:o,setAccent:A=>{A?window.localStorage.setItem(n+"-accent",A):window.localStorage.removeItem(n+"-accent"),s(A)},radius:l,setRadius:A=>{A?window.localStorage.setItem(n+"-radius",A):window.localStorage.removeItem(n+"-radius"),u(A)}};return Q.jsx(Cle.Provider,{...a,value:m,children:e})}const zw=()=>te.useContext(Cle);var fat=(e,t,n,a,r,i,o,s)=>{let l=document.documentElement,u=["light","dark"];function d(A){(Array.isArray(e)?e:[e]).forEach(g=>{let h=g==="class",f=h&&i?r.map(b=>i[b]||b):r;h?(l.classList.remove(...f),l.classList.add(i&&i[A]?i[A]:A)):l.setAttribute(g,A)}),p(A)}function p(A){s&&u.includes(A)&&(l.style.colorScheme=A)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)d(a);else try{let A=localStorage.getItem(t)||n,g=o&&A==="system"?m():A;d(g)}catch{}},bat=re.createContext(void 0),yat={setTheme:e=>{},themes:[]},wat=()=>{var e;return(e=re.useContext(bat))!=null?e:yat};re.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:r,defaultTheme:i,value:o,themes:s,nonce:l,scriptProps:u})=>{let d=JSON.stringify([n,t,i,e,s,o,a,r]).slice(1,-1);return re.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${fat.toString()})(${d})`}})});const kat=({...e})=>{const{theme:t="system"}=wat();return Q.jsx(B5e,{theme:t,className:"toaster group",icons:{success:Q.jsx(L6e,{className:"size-4"}),info:Q.jsx(G6e,{className:"size-4"}),warning:Q.jsx(uLe,{className:"size-4"}),error:Q.jsx(Y6e,{className:"size-4"}),loading:Q.jsx(O4,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...e})},{slice:vat,forEach:_at}=[];function Cat(e){return _at.call(vat.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function Eat(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const xle=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,xat=function(e,t){const a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},r=encodeURIComponent(t);let i=`${e}=${r}`;if(a.maxAge>0){const o=a.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(o)}`}if(a.domain){if(!xle.test(a.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${a.domain}`}if(a.path){if(!xle.test(a.path))throw new TypeError("option path is invalid");i+=`; Path=${a.path}`}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly&&(i+="; HttpOnly"),a.secure&&(i+="; Secure"),a.sameSite)switch(typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a.partitioned&&(i+="; Partitioned"),i},Ble={create(e,t,n,a){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+n*60*1e3)),a&&(r.domain=a),document.cookie=xat(e,t,r)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let a=0;a<n.length;a++){let r=n[a];for(;r.charAt(0)===" ";)r=r.substring(1,r.length);if(r.indexOf(t)===0)return r.substring(t.length,r.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var Bat={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return Ble.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:a,cookieDomain:r,cookieOptions:i}=t;n&&typeof document<"u"&&Ble.create(n,e,a,r,i)}},Iat={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const i=a.substring(1).split("&");for(let o=0;o<i.length;o++){const s=i[o].indexOf("=");s>0&&i[o].substring(0,s)===t&&(n=i[o].substring(s+1))}}return n}},Sat={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,a;if(typeof window<"u"){const{hash:r}=window.location;if(r&&r.length>2){const i=r.substring(1);if(t){const o=i.split("&");for(let s=0;s<o.length;s++){const l=o[s].indexOf("=");l>0&&o[s].substring(0,l)===t&&(a=o[s].substring(l+1))}}if(a)return a;if(!a&&n>-1){const o=r.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?o[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return a}};let ef=null;const Ile=()=>{if(ef!==null)return ef;try{if(ef=typeof window<"u"&&window.localStorage!==null,!ef)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{ef=!1}return ef};var Dat={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&Ile())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&Ile()&&window.localStorage.setItem(n,e)}};let tf=null;const Sle=()=>{if(tf!==null)return tf;try{if(tf=typeof window<"u"&&window.sessionStorage!==null,!tf)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{tf=!1}return tf};var Qat={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&Sle())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&Sle()&&window.sessionStorage.setItem(n,e)}},Tat={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:a,language:r}=navigator;if(n)for(let i=0;i<n.length;i++)t.push(n[i]);a&&t.push(a),r&&t.push(r)}return t.length>0?t:void 0}},Nat={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const a=t||(typeof document<"u"?document.documentElement:null);return a&&typeof a.getAttribute=="function"&&(n=a.getAttribute("lang")),n}},Fat={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},Lat={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,a=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(a)return a[n]}};let Dle=!1;try{document.cookie,Dle=!0}catch{}const Qle=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Dle||Qle.splice(1,1);const Rat=()=>({order:Qle,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class r5{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=Cat(n,this.options||{},Rat()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=r=>r.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(Bat),this.addDetector(Iat),this.addDetector(Dat),this.addDetector(Qat),this.addDetector(Tat),this.addDetector(Nat),this.addDetector(Fat),this.addDetector(Lat),this.addDetector(Sat)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(a=>{if(this.detectors[a]){let r=this.detectors[a].lookup(this.options);r&&typeof r=="string"&&(r=[r]),r&&(n=n.concat(r))}}),n=n.filter(a=>a!=null&&!Eat(a)).map(a=>this.options.convertDetectedLanguage(a)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(a=>{this.detectors[a]&&this.detectors[a].cacheUserLanguage(t,this.options)}))}}r5.type="languageDetector";const i5={en:{sidebar:{new_conversation:"New conversation",tooltip_new_conversation:"Start a new conversation",delete_conversation:"Delete",delete_confirm_title:"Delete conversation?",delete_confirm_description:"Are you sure you want to delete this chat? This action cannot be undone.",cancel:"Cancel",delete:"Delete",chat_deleted_success:"Chat deleted successfully",logout:"Logout",new_chat:"New Chat",rename_conversation:"Rename",rename_success:"Conversation renamed successfully",rename_failed:"Failed to rename conversation",search_conversations:"Search conversations...",save:"Save",no_conversations:"No conversations yet",loading_more:"Loading more...",pinned_success:"Conversation pinned",unpinned_success:"Conversation unpinned",pin_failed:"Failed to pin conversation",share_success:"Link copied",share_description:"The shareable link has been copied to your clipboard.",share_failed:"Failed to generate share link",pin_conversation:"Pin",unpin_conversation:"Unpin",share_conversation:"Share"},chat:{tools:"Tools",error:"Error:",input_placeholder:"Ask something...",insufficient_balance:"Insufficient balance. Please recharge your account to continue.",regenerate:"Regenerate",retry:"Retry",copy:"Copy",like:"Like",dislike:"Dislike",attach_file:"Attach file",remove_file:"Remove file",used_sources:"Used {{count}} sources",welcome:{title:"Hello! How can I help you today?",subtitle:"Ask me anything and I'll do my best to help.",suggestions:["What can you help me with?","Tell me something interesting","Help me write an email","Explain a concept to me"]},disclaimer:"AI can make mistakes. Check important info."},tools_ui:{pending:"Pending",running:"Running",completed:"Completed",error:"Error",parameters:"Parameters",result:"Result",view_error:"View Error",tool_error:"Tool Error",copied:"Copied!",copy_error:"Copy Error"},login:{login_tab:"Login",signup_tab:"Sign Up",phone:"Phone",phone_placeholder:"Phone number",password:"Password",name:"Name",name_placeholder:"First Name",surname:"Surname",surname_placeholder:"Last Name",loading:"Loading...",logging_in:"Logging in...",signing_up:"Signing up...",login_button:"Login",signup_button:"Sign Up"},theme:{toggle:"Change theme",light:"Switch to light theme",dark:"Switch to dark theme",system:"Switch to system theme"},admin:{loading:"Loading...",retry:"Retry",save:"Save",saving:"Saving...",cancel:"Cancel",delete:"Delete",edit:"Edit",search:"Search",search_placeholder:"Search...",no_data:"No data available",loading_more:"Loading more...",confirm_delete:"Are you sure you want to delete?",error_loading:"Error loading data",dashboard:{title:"Admin Panel",logout:"Logout",tabs:{analytics:"Analytics",chat_history:"Chats",users:"Users",admins:"Admins"}},analytics:{title:"Analytics & Statistics",days:"{{count}} Days",total_users:"Total Users",total_threads:"Total Threads",total_messages:"Total Messages",total_token_usage:"Total Token Usage",threads_chart:"Threads",messages_chart:"Messages",token_usage_chart:"Token Usage",active_users:"Active Users",conversations:"conversations",threads:"threads",feedback:"User Feedback",total_feedback:"Total Feedback",positive:"Positive",negative:"Negative",loading_analytics:"Loading analytics...",error_loading:"Error loading data"},chat_history:{title:"Chat History Management",search_placeholder:"Search by name, phone, thread title, or ID...",search_button:"Search",threads_list:"Threads List",thread_count:"{{count}}",no_thread_title:"Untitled conversation",messages:"Messages",messages_for:"Messages for: {{title}}",select_thread:"Select a conversation to view",no_threads:"No conversations found",empty_thread:"This conversation is empty",loading_threads:"Loading...",loading_messages:"Loading messages...",user_label:"User",assistant_label:"AI Assistant",input_tokens:"Input: {{value}}",output_tokens:"Output: {{value}}",total_tokens:"Total: {{value}}",all_feedbacks:"All Conversations",liked_feedbacks:"Liked 👍",disliked_feedbacks:"Disliked 👎",any_feedback:"With Feedback",output_available:"Output Available",running:"Running...",unnamed_file:"Unnamed File",download_file:"Download File"},users:{title:"User Management",user_count:"User count: {{count}}",add_user:"Add New User",edit_user:"Edit User",phone:"Phone Number",phone_placeholder:"09123456789",name:"Name",surname:"Surname",initial_tokens:"Initial Tokens (optional)",initial_requests:"Initial Requests (optional)",balance:"Balance",requests_label:"Requests",tokens_label:"Tokens",token_limit:"Token Limit",request_limit:"Request Limit",tokens_usage:"Tokens Usage",requests_usage:"Requests Usage",actions:"Actions",copy_token:"Copy Token (auto-refresh)",token_copied:"Token copied successfully",no_token:"No token found for this user",recharge:"Recharge Balance",update_balance:"Update Balance",update_balance_for:"Update Balance for",token_count:"Token Count",request_count:"Request Count",updating:"Updating...",no_users:"No users found.",confirm_delete_user:"Are you sure you want to delete this user?",tokens_exceed_limit:"Tokens cannot exceed the specified limit",requests_exceed_limit:"Requests cannot exceed the specified limit",metadata:"Metadata (JSON)",invalid_json:"Invalid JSON format"},admins:{title:"Admin Management",admin_count:"Admin count: {{count}}",add_admin:"Add New Admin",edit_admin:"Edit Admin",username:"Username",name:"Name",password:"Password",password_edit:"New Password (leave empty to keep current)",permissions:"Permissions",perm_chat_history:"Chat History",perm_admin_management:"Admin Management",perm_user_management:"User Management",perm_analytics:"Analytics",no_admins:"No admins found.",confirm_delete_admin:"Are you sure you want to delete this admin?"},errors:{access_denied_title:"Access Denied",access_denied_message:"You don't have the necessary permissions to access this page. You can contact the administrator!",back_to_dashboard:"Back to Dashboard"},login:{title:"Admin Panel",setup_title:"Initial Setup",setup_description:"No admin account exists yet. Set a password for the default admin user to get started.",set_password:"Set Password",set_password_placeholder:"Choose a strong password",confirm_password:"Confirm Password",confirm_password_placeholder:"Re-enter the password",passwords_mismatch:"Passwords do not match",password_too_short:"Password must be at least 4 characters",create_admin:"Create Admin & Login",setting_up:"Setting up...",username:"Username",username_placeholder:"Username",password:"Password",password_placeholder:"••••••••",submit:"Login",logging_in:"Logging in...",error:"Login failed",copyright:"© 2026 AI Chatbot Platform"}},settings:{title:"Settings",sections:{profile:"Profile",general:"General",account:"Account"},profile:{title:"Profile Information",subtitle:"Update your personal details below.",name:"First Name",surname:"Last Name",phone:"Phone Number",password:"New Password",password_placeholder:"Leave empty to keep current",save:"Save Changes",saving:"Saving...",success:"Profile updated successfully",error:"Failed to update profile",select_placeholder:"Select an option"},general:{title:"General Settings",subtitle:"Configure look and feel and language.",theme:"Theme",language:"Language",themes:{light:"Light",dark:"Dark",system:"System"},accent:"Accent Color",radius:"Rounded Corners",radius_levels:{sharp:"Sharp",round:"Round"},languages:{en:"English",fa:"Persian"}},account:{title:"Account & Usage",subtitle:"Monitor your quotas and manage your session.",balance:"Current Balance",tokens:"Tokens",requests:"Requests",logout:"Logout",logout_confirm:"Are you sure you want to logout?",last_recharge:"Last balance update on"}},errors:{unauthorized:"Authentication required. Please login again.",invalid_credentials:"Invalid phone number or password.",phone_required:"Phone number is required.",password_required:"Password is required.",name_surname_required:"Name and surname are required.",phone_already_exists:"This phone number is already registered.",invalid_token:"Your session has expired. Please login again.",user_not_found:"User not found.",insufficient_balance:"Insufficient balance. Please recharge your account.",me_update_failed:"Failed to update profile information.",thread_not_found:"Conversation not found.",access_denied:"You do not have permission to perform this action.",feedback_save_failed:"Failed to save feedback.",thread_update_failed:"Failed to update conversation.",thread_delete_failed:"Failed to delete conversation.",attachment_not_found:"Attachment not found.",thread_share_failed:"Failed to share conversation.",admin_already_exists:"Admin with this username already exists.",admin_not_found:"Admin not found.",cannot_delete_self:"You cannot delete your own admin account.",admin_update_failed:"Failed to update admin information.",internal_error:"An internal server error occurred. Please try again later.",validation_error:"Invalid data provided. Please check your input.",not_found:"The requested resource was not found."}},fa:{sidebar:{new_conversation:"گفتگوی جدید",tooltip_new_conversation:"شروع یک گفتگوی جدید",delete_conversation:"حذف",delete_confirm_title:"حذف گفتگو؟",delete_confirm_description:"آیا از حذف این گفتگو اطمینان دارید؟ این عمل قابل بازگشت نیست.",cancel:"انصراف",delete:"حذف",chat_deleted_success:"گفتگو با موفقیت حذف شد",logout:"خروج",new_chat:"گفتگوی جدید",rename_conversation:"تغییر نام",rename_success:"نام گفتگو با موفقیت تغییر کرد",rename_failed:"خطا در تغییر نام گفتگو",search_conversations:"جستجوی گفتگوها...",save:"ذخیره",no_conversations:"هنوز گفتگویی ندارید",loading_more:"در حال بارگذاری...",pinned_success:"گفتگو پین شد",unpinned_success:"گفتگو از حالت پین خارج شد",pin_failed:"خطا در پین کردن گفتگو",share_success:"لینک کپی شد",share_description:"لینک اشتراک‌گذاری در حافظه موقت کپی شد.",share_failed:"خطا در ایجاد لینک اشتراک‌گذاری",pin_conversation:"پین",unpin_conversation:"برداشتن پین",share_conversation:"اشتراک‌گذاری"},chat:{tools:"ابزارها",error:"خطا:",input_placeholder:"سوالتو اینجا بپرس...",insufficient_balance:"موجودی حساب شما کافی نیست. لطفا برای ادامه، حساب خود را شارژ کنید.",regenerate:"تولید مجدد",retry:"تلاش مجدد",copy:"کپی",like:"پسندیدم",dislike:"نپسندیدم",attach_file:"پیوست فایل",remove_file:"حذف فایل",used_sources:"از {{count}} منبع استفاده شد",welcome:{title:"سلام! چطور می‌تونم کمکت کنم؟",subtitle:"هر سوالی داری بپرس، تمام تلاشمو می‌کنم کمکت کنم.",suggestions:["چه کارهایی می‌تونی انجام بدی؟","یه چیز جالب بهم بگو","کمکم کن یه ایمیل بنویسم","یه مفهوم رو برام توضیح بده"]},disclaimer:"هوش مصنوعی ممکن است اشتباه کند. اطلاعات مهم را بررسی کنید."},tools_ui:{pending:"در انتظار",running:"در حال اجرا",completed:"تکمیل شده",error:"خطا",parameters:"پارامترها",result:"نتیجه",view_error:"نمایش خطا",tool_error:"خطای ابزار",copied:"کپی شد!",copy_error:"کپی خطا"},login:{login_tab:"ورود",signup_tab:"ثبت نام",phone:"شماره تلفن",phone_placeholder:"شماره تلفن",password:"رمز عبور",name:"نام",name_placeholder:"نام",surname:"نام خانوادگی",surname_placeholder:"نام خانوادگی",logging_in:"در حال ورود...",signing_up:"در حال ثبت نام...",login_button:"ورود",signup_button:"ثبت نام"},theme:{toggle:"تغییر تم",light:"تغییر به تم روشن",dark:"تغییر به تم تاریک",system:"تغییر به تم سیستم"},admin:{loading:"در حال بارگذاری...",retry:"تلاش مجدد",save:"ذخیره",saving:"در حال ذخیره...",cancel:"انصراف",delete:"حذف",edit:"ویرایش",search:"جستجو",search_placeholder:"جستجو...",no_data:"داده‌ای موجود نیست",loading_more:"در حال بارگذاری بیشتر...",confirm_delete:"آیا از حذف اطمینان دارید؟",error_loading:"خطا در بارگذاری داده‌ها",dashboard:{title:"پنل مدیریت",logout:"خروج",tabs:{analytics:"تحلیل و آمار",chat_history:"گفتگوها",users:"کاربران",admins:"ادمین‌ها"}},analytics:{title:"تحلیل و آمار",days:"{{count}} روز",total_users:"تعداد کاربران",total_threads:"تعداد گفتگوها",total_messages:"تعداد پیام‌ها",total_token_usage:"مصرف کل توکن",threads_chart:"گفتگوها",messages_chart:"پیام‌ها",token_usage_chart:"مصرف توکن",active_users:"کاربران فعال",conversations:"گفتگو",threads:"گفتگو",feedback:"نظرات کاربران",total_feedback:"کل نظرات",positive:"مثبت",negative:"منفی",loading_analytics:"در حال بارگذاری تحلیل‌ها...",error_loading:"خطا در بارگذاری داده‌ها"},chat_history:{title:"مدیریت تاریخچه گفتگوها",search_placeholder:"جستجو بر اساس نام، شماره تماس، عنوان گفتگو یا شناسه...",search_button:"جستجو",threads_list:"لیست گفتگوها",thread_count:"{{count}}",no_thread_title:"گفتگو بدون عنوان",messages:"پیام‌ها",messages_for:"پیام‌های گفتگو: {{title}}",select_thread:"یک گفتگو را برای مشاهده انتخاب کنید",no_threads:"هیچ گفتگویی یافت نشد",empty_thread:"این گفتگو خالی است",loading_threads:"در حال بارگذاری...",loading_messages:"در حال بارگذاری پیام‌ها...",user_label:"کاربر",assistant_label:"دستیار هوشمند",input_tokens:"ورودی: {{value}}",output_tokens:"خروجی: {{value}}",total_tokens:"کل: {{value}}",all_feedbacks:"همه گفتگوها",liked_feedbacks:"پسندیده شده 👍",disliked_feedbacks:"نپسندیده شده 👎",any_feedback:"دارای بازخورد",output_available:"خروجی موجود است",running:"در حال اجرا...",unnamed_file:"فایل بدون نام",download_file:"دانلود فایل"},users:{title:"مدیریت کاربران",user_count:"تعداد کاربران: {{count}}",add_user:"افزودن کاربر جدید",edit_user:"ویرایش کاربر",phone:"شماره تلفن",phone_placeholder:"۰۹۱۲۳۴۵۶۷۸۹",name:"نام",surname:"نام خانوادگی",initial_tokens:"تعداد توکن اولیه (اختیاری)",initial_requests:"تعداد درخواست اولیه (اختیاری)",balance:"موجودی",requests_label:"درخواست‌ها",tokens_label:"توکن‌ها",token_limit:"سقف توکن",request_limit:"سقف درخواست",tokens_usage:"میزان مصرف توکن",requests_usage:"میزان مصرف درخواست",actions:"عملیات",copy_token:"کپی توکن (با بروزرسانی خودکار)",token_copied:"توکن با موفقیت کپی شد",no_token:"توکنی برای این کاربر یافت نشد",recharge:"شارژ موجودی",update_balance:"بروزرسانی موجودی",update_balance_for:"بروزرسانی موجودی",token_count:"تعداد توکن",request_count:"تعداد درخواست",updating:"در حال بروزرسانی...",no_users:"هیچ کاربری یافت نشد.",confirm_delete_user:"آیا از حذف این کاربر اطمینان دارید؟",tokens_exceed_limit:"تعداد توکن نمی‌تواند بیشتر از سقف مجاز باشد",requests_exceed_limit:"تعداد درخواست نمی‌تواند بیشتر از سقف مجاز باشد",metadata:"متادیتا (JSON)",invalid_json:"فرمت JSON نامعتبر است"},admins:{title:"مدیریت ادمین‌ها",admin_count:"تعداد ادمین‌ها: {{count}}",add_admin:"افزودن ادمین جدید",edit_admin:"ویرایش ادمین",username:"نام کاربری",name:"نام",password:"رمز عبور",password_edit:"رمز عبور جدید (خالی بگذارید تا تغییر نکند)",permissions:"دسترسی‌ها",perm_chat_history:"تاریخچه گفتگوها",perm_admin_management:"مدیریت ادمین‌ها",perm_user_management:"مدیریت کاربران",perm_analytics:"تحلیل و آمار",no_admins:"هیچ ادمینی یافت نشد.",confirm_delete_admin:"آیا از حذف این ادمین اطمینان دارید؟"},errors:{access_denied_title:"عدم دسترسی",access_denied_message:"شما مجوزهای لازم برای دسترسی به این صفحه را ندارید. می‌توانید با مدیر سیستم تماس بگیرید.",back_to_dashboard:"بازگشت به پیشخوان"},login:{title:"پنل مدیریت",setup_title:"راه‌اندازی اولیه",setup_description:"هنوز حساب ادمینی وجود ندارد. برای شروع، یک رمز عبور برای کاربر ادمین پیش‌فرض تنظیم کنید.",set_password:"تعیین رمز عبور",set_password_placeholder:"یک رمز عبور قوی انتخاب کنید",confirm_password:"تأیید رمز عبور",confirm_password_placeholder:"رمز عبور را دوباره وارد کنید",passwords_mismatch:"رمزهای عبور مطابقت ندارند",password_too_short:"رمز عبور باید حداقل ۴ کاراکتر باشد",create_admin:"ایجاد ادمین و ورود",setting_up:"در حال راه‌اندازی...",username:"نام کاربری",username_placeholder:"نام کاربری",password:"رمز عبور",password_placeholder:"••••••••",submit:"ورود به پنل",logging_in:"در حال ورود...",error:"خطا در ورود",copyright:"© ۲۰۲۶ پلتفرم چت‌بات هوشمند"}},settings:{title:"تنظیمات",sections:{profile:"پروفایل",general:"عمومی",account:"حساب کاربری"},profile:{title:"اطلاعات پروفایل",subtitle:"اطلاعات شخصی خود را در زیر بروز کنید.",name:"نام",surname:"نام خانوادگی",phone:"شماره تلفن",password:"رمز عبور جدید",password_placeholder:"برای عدم تغییر خالی بگذارید",save:"ذخیره تغییرات",saving:"در حال ذخیره...",success:"پروفایل با موفقیت بروزرسانی شد",error:"خطا در بروزرسانی پروفایل",select_placeholder:"یک گزینه را انتخاب کنید"},general:{title:"تنظیمات عمومی",subtitle:"ظاهر و زبان برنامه را تنظیم کنید.",theme:"تم",language:"زبان",themes:{light:"روشن",dark:"تاریک",system:"سیستم"},accent:"رنگ اصلی",radius:"میزان گردی لبه‌ها",radius_levels:{sharp:"تیز",round:"گرد"},languages:{en:"English",fa:"فارسی"}},account:{title:"حساب و میزان مصرف",subtitle:"سهمیه مصرف و نشست خود را مدیریت کنید.",balance:"موجود فعلی",tokens:"توکن‌ها",requests:"درخواست‌ها",logout:"خروج از حساب",logout_confirm:"آیا از خروج اطمینان دارید؟",last_recharge:"آخرین بروزرسانی اعتبار در تاریخ"}},errors:{unauthorized:"دسترسی مجاز نیست. لطفاً دوباره وارد شوید.",invalid_credentials:"شماره تلفن یا رمز عبور اشتباه است.",phone_required:"شماره تلفن الزامی است.",password_required:"رمز عبور الزامی است.",name_surname_required:"نام و نام خانوادگی الزامی است.",phone_already_exists:"این شماره تلفن قبلاً ثبت شده است.",invalid_token:"نشست شما منقضی شده است. لطفاً دوباره وارد شوید.",user_not_found:"کاربر یافت نشد.",insufficient_balance:"موجودی کافی نیست. لطفاً حساب خود را شارژ کنید.",me_update_failed:"خطا در بروزرسانی اطلاعات پروفایل.",thread_not_found:"گفتگو یافت نشد.",access_denied:"شما اجازه انجام این عملیات را ندارید.",feedback_save_failed:"خطا در ثبت بازخورد.",thread_update_failed:"خطا در بروزرسانی گفتگو.",thread_delete_failed:"خطا در حذف گفتگو.",attachment_not_found:"فایل پیوست یافت نشد.",thread_share_failed:"خطا در اشتراک‌گذاری گفتگو.",admin_already_exists:"ادمین با این نام کاربری قبلاً ایجاد شده است.",admin_not_found:"ادمین یافت نشد.",cannot_delete_self:"شما نمی‌توانید حساب مدیریت خود را حذف کنید.",admin_update_failed:"خطا در بروزرسانی اطلاعات ادمین.",internal_error:"یک خطای داخلی در سرور رخ داده است. لطفاً بعداً تلاش کنید.",validation_error:"داده‌های ارسالی معتبر نیستند. لطفاً ورودی‌های خود را بررسی کنید.",not_found:"منبع مورد نظر یافت نشد."}}},Tle=Hi.createInstance();Tle.use(r5).use(rW).init({resources:i5,fallbackLng:"en",returnNull:!1,returnEmptyString:!1,nsSeparator:":",interpolation:{escapeValue:!1},detection:{order:["querystring","localStorage"],caches:["localStorage"]}});function Mat({children:e,api:t,app:n,i18n:a,components:r,history:i,welcome:o,threadActions:s,composer:l,theme:u,disclaimer:d}){const p=te.useMemo(()=>a?.instance??Tle,[a?.instance]),m=t||{},A=te.useMemo(()=>({basePath:"/",cacheNamespace:"gentiq",...n}),[n]),g=te.useMemo(()=>new fNe({defaultOptions:{queries:{staleTime:5e3,retry:1}}}),[]);te.useEffect(()=>{Kt.init({api:m,app:A})},[A]);const h=te.useRef(null),f=a?.resources;f!==h.current&&(h.current=f,f&&Object.entries(f).forEach(([w,k])=>{Object.entries(k).forEach(([_,E])=>{p.addResourceBundle(w,_,E,!0,!0)})}));const b=te.useRef(null),y=a?.instance;return y&&y!==b.current&&(b.current=y,Object.entries(i5).forEach(([w,k])=>{Object.entries(k).forEach(([_,E])=>{y.hasResourceBundle(w,_)||y.addResourceBundle(w,_,E,!0,!1)})})),Q.jsx(cW,{i18n:p,children:Q.jsxs(bNe,{client:g,children:[Q.jsxs(_le,{components:r,history:i,welcome:o,threadActions:s,composer:l,theme:u,disclaimer:d,app:A,i18n:a,children:[Q.jsx(Oat,{}),Q.jsx(Ele,{defaultTheme:"system",storageKey:"chatbot-theme",config:u,children:e})]}),Q.jsx(kat,{richColors:!0})]})})}function Oat(){const{app:e}=Or();return Q4(),te.useEffect(()=>{e?.name&&(document.title=e.name)},[e?.name]),te.useEffect(()=>{if(!e?.favicon)return;let t=document.querySelector("link[rel~='icon']");t||(t=document.createElement("link"),t.rel="icon",document.head.appendChild(t)),t.href=e.favicon},[e?.favicon]),null}var Nle="vercel.ai.error",Pat=Symbol.for(Nle),Fle,Lle,pp=class z8e extends(Lle=Error,Fle=Pat,Lle){constructor({name:t,message:n,cause:a}){super(n),this[Fle]=!0,this.name=t,this.cause=a}static isInstance(t){return z8e.hasMarker(t,Nle)}static hasMarker(t,n){const a=Symbol.for(n);return t!=null&&typeof t=="object"&&a in t&&typeof t[a]=="boolean"&&t[a]===!0}};function Rle(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var Mle="AI_InvalidArgumentError",Ole=`vercel.ai.error.${Mle}`,$at=Symbol.for(Ole),Ple,$le,jat=class extends($le=pp,Ple=$at,$le){constructor({message:e,cause:t,argument:n}){super({name:Mle,message:e,cause:t}),this[Ple]=!0,this.argument=n}static isInstance(e){return pp.hasMarker(e,Ole)}},jle="AI_JSONParseError",qle=`vercel.ai.error.${jle}`,qat=Symbol.for(qle),Gle,zle,Ule=class extends(zle=pp,Gle=qat,zle){constructor({text:e,cause:t}){super({name:jle,message:`JSON parsing failed: Text: ${e}.
427
+ ]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:a,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return fR}var bR,Fce;function yR(){if(Fce)return bR;Fce=1,bR=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function a(i,o,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:s}}}}function r(i){var o=n.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:a("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:a("=",o,s),"class-feature":a("\\+",o,s),standard:a("",o,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(t)}return bR}var wR,Lce;function Ent(){if(Lce)return wR;Lce=1;var e=yR(),t=mx();wR=n,n.displayName="t4Cs",n.aliases=[];function n(a){a.register(e),a.register(t),a.languages.t4=a.languages["t4-cs"]=a.languages["t4-templating"].createT4("csharp")}return wR}var kR,Rce;function Mce(){if(Rce)return kR;Rce=1;var e=Mre();kR=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return kR}var vR,Oce;function xnt(){if(Oce)return vR;Oce=1;var e=yR(),t=Mce();vR=n,n.displayName="t4Vb",n.aliases=[];function n(a){a.register(e),a.register(t),a.languages["t4-vb"]=a.languages["t4-templating"].createT4("vbnet")}return vR}var _R,Pce;function $ce(){if(Pce)return _R;Pce=1,_R=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var a=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+a.source+")?|"+a.source+"(?:[ ]+"+r.source+")?)",o=/(?:[^\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}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(u,d){d=(d||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return u});return RegExp(p,d)}n.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 i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\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:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:a,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return _R}var CR,jce;function Bnt(){if(jce)return CR;jce=1;var e=$ce();CR=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return CR}var ER,qce;function Int(){if(qce)return ER;qce=1,ER=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return ER}var xR,Gce;function Snt(){if(Gce)return xR;Gce=1,xR=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var a=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(m,A){return RegExp(m.replace(/<MOD>/g,function(){return"(?:"+a+")"}).replace(/<PAR>/g,function(){return"(?:"+r+")"}),A||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")<MOD>+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=s.phrase.inside,u={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=l.inline.inside;d.bold.inside=u,d.italic.inside=u,d.inserted.inside=u,d.deleted.inside=u,d.span.inside=u;var p=l.table.inside;p.inline=u.inline,p.link=u.link,p.image=u.image,p.footnote=u.footnote,p.acronym=u.acronym,p.mark=u.mark})(t)}return xR}var BR,zce;function Dnt(){if(zce)return BR;zce=1,BR=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var a=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(i){return i.replace(/__/g,function(){return a})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return BR}var IR,Uce;function Qnt(){if(Uce)return IR;Uce=1,IR=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var a=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+a+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+a+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(a),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return IR}var SR,Hce;function Tnt(){if(Hce)return SR;Hce=1;var e=Loe(),t=pL();SR=n,n.displayName="tsx",n.aliases=[];function n(a){a.register(e),a.register(t),(function(r){var i=r.util.clone(r.languages.typescript);r.languages.tsx=r.languages.extend("jsx",i),delete r.languages.tsx.parameter,delete r.languages.tsx["literal-property"];var o=r.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0})(a)}return SR}var DR,Yce;function Nnt(){if(Yce)return DR;Yce=1;var e=ts();DR=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),(function(a){a.languages.tt2=a.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),a.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),a.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),a.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete a.languages.tt2.string,a.hooks.add("before-tokenize",function(r){var i=/\[%[\s\S]+?%\]/g;a.languages["markup-templating"].buildPlaceholders(r,"tt2",i)}),a.hooks.add("after-tokenize",function(r){a.languages["markup-templating"].tokenizePlaceholders(r,"tt2")})})(n)}return DR}var QR,Wce;function Fnt(){if(Wce)return QR;Wce=1;var e=ts();QR=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(a){if(a.language==="twig"){var r=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(a,"twig",r)}}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"twig")})}return QR}var TR,Kce;function Lnt(){if(Kce)return TR;Kce=1,TR=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var a=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:a}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:a,number:/^\d+$/,punctuation:/[,|:]/}},keyword:a,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return TR}var NR,Zce;function Rnt(){if(Zce)return NR;Zce=1,NR=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return NR}var FR,Vce;function Mnt(){if(Vce)return FR;Vce=1,FR=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return FR}var LR,Jce;function Ont(){if(Jce)return LR;Jce=1,LR=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return LR}var RR,Xce;function Pnt(){if(Xce)return RR;Xce=1,RR=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var a={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":a}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),a.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return RR}var MR,ele;function $nt(){if(ele)return MR;ele=1,MR=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return MR}var OR,tle;function jnt(){if(tle)return OR;tle=1,OR=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var a={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};a.variable.inside={string:a.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:a.number,boolean:a.boolean,punctuation:a.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:a}},variable:a.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return OR}var PR,nle;function qnt(){if(nle)return PR;nle=1,PR=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return PR}var $R,ale;function Gnt(){if(ale)return $R;ale=1,$R=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return $R}var jR,rle;function znt(){if(rle)return jR;rle=1,jR=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return jR}var qR,ile;function Unt(){if(ile)return qR;ile=1,qR=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return qR}var GR,ole;function Hnt(){if(ole)return GR;ole=1,GR=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return GR}var zR,sle;function Ynt(){if(sle)return zR;sle=1,zR=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return zR}var UR,cle;function Wnt(){if(cle)return UR;cle=1,UR=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var a=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+a+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+a),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+a+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+a),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+a),lookbehind:!0},RegExp(a+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+a),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+a+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in n.languages["web-idl"])o!=="class-name"&&(i[o]=n.languages["web-idl"][o]);n.languages.webidl=n.languages["web-idl"]})(t)}return UR}var HR,lle;function Knt(){if(lle)return HR;lle=1,HR=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return HR}var YR,ule;function Znt(){if(ule)return YR;ule=1,YR=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return YR}var WR,dle;function Vnt(){if(dle)return WR;dle=1,WR=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return WR}var KR,ple;function Jnt(){if(ple)return KR;ple=1,KR=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return KR}var ZR,mle;function Xnt(){if(mle)return ZR;mle=1,ZR=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function a(s,l){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":l})}var r=n.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};a("csharp",i),a("fsharp",i),a("vbnet",o)})(t)}return ZR}var VR,Ale;function eat(){if(Ale)return VR;Ale=1,VR=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return VR}var JR,gle;function tat(){if(gle)return JR;gle=1,JR=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var a=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(a).join("")},r=function(i){for(var o=[],s=0;s<i.length;s++){var l=i[s],u=!1;if(typeof l!="string"&&(l.type==="tag"&&l.content[0]&&l.content[0].type==="tag"?l.content[0].content[0].content==="</"?o.length>0&&o[o.length-1].tagName===a(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:a(l.content[0].content[1]),openedBraces:0}):o.length>0&&l.type==="punctuation"&&l.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?o[o.length-1].openedBraces--:l.type!=="comment"&&(u=!0)),(u||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var d=a(l);s<i.length-1&&(typeof i[s+1]=="string"||i[s+1].type==="plain-text")&&(d+=a(i[s+1]),i.splice(s+1,1)),s>0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(d=a(i[s-1])+d,i.splice(s-1,1),s--),/^\s+$/.test(d)?i[s]=d:i[s]=new n.Token("plain-text",d,null,d)}l.content&&typeof l.content!="string"&&r(l.content)}};n.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})})(t)}return JR}var XR,hle;function nat(){if(hle)return XR;hle=1,XR=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return XR}var e5,fle;function aat(){if(fle)return e5;fle=1,e5=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function a(d){return function(){return d}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,a(o)),l=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,a(i)),u="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,a(u)).replace(/<ALIGN>/g,a(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,a(u)).replace(/<ALIGN>/g,a(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=n.languages.zig)})})(t)}return e5}var t5,ble;function rat(){if(ble)return t5;ble=1;var e=bJe();return t5=e,e.register(wJe()),e.register(kJe()),e.register(vJe()),e.register(_Je()),e.register(CJe()),e.register(EJe()),e.register(xJe()),e.register(BJe()),e.register(IJe()),e.register(SJe()),e.register(DJe()),e.register(QJe()),e.register(TJe()),e.register(NJe()),e.register(FJe()),e.register(LJe()),e.register(RJe()),e.register(MJe()),e.register(OJe()),e.register(PJe()),e.register($Je()),e.register(jJe()),e.register(Lre()),e.register(Mre()),e.register(qJe()),e.register(GJe()),e.register(zJe()),e.register(UJe()),e.register(HJe()),e.register(YJe()),e.register(WJe()),e.register(KJe()),e.register(ZJe()),e.register(VJe()),e.register(cA()),e.register(JJe()),e.register(XJe()),e.register(eXe()),e.register(tXe()),e.register(nXe()),e.register(aXe()),e.register(rXe()),e.register(iXe()),e.register(oXe()),e.register(oF()),e.register(sXe()),e.register(mx()),e.register(cXe()),e.register(lXe()),e.register(uXe()),e.register(dXe()),e.register(pXe()),e.register(mXe()),e.register(AXe()),e.register(gXe()),e.register(hXe()),e.register(fXe()),e.register(bXe()),e.register(yXe()),e.register(wXe()),e.register(kXe()),e.register(vXe()),e.register(_Xe()),e.register(CXe()),e.register(EXe()),e.register(xXe()),e.register(BXe()),e.register(IXe()),e.register(SXe()),e.register(DXe()),e.register(QXe()),e.register(TXe()),e.register(NXe()),e.register(FXe()),e.register(LXe()),e.register(RXe()),e.register(MXe()),e.register(OXe()),e.register(PXe()),e.register($Xe()),e.register(jXe()),e.register(qXe()),e.register(GXe()),e.register(zXe()),e.register(UXe()),e.register(HXe()),e.register(YXe()),e.register(WXe()),e.register(KXe()),e.register(ZXe()),e.register(VXe()),e.register(JXe()),e.register(XXe()),e.register(eet()),e.register(M6()),e.register(tet()),e.register(net()),e.register(aet()),e.register(ret()),e.register(iet()),e.register(oet()),e.register(set()),e.register(cet()),e.register(uet()),e.register(det()),e.register(pet()),e.register(met()),e.register(Aet()),e.register(get()),e.register(het()),e.register(fet()),e.register(bet()),e.register(nL()),e.register(yet()),e.register(gx()),e.register(wet()),e.register(ket()),e.register(vet()),e.register(_et()),e.register(Cet()),e.register(Eet()),e.register(xet()),e.register(gL()),e.register(Bet()),e.register(Iet()),e.register(Det()),e.register(Loe()),e.register(Qet()),e.register(Tet()),e.register(Net()),e.register(Fet()),e.register(Let()),e.register(Ret()),e.register(Met()),e.register(Oet()),e.register(Pet()),e.register($et()),e.register(jet()),e.register(qet()),e.register(Get()),e.register(zet()),e.register(Uet()),e.register(Het()),e.register(Die()),e.register(Yet()),e.register(Wet()),e.register(Ket()),e.register(ts()),e.register(Zet()),e.register(Vet()),e.register(Jet()),e.register(Xet()),e.register(ett()),e.register(ttt()),e.register(ntt()),e.register(att()),e.register(rtt()),e.register(itt()),e.register(ott()),e.register(stt()),e.register(ctt()),e.register(ltt()),e.register(utt()),e.register(dtt()),e.register(ptt()),e.register(mtt()),e.register(Att()),e.register(gtt()),e.register(htt()),e.register(ftt()),e.register(btt()),e.register(ytt()),e.register(wtt()),e.register(ktt()),e.register(vtt()),e.register(_tt()),e.register(Ctt()),e.register(Ett()),e.register(xtt()),e.register(Btt()),e.register(hx()),e.register(Itt()),e.register(Stt()),e.register(Dtt()),e.register(Qtt()),e.register(Ttt()),e.register(Ntt()),e.register(Ftt()),e.register(Ltt()),e.register(Rtt()),e.register(Mtt()),e.register(Ott()),e.register(Ptt()),e.register($tt()),e.register(jtt()),e.register(qtt()),e.register(Gtt()),e.register(ztt()),e.register(Utt()),e.register(Htt()),e.register(Ytt()),e.register(Wtt()),e.register(Ktt()),e.register(Ztt()),e.register(Vtt()),e.register(Jtt()),e.register(Xtt()),e.register(ent()),e.register(tnt()),e.register(nnt()),e.register(ant()),e.register(Ax()),e.register(rnt()),e.register(int()),e.register(ont()),e.register(snt()),e.register(QL()),e.register(cnt()),e.register(lnt()),e.register(unt()),e.register(dnt()),e.register(pnt()),e.register(mnt()),e.register(Ant()),e.register(gnt()),e.register(hnt()),e.register(fnt()),e.register(bnt()),e.register(ynt()),e.register(XN()),e.register(wnt()),e.register(knt()),e.register(vnt()),e.register(_nt()),e.register(Cnt()),e.register(Ent()),e.register(yR()),e.register(xnt()),e.register(Bnt()),e.register(Int()),e.register(Snt()),e.register(Dnt()),e.register(Qnt()),e.register(Tnt()),e.register(Nnt()),e.register(Ece()),e.register(Fnt()),e.register(pL()),e.register(Lnt()),e.register(Rnt()),e.register(Mnt()),e.register(Ont()),e.register(Pnt()),e.register($nt()),e.register(Mce()),e.register(jnt()),e.register(qnt()),e.register(Gnt()),e.register(znt()),e.register(Unt()),e.register(Hnt()),e.register(Ynt()),e.register(Wnt()),e.register(Knt()),e.register(Znt()),e.register(Vnt()),e.register(Jnt()),e.register(Xnt()),e.register(eat()),e.register(tat()),e.register($ce()),e.register(nat()),e.register(aat()),t5}var iat=rat(),n5=qVe(Zs(iat),yJe);n5.supportedLanguages=GVe;const oat={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},sat={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},cat=te.createContext({code:""}),a5=({code:e,language:t,showLineNumbers:n=!1,className:a,children:r,...i})=>Q.jsx(cat.Provider,{value:{code:e},children:Q.jsx("div",{className:yt("relative w-full overflow-hidden rounded-md border bg-background text-foreground",a),dir:"ltr",...i,children:Q.jsxs("div",{className:"relative",children:[Q.jsx(n5,{className:"overflow-hidden dark:hidden",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:t,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:n,style:sat,children:e}),Q.jsx(n5,{className:"hidden overflow-hidden dark:block",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:t,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:n,style:oat,children:e}),r&&Q.jsx("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:r})]})})});function lat(e,t="size-4"){return{web_search:Q.jsx(MW,{className:t}),web_fetch:Q.jsx(Hd,{className:t}),code_execution:Q.jsx(P6e,{className:t}),image_generation:Q.jsx(q6e,{className:t})}[e]??Q.jsx(pLe,{className:t})}const uat=({className:e,...t})=>Q.jsx(Y4,{className:yt("not-prose mb-4 w-full rounded-md border",e),...t}),dat=({status:e})=>{const{t}=fa(["tools_ui"]),n={"input-streaming":t("pending"),"input-available":t("running"),"output-available":t("completed"),"output-error":t("error")},a={"input-streaming":Q.jsx(M6e,{className:"size-4"}),"input-available":Q.jsx(O6e,{className:"size-4 animate-pulse"}),"output-available":Q.jsx(F6e,{className:"size-4 text-green-600"}),"output-error":Q.jsx(LW,{className:"size-4 text-red-600"})};return Q.jsxs(mZe,{className:"gap-1.5 rounded-full text-xs",variant:"secondary",children:[a[e],n[e]]})},pat=({className:e,type:t,state:n,toolName:a,...r})=>{const i=a||(t.startsWith("tool-")?t.slice(5):t),o=lat(i,"size-4 text-muted-foreground");return Q.jsxs(W4,{className:yt("flex w-full items-center justify-between gap-4 p-3",e),...r,children:[Q.jsxs("div",{className:"flex items-center gap-2",children:[o,Q.jsx("span",{className:"font-medium text-sm",children:i}),Q.jsx(dat,{status:n})]}),Q.jsx(Y0,{className:"size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})},mat=({className:e,...t})=>Q.jsx(K4,{className:yt("data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}),yle=e=>{if(typeof e=="string")try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}return JSON.stringify(e,null,2)},Aat=({className:e,input:t,...n})=>{const{t:a}=fa(["tools_ui"]);return Q.jsxs("div",{className:yt("space-y-2 overflow-hidden p-4",e),...n,children:[Q.jsx("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:a("parameters")}),Q.jsx("div",{className:"rounded-md bg-muted/50",children:Q.jsx(a5,{code:yle(t),language:"json"})})]})},gat=({className:e,output:t,errorText:n,...a})=>{const{t:r}=fa(["tools_ui"]),[i,o]=te.useState(!1);if(!(t||n))return null;const s=()=>{n&&navigator.clipboard.writeText(n).then(()=>{o(!0),setTimeout(()=>o(!1),2e3)})},l=()=>{if(typeof t=="string")try{const u=JSON.parse(t);return Q.jsx(a5,{code:JSON.stringify(u,null,2),language:"json"})}catch{return Q.jsx("div",{className:"p-4 text-sm whitespace-pre-wrap",dir:"ltr",children:t})}return typeof t=="object"&&t!==null&&!("$$typeof"in t)?Q.jsx(a5,{code:JSON.stringify(t,null,2),language:"json"}):t};return Q.jsxs("div",{className:yt("space-y-2 p-4",e),...a,children:[Q.jsx("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:r(n?"error":"result")}),n&&Q.jsxs(rN,{children:[Q.jsx(uae,{asChild:!0,children:Q.jsxs(Nr,{variant:"destructive",size:"sm",children:[Q.jsx(LW,{className:"mr-1.5 size-4"}),r("view_error")]})}),Q.jsxs(iN,{className:"max-w-2xl",children:[Q.jsx(dae,{children:Q.jsx(pae,{className:"text-destructive",children:r("tool_error")})}),Q.jsxs("div",{className:"space-y-4",children:[Q.jsx("div",{className:"max-h-96 overflow-auto rounded-md bg-destructive/10 p-4 text-destructive text-sm",children:Q.jsx("pre",{className:"whitespace-pre-wrap break-words",children:yle(n)})}),Q.jsxs(Nr,{variant:"outline",size:"sm",onClick:s,children:[Q.jsx(b1,{className:"mr-1.5 size-4"}),r(i?"copied":"copy_error")]})]})]})]}),t&&!n&&Q.jsx("div",{className:"overflow-x-auto rounded-md bg-muted/50 text-foreground text-xs [&_table]:w-full line-clamp-[20]",children:Q.jsx("div",{children:l()})})]})};function wle({part:e,message:t,chat:n,toolComponents:a,showToolCalls:r}){const i=e;let o=i.toolName;if(!o&&e.type.startsWith("tool-")){const s=e.type.slice(5);s!=="invocation"&&s!=="result"&&(o=s)}if(!o&&i.toolCallId&&Array.isArray(t.parts))try{const s=t.parts.find(l=>l&&typeof l=="object"&&l.toolCallId===i.toolCallId&&(l.toolName||l.type&&l.type.startsWith("tool-")));s&&(o=s.toolName||(s.type.startsWith("tool-")?s.type.slice(5):void 0))}catch(s){console.error("Error resolving toolName in ToolPart:",s)}if(a&&o&&a[o]){const s=a[o];return Q.jsx(s,{part:e,message:t,chat:n})}return r?Q.jsxs(uat,{className:"animate-in-bubble",children:[Q.jsx(pat,{type:e.type,state:i.state,toolName:o}),Q.jsxs(mat,{children:[Q.jsx(Aat,{input:i.input}),(i.state==="output-available"||i.state==="output-error")&&Q.jsx(gat,{errorText:i.errorText,output:i.output})]})]}):null}function kle({part:e,message:t}){const{t:n}=fa(["chat","admin"]),a=e,r=(a.mediaType||a.media_type)?.startsWith("image/"),i=a.filename??"file",o=s=>{if(s.preventDefault(),!a.url)return;const l=document.createElement("a");l.href=a.url,l.download=i,document.body.appendChild(l),l.click(),document.body.removeChild(l)};return Q.jsx("div",{className:"py-2 animate-in-bubble",children:Q.jsx(rZ,{from:t.role,children:Q.jsx(iZ,{isPlain:!0,children:r?Q.jsxs("div",{className:"group relative max-w-[280px] rounded-xl overflow-hidden border border-border/5 transition-all duration-300 hover:border-primary/30 hover:shadow-[0_0_20px_var(--glow)]",children:[Q.jsx("img",{src:a.url,alt:i,className:"max-h-[280px] w-full rounded-xl object-cover transition-transform duration-500 group-hover:scale-105"}),Q.jsxs("div",{className:"absolute inset-x-0 bottom-0 p-3 bg-gradient-to-t from-black/80 via-black/40 to-transparent opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-between",children:[Q.jsx("span",{className:"text-[10px] text-white truncate max-w-[150px] font-medium drop-shadow-sm",children:i}),Q.jsx("button",{onClick:o,className:"p-1.5 bg-white/20 hover:bg-white/30 backdrop-blur-md rounded-full text-white transition-all hover:scale-110 active:scale-95",title:n("download","Download"),children:Q.jsx(Hd,{className:"size-4"})})]}),Q.jsx("div",{className:"absolute top-2 right-2 md:hidden",children:Q.jsx("button",{onClick:o,className:"p-1.5 bg-black/40 backdrop-blur-md rounded-full text-white",children:Q.jsx(Hd,{className:"size-4"})})})]}):Q.jsx("div",{className:"flex flex-col gap-1.5",children:Q.jsxs("div",{className:"group inline-flex items-center gap-3 rounded-xl p-3 text-sm transition-all duration-300 bg-secondary/10 border border-border/5 hover:border-primary/30 hover:bg-secondary/20 hover:shadow-[0_0_15px_var(--glow)]",children:[Q.jsx("div",{className:"p-2.5 rounded-lg bg-background/50 border border-border/10 group-hover:border-primary/20 group-hover:text-primary transition-colors",children:Q.jsx(RW,{className:"size-4 shrink-0"})}),Q.jsxs("div",{className:"flex flex-col min-w-0 mr-4",children:[Q.jsx("span",{className:"truncate max-w-[180px] font-semibold text-foreground/90 leading-none mb-1 group-hover:text-foreground transition-colors",children:i}),(a.mediaType||a.media_type)&&Q.jsx("span",{className:"text-[10px] text-muted-foreground uppercase font-bold tracking-widest opacity-60",children:(a.mediaType||a.media_type).split("/").pop()})]}),Q.jsx("button",{onClick:o,className:"ml-auto p-2 hover:bg-primary hover:text-primary-foreground rounded-lg text-muted-foreground transition-all active:scale-90",title:n("download","Download"),children:Q.jsx(Hd,{className:"size-4"})})]})})})})})}const pi={MessageList:rK,PromptInput:tZ,WelcomeScreen:aZ,TextPart:hne,ReasoningPart:kne,ToolPart:wle,FilePart:kle,toolComponents:void 0,textComponents:void 0,remarkPlugins:void 0,rehypePlugins:void 0,history:{enabled:!0,showDelete:!0,showRename:!0,showShare:!0,showPin:!0},welcome:{icon:null},threadActions:{feedback:!0,retry:!0},composer:{attachments:{enabled:!0}},theme:void 0,disclaimer:void 0,app:{name:void 0,adminTitle:void 0,cacheNamespace:"gentiq",showSettings:!0},i18n:void 0},vle=te.createContext(pi);function Or(){return te.useContext(vle)}function _le({components:e,history:t,welcome:n,threadActions:a,composer:r,theme:i,disclaimer:o,app:s,i18n:l,children:u}){const d=te.useMemo(()=>({...pi,...e,toolComponents:e?.toolComponents??pi.toolComponents,history:t?{...pi.history,...t}:pi.history,welcome:n?{...pi.welcome,...n}:pi.welcome,threadActions:a?{...pi.threadActions,...a}:pi.threadActions,composer:r?{...pi.composer,...r,attachments:r.attachments?{...pi.composer?.attachments,...r.attachments}:pi.composer?.attachments}:pi.composer,theme:i??pi.theme,disclaimer:o??pi.disclaimer,app:s?{...pi.app,...s}:pi.app,i18n:l??pi.i18n}),[e,t,n,a,r,i,o,s,l]);return Q.jsx(vle.Provider,{value:d,children:u})}const hat={theme:"system",setTheme:()=>null,accent:void 0,setAccent:()=>null,radius:void 0,setRadius:()=>null},Cle=te.createContext(hat);function Ele({children:e,defaultTheme:t="system",storageKey:n="chatbot-theme",...a}){const[r,i]=te.useState(()=>window.localStorage.getItem(n)??t),[o,s]=te.useState(()=>window.localStorage.getItem(n+"-accent")||void 0),[l,u]=te.useState(()=>window.localStorage.getItem(n+"-radius")||"1.25rem"),{theme:d}=Or(),{i18n:p}=fa(["theme"]);te.useEffect(()=>{const A=window.document.documentElement;if(A.classList.remove("light","dark"),r==="system"){const g=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";A.classList.add(g);return}A.classList.add(r)},[r]),te.useEffect(()=>{const A=window.document.documentElement,g=p.language?.split("-")[0]||p.language;let h=d?.typography?.fontFamily;if(typeof h=="object"&&h!==null&&(h=h[p.language]||h[g]||h.en||Object.values(h)[0]),h){const y=h.includes(" ")&&!h.startsWith("'")&&!h.startsWith('"')?`"${h}"`:h;A.style.setProperty("--gentiq-font-family",y),A.style.fontFamily=y,window.document.body&&(window.document.body.style.fontFamily=y)}const f=l||(typeof d?.radius=="number"?`${d.radius}px`:d?.radius);f!==void 0&&A.style.setProperty("--radius",f);const b=o||d?.accent;b!==void 0&&A.style.setProperty("--gentiq-primary",b),window.document.documentElement.dir=p.dir()},[d,p,p.language,o,l]);const m={theme:r,setTheme:A=>{window.localStorage.setItem(n,A),i(A)},accent:o,setAccent:A=>{A?window.localStorage.setItem(n+"-accent",A):window.localStorage.removeItem(n+"-accent"),s(A)},radius:l,setRadius:A=>{A?window.localStorage.setItem(n+"-radius",A):window.localStorage.removeItem(n+"-radius"),u(A)}};return Q.jsx(Cle.Provider,{...a,value:m,children:e})}const zw=()=>te.useContext(Cle);var fat=(e,t,n,a,r,i,o,s)=>{let l=document.documentElement,u=["light","dark"];function d(A){(Array.isArray(e)?e:[e]).forEach(g=>{let h=g==="class",f=h&&i?r.map(b=>i[b]||b):r;h?(l.classList.remove(...f),l.classList.add(i&&i[A]?i[A]:A)):l.setAttribute(g,A)}),p(A)}function p(A){s&&u.includes(A)&&(l.style.colorScheme=A)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)d(a);else try{let A=localStorage.getItem(t)||n,g=o&&A==="system"?m():A;d(g)}catch{}},bat=re.createContext(void 0),yat={setTheme:e=>{},themes:[]},wat=()=>{var e;return(e=re.useContext(bat))!=null?e:yat};re.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:r,defaultTheme:i,value:o,themes:s,nonce:l,scriptProps:u})=>{let d=JSON.stringify([n,t,i,e,s,o,a,r]).slice(1,-1);return re.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${fat.toString()})(${d})`}})});const kat=({...e})=>{const{theme:t="system"}=wat();return Q.jsx(B5e,{theme:t,className:"toaster group",icons:{success:Q.jsx(L6e,{className:"size-4"}),info:Q.jsx(G6e,{className:"size-4"}),warning:Q.jsx(uLe,{className:"size-4"}),error:Q.jsx(Y6e,{className:"size-4"}),loading:Q.jsx(O4,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...e})},{slice:vat,forEach:_at}=[];function Cat(e){return _at.call(vat.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function Eat(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const xle=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,xat=function(e,t){const a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},r=encodeURIComponent(t);let i=`${e}=${r}`;if(a.maxAge>0){const o=a.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(o)}`}if(a.domain){if(!xle.test(a.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${a.domain}`}if(a.path){if(!xle.test(a.path))throw new TypeError("option path is invalid");i+=`; Path=${a.path}`}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly&&(i+="; HttpOnly"),a.secure&&(i+="; Secure"),a.sameSite)switch(typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a.partitioned&&(i+="; Partitioned"),i},Ble={create(e,t,n,a){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+n*60*1e3)),a&&(r.domain=a),document.cookie=xat(e,t,r)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let a=0;a<n.length;a++){let r=n[a];for(;r.charAt(0)===" ";)r=r.substring(1,r.length);if(r.indexOf(t)===0)return r.substring(t.length,r.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var Bat={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return Ble.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:a,cookieDomain:r,cookieOptions:i}=t;n&&typeof document<"u"&&Ble.create(n,e,a,r,i)}},Iat={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const i=a.substring(1).split("&");for(let o=0;o<i.length;o++){const s=i[o].indexOf("=");s>0&&i[o].substring(0,s)===t&&(n=i[o].substring(s+1))}}return n}},Sat={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,a;if(typeof window<"u"){const{hash:r}=window.location;if(r&&r.length>2){const i=r.substring(1);if(t){const o=i.split("&");for(let s=0;s<o.length;s++){const l=o[s].indexOf("=");l>0&&o[s].substring(0,l)===t&&(a=o[s].substring(l+1))}}if(a)return a;if(!a&&n>-1){const o=r.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?o[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return a}};let ef=null;const Ile=()=>{if(ef!==null)return ef;try{if(ef=typeof window<"u"&&window.localStorage!==null,!ef)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{ef=!1}return ef};var Dat={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&Ile())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&Ile()&&window.localStorage.setItem(n,e)}};let tf=null;const Sle=()=>{if(tf!==null)return tf;try{if(tf=typeof window<"u"&&window.sessionStorage!==null,!tf)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{tf=!1}return tf};var Qat={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&Sle())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&Sle()&&window.sessionStorage.setItem(n,e)}},Tat={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:a,language:r}=navigator;if(n)for(let i=0;i<n.length;i++)t.push(n[i]);a&&t.push(a),r&&t.push(r)}return t.length>0?t:void 0}},Nat={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const a=t||(typeof document<"u"?document.documentElement:null);return a&&typeof a.getAttribute=="function"&&(n=a.getAttribute("lang")),n}},Fat={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},Lat={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,a=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(a)return a[n]}};let Dle=!1;try{document.cookie,Dle=!0}catch{}const Qle=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Dle||Qle.splice(1,1);const Rat=()=>({order:Qle,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class r5{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=Cat(n,this.options||{},Rat()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=r=>r.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(Bat),this.addDetector(Iat),this.addDetector(Dat),this.addDetector(Qat),this.addDetector(Tat),this.addDetector(Nat),this.addDetector(Fat),this.addDetector(Lat),this.addDetector(Sat)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(a=>{if(this.detectors[a]){let r=this.detectors[a].lookup(this.options);r&&typeof r=="string"&&(r=[r]),r&&(n=n.concat(r))}}),n=n.filter(a=>a!=null&&!Eat(a)).map(a=>this.options.convertDetectedLanguage(a)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(a=>{this.detectors[a]&&this.detectors[a].cacheUserLanguage(t,this.options)}))}}r5.type="languageDetector";const i5={en:{sidebar:{new_conversation:"New conversation",tooltip_new_conversation:"Start a new conversation",delete_conversation:"Delete",delete_confirm_title:"Delete conversation?",delete_confirm_description:"Are you sure you want to delete this chat? This action cannot be undone.",cancel:"Cancel",delete:"Delete",chat_deleted_success:"Chat deleted successfully",logout:"Logout",new_chat:"New Chat",rename_conversation:"Rename",rename_success:"Conversation renamed successfully",rename_failed:"Failed to rename conversation",search_conversations:"Search conversations...",save:"Save",no_conversations:"No conversations yet",loading_more:"Loading more...",pinned_success:"Conversation pinned",unpinned_success:"Conversation unpinned",pin_failed:"Failed to pin conversation",share_success:"Link copied",share_description:"The shareable link has been copied to your clipboard.",share_failed:"Failed to generate share link",pin_conversation:"Pin",unpin_conversation:"Unpin",share_conversation:"Share"},chat:{tools:"Tools",error:"Error:",input_placeholder:"Ask something...",insufficient_balance:"Insufficient balance. Please recharge your account to continue.",regenerate:"Regenerate",retry:"Retry",copy:"Copy",like:"Like",dislike:"Dislike",attach_file:"Attach file",remove_file:"Remove file",used_sources:"Used {{count}} sources",welcome:{title:"Hello! How can I help you today?",subtitle:"Ask me anything and I'll do my best to help.",suggestions:["What can you help me with?","Tell me something interesting","Help me write an email","Explain a concept to me"]},disclaimer:"AI can make mistakes. Check important info."},tools_ui:{pending:"Pending",running:"Running",completed:"Completed",error:"Error",parameters:"Parameters",result:"Result",view_error:"View Error",tool_error:"Tool Error",copied:"Copied!",copy_error:"Copy Error"},login:{login_tab:"Login",signup_tab:"Sign Up",phone:"Phone",phone_placeholder:"Phone number",password:"Password",name:"Name",name_placeholder:"First Name",surname:"Surname",surname_placeholder:"Last Name",loading:"Loading...",logging_in:"Logging in...",signing_up:"Signing up...",login_button:"Login",signup_button:"Sign Up"},theme:{toggle:"Change theme",light:"Switch to light theme",dark:"Switch to dark theme",system:"Switch to system theme"},admin:{loading:"Loading...",retry:"Retry",save:"Save",saving:"Saving...",cancel:"Cancel",delete:"Delete",edit:"Edit",search:"Search",search_placeholder:"Search...",no_data:"No data available",loading_more:"Loading more...",confirm_delete:"Are you sure you want to delete?",error_loading:"Error loading data",dashboard:{title:"Admin Panel",logout:"Logout",tabs:{analytics:"Analytics",chat_history:"Chats",users:"Users",admins:"Admins"}},analytics:{title:"Analytics & Statistics",days:"{{count}} Days",total_users:"Total Users",total_threads:"Total Threads",total_messages:"Total Messages",total_token_usage:"Total Token Usage",threads_chart:"Threads",messages_chart:"Messages",token_usage_chart:"Token Usage",active_users:"Active Users",conversations:"conversations",threads:"threads",feedback:"User Feedback",total_feedback:"Total Feedback",positive:"Positive",negative:"Negative",loading_analytics:"Loading analytics...",error_loading:"Error loading data"},chat_history:{title:"Chat History Management",search_placeholder:"Search by name, phone, thread title, or ID...",search_button:"Search",threads_list:"Threads List",thread_count:"{{count}}",no_thread_title:"Untitled conversation",messages:"Messages",messages_for:"Messages for: {{title}}",select_thread:"Select a conversation to view",no_threads:"No conversations found",empty_thread:"This conversation is empty",loading_threads:"Loading...",loading_messages:"Loading messages...",user_label:"User",assistant_label:"AI Assistant",input_tokens:"Input: {{value}}",output_tokens:"Output: {{value}}",total_tokens:"Total: {{value}}",all_feedbacks:"All Conversations",liked_feedbacks:"Liked 👍",disliked_feedbacks:"Disliked 👎",any_feedback:"With Feedback",output_available:"Output Available",running:"Running...",unnamed_file:"Unnamed File",download_file:"Download File"},users:{title:"User Management",user_count:"User count: {{count}}",add_user:"Add New User",edit_user:"Edit User",phone:"Phone Number",phone_placeholder:"09123456789",name:"Name",surname:"Surname",initial_tokens:"Initial Tokens (optional)",initial_requests:"Initial Requests (optional)",balance:"Balance",requests_label:"Requests",tokens_label:"Tokens",token_limit:"Token Limit",request_limit:"Request Limit",tokens_usage:"Tokens Usage",requests_usage:"Requests Usage",actions:"Actions",copy_token:"Copy Token (auto-refresh)",token_copied:"Token copied successfully",no_token:"No token found for this user",recharge:"Recharge Balance",update_balance:"Update Balance",update_balance_for:"Update Balance for",token_count:"Token Count",request_count:"Request Count",updating:"Updating...",no_users:"No users found.",confirm_delete_user:"Are you sure you want to delete this user?",tokens_exceed_limit:"Tokens cannot exceed the specified limit",requests_exceed_limit:"Requests cannot exceed the specified limit",metadata:"Metadata (JSON)",invalid_json:"Invalid JSON format"},admins:{title:"Admin Management",admin_count:"Admin count: {{count}}",add_admin:"Add New Admin",edit_admin:"Edit Admin",username:"Username",name:"Name",password:"Password",password_edit:"New Password (leave empty to keep current)",permissions:"Permissions",perm_chat_history:"Chat History",perm_admin_management:"Admin Management",perm_user_management:"User Management",perm_analytics:"Analytics",no_admins:"No admins found.",confirm_delete_admin:"Are you sure you want to delete this admin?"},errors:{access_denied_title:"Access Denied",access_denied_message:"You don't have the necessary permissions to access this page. You can contact the administrator!",back_to_dashboard:"Back to Dashboard"},login:{title:"Admin Panel",setup_title:"Initial Setup",setup_description:"No admin account exists yet. Set a password for the default admin user to get started.",set_password:"Set Password",set_password_placeholder:"Choose a strong password",confirm_password:"Confirm Password",confirm_password_placeholder:"Re-enter the password",passwords_mismatch:"Passwords do not match",password_too_short:"Password must be at least 4 characters",create_admin:"Create Admin & Login",setting_up:"Setting up...",username:"Username",username_placeholder:"Username",password:"Password",password_placeholder:"••••••••",submit:"Login",logging_in:"Logging in...",error:"Login failed",copyright:"© 2026 AI Chatbot Platform"}},settings:{title:"Settings",sections:{profile:"Profile",general:"General",account:"Account"},profile:{title:"Profile Information",subtitle:"Update your personal details below.",name:"First Name",surname:"Last Name",phone:"Phone Number",password:"New Password",password_placeholder:"Leave empty to keep current",save:"Save Changes",saving:"Saving...",success:"Profile updated successfully",error:"Failed to update profile",select_placeholder:"Select an option"},general:{title:"General Settings",subtitle:"Configure look and feel and language.",theme:"Theme",language:"Language",themes:{light:"Light",dark:"Dark",system:"System"},accent:"Accent Color",radius:"Rounded Corners",radius_levels:{sharp:"Sharp",round:"Round"},languages:{en:"English",fa:"Persian"}},account:{title:"Account & Usage",subtitle:"Monitor your quotas and manage your session.",balance:"Current Balance",tokens:"Tokens",requests:"Requests",logout:"Logout",logout_confirm:"Are you sure you want to logout?",last_recharge:"Last balance update on"}},errors:{unauthorized:"Authentication required. Please login again.",invalid_credentials:"Invalid phone number or password.",phone_required:"Phone number is required.",password_required:"Password is required.",name_surname_required:"Name and surname are required.",phone_already_exists:"This phone number is already registered.",invalid_token:"Your session has expired. Please login again.",user_not_found:"User not found.",insufficient_balance:"Insufficient balance. Please recharge your account.",me_update_failed:"Failed to update profile information.",thread_not_found:"Conversation not found.",access_denied:"You do not have permission to perform this action.",feedback_save_failed:"Failed to save feedback.",thread_update_failed:"Failed to update conversation.",thread_delete_failed:"Failed to delete conversation.",attachment_not_found:"Attachment not found.",thread_share_failed:"Failed to share conversation.",admin_already_exists:"Admin with this username already exists.",admin_not_found:"Admin not found.",cannot_delete_self:"You cannot delete your own admin account.",admin_update_failed:"Failed to update admin information.",internal_error:"An internal server error occurred. Please try again later.",validation_error:"Invalid data provided. Please check your input.",not_found:"The requested resource was not found."}},fa:{sidebar:{new_conversation:"گفتگوی جدید",tooltip_new_conversation:"شروع یک گفتگوی جدید",delete_conversation:"حذف",delete_confirm_title:"حذف گفتگو؟",delete_confirm_description:"آیا از حذف این گفتگو اطمینان دارید؟ این عمل قابل بازگشت نیست.",cancel:"انصراف",delete:"حذف",chat_deleted_success:"گفتگو با موفقیت حذف شد",logout:"خروج",new_chat:"گفتگوی جدید",rename_conversation:"تغییر نام",rename_success:"نام گفتگو با موفقیت تغییر کرد",rename_failed:"خطا در تغییر نام گفتگو",search_conversations:"جستجوی گفتگوها...",save:"ذخیره",no_conversations:"هنوز گفتگویی ندارید",loading_more:"در حال بارگذاری...",pinned_success:"گفتگو پین شد",unpinned_success:"گفتگو از حالت پین خارج شد",pin_failed:"خطا در پین کردن گفتگو",share_success:"لینک کپی شد",share_description:"لینک اشتراک‌گذاری در حافظه موقت کپی شد.",share_failed:"خطا در ایجاد لینک اشتراک‌گذاری",pin_conversation:"پین",unpin_conversation:"برداشتن پین",share_conversation:"اشتراک‌گذاری"},chat:{tools:"ابزارها",error:"خطا:",input_placeholder:"سوالتو اینجا بپرس...",insufficient_balance:"موجودی حساب شما کافی نیست. لطفا برای ادامه، حساب خود را شارژ کنید.",regenerate:"تولید مجدد",retry:"تلاش مجدد",copy:"کپی",like:"پسندیدم",dislike:"نپسندیدم",attach_file:"پیوست فایل",remove_file:"حذف فایل",used_sources:"از {{count}} منبع استفاده شد",welcome:{title:"سلام! چطور می‌تونم کمکت کنم؟",subtitle:"هر سوالی داری بپرس، تمام تلاشمو می‌کنم کمکت کنم.",suggestions:["چه کارهایی می‌تونی انجام بدی؟","یه چیز جالب بهم بگو","کمکم کن یه ایمیل بنویسم","یه مفهوم رو برام توضیح بده"]},disclaimer:"هوش مصنوعی ممکن است اشتباه کند. اطلاعات مهم را بررسی کنید."},tools_ui:{pending:"در انتظار",running:"در حال اجرا",completed:"تکمیل شده",error:"خطا",parameters:"پارامترها",result:"نتیجه",view_error:"نمایش خطا",tool_error:"خطای ابزار",copied:"کپی شد!",copy_error:"کپی خطا"},login:{login_tab:"ورود",signup_tab:"ثبت نام",phone:"شماره تلفن",phone_placeholder:"شماره تلفن",password:"رمز عبور",name:"نام",name_placeholder:"نام",surname:"نام خانوادگی",surname_placeholder:"نام خانوادگی",logging_in:"در حال ورود...",signing_up:"در حال ثبت نام...",login_button:"ورود",signup_button:"ثبت نام"},theme:{toggle:"تغییر تم",light:"تغییر به تم روشن",dark:"تغییر به تم تاریک",system:"تغییر به تم سیستم"},admin:{loading:"در حال بارگذاری...",retry:"تلاش مجدد",save:"ذخیره",saving:"در حال ذخیره...",cancel:"انصراف",delete:"حذف",edit:"ویرایش",search:"جستجو",search_placeholder:"جستجو...",no_data:"داده‌ای موجود نیست",loading_more:"در حال بارگذاری بیشتر...",confirm_delete:"آیا از حذف اطمینان دارید؟",error_loading:"خطا در بارگذاری داده‌ها",dashboard:{title:"پنل مدیریت",logout:"خروج",tabs:{analytics:"تحلیل و آمار",chat_history:"گفتگوها",users:"کاربران",admins:"ادمین‌ها"}},analytics:{title:"تحلیل و آمار",days:"{{count}} روز",total_users:"تعداد کاربران",total_threads:"تعداد گفتگوها",total_messages:"تعداد پیام‌ها",total_token_usage:"مصرف کل توکن",threads_chart:"گفتگوها",messages_chart:"پیام‌ها",token_usage_chart:"مصرف توکن",active_users:"کاربران فعال",conversations:"گفتگو",threads:"گفتگو",feedback:"نظرات کاربران",total_feedback:"کل نظرات",positive:"مثبت",negative:"منفی",loading_analytics:"در حال بارگذاری تحلیل‌ها...",error_loading:"خطا در بارگذاری داده‌ها"},chat_history:{title:"مدیریت تاریخچه گفتگوها",search_placeholder:"جستجو بر اساس نام، شماره تماس، عنوان گفتگو یا شناسه...",search_button:"جستجو",threads_list:"لیست گفتگوها",thread_count:"{{count}}",no_thread_title:"گفتگو بدون عنوان",messages:"پیام‌ها",messages_for:"پیام‌های گفتگو: {{title}}",select_thread:"یک گفتگو را برای مشاهده انتخاب کنید",no_threads:"هیچ گفتگویی یافت نشد",empty_thread:"این گفتگو خالی است",loading_threads:"در حال بارگذاری...",loading_messages:"در حال بارگذاری پیام‌ها...",user_label:"کاربر",assistant_label:"دستیار هوشمند",input_tokens:"ورودی: {{value}}",output_tokens:"خروجی: {{value}}",total_tokens:"کل: {{value}}",all_feedbacks:"همه گفتگوها",liked_feedbacks:"پسندیده شده 👍",disliked_feedbacks:"نپسندیده شده 👎",any_feedback:"دارای بازخورد",output_available:"خروجی موجود است",running:"در حال اجرا...",unnamed_file:"فایل بدون نام",download_file:"دانلود فایل"},users:{title:"مدیریت کاربران",user_count:"تعداد کاربران: {{count}}",add_user:"افزودن کاربر جدید",edit_user:"ویرایش کاربر",phone:"شماره تلفن",phone_placeholder:"۰۹۱۲۳۴۵۶۷۸۹",name:"نام",surname:"نام خانوادگی",initial_tokens:"تعداد توکن اولیه (اختیاری)",initial_requests:"تعداد درخواست اولیه (اختیاری)",balance:"موجودی",requests_label:"درخواست‌ها",tokens_label:"توکن‌ها",token_limit:"سقف توکن",request_limit:"سقف درخواست",tokens_usage:"میزان مصرف توکن",requests_usage:"میزان مصرف درخواست",actions:"عملیات",copy_token:"کپی توکن (با بروزرسانی خودکار)",token_copied:"توکن با موفقیت کپی شد",no_token:"توکنی برای این کاربر یافت نشد",recharge:"شارژ موجودی",update_balance:"بروزرسانی موجودی",update_balance_for:"بروزرسانی موجودی",token_count:"تعداد توکن",request_count:"تعداد درخواست",updating:"در حال بروزرسانی...",no_users:"هیچ کاربری یافت نشد.",confirm_delete_user:"آیا از حذف این کاربر اطمینان دارید؟",tokens_exceed_limit:"تعداد توکن نمی‌تواند بیشتر از سقف مجاز باشد",requests_exceed_limit:"تعداد درخواست نمی‌تواند بیشتر از سقف مجاز باشد",metadata:"متادیتا (JSON)",invalid_json:"فرمت JSON نامعتبر است"},admins:{title:"مدیریت ادمین‌ها",admin_count:"تعداد ادمین‌ها: {{count}}",add_admin:"افزودن ادمین جدید",edit_admin:"ویرایش ادمین",username:"نام کاربری",name:"نام",password:"رمز عبور",password_edit:"رمز عبور جدید (خالی بگذارید تا تغییر نکند)",permissions:"دسترسی‌ها",perm_chat_history:"تاریخچه گفتگوها",perm_admin_management:"مدیریت ادمین‌ها",perm_user_management:"مدیریت کاربران",perm_analytics:"تحلیل و آمار",no_admins:"هیچ ادمینی یافت نشد.",confirm_delete_admin:"آیا از حذف این ادمین اطمینان دارید؟"},errors:{access_denied_title:"عدم دسترسی",access_denied_message:"شما مجوزهای لازم برای دسترسی به این صفحه را ندارید. می‌توانید با مدیر سیستم تماس بگیرید.",back_to_dashboard:"بازگشت به پیشخوان"},login:{title:"پنل مدیریت",setup_title:"راه‌اندازی اولیه",setup_description:"هنوز حساب ادمینی وجود ندارد. برای شروع، یک رمز عبور برای کاربر ادمین پیش‌فرض تنظیم کنید.",set_password:"تعیین رمز عبور",set_password_placeholder:"یک رمز عبور قوی انتخاب کنید",confirm_password:"تأیید رمز عبور",confirm_password_placeholder:"رمز عبور را دوباره وارد کنید",passwords_mismatch:"رمزهای عبور مطابقت ندارند",password_too_short:"رمز عبور باید حداقل ۴ کاراکتر باشد",create_admin:"ایجاد ادمین و ورود",setting_up:"در حال راه‌اندازی...",username:"نام کاربری",username_placeholder:"نام کاربری",password:"رمز عبور",password_placeholder:"••••••••",submit:"ورود به پنل",logging_in:"در حال ورود...",error:"خطا در ورود",copyright:"© ۲۰۲۶ پلتفرم چت‌بات هوشمند"}},settings:{title:"تنظیمات",sections:{profile:"پروفایل",general:"عمومی",account:"حساب کاربری"},profile:{title:"اطلاعات پروفایل",subtitle:"اطلاعات شخصی خود را در زیر بروز کنید.",name:"نام",surname:"نام خانوادگی",phone:"شماره تلفن",password:"رمز عبور جدید",password_placeholder:"برای عدم تغییر خالی بگذارید",save:"ذخیره تغییرات",saving:"در حال ذخیره...",success:"پروفایل با موفقیت بروزرسانی شد",error:"خطا در بروزرسانی پروفایل",select_placeholder:"یک گزینه را انتخاب کنید"},general:{title:"تنظیمات عمومی",subtitle:"ظاهر و زبان برنامه را تنظیم کنید.",theme:"تم",language:"زبان",themes:{light:"روشن",dark:"تاریک",system:"سیستم"},accent:"رنگ اصلی",radius:"میزان گردی لبه‌ها",radius_levels:{sharp:"تیز",round:"گرد"},languages:{en:"English",fa:"فارسی"}},account:{title:"حساب و میزان مصرف",subtitle:"سهمیه مصرف و نشست خود را مدیریت کنید.",balance:"موجود فعلی",tokens:"توکن‌ها",requests:"درخواست‌ها",logout:"خروج از حساب",logout_confirm:"آیا از خروج اطمینان دارید؟",last_recharge:"آخرین بروزرسانی اعتبار در تاریخ"}},errors:{unauthorized:"دسترسی مجاز نیست. لطفاً دوباره وارد شوید.",invalid_credentials:"شماره تلفن یا رمز عبور اشتباه است.",phone_required:"شماره تلفن الزامی است.",password_required:"رمز عبور الزامی است.",name_surname_required:"نام و نام خانوادگی الزامی است.",phone_already_exists:"این شماره تلفن قبلاً ثبت شده است.",invalid_token:"نشست شما منقضی شده است. لطفاً دوباره وارد شوید.",user_not_found:"کاربر یافت نشد.",insufficient_balance:"موجودی کافی نیست. لطفاً حساب خود را شارژ کنید.",me_update_failed:"خطا در بروزرسانی اطلاعات پروفایل.",thread_not_found:"گفتگو یافت نشد.",access_denied:"شما اجازه انجام این عملیات را ندارید.",feedback_save_failed:"خطا در ثبت بازخورد.",thread_update_failed:"خطا در بروزرسانی گفتگو.",thread_delete_failed:"خطا در حذف گفتگو.",attachment_not_found:"فایل پیوست یافت نشد.",thread_share_failed:"خطا در اشتراک‌گذاری گفتگو.",admin_already_exists:"ادمین با این نام کاربری قبلاً ایجاد شده است.",admin_not_found:"ادمین یافت نشد.",cannot_delete_self:"شما نمی‌توانید حساب مدیریت خود را حذف کنید.",admin_update_failed:"خطا در بروزرسانی اطلاعات ادمین.",internal_error:"یک خطای داخلی در سرور رخ داده است. لطفاً بعداً تلاش کنید.",validation_error:"داده‌های ارسالی معتبر نیستند. لطفاً ورودی‌های خود را بررسی کنید.",not_found:"منبع مورد نظر یافت نشد."}}},Tle=Hi.createInstance();Tle.use(r5).use(rW).init({resources:i5,fallbackLng:"en",returnNull:!1,returnEmptyString:!1,nsSeparator:":",interpolation:{escapeValue:!1},detection:{order:["querystring","localStorage"],caches:["localStorage"]}});function Mat({children:e,api:t,app:n,i18n:a,components:r,history:i,welcome:o,threadActions:s,composer:l,theme:u,disclaimer:d}){const p=te.useMemo(()=>a?.instance??Tle,[a?.instance]),m=t||{},A=te.useMemo(()=>({basePath:"/",cacheNamespace:"gentiq",...n}),[n]),g=te.useMemo(()=>new fNe({defaultOptions:{queries:{staleTime:5e3,retry:1}}}),[]);te.useEffect(()=>{Kt.init({api:m,app:A})},[A]);const h=te.useRef(null),f=a?.resources;f!==h.current&&(h.current=f,f&&Object.entries(f).forEach(([w,k])=>{Object.entries(k).forEach(([_,E])=>{p.addResourceBundle(w,_,E,!0,!0)})}));const b=te.useRef(null),y=a?.instance;return y&&y!==b.current&&(b.current=y,Object.entries(i5).forEach(([w,k])=>{Object.entries(k).forEach(([_,E])=>{y.hasResourceBundle(w,_)||y.addResourceBundle(w,_,E,!0,!1)})})),Q.jsx(cW,{i18n:p,children:Q.jsxs(bNe,{client:g,children:[Q.jsxs(_le,{components:r,history:i,welcome:o,threadActions:s,composer:l,theme:u,disclaimer:d,app:A,i18n:a,children:[Q.jsx(Oat,{}),Q.jsx(Ele,{defaultTheme:"system",storageKey:"chatbot-theme",config:u,children:e})]}),Q.jsx(kat,{richColors:!0})]})})}function Oat(){const{app:e}=Or();return Q4(),te.useEffect(()=>{e?.name&&(document.title=e.name)},[e?.name]),te.useEffect(()=>{if(!e?.favicon)return;let t=document.querySelector("link[rel~='icon']");t||(t=document.createElement("link"),t.rel="icon",document.head.appendChild(t)),t.href=e.favicon},[e?.favicon]),null}var Nle="vercel.ai.error",Pat=Symbol.for(Nle),Fle,Lle,pp=class z8e extends(Lle=Error,Fle=Pat,Lle){constructor({name:t,message:n,cause:a}){super(n),this[Fle]=!0,this.name=t,this.cause=a}static isInstance(t){return z8e.hasMarker(t,Nle)}static hasMarker(t,n){const a=Symbol.for(n);return t!=null&&typeof t=="object"&&a in t&&typeof t[a]=="boolean"&&t[a]===!0}};function Rle(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var Mle="AI_InvalidArgumentError",Ole=`vercel.ai.error.${Mle}`,$at=Symbol.for(Ole),Ple,$le,jat=class extends($le=pp,Ple=$at,$le){constructor({message:e,cause:t,argument:n}){super({name:Mle,message:e,cause:t}),this[Ple]=!0,this.argument=n}static isInstance(e){return pp.hasMarker(e,Ole)}},jle="AI_JSONParseError",qle=`vercel.ai.error.${jle}`,qat=Symbol.for(qle),Gle,zle,Ule=class extends(zle=pp,Gle=qat,zle){constructor({text:e,cause:t}){super({name:jle,message:`JSON parsing failed: Text: ${e}.
428
428
  Error message: ${Rle(t)}`,cause:t}),this[Gle]=!0,this.text=e}static isInstance(e){return pp.hasMarker(e,qle)}},Hle="AI_TypeValidationError",Yle=`vercel.ai.error.${Hle}`,Gat=Symbol.for(Yle),Wle,Kle,fx=class iY extends(Kle=pp,Wle=Gat,Kle){constructor({value:t,cause:n}){super({name:Hle,message:`Type validation failed: Value: ${JSON.stringify(t)}.
429
429
  Error message: ${Rle(n)}`,cause:n}),this[Wle]=!0,this.value=t}static isInstance(t){return pp.hasMarker(t,Yle)}static wrap({value:t,cause:n}){return iY.isInstance(n)&&n.value===t?n:new iY({value:t,cause:n})}};class Zle extends Error{constructor(t,n){super(t),this.name="ParseError",this.type=n.type,this.field=n.field,this.value=n.value,this.line=n.line}}function o5(e){}function zat(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:t=o5,onError:n=o5,onRetry:a=o5,onComment:r}=e;let i="",o=!0,s,l="",u="";function d(h){const f=o?h.replace(/^\xEF\xBB\xBF/,""):h,[b,y]=Uat(`${i}${f}`);for(const w of b)p(w);i=y,o=!1}function p(h){if(h===""){A();return}if(h.startsWith(":")){r&&r(h.slice(h.startsWith(": ")?2:1));return}const f=h.indexOf(":");if(f!==-1){const b=h.slice(0,f),y=h[f+1]===" "?2:1,w=h.slice(f+y);m(b,w,h);return}m(h,"",h)}function m(h,f,b){switch(h){case"event":u=f;break;case"data":l=`${l}${f}
430
430
  `;break;case"id":s=f.includes("\0")?void 0:f;break;case"retry":/^\d+$/.test(f)?a(parseInt(f,10)):n(new Zle(`Invalid \`retry\` value: "${f}"`,{type:"invalid-retry",value:f,line:b}));break;default:n(new Zle(`Unknown field "${h.length>20?`${h.slice(0,20)}…`:h}"`,{type:"unknown-field",field:h,value:f,line:b}));break}}function A(){l.length>0&&t({id:s,event:u||void 0,data:l.endsWith(`
@@ -476,7 +476,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
476
476
 
477
477
  `)},flush(e){e.enqueue(`data: [DONE]
478
478
 
479
- `)}})}};var Glt=Rct(()=>Qde(rc([nr({type:Pn("text-start"),id:gn(),providerMetadata:kr.optional()}),nr({type:Pn("text-delta"),id:gn(),delta:gn(),providerMetadata:kr.optional()}),nr({type:Pn("text-end"),id:gn(),providerMetadata:kr.optional()}),nr({type:Pn("error"),errorText:gn()}),nr({type:Pn("tool-input-start"),toolCallId:gn(),toolName:gn(),providerExecuted:as().optional(),dynamic:as().optional()}),nr({type:Pn("tool-input-delta"),toolCallId:gn(),inputTextDelta:gn()}),nr({type:Pn("tool-input-available"),toolCallId:gn(),toolName:gn(),input:Rl(),providerExecuted:as().optional(),providerMetadata:kr.optional(),dynamic:as().optional()}),nr({type:Pn("tool-input-error"),toolCallId:gn(),toolName:gn(),input:Rl(),providerExecuted:as().optional(),providerMetadata:kr.optional(),dynamic:as().optional(),errorText:gn()}),nr({type:Pn("tool-output-available"),toolCallId:gn(),output:Rl(),providerExecuted:as().optional(),dynamic:as().optional(),preliminary:as().optional()}),nr({type:Pn("tool-output-error"),toolCallId:gn(),errorText:gn(),providerExecuted:as().optional(),dynamic:as().optional()}),nr({type:Pn("reasoning-start"),id:gn(),providerMetadata:kr.optional()}),nr({type:Pn("reasoning-delta"),id:gn(),delta:gn(),providerMetadata:kr.optional()}),nr({type:Pn("reasoning-end"),id:gn(),providerMetadata:kr.optional()}),nr({type:Pn("source-url"),sourceId:gn(),url:gn(),title:gn().optional(),providerMetadata:kr.optional()}),nr({type:Pn("source-document"),sourceId:gn(),mediaType:gn(),title:gn(),filename:gn().optional(),providerMetadata:kr.optional()}),nr({type:Pn("file"),url:gn(),mediaType:gn(),providerMetadata:kr.optional()}),nr({type:wde(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:gn().optional(),data:Rl(),transient:as().optional()}),nr({type:Pn("start-step")}),nr({type:Pn("finish-step")}),nr({type:Pn("start"),messageId:gn().optional(),messageMetadata:Rl().optional()}),nr({type:Pn("finish"),finishReason:Ade(["stop","length","content-filter","tool-calls","error","other","unknown"]).optional(),messageMetadata:Rl().optional()}),nr({type:Pn("abort")}),nr({type:Pn("message-metadata"),messageMetadata:Rl()})])));function zlt(e){return e.type.startsWith("data-")}function $de(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;const n={...e};for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){const r=t[a];if(r===void 0)continue;const i=a in e?e[a]:void 0,o=r!==null&&typeof r=="object"&&!Array.isArray(r)&&!(r instanceof Date)&&!(r instanceof RegExp),s=i!=null&&typeof i=="object"&&!Array.isArray(i)&&!(i instanceof Date)&&!(i instanceof RegExp);o&&s?n[a]=$de(i,r):n[a]=r}return n}function Ult(e){const t=["ROOT"];let n=-1,a=null;function r(l,u,d){switch(l){case'"':{n=u,t.pop(),t.push(d),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{n=u,a=u,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=u,t.pop(),t.push(d),t.push("INSIDE_NUMBER");break}case"{":{n=u,t.pop(),t.push(d),t.push("INSIDE_OBJECT_START");break}case"[":{n=u,t.pop(),t.push(d),t.push("INSIDE_ARRAY_START");break}}}function i(l,u){switch(l){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{n=u,t.pop();break}}}function o(l,u){switch(l){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=u,t.pop();break}}}for(let l=0;l<e.length;l++){const u=e[l];switch(t[t.length-1]){case"ROOT":r(u,l,"FINISH");break;case"INSIDE_OBJECT_START":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{n=l,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{u===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{r(u,l,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{i(u,l);break}case"INSIDE_STRING":{switch(u){case'"':{t.pop(),n=l;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:n=l}break}case"INSIDE_ARRAY_START":{u==="]"?(n=l,t.pop()):(n=l,r(u,l,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(u){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=l,t.pop();break}default:{n=l;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{r(u,l,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),n=l;break}case"INSIDE_NUMBER":{switch(u){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=l;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&o(u,l),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&i(u,l);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&i(u,l);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&o(u,l);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const p=e.substring(a,l+1);!"false".startsWith(p)&&!"true".startsWith(p)&&!"null".startsWith(p)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?i(u,l):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&o(u,l)):n=l;break}}}let s=e.slice(0,n+1);for(let l=t.length-1;l>=0;l--)switch(t[l]){case"INSIDE_STRING":{s+='"';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":{s+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{s+="]";break}case"INSIDE_LITERAL":{const d=e.substring(a,e.length);"true".startsWith(d)?s+="true".slice(d.length):"false".startsWith(d)?s+="false".slice(d.length):"null".startsWith(d)&&(s+="null".slice(d.length))}}return s}async function jde(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await Fx({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await Fx({text:Ult(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}function Rx(e){return e.type.startsWith("tool-")}function Hlt(e){return e.type==="dynamic-tool"}function qde(e){return Rx(e)||Hlt(e)}function Gde(e){return e.type.split("-").slice(1).join("-")}function Ylt({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function Wlt({stream:e,messageMetadataSchema:t,dataPartSchemas:n,runUpdateMessageJob:a,onError:r,onToolCall:i,onData:o}){return e.pipeThrough(new TransformStream({async transform(s,l){await a(async({state:u,write:d})=>{var p,m,A,g;function h(k){const E=u.message.parts.filter(Rx).find(v=>v.toolCallId===k);if(E==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return E}function f(k){const E=u.message.parts.filter(v=>v.type==="dynamic-tool").find(v=>v.toolCallId===k);if(E==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return E}function b(k){var _;const E=u.message.parts.find(S=>Rx(S)&&S.toolCallId===k.toolCallId),v=k,x=E;E!=null?(E.state=k.state,x.input=v.input,x.output=v.output,x.errorText=v.errorText,x.rawInput=v.rawInput,x.preliminary=v.preliminary,x.providerExecuted=(_=v.providerExecuted)!=null?_:E.providerExecuted,v.providerMetadata!=null&&E.state==="input-available"&&(E.callProviderMetadata=v.providerMetadata)):u.message.parts.push({type:`tool-${k.toolName}`,toolCallId:k.toolCallId,state:k.state,input:v.input,output:v.output,rawInput:v.rawInput,errorText:v.errorText,providerExecuted:v.providerExecuted,preliminary:v.preliminary,...v.providerMetadata!=null?{callProviderMetadata:v.providerMetadata}:{}})}function y(k){var _,E;const v=u.message.parts.find(I=>I.type==="dynamic-tool"&&I.toolCallId===k.toolCallId),x=k,S=v;v!=null?(v.state=k.state,S.toolName=k.toolName,S.input=x.input,S.output=x.output,S.errorText=x.errorText,S.rawInput=(_=x.rawInput)!=null?_:S.rawInput,S.preliminary=x.preliminary,S.providerExecuted=(E=x.providerExecuted)!=null?E:v.providerExecuted,x.providerMetadata!=null&&v.state==="input-available"&&(v.callProviderMetadata=x.providerMetadata)):u.message.parts.push({type:"dynamic-tool",toolName:k.toolName,toolCallId:k.toolCallId,state:k.state,input:x.input,output:x.output,errorText:x.errorText,preliminary:x.preliminary,providerExecuted:x.providerExecuted,...x.providerMetadata!=null?{callProviderMetadata:x.providerMetadata}:{}})}async function w(k){if(k!=null){const _=u.message.metadata!=null?$de(u.message.metadata,k):k;t!=null&&await Cde({value:_,schema:t}),u.message.metadata=_}}switch(s.type){case"text-start":{const k={type:"text",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeTextParts[s.id]=k,u.message.parts.push(k),d();break}case"text-delta":{const k=u.activeTextParts[s.id];k.text+=s.delta,k.providerMetadata=(p=s.providerMetadata)!=null?p:k.providerMetadata,d();break}case"text-end":{const k=u.activeTextParts[s.id];k.state="done",k.providerMetadata=(m=s.providerMetadata)!=null?m:k.providerMetadata,delete u.activeTextParts[s.id],d();break}case"reasoning-start":{const k={type:"reasoning",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeReasoningParts[s.id]=k,u.message.parts.push(k),d();break}case"reasoning-delta":{const k=u.activeReasoningParts[s.id];k.text+=s.delta,k.providerMetadata=(A=s.providerMetadata)!=null?A:k.providerMetadata,d();break}case"reasoning-end":{const k=u.activeReasoningParts[s.id];k.providerMetadata=(g=s.providerMetadata)!=null?g:k.providerMetadata,k.state="done",delete u.activeReasoningParts[s.id],d();break}case"file":{u.message.parts.push({type:"file",mediaType:s.mediaType,url:s.url}),d();break}case"source-url":{u.message.parts.push({type:"source-url",sourceId:s.sourceId,url:s.url,title:s.title,providerMetadata:s.providerMetadata}),d();break}case"source-document":{u.message.parts.push({type:"source-document",sourceId:s.sourceId,mediaType:s.mediaType,title:s.title,filename:s.filename,providerMetadata:s.providerMetadata}),d();break}case"tool-input-start":{const k=u.message.parts.filter(Rx);u.partialToolCalls[s.toolCallId]={text:"",toolName:s.toolName,index:k.length,dynamic:s.dynamic},s.dynamic?y({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted}):b({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted}),d();break}case"tool-input-delta":{const k=u.partialToolCalls[s.toolCallId];k.text+=s.inputTextDelta;const{value:_}=await jde(k.text);k.dynamic?y({toolCallId:s.toolCallId,toolName:k.toolName,state:"input-streaming",input:_}):b({toolCallId:s.toolCallId,toolName:k.toolName,state:"input-streaming",input:_}),d();break}case"tool-input-available":{s.dynamic?y({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}):b({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}),d(),i&&!s.providerExecuted&&await i({toolCall:s});break}case"tool-input-error":{s.dynamic?y({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}):b({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:void 0,rawInput:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}),d();break}case"tool-output-available":{if(s.dynamic){const k=f(s.toolCallId);y({toolCallId:s.toolCallId,toolName:k.toolName,state:"output-available",input:k.input,output:s.output,preliminary:s.preliminary})}else{const k=h(s.toolCallId);b({toolCallId:s.toolCallId,toolName:Gde(k),state:"output-available",input:k.input,output:s.output,providerExecuted:s.providerExecuted,preliminary:s.preliminary})}d();break}case"tool-output-error":{if(s.dynamic){const k=f(s.toolCallId);y({toolCallId:s.toolCallId,toolName:k.toolName,state:"output-error",input:k.input,errorText:s.errorText,providerExecuted:s.providerExecuted})}else{const k=h(s.toolCallId);b({toolCallId:s.toolCallId,toolName:Gde(k),state:"output-error",input:k.input,rawInput:k.rawInput,errorText:s.errorText,providerExecuted:s.providerExecuted})}d();break}case"start-step":{u.message.parts.push({type:"step-start"});break}case"finish-step":{u.activeTextParts={},u.activeReasoningParts={};break}case"start":{s.messageId!=null&&(u.message.id=s.messageId),await w(s.messageMetadata),(s.messageId!=null||s.messageMetadata!=null)&&d();break}case"finish":{s.finishReason!=null&&(u.finishReason=s.finishReason),await w(s.messageMetadata),s.messageMetadata!=null&&d();break}case"message-metadata":{await w(s.messageMetadata),s.messageMetadata!=null&&d();break}case"error":{r?.(new Error(s.errorText));break}default:if(zlt(s)){n?.[s.type]!=null&&await Cde({value:s.data,schema:n[s.type]});const k=s;if(k.transient){o?.(k);break}const _=k.id!=null?u.message.parts.find(E=>k.type===E.type&&k.id===E.id):void 0;_!=null?_.data=k.data:u.message.parts.push(k),o?.(k),d()}}l.enqueue(s)})}}))}async function Klt({stream:e,onError:t}){const n=e.getReader();try{for(;;){const{done:a}=await n.read();if(a)break}}catch(a){t?.(a)}finally{n.releaseLock()}}Kw({prefix:"aitxt",size:24}),Kw({prefix:"aiobj",size:24});var Zlt=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,n)=>{this.queue.push(async()=>{try{await e(),t()}catch(a){n(a)}}),this.processQueue()})}};Kw({prefix:"aiobj",size:24});var Vlt={};Nlt(Vlt,{object:()=>Xlt,text:()=>Jlt});var Jlt=()=>({type:"text",responseFormat:{type:"text"},async parsePartial({text:e}){return{partial:e}},async parseOutput({text:e}){return e}}),Xlt=({schema:e})=>{const t=Qlt(e);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},async parsePartial({text:n}){const a=await jde(n);switch(a.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:a.value};default:{const r=a.state;throw new Error(`Unsupported parse state: ${r}`)}}},async parseOutput({text:n},a){const r=await Fx({text:n});if(!r.success)throw new Lde({message:"No object generated: could not parse the response.",cause:r.error,text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});const i=await k5({value:r.value,schema:t});if(!i.success)throw new Lde({message:"No object generated: response did not match schema.",cause:i.error,text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});return i.value}}};async function eut(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{const{name:n,type:a}=t,r=await new Promise((i,o)=>{const s=new FileReader;s.onload=l=>{var u;i((u=l.target)==null?void 0:u.result)},s.onerror=l=>o(l),s.readAsDataURL(t)});return{type:"file",mediaType:a,filename:n,url:r}}))}var tut=class{constructor({api:e="/api/chat",credentials:t,headers:n,body:a,fetch:r,prepareSendMessagesRequest:i,prepareReconnectToStreamRequest:o}){this.api=e,this.credentials=t,this.headers=n,this.body=a,this.fetch=r,this.prepareSendMessagesRequest=i,this.prepareReconnectToStreamRequest=o}async sendMessages({abortSignal:e,...t}){var n,a,r,i,o;const s=await df(this.body),l=await df(this.headers),u=await df(this.credentials),d={...uf(l),...uf(t.headers)},p=await((n=this.prepareSendMessagesRequest)==null?void 0:n.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:d,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),m=(a=p?.api)!=null?a:this.api,A=p?.headers!==void 0?uf(p.headers):d,g=p?.body!==void 0?p.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},h=(r=p?.credentials)!=null?r:u,b=await((i=this.fetch)!=null?i:globalThis.fetch)(m,{method:"POST",headers:{"Content-Type":"application/json",...A},body:JSON.stringify(g),credentials:h,signal:e});if(!b.ok)throw new Error((o=await b.text())!=null?o:"Failed to fetch the chat response.");if(!b.body)throw new Error("The response body is empty.");return this.processResponseStream(b.body)}async reconnectToStream(e){var t,n,a,r,i;const o=await df(this.body),s=await df(this.headers),l=await df(this.credentials),u={...uf(s),...uf(e.headers)},d=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...o,...e.body},headers:u,credentials:l,requestMetadata:e.metadata})),p=(n=d?.api)!=null?n:`${this.api}/${e.chatId}/stream`,m=d?.headers!==void 0?uf(d.headers):u,A=(a=d?.credentials)!=null?a:l,h=await((r=this.fetch)!=null?r:globalThis.fetch)(p,{method:"GET",headers:m,credentials:A});if(h.status===204)return null;if(!h.ok)throw new Error((i=await h.text())!=null?i:"Failed to fetch the chat response.");if(!h.body)throw new Error("The response body is empty.");return this.processResponseStream(h.body)}},zde=class extends tut{constructor(e={}){super(e)}processResponseStream(e){return Pct({stream:e,schema:Glt}).pipeThrough(new TransformStream({async transform(t,n){if(!t.success)throw t.error;n.enqueue(t.value)}}))}},nut=class{constructor({generateId:e=Sct,id:t=e(),transport:n=new zde,messageMetadataSchema:a,dataPartSchemas:r,state:i,onError:o,onToolCall:s,onFinish:l,onData:u,sendAutomaticallyWhen:d}){this.activeResponse=void 0,this.jobExecutor=new Zlt,this.sendMessage=async(p,m)=>{var A,g,h,f;if(p==null){await this.makeRequest({trigger:"submit-message",messageId:(A=this.lastMessage)==null?void 0:A.id,...m});return}let b;if("text"in p||"files"in p?b={parts:[...Array.isArray(p.files)?p.files:await eut(p.files),..."text"in p&&p.text!=null?[{type:"text",text:p.text}]:[]]}:b=p,p.messageId!=null){const y=this.state.messages.findIndex(w=>w.id===p.messageId);if(y===-1)throw new Error(`message with id ${p.messageId} not found`);if(this.state.messages[y].role!=="user")throw new Error(`message with id ${p.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,y+1),this.state.replaceMessage(y,{...b,id:p.messageId,role:(g=b.role)!=null?g:"user",metadata:p.metadata})}else this.state.pushMessage({...b,id:(h=b.id)!=null?h:this.generateId(),role:(f=b.role)!=null?f:"user",metadata:p.metadata});await this.makeRequest({trigger:"submit-message",messageId:p.messageId,...m})},this.regenerate=async({messageId:p,...m}={})=>{const A=p==null?this.state.messages.length-1:this.state.messages.findIndex(g=>g.id===p);if(A===-1)throw new Error(`message ${p} not found`);this.state.messages=this.state.messages.slice(0,this.messages[A].role==="assistant"?A:A+1),await this.makeRequest({trigger:"regenerate-message",messageId:p,...m})},this.resumeStream=async(p={})=>{await this.makeRequest({trigger:"resume-stream",...p})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolOutput=async({state:p="output-available",tool:m,toolCallId:A,output:g,errorText:h})=>this.jobExecutor.run(async()=>{var f,b;const y=this.state.messages,w=y[y.length-1];this.state.replaceMessage(y.length-1,{...w,parts:w.parts.map(k=>qde(k)&&k.toolCallId===A?{...k,state:p,output:g,errorText:h}:k)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(k=>qde(k)&&k.toolCallId===A?{...k,state:p,output:g,errorText:h}:k)),this.status!=="streaming"&&this.status!=="submitted"&&((f=this.sendAutomaticallyWhen)!=null&&f.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:(b=this.lastMessage)==null?void 0:b.id})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var p;this.status!=="streaming"&&this.status!=="submitted"||(p=this.activeResponse)!=null&&p.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=n,this.generateId=e,this.messageMetadataSchema=a,this.dataPartSchemas=r,this.state=i,this.onError=o,this.onToolCall=s,this.onFinish=l,this.onData=u,this.sendAutomaticallyWhen=d}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async makeRequest({trigger:e,metadata:t,headers:n,body:a,messageId:r}){var i,o,s,l;this.setStatus({status:"submitted",error:void 0});const u=this.lastMessage;let d=!1,p=!1,m=!1;try{const A={state:Ylt({lastMessage:this.state.snapshot(u),messageId:this.generateId()}),abortController:new AbortController};A.abortController.signal.addEventListener("abort",()=>{d=!0}),this.activeResponse=A;let g;if(e==="resume-stream"){const f=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:n,body:a});if(f==null){this.setStatus({status:"ready"});return}g=f}else g=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:A.abortController.signal,metadata:t,headers:n,body:a,trigger:e,messageId:r});const h=f=>this.jobExecutor.run(()=>f({state:A.state,write:()=>{var b;this.setStatus({status:"streaming"}),A.state.message.id===((b=this.lastMessage)==null?void 0:b.id)?this.state.replaceMessage(this.state.messages.length-1,A.state.message):this.state.pushMessage(A.state.message)}}));await Klt({stream:Wlt({stream:g,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:h,onError:f=>{throw f}}),onError:f=>{throw f}}),this.setStatus({status:"ready"})}catch(A){if(d||A.name==="AbortError")return d=!0,this.setStatus({status:"ready"}),null;m=!0,A instanceof TypeError&&(A.message.toLowerCase().includes("fetch")||A.message.toLowerCase().includes("network"))&&(p=!0),this.onError&&A instanceof Error&&this.onError(A),this.setStatus({status:"error",error:A})}finally{try{(o=this.onFinish)==null||o.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:d,isDisconnect:p,isError:m,finishReason:(i=this.activeResponse)==null?void 0:i.state.finishReason})}catch(A){console.error(A)}this.activeResponse=void 0}(s=this.sendAutomaticallyWhen)!=null&&s.call(this,{messages:this.state.messages})&&!m&&await this.makeRequest({trigger:"submit-message",messageId:(l=this.lastMessage)==null?void 0:l.id,metadata:t,headers:n,body:a})}},B5,Ude;function aut(){if(Ude)return B5;Ude=1;function e(t,n){if(typeof t!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);let a,r=0;return function(...o){clearTimeout(a);const s=Date.now(),l=s-r,u=n-l;u<=0?(r=s,t.apply(this,o)):a=setTimeout(()=>{r=Date.now(),t.apply(this,o)},u)}}return B5=e,B5}var rut=aut();const iut=Zs(rut);var Hde=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Pa=(e,t,n)=>(Hde(e,t,"read from private field"),n?n.call(e):t.get(e)),Ml=(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)},fp=(e,t,n,a)=>(Hde(e,t,"write to private field"),t.set(e,n),n);function out(e,t){return t!=null?iut(e,t):e}var ic,Mx,Ox,Vw,Jw,Xw,pf,I5,S5,sut=class{constructor(e=[]){Ml(this,ic,void 0),Ml(this,Mx,"ready"),Ml(this,Ox,void 0),Ml(this,Vw,new Set),Ml(this,Jw,new Set),Ml(this,Xw,new Set),this.pushMessage=t=>{fp(this,ic,Pa(this,ic).concat(t)),Pa(this,pf).call(this)},this.popMessage=()=>{fp(this,ic,Pa(this,ic).slice(0,-1)),Pa(this,pf).call(this)},this.replaceMessage=(t,n)=>{fp(this,ic,[...Pa(this,ic).slice(0,t),this.snapshot(n),...Pa(this,ic).slice(t+1)]),Pa(this,pf).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,n)=>{const a=n?out(t,n):t;return Pa(this,Vw).add(a),()=>{Pa(this,Vw).delete(a)}},this["~registerStatusCallback"]=t=>(Pa(this,Jw).add(t),()=>{Pa(this,Jw).delete(t)}),this["~registerErrorCallback"]=t=>(Pa(this,Xw).add(t),()=>{Pa(this,Xw).delete(t)}),Ml(this,pf,()=>{Pa(this,Vw).forEach(t=>t())}),Ml(this,I5,()=>{Pa(this,Jw).forEach(t=>t())}),Ml(this,S5,()=>{Pa(this,Xw).forEach(t=>t())}),fp(this,ic,e)}get status(){return Pa(this,Mx)}set status(e){fp(this,Mx,e),Pa(this,I5).call(this)}get error(){return Pa(this,Ox)}set error(e){fp(this,Ox,e),Pa(this,S5).call(this)}get messages(){return Pa(this,ic)}set messages(e){fp(this,ic,[...e]),Pa(this,pf).call(this)}};ic=new WeakMap,Mx=new WeakMap,Ox=new WeakMap,Vw=new WeakMap,Jw=new WeakMap,Xw=new WeakMap,pf=new WeakMap,I5=new WeakMap,S5=new WeakMap;var mf,Yde=class extends nut{constructor({messages:t,...n}){const a=new sut(t);super({...n,state:a}),Ml(this,mf,void 0),this["~registerMessagesCallback"]=(r,i)=>Pa(this,mf)["~registerMessagesCallback"](r,i),this["~registerStatusCallback"]=r=>Pa(this,mf)["~registerStatusCallback"](r),this["~registerErrorCallback"]=r=>Pa(this,mf)["~registerErrorCallback"](r),fp(this,mf,a)}};mf=new WeakMap;function cut({experimental_throttle:e,resume:t=!1,...n}={}){const a=te.useRef("chat"in n?n.chat:new Yde(n));("chat"in n&&n.chat!==a.current||"id"in n&&a.current.id!==n.id)&&(a.current="chat"in n?n.chat:new Yde(n));const i=te.useCallback(d=>a.current["~registerMessagesCallback"](d,e),[e,a.current.id]),o=te.useSyncExternalStore(i,()=>a.current.messages,()=>a.current.messages),s=te.useSyncExternalStore(a.current["~registerStatusCallback"],()=>a.current.status,()=>a.current.status),l=te.useSyncExternalStore(a.current["~registerErrorCallback"],()=>a.current.error,()=>a.current.error),u=te.useCallback(d=>{typeof d=="function"&&(d=d(a.current.messages)),a.current.messages=d},[a]);return te.useEffect(()=>{t&&a.current.resumeStream()},[t,a]),{id:a.current.id,messages:o,setMessages:u,sendMessage:a.current.sendMessage,regenerate:a.current.regenerate,clearError:a.current.clearError,stop:a.current.stop,error:l,resumeStream:a.current.resumeStream,status:s,addToolResult:a.current.addToolOutput,addToolOutput:a.current.addToolOutput}}function D5(){const e=Ur.useLocation(),t=Ur.useNavigate(),a=Kt.getConfig().app?.basePath||"/",r=te.useMemo(()=>{const o=e.pathname,s=o.endsWith("/")&&o!=="/"?o.slice(0,-1):o,l=a.endsWith("/")&&a!=="/"?a.slice(0,-1):a;if(s===(l||"/"))return"/";if(o.startsWith(l)&&l!=="/"){let u=o.slice(l.length);return u.startsWith("/")||(u="/"+u),u}return l==="/"?o:"/"},[e.pathname,a]),i=te.useCallback(o=>{t(M4(a,o||"/"),{replace:!1})},[t,a]);return[r,i]}const lut="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Px=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=lut[n[e]&63];return t};function Wde({onFinish:e}={}){const{t}=fa(["chat","errors"]),n=fu(),a=Kt.getConfig(),r=a.app?.cacheNamespace||"gentiq",[i,o]=D5(),[s,l]=te.useState(()=>Px()),u=te.useRef(new Set);te.useEffect(()=>{(i==="/"||s&&i!==`/${s}`)&&l(Px())},[i]);const d=te.useMemo(()=>i==="/"?s:i.replace(/^\//,""),[i,s]),p=te.useCallback(R=>(u.current.add(R),R),[]),m=te.useCallback(()=>{u.current.forEach(R=>URL.revokeObjectURL(R)),u.current.clear()},[]);te.useEffect(()=>()=>m(),[m]);const{data:A,isLoading:g,isError:h}=Rm({queryKey:[r,"threadMessages",d],queryFn:async()=>{if(i==="/")return[];if(i===`/${s}`)return[];const R=await Kt.getThreadMessages(d);return!R.items||!Array.isArray(R.items)?[]:Promise.all(R.items.map(async B=>{const T=typeof B.content=="string"?B.content:B.content?.text||JSON.stringify(B.content),L=[...Array.isArray(B.parts)&&B.parts.length>0?B.parts:[{type:"text",text:T}]].sort((P,O)=>P.type==="file"&&O.type!=="file"?-1:P.type!=="file"&&O.type==="file"?1:0),M=await Promise.all(L.map(async P=>{if(P.type==="file"&&P.object_name&&!P.url)try{const O=await Kt.getAttachmentBlobUrl(P.object_name);return{...P,url:p(O),mediaType:P.mediaType||P.media_type}}catch(O){return console.warn("Load attachment failed:",P.object_name,O),{...P,mediaType:P.mediaType||P.media_type}}return P}));return{id:B.id||Px(),role:B.role,parts:M,metadata:{feedback:B.feedback}}}))},enabled:i!=="/",staleTime:5e3}),f=te.useMemo(()=>new zde({api:Kt.getEndpoint("chat","/chat"),fetch:async(R,B)=>{const T=new Headers(B?.headers),F=Kt.getHeaders();Object.entries(F).forEach(([O,$])=>{T.set(O,$)}),T.set("X-Thread-Id",d);const L=a.api?.basePath||"/api",M=typeof R=="string"&&!R.startsWith("http")?`${L}${R.startsWith("/")?R:"/"+R}`:R,P=await fetch(M,{...B,headers:T});if(!P.ok){const O=await P.json().catch(()=>({}));if(O.error&&(O.error.code||O.error.message))throw new lW(O,P.status);const $=O.error||O.message||P.statusText;throw new Error(`${P.status}: ${$}`)}return P}}),[d,a.api?.basePath]),b=te.useCallback(()=>{k("ready"),n.invalidateQueries({queryKey:[r,"conversations"]}),e?.()},[n,e,r]),y=cut({id:d,onFinish:b,transport:f}),[w,k]=te.useState("idle"),[_,E]=te.useState(null),v=te.useCallback(()=>{E(null)},[]);te.useEffect(()=>{A&&(i===`/${s}`||(y.setMessages(A),k("ready")))},[A,y.setMessages,i,s]),te.useEffect(()=>{i==="/"&&(y.setMessages([]),k("idle"))},[i,y.setMessages]),te.useEffect(()=>{if(i==="/"){k("idle");return}const R=i===`/${s}`;g&&!R?k("loading-history"):h||_||y.error?k("error"):y.status==="streaming"||y.status==="submitted"?k(y.status):k("ready")},[g,h,y.status,_,y.error,i,s]),te.useEffect(()=>()=>{y.stop()},[d,y.stop]);const x=te.useRef(new Set),S=te.useMemo(()=>y.messages.filter(R=>R.role==="assistant"),[y.messages]);te.useEffect(()=>{let R=!1;for(const B of S){if(x.current.has(B.id))continue;const T=B.parts.find(F=>F.type==="data-title");T&&T.data?.[0]?.title&&(x.current.add(B.id),R=!0)}R&&n.invalidateQueries({queryKey:[r,"conversations"]})},[S,n,r]);const I=te.useCallback(async(R,B)=>{const T=i==="/",F=R.trim();if(!(!F&&(!B||B.length===0))&&!(w==="loading-history"||w==="streaming"||w==="submitted")){if(y.stop(),T){o(`/${d}`);const L=F||t("attach_file"),M=L.length>30?L.slice(0,30)+"...":L;n.setQueryData([r,"conversations"],P=>{const O={id:`/${d}`,firstMessage:M,timestamp:Date.now()};return P&&Array.isArray(P.pages)?{...P,pages:P.pages.map(($,q)=>q===0?{...$,threads:[O,...$.threads||[]]}:$)}:[O,...Array.isArray(P)?P:[]]})}k("submitted"),E(null);try{await y.sendMessage({text:F,files:B})}catch(L){console.error("Failed to send message:",L);const M=uh(L,t);E(new Error(M)),k("error")}}},[y,o,i,d,t,n,w,r]),D=te.useCallback(()=>{y.stop(),k("ready"),n.invalidateQueries({queryKey:[r,"conversations"]})},[y.stop,n,r]),N=te.useMemo(()=>{if(_)return _;if(y.error){const R=uh(y.error,t);return new Error(R)}return null},[_,y.error,t]);return te.useMemo(()=>({...y,sendMessage:I,stop:D,clearError:v,error:N,status:w,isLoadingHistory:w==="loading-history",isErrorHistory:w==="error"||!!N||h,conversationId:i}),[y,I,D,v,N,w,h,i])}function uut({classNames:e={},disclaimer:t}){const{t:n,i18n:a}=fa(["chat","translation"]),r=Wde(),{messages:i,status:o,regenerate:s,error:l,clearError:u,stop:d,isLoadingHistory:p,conversationId:m,sendMessage:A}=r,{MessageList:g,PromptInput:h,disclaimer:f}=Or(),b=t??f,y=a.exists("chat:disclaimer")?n("chat:disclaimer"):null,w=typeof b=="string"?n(b):b??y,[k,_]=te.useState(null),E=te.useRef(o);te.useLayoutEffect(()=>{l&&u()},[m,u,l]);const v=i[i.length-1],x=v?.role==="assistant"&&(o==="ready"||v.parts.some(I=>I.type==="data-chat-finished"));te.useEffect(()=>{o==="error"&&E.current!=="error"&&k!==m?_(m):o==="submitted"&&k!==null&&_(null),E.current=o},[o,m]);const S=o==="error"&&(m==="/"||k===m);return Q.jsxs("div",{className:yt("relative flex flex-col h-full overflow-hidden",e.container),children:[Q.jsx(g,{messages:i,status:o,isLoadingHistory:p,error:S?l:null,conversationId:m,regen:I=>s({messageId:I}),onSuggestionClick:I=>A(I),chat:r,className:yt("flex-1",e.messageList)}),Q.jsxs("div",{className:"absolute bottom-0 left-0 right-0 z-10 pointer-events-none flex flex-col items-stretch",children:[Q.jsx(h,{onSend:A,status:o,isLastMessageFinished:x,stop:d,isErrorVisible:S,conversationId:m,className:yt("pointer-events-auto",e.inputArea,w&&"pb-0 md:pb-0")}),w&&Q.jsxs("div",{className:"relative py-1 px-4 flex justify-center items-center pointer-events-auto",children:[Q.jsx("div",{className:"absolute inset-x-0 bottom-0 top-[-20px] bg-background/80 backdrop-blur-sm [mask-image:linear-gradient(to_top,black_60%,transparent)] pointer-events-none -z-10"}),Q.jsx("p",{className:"text-[10px] md:text-[11px] text-muted-foreground/60 select-none text-center leading-tight",children:w})]})]})]})}const Kde=({components:e,history:t,welcome:n,threadActions:a,composer:r,theme:i,disclaimer:o,...s})=>{const l=Or(),u=te.useMemo(()=>({...l,...e,toolComponents:{...l.toolComponents,...e?.toolComponents}}),[l,e]);return Q.jsx(_le,{components:u,history:t??l.history,welcome:n??l.welcome,threadActions:a??l.threadActions,composer:r??l.composer,theme:i??l.theme,disclaimer:o??l.disclaimer,children:Q.jsx(uut,{...s})})},Q5=768;function dut(){const[e,t]=re.useState(void 0);return re.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Q5-1}px)`),a=()=>{t(window.innerWidth<Q5)};return n.addEventListener("change",a),t(window.innerWidth<Q5),()=>{n.removeEventListener("change",a)}},[]),!!e}function rs({className:e,type:t,...n}){return Q.jsx("input",{type:t,"data-slot":"input",className:yt("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}function put({...e}){return Q.jsx(aae,{"data-slot":"sheet",...e})}function mut({...e}){return Q.jsx(rae,{"data-slot":"sheet-portal",...e})}function Aut({className:e,...t}){return Q.jsx(iae,{"data-slot":"sheet-overlay",className:yt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function gut({className:e,children:t,side:n="right",...a}){return Q.jsxs(mut,{children:[Q.jsx(Aut,{}),Q.jsxs(oae,{"data-slot":"sheet-content",className:yt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...a,children:[t,Q.jsxs(lae,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[Q.jsx(jm,{className:"size-4"}),Q.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function hut({className:e,...t}){return Q.jsx("div",{"data-slot":"sheet-header",className:yt("flex flex-col gap-1.5 p-4",e),...t})}function fut({className:e,...t}){return Q.jsx(sae,{"data-slot":"sheet-title",className:yt("text-foreground font-semibold",e),...t})}function but({className:e,...t}){return Q.jsx(cae,{"data-slot":"sheet-description",className:yt("text-muted-foreground text-sm",e),...t})}const yut="sidebar_state",wut=3600*24*7,kut="19rem",vut="18rem",_ut="3rem",Cut="b",Zde=re.createContext(null);function T5(){const e=re.useContext(Zde);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Vde({defaultOpen:e=!0,open:t,onOpenChange:n,className:a,style:r,children:i,...o}){const s=dut(),[l,u]=re.useState(!1),[d,p]=re.useState(e),m=t??d,A=re.useCallback(b=>{const y=typeof b=="function"?b(m):b;n?n(y):p(y),document.cookie=`${yut}=${y}; path=/; max-age=${wut}`},[n,m]),g=re.useCallback(()=>{s?u(b=>!b):A(b=>!b)},[s,A,u]);re.useEffect(()=>{const b=y=>{y.key===Cut&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),g())};return window.addEventListener("keydown",b),()=>{window.removeEventListener("keydown",b)}},[g]);const h=m?"expanded":"collapsed",f=re.useMemo(()=>({state:h,open:m,setOpen:A,isMobile:s,openMobile:l,setOpenMobile:u,toggleSidebar:g}),[h,m,A,s,l,u,g]);return Q.jsx(Zde.Provider,{value:f,children:Q.jsx(M1,{delayDuration:0,children:Q.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":kut,"--sidebar-width-icon":_ut,...r},className:yt("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",a),...o,children:i})})})}function Eut({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:a,children:r,...i}){const{isMobile:o,state:s,openMobile:l,setOpenMobile:u}=T5();return n==="none"?Q.jsx("div",{"data-slot":"sidebar",className:yt("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),...i,children:r}):o?Q.jsx(put,{open:l,onOpenChange:u,...i,children:Q.jsxs(gut,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":vut},side:e,children:[Q.jsxs(hut,{className:"sr-only",children:[Q.jsx(fut,{children:"Sidebar"}),Q.jsx(but,{children:"Displays the mobile sidebar."})]}),Q.jsx("div",{className:"flex h-full w-full flex-col",children:r})]})}):Q.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":s,"data-collapsible":s==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[Q.jsx("div",{"data-slot":"sidebar-gap",className:yt("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),Q.jsx("div",{"data-slot":"sidebar-container",className:yt("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",a),...i,children:Q.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:r})})]})}function xut({className:e,onClick:t,...n}){const{toggleSidebar:a}=T5();return Q.jsxs(Nr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:yt("size-7",e),onClick:r=>{t?.(r),a()},...n,children:[Q.jsx(W6e,{}),Q.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function But({className:e,...t}){return Q.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:yt("flex flex-col gap-2 p-2",e),...t})}function Iut({className:e,...t}){return Q.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:yt("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Sut({className:e,...t}){return Q.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:yt("relative flex w-full min-w-0 flex-col p-2",e),...t})}function Jde({className:e,...t}){return Q.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:yt("w-full text-sm",e),...t})}function Xde({className:e,...t}){return Q.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:yt("flex w-full min-w-0 flex-col gap-1",e),...t})}function epe({className:e,...t}){return Q.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:yt("group/menu-item relative",e),...t})}const Dut=w1("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function tpe({asChild:e=!1,isActive:t=!1,variant:n="default",size:a="default",tooltip:r,className:i,...o}){const s=e?j4:"button",{isMobile:l,state:u}=T5(),d=Q.jsx(s,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":a,"data-active":t,className:yt(Dut({variant:n,size:a}),i),...o});return r?(typeof r=="string"&&(r={children:r}),Q.jsxs(zm,{children:[Q.jsx(Um,{asChild:!0,children:d}),Q.jsx(Hm,{side:"right",align:"center",hidden:u!=="collapsed"||l,...r})]})):d}const N5="data:image/svg+xml,%3csvg%20version='1.2'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201280%201280'%20width='500'%20height='500'%3e%3cstyle%3e%20.s0%20{%20opacity:%201;fill:%20%2317535d%20}%20.s1%20{%20opacity:%20.99;fill:%20%23fab185%20}%20%3c/style%3e%3cg%20id='gentiq%20(7)'%3e%3cpath%20id='Path%201'%20fill-rule='evenodd'%20class='s0'%20d='m616.5%2012.22c19.25-0.09%2038.15%200.29%2042%200.84%203.85%200.54%2011.73%201.43%2017.5%201.98%205.77%200.55%2016.35%201.85%2023.5%202.91%207.15%201.05%2016.6%202.62%2021%203.49%204.4%200.88%209.8%202.02%2012%202.53%202.2%200.52%207.15%201.65%2011%202.5%203.85%200.86%208.58%202%2010.5%202.54%201.92%200.54%207.77%202.15%2013%203.6%205.23%201.44%2016.02%204.77%2024%207.4%207.98%202.63%2017.65%205.99%2021.5%207.48%203.85%201.48%2011.95%204.74%2018%207.24%206.05%202.5%2014.6%206.16%2019%208.14%204.4%201.98%2013.4%206.35%2020%209.72%206.6%203.36%2014.48%207.47%2017.5%209.11%203.02%201.65%2011.35%206.5%2018.5%2010.77%207.15%204.27%2018.17%2011.2%2024.49%2015.4%206.32%204.2%2012.17%208.16%2013%208.82%200.83%200.65%207.36%205.55%2014.51%2010.88%207.15%205.33%2013.23%209.97%2013.5%2010.31%200.27%200.34%202.73%202.42%205.45%204.62%202.72%202.2%205.43%204.45%206.02%205%200.59%200.55%204.89%204.35%209.55%208.45%204.67%204.1%2015.04%2014%2023.05%2022%208.02%208%2018.22%2018.6%2022.67%2023.55%204.46%204.95%2011.4%2013.07%2015.43%2018.04%204.03%204.97%2011.43%2014.42%2016.43%2021%205.01%206.58%2012.65%2017.36%2016.97%2023.96%204.33%206.6%208.56%2013.15%209.4%2014.57%200.84%201.41%204.08%206.81%207.19%2012%203.11%205.18%207.29%2012.36%209.29%2015.93%202%203.57%207.6%2014.6%2012.44%2024.5%204.84%209.9%2010.51%2022.05%2012.6%2027%202.08%204.95%204.36%2010.35%205.07%2012%200.71%201.65%202.26%205.48%203.44%208.5%201.19%203.02%204.44%2012.25%207.22%2020.5%202.79%208.25%205.42%2016.35%205.84%2018%200.43%201.65%201.72%206.15%202.87%2010%201.15%203.85%203.86%2014.43%206.03%2023.5%202.16%209.07%204.38%2019.2%204.94%2022.5%200.56%203.3%201.5%208.7%202.1%2012%200.59%203.3%201.68%2010.05%202.43%2015%200.74%204.95%201.85%2013.27%202.47%2018.5%200.61%205.23%201.56%2018.95%202.11%2030.5%200.55%2011.55%200.99%2034.61%200.99%2051.25%200%2019.16-0.37%2030.43-1%2030.75-0.55%200.27-1%202.64-1.01%205.25%200%202.61-0.43%207.45-0.96%2010.75-0.52%203.3-1.7%2011.17-2.62%2017.5-0.92%206.33-2.02%2013.52-2.44%2016-0.43%202.48-1.29%207.42-1.93%2011-0.63%203.58-2.7%2013.02-4.6%2021-1.9%207.98-3.93%2016.3-4.51%2018.5-0.58%202.2-2.41%208.5-4.05%2014-1.64%205.5-4.8%2015.4-7.01%2022-2.21%206.6-4.39%2012.9-4.85%2014-0.46%201.1-2.22%205.71-3.92%2010.25-1.71%204.54-3.44%208.24-3.85%208.22-0.41-0.02-2.55-1.5-4.75-3.29-2.2-1.8-6.25-4.85-9-6.79-2.75-1.94-9.95-6.45-16-10.03-6.05-3.58-14.83-8.34-19.5-10.57-4.67-2.23-10.64-5.01-13.25-6.18-2.61-1.16-8.91-3.51-14-5.21-5.09-1.71-10.71-3.51-12.5-4-1.79-0.5-4.94-1.38-7-1.96-2.06-0.58-6.9-1.73-10.75-2.54-3.85-0.82-9.47-1.94-12.5-2.48-3.02-0.54-10.9-1.64-17.5-2.44-6.6-0.81-18.52-1.46-26.5-1.45-7.98%200-20.13%200.68-27%201.5-6.88%200.81-13.85%201.75-15.5%202.08-1.65%200.32-7.27%201.43-12.5%202.47-5.23%201.04-12.65%202.83-16.5%203.98-3.85%201.16-9.02%202.67-11.5%203.38-2.48%200.7-9.45%203.31-15.5%205.8-6.05%202.49-14.6%206.3-19%208.46-4.4%202.17-12.05%206.39-17%209.38-4.95%203-13.5%208.66-19%2012.58-5.5%203.92-12.7%209.48-16%2012.36-3.3%202.88-8.88%207.99-12.41%2011.36-3.52%203.36-9.6%209.72-13.5%2014.12-3.9%204.4-7.32%208.23-7.59%208.5-0.27%200.27-2.09%202.52-4.04%205-1.94%202.48-4.39%205.85-5.43%207.5-1.04%201.65-2.38%203.47-2.96%204.05-0.59%200.58-3.12%204.4-5.63%208.5-2.5%204.1-5.89%209.7-7.53%2012.45-1.63%202.75-4.16%207.48-5.61%2010.5-1.45%203.02-4.03%208.42-5.73%2012-1.71%203.58-3.1%206.95-3.09%207.5%200%200.55-0.69%202.35-1.54%204-0.85%201.65-2.83%206.83-4.39%2011.5-1.56%204.67-4.24%2014.12-5.95%2021-1.71%206.87-4.01%2019.25-5.1%2027.5-1.42%2010.7-1.99%2020.73-1.99%2035%200%2014.2%200.58%2024.35%201.98%2035%201.09%208.25%203.53%2021.08%205.43%2028.5%201.9%207.42%204.63%2016.87%206.07%2021%201.44%204.12%203.03%208.4%203.54%209.5%200.5%201.1%201.87%204.47%203.03%207.5%201.16%203.03%204.23%209.78%206.82%2015%202.59%205.22%205.48%2010.62%206.42%2012%200.94%201.37%201.73%202.72%201.74%203%200.01%200.28-1.91%201.07-4.26%201.77-2.35%200.7-8.55%202.17-13.78%203.28-5.23%201.11-11.98%202.47-15%203.03-3.02%200.55-7.75%201.43-10.5%201.95-2.75%200.52-10.63%201.65-17.5%202.53-6.88%200.87-16.33%202-21%202.5-4.67%200.5-17.27%201.4-28%202.01-11.32%200.65-29.56%200.85-43.5%200.48-13.2-0.35-27.83-1.06-32.5-1.57-4.67-0.52-14.8-1.66-22.5-2.54-7.7-0.88-17.6-2.21-22-2.95-4.4-0.75-14.98-2.78-23.5-4.5-8.52-1.73-18.88-4.05-23-5.15-4.13-1.1-10.2-2.68-13.5-3.51-3.3-0.83-10.27-2.86-15.5-4.51-5.23-1.65-12.88-4.1-17-5.45-4.13-1.35-8.4-2.85-9.5-3.33-1.1-0.47-6.5-2.54-12-4.6-5.5-2.05-11.8-4.52-14-5.49-2.2-0.97-8.73-3.88-14.5-6.47-5.77-2.59-15.45-7.18-21.5-10.21-6.05-3.02-14.38-7.3-18.5-9.51-4.13-2.2-7.95-4.36-8.5-4.78-0.55-0.42-3.25-2.02-6-3.54-2.75-1.52-12.65-7.69-22-13.71-9.35-6.02-23.75-16.02-32-22.22-8.25-6.21-16.78-12.8-18.96-14.65-2.18-1.85-8.68-7.41-14.44-12.36-5.77-4.95-17.28-15.75-25.58-24-8.3-8.25-17.33-17.48-20.07-20.5-2.74-3.02-7.71-8.65-11.05-12.5-3.34-3.85-9.97-11.95-14.75-18-4.77-6.05-9.02-11.45-9.44-12-0.42-0.55-3.51-4.83-6.87-9.5-3.36-4.67-8.78-12.55-12.05-17.5-3.26-4.95-8.45-13.05-11.52-18-3.07-4.95-8.47-14.17-11.99-20.5-3.53-6.33-9.38-17.58-13-25-3.63-7.42-7.59-15.75-8.8-18.5-1.21-2.75-3.22-7.25-4.45-10-1.24-2.75-2.6-6.13-3.02-7.5-0.43-1.38-1.6-4.3-2.61-6.5-1.01-2.2-3.68-9.17-5.94-15.5-2.27-6.33-4.71-13.3-5.43-15.5-0.73-2.2-2.52-8.05-3.99-13-1.46-4.95-3.06-10.13-3.55-11.5-0.49-1.38-2.5-9.25-4.47-17.5-1.98-8.25-4.02-16.8-4.54-19-0.52-2.2-1.42-6.7-2-10-0.58-3.3-1.67-9.6-2.42-14-0.75-4.4-1.83-11.6-2.41-16-0.58-4.4-1.54-12.5-2.13-18-0.59-5.5-1.51-10.11-2.05-10.25-0.6-0.16-0.97-11.89-0.96-31%200-16.91%200.44-39.3%200.97-49.75%200.53-10.45%201.45-23.73%202.03-29.5%200.59-5.77%201.55-14.1%202.13-18.5%200.58-4.4%201.67-11.6%202.42-16%200.75-4.4%201.84-10.7%202.42-14%200.58-3.3%201.48-7.8%202-10%200.52-2.2%202.56-10.75%204.54-19%201.97-8.25%203.98-16.13%204.47-17.5%200.48-1.38%201.84-5.88%203.02-10%201.18-4.13%204.4-14.02%207.15-22%202.75-7.98%205.36-15.4%205.81-16.5%200.44-1.1%201.97-4.7%203.39-8%201.43-3.3%202.6-6.34%202.61-6.75%200.02-0.41%201.2-3.34%202.64-6.5%201.43-3.16%203.3-7.32%204.15-9.25%200.86-1.93%204.59-9.8%208.3-17.5%203.71-7.7%209.76-19.4%2013.45-26%203.68-6.6%209.22-16.05%2012.3-21%203.08-4.95%208.58-13.5%2012.22-19%203.64-5.5%207.72-11.57%209.05-13.5%201.34-1.93%204.43-6.2%206.87-9.5%202.43-3.3%207.79-10.28%2011.91-15.5%204.11-5.22%2010.67-13.1%2014.56-17.5%203.89-4.4%209.08-10.25%2011.53-13%202.44-2.75%2010.77-11.3%2018.5-19.01%207.73-7.7%2019.23-18.52%2025.55-24.04%206.32-5.51%2015.1-12.94%2019.5-16.49%204.4-3.56%2010.02-7.96%2012.5-9.77%202.48-1.82%207.43-5.45%2011-8.06%203.57-2.62%209.43-6.72%2013-9.11%203.57-2.39%208.3-5.57%2010.5-7.06%202.2-1.49%209.85-6.21%2017-10.48%207.15-4.28%2015.48-9.13%2018.5-10.78%203.02-1.66%2010.92-5.75%2017.53-9.1%206.62-3.36%2015.17-7.53%2019-9.27%203.84-1.75%2010.12-4.52%2013.97-6.17%203.85-1.66%2012.4-5.11%2019-7.67%206.6-2.56%2018.64-6.87%2026.75-9.58%208.11-2.7%2016.44-5.33%2018.5-5.85%202.06-0.52%207.12-1.9%2011.25-3.06%204.12-1.17%2010.43-2.8%2014-3.63%203.57-0.84%208.07-1.88%2010-2.32%201.93-0.45%207.1-1.54%2011.5-2.42%204.4-0.89%2010.25-2.05%2013-2.58%202.75-0.53%207.25-1.24%2010-1.57%202.75-0.34%207.25-1.02%2010-1.52%202.75-0.5%2010.4-1.45%2017-2.1%206.6-0.65%2016.95-1.48%2023-1.84%206.05-0.36%2026.75-0.72%2046-0.8zm-42.29%20288.46c-6.99%200.78-16.76%202.31-21.71%203.4-4.95%201.09-11.48%202.67-14.5%203.51-3.02%200.84-7.98%202.24-11%203.12-3.02%200.88-10.45%203.5-16.5%205.83-6.05%202.33-14.82%206-19.5%208.16-4.68%202.15-12.77%206.32-18%209.26-5.23%202.94-13.32%207.87-18%2010.95-4.68%203.09-11.2%207.62-14.5%2010.08-3.3%202.45-8.93%206.92-12.5%209.92-3.57%203.01-12.15%2011.12-19.05%2018.03-6.9%206.91-15.61%2016.38-19.34%2021.06-3.73%204.68-10.49%2014.13-15.01%2021-4.53%206.88-9.98%2015.65-12.11%2019.5-2.13%203.85-5.64%2010.6-7.79%2015-2.15%204.4-5.5%2011.82-7.43%2016.5-1.94%204.68-4.38%2011.2-5.43%2014.5-1.06%203.3-3.22%2010.5-4.81%2016-1.59%205.5-3.42%2012.7-4.06%2016-0.64%203.3-1.58%208.25-2.08%2011-0.5%202.75-1.58%209.95-2.39%2016-0.95%207.05-1.49%2019.36-1.49%2034.25-0.01%2012.79%200.45%2026.51%201.02%2030.5%200.56%203.99%201.5%2010.17%202.07%2013.75%200.58%203.58%201.73%209.88%202.57%2014%200.84%204.13%202.88%2012.23%204.53%2018%201.65%205.77%204.12%2013.88%205.5%2018%201.37%204.13%202.84%207.95%203.27%208.5%200.42%200.55%201.68%203.48%202.79%206.5%201.11%203.02%203.79%209.1%205.94%2013.5%202.15%204.4%205.66%2011.15%207.78%2015%202.13%203.85%207.59%2012.63%2012.14%2019.5%204.54%206.88%2011.3%2016.33%2015.02%2021%203.73%204.67%2012.09%2013.9%2018.58%2020.5%206.5%206.6%2014.62%2014.29%2018.05%2017.09%203.43%202.8%2010.05%207.98%2014.73%2011.51%204.68%203.53%2012.1%208.74%2016.5%2011.58%204.4%202.83%2010.02%206.3%2012.5%207.7%202.48%201.4%209.45%204.99%2015.5%207.97%206.05%202.98%2013.25%206.42%2016%207.65%202.75%201.23%2012.2%204.61%2021%207.5%208.8%202.9%2021.62%206.44%2028.5%207.89%206.87%201.44%2014.52%203.04%2017%203.55%202.48%200.51%2013.27%201.48%2024%202.15%2015.34%200.97%2023.66%200.97%2039%200.01%2010.73-0.67%2021.3-1.6%2023.5-2.08%202.2-0.47%206.7-1.37%2010-1.99%203.3-0.63%208.92-1.82%2012.5-2.66%203.58-0.84%2010.1-2.58%2014.5-3.87%204.4-1.29%2012.27-3.89%2017.5-5.78%205.23-1.89%2011.51-4.29%2013.96-5.33%202.46-1.04%2010.33-4.84%2017.5-8.44%207.17-3.61%2018.21-9.87%2024.54-13.92%206.33-4.04%2012.68-8.3%2014.12-9.44%201.45-1.15%203.87-2.99%205.39-4.09%201.53-1.1%203.56-2.67%204.52-3.5%200.97-0.83%204.51-3.75%207.88-6.5%203.37-2.75%2011.85-10.86%2018.86-18.02%207-7.16%2016.15-17.51%2020.34-23%204.19-5.49%2010.3-14.03%2013.6-18.98%203.29-4.95%207.48-11.7%209.3-15%201.83-3.3%205.43-10.27%208.02-15.5%202.58-5.23%205.41-11.08%206.28-13%200.88-1.92%202.57-5.98%203.75-9%201.18-3.02%203.02-8.2%204.08-11.5%201.07-3.3%203.22-10.5%204.78-16%201.56-5.5%203.34-12.02%203.96-14.5%200.61-2.48%201.6-7.42%202.18-11%200.59-3.58%201.51-9.65%202.04-13.5%200.54-3.85%201.34-13.98%201.79-22.5%200.44-8.52%200.44-22.25%200-30.5-0.45-8.25-1.25-18.15-1.79-22-0.53-3.85-1.46-9.92-2.05-13.5-0.59-3.58-2.01-10.33-3.14-15-1.14-4.67-2.44-9.62-2.89-11-0.45-1.37-1.84-5.87-3.08-10-1.24-4.12-3.56-10.87-5.15-15-1.59-4.12-3.6-9.07-4.47-11-0.87-1.93-3.71-7.77-6.31-13-2.59-5.23-5.55-11.07-6.56-13-1.01-1.93-3.99-6.87-6.62-11-2.63-4.12-7.45-11.32-10.7-16-3.25-4.68-9.5-12.77-13.89-18-4.39-5.23-13.1-14.45-19.36-20.5-6.26-6.05-15.21-14.06-19.88-17.8-4.68-3.74-10.92-8.47-13.88-10.5-2.96-2.04-9.26-6.13-14-9.1-4.74-2.97-13.12-7.77-18.62-10.66-5.5-2.89-14.5-7.13-20-9.42-5.5-2.28-10.9-4.56-12-5.06-1.1-0.49-6.05-2.24-11-3.88-4.95-1.65-11.02-3.49-13.5-4.09-2.48-0.6-9.23-2.16-15-3.47-5.77-1.3-15.9-3.11-22.5-4.02-6.81-0.93-20.87-1.79-32.5-1.97-11.27-0.17-22.66-0.08-25.29%200.21-2.63%200.29-10.51%201.16-17.5%201.94z'/%3e%3cpath%20id='Path%202'%20class='s1'%20d='m953.5%20831.1c-2.75%200.49-7.7%201.38-11%201.99-3.3%200.61-8.48%201.77-11.5%202.57-3.02%200.81-9.33%202.84-14%204.52-4.67%201.68-13%205.31-18.5%208.06-5.5%202.75-12.48%206.61-15.5%208.58-3.02%201.97-8.2%205.61-11.5%208.08-3.3%202.47-9.33%207.44-13.39%2011.05-4.07%203.6-10.64%2010.38-14.61%2015.05-3.96%204.67-10.02%2012.77-13.46%2018-3.44%205.22-7.84%2012.65-9.78%2016.5-1.94%203.85-5.1%2011.05-7.02%2016-1.92%204.95-4.35%2011.92-5.39%2015.5-1.04%203.58-2.57%209.65-3.39%2013.5-0.83%203.85-2%2013.3-2.61%2021-0.81%2010.28-0.8%2017.79%200.02%2028.25%200.62%207.84%202.22%2018.86%203.55%2024.5%201.33%205.64%203.42%2013.17%204.65%2016.75%201.22%203.58%204%2010.55%206.17%2015.5%202.17%204.95%206.32%2013.05%209.22%2018%202.91%204.95%207.71%2012.22%2010.66%2016.15%202.96%203.94%208.08%2010.19%2011.38%2013.89%203.3%203.7%2010.05%2010.13%2015%2014.28%204.95%204.15%2013.05%2010.21%2018%2013.47%204.95%203.25%2011.92%207.4%2015.5%209.2%203.58%201.81%2010.55%204.92%2015.5%206.91%204.95%201.99%2012.83%204.69%2017.5%206%204.67%201.3%209.85%202.69%2011.5%203.07%201.65%200.39%206.83%201.33%2011.5%202.1%205.11%200.84%2015.89%201.4%2027%201.4%2010.17%200%2020.08-0.41%2022-0.92%201.92-0.5%206.2-1.45%209.5-2.1%203.3-0.65%2010.27-2.42%2015.5-3.93%205.22-1.5%2013.55-4.41%2018.5-6.46%204.95-2.05%2013.05-5.96%2018-8.68%204.95-2.73%2013.5-8.3%2019-12.39%205.5-4.08%2013.97-11.38%2018.82-16.21%204.86-4.83%2012.1-13.06%2016.09-18.28%203.99-5.22%209.09-12.65%2011.32-16.5%202.23-3.85%205.93-10.83%208.21-15.5%202.28-4.67%205.68-13.22%207.55-19%201.87-5.78%203.86-12.3%204.41-14.5%200.55-2.2%201.7-8.39%202.55-13.75%200.98-6.14%201.55-16.31%201.54-27.5%200-12.91-0.53-20.88-1.94-29.25-1.06-6.33-3.1-15.33-4.52-20-1.43-4.67-3.03-9.29-3.56-10.25-0.53-0.96-0.97-2.2-0.97-2.75%200-0.55-0.86-2.91-1.92-5.25-1.06-2.34-2.98-6.5-4.28-9.25-1.29-2.75-4.32-8.38-6.72-12.5-2.41-4.13-5.99-9.75-7.98-12.5-1.98-2.75-4.5-6.1-5.6-7.45-1.1-1.35-4.03-4.71-6.5-7.48-2.47-2.76-5.63-6.17-7-7.56-1.38-1.39-5.65-5.28-9.5-8.64-3.85-3.36-11.5-9.16-17-12.89-5.5-3.73-14.3-8.85-19.55-11.38-5.26-2.53-10.88-5.15-12.5-5.82-1.62-0.68-6.33-2.39-10.45-3.8-4.13-1.42-10.65-3.26-14.5-4.09-3.85-0.84-10.83-2.16-15.5-2.94-5.29-0.88-15.11-1.38-26-1.32-9.63%200.05-19.75%200.49-22.5%200.97z'/%3e%3c/g%3e%3c/svg%3e",Qut=w1("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Kr=re.forwardRef(({className:e,...t},n)=>Q.jsx("label",{ref:n,className:yt(Qut(),e),...t}));Kr.displayName="Label";function F5(e){const t=e+"CollectionProvider",[n,a]=gl(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:f,children:b}=h,y=te.useRef(null),w=te.useRef(new Map).current;return Q.jsx(r,{scope:f,itemMap:w,collectionRef:y,children:b})};o.displayName=t;const s=e+"CollectionSlot",l=mh(s),u=te.forwardRef((h,f)=>{const{scope:b,children:y}=h,w=i(s,b),k=oa(f,w.collectionRef);return Q.jsx(l,{ref:k,children:y})});u.displayName=s;const d=e+"CollectionItemSlot",p="data-radix-collection-item",m=mh(d),A=te.forwardRef((h,f)=>{const{scope:b,children:y,...w}=h,k=te.useRef(null),_=oa(f,k),E=i(d,b);return te.useEffect(()=>(E.itemMap.set(k,{ref:k,...w}),()=>{E.itemMap.delete(k)})),Q.jsx(m,{[p]:"",ref:_,children:y})});A.displayName=d;function g(h){const f=i(e+"CollectionConsumer",h);return te.useCallback(()=>{const y=f.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(f.itemMap.values()).sort((E,v)=>w.indexOf(E.ref.current)-w.indexOf(v.ref.current))},[f.collectionRef,f.itemMap])}return[{Provider:o,Slot:u,ItemSlot:A},g,a]}function npe(e){const t=re.useRef({value:e,previous:e});return re.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Tut=[" ","Enter","ArrowUp","ArrowDown"],Nut=[" ","Enter"],uA="Select",[$x,jx,Fut]=F5(uA),[Af]=gl(uA,[Fut,bh]),qx=bh(),[Lut,bp]=Af(uA),[Rut,Mut]=Af(uA),ape=e=>{const{__scopeSelect:t,children:n,open:a,defaultOpen:r,onOpenChange:i,value:o,defaultValue:s,onValueChange:l,dir:u,name:d,autoComplete:p,disabled:m,required:A,form:g}=e,h=qx(t),[f,b]=re.useState(null),[y,w]=re.useState(null),[k,_]=re.useState(!1),E=wT(u),[v,x]=hl({prop:a,defaultProp:r??!1,onChange:i,caller:uA}),[S,I]=hl({prop:o,defaultProp:s,onChange:l,caller:uA}),D=re.useRef(null),N=f?g||!!f.closest("form"):!0,[R,B]=re.useState(new Set),T=Array.from(R).map(F=>F.props.value).join(";");return Q.jsx(dT,{...h,children:Q.jsxs(Lut,{required:A,scope:t,trigger:f,onTriggerChange:b,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:k,onValueNodeHasChildrenChange:_,contentId:Ic(),value:S,onValueChange:I,open:v,onOpenChange:x,dir:E,triggerPointerDownPosRef:D,disabled:m,children:[Q.jsx($x.Provider,{scope:t,children:Q.jsx(Rut,{scope:e.__scopeSelect,onNativeOptionAdd:re.useCallback(F=>{B(L=>new Set(L).add(F))},[]),onNativeOptionRemove:re.useCallback(F=>{B(L=>{const M=new Set(L);return M.delete(F),M})},[]),children:n})}),N?Q.jsxs(Ipe,{"aria-hidden":!0,required:A,tabIndex:-1,name:d,autoComplete:p,value:S,onChange:F=>I(F.target.value),disabled:m,form:g,children:[S===void 0?Q.jsx("option",{value:""}):null,Array.from(R)]},T):null]})})};ape.displayName=uA;var rpe="SelectTrigger",ipe=re.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:a=!1,...r}=e,i=qx(n),o=bp(rpe,n),s=o.disabled||a,l=oa(t,o.onTriggerChange),u=jx(n),d=re.useRef("touch"),[p,m,A]=Dpe(h=>{const f=u().filter(w=>!w.disabled),b=f.find(w=>w.value===o.value),y=Qpe(f,h,b);y!==void 0&&o.onValueChange(y.value)}),g=h=>{s||(o.onOpenChange(!0),A()),h&&(o.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return Q.jsx(pT,{asChild:!0,...i,children:Q.jsx(Nn.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Spe(o.value)?"":void 0,...r,ref:l,onClick:Xt(r.onClick,h=>{h.currentTarget.focus(),d.current!=="mouse"&&g(h)}),onPointerDown:Xt(r.onPointerDown,h=>{d.current=h.pointerType;const f=h.target;f.hasPointerCapture(h.pointerId)&&f.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(g(h),h.preventDefault())}),onKeyDown:Xt(r.onKeyDown,h=>{const f=p.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&m(h.key),!(f&&h.key===" ")&&Tut.includes(h.key)&&(g(),h.preventDefault())})})})});ipe.displayName=rpe;var ope="SelectValue",spe=re.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:r,children:i,placeholder:o="",...s}=e,l=bp(ope,n),{onValueNodeHasChildrenChange:u}=l,d=i!==void 0,p=oa(t,l.onValueNodeChange);return Bi(()=>{u(d)},[u,d]),Q.jsx(Nn.span,{...s,ref:p,style:{pointerEvents:"none"},children:Spe(l.value)?Q.jsx(Q.Fragment,{children:o}):i})});spe.displayName=ope;var Out="SelectIcon",cpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,children:a,...r}=e;return Q.jsx(Nn.span,{"aria-hidden":!0,...r,ref:t,children:a||"▼"})});cpe.displayName=Out;var Put="SelectPortal",lpe=e=>Q.jsx(J0,{asChild:!0,...e});lpe.displayName=Put;var dA="SelectContent",upe=re.forwardRef((e,t)=>{const n=bp(dA,e.__scopeSelect),[a,r]=re.useState();if(Bi(()=>{r(new DocumentFragment)},[]),!n.open){const i=a;return i?VC.createPortal(Q.jsx(dpe,{scope:e.__scopeSelect,children:Q.jsx($x.Slot,{scope:e.__scopeSelect,children:Q.jsx("div",{children:e.children})})}),i):null}return Q.jsx(ppe,{...e,ref:t})});upe.displayName=dA;var Mc=10,[dpe,yp]=Af(dA),$ut="SelectContentImpl",jut=mh("SelectContent.RemoveScroll"),ppe=re.forwardRef((e,t)=>{const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:o,side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:m,collisionPadding:A,sticky:g,hideWhenDetached:h,avoidCollisions:f,...b}=e,y=bp(dA,n),[w,k]=re.useState(null),[_,E]=re.useState(null),v=oa(t,Y=>k(Y)),[x,S]=re.useState(null),[I,D]=re.useState(null),N=jx(n),[R,B]=re.useState(!1),T=re.useRef(!1);re.useEffect(()=>{if(w)return eN(w)},[w]),W8();const F=re.useCallback(Y=>{const[ae,...V]=N().map(J=>J.ref.current),[X]=V.slice(-1),ee=document.activeElement;for(const J of Y)if(J===ee||(J?.scrollIntoView({block:"nearest"}),J===ae&&_&&(_.scrollTop=0),J===X&&_&&(_.scrollTop=_.scrollHeight),J?.focus(),document.activeElement!==ee))return},[N,_]),L=re.useCallback(()=>F([x,w]),[F,x,w]);re.useEffect(()=>{R&&L()},[R,L]);const{onOpenChange:M,triggerPointerDownPosRef:P}=y;re.useEffect(()=>{if(w){let Y={x:0,y:0};const ae=X=>{Y={x:Math.abs(Math.round(X.pageX)-(P.current?.x??0)),y:Math.abs(Math.round(X.pageY)-(P.current?.y??0))}},V=X=>{Y.x<=10&&Y.y<=10?X.preventDefault():w.contains(X.target)||M(!1),document.removeEventListener("pointermove",ae),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",ae),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",V,{capture:!0})}}},[w,M,P]),re.useEffect(()=>{const Y=()=>M(!1);return window.addEventListener("blur",Y),window.addEventListener("resize",Y),()=>{window.removeEventListener("blur",Y),window.removeEventListener("resize",Y)}},[M]);const[O,$]=Dpe(Y=>{const ae=N().filter(ee=>!ee.disabled),V=ae.find(ee=>ee.ref.current===document.activeElement),X=Qpe(ae,Y,V);X&&setTimeout(()=>X.ref.current.focus())}),q=re.useCallback((Y,ae,V)=>{const X=!T.current&&!V;(y.value!==void 0&&y.value===ae||X)&&(S(Y),X&&(T.current=!0))},[y.value]),j=re.useCallback(()=>w?.focus(),[w]),K=re.useCallback((Y,ae,V)=>{const X=!T.current&&!V;(y.value!==void 0&&y.value===ae||X)&&D(Y)},[y.value]),U=a==="popper"?L5:mpe,W=U===L5?{side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:m,collisionPadding:A,sticky:g,hideWhenDetached:h,avoidCollisions:f}:{};return Q.jsx(dpe,{scope:n,content:w,viewport:_,onViewportChange:E,itemRefCallback:q,selectedItem:x,onItemLeave:j,itemTextRefCallback:K,focusSelectedItem:L,selectedItemText:I,position:a,isPositioned:R,searchRef:O,children:Q.jsx(ix,{as:jut,allowPinchZoom:!0,children:Q.jsx(XE,{asChild:!0,trapped:y.open,onMountAutoFocus:Y=>{Y.preventDefault()},onUnmountAutoFocus:Xt(r,Y=>{y.trigger?.focus({preventScroll:!0}),Y.preventDefault()}),children:Q.jsx(K0,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:Y=>Y.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:Q.jsx(U,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:Y=>Y.preventDefault(),...b,...W,onPlaced:()=>B(!0),ref:v,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:Xt(b.onKeyDown,Y=>{const ae=Y.ctrlKey||Y.altKey||Y.metaKey;if(Y.key==="Tab"&&Y.preventDefault(),!ae&&Y.key.length===1&&$(Y.key),["ArrowUp","ArrowDown","Home","End"].includes(Y.key)){let X=N().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(Y.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(Y.key)){const ee=Y.target,J=X.indexOf(ee);X=X.slice(J+1)}setTimeout(()=>F(X)),Y.preventDefault()}})})})})})})});ppe.displayName=$ut;var qut="SelectItemAlignedPosition",mpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:a,...r}=e,i=bp(dA,n),o=yp(dA,n),[s,l]=re.useState(null),[u,d]=re.useState(null),p=oa(t,v=>d(v)),m=jx(n),A=re.useRef(!1),g=re.useRef(!0),{viewport:h,selectedItem:f,selectedItemText:b,focusSelectedItem:y}=o,w=re.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&h&&f&&b){const v=i.trigger.getBoundingClientRect(),x=u.getBoundingClientRect(),S=i.valueNode.getBoundingClientRect(),I=b.getBoundingClientRect();if(i.dir!=="rtl"){const ee=I.left-x.left,J=S.left-ee,pe=v.left-J,ue=v.width+pe,Te=Math.max(ue,x.width),Le=window.innerWidth-Mc,qe=nZ(J,[Mc,Math.max(Mc,Le-Te)]);s.style.minWidth=ue+"px",s.style.left=qe+"px"}else{const ee=x.right-I.right,J=window.innerWidth-S.right-ee,pe=window.innerWidth-v.right-J,ue=v.width+pe,Te=Math.max(ue,x.width),Le=window.innerWidth-Mc,qe=nZ(J,[Mc,Math.max(Mc,Le-Te)]);s.style.minWidth=ue+"px",s.style.right=qe+"px"}const D=m(),N=window.innerHeight-Mc*2,R=h.scrollHeight,B=window.getComputedStyle(u),T=parseInt(B.borderTopWidth,10),F=parseInt(B.paddingTop,10),L=parseInt(B.borderBottomWidth,10),M=parseInt(B.paddingBottom,10),P=T+F+R+M+L,O=Math.min(f.offsetHeight*5,P),$=window.getComputedStyle(h),q=parseInt($.paddingTop,10),j=parseInt($.paddingBottom,10),K=v.top+v.height/2-Mc,U=N-K,W=f.offsetHeight/2,Y=f.offsetTop+W,ae=T+F+Y,V=P-ae;if(ae<=K){const ee=D.length>0&&f===D[D.length-1].ref.current;s.style.bottom="0px";const J=u.clientHeight-h.offsetTop-h.offsetHeight,pe=Math.max(U,W+(ee?j:0)+J+L),ue=ae+pe;s.style.height=ue+"px"}else{const ee=D.length>0&&f===D[0].ref.current;s.style.top="0px";const pe=Math.max(K,T+h.offsetTop+(ee?q:0)+W)+V;s.style.height=pe+"px",h.scrollTop=ae-K+h.offsetTop}s.style.margin=`${Mc}px 0`,s.style.minHeight=O+"px",s.style.maxHeight=N+"px",a?.(),requestAnimationFrame(()=>A.current=!0)}},[m,i.trigger,i.valueNode,s,u,h,f,b,i.dir,a]);Bi(()=>w(),[w]);const[k,_]=re.useState();Bi(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const E=re.useCallback(v=>{v&&g.current===!0&&(w(),y?.(),g.current=!1)},[w,y]);return Q.jsx(zut,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:A,onScrollButtonChange:E,children:Q.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:Q.jsx(Nn.div,{...r,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});mpe.displayName=qut;var Gut="SelectPopperPosition",L5=re.forwardRef((e,t)=>{const{__scopeSelect:n,align:a="start",collisionPadding:r=Mc,...i}=e,o=qx(n);return Q.jsx(mT,{...o,...i,ref:t,align:a,collisionPadding:r,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});L5.displayName=Gut;var[zut,R5]=Af(dA,{}),M5="SelectViewport",Ape=re.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:a,...r}=e,i=yp(M5,n),o=R5(M5,n),s=oa(t,i.onViewportChange),l=re.useRef(0);return Q.jsxs(Q.Fragment,{children:[Q.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),Q.jsx($x.Slot,{scope:n,children:Q.jsx(Nn.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:Xt(r.onScroll,u=>{const d=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=o;if(m?.current&&p){const A=Math.abs(l.current-d.scrollTop);if(A>0){const g=window.innerHeight-Mc*2,h=parseFloat(p.style.minHeight),f=parseFloat(p.style.height),b=Math.max(h,f);if(b<g){const y=b+A,w=Math.min(g,y),k=y-w;p.style.height=w+"px",p.style.bottom==="0px"&&(d.scrollTop=k>0?k:0,p.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});Ape.displayName=M5;var gpe="SelectGroup",[Uut,Hut]=Af(gpe),hpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,r=Ic();return Q.jsx(Uut,{scope:n,id:r,children:Q.jsx(Nn.div,{role:"group","aria-labelledby":r,...a,ref:t})})});hpe.displayName=gpe;var fpe="SelectLabel",bpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,r=Hut(fpe,n);return Q.jsx(Nn.div,{id:r.id,...a,ref:t})});bpe.displayName=fpe;var Gx="SelectItem",[Yut,ype]=Af(Gx),wpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,value:a,disabled:r=!1,textValue:i,...o}=e,s=bp(Gx,n),l=yp(Gx,n),u=s.value===a,[d,p]=re.useState(i??""),[m,A]=re.useState(!1),g=oa(t,y=>l.itemRefCallback?.(y,a,r)),h=Ic(),f=re.useRef("touch"),b=()=>{r||(s.onValueChange(a),s.onOpenChange(!1))};if(a==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return Q.jsx(Yut,{scope:n,value:a,disabled:r,textId:h,isSelected:u,onItemTextChange:re.useCallback(y=>{p(w=>w||(y?.textContent??"").trim())},[]),children:Q.jsx($x.ItemSlot,{scope:n,value:a,disabled:r,textValue:d,children:Q.jsx(Nn.div,{role:"option","aria-labelledby":h,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...o,ref:g,onFocus:Xt(o.onFocus,()=>A(!0)),onBlur:Xt(o.onBlur,()=>A(!1)),onClick:Xt(o.onClick,()=>{f.current!=="mouse"&&b()}),onPointerUp:Xt(o.onPointerUp,()=>{f.current==="mouse"&&b()}),onPointerDown:Xt(o.onPointerDown,y=>{f.current=y.pointerType}),onPointerMove:Xt(o.onPointerMove,y=>{f.current=y.pointerType,r?l.onItemLeave?.():f.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Xt(o.onPointerLeave,y=>{y.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:Xt(o.onKeyDown,y=>{l.searchRef?.current!==""&&y.key===" "||(Nut.includes(y.key)&&b(),y.key===" "&&y.preventDefault())})})})})});wpe.displayName=Gx;var ek="SelectItemText",kpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:r,...i}=e,o=bp(ek,n),s=yp(ek,n),l=ype(ek,n),u=Mut(ek,n),[d,p]=re.useState(null),m=oa(t,b=>p(b),l.onItemTextChange,b=>s.itemTextRefCallback?.(b,l.value,l.disabled)),A=d?.textContent,g=re.useMemo(()=>Q.jsx("option",{value:l.value,disabled:l.disabled,children:A},l.value),[l.disabled,l.value,A]),{onNativeOptionAdd:h,onNativeOptionRemove:f}=u;return Bi(()=>(h(g),()=>f(g)),[h,f,g]),Q.jsxs(Q.Fragment,{children:[Q.jsx(Nn.span,{id:l.textId,...i,ref:m}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?VC.createPortal(i.children,o.valueNode):null]})});kpe.displayName=ek;var vpe="SelectItemIndicator",_pe=re.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return ype(vpe,n).isSelected?Q.jsx(Nn.span,{"aria-hidden":!0,...a,ref:t}):null});_pe.displayName=vpe;var O5="SelectScrollUpButton",Cpe=re.forwardRef((e,t)=>{const n=yp(O5,e.__scopeSelect),a=R5(O5,e.__scopeSelect),[r,i]=re.useState(!1),o=oa(t,a.onScrollButtonChange);return Bi(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollTop>0;i(u)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),r?Q.jsx(xpe,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});Cpe.displayName=O5;var P5="SelectScrollDownButton",Epe=re.forwardRef((e,t)=>{const n=yp(P5,e.__scopeSelect),a=R5(P5,e.__scopeSelect),[r,i]=re.useState(!1),o=oa(t,a.onScrollButtonChange);return Bi(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;i(d)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),r?Q.jsx(xpe,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});Epe.displayName=P5;var xpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:a,...r}=e,i=yp("SelectScrollButton",n),o=re.useRef(null),s=jx(n),l=re.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return re.useEffect(()=>()=>l(),[l]),Bi(()=>{s().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),Q.jsx(Nn.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:Xt(r.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(a,50))}),onPointerMove:Xt(r.onPointerMove,()=>{i.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(a,50))}),onPointerLeave:Xt(r.onPointerLeave,()=>{l()})})}),Wut="SelectSeparator",Bpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return Q.jsx(Nn.div,{"aria-hidden":!0,...a,ref:t})});Bpe.displayName=Wut;var $5="SelectArrow",Kut=re.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,r=qx(n),i=bp($5,n),o=yp($5,n);return i.open&&o.position==="popper"?Q.jsx(AT,{...r,...a,ref:t}):null});Kut.displayName=$5;var Zut="SelectBubbleInput",Ipe=re.forwardRef(({__scopeSelect:e,value:t,...n},a)=>{const r=re.useRef(null),i=oa(a,r),o=npe(t);return re.useEffect(()=>{const s=r.current;if(!s)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&d){const p=new Event("change",{bubbles:!0});d.call(s,t),s.dispatchEvent(p)}},[o,t]),Q.jsx(Nn.select,{...n,style:{...qK,...n.style},ref:i,defaultValue:t})});Ipe.displayName=Zut;function Spe(e){return e===""||e===void 0}function Dpe(e){const t=fl(e),n=re.useRef(""),a=re.useRef(0),r=re.useCallback(o=>{const s=n.current+o;t(s),(function l(u){n.current=u,window.clearTimeout(a.current),u!==""&&(a.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),i=re.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return re.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,r,i]}function Qpe(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=Vut(e,Math.max(i,0));r.length===1&&(o=o.filter(u=>u!==n));const l=o.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Vut(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var Jut=ape,Xut=ipe,edt=spe,tdt=cpe,ndt=lpe,adt=upe,rdt=Ape,idt=hpe,odt=bpe,sdt=wpe,cdt=kpe,ldt=_pe,udt=Cpe,ddt=Epe,pdt=Bpe;function tk({...e}){return Q.jsx(Jut,{"data-slot":"select",...e})}function mdt({...e}){return Q.jsx(idt,{"data-slot":"select-group",...e})}function nk({...e}){return Q.jsx(edt,{"data-slot":"select-value",...e})}function ak({className:e,size:t="default",children:n,...a}){return Q.jsxs(Xut,{"data-slot":"select-trigger","data-size":t,className:yt("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a,children:[n,Q.jsx(tdt,{asChild:!0,children:Q.jsx(Y0,{className:"size-4 opacity-50"})})]})}function rk({className:e,children:t,position:n="popper",...a}){return Q.jsx(ndt,{children:Q.jsxs(adt,{"data-slot":"select-content",className:yt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...a,children:[Q.jsx(Tpe,{}),Q.jsx(rdt,{className:yt("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),Q.jsx(Npe,{})]})})}function Adt({className:e,...t}){return Q.jsx(odt,{"data-slot":"select-label",className:yt("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function gf({className:e,children:t,...n}){return Q.jsxs(sdt,{"data-slot":"select-item",className:yt("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pe-8 ps-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 text-start",e),...n,children:[Q.jsx("span",{className:"absolute inset-inline-end-2 flex size-3.5 items-center justify-center",children:Q.jsx(ldt,{children:Q.jsx(ph,{className:"size-4"})})}),Q.jsx(cdt,{children:t})]})}function gdt({className:e,...t}){return Q.jsx(pdt,{"data-slot":"select-separator",className:yt("bg-border pointer-events-none -mx-1 my-1 h-px",e),...t})}function Tpe({className:e,...t}){return Q.jsx(udt,{"data-slot":"select-scroll-up-button",className:yt("flex cursor-default items-center justify-center py-1",e),...t,children:Q.jsx(N6e,{className:"size-4"})})}function Npe({className:e,...t}){return Q.jsx(ddt,{"data-slot":"select-scroll-down-button",className:yt("flex cursor-default items-center justify-center py-1",e),...t,children:Q.jsx(Y0,{className:"size-4"})})}function hf(e,t){if(!e)return!0;const{field:n,operator:a="equals",value:r}=e,i=t[n];switch(a){case"equals":return i===r;case"not_equals":return i!==r;case"in":return Array.isArray(r)&&r.includes(i);case"not_in":return Array.isArray(r)&&!r.includes(i);default:return!0}}function Fpe({trigger:e}){const{t,i18n:n}=fa(["settings","translation"]),{app:a}=Or(),{theme:r,setTheme:i,accent:o,setAccent:s,radius:l,setRadius:u}=zw(),[d,p]=te.useState(null),[m,A]=te.useState("general"),[g,h]=te.useState(""),[f,b]=te.useState(""),[y,w]=te.useState(""),[k,_]=te.useState(""),E=te.useMemo(()=>a?.userMetadataFields?.filter(O=>O.showInProfile)||[],[a?.userMetadataFields]),[v,x]=te.useState({}),[S,I]=te.useState(!1),D=n.language==="fa",N=D?"text-right":"text-left",R=te.useCallback(async()=>{try{const O=await Kt.getMe();p(O),h(O.name||""),b(O.surname||""),w(O.phone||"");const $={};E.forEach(q=>{$[q.key]=O.metadata?.[q.key]??q.defaultValue??""}),x($)}catch(O){console.error("Failed to fetch user:",O),Zo.error(uh(O,t))}},[t,E]);te.useEffect(()=>{R()},[R]),te.useEffect(()=>{const O={...v};let $=!1;E.forEach(q=>{q.condition&&!hf(q.condition,v)&&O[q.key]!==void 0&&(delete O[q.key],$=!0)}),$&&x(O)},[v,E]);const B=async()=>{I(!0);try{const O={name:g,surname:f,phone:y,metadata:v};k&&(O.password=k),await Kt.updateMe(O),Zo.success(t("profile.success","Profile updated successfully")),_(""),R()}catch(O){Zo.error(uh(O,t))}finally{I(!1)}},T=()=>{window.confirm(t("account.logout_confirm","Are you sure you want to logout?"))&&(Kt.clearToken(),window.location.reload())},F=O=>{n.changeLanguage(O)},L=d?Math.max(0,Math.min(100,d.balance.tokens/(d.balance.token_limit||1)*100)):0,M=d?Math.max(0,Math.min(100,d.balance.requests/(d.balance.request_limit||1)*100)):0,P=[{id:"general",label:t("sections.general","General"),icon:OW},{id:"profile",label:t("sections.profile","Profile"),icon:dLe},{id:"account",label:t("sections.account","Account"),icon:rLe}];return Q.jsxs(rN,{children:[Q.jsx(uae,{asChild:!0,children:e||Q.jsx(Nr,{variant:"ghost",size:"icon",className:"rounded-full",children:Q.jsx($4,{className:"h-5 w-5"})})}),Q.jsx(iN,{dir:D?"rtl":"ltr",className:yt("w-full sm:w-[95vw] sm:max-w-[700px] p-0 gap-0 overflow-hidden rounded-t-2xl sm:rounded-3xl border-none shadow-2xl bg-background/95 backdrop-blur-md h-[90vh] sm:h-[750px]",D&&"rtl"),children:Q.jsxs("div",{className:"flex flex-col h-full w-full min-h-0 overflow-hidden",children:[Q.jsxs("div",{className:"w-full bg-muted/20 sm:bg-muted/30 border-b border-border/40 pt-12 sm:pt-6 flex flex-col shrink-0",children:[Q.jsx("div",{className:"flex items-center justify-between px-4 sm:px-6 mb-2 sm:mb-4",children:Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsx("div",{className:"bg-primary/10 p-1.5 rounded-lg",children:Q.jsx($4,{className:"h-5 w-5 text-primary"})}),Q.jsx("span",{className:"font-bold text-lg",children:t("title","Settings")})]})}),Q.jsx("div",{className:"w-full overflow-x-auto no-scrollbar pt-2 px-2 sm:px-4",children:Q.jsx("nav",{className:"flex items-center gap-2 sm:gap-6 w-max",children:P.map(O=>Q.jsxs("button",{onClick:()=>A(O.id),className:yt("flex items-center gap-1.5 sm:gap-2 pb-2 sm:pb-3 pt-1 px-2 sm:px-1 text-sm sm:text-base font-medium transition-all border-b-2 whitespace-nowrap shrink-0",m===O.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"),children:[Q.jsx(O.icon,{className:yt("h-3.5 w-3.5 sm:h-4 sm:w-4 transition-transform",m===O.id&&"scale-110")}),O.label]},O.id))})})]}),Q.jsx("div",{className:"flex-1 relative min-h-0 h-full bg-background",children:Q.jsxs("div",{className:"absolute inset-0 overflow-y-auto p-5 sm:p-8 pt-12 sm:pt-12 custom-scrollbar",children:[m==="profile"&&Q.jsxs("div",{className:"space-y-6 animate-in fade-in slide-in-from-bottom-4 duration-300",children:[Q.jsxs("div",{children:[Q.jsx("h2",{className:"text-xl font-bold tracking-tight",children:t("profile.title","Profile Information")}),Q.jsx("p",{className:"text-sm text-muted-foreground",children:t("profile.subtitle","Update your personal details below.")})]}),Q.jsxs("div",{className:"grid gap-6",children:[Q.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[Q.jsxs("div",{className:"flex flex-col gap-3",children:[Q.jsx(Kr,{htmlFor:"name",className:"px-1",children:t("profile.name","First Name")}),Q.jsx(rs,{id:"name",value:g,onChange:O=>h(O.target.value),className:yt("bg-muted/30 border-border/50 rounded-xl focus-visible:ring-primary h-11",N)})]}),Q.jsxs("div",{className:"flex flex-col gap-3",children:[Q.jsx(Kr,{htmlFor:"surname",className:"px-1",children:t("profile.surname","Last Name")}),Q.jsx(rs,{id:"surname",value:f,onChange:O=>b(O.target.value),className:yt("bg-muted/30 border-border/50 rounded-xl focus-visible:ring-primary h-11",N)})]})]}),Q.jsxs("div",{className:"flex flex-col gap-3",children:[Q.jsx(Kr,{htmlFor:"phone",className:"px-1",children:t("profile.phone","Phone Number")}),Q.jsxs("div",{className:"relative",children:[Q.jsx(iLe,{className:"absolute top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground start-3"}),Q.jsx(rs,{id:"phone",value:y,onChange:O=>w(O.target.value),className:yt("bg-muted/30 border-border/50 rounded-xl focus-visible:ring-primary ps-10 pe-3 text-left"),dir:"ltr"})]})]}),Q.jsxs("div",{className:"flex flex-col gap-3",children:[Q.jsx(Kr,{htmlFor:"pass",className:"px-1",children:t("profile.password","New Password")}),Q.jsxs("div",{className:"relative",children:[Q.jsx(z6e,{className:"absolute top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground start-3"}),Q.jsx(rs,{id:"pass",type:"password",value:k,onChange:O=>_(O.target.value),placeholder:t("profile.password_placeholder","Leave empty to keep current"),className:yt("bg-muted/30 border-border/50 rounded-xl focus-visible:ring-primary ps-10 pe-3 text-left"),dir:"ltr"})]})]}),E.map(O=>hf(O.condition,v)?Q.jsxs("div",{className:"flex flex-col gap-3 animate-in fade-in slide-in-from-top-1 duration-200",children:[Q.jsx(Kr,{htmlFor:`profile-${O.key}`,className:"px-1",children:t(O.label)}),O.type==="select"?Q.jsxs(tk,{value:String(v[O.key]||""),onValueChange:$=>x({...v,[O.key]:$}),dir:D?"rtl":"ltr",children:[Q.jsx(ak,{className:"bg-muted/30 border-border/50 rounded-xl focus:ring-primary h-11",children:Q.jsx(nk,{placeholder:t(O.placeholder||"profile.select_placeholder")})}),Q.jsx(rk,{className:"rounded-xl border-border/40 shadow-xl bg-background/95 backdrop-blur-md",children:O.options?.map($=>Q.jsx(gf,{value:String($.value),className:"rounded-lg focus:bg-primary/10",children:t($.label)},String($.value)))})]}):O.type==="checkbox"?Q.jsxs("div",{className:"flex items-center gap-3 px-1 py-1",children:[Q.jsx("input",{id:`profile-${O.key}`,type:"checkbox",checked:!!v[O.key],onChange:$=>x({...v,[O.key]:$.target.checked}),className:"h-5 w-5 rounded-md border-border/50 bg-muted/30 text-primary focus:ring-primary transition-all cursor-pointer"}),Q.jsx(Kr,{htmlFor:`profile-${O.key}`,className:"text-sm font-medium text-muted-foreground cursor-pointer",children:t(O.placeholder||O.label)})]}):Q.jsx(rs,{id:`profile-${O.key}`,type:O.type,value:v[O.key]||"",onChange:$=>x({...v,[O.key]:$.target.value}),placeholder:t(O.placeholder||""),className:yt("bg-muted/30 border-border/50 rounded-xl focus-visible:ring-primary h-11",N)})]},O.key):null),Q.jsx("div",{className:"pt-4",children:Q.jsxs(Nr,{onClick:B,disabled:S,className:"w-full sm:w-auto px-8 rounded-xl gap-2 font-semibold shadow-lg shadow-primary/20 h-11 transition-all active:scale-[0.98]",children:[Q.jsx(tLe,{className:"h-4 w-4"}),S?t("profile.saving","Saving..."):t("profile.save","Save Changes")]})})]})]}),m==="general"&&Q.jsxs("div",{className:"space-y-8 animate-in fade-in slide-in-from-bottom-4 duration-300",children:[Q.jsxs("div",{children:[Q.jsx("h2",{className:"text-xl font-bold tracking-tight",children:t("general.title","General Settings")}),Q.jsx("p",{className:"text-sm text-muted-foreground",children:t("general.subtitle","Configure look and feel and language.")})]}),Q.jsxs("div",{className:"space-y-8",children:[Q.jsxs("div",{className:"space-y-3",children:[Q.jsxs(Kr,{className:"text-sm font-semibold flex items-center gap-2",children:[Q.jsx(OW,{className:"h-4 w-4 text-primary"}),t("general.theme","Theme")]}),Q.jsxs("div",{className:"flex p-1 bg-muted/50 rounded-2xl border border-border/40 w-full",children:[Q.jsxs("button",{onClick:()=>i("light"),className:yt("flex-1 flex items-center justify-center gap-2 py-2.5 rounded-xl transition-all",r==="light"?"bg-background shadow-md text-primary":"text-muted-foreground hover:text-foreground"),children:[Q.jsx(GW,{className:"h-4 w-4"}),Q.jsx("span",{className:"text-sm font-medium",children:t("general.themes.light","Light")})]}),Q.jsxs("button",{onClick:()=>i("dark"),className:yt("flex-1 flex items-center justify-center gap-2 py-2.5 rounded-xl transition-all",r==="dark"?"bg-background shadow-md text-primary":"text-muted-foreground hover:text-foreground"),children:[Q.jsx($W,{className:"h-4 w-4"}),Q.jsx("span",{className:"text-sm font-medium",children:t("general.themes.dark","Dark")})]}),Q.jsxs("button",{onClick:()=>i("system"),className:yt("flex-1 flex items-center justify-center gap-2 py-2.5 rounded-xl transition-all",r==="system"?"bg-background shadow-md text-primary":"text-muted-foreground hover:text-foreground"),children:[Q.jsx(P4,{className:"h-4 w-4"}),Q.jsx("span",{className:"text-sm font-medium",children:t("general.themes.system","System")})]})]})]}),Q.jsxs("div",{className:"space-y-4",children:[Q.jsxs(Kr,{className:"text-sm font-semibold flex items-center gap-2",children:[Q.jsx(zW,{className:"h-4 w-4 text-primary"}),t("general.accent","Accent Color")]}),Q.jsx("div",{className:"grid grid-cols-4 sm:grid-cols-8 gap-3 w-full",children:["oklch(0.623 0.214 259.815)","oklch(0.585 0.233 277.117)","oklch(0.627 0.265 303.9)","oklch(0.645 0.246 16.439)","oklch(0.712 0.194 46.666)","oklch(0.627 0.194 149.214)","oklch(0.633 0.145 182.903)","oklch(0.552 0.016 285.938)"].map(O=>{const $=(o||"oklch(0.623 0.214 259.815)")===O;return Q.jsx("button",{onClick:()=>s(O),className:yt("h-8 w-8 rounded-full border-2 transition-all hover:scale-110 active:scale-95 shadow-sm",$?"border-foreground":"border-transparent"),style:{backgroundColor:O}},O)})})]}),Q.jsxs("div",{className:"space-y-4",children:[Q.jsxs(Kr,{className:"text-sm font-semibold flex items-center gap-2",children:[Q.jsx("div",{className:"h-4 w-4 rounded-md border-2 border-primary"}),t("general.radius","Rounded Corners")]}),Q.jsx("div",{className:"flex p-1 bg-muted/50 rounded-2xl border border-border/40 w-full",children:[{id:"sharp",value:"0.3rem"},{id:"round",value:"1.25rem"}].map(O=>{const $=(l||"1.25rem")===O.value;return Q.jsx("button",{onClick:()=>u(O.value),className:yt("flex-1 py-2 rounded-xl transition-all text-sm font-medium",$?"bg-background shadow-md text-primary":"text-muted-foreground hover:text-foreground"),children:t(`general.radius_levels.${O.id}`)},O.id)})})]}),Q.jsxs("div",{className:"space-y-3",children:[Q.jsxs(Kr,{className:"text-sm font-semibold flex items-center gap-2",children:[Q.jsx(MW,{className:"h-4 w-4 text-primary"}),t("general.language","Language")]}),Q.jsxs(tk,{value:n.language,onValueChange:F,children:[Q.jsx(ak,{className:"w-full bg-muted/50 rounded-2xl border-border/40 h-11 focus:ring-primary/20",children:Q.jsx(nk,{placeholder:t("general.language_placeholder","Select language")})}),Q.jsxs(rk,{className:"rounded-2xl border-border/40 shadow-xl bg-background/95 backdrop-blur-md",children:[Q.jsx(gf,{value:"en",className:"rounded-xl focus:bg-primary/10",children:Q.jsxs("span",{className:"flex items-center gap-2",children:[Q.jsx("span",{className:"text-xs font-bold text-muted-foreground mr-1",children:"EN"}),t("general.languages.en","English")]})}),Q.jsx(gf,{value:"fa",className:"rounded-xl focus:bg-primary/10",children:Q.jsxs("span",{className:"flex items-center gap-2",children:[Q.jsx("span",{className:"text-xs font-bold text-muted-foreground mr-1",children:"FA"}),t("general.languages.fa","Persian")]})})]})]})]})]})]}),m==="account"&&Q.jsxs("div",{className:"space-y-8 animate-in fade-in slide-in-from-bottom-4 duration-300",children:[Q.jsxs("div",{children:[Q.jsx("h2",{className:"text-xl font-bold tracking-tight",children:t("account.title","Account & Usage")}),Q.jsx("p",{className:"text-sm text-muted-foreground",children:t("account.subtitle","Monitor your quotas and manage your session.")})]}),Q.jsxs("div",{className:"space-y-6",children:[Q.jsxs("div",{className:"p-6 bg-muted/30 rounded-3xl border border-border/40 space-y-6",children:[Q.jsxs(Kr,{className:"text-xs font-bold uppercase tracking-wider text-primary flex items-center gap-2",children:[Q.jsx($6e,{className:"h-4 w-4"}),t("account.balance","Current Balance")]}),Q.jsxs("div",{className:"space-y-5",children:[Q.jsxs("div",{className:"space-y-2",children:[Q.jsxs("div",{className:"flex justify-between text-sm mb-1",children:[Q.jsx("span",{className:"font-medium text-muted-foreground",children:t("account.tokens","Tokens")}),Q.jsxs("span",{className:"font-bold text-primary",children:[L.toLocaleString(n.language,{maximumFractionDigits:0}),"%"]})]}),Q.jsx("div",{className:"h-2.5 w-full bg-muted/50 rounded-full overflow-hidden border border-border/20 p-0.5",dir:"ltr",children:Q.jsx("div",{className:yt("h-full rounded-full transition-all duration-1000 shadow-sm",L>60?"bg-emerald-500 shadow-emerald-500/20":L>20?"bg-amber-500 shadow-amber-500/20":"bg-destructive shadow-destructive/20"),style:{width:`${L}%`}})})]}),Q.jsxs("div",{className:"space-y-2",children:[Q.jsxs("div",{className:"flex justify-between text-sm mb-1",children:[Q.jsxs("span",{className:"font-medium text-muted-foreground flex items-center gap-1.5 focus:outline-none",children:[Q.jsx(zW,{className:"h-3.5 w-3.5 text-blue-500"}),t("account.requests","Requests")]}),Q.jsxs("span",{className:"font-bold text-primary",children:[M.toLocaleString(n.language,{maximumFractionDigits:0}),"%"]})]}),Q.jsx("div",{className:"h-2.5 w-full bg-muted/50 rounded-full overflow-hidden border border-border/20 p-0.5",dir:"ltr",children:Q.jsx("div",{className:yt("h-full rounded-full transition-all duration-1000 shadow-sm",M>60?"bg-emerald-500 shadow-emerald-500/20":M>20?"bg-amber-500 shadow-amber-500/20":"bg-destructive shadow-destructive/20"),style:{width:`${M}%`}})})]})]})]}),Q.jsxs("div",{className:"pt-2 flex flex-col gap-3",children:[Q.jsxs("p",{className:"text-xs text-muted-foreground px-1",children:[t("account.last_recharge","Last balance update on"),": ",d?.balance.updated_at?new Date(d.balance.updated_at).toLocaleDateString(n.language):d?new Date().toLocaleDateString(n.language):"..."]}),Q.jsxs(Nr,{variant:"destructive",onClick:T,className:"rounded-2xl gap-2 font-bold h-12 shadow-lg shadow-destructive/10 transition-all active:scale-[0.98]",children:[Q.jsx(PW,{className:"h-4 w-4"}),t("account.logout","Logout from Account")]})]})]})]})]})})]})})]})}function Lpe({hideActions:e=!1}){const[,t]=D5(),{t:n}=fa(["sidebar","chat"]),{history:a,app:r}=Or(),{theme:i}=zw(),o=!e&&(a?.enabled??!0),[s,l]=te.useState("light");te.useEffect(()=>{if(i==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)").matches;l(p?"dark":"light")}else l(i)},[i]);const u=te.useMemo(()=>r?.logo?typeof r.logo=="string"?r.logo:s==="dark"?r.logo.dark:r.logo.light:N5,[r?.logo,s]),d=r?.name||"Gentiq";return Q.jsxs("header",{className:"relative flex items-center justify-between px-3 md:px-4 h-14 sticky top-0 z-40 w-full glass border-b border-border/30 transition-all duration-300",children:[Q.jsx("div",{className:"flex items-center gap-1.5 md:gap-2 min-w-[36px] md:min-w-[80px]",children:o&&Q.jsx(xut,{className:"hover:bg-accent/60 transition-all duration-200 hover:scale-105 active:scale-95 rounded-lg size-9"})}),Q.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:Q.jsx("div",{className:"flex items-center gap-2.5 select-none animate-in fade-in zoom-in-95 duration-500",children:Q.jsx("img",{src:u,alt:d,className:"size-8 object-contain"})})}),Q.jsx("div",{className:"flex items-center gap-1.5 min-w-[36px] md:min-w-[80px] justify-end",children:!e&&Q.jsxs(Q.Fragment,{children:[Q.jsxs(zm,{children:[Q.jsx(Um,{asChild:!0,children:Q.jsx("button",{type:"button",className:yt("flex items-center justify-center size-9 rounded-lg hover:bg-accent/60 transition-all duration-200 hover:scale-105 active:scale-95 text-muted-foreground hover:text-primary",o&&"md:hidden"),onClick:()=>{t("/")},children:Q.jsx(R6e,{className:"size-5"})})}),Q.jsx(Hm,{side:"bottom",className:"text-xs",children:n("new_chat")})]}),Q.jsx(Fpe,{trigger:Q.jsx("button",{type:"button",className:"flex items-center justify-center size-9 rounded-lg hover:bg-accent/60 transition-all duration-200 hover:scale-105 active:scale-95 text-muted-foreground hover:text-primary",children:Q.jsx($4,{className:"size-5"})})})]})})]})}var j5="rovingFocusGroup.onEntryFocus",hdt={bubbles:!1,cancelable:!0},ik="RovingFocusGroup",[q5,Rpe,fdt]=F5(ik),[bdt,Mpe]=gl(ik,[fdt]),[ydt,wdt]=bdt(ik),Ope=re.forwardRef((e,t)=>Q.jsx(q5.Provider,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(q5.Slot,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(kdt,{...e,ref:t})})}));Ope.displayName=ik;var kdt=re.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:r=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...p}=e,m=re.useRef(null),A=oa(t,m),g=wT(i),[h,f]=hl({prop:o,defaultProp:s??null,onChange:l,caller:ik}),[b,y]=re.useState(!1),w=fl(u),k=Rpe(n),_=re.useRef(!1),[E,v]=re.useState(0);return re.useEffect(()=>{const x=m.current;if(x)return x.addEventListener(j5,w),()=>x.removeEventListener(j5,w)},[w]),Q.jsx(ydt,{scope:n,orientation:a,dir:g,loop:r,currentTabStopId:h,onItemFocus:re.useCallback(x=>f(x),[f]),onItemShiftTab:re.useCallback(()=>y(!0),[]),onFocusableItemAdd:re.useCallback(()=>v(x=>x+1),[]),onFocusableItemRemove:re.useCallback(()=>v(x=>x-1),[]),children:Q.jsx(Nn.div,{tabIndex:b||E===0?-1:0,"data-orientation":a,...p,ref:A,style:{outline:"none",...e.style},onMouseDown:Xt(e.onMouseDown,()=>{_.current=!0}),onFocus:Xt(e.onFocus,x=>{const S=!_.current;if(x.target===x.currentTarget&&S&&!b){const I=new CustomEvent(j5,hdt);if(x.currentTarget.dispatchEvent(I),!I.defaultPrevented){const D=k().filter(F=>F.focusable),N=D.find(F=>F.active),R=D.find(F=>F.id===h),T=[N,R,...D].filter(Boolean).map(F=>F.ref.current);jpe(T,d)}}_.current=!1}),onBlur:Xt(e.onBlur,()=>y(!1))})})}),Ppe="RovingFocusGroupItem",$pe=re.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:r=!1,tabStopId:i,children:o,...s}=e,l=Ic(),u=i||l,d=wdt(Ppe,n),p=d.currentTabStopId===u,m=Rpe(n),{onFocusableItemAdd:A,onFocusableItemRemove:g,currentTabStopId:h}=d;return re.useEffect(()=>{if(a)return A(),()=>g()},[a,A,g]),Q.jsx(q5.ItemSlot,{scope:n,id:u,focusable:a,active:r,children:Q.jsx(Nn.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:Xt(e.onMouseDown,f=>{a?d.onItemFocus(u):f.preventDefault()}),onFocus:Xt(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:Xt(e.onKeyDown,f=>{if(f.key==="Tab"&&f.shiftKey){d.onItemShiftTab();return}if(f.target!==f.currentTarget)return;const b=Cdt(f,d.orientation,d.dir);if(b!==void 0){if(f.metaKey||f.ctrlKey||f.altKey||f.shiftKey)return;f.preventDefault();let w=m().filter(k=>k.focusable).map(k=>k.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const k=w.indexOf(f.currentTarget);w=d.loop?Edt(w,k+1):w.slice(k+1)}setTimeout(()=>jpe(w))}}),children:typeof o=="function"?o({isCurrentTabStop:p,hasTabStop:h!=null}):o})})});$pe.displayName=Ppe;var vdt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _dt(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Cdt(e,t,n){const a=_dt(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return vdt[a]}function jpe(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}function Edt(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var xdt=Ope,Bdt=$pe,G5=["Enter"," "],Idt=["ArrowDown","PageUp","Home"],qpe=["ArrowUp","PageDown","End"],Sdt=[...Idt,...qpe],Ddt={ltr:[...G5,"ArrowRight"],rtl:[...G5,"ArrowLeft"]},Qdt={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ok="Menu",[sk,Tdt,Ndt]=F5(ok),[pA,Gpe]=gl(ok,[Ndt,bh,Mpe]),zx=bh(),zpe=Mpe(),[Fdt,mA]=pA(ok),[Ldt,ck]=pA(ok),Upe=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:r,onOpenChange:i,modal:o=!0}=e,s=zx(t),[l,u]=re.useState(null),d=re.useRef(!1),p=fl(i),m=wT(r);return re.useEffect(()=>{const A=()=>{d.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>d.current=!1;return document.addEventListener("keydown",A,{capture:!0}),()=>{document.removeEventListener("keydown",A,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),Q.jsx(dT,{...s,children:Q.jsx(Fdt,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:u,children:Q.jsx(Ldt,{scope:t,onClose:re.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:m,modal:o,children:a})})})};Upe.displayName=ok;var Rdt="MenuAnchor",z5=re.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,r=zx(n);return Q.jsx(pT,{...r,...a,ref:t})});z5.displayName=Rdt;var U5="MenuPortal",[Mdt,Hpe]=pA(U5,{forceMount:void 0}),Ype=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:r}=e,i=mA(U5,t);return Q.jsx(Mdt,{scope:t,forceMount:n,children:Q.jsx(Vs,{present:n||i.open,children:Q.jsx(J0,{asChild:!0,container:r,children:a})})})};Ype.displayName=U5;var oc="MenuContent",[Odt,H5]=pA(oc),Wpe=re.forwardRef((e,t)=>{const n=Hpe(oc,e.__scopeMenu),{forceMount:a=n.forceMount,...r}=e,i=mA(oc,e.__scopeMenu),o=ck(oc,e.__scopeMenu);return Q.jsx(sk.Provider,{scope:e.__scopeMenu,children:Q.jsx(Vs,{present:a||i.open,children:Q.jsx(sk.Slot,{scope:e.__scopeMenu,children:o.modal?Q.jsx(Pdt,{...r,ref:t}):Q.jsx($dt,{...r,ref:t})})})})}),Pdt=re.forwardRef((e,t)=>{const n=mA(oc,e.__scopeMenu),a=re.useRef(null),r=oa(t,a);return re.useEffect(()=>{const i=a.current;if(i)return eN(i)},[]),Q.jsx(Y5,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Xt(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),$dt=re.forwardRef((e,t)=>{const n=mA(oc,e.__scopeMenu);return Q.jsx(Y5,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),jdt=mh("MenuContent.ScrollLock"),Y5=re.forwardRef((e,t)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,onDismiss:A,disableOutsideScroll:g,...h}=e,f=mA(oc,n),b=ck(oc,n),y=zx(n),w=zpe(n),k=Tdt(n),[_,E]=re.useState(null),v=re.useRef(null),x=oa(t,v,f.onContentChange),S=re.useRef(0),I=re.useRef(""),D=re.useRef(0),N=re.useRef(null),R=re.useRef("right"),B=re.useRef(0),T=g?ix:re.Fragment,F=g?{as:jdt,allowPinchZoom:!0}:void 0,L=P=>{const O=I.current+P,$=k().filter(Y=>!Y.disabled),q=document.activeElement,j=$.find(Y=>Y.ref.current===q)?.textValue,K=$.map(Y=>Y.textValue),U=Xdt(K,O,j),W=$.find(Y=>Y.textValue===U)?.ref.current;(function Y(ae){I.current=ae,window.clearTimeout(S.current),ae!==""&&(S.current=window.setTimeout(()=>Y(""),1e3))})(O),W&&setTimeout(()=>W.focus())};re.useEffect(()=>()=>window.clearTimeout(S.current),[]),W8();const M=re.useCallback(P=>R.current===N.current?.side&&tpt(P,N.current?.area),[]);return Q.jsx(Odt,{scope:n,searchRef:I,onItemEnter:re.useCallback(P=>{M(P)&&P.preventDefault()},[M]),onItemLeave:re.useCallback(P=>{M(P)||(v.current?.focus(),E(null))},[M]),onTriggerLeave:re.useCallback(P=>{M(P)&&P.preventDefault()},[M]),pointerGraceTimerRef:D,onPointerGraceIntentChange:re.useCallback(P=>{N.current=P},[]),children:Q.jsx(T,{...F,children:Q.jsx(XE,{asChild:!0,trapped:r,onMountAutoFocus:Xt(i,P=>{P.preventDefault(),v.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:Q.jsx(K0,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,onDismiss:A,children:Q.jsx(xdt,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:a,currentTabStopId:_,onCurrentTabStopIdChange:E,onEntryFocus:Xt(l,P=>{b.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:Q.jsx(mT,{role:"menu","aria-orientation":"vertical","data-state":dme(f.open),"data-radix-menu-content":"",dir:b.dir,...y,...h,ref:x,style:{outline:"none",...h.style},onKeyDown:Xt(h.onKeyDown,P=>{const $=P.target.closest("[data-radix-menu-content]")===P.currentTarget,q=P.ctrlKey||P.altKey||P.metaKey,j=P.key.length===1;$&&(P.key==="Tab"&&P.preventDefault(),!q&&j&&L(P.key));const K=v.current;if(P.target!==K||!Sdt.includes(P.key))return;P.preventDefault();const W=k().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);qpe.includes(P.key)&&W.reverse(),Vdt(W)}),onBlur:Xt(e.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(S.current),I.current="")}),onPointerMove:Xt(e.onPointerMove,uk(P=>{const O=P.target,$=B.current!==P.clientX;if(P.currentTarget.contains(O)&&$){const q=P.clientX>B.current?"right":"left";R.current=q,B.current=P.clientX}}))})})})})})})});Wpe.displayName=oc;var qdt="MenuGroup",W5=re.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return Q.jsx(Nn.div,{role:"group",...a,ref:t})});W5.displayName=qdt;var Gdt="MenuLabel",Kpe=re.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return Q.jsx(Nn.div,{...a,ref:t})});Kpe.displayName=Gdt;var Ux="MenuItem",Zpe="menu.itemSelect",Hx=re.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:a,...r}=e,i=re.useRef(null),o=ck(Ux,e.__scopeMenu),s=H5(Ux,e.__scopeMenu),l=oa(t,i),u=re.useRef(!1),d=()=>{const p=i.current;if(!n&&p){const m=new CustomEvent(Zpe,{bubbles:!0,cancelable:!0});p.addEventListener(Zpe,A=>a?.(A),{once:!0}),XW(p,m),m.defaultPrevented?u.current=!1:o.onClose()}};return Q.jsx(Vpe,{...r,ref:l,disabled:n,onClick:Xt(e.onClick,d),onPointerDown:p=>{e.onPointerDown?.(p),u.current=!0},onPointerUp:Xt(e.onPointerUp,p=>{u.current||p.currentTarget?.click()}),onKeyDown:Xt(e.onKeyDown,p=>{const m=s.searchRef.current!=="";n||m&&p.key===" "||G5.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Hx.displayName=Ux;var Vpe=re.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:a=!1,textValue:r,...i}=e,o=H5(Ux,n),s=zpe(n),l=re.useRef(null),u=oa(t,l),[d,p]=re.useState(!1),[m,A]=re.useState("");return re.useEffect(()=>{const g=l.current;g&&A((g.textContent??"").trim())},[i.children]),Q.jsx(sk.ItemSlot,{scope:n,disabled:a,textValue:r??m,children:Q.jsx(Bdt,{asChild:!0,...s,focusable:!a,children:Q.jsx(Nn.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...i,ref:u,onPointerMove:Xt(e.onPointerMove,uk(g=>{a?o.onItemLeave(g):(o.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Xt(e.onPointerLeave,uk(g=>o.onItemLeave(g))),onFocus:Xt(e.onFocus,()=>p(!0)),onBlur:Xt(e.onBlur,()=>p(!1))})})})}),zdt="MenuCheckboxItem",Jpe=re.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:a,...r}=e;return Q.jsx(ame,{scope:e.__scopeMenu,checked:n,children:Q.jsx(Hx,{role:"menuitemcheckbox","aria-checked":Yx(n)?"mixed":n,...r,ref:t,"data-state":Z5(n),onSelect:Xt(r.onSelect,()=>a?.(Yx(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Jpe.displayName=zdt;var Xpe="MenuRadioGroup",[Udt,Hdt]=pA(Xpe,{value:void 0,onValueChange:()=>{}}),eme=re.forwardRef((e,t)=>{const{value:n,onValueChange:a,...r}=e,i=fl(a);return Q.jsx(Udt,{scope:e.__scopeMenu,value:n,onValueChange:i,children:Q.jsx(W5,{...r,ref:t})})});eme.displayName=Xpe;var tme="MenuRadioItem",nme=re.forwardRef((e,t)=>{const{value:n,...a}=e,r=Hdt(tme,e.__scopeMenu),i=n===r.value;return Q.jsx(ame,{scope:e.__scopeMenu,checked:i,children:Q.jsx(Hx,{role:"menuitemradio","aria-checked":i,...a,ref:t,"data-state":Z5(i),onSelect:Xt(a.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});nme.displayName=tme;var K5="MenuItemIndicator",[ame,Ydt]=pA(K5,{checked:!1}),rme=re.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:a,...r}=e,i=Ydt(K5,n);return Q.jsx(Vs,{present:a||Yx(i.checked)||i.checked===!0,children:Q.jsx(Nn.span,{...r,ref:t,"data-state":Z5(i.checked)})})});rme.displayName=K5;var Wdt="MenuSeparator",ime=re.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return Q.jsx(Nn.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});ime.displayName=Wdt;var Kdt="MenuArrow",ome=re.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,r=zx(n);return Q.jsx(AT,{...r,...a,ref:t})});ome.displayName=Kdt;var Zdt="MenuSub",[Vfn,sme]=pA(Zdt),lk="MenuSubTrigger",cme=re.forwardRef((e,t)=>{const n=mA(lk,e.__scopeMenu),a=ck(lk,e.__scopeMenu),r=sme(lk,e.__scopeMenu),i=H5(lk,e.__scopeMenu),o=re.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,u={__scopeMenu:e.__scopeMenu},d=re.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return re.useEffect(()=>d,[d]),re.useEffect(()=>{const p=s.current;return()=>{window.clearTimeout(p),l(null)}},[s,l]),Q.jsx(z5,{asChild:!0,...u,children:Q.jsx(Vpe,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":dme(n.open),...e,ref:W0(t,r.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Xt(e.onPointerMove,uk(p=>{i.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:Xt(e.onPointerLeave,uk(p=>{d();const m=n.content?.getBoundingClientRect();if(m){const A=n.content?.dataset.side,g=A==="right",h=g?-5:5,f=m[g?"left":"right"],b=m[g?"right":"left"];i.onPointerGraceIntentChange({area:[{x:p.clientX+h,y:p.clientY},{x:f,y:m.top},{x:b,y:m.top},{x:b,y:m.bottom},{x:f,y:m.bottom}],side:A}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(p),p.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Xt(e.onKeyDown,p=>{const m=i.searchRef.current!=="";e.disabled||m&&p.key===" "||Ddt[a.dir].includes(p.key)&&(n.onOpenChange(!0),n.content?.focus(),p.preventDefault())})})})});cme.displayName=lk;var lme="MenuSubContent",ume=re.forwardRef((e,t)=>{const n=Hpe(oc,e.__scopeMenu),{forceMount:a=n.forceMount,...r}=e,i=mA(oc,e.__scopeMenu),o=ck(oc,e.__scopeMenu),s=sme(lme,e.__scopeMenu),l=re.useRef(null),u=oa(t,l);return Q.jsx(sk.Provider,{scope:e.__scopeMenu,children:Q.jsx(Vs,{present:a||i.open,children:Q.jsx(sk.Slot,{scope:e.__scopeMenu,children:Q.jsx(Y5,{id:s.contentId,"aria-labelledby":s.triggerId,...r,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{o.isUsingKeyboardRef.current&&l.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:Xt(e.onFocusOutside,d=>{d.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Xt(e.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:Xt(e.onKeyDown,d=>{const p=d.currentTarget.contains(d.target),m=Qdt[o.dir].includes(d.key);p&&m&&(i.onOpenChange(!1),s.trigger?.focus(),d.preventDefault())})})})})})});ume.displayName=lme;function dme(e){return e?"open":"closed"}function Yx(e){return e==="indeterminate"}function Z5(e){return Yx(e)?"indeterminate":e?"checked":"unchecked"}function Vdt(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Jdt(e,t){return e.map((n,a)=>e[(t+a)%e.length])}function Xdt(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=Jdt(e,Math.max(i,0));r.length===1&&(o=o.filter(u=>u!==n));const l=o.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function ept(e,t){const{x:n,y:a}=e;let r=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const s=t[i],l=t[o],u=s.x,d=s.y,p=l.x,m=l.y;d>a!=m>a&&n<(p-u)*(a-d)/(m-d)+u&&(r=!r)}return r}function tpt(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ept(n,t)}function uk(e){return t=>t.pointerType==="mouse"?e(t):void 0}var npt=Upe,apt=z5,rpt=Ype,ipt=Wpe,opt=W5,spt=Kpe,cpt=Hx,lpt=Jpe,upt=eme,dpt=nme,ppt=rme,mpt=ime,Apt=ome,gpt=cme,hpt=ume,Wx="DropdownMenu",[fpt]=gl(Wx,[Gpe]),Bo=Gpe(),[bpt,pme]=fpt(Wx),mme=e=>{const{__scopeDropdownMenu:t,children:n,dir:a,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,l=Bo(t),u=re.useRef(null),[d,p]=hl({prop:r,defaultProp:i??!1,onChange:o,caller:Wx});return Q.jsx(bpt,{scope:t,triggerId:Ic(),triggerRef:u,contentId:Ic(),open:d,onOpenChange:p,onOpenToggle:re.useCallback(()=>p(m=>!m),[p]),modal:s,children:Q.jsx(npt,{...l,open:d,onOpenChange:p,dir:a,modal:s,children:n})})};mme.displayName=Wx;var Ame="DropdownMenuTrigger",gme=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:a=!1,...r}=e,i=pme(Ame,n),o=Bo(n);return Q.jsx(apt,{asChild:!0,...o,children:Q.jsx(Nn.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...r,ref:W0(t,i.triggerRef),onPointerDown:Xt(e.onPointerDown,s=>{!a&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:Xt(e.onKeyDown,s=>{a||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});gme.displayName=Ame;var ypt="DropdownMenuPortal",hme=e=>{const{__scopeDropdownMenu:t,...n}=e,a=Bo(t);return Q.jsx(rpt,{...a,...n})};hme.displayName=ypt;var fme="DropdownMenuContent",bme=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=pme(fme,n),i=Bo(n),o=re.useRef(!1);return Q.jsx(ipt,{id:r.contentId,"aria-labelledby":r.triggerId,...i,...a,ref:t,onCloseAutoFocus:Xt(e.onCloseAutoFocus,s=>{o.current||r.triggerRef.current?.focus(),o.current=!1,s.preventDefault()}),onInteractOutside:Xt(e.onInteractOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!r.modal||d)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});bme.displayName=fme;var wpt="DropdownMenuGroup",kpt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(opt,{...r,...a,ref:t})});kpt.displayName=wpt;var vpt="DropdownMenuLabel",_pt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(spt,{...r,...a,ref:t})});_pt.displayName=vpt;var Cpt="DropdownMenuItem",yme=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(cpt,{...r,...a,ref:t})});yme.displayName=Cpt;var Ept="DropdownMenuCheckboxItem",xpt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(lpt,{...r,...a,ref:t})});xpt.displayName=Ept;var Bpt="DropdownMenuRadioGroup",Ipt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(upt,{...r,...a,ref:t})});Ipt.displayName=Bpt;var Spt="DropdownMenuRadioItem",Dpt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(dpt,{...r,...a,ref:t})});Dpt.displayName=Spt;var Qpt="DropdownMenuItemIndicator",Tpt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(ppt,{...r,...a,ref:t})});Tpt.displayName=Qpt;var Npt="DropdownMenuSeparator",Fpt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(mpt,{...r,...a,ref:t})});Fpt.displayName=Npt;var Lpt="DropdownMenuArrow",Rpt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(Apt,{...r,...a,ref:t})});Rpt.displayName=Lpt;var Mpt="DropdownMenuSubTrigger",Opt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(gpt,{...r,...a,ref:t})});Opt.displayName=Mpt;var Ppt="DropdownMenuSubContent",$pt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(hpt,{...r,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});$pt.displayName=Ppt;var jpt=mme,qpt=gme,Gpt=hme,zpt=bme,Upt=yme;function wme({...e}){return Q.jsx(jpt,{"data-slot":"dropdown-menu",...e})}function kme({...e}){return Q.jsx(qpt,{"data-slot":"dropdown-menu-trigger",...e})}function vme({className:e,sideOffset:t=4,...n}){return Q.jsx(Gpt,{children:Q.jsx(zpt,{"data-slot":"dropdown-menu-content",sideOffset:t,className:yt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function dk({className:e,inset:t,variant:n="default",...a}){return Q.jsx(Upt,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:yt("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a})}const _me=20;function Hpt(){const t=Kt.getConfig().app?.cacheNamespace||"gentiq";return SNe({queryKey:[t,"conversations"],queryFn:async({pageParam:n=0})=>{const a=await Kt.getHistory(n,_me);return{threads:a.threads.map(r=>({id:`/${r.id}`,firstMessage:r.title||r.firstMessage||"Chat",timestamp:new Date(r.created_at).getTime(),pinned:!!r.pinned})),nextSkip:n+_me,hasMore:n+a.threads.length<(a.total_count??0)}},initialPageParam:0,getNextPageParam:n=>n.hasMore?n.nextSkip:void 0,staleTime:1e3*60*5})}async function Ypt(e,t,n,a){const i=Kt.getConfig().app?.cacheNamespace||"gentiq";try{await Kt.deleteThread(e),t.invalidateQueries({queryKey:[i,"conversations"]}),a===e&&n("/")}catch(o){console.error("Failed to delete conversation:",o),Zo.error("Failed to delete conversation")}}function Cme({side:e="left"}){const{t,i18n:n}=fa(["sidebar","translation"]),{data:a,fetchNextPage:r,hasNextPage:i,isFetchingNextPage:o,isLoading:s}=Hpt(),{history:l,app:u}=Or(),d=u?.basePath||"/",p=l?.enabled??!1,m=a?.pages.flatMap(U=>U.threads)??[],[A,g]=D5(),h=fu(),f=te.useRef(null),b=te.useCallback(U=>{f.current&&(f.current.disconnect(),f.current=null),U&&i&&!o&&(f.current=new IntersectionObserver(W=>{W[0].isIntersecting&&r()},{threshold:0,rootMargin:"100px"}),f.current.observe(U))},[i,r,o]),w=Kt.getConfig().app?.cacheNamespace||"gentiq",[k,_]=te.useState(!1),[E,v]=te.useState(null),[x,S]=te.useState(""),[I,D]=te.useState(null),[N,R]=te.useState(""),B=te.useRef(null),T=te.useCallback((U,W)=>{U.button!==0||U.metaKey||U.ctrlKey||(U.preventDefault(),g(W))},[g]),F=m.filter(U=>U.firstMessage?.toLowerCase().includes(x.toLowerCase())).sort((U,W)=>U.pinned&&!W.pinned?-1:!U.pinned&&W.pinned?1:W.timestamp-U.timestamp),L=async U=>{try{await Kt.pinThread(U.id.replace(/^\//,""),!U.pinned),h.invalidateQueries({queryKey:[w,"conversations"]}),Zo.success(U.pinned?t("unpinned_success"):t("pinned_success"))}catch{Zo.error(t("pin_failed"))}},M=async U=>{try{const W=await Kt.shareThread(U.id.replace(/^\//,"")),Y=`${window.location.origin}${W.url}`;navigator.clipboard.writeText(Y),Zo.success(t("share_success"),{description:t("share_description")})}catch{Zo.error(t("share_failed"))}},P=U=>{D(U.id),R(U.firstMessage??""),setTimeout(()=>B.current?.focus(),0)},O=U=>{U?.preventDefault(),U?.stopPropagation(),D(null),R("")},$=async U=>{if(U?.preventDefault(),U&&"stopPropagation"in U&&U.stopPropagation(),!(!I||!N.trim()))try{await Kt.updateThreadTitle(I,N),h.invalidateQueries({queryKey:[w,"conversations"]}),D(null),Zo.success(t("rename_success"))}catch{Zo.error(t("rename_failed"))}},q=U=>{v(U),_(!0)},j=()=>{E&&(Ypt(E.id,h,g,A),_(!1),v(null),Zo.success(t("chat_deleted_success")))},K=U=>new Intl.DateTimeFormat(n.language,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",calendar:n.language==="fa"?"persian":"gregory"}).format(new Date(U));return Q.jsx(M1,{children:Q.jsxs(Eut,{collapsible:"icon",side:e,children:[Q.jsx(Iut,{className:"custom-scrollbar",children:Q.jsxs(Sut,{children:[Q.jsx(Xde,{className:"mt-2 mb-6 px-2 group-data-[collapsible=icon]:px-0",children:Q.jsx(epe,{className:"group-data-[collapsible=icon]:flex group-data-[collapsible=icon]:justify-center",children:Q.jsx(tpe,{asChild:!0,tooltip:t("tooltip_new_conversation"),className:"h-[52px] rounded-2xl bg-white/40 dark:bg-white/5 border border-border/40 hover:border-primary/50 hover:bg-white/90 dark:hover:bg-white/10 text-foreground shadow-[0_4px_12px_-4px_rgba(0,0,0,0.1)] hover:shadow-[0_12px_30px_-10px_var(--glow)] transition-all duration-500 group-data-[collapsible=icon]:size-10 group-data-[collapsible=icon]:p-0! mb-2 group/new-chat overflow-hidden backdrop-blur-md group-data-[collapsible=icon]:mx-auto",children:Q.jsxs("a",{href:M4(d,"/"),onClick:U=>T(U,"/"),className:"px-5 group-data-[collapsible=icon]:px-0 group-data-[collapsible=icon]:justify-center flex items-center gap-3 active:scale-[0.96] w-full h-full relative",children:[Q.jsx("div",{className:"absolute inset-0 bg-linear-to-tr from-primary/10 via-transparent to-primary/5 opacity-0 group-hover/new-chat:opacity-100 transition-opacity duration-700"}),Q.jsx("div",{className:"relative size-8 rounded-xl bg-linear-to-br from-primary/20 to-primary/5 flex items-center justify-center shrink-0 group-hover/new-chat:from-primary/30 group-hover/new-chat:to-primary/10 transition-all duration-500 shadow-inner",children:Q.jsx(J6e,{className:"size-5! text-primary transition-all duration-700 group-hover/new-chat:rotate-180 group-hover/new-chat:scale-110"})}),Q.jsx("span",{className:"font-bold text-[0.95rem] group-data-[collapsible=icon]:hidden tracking-tight bg-clip-text text-foreground/90 group-hover/new-chat:text-foreground transition-colors",children:t("new_conversation")})]})})})}),p&&Q.jsx(Jde,{className:"group-data-[collapsible=icon]:hidden mb-6 px-2",children:Q.jsxs("div",{className:"relative group/search",children:[Q.jsx(nLe,{className:"absolute left-3 top-1/2 -translate-y-1/2 size-4 opacity-40 group-focus-within/search:opacity-70 transition-opacity"}),Q.jsx(rs,{placeholder:t("search_conversations"),value:x,onChange:U=>S(U.target.value),className:"pl-9 h-10 bg-accent/15 border border-border/40 focus-visible:ring-primary/20 rounded-xl transition-all"})]})}),p&&Q.jsxs(Jde,{className:"group-data-[collapsible=icon]:hidden",children:[Q.jsxs(Xde,{children:[F.map((U,W)=>{const Y=I===U.id,ae=dh(U.firstMessage??""),V=ae==="rtl";return Q.jsx(epe,{className:"group/sidebar-menu-item relative",children:Y?Q.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 w-full",children:[Q.jsx(rs,{ref:B,value:N,onChange:X=>R(X.target.value),onKeyDown:X=>{X.key==="Enter"&&$(),X.key==="Escape"&&O()},className:"h-8 py-0 px-2 text-sm",dir:dh(N)}),Q.jsx(Nr,{size:"icon",variant:"ghost",className:"size-8 shrink-0 text-green-600 hover:text-green-700 hover:bg-green-50",onClick:$,children:Q.jsx(ph,{className:"size-4"})}),Q.jsx(Nr,{size:"icon",variant:"ghost",className:"size-8 shrink-0 text-destructive hover:bg-destructive/10",onClick:O,children:Q.jsx(jm,{className:"size-4"})})]}):Q.jsxs(Q.Fragment,{children:[Q.jsx(tpe,{asChild:!0,className:yt("h-auto py-2.5 px-3",{"bg-accent opacity-100 pointer-events-none":U.id===A,"opacity-70 hover:opacity-100":U.id!==A}),children:Q.jsxs("a",{href:M4(d,U.id),onClick:X=>T(X,U.id),dir:ae,className:yt("flex flex-col gap-0.5 w-full overflow-hidden",V?"items-end":"items-start"),children:[Q.jsx("span",{className:yt("truncate w-full font-medium text-[0.9375rem]",n.language==="fa"?"pl-16 text-right":"pr-16 text-left"),children:U.firstMessage}),Q.jsx("div",{className:yt("text-[10px] opacity-40 w-full",n.language==="fa"?"pl-16 text-right":"pr-16 text-left"),children:K(U.timestamp)})]})}),Q.jsxs("div",{className:yt("absolute top-1/2 -translate-y-1/2 flex items-center gap-1 transition-all duration-200 z-10",n.language==="fa"?"left-2":"right-1.5"),children:[U.pinned&&Q.jsx(jW,{className:"size-3.5 text-primary opacity-70 md:absolute md:inset-0 md:m-auto md:group-hover/sidebar-menu-item:opacity-0 transition-opacity pointer-events-none"}),Q.jsxs(wme,{dir:n.language==="fa"?"rtl":"ltr",children:[Q.jsx(kme,{asChild:!0,children:Q.jsx(Nr,{variant:"ghost",size:"icon",className:"size-7 rounded-full opacity-100 md:opacity-0 md:group-hover/sidebar-menu-item:opacity-100 hover:bg-accent hover:text-accent-foreground data-[state=open]:opacity-100 transition-all",children:Q.jsx(j6e,{className:"size-3.5"})})}),Q.jsxs(vme,{align:"end",className:"min-w-[120px] p-1",children:[l?.showPin!==!1&&Q.jsxs(dk,{onSelect:()=>L(U),className:"cursor-pointer flex items-center gap-2",children:[U.pinned?Q.jsx(V6e,{className:"size-4"}):Q.jsx(jW,{className:"size-4"}),Q.jsx("span",{children:U.pinned?t("unpin_conversation"):t("pin_conversation")})]}),l?.showShare!==!1&&Q.jsxs(dk,{onSelect:()=>M(U),className:"cursor-pointer flex items-center gap-2",children:[Q.jsx(qW,{className:"size-4"}),Q.jsx("span",{children:t("share_conversation")})]}),(l?.showRename??!1)&&Q.jsxs(dk,{onSelect:()=>P(U),className:"cursor-pointer flex items-center gap-2",children:[Q.jsx(Z6e,{className:"size-4"}),Q.jsx("span",{children:t("rename_conversation")})]}),(l?.showDelete??!1)&&Q.jsxs(dk,{className:"text-destructive focus:text-destructive focus:bg-destructive/10 cursor-pointer flex items-center gap-2",onSelect:()=>q(U),children:[Q.jsx(lLe,{className:"size-4"}),Q.jsx("span",{children:t("delete_conversation")})]})]})]})]})]})},W)}),!s&&m.length===0&&!x&&Q.jsx("div",{className:"px-4 py-8 text-center text-sm opacity-40",children:t("no_conversations")})]}),Q.jsx("div",{ref:b,className:"h-4 w-full"}),o&&Q.jsxs("div",{className:"flex flex-col items-center gap-2 p-4 pt-0 opacity-60",children:[Q.jsx("div",{className:"size-4 border-2 border-primary border-t-transparent rounded-full animate-spin"}),Q.jsx("span",{className:"text-[10px] uppercase tracking-wider font-medium",children:t("loading_more")})]})]})]})}),Q.jsx(But,{}),Q.jsx(rN,{open:k,onOpenChange:_,children:Q.jsxs(iN,{onKeyDown:U=>{U.key==="Enter"&&(U.preventDefault(),j())},children:[Q.jsxs(dae,{children:[Q.jsx(pae,{children:t("delete_confirm_title")}),Q.jsx(yVe,{children:t("delete_confirm_description")})]}),Q.jsxs(bVe,{children:[Q.jsx(Nr,{variant:"outline",onClick:()=>{_(!1)},children:t("cancel")}),Q.jsx(Nr,{variant:"destructive",onClick:j,autoFocus:!0,children:t("delete")})]})]})})]})})}function Wpt({sidebar:e,header:t,components:n,classNames:a,disclaimer:r,welcome:i}){const{config:o}=Q4(),{history:s}=Or(),l=o?.language==="fa"?"right":"left",u=s?.enabled??!0;return Q.jsxs(Vde,{defaultOpen:u,children:[e!==void 0?e:u?Q.jsx(Cme,{side:l}):null,Q.jsxs("div",{className:"flex flex-col flex-1 h-dvh overflow-hidden relative",children:[t!==void 0?t:Q.jsx(Lpe,{}),Q.jsx("div",{className:yt("flex flex-col relative w-full flex-1 min-h-0 overflow-hidden","has-[.stick-to-bottom:empty]:overflow-visible has-[.stick-to-bottom:empty]:flex-initial transition-[flex] duration-200"),children:Q.jsx(Kde,{components:n,classNames:a,disclaimer:r,welcome:i})})]})]})}const Eme="/api";class Kpt{token=null;constructor(){this.token=localStorage.getItem("admin_token")}setToken(t){this.token=t,localStorage.setItem("admin_token",t)}clearToken(){this.token=null,localStorage.removeItem("admin_token"),localStorage.removeItem("admin_info")}getToken(){return this.token}async request(t,n={}){const a=new Headers(n.headers);a.has("Content-Type")||a.set("Content-Type","application/json"),this.token&&a.set("Authorization",`Bearer ${this.token}`);const r=await fetch(`${Eme}${t}`,{...n,headers:a});if(!r.ok){const i=await r.json().catch(()=>({error:"Request failed"}));throw new Error(i.error||`HTTP ${r.status}`)}return r.json()}async login(t,n){const a=await this.request("/admin/login",{method:"POST",body:JSON.stringify({username:t,password:n})});this.setToken(a.token);const r={admin_id:a.admin_id,username:a.username,name:a.name,permissions:a.permissions};return localStorage.setItem("admin_info",JSON.stringify(r)),a}async checkSetupStatus(){return this.request("/admin/setup-status")}async register(t,n,a,r){return this.request("/admin/admins",{method:"POST",body:JSON.stringify({username:t,password:n,name:a,permissions:r})})}async listAdmins(){return this.request("/admin/admins")}async updateAdmin(t,n){return this.request(`/admin/admins/${t}`,{method:"PATCH",body:JSON.stringify(n)})}async deleteAdmin(t){return this.request(`/admin/admins/${t}`,{method:"DELETE"})}async listPermissions(){return this.request("/admin/permissions")}async listThreads(t=0,n=50,a,r){const i=new URLSearchParams({skip:t.toString(),limit:n.toString()});return a&&i.append("query",a),r&&i.append("feedback",r),this.request(`/admin/chat-history/threads?${i}`)}async getThreadItems(t){return this.request(`/admin/chat-history/threads/${t}/items`)}async shareThread(t){return this.request(`/admin/chat-history/threads/${t}/share`,{method:"POST"})}async listUsers(t=0,n=100,a=""){const r=new URLSearchParams({skip:t.toString(),limit:n.toString()});return a&&r.append("query",a),this.request(`/admin/users?${r.toString()}`)}async createUser(t,n,a,r,i,o,s,l){const u=r!==void 0||i!==void 0||o!==void 0||s!==void 0?{tokens:r||0,requests:i||0,token_limit:o||r||0,request_limit:s||i||0}:void 0;return this.request("/admin/users",{method:"POST",body:JSON.stringify({phone:t,name:n,surname:a,balance:u,metadata:l})})}async updateUser(t,n){return this.request(`/admin/users/${t}`,{method:"PATCH",body:JSON.stringify(n)})}async deleteUser(t){return this.request(`/admin/users/${t}`,{method:"DELETE"})}async updateUserBalance(t,n,a,r,i){return this.request(`/admin/users/${t}/balance`,{method:"POST",body:JSON.stringify({tokens:n,requests:a,token_limit:r,request_limit:i})})}async refreshUserToken(t){return this.request(`/admin/users/${t}/refresh-token`,{method:"POST"})}async getAnalytics(t=30){return this.request(`/admin/analytics?days=${t}`)}async listJobs(t=20,n){const a=new URLSearchParams({limit:t.toString()});return n&&a.append("type",n),this.request(`/admin/jobs?${a}`)}async cancelJob(t){return this.request(`/admin/jobs/${t}/cancel`,{method:"POST"})}async getAttachmentBlob(t){const n={};this.token&&(n.Authorization=`Bearer ${this.token}`);const a=await fetch(`${Eme}/admin/chat-history/attachments/${t}`,{method:"GET",headers:n});if(!a.ok){const r=await a.json().catch(()=>({error:"Request failed"}));throw new Error(r.error||`HTTP ${a.status}`)}return a.blob()}}const Rn=new Kpt;function Zpt({onLoginSuccess:e}){const{t,i18n:n}=fa(["admin","translation"]),{app:a}=Or(),{theme:r}=zw(),[i,o]=te.useState(""),[s,l]=te.useState(""),[u,d]=te.useState(""),[p,m]=te.useState(""),[A,g]=te.useState(!1),[h,f]=te.useState(null),[b,y]=te.useState("light");te.useEffect(()=>{if(r==="system"){const x=window.matchMedia("(prefers-color-scheme: dark)").matches;y(x?"dark":"light")}else y(r)},[r]);const w=te.useMemo(()=>a?.logo?typeof a.logo=="string"?a.logo:b==="dark"?a.logo.dark:a.logo.light:N5,[a?.logo,b]),k=a?.adminTitle||a?.name,_=n.language==="fa";te.useEffect(()=>{Rn.checkSetupStatus().then(x=>f(x.needs_setup)).catch(()=>f(!1))},[]);const E=async x=>{x.preventDefault(),m(""),g(!0);try{await Rn.login(i,s),e()}catch(S){m(S instanceof Error?S.message:t("login.error"))}finally{g(!1)}},v=async x=>{if(x.preventDefault(),m(""),s!==u){m(t("login.passwords_mismatch"));return}if(s.length<4){m(t("login.password_too_short"));return}g(!0);try{await Rn.register("admin",s,"Admin",["chat_history","admin_management","user_management","analytics"]),await Rn.login("admin",s),e()}catch(S){m(S instanceof Error?S.message:t("login.error"))}finally{g(!1)}};return h===null?Q.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:Q.jsx("div",{className:"w-6 h-6 border-2 border-border border-t-primary rounded-full animate-spin"})}):Q.jsxs("div",{className:"min-h-screen bg-background flex items-center justify-center p-4 relative overflow-hidden",dir:_?"rtl":"ltr",children:[Q.jsx("div",{className:"absolute top-[-10%] right-[-10%] w-[50%] h-[50%] bg-primary/10 rounded-full blur-3xl animate-pulse"}),Q.jsx("div",{className:"absolute bottom-[-10%] left-[-10%] w-[40%] h-[40%] bg-primary/5 dark:bg-primary/10 rounded-full blur-3xl"}),Q.jsxs("div",{className:"w-full max-w-md z-10",children:[Q.jsxs("div",{className:"glass rounded-3xl p-10 shadow-2xl",children:[Q.jsxs("div",{className:"text-center mb-10",children:[Q.jsxs("div",{className:"flex flex-col items-center gap-4 mb-6",children:[Q.jsx("img",{src:w,alt:k,className:"size-16 object-contain"}),Q.jsx("h1",{className:"text-3xl font-black bg-gradient-to-l from-primary to-primary/60 bg-clip-text text-transparent",children:h?t("login.setup_title"):k})]}),h&&Q.jsx("p",{className:"text-sm text-muted-foreground mt-3",children:t("login.setup_description")})]}),h?Q.jsxs("form",{onSubmit:v,className:"space-y-7",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-bold text-muted-foreground uppercase tracking-widest mb-3.5 mx-1",children:t("login.username")}),Q.jsx("input",{type:"text",value:"admin",disabled:!0,className:"w-full px-5 py-3.5 rounded-2xl border-0 bg-muted text-muted-foreground text-sm shadow-sm cursor-not-allowed"})]}),Q.jsxs("div",{children:[Q.jsx("label",{htmlFor:"setup-password",className:"block text-xs font-bold text-muted-foreground uppercase tracking-widest mb-3.5 mx-1",children:t("login.set_password")}),Q.jsx("input",{id:"setup-password",type:"password",value:s,onChange:x=>l(x.target.value),required:!0,className:"w-full px-5 py-3.5 rounded-2xl border-0 bg-card text-foreground placeholder-muted-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm text-left",placeholder:t("login.set_password_placeholder"),dir:"ltr"})]}),Q.jsxs("div",{children:[Q.jsx("label",{htmlFor:"setup-confirm",className:"block text-xs font-bold text-muted-foreground uppercase tracking-widest mb-3.5 mx-1",children:t("login.confirm_password")}),Q.jsx("input",{id:"setup-confirm",type:"password",value:u,onChange:x=>d(x.target.value),required:!0,className:"w-full px-5 py-3.5 rounded-2xl border-0 bg-card text-foreground placeholder-muted-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm text-left",placeholder:t("login.confirm_password_placeholder"),dir:"ltr"})]}),p&&Q.jsx("div",{className:"bg-destructive/10 border border-destructive/20 text-destructive px-4 py-3.5 rounded-2xl text-xs backdrop-blur-sm",children:p}),Q.jsx("button",{type:"submit",disabled:A,className:"w-full bg-primary text-primary-foreground font-bold py-4 px-6 rounded-2xl hover:opacity-90 transition-all text-sm shadow-lg hover:shadow-xl disabled:opacity-50 active:scale-[0.98]",children:A?Q.jsxs("div",{className:"flex items-center justify-center gap-2",children:[Q.jsx("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),Q.jsx("span",{children:t("login.setting_up")})]}):t("login.create_admin")})]}):Q.jsxs("form",{onSubmit:E,className:"space-y-7",children:[Q.jsxs("div",{children:[Q.jsx("label",{htmlFor:"username",className:"block text-xs font-bold text-muted-foreground uppercase tracking-widest mb-3.5 mx-1",children:t("login.username")}),Q.jsx("input",{id:"username",type:"text",value:i,onChange:x=>o(x.target.value),required:!0,className:"w-full px-5 py-3.5 rounded-2xl border-0 bg-card text-foreground placeholder-muted-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm text-left",placeholder:t("login.username_placeholder"),dir:"ltr"})]}),Q.jsxs("div",{children:[Q.jsx("label",{htmlFor:"password",className:"block text-xs font-bold text-muted-foreground uppercase tracking-widest mb-3.5 mx-1",children:t("login.password")}),Q.jsx("input",{id:"password",type:"password",value:s,onChange:x=>l(x.target.value),required:!0,className:"w-full px-5 py-3.5 rounded-2xl border-0 bg-card text-foreground placeholder-muted-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm text-left",placeholder:t("login.password_placeholder"),dir:"ltr"})]}),p&&Q.jsx("div",{className:"bg-destructive/10 border border-destructive/20 text-destructive px-4 py-3.5 rounded-2xl text-xs backdrop-blur-sm",children:p}),Q.jsx("button",{type:"submit",disabled:A,className:"w-full bg-primary text-primary-foreground font-bold py-4 px-6 rounded-2xl hover:opacity-90 transition-all text-sm shadow-lg hover:shadow-xl disabled:opacity-50 active:scale-[0.98]",children:A?Q.jsxs("div",{className:"flex items-center justify-center gap-2",children:[Q.jsx("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),Q.jsx("span",{children:t("login.logging_in")})]}):t("login.submit")})]})]}),Q.jsx("div",{className:"mt-10 text-center text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:Q.jsx("p",{children:t("login.copyright")})})]})]})}function Vpt(){const{t:e,i18n:t}=fa(["admin","translation"]),[n,a]=te.useState([]),[r,i]=te.useState(null),[o,s]=te.useState([]),[l,u]=te.useState(!1),[d,p]=te.useState(!1),[m,A]=te.useState(""),[g,h]=te.useState(""),[f,b]=te.useState(""),[y,w]=te.useState(0),[k,_]=te.useState(!0),E=t.language==="fa",v=E?"fa-IR":"en-US",x=async(L=!1)=>{L?p(!0):(u(!0),w(0)),A("");try{const M=L?y+50:0,P=await Rn.listThreads(M,50,g||void 0,f||void 0);L?(a(O=>[...O,...P.threads]),w(M)):(a(P.threads),w(0)),_(P.threads.length===50)}catch(M){A(M instanceof Error?M.message:e("error_loading"))}finally{u(!1),p(!1)}},S=async L=>{i(L),u(!0),A("");try{const M=await Rn.getThreadItems(L.id);s(M.items)}catch(M){A(M instanceof Error?M.message:e("error_loading"))}finally{u(!1)}},I=async(L,M)=>{L.stopPropagation();try{const P=await Rn.shareThread(M.id),O=`${window.location.origin}${P.url}`;navigator.clipboard.writeText(O),Zo.success(e("sidebar.share_success"),{description:e("sidebar.share_description")})}catch{Zo.error(e("sidebar.share_failed"))}};te.useEffect(()=>{const L=setTimeout(()=>{x()},500);return()=>clearTimeout(L)},[g,f]);const D=L=>{const M=new Date(L);return new Intl.DateTimeFormat(E?"fa-IR":"en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(M)},N=L=>{if(typeof L=="string")try{return JSON.stringify(JSON.parse(L),null,2)}catch{return L}return JSON.stringify(L,null,2)},R=({part:L,idx:M})=>{const[P,O]=te.useState(!1),$=L.tool_name||(L.type&&L.type.startsWith("tool-")?L.type.slice(5):"tool");return Q.jsxs("div",{dir:"ltr",className:"my-2 border border-border/50 rounded-xl overflow-hidden bg-muted/20 text-left",children:[Q.jsxs("div",{onClick:()=>O(!P),className:"px-2.5 py-1.5 bg-muted/50 border-b border-border/50 flex items-center justify-between cursor-pointer hover:bg-accent transition-colors",children:[Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsx("svg",{className:`w-3 h-3 text-gray-400 transition-transform ${P?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M19 9l-7 7-7-7"})}),Q.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:"Tool"}),Q.jsx("span",{className:"text-xs font-semibold",children:$})]}),Q.jsx("span",{className:`text-[10px] px-2 py-0.5 rounded-full ${L.state==="output-available"?"bg-primary/10 text-primary":"bg-muted text-muted-foreground"}`,children:L.state==="output-available"?e("chat_history.output_available"):e("chat_history.running")})]}),P&&Q.jsxs("div",{className:"p-2.5 space-y-2.5 animate-in fade-in slide-in-from-top-1 duration-200",children:[Q.jsxs("div",{children:[Q.jsx("div",{className:"text-[10px] uppercase font-bold text-muted-foreground mb-1",children:"Input"}),Q.jsx("pre",{className:"text-xs bg-black/5 dark:bg-black/20 p-2 rounded-lg overflow-x-auto",children:N(L.input)})]}),(L.output||L.error_text||L.errorText)&&Q.jsxs("div",{children:[Q.jsx("div",{className:"text-[10px] uppercase font-bold text-muted-foreground mb-1",children:L.error_text||L.errorText?"Error":"Output"}),Q.jsx("pre",{className:`text-xs p-2 rounded-lg overflow-x-auto ${L.error_text||L.errorText?"bg-destructive/10 text-destructive":"bg-primary/5 text-foreground/80"}`,children:N(L.output||L.error_text||L.errorText)})]})]})]},M)},B=async(L,M)=>{try{const P=await Rn.getAttachmentBlob(L),O=window.URL.createObjectURL(P),$=document.createElement("a");$.href=O,$.download=M||L.split("/").pop()||"download",document.body.appendChild($),$.click(),window.URL.revokeObjectURL(O),document.body.removeChild($)}catch(P){console.error("Download failed:",P),A(P instanceof Error?P.message:"Download failed")}},T=(L,M)=>typeof L=="string"?Q.jsx("div",{children:L},M):L.type==="text"?Q.jsx("div",{className:"whitespace-pre-wrap",dir:"auto",children:L.text},M):L.type==="reasoning"?Q.jsxs("div",{className:"my-2 p-2.5 bg-muted/40 rounded-lg border border-border text-xs italic text-muted-foreground",dir:"auto",children:[Q.jsx("div",{className:"font-bold mb-1 uppercase tracking-tighter opacity-70",children:"Reasoning"}),L.text]},M):L.type==="dynamic-tool"||L.type&&L.type.startsWith("tool-")||L.tool_call_id?Q.jsx(R,{part:L,idx:M},M):L.type==="file"?Q.jsxs("div",{className:"my-2 flex items-center justify-between p-2.5 bg-muted/40 rounded-xl border border-border group hover:border-primary/30 transition-all",children:[Q.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[Q.jsx("div",{className:"flex-shrink-0 w-8 h-8 flex items-center justify-center bg-primary/10 rounded-lg text-primary",children:Q.jsx("span",{className:"text-xl",children:"📎"})}),Q.jsxs("div",{className:"flex flex-col min-w-0",children:[Q.jsx("span",{className:"text-sm text-foreground font-medium truncate",title:L.filename||"File",children:L.filename||e("chat_history.unnamed_file")}),Q.jsx("span",{className:"text-[10px] text-muted-foreground uppercase tracking-wider font-bold",children:L.media_type||L.mime_type||L.mediaType||"file"})]})]}),L.object_name&&Q.jsx("button",{onClick:()=>B(L.object_name,L.filename),className:"flex-shrink-0 p-2 hover:bg-card rounded-lg border border-transparent hover:border-border transition-all text-muted-foreground hover:text-primary",title:e("chat_history.download_file","Download File"),children:Q.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})})})]},M):Q.jsx("div",{className:"my-2 p-2 bg-muted/40 rounded-lg border border-border text-xs font-mono opacity-60",children:JSON.stringify(L)},M),F=L=>{const{scrollTop:M,scrollHeight:P,clientHeight:O}=L.currentTarget;P-M<=O+50&&!d&&k&&x(!0)};return Q.jsxs("div",{className:"p-5 h-full flex flex-col gap-4 overflow-hidden",dir:E?"rtl":"ltr",children:[Q.jsxs("div",{className:"flex flex-col gap-3",children:[Q.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[Q.jsx("h1",{className:"text-2xl font-bold text-foreground tracking-tight whitespace-nowrap",children:e("chat_history.title")}),Q.jsxs("div",{className:"flex flex-col md:flex-row gap-3 flex-1 max-w-3xl justify-end",children:[Q.jsxs("form",{onSubmit:L=>{L.preventDefault(),x()},className:"flex-1 flex gap-2",children:[Q.jsx("input",{type:"text",value:g,onChange:L=>h(L.target.value),placeholder:e("chat_history.search_placeholder"),className:"flex-1 px-4 py-2.5 border-0 rounded-xl glass-surface text-foreground placeholder-muted-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm"}),Q.jsx("button",{type:"submit",className:"px-5 py-2.5 bg-primary text-primary-foreground rounded-xl hover:opacity-90 transition-all font-semibold text-sm shadow-sm hover:shadow-md",children:e("chat_history.search_button")})]}),Q.jsxs("select",{value:f,onChange:L=>b(L.target.value),className:"px-4 py-2.5 border-0 rounded-xl glass-surface text-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm min-w-[180px]",children:[Q.jsx("option",{value:"",children:e("chat_history.all_feedbacks","All Feedbacks")}),Q.jsx("option",{value:"liked",children:e("chat_history.liked_feedbacks","Liked 👍")}),Q.jsx("option",{value:"disliked",children:e("chat_history.disliked_feedbacks","Disliked 👎")}),Q.jsx("option",{value:"any",children:e("chat_history.any_feedback","With Feedback")})]})]})]}),m&&Q.jsx("div",{className:"bg-destructive/10 border border-destructive/20 text-destructive px-4 py-3 rounded-xl text-sm backdrop-blur-sm",children:m})]}),Q.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[380px_1fr] gap-4 flex-1 min-h-0",children:[Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm overflow-hidden flex flex-col min-w-0",children:[Q.jsx("div",{className:"px-5 py-2.5 border-b border-border/30",children:Q.jsxs("h2",{className:"text-sm font-medium text-muted-foreground uppercase tracking-wide",children:[e("chat_history.threads_list")," (",(n.length||0).toLocaleString(v),")"]})}),Q.jsx("div",{className:"flex-1 overflow-y-auto p-2 custom-scrollbar",onScroll:F,children:l&&n.length===0?Q.jsx("div",{className:"p-8 text-center text-muted-foreground text-sm",children:e("chat_history.no_threads")}):Q.jsxs("div",{className:"space-y-1",children:[n.map(L=>Q.jsxs("div",{onClick:()=>S(L),className:`p-2.5 cursor-pointer transition-all rounded-xl border ${r?.id===L.id?"bg-card border-border shadow-sm":"border-transparent hover:bg-muted/50"}`,children:[Q.jsxs("div",{className:"flex justify-between items-start mb-1.5 gap-4",children:[Q.jsx("h3",{className:`font-medium text-sm truncate flex-1 ${r?.id===L.id?"text-primary":"text-foreground"}`,title:L.title||e("chat_history.no_thread_title"),children:L.title||e("chat_history.no_thread_title")}),Q.jsxs("div",{className:"flex gap-1",children:[L.feedback_info&&L.feedback_info.like>0&&Q.jsx("span",{className:"text-xs",children:"👍"}),L.feedback_info&&L.feedback_info.dislike>0&&Q.jsx("span",{className:"text-xs",children:"👎"})]})]}),Q.jsxs("div",{className:"text-xs space-y-1.5 text-muted-foreground",children:[L.user_info&&Q.jsxs("div",{className:"font-medium text-foreground truncate",title:`${L.user_info.name} ${L.user_info.surname} ${L.user_info.phone?` • ${L.user_info.phone}`:""}`,children:[L.user_info.name," ",L.user_info.surname,L.user_info.phone&&` • ${L.user_info.phone}`]}),L.metadata?.usage&&Q.jsxs("div",{className:"flex gap-2 mt-2 pt-2 border-border/30",children:[Q.jsx("span",{className:"inline-flex items-center gap-1 bg-muted/30 px-2 py-0.5 rounded-md text-[9px] text-muted-foreground",children:e("chat_history.input_tokens",{value:(L.metadata.usage.input_tokens||0).toLocaleString(v)})}),Q.jsx("span",{className:"inline-flex items-center gap-1 bg-muted/30 px-2 py-0.5 rounded-md text-[9px] text-muted-foreground",children:e("chat_history.output_tokens",{value:(L.metadata.usage.output_tokens||0).toLocaleString(v)})})]}),Q.jsx("div",{className:"text-[10px] text-muted-foreground mt-1",children:D(L.created_at)})]})]},L.id)),d&&Q.jsx("div",{className:"p-4 text-center text-muted-foreground text-xs",children:e("loading_more")})]})})]}),Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm overflow-hidden flex flex-col",children:[Q.jsxs("div",{className:"px-5 py-2.5 border-b border-border/30 flex items-center justify-between gap-4",children:[Q.jsx("h2",{className:"text-sm font-medium text-muted-foreground uppercase tracking-wide truncate",children:r?e("chat_history.messages_for",{title:r.title||e("chat_history.no_thread_title")}):e("chat_history.messages")}),r&&Q.jsx("button",{onClick:L=>I(L,r),className:"flex-shrink-0 w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center hover:bg-primary/20 transition-all shadow-sm",title:e("sidebar.share_conversation"),children:Q.jsx(qW,{className:"w-4 h-4"})})]}),Q.jsx("div",{className:"flex-1 overflow-y-auto p-4 custom-scrollbar",children:r?l?Q.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground text-sm",children:e("chat_history.loading_messages")}):o.length===0?Q.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground text-sm",children:e("chat_history.empty_thread")}):Q.jsx("div",{className:"space-y-6",children:o.map(L=>{const M=L.role==="user",P=L.role==="assistant";return Q.jsxs("div",{className:`p-3.5 rounded-2xl transition-all relative ${M?"bg-primary/10 ms-12 rounded-te-sm":P?"glass shadow-sm me-12 rounded-ts-sm":"bg-muted/30 border border-border/50"}`,children:[L.feedback&&Q.jsx("div",{className:"absolute -bottom-2 -left-2 flex items-center justify-center w-8 h-8 rounded-full shadow-md bg-card border border-border animate-in fade-in zoom-in duration-300 z-10",children:Q.jsx("span",{className:"text-base",children:L.feedback==="like"?"👍":"👎"})}),Q.jsxs("div",{className:"flex justify-between items-center mb-1.5",children:[Q.jsx("span",{className:`text-[10px] font-bold uppercase tracking-wider ${M||P?"text-primary":"text-muted-foreground"}`,children:M?e("chat_history.user_label"):P?e("chat_history.assistant_label"):`${L.role}`}),Q.jsx("span",{className:"text-[10px] text-muted-foreground",children:D(L.created_at)})]}),Q.jsx("div",{className:"text-sm text-foreground leading-relaxed",dir:"auto",children:L.parts&&L.parts.length>0?L.parts.map((O,$)=>T(O,$)):typeof L.content=="object"?Q.jsx("pre",{className:"text-xs font-mono bg-muted/40 p-2.5 rounded-xl",dir:"ltr",children:JSON.stringify(L.content,null,2)}):L.content})]},L.id)})}):Q.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground",children:[Q.jsx("svg",{className:"w-12 h-12 mb-4 opacity-50",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),Q.jsx("p",{className:"text-sm",children:e("chat_history.select_thread")})]})})]})]})]})}function Jpt(){const{t:e,i18n:t}=fa(["admin","translation"]),[n,a]=te.useState([]),[r,i]=te.useState(!1),[o,s]=te.useState(""),[l,u]=te.useState(!1),[d,p]=te.useState(null),[m,A]=te.useState([]),[g,h]=te.useState(null),f=t.language==="fa",[b,y]=te.useState({username:"",password:"",name:"",permissions:[]}),w=async()=>{i(!0),s("");try{const D=await Rn.listAdmins();a(D.admins||[]);const N=localStorage.getItem("admin_info");N&&h(JSON.parse(N).admin_id)}catch(D){s(D instanceof Error?D.message:e("error_loading"))}finally{i(!1)}},k=async()=>{try{const D=await Rn.listPermissions();A(D.permissions)}catch(D){console.error("Failed to load permissions",D)}};te.useEffect(()=>{w(),k()},[]);const _=async D=>{D.preventDefault(),i(!0);try{await Rn.register(b.username,b.password,b.name,b.permissions),u(!1),y({username:"",password:"",name:"",permissions:[]}),w()}catch(N){s(N instanceof Error?N.message:e("error_loading"))}finally{i(!1)}},E=async D=>{if(D.preventDefault(),!!d){i(!0);try{const N={name:b.name,permissions:b.permissions};if(b.password&&(N.password=b.password),await Rn.updateAdmin(d.id,N),d.id===g){const R=localStorage.getItem("admin_info");if(R){const B=JSON.parse(R);B.name=b.name,B.permissions=b.permissions,localStorage.setItem("admin_info",JSON.stringify(B)),window.location.reload();return}}p(null),y({username:"",password:"",name:"",permissions:[]}),w()}catch(N){s(N instanceof Error?N.message:e("error_loading"))}finally{i(!1)}}},v=async D=>{if(confirm(e("admins.confirm_delete_admin")))try{await Rn.deleteAdmin(D),w()}catch(N){s(N instanceof Error?N.message:e("error_loading"))}},x=D=>{p(D),y({username:D.username,password:"",name:D.name,permissions:D.permissions}),u(!0)},S=D=>{y(N=>({...N,permissions:N.permissions.includes(D)?N.permissions.filter(R=>R!==D):[...N.permissions,D]}))},I=D=>{const N=`admins.perm_${D}`,R=e(N);if(R!==N)return R;switch(D){case"chat_history":return e("admins.perm_chat_history");case"admin_management":return e("admins.perm_admin_management");case"user_management":return e("admins.perm_user_management");case"analytics":return e("admins.perm_analytics");default:return D}};return Q.jsxs("div",{className:"h-full flex flex-col p-5 overflow-hidden gap-4",dir:f?"rtl":"ltr",children:[Q.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-3 flex-shrink-0",children:[Q.jsx("h1",{className:"text-2xl font-bold text-foreground tracking-tight whitespace-nowrap",children:e("admins.title")}),Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsx("div",{className:"glass-surface px-4 py-2.5 rounded-xl text-xs font-medium text-muted-foreground border border-border shadow-sm",children:e("admins.admin_count",{count:n.length})}),Q.jsx("button",{onClick:()=>{p(null),y({username:"",password:"",name:"",permissions:[]}),u(!0)},className:"px-4 py-2.5 bg-primary text-primary-foreground rounded-xl text-sm font-semibold hover:opacity-90 transition-all shadow-sm hover:shadow-md whitespace-nowrap",children:e("admins.add_admin")})]})]}),o&&Q.jsx("div",{className:"bg-destructive/10 border border-destructive/20 text-destructive px-4 py-3 rounded-xl text-sm backdrop-blur-sm flex-shrink-0",children:o}),l&&Q.jsx("div",{className:"fixed inset-0 bg-background/20 backdrop-blur-md flex items-center justify-center z-50 p-4",children:Q.jsxs("div",{className:"bg-card rounded-2xl border border-border w-full max-w-md shadow-2xl overflow-hidden",children:[Q.jsx("div",{className:"px-6 py-5 border-b border-border bg-muted/20",children:Q.jsx("h3",{className:"text-lg font-bold text-foreground",children:e(d?"admins.edit_admin":"admins.add_admin")})}),Q.jsx("div",{className:"p-8",children:Q.jsxs("form",{onSubmit:d?E:_,className:"space-y-5",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("admins.username")}),Q.jsx("input",{type:"text",disabled:!!d,value:b.username,onChange:D=>y({...b,username:D.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground disabled:opacity-50 focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono dir-ltr",required:!0,dir:"ltr"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("admins.name")}),Q.jsx("input",{type:"text",value:b.name,onChange:D=>y({...b,name:D.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm",required:!0})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e(d?"admins.password_edit":"admins.password")}),Q.jsx("input",{type:"password",value:b.password,onChange:D=>y({...b,password:D.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono dir-ltr",required:!d,dir:"ltr"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("admins.permissions")}),Q.jsx("div",{className:"space-y-3 p-4 bg-muted/30 rounded-xl border border-border",children:m.map(D=>Q.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[Q.jsx("div",{className:"relative flex items-center",children:Q.jsx("input",{type:"checkbox",checked:b.permissions.includes(D),onChange:()=>S(D),disabled:b.username==="admin"&&D==="admin_management",className:"peer h-4 w-4 rounded border-input text-primary focus:ring-ring transition-all disabled:opacity-50"})}),Q.jsx("span",{className:"text-sm text-foreground/70 group-hover:text-foreground transition-colors select-none",children:I(D)})]},D))})]}),Q.jsxs("div",{className:"flex gap-3 pt-4",children:[Q.jsx("button",{type:"button",onClick:()=>u(!1),className:"flex-1 px-4 py-3 bg-secondary text-secondary-foreground border border-border rounded-xl text-sm font-medium hover:bg-secondary/80 transition-colors",children:e("cancel")}),Q.jsx("button",{type:"submit",disabled:r,className:"flex-1 px-4 py-3 bg-primary text-primary-foreground rounded-xl text-sm font-bold hover:opacity-90 transition-all shadow-md hover:shadow-lg disabled:opacity-50",children:e(r?"saving":"save")})]})]})})]})}),Q.jsx("div",{className:"glass-surface border border-border rounded-2xl overflow-hidden shadow-sm flex-1 flex flex-col",children:Q.jsxs("div",{className:"overflow-x-auto flex-1",children:[Q.jsxs("table",{className:`w-full ${f?"text-right":"text-left"} border-collapse`,children:[Q.jsx("thead",{className:"bg-muted/30 sticky top-0 z-10 backdrop-blur-md",children:Q.jsxs("tr",{children:[Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("admins.name")}),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("admins.username")}),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("admins.permissions")}),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("users.actions")})]})}),Q.jsx("tbody",{className:"divide-y divide-border",children:n.map(D=>Q.jsxs("tr",{className:"hover:bg-muted/30 transition-colors text-xs border-b border-border/50",children:[Q.jsx("td",{className:"px-4 py-3 font-medium text-foreground",children:D.name}),Q.jsx("td",{className:"px-4 py-3 text-muted-foreground font-mono",dir:"ltr",children:D.username}),Q.jsx("td",{className:"px-4 py-3 text-muted-foreground",children:Q.jsx("div",{className:"flex flex-wrap gap-1.5",children:D.permissions.map(N=>Q.jsx("span",{className:"px-2 py-0.5 bg-muted/50 text-foreground/80 rounded text-[10px] border border-border/50",children:I(N)},N))})}),Q.jsx("td",{className:"px-4 py-3",children:Q.jsxs("div",{className:"flex items-center gap-1.5",children:[Q.jsx("button",{onClick:()=>x(D),className:"p-2 text-muted-foreground hover:text-primary hover:bg-primary/10 rounded-xl transition-all",title:e("edit"),children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})})}),D.id!==g&&Q.jsx("button",{onClick:()=>v(D.id),className:"p-2 text-destructive hover:text-destructive/80 hover:bg-destructive/10 rounded-xl transition-all",title:e("delete"),children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})]})})]},D.id))})]}),n.length===0&&!r&&Q.jsxs("div",{className:"p-12 text-center text-muted-foreground text-sm flex flex-col items-center gap-2",children:[Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1,stroke:"currentColor",className:"w-12 h-12 opacity-20",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"})}),e("admins.no_admins")]}),r&&Q.jsxs("div",{className:"p-12 text-center text-muted-foreground text-sm flex flex-col items-center gap-3",children:[Q.jsx("div",{className:"w-8 h-8 border-2 border-primary/20 border-t-primary rounded-full animate-spin"}),Q.jsx("span",{children:e("loading")})]})]})})]})}var Kx="Checkbox",[Xpt]=gl(Kx),[emt,V5]=Xpt(Kx);function tmt(e){const{__scopeCheckbox:t,checked:n,children:a,defaultChecked:r,disabled:i,form:o,name:s,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:p}=e,[m,A]=hl({prop:n,defaultProp:r??!1,onChange:l,caller:Kx}),[g,h]=re.useState(null),[f,b]=re.useState(null),y=re.useRef(!1),w=g?!!o||!!g.closest("form"):!0,k={checked:m,disabled:i,setChecked:A,control:g,setControl:h,name:s,form:o,value:d,hasConsumerStoppedPropagationRef:y,required:u,defaultChecked:wp(r)?!1:r,isFormControl:w,bubbleInput:f,setBubbleInput:b};return Q.jsx(emt,{scope:t,...k,children:nmt(p)?p(k):a})}var xme="CheckboxTrigger",Bme=re.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...a},r)=>{const{control:i,value:o,disabled:s,checked:l,required:u,setControl:d,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:A,bubbleInput:g}=V5(xme,e),h=oa(r,d),f=re.useRef(l);return re.useEffect(()=>{const b=i?.form;if(b){const y=()=>p(f.current);return b.addEventListener("reset",y),()=>b.removeEventListener("reset",y)}},[i,p]),Q.jsx(Nn.button,{type:"button",role:"checkbox","aria-checked":wp(l)?"mixed":l,"aria-required":u,"data-state":Nme(l),"data-disabled":s?"":void 0,disabled:s,value:o,...a,ref:h,onKeyDown:Xt(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:Xt(n,b=>{p(y=>wp(y)?!0:!y),g&&A&&(m.current=b.isPropagationStopped(),m.current||b.stopPropagation())})})});Bme.displayName=xme;var Ime=re.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:a,checked:r,defaultChecked:i,required:o,disabled:s,value:l,onCheckedChange:u,form:d,...p}=e;return Q.jsx(tmt,{__scopeCheckbox:n,checked:r,defaultChecked:i,disabled:s,required:o,onCheckedChange:u,name:a,form:d,value:l,internal_do_not_use_render:({isFormControl:m})=>Q.jsxs(Q.Fragment,{children:[Q.jsx(Bme,{...p,ref:t,__scopeCheckbox:n}),m&&Q.jsx(Tme,{__scopeCheckbox:n})]})})});Ime.displayName=Kx;var Sme="CheckboxIndicator",Dme=re.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:a,...r}=e,i=V5(Sme,n);return Q.jsx(Vs,{present:a||wp(i.checked)||i.checked===!0,children:Q.jsx(Nn.span,{"data-state":Nme(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});Dme.displayName=Sme;var Qme="CheckboxBubbleInput",Tme=re.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:a,hasConsumerStoppedPropagationRef:r,checked:i,defaultChecked:o,required:s,disabled:l,name:u,value:d,form:p,bubbleInput:m,setBubbleInput:A}=V5(Qme,e),g=oa(n,A),h=npe(i),f=TK(a);re.useEffect(()=>{const y=m;if(!y)return;const w=window.HTMLInputElement.prototype,_=Object.getOwnPropertyDescriptor(w,"checked").set,E=!r.current;if(h!==i&&_){const v=new Event("click",{bubbles:E});y.indeterminate=wp(i),_.call(y,wp(i)?!1:i),y.dispatchEvent(v)}},[m,h,i,r]);const b=re.useRef(wp(i)?!1:i);return Q.jsx(Nn.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??b.current,required:s,disabled:l,name:u,value:d,form:p,...t,tabIndex:-1,ref:g,style:{...t.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Tme.displayName=Qme;function nmt(e){return typeof e=="function"}function wp(e){return e==="indeterminate"}function Nme(e){return wp(e)?"indeterminate":e?"checked":"unchecked"}function Fme({className:e,...t}){return Q.jsx(Ime,{"data-slot":"checkbox",className:yt("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:Q.jsx(Dme,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:Q.jsx(ph,{className:"size-3.5"})})})}function amt(){const{t:e,i18n:t}=fa(["admin","translation"]),{app:n}=Or(),[a,r]=te.useState([]),[i,o]=te.useState(!1),[s,l]=te.useState(""),[u,d]=te.useState(!1),[p,m]=te.useState(null),[A,g]=te.useState(""),[h,f]=te.useState(0),b=te.useMemo(()=>n?.userMetadataFields||[],[n?.userMetadataFields]),[y,w]=te.useState(null),[k,_]=te.useState(""),[E,v]=te.useState(""),[x,S]=te.useState(""),[I,D]=te.useState(""),N=t.language==="fa",R=N?"text-right":"text-left",[B,T]=te.useState({phone:"",name:"",surname:"",tokens:"",requests:"",tokensLimit:"",requestsLimit:"",metadata:""}),[F,L]=te.useState({}),M=async()=>{o(!0),l("");try{const W=await Rn.listUsers(0,100,A);r(W.users||[]),f(W.count||0)}catch(W){l(W instanceof Error?W.message:e("error_loading"))}finally{o(!1)}};te.useEffect(()=>{const W=setTimeout(()=>{M()},500);return()=>clearTimeout(W)},[A]),te.useEffect(()=>{try{const Y={...B.metadata?JSON.parse(B.metadata):{},...F},ae=JSON.stringify(Y,null,2);ae!==B.metadata&&T(V=>({...V,metadata:ae}))}catch{}},[F]),te.useEffect(()=>{const W={...F};let Y=!1;b.forEach(ae=>{ae.condition&&!hf(ae.condition,F)&&W[ae.key]!==void 0&&(delete W[ae.key],Y=!0)}),Y&&L(W)},[F,b]);const P=async W=>{W.preventDefault();const Y=B.tokens?parseInt(B.tokens):0,ae=B.requests?parseInt(B.requests):0,V=B.tokensLimit?parseInt(B.tokensLimit):Y,X=B.requestsLimit?parseInt(B.requestsLimit):ae;if(Y>V){l(e("users.tokens_exceed_limit","Tokens cannot exceed limit"));return}if(ae>X){l(e("users.requests_exceed_limit","Requests cannot exceed limit"));return}let ee={};if(B.metadata)try{ee=JSON.parse(B.metadata)}catch{l(e("users.invalid_json","Invalid JSON format"));return}o(!0);try{await Rn.createUser(B.phone,B.name,B.surname,B.tokens?parseInt(B.tokens):void 0,B.requests?parseInt(B.requests):void 0,B.tokensLimit?parseInt(B.tokensLimit):void 0,B.requestsLimit?parseInt(B.requestsLimit):void 0,ee),d(!1),$(),M()}catch(J){l(J instanceof Error?J.message:e("error_loading"))}finally{o(!1)}},O=async W=>{if(W.preventDefault(),!p)return;let Y={};if(B.metadata)try{Y=JSON.parse(B.metadata)}catch{l(e("users.invalid_json","Invalid JSON format"));return}o(!0);try{await Rn.updateUser(p.id,{phone:B.phone,name:B.name,surname:B.surname,metadata:Y}),m(null),d(!1),$(),M()}catch(ae){l(ae instanceof Error?ae.message:e("error_loading"))}finally{o(!1)}},$=()=>{T({phone:"",name:"",surname:"",tokens:"",requests:"",tokensLimit:"",requestsLimit:"",metadata:""}),L({})},q=async W=>{if(confirm(e("users.confirm_delete_user")))try{await Rn.deleteUser(W),M()}catch(Y){l(Y instanceof Error?Y.message:e("error_loading"))}},j=async W=>{try{const ae=(await Rn.refreshUserToken(W.id))?.user?.token;if(!ae){l(e("users.no_token"));return}await navigator.clipboard.writeText(ae),alert(e("users.token_copied"))}catch(Y){l(Y instanceof Error?Y.message:e("error_loading"))}},K=async W=>{if(W.preventDefault(),!y)return;const Y=parseInt(k)||0,ae=parseInt(E)||0,V=x?parseInt(x):y.balance?.token_limit||0,X=I?parseInt(I):y.balance?.request_limit||0;if(Y>V){l(e("users.tokens_exceed_limit","Tokens cannot exceed limit"));return}if(ae>X){l(e("users.requests_exceed_limit","Requests cannot exceed limit"));return}o(!0);try{await Rn.updateUserBalance(y.id,Y,ae,x?parseInt(x):void 0,I?parseInt(I):void 0),w(null),_(""),v(""),S(""),D(""),M()}catch(ee){l(ee instanceof Error?ee.message:e("error_loading"))}finally{o(!1)}},U=W=>{m(W);const Y=W.metadata?JSON.stringify(W.metadata,null,2):"";if(T({phone:W.phone,name:W.name,surname:W.surname,tokens:"",requests:"",tokensLimit:"",requestsLimit:"",metadata:Y}),W.metadata){const ae={};b.forEach(V=>{W.metadata?.[V.key]!==void 0?ae[V.key]=W.metadata[V.key]:V.defaultValue!==void 0&&(ae[V.key]=V.defaultValue)}),L(ae)}d(!0)};return Q.jsxs("div",{className:"h-full flex flex-col p-5 overflow-hidden gap-4",dir:N?"rtl":"ltr",children:[Q.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-3 flex-shrink-0",children:[Q.jsx("h1",{className:"text-2xl font-bold text-foreground tracking-tight whitespace-nowrap",children:e("users.title")}),Q.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-2 flex-1 max-w-4xl justify-end",children:[Q.jsx("div",{className:"flex-1 w-full md:w-auto",children:Q.jsx("input",{type:"text",value:A,onChange:W=>g(W.target.value),placeholder:e("chat_history.search_placeholder"),className:"w-full px-4 py-2.5 border-0 rounded-xl glass-surface text-foreground placeholder-muted-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm"})}),Q.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[Q.jsx("div",{className:"glass-surface px-4 py-2.5 rounded-xl text-xs font-medium text-muted-foreground border border-border shadow-sm",children:e("users.user_count",{count:h})}),Q.jsx("button",{onClick:()=>{m(null),$(),d(!0)},className:"px-4 py-2.5 bg-primary text-primary-foreground rounded-xl text-sm font-semibold hover:opacity-90 transition-all shadow-sm hover:shadow-md whitespace-nowrap",children:e("users.add_user")})]})]})]}),s&&Q.jsxs("div",{className:"bg-destructive/10 border border-destructive/20 text-destructive px-4 py-3 rounded-xl text-sm backdrop-blur-sm flex-shrink-0 flex justify-between items-center group",children:[Q.jsx("span",{children:s}),Q.jsx("button",{onClick:()=>l(""),className:"opacity-50 hover:opacity-100 transition-opacity p-1",children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),u&&Q.jsx("div",{className:"fixed inset-0 bg-background/20 backdrop-blur-md flex items-center justify-center z-50 p-4",children:Q.jsxs("div",{className:"bg-card rounded-2xl border border-border w-full max-w-xl shadow-2xl overflow-hidden",children:[Q.jsx("div",{className:"px-6 py-5 border-b border-border bg-muted/20",children:Q.jsx("h3",{className:"text-lg font-bold text-foreground",children:e(p?"users.edit_user":"users.add_user")})}),Q.jsx("div",{className:"p-8",children:Q.jsxs("form",{onSubmit:p?O:P,children:[Q.jsxs("div",{className:"space-y-6 max-h-[60vh] overflow-y-auto px-1 custom-scrollbar",children:[Q.jsxs("div",{className:"space-y-4",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.phone")}),Q.jsx("input",{type:"text",value:B.phone,onChange:W=>T({...B,phone:W.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",placeholder:e("users.phone_placeholder"),required:!0,dir:"ltr"})]}),Q.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.name")}),Q.jsx("input",{type:"text",value:B.name,onChange:W=>T({...B,name:W.target.value}),className:`w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm ${R}`,required:!0})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.surname")}),Q.jsx("input",{type:"text",value:B.surname,onChange:W=>T({...B,surname:W.target.value}),className:`w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm ${R}`,required:!0})]})]})]}),!p&&Q.jsxs("div",{className:"border-t border-border/50 pt-4 mt-4 space-y-4",children:[Q.jsx("h4",{className:"text-sm font-bold text-foreground/70",children:e("users.initial_balance","Initial Balance")}),Q.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.initial_tokens")}),Q.jsx("input",{type:"number",value:B.tokens,onChange:W=>T({...B,tokens:W.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",dir:"ltr",placeholder:"0"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.token_limit")}),Q.jsx("input",{type:"number",value:B.tokensLimit,onChange:W=>T({...B,tokensLimit:W.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",dir:"ltr",placeholder:B.tokens||"250000"})]})]}),Q.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.initial_requests")}),Q.jsx("input",{type:"number",value:B.requests,onChange:W=>T({...B,requests:W.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",dir:"ltr",placeholder:"0"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.request_limit")}),Q.jsx("input",{type:"number",value:B.requestsLimit,onChange:W=>T({...B,requestsLimit:W.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",dir:"ltr",placeholder:B.requests||"100"})]})]})]}),b.length>0&&Q.jsxs("div",{className:"border-t border-border/50 pt-4 mt-4 space-y-4",children:[Q.jsx("h4",{className:"text-sm font-bold text-foreground/70",children:e("users.custom_fields","Custom Metadata Fields")}),Q.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:b.map(W=>hf(W.condition,F)?Q.jsxs("div",{className:"animate-in fade-in slide-in-from-top-1 duration-200",children:[Q.jsxs("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:[e(W.label)," ",W.required&&Q.jsx("span",{className:"text-destructive",children:"*"})]}),W.type==="select"?Q.jsxs(tk,{value:String(F[W.key]||""),onValueChange:Y=>L({...F,[W.key]:Y}),required:W.required,dir:N?"rtl":"ltr",children:[Q.jsx(ak,{className:yt("w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground transition-all text-sm h-[46px]",R),children:Q.jsx(nk,{placeholder:e(W.placeholder||"admin.select_placeholder")})}),Q.jsx(rk,{className:"rounded-xl border-border bg-card",children:W.options?.map(Y=>Q.jsx(gf,{value:String(Y.value),children:e(Y.label)},String(Y.value)))})]}):W.type==="checkbox"?Q.jsxs("div",{className:"flex items-center gap-3 h-[46px] px-1",children:[Q.jsx(Fme,{id:`admin-md-${W.key}`,checked:!!F[W.key],onCheckedChange:Y=>L({...F,[W.key]:!!Y}),required:W.required}),Q.jsx("label",{htmlFor:`admin-md-${W.key}`,className:"text-sm text-foreground/80 cursor-pointer select-none",children:e(W.placeholder||W.label)})]}):Q.jsx("input",{type:W.type,value:F[W.key]||"",onChange:Y=>L({...F,[W.key]:Y.target.value}),className:`w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm ${R}`,placeholder:e(W.placeholder||""),required:W.required})]},W.key):null)})]}),Q.jsxs("div",{className:"border-t border-border/50 pt-4 mt-4",children:[Q.jsxs("div",{className:"flex items-center justify-between mb-2",children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider",children:e("users.metadata_raw","Metadata (Raw JSON)")}),Q.jsx("span",{className:"text-[10px] text-muted-foreground opacity-60",children:"Advanced usage"})]}),Q.jsx("textarea",{value:B.metadata,onChange:W=>T({...B,metadata:W.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-xs font-mono min-h-[100px] custom-scrollbar",placeholder:'{ "key": "value" }',dir:"ltr"})]})]}),Q.jsxs("div",{className:"flex gap-3 pt-6",children:[Q.jsx("button",{type:"button",onClick:()=>{d(!1),m(null)},className:"flex-1 px-4 py-3 bg-secondary text-secondary-foreground border border-border rounded-xl text-sm font-medium hover:bg-secondary/80 transition-colors",children:e("cancel")}),Q.jsx("button",{type:"submit",disabled:i,className:"flex-1 px-4 py-3 bg-primary text-primary-foreground rounded-xl text-sm font-bold hover:opacity-90 transition-all shadow-md hover:shadow-lg disabled:opacity-50",children:e(i?"saving":"save")})]})]})})]})}),y&&Q.jsx("div",{className:"fixed inset-0 bg-background/20 backdrop-blur-md flex items-center justify-center z-50 p-4",children:Q.jsxs("div",{className:"bg-card rounded-2xl border border-border w-full max-w-sm shadow-2xl overflow-hidden",children:[Q.jsx("div",{className:"px-6 py-5 border-b border-border bg-muted/20",children:Q.jsxs("h3",{className:"text-lg font-bold text-foreground",children:[e("users.update_balance_for")," ",y.name]})}),Q.jsx("div",{className:"p-8",children:Q.jsxs("form",{onSubmit:K,children:[Q.jsxs("div",{className:"space-y-4",children:[Q.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.token_count")}),Q.jsx("input",{type:"number",value:k,onChange:W=>_(W.target.value),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",required:!0,dir:"ltr"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.token_limit")}),Q.jsx("input",{type:"number",value:x,onChange:W=>S(W.target.value),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",dir:"ltr",placeholder:k})]})]}),Q.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.request_count")}),Q.jsx("input",{type:"number",value:E,onChange:W=>v(W.target.value),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",required:!0,dir:"ltr"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.request_limit")}),Q.jsx("input",{type:"number",value:I,onChange:W=>D(W.target.value),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",dir:"ltr",placeholder:E})]})]})]}),Q.jsxs("div",{className:"flex gap-3 pt-6",children:[Q.jsx("button",{type:"button",onClick:()=>{w(null),l("")},className:"flex-1 px-4 py-3 bg-secondary text-secondary-foreground border border-border rounded-xl text-sm font-medium hover:bg-secondary/80 transition-colors",children:e("cancel")}),Q.jsx("button",{type:"submit",disabled:i,className:"flex-1 px-4 py-3 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 rounded-xl text-sm font-bold hover:bg-gray-800 dark:hover:bg-gray-200 transition-all shadow-md hover:shadow-lg disabled:opacity-50",children:e(i?"users.updating":"users.update_balance")})]})]})})]})}),Q.jsx("div",{className:"glass-surface border border-border rounded-2xl overflow-hidden shadow-sm flex-1 flex flex-col",children:Q.jsxs("div",{className:"overflow-x-auto flex-1 custom-scrollbar",children:[Q.jsxs("table",{className:`w-full ${N?"text-right":"text-left"} border-collapse`,children:[Q.jsx("thead",{className:"bg-muted/30 sticky top-0 z-10 backdrop-blur-md",children:Q.jsxs("tr",{children:[Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("users.phone")}),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("users.name")}),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("users.surname")}),b.map(W=>Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e(W.label)},W.key)),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50 w-[120px]",children:e("users.balance")}),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("users.actions")})]})}),Q.jsx("tbody",{className:"divide-y divide-border",children:a.map(W=>Q.jsxs("tr",{className:"hover:bg-muted/30 transition-colors text-xs border-b border-border/50",children:[Q.jsx("td",{className:"px-4 py-3 text-foreground font-mono",dir:"ltr",children:W.phone}),Q.jsx("td",{className:"px-4 py-3 font-medium text-foreground",children:W.name}),Q.jsx("td",{className:"px-4 py-3 text-foreground/80",children:W.surname}),b.map(Y=>Q.jsx("td",{className:"px-4 py-3 text-foreground/80",children:Y.type==="checkbox"?W.metadata?.[Y.key]?Q.jsx("span",{className:"text-emerald-500 font-bold",children:"✓"}):Q.jsx("span",{className:"text-muted-foreground opacity-30",children:"✗"}):String(W.metadata?.[Y.key]??"")},Y.key)),Q.jsx("td",{className:"px-4 py-3 text-muted-foreground w-[120px]",children:W.balance?Q.jsxs("div",{className:"flex flex-col gap-3 min-w-0 py-1",children:[Q.jsxs("div",{className:"space-y-1",children:[Q.jsxs("div",{className:"flex justify-between text-[10px] font-semibold",children:[Q.jsx("span",{className:"text-muted-foreground",children:e("users.tokens_label")}),Q.jsxs("span",{className:"text-foreground",children:[(W.balance.token_limit>0?Math.round(W.balance.tokens/W.balance.token_limit*100):0).toLocaleString(t.language),"%"]})]}),Q.jsx("div",{className:"h-1 w-full bg-muted rounded-full overflow-hidden",dir:"ltr",children:Q.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${W.balance.tokens/(W.balance.token_limit||1)>.6?"bg-emerald-500":W.balance.tokens/(W.balance.token_limit||1)>.2?"bg-amber-500":"bg-destructive"}`,style:{width:`${Math.min(100,Math.max(0,W.balance.tokens/(W.balance.token_limit||1)*100))}%`}})})]}),Q.jsxs("div",{className:"space-y-1",children:[Q.jsxs("div",{className:"flex justify-between text-[10px] font-semibold",children:[Q.jsx("span",{className:"text-muted-foreground",children:e("users.requests_label")}),Q.jsxs("span",{className:"text-foreground",children:[(W.balance.request_limit>0?Math.round(W.balance.requests/W.balance.request_limit*100):0).toLocaleString(t.language),"%"]})]}),Q.jsx("div",{className:"h-1 w-full bg-muted rounded-full overflow-hidden",dir:"ltr",children:Q.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${W.balance.requests/(W.balance.request_limit||1)>.6?"bg-emerald-500":W.balance.requests/(W.balance.request_limit||1)>.2?"bg-amber-500":"bg-destructive"}`,style:{width:`${Math.min(100,Math.max(0,W.balance.requests/(W.balance.request_limit||1)*100))}%`}})})]})]}):Q.jsx("span",{className:"text-muted-foreground/40 text-[10px]",children:"—"})}),Q.jsx("td",{className:"px-4 py-3",children:Q.jsxs("div",{className:"flex items-center gap-1.5",children:[Q.jsx("button",{onClick:()=>U(W),className:"p-2 text-muted-foreground hover:text-primary hover:bg-primary/10 rounded-xl transition-all",title:e("edit"),children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})})}),Q.jsx("button",{onClick:()=>{w(W),_(String(W.balance?.tokens||0)),v(String(W.balance?.requests||0)),S(String(W.balance?.token_limit||0)),D(String(W.balance?.request_limit||0)),l("")},className:"p-2 text-muted-foreground hover:text-primary hover:bg-primary/10 rounded-xl transition-all",title:e("users.recharge"),children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm3 0h.008v.008H18V10.5Zm-12 0h.008v.008H6V10.5Z"})})}),Q.jsx("button",{onClick:()=>j(W),className:"p-2 text-muted-foreground hover:text-primary hover:bg-primary/10 rounded-xl transition-all",title:e("users.copy_token"),children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})})}),Q.jsx("button",{onClick:()=>q(W.id),className:"p-2 text-destructive hover:text-destructive/80 hover:bg-destructive/10 rounded-xl transition-all",title:e("delete"),children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})]})})]},W.id))})]}),a.length===0&&!i&&Q.jsxs("div",{className:"p-12 text-center text-muted-foreground text-sm flex flex-col items-center gap-2",children:[Q.jsx("svg",{xmlns:"http://www.w3.org/2000/xl",fill:"none",viewBox:"0 0 24 24",strokeWidth:1,stroke:"currentColor",className:"w-12 h-12 opacity-20",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"})}),e("users.no_users")]}),i&&Q.jsxs("div",{className:"p-12 text-center text-muted-foreground text-sm flex flex-col items-center gap-3",children:[Q.jsx("div",{className:"w-8 h-8 border-2 border-primary/20 border-t-primary rounded-full animate-spin"}),Q.jsx("span",{children:e("loading")})]})]})})]})}function rmt(){const{t:e,i18n:t}=fa(["admin","translation"]),[n,a]=te.useState(null),[r,i]=te.useState(!0),[o,s]=te.useState(""),[l,u]=te.useState(30),[d,p]=te.useState(0),m=te.useRef(null),A=t.language==="fa",g=A?"fa-IR":"en-US",h=A?"fa-IR-u-ca-persian":"en-US";te.useEffect(()=>{y()},[l]),te.useEffect(()=>{if(!m.current)return;const I=new ResizeObserver(D=>{for(const N of D)p(N.contentRect.width)});return I.observe(m.current),()=>I.disconnect()},[]);const f=(I,D,N)=>{const R=[],B=new Date,T=I||[],F=new Map(T.map(L=>[L.date,L]));for(let L=D-1;L>=0;L--){const P=new Date(B.getTime()-L*24*60*60*1e3).toISOString().split("T")[0];if(F.has(P))R.push(F.get(P));else{const O={date:P};N.forEach($=>O[$]=0),R.push(O)}}return R},b=I=>{if(!I||I.length===0)return null;const D=I.length,N=new Intl.DateTimeFormat(h,{month:"short"});let R=[];if(l<=14)R=Array.from({length:D},(B,T)=>T);else{const B=A?45:35,T=d>0?Math.floor(d/B):6,F=Math.max(1,Math.ceil(D/Math.max(1,T)));for(let L=0;L<D;L+=F)R.push(L);R.length>0&&R[R.length-1]!==D-1&&(D-1-R[R.length-1]>F/2?R.push(D-1):R[R.length-1]=D-1)}return Q.jsx("div",{className:"relative w-full h-8 mt-2",dir:A?"rtl":"ltr",children:R.map(B=>{const T=I[B];if(!T)return null;const F=new Date(T.date),L=F.toLocaleDateString(h,{day:"numeric"}),M=N.format(F),P=D>1?B/(D-1)*100:50;return Q.jsxs("div",{className:"absolute top-0 transform -translate-x-1/2 flex flex-col items-center",style:{left:`${P}%`},children:[Q.jsx("span",{className:"text-[10px] text-gray-600 dark:text-gray-400 font-medium leading-none",children:L}),Q.jsx("span",{className:"text-[9px] text-gray-400 dark:text-gray-500 mt-1 leading-none whitespace-nowrap",children:M})]},B)})})},y=async()=>{i(!0),s("");try{const I=await Rn.getAnalytics(l),D={...I,overview:I.overview||{total_users:0,total_threads:0,total_messages:0,total_token_usage:0},trends:{...I.trends||{},users:f(I.trends?.users,l,["count"]),threads:f(I.trends?.threads,l,["count"]),messages:f(I.trends?.messages,l,["count"]),token_usage:f(I.trends?.token_usage,l,["tokens","requests"])},distributions:{...I.distributions||{},feedback_sentiment:I.distributions?.feedback_sentiment||[]},active_users:I.active_users||[]};a(D)}catch(I){s(I instanceof Error?I.message:e("analytics.error_loading"))}finally{i(!1)}};if(r)return Q.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:e("analytics.loading_analytics")});if(o)return Q.jsx("div",{className:"h-full flex items-center justify-center",children:Q.jsxs("div",{className:"text-center",children:[Q.jsx("div",{className:"text-destructive mb-4",children:o}),Q.jsx("button",{onClick:y,className:"px-4 py-2 bg-primary text-primary-foreground rounded-lg text-sm font-medium hover:opacity-90 transition-colors",children:e("retry")})]})});if(!n)return null;const w=I=>{if(I<=0)return 10;const D=I*1.15,N=Math.pow(10,Math.floor(Math.log10(D))),R=D/N;let B;return R<=1.2?B=.2:R<=2.5?B=.5:R<=5?B=1:B=2,Math.ceil(D/(B*N))*(B*N)},k=Math.max(...n.trends.threads.map(I=>I.count)||[1]),_=Math.max(...n.trends.messages.map(I=>I.count)||[1]),E=Math.max(...n.trends.token_usage.map(I=>I.tokens)||[1]),v=w(k),x=w(_),S=w(E);return Q.jsxs("div",{className:"h-full overflow-auto p-5 flex flex-col gap-5",dir:A?"rtl":"ltr",children:[Q.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-3",children:[Q.jsx("h1",{className:"text-2xl font-bold text-foreground tracking-tight whitespace-nowrap",children:e("analytics.title")}),Q.jsx("div",{className:"flex gap-2",children:[7,14,30,90].map(I=>Q.jsx("button",{onClick:()=>u(I),className:`px-4 py-2 text-sm font-medium rounded-xl transition-all shadow-sm ${l===I?"bg-primary text-primary-foreground shadow-md":"bg-muted/50 text-muted-foreground hover:bg-muted hover:text-foreground border border-border/50"}`,children:e("analytics.days",{count:I})},I))})]}),Q.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[Q.jsx("div",{className:"glass-surface rounded-2xl shadow-sm hover:shadow-md transition-shadow p-4",children:Q.jsxs("div",{className:"flex items-center justify-between",children:[Q.jsxs("div",{children:[Q.jsx("p",{className:"text-[11px] uppercase tracking-widest font-bold text-muted-foreground/80 mb-1",children:e("analytics.total_users")}),Q.jsx("p",{className:"text-2xl font-light text-foreground",children:(n.overview.total_users||0).toLocaleString(g)})]}),Q.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center",children:Q.jsx("svg",{className:"w-5 h-5 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"})})})]})}),Q.jsx("div",{className:"glass-surface rounded-2xl shadow-sm hover:shadow-md transition-shadow p-4",children:Q.jsxs("div",{className:"flex items-center justify-between",children:[Q.jsxs("div",{children:[Q.jsx("p",{className:"text-[11px] uppercase tracking-widest font-bold text-muted-foreground/80 mb-1",children:e("analytics.total_threads")}),Q.jsx("p",{className:"text-2xl font-light text-foreground",children:(n.overview.total_threads||0).toLocaleString(g)})]}),Q.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center",children:Q.jsx("svg",{className:"w-5 h-5 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})})})]})}),Q.jsx("div",{className:"glass-surface rounded-2xl shadow-sm hover:shadow-md transition-shadow p-4",children:Q.jsxs("div",{className:"flex items-center justify-between",children:[Q.jsxs("div",{children:[Q.jsx("p",{className:"text-[11px] uppercase tracking-widest font-bold text-muted-foreground/80 mb-1",children:e("analytics.total_messages")}),Q.jsx("p",{className:"text-2xl font-light text-foreground",children:(n.overview.total_messages||0).toLocaleString(g)})]}),Q.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center",children:Q.jsx("svg",{className:"w-5 h-5 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})})})]})}),Q.jsx("div",{className:"glass-surface rounded-2xl shadow-sm hover:shadow-md transition-shadow p-4",children:Q.jsxs("div",{className:"flex items-center justify-between",children:[Q.jsxs("div",{children:[Q.jsx("p",{className:"text-[11px] uppercase tracking-widest font-bold text-muted-foreground/80 mb-1",children:e("analytics.total_token_usage")}),Q.jsx("p",{className:"text-2xl font-light text-foreground",children:(n.overview.total_token_usage||0).toLocaleString(g)})]}),Q.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center",children:Q.jsx("svg",{className:"w-5 h-5 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})})]})})]}),Q.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm p-7",children:[Q.jsx("h3",{className:"text-[11px] font-bold text-muted-foreground/80 mb-6 uppercase tracking-widest",children:e("analytics.threads_chart")}),Q.jsxs("div",{className:"h-64 flex flex-col",ref:m,children:[Q.jsxs("div",{className:"flex-1 flex gap-2 min-h-0",dir:"ltr",children:[Q.jsxs("div",{className:"flex flex-col justify-between text-[10px] text-muted-foreground pt-6 text-right min-w-[24px]",children:[Q.jsx("span",{children:(v||0).toLocaleString(g)}),Q.jsx("span",{children:Math.floor((v||0)/2).toLocaleString(g)}),Q.jsx("span",{children:"0"})]}),Q.jsxs("div",{className:"flex-1 relative flex items-end justify-between pt-6 border-b border-border/30",children:[Q.jsxs("div",{className:"absolute inset-0 pt-6 pointer-events-none",children:[Q.jsx("div",{className:"absolute top-6 left-0 right-0 border-t border-border/30 w-full"}),Q.jsx("div",{className:"absolute top-[calc(50%-4px)] left-0 right-0 border-t border-border/30 w-full"})]}),n.trends.threads.length>0?n.trends.threads.map((I,D)=>Q.jsx("div",{className:"w-1.5 group relative flex flex-col justify-end h-full",children:Q.jsx("div",{className:"bg-primary/80 w-full rounded-t-lg transition-all group-hover:bg-primary relative",style:{height:`${I.count/v*100}%`},children:Q.jsxs("div",{className:"absolute bottom-full mb-1 left-1/2 -translate-x-1/2 opacity-0 group-hover:opacity-100 transition-opacity bg-card px-2 py-1 rounded border border-border shadow-sm z-20 pointer-events-none flex flex-col items-center",children:[Q.jsx("span",{className:"text-[10px] font-medium text-primary leading-none mb-0.5",children:I.count.toLocaleString(g)}),Q.jsx("span",{className:"text-[9px] text-muted-foreground leading-none whitespace-nowrap",children:new Date(I.date).toLocaleDateString(h,{month:"short",day:"numeric"})})]})})},D)):Q.jsx("p",{className:"w-full text-center text-muted-foreground py-8",children:e("no_data")})]})]}),Q.jsxs("div",{className:"flex gap-2",dir:"ltr",children:[Q.jsx("div",{className:"min-w-[24px] invisible"}),b(n.trends.threads)]})]})]}),Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm p-7",children:[Q.jsx("h3",{className:"text-[11px] font-bold text-muted-foreground/80 mb-6 uppercase tracking-widest",children:e("analytics.messages_chart")}),Q.jsxs("div",{className:"h-64 flex flex-col",ref:m,children:[Q.jsxs("div",{className:"flex-1 flex gap-2 min-h-0",dir:"ltr",children:[Q.jsxs("div",{className:"flex flex-col justify-between text-[10px] text-muted-foreground pt-6 text-right min-w-[24px]",children:[Q.jsx("span",{children:(x||0).toLocaleString(g)}),Q.jsx("span",{children:Math.floor((x||0)/2).toLocaleString(g)}),Q.jsx("span",{children:"0"})]}),Q.jsxs("div",{className:"flex-1 relative flex items-end justify-between pt-6 border-b border-border/30",children:[Q.jsxs("div",{className:"absolute inset-0 pt-6 pointer-events-none",children:[Q.jsx("div",{className:"absolute top-6 left-0 right-0 border-t border-border/30 w-full"}),Q.jsx("div",{className:"absolute top-[calc(50%-4px)] left-0 right-0 border-t border-border/30 w-full"})]}),n.trends.messages.length>0?n.trends.messages.map((I,D)=>Q.jsx("div",{className:"w-1.5 group relative flex flex-col justify-end h-full",children:Q.jsx("div",{className:"bg-primary/80 w-full rounded-t-lg transition-all group-hover:bg-primary relative",style:{height:`${I.count/x*100}%`},children:Q.jsxs("div",{className:"absolute bottom-full mb-1 left-1/2 -translate-x-1/2 opacity-0 group-hover:opacity-100 transition-opacity bg-card px-2 py-1 rounded border border-border shadow-sm z-20 pointer-events-none flex flex-col items-center",children:[Q.jsx("span",{className:"text-[10px] font-medium text-primary leading-none mb-0.5",children:I.count.toLocaleString(g)}),Q.jsx("span",{className:"text-[9px] text-muted-foreground leading-none whitespace-nowrap",children:new Date(I.date).toLocaleDateString(h,{month:"short",day:"numeric"})})]})})},D)):Q.jsx("p",{className:"w-full text-center text-muted-foreground py-8",children:e("no_data")})]})]}),Q.jsxs("div",{className:"flex gap-2",dir:"ltr",children:[Q.jsx("div",{className:"min-w-[24px] invisible"}),b(n.trends.messages)]})]})]}),Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm p-7",children:[Q.jsx("h3",{className:"text-[11px] font-bold text-muted-foreground/80 mb-6 uppercase tracking-widest",children:e("analytics.token_usage_chart")}),Q.jsxs("div",{className:"h-64 flex flex-col",ref:m,children:[Q.jsxs("div",{className:"flex-1 flex gap-2 min-h-0",dir:"ltr",children:[Q.jsxs("div",{className:"flex flex-col justify-between text-[10px] text-muted-foreground pt-6 text-right min-w-[24px]",children:[Q.jsx("span",{children:(S||0).toLocaleString(g)}),Q.jsx("span",{children:Math.floor((S||0)/2).toLocaleString(g)}),Q.jsx("span",{children:"0"})]}),Q.jsxs("div",{className:"flex-1 relative flex items-end justify-between pt-6 border-b border-border/30",children:[Q.jsxs("div",{className:"absolute inset-0 pt-6 pointer-events-none",children:[Q.jsx("div",{className:"absolute top-6 left-0 right-0 border-t border-border/30 w-full"}),Q.jsx("div",{className:"absolute top-[calc(50%-4px)] left-0 right-0 border-t border-border/30 w-full"})]}),n.trends.token_usage.length>0?n.trends.token_usage.map((I,D)=>Q.jsx("div",{className:"w-1.5 group relative flex flex-col justify-end h-full",children:Q.jsx("div",{className:"bg-primary/80 w-full rounded-t-lg transition-all group-hover:bg-primary relative",style:{height:`${I.tokens/S*100}%`},children:Q.jsxs("div",{className:"absolute bottom-full mb-1 left-1/2 -translate-x-1/2 opacity-0 group-hover:opacity-100 transition-opacity bg-card px-2 py-1 rounded border border-border shadow-sm z-20 pointer-events-none flex flex-col items-center",children:[Q.jsx("span",{className:"text-[10px] font-medium text-primary leading-none mb-0.5",children:(I.tokens||0).toLocaleString(g)}),Q.jsx("span",{className:"text-[9px] text-muted-foreground leading-none whitespace-nowrap",children:new Date(I.date).toLocaleDateString(h,{month:"short",day:"numeric"})})]})})},D)):Q.jsx("p",{className:"w-full text-center text-muted-foreground py-8",children:e("no_data")})]})]}),Q.jsxs("div",{className:"flex gap-2",dir:"ltr",children:[Q.jsx("div",{className:"min-w-[24px] invisible"}),b(n.trends.token_usage)]})]})]}),Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm p-7",children:[Q.jsx("h3",{className:"text-[11px] font-bold text-muted-foreground/80 mb-6 uppercase tracking-widest",children:e("analytics.feedback")}),Q.jsx("div",{className:"h-64 flex flex-col justify-center",children:n.distributions.feedback_sentiment.length>0?Q.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-8 lg:gap-12",children:[Q.jsxs("div",{className:"relative w-56 h-56 lg:w-60 lg:h-60",children:[Q.jsx("svg",{viewBox:"0 0 100 100",className:"w-full h-full -rotate-90 drop-shadow-md",children:(()=>{const I=n.distributions.feedback_sentiment.filter(M=>M.sentiment==="positive"||M.sentiment==="negative"),D=I.reduce((M,P)=>M+P.count,0);if(D===0)return null;const N=I.find(M=>M.sentiment==="positive")?.count||0,R=I.find(M=>M.sentiment==="negative")?.count||0,B=40,T=2*Math.PI*B,F=N/D*100,L=R/D*100;return Q.jsxs(Q.Fragment,{children:[Q.jsx("circle",{cx:"50",cy:"50",r:B,fill:"transparent",stroke:"currentColor",strokeWidth:"10",className:"text-muted"}),Q.jsxs("defs",{children:[Q.jsxs("linearGradient",{id:"posGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[Q.jsx("stop",{offset:"0%",stopColor:"var(--primary)",stopOpacity:"0.8"}),Q.jsx("stop",{offset:"100%",stopColor:"var(--primary)"})]}),Q.jsxs("linearGradient",{id:"negGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[Q.jsx("stop",{offset:"0%",stopColor:"var(--destructive)",stopOpacity:"0.8"}),Q.jsx("stop",{offset:"100%",stopColor:"var(--destructive)"})]})]}),Q.jsx("circle",{cx:"50",cy:"50",r:B,fill:"transparent",stroke:"url(#posGradient)",strokeWidth:"10",strokeDasharray:`${F/100*T} ${T}`,strokeLinecap:F>0?"round":"butt",className:"transition-all duration-1000 ease-out drop-shadow-sm"}),Q.jsx("circle",{cx:"50",cy:"50",r:B,fill:"transparent",stroke:"url(#negGradient)",strokeWidth:"10",strokeDasharray:`${L/100*T} ${T}`,strokeDashoffset:-(F/100*T),strokeLinecap:L>0?"round":"butt",className:"transition-all duration-1000 ease-out drop-shadow-sm"})]})})()}),Q.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",children:[Q.jsx("span",{className:"text-3xl lg:text-4xl font-light text-foreground",children:n.distributions.feedback_sentiment.filter(I=>I.sentiment==="positive"||I.sentiment==="negative").reduce((I,D)=>I+(D.count||0),0).toLocaleString(g)}),Q.jsx("span",{className:"text-xs text-muted-foreground uppercase tracking-widest mt-1",children:e("analytics.total_feedback")})]})]}),Q.jsx("div",{className:"flex flex-col gap-4 min-w-[140px]",children:[...n.distributions.feedback_sentiment].filter(I=>I.sentiment==="positive"||I.sentiment==="negative").sort((I,D)=>I.sentiment==="positive"?-1:1).map(I=>{const N=n.distributions.feedback_sentiment.filter(L=>L.sentiment==="positive"||L.sentiment==="negative").reduce((L,M)=>L+M.count,0),R=N>0?I.count/N*100:0,B=I.sentiment==="positive"?e("analytics.positive"):e("analytics.negative"),T=I.sentiment==="positive"?"bg-primary":"bg-destructive",F=I.sentiment==="positive"?"👍":"👎";return Q.jsxs("div",{className:"flex items-center justify-between gap-6 group",children:[Q.jsxs("div",{className:"flex items-center gap-3",children:[Q.jsx("div",{className:`w-3 h-3 rounded-full ${T} shadow-sm group-hover:scale-110 transition-transform`}),Q.jsxs("span",{className:"text-sm text-muted-foreground font-medium",children:[B," ",F]})]}),Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsxs("span",{className:"text-sm font-semibold text-foreground bg-muted/50 px-2.5 py-1 rounded-lg min-w-[50px] text-center",children:[(R||0).toLocaleString(g,{maximumFractionDigits:0}),"%"]}),Q.jsxs("span",{className:"text-[13px] font-normal text-muted-foreground w-12 text-right",children:["(",(I.count||0).toLocaleString(g),")"]})]})]},I.sentiment)})})]}):Q.jsx("p",{className:"text-center text-muted-foreground py-8",children:e("no_data")})})]})]}),Q.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm p-7",children:[Q.jsx("h3",{className:"text-[11px] font-bold text-muted-foreground/80 mb-6 uppercase tracking-widest",children:e("analytics.active_users")}),Q.jsx("div",{className:"space-y-2.5",children:n.active_users.length>0?n.active_users.map(I=>Q.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted/30 rounded-xl hover:bg-muted/50 transition-colors",children:[Q.jsxs("div",{className:"flex items-center gap-3",children:[Q.jsx("div",{className:"w-9 h-9 rounded-full bg-primary/10 flex items-center justify-center text-primary text-sm font-medium",children:I.name.charAt(0)}),Q.jsx("div",{children:Q.jsx("p",{className:"text-sm font-medium text-foreground",children:I.name})})]}),Q.jsxs("div",{className:"text-sm font-semibold text-primary",children:[(I.thread_count||0).toLocaleString(g)," ",e("analytics.threads")]})]},I.user_id)):Q.jsx("p",{className:"text-center text-muted-foreground py-8",children:e("no_data")})})]})})]})}function pk(){const{t:e,i18n:t}=fa(["admin"]),n=t.language==="fa";return Q.jsxs("div",{className:"h-full flex flex-col items-center justify-center p-6 text-center gap-4 animate-in fade-in duration-500",dir:n?"rtl":"ltr",children:[Q.jsx("div",{className:"bg-destructive/10 p-4 rounded-2xl border border-destructive/20 relative",children:Q.jsx(aLe,{className:"size-10 text-destructive/70"})}),Q.jsxs("div",{className:"space-y-1 max-w-sm",children:[Q.jsx("h3",{className:"text-lg font-bold text-foreground tracking-tight",children:e("errors.access_denied_title","Access Denied")}),Q.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e("errors.access_denied_message","You don't have permission to access this page.")})]})]})}const imt=({className:e})=>{const{t}=fa(["theme"]),{theme:n,setTheme:a}=zw(),r=()=>{a(n==="system"?"light":n==="light"?"dark":"system")},i=()=>{switch(n){case"light":return Q.jsx(GW,{className:"h-[1.2rem] w-[1.2rem]"});case"dark":return Q.jsx($W,{className:"h-[1.2rem] w-[1.2rem]"});case"system":return Q.jsx(P4,{className:"h-[1.2rem] w-[1.2rem]"});default:return Q.jsx(P4,{className:"h-[1.2rem] w-[1.2rem]"})}},o=()=>{switch(n){case"light":return t("dark");case"dark":return t("system");case"system":return t("light");default:return t("toggle")}};return Q.jsxs(zm,{children:[Q.jsx(Um,{asChild:!0,children:Q.jsxs(Nr,{variant:"ghost",size:"icon",onClick:r,className:e,children:[i(),Q.jsx("span",{className:"sr-only",children:t("toggle")})]})}),Q.jsx(Hm,{children:o()})]})};function omt({extraPages:e=[],disabledPages:t=[]}){const n=Ur.useNavigate(),a=Ur.useLocation(),{t:r,i18n:i}=fa(["admin","settings","translation"]),{app:o}=Or(),{theme:s}=zw(),[l,u]=te.useState([]),[d,p]=te.useState(!1),m=te.useRef(!1),[A,g]=te.useState("light");te.useEffect(()=>{if(s==="system"){const x=window.matchMedia("(prefers-color-scheme: dark)").matches;g(x?"dark":"light")}else g(s)},[s]);const h=te.useMemo(()=>o?.logo?typeof o.logo=="string"?o.logo:A==="dark"?o.logo.dark:o.logo.light:N5,[o?.logo,A]),f=o?.adminTitle||o?.name,b=i.language==="fa";te.useEffect(()=>{const x=localStorage.getItem("admin_info");if(x)try{const I=JSON.parse(x).permissions||[];if(u(I),a.pathname==="/admin"||a.pathname==="/admin/")if(I.includes("analytics")&&!t.includes("analytics"))n("/admin/analytics",{replace:!0});else if(I.includes("chat_history")&&!t.includes("chat_history"))n("/admin/chat-history",{replace:!0});else if(I.includes("user_management")&&!t.includes("user_management"))n("/admin/users",{replace:!0});else if(I.includes("admin_management")&&!t.includes("admin_management"))n("/admin/admins",{replace:!0});else{const D=e.find(N=>!N.permission||I.includes(N.permission));D&&n(`/admin/${D.path}`,{replace:!0})}}catch(S){console.error("Failed to parse admin_info",S)}else console.warn("DashboardPage: No adminInfo found in localStorage")},[n,a.pathname]);const y=()=>{Rn.clearToken(),window.location.reload()},w=x=>l.includes(x),k=x=>l.includes(x)&&!t.includes(x),_=Object.keys(i.services?.resourceStore?.data||{}).filter(x=>x!=="dev"),E=_.length>0?_:["en","fa"],v=x=>{localStorage.setItem("gentiq-admin-language",x),i.changeLanguage(x),p(!1),document.activeElement instanceof HTMLElement&&document.activeElement.blur()};return Q.jsxs("div",{className:"min-h-screen bg-background overflow-hidden flex flex-col",dir:b?"rtl":"ltr",children:[Q.jsx("header",{className:"glass border-b border-border sticky top-0 z-50",children:Q.jsx("div",{className:"px-8",children:Q.jsxs("div",{className:"flex flex-col md:flex-row md:items-stretch justify-between min-h-[72px] gap-y-4",children:[Q.jsxs("div",{className:"flex flex-col md:flex-row md:items-stretch gap-x-12",children:[Q.jsxs("div",{className:"flex items-center gap-3 py-4 md:py-0",children:[Q.jsx("img",{src:h,alt:f,className:"size-8 object-contain"}),Q.jsx("h1",{className:"text-2xl font-black bg-gradient-to-l from-primary to-primary/60 bg-clip-text text-transparent",children:f})]}),Q.jsxs("nav",{className:"flex items-stretch gap-8",children:[!t.includes("analytics")&&Q.jsx("button",{onClick:()=>n("/admin/analytics"),className:`flex items-center text-base font-medium transition-all border-b-2 px-1 ${a.pathname==="/admin/analytics"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"}`,children:r("dashboard.tabs.analytics")}),!t.includes("chat_history")&&Q.jsx("button",{onClick:()=>n("/admin/chat-history"),className:`flex items-center text-base font-medium transition-all border-b-2 px-1 ${a.pathname==="/admin/chat-history"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"}`,children:r("dashboard.tabs.chat_history")}),!t.includes("user_management")&&Q.jsx("button",{onClick:()=>n("/admin/users"),className:`flex items-center text-base font-medium transition-all border-b-2 px-1 ${a.pathname==="/admin/users"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"}`,children:r("dashboard.tabs.users")}),!t.includes("admin_management")&&Q.jsx("button",{onClick:()=>n("/admin/admins"),className:`flex items-center text-base font-medium transition-all border-b-2 px-1 ${a.pathname==="/admin/admins"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"}`,children:r("dashboard.tabs.admins")}),e.map(x=>Q.jsx("button",{onClick:()=>n(`/admin/${x.path}`),className:`flex items-center text-base font-medium transition-all border-b-2 px-1 ${a.pathname===`/admin/${x.path}`?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"}`,children:typeof x.label=="string"?r(x.label):x.label},`tab-${x.path}`))]})]}),Q.jsxs("div",{className:"flex items-center gap-1.5 py-4 md:py-0",children:[Q.jsxs(wme,{onOpenChange:x=>{x?p(!1):(m.current=!0,setTimeout(()=>{m.current=!1},200))},children:[Q.jsxs(zm,{open:d,onOpenChange:x=>{x&&m.current||p(x)},children:[Q.jsx(Um,{asChild:!0,children:Q.jsx(kme,{asChild:!0,children:Q.jsx(Nr,{variant:"ghost",size:"icon",className:"font-bold text-xs text-muted-foreground hover:bg-muted",onPointerDown:()=>p(!1),children:(i.language?.split("-")[0]||"").toUpperCase()})})}),Q.jsx(Hm,{side:"bottom",className:"text-xs",children:r("dashboard.language","Change Language")})]}),Q.jsx(vme,{align:"center",className:"min-w-[8rem]",children:E.map(x=>Q.jsx(dk,{onClick:()=>v(x),className:x===i.language?"bg-primary/10":"",children:r(`general.languages.${x}`,x.toUpperCase())},x))})]}),Q.jsx(imt,{className:"size-9 !bg-transparent hover:bg-muted text-muted-foreground"}),Q.jsx("div",{className:"w-px h-5 bg-border mx-1"}),Q.jsxs(zm,{children:[Q.jsx(Um,{asChild:!0,children:Q.jsx(Nr,{variant:"ghost",size:"icon",className:"hover:bg-destructive/10 hover:scale-105 active:scale-95 text-muted-foreground hover:text-destructive",onClick:y,children:Q.jsx(PW,{className:"size-5"})})}),Q.jsx(Hm,{side:"bottom",className:"text-xs",children:r("dashboard.logout")})]})]})]})})}),Q.jsx("main",{className:"flex-1 overflow-hidden relative",children:Q.jsx("div",{className:"absolute inset-0 overflow-hidden",children:Q.jsxs(Ur.Routes,{children:[Q.jsx(Ur.Route,{path:"/",element:Q.jsx(Ur.Navigate,{to:"/admin/analytics",replace:!0})}),Q.jsx(Ur.Route,{path:"/analytics",element:k("analytics")?Q.jsx(rmt,{}):Q.jsx(pk,{})}),Q.jsx(Ur.Route,{path:"/chat-history",element:k("chat_history")?Q.jsx(Vpt,{}):Q.jsx(pk,{})}),Q.jsx(Ur.Route,{path:"/admins",element:k("admin_management")?Q.jsx(Jpt,{}):Q.jsx(pk,{})}),Q.jsx(Ur.Route,{path:"/users",element:k("user_management")?Q.jsx(amt,{}):Q.jsx(pk,{})}),e.map(x=>Q.jsx(Ur.Route,{path:`/${x.path}`,element:x.permission&&!w(x.permission)?Q.jsx(pk,{}):x.element},`route-${x.path}`)),Q.jsx(Ur.Route,{path:"*",element:Q.jsx(Ur.Navigate,{to:"/admin/analytics",replace:!0})})]})})})]})}function smt(e){const t=te.useMemo(()=>{const n=Hi.createInstance();return n.use(r5).use(rW).init({resources:i5,fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],lookupLocalStorage:"gentiq-admin-language",caches:["localStorage"]}}),n},[]);return Q.jsx(cW,{i18n:t,children:Q.jsx(cmt,{...e})})}function cmt({extraPages:e,disabledPages:t=[]}){const{app:n,i18n:a}=Or(),{t:r,i18n:i}=fa(["admin","translation"]),[o,s]=te.useState(!1),[l,u]=te.useState(!0),[d,p]=te.useState(!1);te.useEffect(()=>{a?.resources&&Object.entries(a.resources).forEach(([g,h])=>{Object.entries(h).forEach(([f,b])=>{i.addResourceBundle(g,f,b,!0,!0)})}),!localStorage.getItem("gentiq-admin-language")&&n?.language&&i.language!==n.language&&i.changeLanguage(n.language),p(!0)},[a?.resources,i,n?.language]),te.useEffect(()=>{const A=Rn.getToken();return s(!!A),u(!1),document.body.classList.add("admin-theme-root"),()=>{document.body.classList.remove("admin-theme-root")}},[]),te.useEffect(()=>{d&&(document.documentElement.dir=i.language==="fa"?"rtl":"ltr",document.documentElement.lang=i.language)},[d,i.language]);const m=()=>{s(!0)};return l||!d?Q.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:Q.jsx("div",{className:"text-muted-foreground",children:r("loading")})}):Q.jsx(Ele,{storageKey:"gentiq-admin-theme",children:o?Q.jsx(omt,{extraPages:e,disabledPages:t}):Q.jsx(Zpt,{onLoginSuccess:m})})}function lmt({children:e}){const[t,n]=te.useState(null),a=Ur.useLocation(),r=Ur.useNavigate(),i=fu();return te.useEffect(()=>{(async()=>{const s=new URLSearchParams(a.search),l=s.get("token");if(l)try{Kt.setToken(l),await Kt.getBalance(),s.delete("token");const d=s.toString(),p=a.pathname+(d?`?${d}`:"");r(p,{replace:!0}),n(!0);return}catch(d){console.error("Error validating token from URL:",d),n(!1);return}if(!Kt.getToken()){n(!1);return}try{await Kt.getBalance(),n(!0)}catch(d){console.error("Token validation failed:",d),d.status===401?(Kt.clearToken(),i.clear(),n(!1)):n(!0)}})()},[a.search,r,a.pathname,i]),t===null?Q.jsx("div",{className:"flex h-screen w-full items-center justify-center",children:Q.jsx("div",{className:"size-8 rounded-full border-4 border-primary border-t-transparent animate-spin"})}):t?Q.jsx(Q.Fragment,{children:e}):Q.jsx(Ur.Navigate,{to:"/login",replace:!0})}function umt(){const{t:e,i18n:t}=fa(["login","translation"]),{app:n}=Or(),a=t.dir()==="rtl",r=a?"text-right":"text-left",i=Ur.useNavigate(),o=fu(),[s,l]=te.useState("login"),[u,d]=te.useState(""),[p,m]=te.useState(""),[A,g]=te.useState(""),[h,f]=te.useState(""),[b,y]=te.useState(""),[w,k]=te.useState(""),_=te.useMemo(()=>n?.userMetadataFields?.filter(B=>B.showInSignup)||[],[n?.userMetadataFields]),[E,v]=te.useState(()=>{const B={};return _.forEach(T=>{T.defaultValue!==void 0&&(B[T.key]=T.defaultValue)}),B});te.useEffect(()=>{const B={...E};let T=!1;_.forEach(F=>{F.condition&&!hf(F.condition,E)&&B[F.key]!==void 0&&(delete B[F.key],T=!0)}),T&&v(B)},[E,_]);const[x,S]=te.useState(""),[I,D]=te.useState(!1),N=async B=>{B.preventDefault(),S(""),D(!0);try{await Kt.login(u,p),o.clear(),i("/")}catch(T){S(uh(T,e))}finally{D(!1)}},R=async B=>{B.preventDefault(),S(""),D(!0);try{await Kt.register(A,h,b,w,E),o.clear(),i("/")}catch(T){S(uh(T,e))}finally{D(!1)}};return Q.jsx("div",{className:"min-h-screen bg-background flex flex-col items-center justify-center p-4",dir:t.dir(),children:Q.jsxs("div",{className:"w-full max-w-md bg-card border border-border rounded-xl shadow-lg p-6",children:[Q.jsx("div",{className:"text-center mb-6",children:Q.jsx("h1",{className:"text-2xl font-bold bg-gradient-to-r from-primary to-primary/60 bg-clip-text text-transparent",children:n?.name})}),Q.jsxs("div",{className:"flex bg-muted p-1 rounded-lg mb-6",children:[Q.jsx("button",{type:"button",onClick:()=>{l("login"),S("")},className:`flex-1 py-2 text-sm font-medium rounded-md transition-all ${s==="login"?"bg-background shadow-sm text-foreground":"text-muted-foreground hover:text-foreground"}`,children:e("login_tab","Login")}),Q.jsx("button",{type:"button",onClick:()=>{l("register"),S("")},className:`flex-1 py-2 text-sm font-medium rounded-md transition-all ${s==="register"?"bg-background shadow-sm text-foreground":"text-muted-foreground hover:text-foreground"}`,children:e("signup_tab","Sign Up")})]}),s==="login"&&Q.jsxs("form",{onSubmit:N,className:"space-y-4",children:[Q.jsxs("div",{className:"space-y-3",children:[Q.jsx(Kr,{htmlFor:"login-phone",children:e("phone","Phone")}),Q.jsx(rs,{id:"login-phone",type:"tel",value:u,onChange:B=>d(B.target.value),required:!0,className:"text-left",placeholder:e("phone_placeholder","Phone number"),dir:"ltr"})]}),Q.jsxs("div",{className:"space-y-3",children:[Q.jsx(Kr,{htmlFor:"login-pass",children:e("password","Password")}),Q.jsx(rs,{id:"login-pass",type:"password",value:p,onChange:B=>m(B.target.value),required:!0,className:"text-left",placeholder:"••••••••",dir:"ltr"})]}),x&&Q.jsx("div",{className:"text-sm text-destructive",children:x}),Q.jsx(Nr,{type:"submit",disabled:I,className:"w-full font-semibold",children:I?e("logging_in","Logging in..."):e("login_button","Login")})]}),s==="register"&&Q.jsxs("form",{onSubmit:R,className:"space-y-4",children:[Q.jsxs("div",{className:"space-y-3",children:[Q.jsx(Kr,{htmlFor:"reg-phone",children:e("phone","Phone")}),Q.jsx(rs,{id:"reg-phone",type:"tel",value:A,onChange:B=>g(B.target.value),required:!0,className:"text-left",placeholder:e("phone_placeholder","Phone number"),dir:"ltr"})]}),Q.jsxs("div",{className:"space-y-3",children:[Q.jsx(Kr,{htmlFor:"reg-pass",children:e("password","Password")}),Q.jsx(rs,{id:"reg-pass",type:"password",value:h,onChange:B=>f(B.target.value),required:!0,className:"text-left",placeholder:"••••••••",dir:"ltr"})]}),Q.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[Q.jsxs("div",{className:"space-y-3",children:[Q.jsx(Kr,{htmlFor:"reg-name",children:e("name","Name")}),Q.jsx(rs,{id:"reg-name",type:"text",value:b,onChange:B=>y(B.target.value),required:!0,className:r,placeholder:e("name_placeholder","First Name")})]}),Q.jsxs("div",{className:"space-y-3",children:[Q.jsx(Kr,{htmlFor:"reg-surname",children:e("surname","Surname")}),Q.jsx(rs,{id:"reg-surname",type:"text",value:w,onChange:B=>k(B.target.value),required:!0,className:r,placeholder:e("surname_placeholder","Last Name")})]})]}),_.map(B=>hf(B.condition,E)?Q.jsxs("div",{className:"space-y-3 animate-in fade-in slide-in-from-top-1 duration-200",children:[Q.jsx(Kr,{htmlFor:`signup-${B.key}`,children:e(B.label)}),B.type==="select"?Q.jsxs(tk,{value:String(E[B.key]||""),onValueChange:T=>v({...E,[B.key]:T}),required:B.required,dir:a?"rtl":"ltr",children:[Q.jsx(ak,{className:yt("bg-background",r),children:Q.jsx(nk,{placeholder:e(B.placeholder||"login.select_placeholder")})}),Q.jsx(rk,{className:"rounded-xl",children:B.options?.map(T=>Q.jsx(gf,{value:String(T.value),children:e(T.label)},String(T.value)))})]}):B.type==="checkbox"?Q.jsxs("div",{className:"flex items-center gap-2 py-2",children:[Q.jsx(Fme,{id:`signup-${B.key}`,checked:!!E[B.key],onCheckedChange:T=>v({...E,[B.key]:!!T}),required:B.required}),Q.jsx("label",{htmlFor:`signup-${B.key}`,className:"text-sm text-muted-foreground cursor-pointer select-none",children:e(B.placeholder||B.label)})]}):Q.jsx(rs,{id:`signup-${B.key}`,type:B.type,value:E[B.key]||"",onChange:T=>v({...E,[B.key]:T.target.value}),required:B.required,className:r,placeholder:e(B.placeholder||"")})]},B.key):null),x&&Q.jsx("div",{className:"text-sm text-destructive",children:x}),Q.jsx(Nr,{type:"submit",disabled:I,className:"w-full font-semibold",children:I?e("signing_up","Signing up..."):e("signup_button","Sign Up")})]})]})})}function dmt(){const{shareId:e}=Ur.useParams(),[t,n]=te.useState(null),[a,r]=te.useState(!0),[i,o]=te.useState(null),{MessageList:s}=Or(),l=te.useRef(new Set);return te.useEffect(()=>()=>{l.current.forEach(u=>URL.revokeObjectURL(u)),l.current.clear()},[]),te.useEffect(()=>{if(!e)return;(async()=>{try{r(!0);const d=await Kt.getSharedThread(e);d.items&&(d.items=await Promise.all(d.items.map(async p=>{if(!p.parts)return p;const m=await Promise.all(p.parts.map(async A=>{if(A.type==="file"&&A.object_name&&!A.url)try{const g=await Kt.getPublicAttachmentBlobUrl(A.object_name);return l.current.add(g),{...A,url:g}}catch(g){console.error("Failed to resolve shared attachment:",A.object_name,g)}return A}));return{...p,parts:m}}))),n(d)}catch(d){console.error("Failed to fetch shared chat:",d),o(d.message||"Failed to load shared chat")}finally{r(!1)}})()},[e]),a?Q.jsx("div",{className:"flex h-dvh items-center justify-center",children:Q.jsx(f1,{})}):i||!t?Q.jsxs("div",{className:"flex h-dvh flex-col items-center justify-center p-4 text-center",children:[Q.jsx("h1",{className:"text-2xl font-bold text-destructive mb-2 font-display",children:"Shared Chat Not Found"}),Q.jsx("p",{className:"text-muted-foreground max-w-md",children:i||"This shared conversation might have been deleted or the link is invalid."})]}):Q.jsxs("div",{className:"relative flex flex-col h-dvh overflow-hidden bg-background",children:[Q.jsx(Lpe,{hideActions:!0}),Q.jsx("div",{className:"flex-1 min-h-0 overflow-hidden relative flex flex-col",children:Q.jsx(s,{messages:t.items||[],status:"ready",isLoadingHistory:!1,error:null,conversationId:t.id,regen:()=>{},onSuggestionClick:()=>{},className:"pb-8",readonly:!0})})]})}function pmt(){return Q.jsx(dmt,{})}const Lu="gentiq_admin";function mmt(e=0,t=100,n=""){return Rm({queryKey:[Lu,"users",e,t,n],queryFn:()=>Rn.listUsers(e,t,n)})}function Amt(){const e=fu(),t=()=>{e.invalidateQueries({queryKey:[Lu,"users"]})},n=bu({mutationFn:s=>Rn.createUser(s.phone,s.name,s.surname,s.tokens,s.requests),onSuccess:t}),a=bu({mutationFn:({userId:s,data:l})=>Rn.updateUser(s,l),onSuccess:t}),r=bu({mutationFn:s=>Rn.deleteUser(s),onSuccess:t}),i=bu({mutationFn:({userId:s,tokens:l,requests:u})=>Rn.updateUserBalance(s,l,u),onSuccess:t}),o=bu({mutationFn:s=>Rn.refreshUserToken(s)});return{createUser:n,updateUser:a,deleteUser:r,updateBalance:i,refreshToken:o}}function gmt(e=30){return Rm({queryKey:[Lu,"analytics",e],queryFn:()=>Rn.getAnalytics(e)})}function hmt(){return Rm({queryKey:[Lu,"admins"],queryFn:()=>Rn.listAdmins()})}function fmt(){const e=fu(),t=()=>{e.invalidateQueries({queryKey:[Lu,"admins"]})},n=bu({mutationFn:i=>Rn.register(i.username,i.password,i.name,i.permissions),onSuccess:t}),a=bu({mutationFn:({adminId:i,data:o})=>Rn.updateAdmin(i,o),onSuccess:t}),r=bu({mutationFn:i=>Rn.deleteAdmin(i),onSuccess:t});return{createAdmin:n,updateAdmin:a,deleteAdmin:r}}function bmt(e=0,t=50,n,a){return Rm({queryKey:[Lu,"threads",e,t,n,a],queryFn:()=>Rn.listThreads(e,t,n,a)})}function ymt(e){return Rm({queryKey:[Lu,"threadItems",e],queryFn:()=>Rn.getThreadItems(e),enabled:!!e})}function wmt(e=20,t){return Rm({queryKey:[Lu,"jobs",e,t],queryFn:()=>Rn.listJobs(e,t),refetchInterval:5e3})}function kmt(){const e=fu();return{cancelJob:bu({mutationFn:a=>Rn.cancelJob(a),onSuccess:()=>{e.invalidateQueries({queryKey:[Lu,"jobs"]})}})}}function vmt(){return{login:async(e,t)=>Rn.login(e,t),logout:()=>Rn.clearToken(),getToken:()=>Rn.getToken(),isAuthenticated:!!Rn.getToken()}}var Zx={exports:{}},_mt=Zx.exports,Lme;function Cmt(){return Lme||(Lme=1,(function(e,t){(function(n,a){e.exports=a()})(_mt,(function(){var n=1e3,a=6e4,r=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",d="week",p="month",m="quarter",A="year",g="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var T=["th","st","nd","rd"],F=B%100;return"["+B+(T[(F-20)%10]||T[F]||T[0])+"]"}},w=function(B,T,F){var L=String(B);return!L||L.length>=T?B:""+Array(T+1-L.length).join(F)+B},k={s:w,z:function(B){var T=-B.utcOffset(),F=Math.abs(T),L=Math.floor(F/60),M=F%60;return(T<=0?"+":"-")+w(L,2,"0")+":"+w(M,2,"0")},m:function B(T,F){if(T.date()<F.date())return-B(F,T);var L=12*(F.year()-T.year())+(F.month()-T.month()),M=T.clone().add(L,p),P=F-M<0,O=T.clone().add(L+(P?-1:1),p);return+(-(L+(F-M)/(P?M-O:O-M))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:p,y:A,w:d,d:u,D:g,h:l,m:s,s:o,ms:i,Q:m}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},_="en",E={};E[_]=y;var v="$isDayjsObject",x=function(B){return B instanceof N||!(!B||!B[v])},S=function B(T,F,L){var M;if(!T)return _;if(typeof T=="string"){var P=T.toLowerCase();E[P]&&(M=P),F&&(E[P]=F,M=P);var O=T.split("-");if(!M&&O.length>1)return B(O[0])}else{var $=T.name;E[$]=T,M=$}return!L&&M&&(_=M),M||!L&&_},I=function(B,T){if(x(B))return B.clone();var F=typeof T=="object"?T:{};return F.date=B,F.args=arguments,new N(F)},D=k;D.l=S,D.i=x,D.w=function(B,T){return I(B,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var N=(function(){function B(F){this.$L=S(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[v]=!0}var T=B.prototype;return T.parse=function(F){this.$d=(function(L){var M=L.date,P=L.utc;if(M===null)return new Date(NaN);if(D.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var O=M.match(f);if(O){var $=O[2]-1||0,q=(O[7]||"0").substring(0,3);return P?new Date(Date.UTC(O[1],$,O[3]||1,O[4]||0,O[5]||0,O[6]||0,q)):new Date(O[1],$,O[3]||1,O[4]||0,O[5]||0,O[6]||0,q)}}return new Date(M)})(F),this.init()},T.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},T.$utils=function(){return D},T.isValid=function(){return this.$d.toString()!==h},T.isSame=function(F,L){var M=I(F);return this.startOf(L)<=M&&M<=this.endOf(L)},T.isAfter=function(F,L){return I(F)<this.startOf(L)},T.isBefore=function(F,L){return this.endOf(L)<I(F)},T.$g=function(F,L,M){return D.u(F)?this[L]:this.set(M,F)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(F,L){var M=this,P=!!D.u(L)||L,O=D.p(F),$=function(V,X){var ee=D.w(M.$u?Date.UTC(M.$y,X,V):new Date(M.$y,X,V),M);return P?ee:ee.endOf(u)},q=function(V,X){return D.w(M.toDate()[V].apply(M.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(X)),M)},j=this.$W,K=this.$M,U=this.$D,W="set"+(this.$u?"UTC":"");switch(O){case A:return P?$(1,0):$(31,11);case p:return P?$(1,K):$(0,K+1);case d:var Y=this.$locale().weekStart||0,ae=(j<Y?j+7:j)-Y;return $(P?U-ae:U+(6-ae),K);case u:case g:return q(W+"Hours",0);case l:return q(W+"Minutes",1);case s:return q(W+"Seconds",2);case o:return q(W+"Milliseconds",3);default:return this.clone()}},T.endOf=function(F){return this.startOf(F,!1)},T.$set=function(F,L){var M,P=D.p(F),O="set"+(this.$u?"UTC":""),$=(M={},M[u]=O+"Date",M[g]=O+"Date",M[p]=O+"Month",M[A]=O+"FullYear",M[l]=O+"Hours",M[s]=O+"Minutes",M[o]=O+"Seconds",M[i]=O+"Milliseconds",M)[P],q=P===u?this.$D+(L-this.$W):L;if(P===p||P===A){var j=this.clone().set(g,1);j.$d[$](q),j.init(),this.$d=j.set(g,Math.min(this.$D,j.daysInMonth())).$d}else $&&this.$d[$](q);return this.init(),this},T.set=function(F,L){return this.clone().$set(F,L)},T.get=function(F){return this[D.p(F)]()},T.add=function(F,L){var M,P=this;F=Number(F);var O=D.p(L),$=function(K){var U=I(P);return D.w(U.date(U.date()+Math.round(K*F)),P)};if(O===p)return this.set(p,this.$M+F);if(O===A)return this.set(A,this.$y+F);if(O===u)return $(1);if(O===d)return $(7);var q=(M={},M[s]=a,M[l]=r,M[o]=n,M)[O]||1,j=this.$d.getTime()+F*q;return D.w(j,this)},T.subtract=function(F,L){return this.add(-1*F,L)},T.format=function(F){var L=this,M=this.$locale();if(!this.isValid())return M.invalidDate||h;var P=F||"YYYY-MM-DDTHH:mm:ssZ",O=D.z(this),$=this.$H,q=this.$m,j=this.$M,K=M.weekdays,U=M.months,W=M.meridiem,Y=function(X,ee,J,pe){return X&&(X[ee]||X(L,P))||J[ee].slice(0,pe)},ae=function(X){return D.s($%12||12,X,"0")},V=W||function(X,ee,J){var pe=X<12?"AM":"PM";return J?pe.toLowerCase():pe};return P.replace(b,(function(X,ee){return ee||(function(J){switch(J){case"YY":return String(L.$y).slice(-2);case"YYYY":return D.s(L.$y,4,"0");case"M":return j+1;case"MM":return D.s(j+1,2,"0");case"MMM":return Y(M.monthsShort,j,U,3);case"MMMM":return Y(U,j);case"D":return L.$D;case"DD":return D.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Y(M.weekdaysMin,L.$W,K,2);case"ddd":return Y(M.weekdaysShort,L.$W,K,3);case"dddd":return K[L.$W];case"H":return String($);case"HH":return D.s($,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return V($,q,!0);case"A":return V($,q,!1);case"m":return String(q);case"mm":return D.s(q,2,"0");case"s":return String(L.$s);case"ss":return D.s(L.$s,2,"0");case"SSS":return D.s(L.$ms,3,"0");case"Z":return O}return null})(X)||O.replace(":","")}))},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(F,L,M){var P,O=this,$=D.p(L),q=I(F),j=(q.utcOffset()-this.utcOffset())*a,K=this-q,U=function(){return D.m(O,q)};switch($){case A:P=U()/12;break;case p:P=U();break;case m:P=U()/3;break;case d:P=(K-j)/6048e5;break;case u:P=(K-j)/864e5;break;case l:P=K/r;break;case s:P=K/a;break;case o:P=K/n;break;default:P=K}return M?P:D.a(P)},T.daysInMonth=function(){return this.endOf(p).$D},T.$locale=function(){return E[this.$L]},T.locale=function(F,L){if(!F)return this.$L;var M=this.clone(),P=S(F,L,!0);return P&&(M.$L=P),M},T.clone=function(){return D.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},B})(),R=N.prototype;return I.prototype=R,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",p],["$y",A],["$D",g]].forEach((function(B){R[B[1]]=function(T){return this.$g(T,B[0],B[1])}})),I.extend=function(B,T){return B.$i||(B(T,N,I),B.$i=!0),I},I.locale=S,I.isDayjs=x,I.unix=function(B){return I(1e3*B)},I.en=E[_],I.Ls=E,I.p={},I}))})(Zx)),Zx.exports}var Emt=Cmt();const mi=Zs(Emt);var Rme=Object.defineProperty,C=(e,t)=>Rme(e,"name",{value:t,configurable:!0}),Vx=(e,t)=>{for(var n in t)Rme(e,n,{get:t[n],enumerable:!0})},Ru={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},oe={trace:C((...e)=>{},"trace"),debug:C((...e)=>{},"debug"),info:C((...e)=>{},"info"),warn:C((...e)=>{},"warn"),error:C((...e)=>{},"error"),fatal:C((...e)=>{},"fatal")},J5=C(function(e="fatal"){let t=Ru.fatal;typeof e=="string"?e.toLowerCase()in Ru&&(t=Ru[e]):typeof e=="number"&&(t=e),oe.trace=()=>{},oe.debug=()=>{},oe.info=()=>{},oe.warn=()=>{},oe.error=()=>{},oe.fatal=()=>{},t<=Ru.fatal&&(oe.fatal=console.error?console.error.bind(console,sc("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",sc("FATAL"))),t<=Ru.error&&(oe.error=console.error?console.error.bind(console,sc("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",sc("ERROR"))),t<=Ru.warn&&(oe.warn=console.warn?console.warn.bind(console,sc("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",sc("WARN"))),t<=Ru.info&&(oe.info=console.info?console.info.bind(console,sc("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",sc("INFO"))),t<=Ru.debug&&(oe.debug=console.debug?console.debug.bind(console,sc("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",sc("DEBUG"))),t<=Ru.trace&&(oe.trace=console.debug?console.debug.bind(console,sc("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",sc("TRACE")))},"setLogLevel"),sc=C(e=>`%c${mi().format("ss.SSS")} : ${e} : `,"format");const Jx={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},a)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;switch(a){case"r":return Jx.hue2rgb(i,r,e+1/3)*255;case"g":return Jx.hue2rgb(i,r,e)*255;case"b":return Jx.hue2rgb(i,r,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},a)=>{e/=255,t/=255,n/=255;const r=Math.max(e,t,n),i=Math.min(e,t,n),o=(r+i)/2;if(a==="l")return o*100;if(r===i)return 0;const s=r-i,l=o>.5?s/(2-r-i):s/(r+i);if(a==="s")return l*100;switch(r){case e:return((t-n)/s+(t<n?6:0))*60;case t:return((n-e)/s+2)*60;case n:return((e-t)/s+4)*60;default:return-1}}},Cn={channel:Jx,lang:{clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},unit:{dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}},kp={};for(let e=0;e<=255;e++)kp[e]=Cn.unit.dec2hex(e);const Ji={ALL:0,RGB:1,HSL:2};let xmt=class{constructor(){this.type=Ji.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Ji.ALL}is(t){return this.type===t}};class Bmt{constructor(t,n){this.color=n,this.changed=!1,this.data=t,this.type=new xmt}set(t,n){return this.color=n,this.changed=!1,this.data=t,this.type.type=Ji.ALL,this}_ensureHSL(){const t=this.data,{h:n,s:a,l:r}=t;n===void 0&&(t.h=Cn.channel.rgb2hsl(t,"h")),a===void 0&&(t.s=Cn.channel.rgb2hsl(t,"s")),r===void 0&&(t.l=Cn.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:n,g:a,b:r}=t;n===void 0&&(t.r=Cn.channel.hsl2rgb(t,"r")),a===void 0&&(t.g=Cn.channel.hsl2rgb(t,"g")),r===void 0&&(t.b=Cn.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,n=t.r;return!this.type.is(Ji.HSL)&&n!==void 0?n:(this._ensureHSL(),Cn.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,n=t.g;return!this.type.is(Ji.HSL)&&n!==void 0?n:(this._ensureHSL(),Cn.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,n=t.b;return!this.type.is(Ji.HSL)&&n!==void 0?n:(this._ensureHSL(),Cn.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,n=t.h;return!this.type.is(Ji.RGB)&&n!==void 0?n:(this._ensureRGB(),Cn.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,n=t.s;return!this.type.is(Ji.RGB)&&n!==void 0?n:(this._ensureRGB(),Cn.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,n=t.l;return!this.type.is(Ji.RGB)&&n!==void 0?n:(this._ensureRGB(),Cn.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Ji.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Ji.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Ji.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Ji.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Ji.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Ji.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Xx=new Bmt({r:0,g:0,b:0,a:0},"transparent"),ff={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(ff.re);if(!t)return;const n=t[1],a=parseInt(n,16),r=n.length,i=r%4===0,o=r>4,s=o?1:17,l=o?8:4,u=i?0:-1,d=o?255:15;return Xx.set({r:(a>>l*(u+3)&d)*s,g:(a>>l*(u+2)&d)*s,b:(a>>l*(u+1)&d)*s,a:i?(a&d)*s/255:1},e)},stringify:e=>{const{r:t,g:n,b:a,a:r}=e;return r<1?`#${kp[Math.round(t)]}${kp[Math.round(n)]}${kp[Math.round(a)]}${kp[Math.round(r*255)]}`:`#${kp[Math.round(t)]}${kp[Math.round(n)]}${kp[Math.round(a)]}`}},AA={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(AA.hueRe);if(t){const[,n,a]=t;switch(a){case"grad":return Cn.channel.clamp.h(parseFloat(n)*.9);case"rad":return Cn.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return Cn.channel.clamp.h(parseFloat(n)*360)}}return Cn.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const n=e.match(AA.re);if(!n)return;const[,a,r,i,o,s]=n;return Xx.set({h:AA._hue2deg(a),s:Cn.channel.clamp.s(parseFloat(r)),l:Cn.channel.clamp.l(parseFloat(i)),a:o?Cn.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:n,l:a,a:r}=e;return r<1?`hsla(${Cn.lang.round(t)}, ${Cn.lang.round(n)}%, ${Cn.lang.round(a)}%, ${r})`:`hsl(${Cn.lang.round(t)}, ${Cn.lang.round(n)}%, ${Cn.lang.round(a)}%)`}},mk={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=mk.colors[e];if(t)return ff.parse(t)},stringify:e=>{const t=ff.stringify(e);for(const n in mk.colors)if(mk.colors[n]===t)return n}},Ak={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const n=e.match(Ak.re);if(!n)return;const[,a,r,i,o,s,l,u,d]=n;return Xx.set({r:Cn.channel.clamp.r(r?parseFloat(a)*2.55:parseFloat(a)),g:Cn.channel.clamp.g(o?parseFloat(i)*2.55:parseFloat(i)),b:Cn.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:u?Cn.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{const{r:t,g:n,b:a,a:r}=e;return r<1?`rgba(${Cn.lang.round(t)}, ${Cn.lang.round(n)}, ${Cn.lang.round(a)}, ${Cn.lang.round(r)})`:`rgb(${Cn.lang.round(t)}, ${Cn.lang.round(n)}, ${Cn.lang.round(a)})`}},Oc={format:{keyword:mk,hex:ff,rgb:Ak,rgba:Ak,hsl:AA,hsla:AA},parse:e=>{if(typeof e!="string")return e;const t=ff.parse(e)||Ak.parse(e)||AA.parse(e)||mk.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Ji.HSL)||e.data.r===void 0?AA.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Ak.stringify(e):ff.stringify(e)},Mme=(e,t)=>{const n=Oc.parse(e);for(const a in t)n[a]=Cn.channel.clamp[a](t[a]);return Oc.stringify(n)},vp=(e,t,n=0,a=1)=>{if(typeof e!="number")return Mme(e,{a:t});const r=Xx.set({r:Cn.channel.clamp.r(e),g:Cn.channel.clamp.g(t),b:Cn.channel.clamp.b(n),a:Cn.channel.clamp.a(a)});return Oc.stringify(r)},X5=(e,t)=>Cn.lang.round(Oc.parse(e)[t]),Imt=e=>{const{r:t,g:n,b:a}=Oc.parse(e),r=.2126*Cn.channel.toLinear(t)+.7152*Cn.channel.toLinear(n)+.0722*Cn.channel.toLinear(a);return Cn.lang.round(r)},Smt=e=>Imt(e)>=.5,Mu=e=>!Smt(e),eM=(e,t,n)=>{const a=Oc.parse(e),r=a[t],i=Cn.channel.clamp[t](r+n);return r!==i&&(a[t]=i),Oc.stringify(a)},Ut=(e,t)=>eM(e,"l",t),cn=(e,t)=>eM(e,"l",-t),Ome=(e,t)=>eM(e,"a",-t),Ze=(e,t)=>{const n=Oc.parse(e),a={};for(const r in t)t[r]&&(a[r]=n[r]+t[r]);return Mme(e,a)},Dmt=(e,t,n=50)=>{const{r:a,g:r,b:i,a:o}=Oc.parse(e),{r:s,g:l,b:u,a:d}=Oc.parse(t),p=n/100,m=p*2-1,A=o-d,h=((m*A===-1?m:(m+A)/(1+m*A))+1)/2,f=1-h,b=a*h+s*f,y=r*h+l*f,w=i*h+u*f,k=o*p+d*(1-p);return vp(b,y,w,k)},$t=(e,t=100)=>{const n=Oc.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,Dmt(n,e,t)};const{entries:Pme,setPrototypeOf:$me,isFrozen:Qmt,getPrototypeOf:Tmt,getOwnPropertyDescriptor:Nmt}=Object;let{freeze:Io,seal:cc,create:eB}=Object,{apply:tM,construct:nM}=typeof Reflect<"u"&&Reflect;Io||(Io=function(t){return t}),cc||(cc=function(t){return t}),tM||(tM=function(t,n){for(var a=arguments.length,r=new Array(a>2?a-2:0),i=2;i<a;i++)r[i-2]=arguments[i];return t.apply(n,r)}),nM||(nM=function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return new t(...a)});const tB=Do(Array.prototype.forEach),Fmt=Do(Array.prototype.lastIndexOf),jme=Do(Array.prototype.pop),gk=Do(Array.prototype.push),Lmt=Do(Array.prototype.splice),nB=Do(String.prototype.toLowerCase),aM=Do(String.prototype.toString),rM=Do(String.prototype.match),hk=Do(String.prototype.replace),Rmt=Do(String.prototype.indexOf),Mmt=Do(String.prototype.trim),Ts=Do(Object.prototype.hasOwnProperty),So=Do(RegExp.prototype.test),fk=Omt(TypeError);function Do(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return tM(e,t,a)}}function Omt(e){return function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return nM(e,n)}}function zn(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nB;$me&&$me(e,null);let a=t.length;for(;a--;){let r=t[a];if(typeof r=="string"){const i=n(r);i!==r&&(Qmt(t)||(t[a]=i),r=i)}e[r]=!0}return e}function Pmt(e){for(let t=0;t<e.length;t++)Ts(e,t)||(e[t]=null);return e}function Ol(e){const t=eB(null);for(const[n,a]of Pme(e))Ts(e,n)&&(Array.isArray(a)?t[n]=Pmt(a):a&&typeof a=="object"&&a.constructor===Object?t[n]=Ol(a):t[n]=a);return t}function bk(e,t){for(;e!==null;){const a=Nmt(e,t);if(a){if(a.get)return Do(a.get);if(typeof a.value=="function")return Do(a.value)}e=Tmt(e)}function n(){return null}return n}const qme=Io(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),iM=Io(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),oM=Io(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$mt=Io(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),sM=Io(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),jmt=Io(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Gme=Io(["#text"]),zme=Io(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),cM=Io(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ume=Io(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),aB=Io(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qmt=cc(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Gmt=cc(/<%[\w\W]*|[\w\W]*%>/gm),zmt=cc(/\$\{[\w\W]*/gm),Umt=cc(/^data-[\-\w.\u00B7-\uFFFF]+$/),Hmt=cc(/^aria-[\-\w]+$/),Hme=cc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ymt=cc(/^(?:\w+script|data):/i),Wmt=cc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yme=cc(/^html$/i),Kmt=cc(/^[a-z][.\w]*(-[.\w]+)+$/i);var Wme=Object.freeze({__proto__:null,ARIA_ATTR:Hmt,ATTR_WHITESPACE:Wmt,CUSTOM_ELEMENT:Kmt,DATA_ATTR:Umt,DOCTYPE_NAME:Yme,ERB_EXPR:Gmt,IS_ALLOWED_URI:Hme,IS_SCRIPT_OR_DATA:Ymt,MUSTACHE_EXPR:qmt,TMPLIT_EXPR:zmt});const yk={element:1,text:3,progressingInstruction:7,comment:8,document:9},Zmt=function(){return typeof window>"u"?null:window},Vmt=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(a=n.getAttribute(r));const i="dompurify"+(a?"#"+a:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Kme=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Zme(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zmt();const t=lt=>Zme(lt);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==yk.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const a=n,r=a.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:m,trustedTypes:A}=e,g=l.prototype,h=bk(g,"cloneNode"),f=bk(g,"remove"),b=bk(g,"nextSibling"),y=bk(g,"childNodes"),w=bk(g,"parentNode");if(typeof o=="function"){const lt=n.createElement("template");lt.content&&lt.content.ownerDocument&&(n=lt.content.ownerDocument)}let k,_="";const{implementation:E,createNodeIterator:v,createDocumentFragment:x,getElementsByTagName:S}=n,{importNode:I}=a;let D=Kme();t.isSupported=typeof Pme=="function"&&typeof w=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:N,ERB_EXPR:R,TMPLIT_EXPR:B,DATA_ATTR:T,ARIA_ATTR:F,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:P}=Wme;let{IS_ALLOWED_URI:O}=Wme,$=null;const q=zn({},[...qme,...iM,...oM,...sM,...Gme]);let j=null;const K=zn({},[...zme,...cM,...Ume,...aB]);let U=Object.seal(eB(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,Y=null;const ae=Object.seal(eB(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let V=!0,X=!0,ee=!1,J=!0,pe=!1,ue=!0,Te=!1,Le=!1,qe=!1,Ee=!1,De=!1,Ue=!1,ye=!0,et=!1;const Be="user-content-";let He=!0,Je=!1,he={},_e=null;const $e=zn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const je=zn({},["audio","video","img","source","image","track"]);let ne=null;const Ae=zn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),z="http://www.w3.org/1998/Math/MathML",le="http://www.w3.org/2000/svg",ce="http://www.w3.org/1999/xhtml";let be=ce,we=!1,Ie=null;const Re=zn({},[z,le,ce],aM);let ve=zn({},["mi","mo","mn","ms","mtext"]),Oe=zn({},["annotation-xml"]);const Xe=zn({},["title","style","font","a","script"]);let Ge=null;const We=["application/xhtml+xml","text/html"],me="text/html";let Ye=null,fe=null;const kt=n.createElement("form"),gt=function(Ne){return Ne instanceof RegExp||Ne instanceof Function},ut=function(){let Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(fe&&fe===Ne)){if((!Ne||typeof Ne!="object")&&(Ne={}),Ne=Ol(Ne),Ge=We.indexOf(Ne.PARSER_MEDIA_TYPE)===-1?me:Ne.PARSER_MEDIA_TYPE,Ye=Ge==="application/xhtml+xml"?aM:nB,$=Ts(Ne,"ALLOWED_TAGS")?zn({},Ne.ALLOWED_TAGS,Ye):q,j=Ts(Ne,"ALLOWED_ATTR")?zn({},Ne.ALLOWED_ATTR,Ye):K,Ie=Ts(Ne,"ALLOWED_NAMESPACES")?zn({},Ne.ALLOWED_NAMESPACES,aM):Re,ne=Ts(Ne,"ADD_URI_SAFE_ATTR")?zn(Ol(Ae),Ne.ADD_URI_SAFE_ATTR,Ye):Ae,de=Ts(Ne,"ADD_DATA_URI_TAGS")?zn(Ol(je),Ne.ADD_DATA_URI_TAGS,Ye):je,_e=Ts(Ne,"FORBID_CONTENTS")?zn({},Ne.FORBID_CONTENTS,Ye):$e,W=Ts(Ne,"FORBID_TAGS")?zn({},Ne.FORBID_TAGS,Ye):Ol({}),Y=Ts(Ne,"FORBID_ATTR")?zn({},Ne.FORBID_ATTR,Ye):Ol({}),he=Ts(Ne,"USE_PROFILES")?Ne.USE_PROFILES:!1,V=Ne.ALLOW_ARIA_ATTR!==!1,X=Ne.ALLOW_DATA_ATTR!==!1,ee=Ne.ALLOW_UNKNOWN_PROTOCOLS||!1,J=Ne.ALLOW_SELF_CLOSE_IN_ATTR!==!1,pe=Ne.SAFE_FOR_TEMPLATES||!1,ue=Ne.SAFE_FOR_XML!==!1,Te=Ne.WHOLE_DOCUMENT||!1,Ee=Ne.RETURN_DOM||!1,De=Ne.RETURN_DOM_FRAGMENT||!1,Ue=Ne.RETURN_TRUSTED_TYPE||!1,qe=Ne.FORCE_BODY||!1,ye=Ne.SANITIZE_DOM!==!1,et=Ne.SANITIZE_NAMED_PROPS||!1,He=Ne.KEEP_CONTENT!==!1,Je=Ne.IN_PLACE||!1,O=Ne.ALLOWED_URI_REGEXP||Hme,be=Ne.NAMESPACE||ce,ve=Ne.MATHML_TEXT_INTEGRATION_POINTS||ve,Oe=Ne.HTML_INTEGRATION_POINTS||Oe,U=Ne.CUSTOM_ELEMENT_HANDLING||{},Ne.CUSTOM_ELEMENT_HANDLING&&gt(Ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=Ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ne.CUSTOM_ELEMENT_HANDLING&&gt(Ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=Ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ne.CUSTOM_ELEMENT_HANDLING&&typeof Ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(U.allowCustomizedBuiltInElements=Ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),pe&&(X=!1),De&&(Ee=!0),he&&($=zn({},Gme),j=eB(null),he.html===!0&&(zn($,qme),zn(j,zme)),he.svg===!0&&(zn($,iM),zn(j,cM),zn(j,aB)),he.svgFilters===!0&&(zn($,oM),zn(j,cM),zn(j,aB)),he.mathMl===!0&&(zn($,sM),zn(j,Ume),zn(j,aB))),Ts(Ne,"ADD_TAGS")||(ae.tagCheck=null),Ts(Ne,"ADD_ATTR")||(ae.attributeCheck=null),Ne.ADD_TAGS&&(typeof Ne.ADD_TAGS=="function"?ae.tagCheck=Ne.ADD_TAGS:($===q&&($=Ol($)),zn($,Ne.ADD_TAGS,Ye))),Ne.ADD_ATTR&&(typeof Ne.ADD_ATTR=="function"?ae.attributeCheck=Ne.ADD_ATTR:(j===K&&(j=Ol(j)),zn(j,Ne.ADD_ATTR,Ye))),Ne.ADD_URI_SAFE_ATTR&&zn(ne,Ne.ADD_URI_SAFE_ATTR,Ye),Ne.FORBID_CONTENTS&&(_e===$e&&(_e=Ol(_e)),zn(_e,Ne.FORBID_CONTENTS,Ye)),Ne.ADD_FORBID_CONTENTS&&(_e===$e&&(_e=Ol(_e)),zn(_e,Ne.ADD_FORBID_CONTENTS,Ye)),He&&($["#text"]=!0),Te&&zn($,["html","head","body"]),$.table&&(zn($,["tbody"]),delete W.tbody),Ne.TRUSTED_TYPES_POLICY){if(typeof Ne.TRUSTED_TYPES_POLICY.createHTML!="function")throw fk('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ne.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fk('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=Ne.TRUSTED_TYPES_POLICY,_=k.createHTML("")}else k===void 0&&(k=Vmt(A,r)),k!==null&&typeof _=="string"&&(_=k.createHTML(""));Io&&Io(Ne),fe=Ne}},St=zn({},[...iM,...oM,...$mt]),dt=zn({},[...sM,...jmt]),ot=function(Ne){let st=w(Ne);(!st||!st.tagName)&&(st={namespaceURI:be,tagName:"template"});const Ct=nB(Ne.tagName),Wt=nB(st.tagName);return Ie[Ne.namespaceURI]?Ne.namespaceURI===le?st.namespaceURI===ce?Ct==="svg":st.namespaceURI===z?Ct==="svg"&&(Wt==="annotation-xml"||ve[Wt]):!!St[Ct]:Ne.namespaceURI===z?st.namespaceURI===ce?Ct==="math":st.namespaceURI===le?Ct==="math"&&Oe[Wt]:!!dt[Ct]:Ne.namespaceURI===ce?st.namespaceURI===le&&!Oe[Wt]||st.namespaceURI===z&&!ve[Wt]?!1:!dt[Ct]&&(Xe[Ct]||!St[Ct]):!!(Ge==="application/xhtml+xml"&&Ie[Ne.namespaceURI]):!1},se=function(Ne){gk(t.removed,{element:Ne});try{w(Ne).removeChild(Ne)}catch{f(Ne)}},ft=function(Ne,st){try{gk(t.removed,{attribute:st.getAttributeNode(Ne),from:st})}catch{gk(t.removed,{attribute:null,from:st})}if(st.removeAttribute(Ne),Ne==="is")if(Ee||De)try{se(st)}catch{}else try{st.setAttribute(Ne,"")}catch{}},At=function(Ne){let st=null,Ct=null;if(qe)Ne="<remove></remove>"+Ne;else{const Ea=rM(Ne,/^[\r\n\t ]+/);Ct=Ea&&Ea[0]}Ge==="application/xhtml+xml"&&be===ce&&(Ne='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ne+"</body></html>");const Wt=k?k.createHTML(Ne):Ne;if(be===ce)try{st=new m().parseFromString(Wt,Ge)}catch{}if(!st||!st.documentElement){st=E.createDocument(be,"template",null);try{st.documentElement.innerHTML=we?_:Wt}catch{}}const Mn=st.body||st.documentElement;return Ne&&Ct&&Mn.insertBefore(n.createTextNode(Ct),Mn.childNodes[0]||null),be===ce?S.call(st,Te?"html":"body")[0]:Te?st.documentElement:Mn},pt=function(Ne){return v.call(Ne.ownerDocument||Ne,Ne,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},ke=function(Ne){return Ne instanceof p&&(typeof Ne.nodeName!="string"||typeof Ne.textContent!="string"||typeof Ne.removeChild!="function"||!(Ne.attributes instanceof d)||typeof Ne.removeAttribute!="function"||typeof Ne.setAttribute!="function"||typeof Ne.namespaceURI!="string"||typeof Ne.insertBefore!="function"||typeof Ne.hasChildNodes!="function")},it=function(Ne){return typeof s=="function"&&Ne instanceof s};function rt(lt,Ne,st){tB(lt,Ct=>{Ct.call(t,Ne,st,fe)})}const Dt=function(Ne){let st=null;if(rt(D.beforeSanitizeElements,Ne,null),ke(Ne))return se(Ne),!0;const Ct=Ye(Ne.nodeName);if(rt(D.uponSanitizeElement,Ne,{tagName:Ct,allowedTags:$}),ue&&Ne.hasChildNodes()&&!it(Ne.firstElementChild)&&So(/<[/\w!]/g,Ne.innerHTML)&&So(/<[/\w!]/g,Ne.textContent)||Ne.nodeType===yk.progressingInstruction||ue&&Ne.nodeType===yk.comment&&So(/<[/\w]/g,Ne.data))return se(Ne),!0;if(!(ae.tagCheck instanceof Function&&ae.tagCheck(Ct))&&(!$[Ct]||W[Ct])){if(!W[Ct]&&Rt(Ct)&&(U.tagNameCheck instanceof RegExp&&So(U.tagNameCheck,Ct)||U.tagNameCheck instanceof Function&&U.tagNameCheck(Ct)))return!1;if(He&&!_e[Ct]){const Wt=w(Ne)||Ne.parentNode,Mn=y(Ne)||Ne.childNodes;if(Mn&&Wt){const Ea=Mn.length;for(let ha=Ea-1;ha>=0;--ha){const Ei=h(Mn[ha],!0);Ei.__removalCount=(Ne.__removalCount||0)+1,Wt.insertBefore(Ei,b(Ne))}}}return se(Ne),!0}return Ne instanceof l&&!ot(Ne)||(Ct==="noscript"||Ct==="noembed"||Ct==="noframes")&&So(/<\/no(script|embed|frames)/i,Ne.innerHTML)?(se(Ne),!0):(pe&&Ne.nodeType===yk.text&&(st=Ne.textContent,tB([N,R,B],Wt=>{st=hk(st,Wt," ")}),Ne.textContent!==st&&(gk(t.removed,{element:Ne.cloneNode()}),Ne.textContent=st)),rt(D.afterSanitizeElements,Ne,null),!1)},Gt=function(Ne,st,Ct){if(Y[st]||ye&&(st==="id"||st==="name")&&(Ct in n||Ct in kt))return!1;if(!(X&&!Y[st]&&So(T,st))){if(!(V&&So(F,st))){if(!(ae.attributeCheck instanceof Function&&ae.attributeCheck(st,Ne))){if(!j[st]||Y[st]){if(!(Rt(Ne)&&(U.tagNameCheck instanceof RegExp&&So(U.tagNameCheck,Ne)||U.tagNameCheck instanceof Function&&U.tagNameCheck(Ne))&&(U.attributeNameCheck instanceof RegExp&&So(U.attributeNameCheck,st)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(st,Ne))||st==="is"&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&So(U.tagNameCheck,Ct)||U.tagNameCheck instanceof Function&&U.tagNameCheck(Ct))))return!1}else if(!ne[st]){if(!So(O,hk(Ct,M,""))){if(!((st==="src"||st==="xlink:href"||st==="href")&&Ne!=="script"&&Rmt(Ct,"data:")===0&&de[Ne])){if(!(ee&&!So(L,hk(Ct,M,"")))){if(Ct)return!1}}}}}}}return!0},Rt=function(Ne){return Ne!=="annotation-xml"&&rM(Ne,P)},tn=function(Ne){rt(D.beforeSanitizeAttributes,Ne,null);const{attributes:st}=Ne;if(!st||ke(Ne))return;const Ct={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let Wt=st.length;for(;Wt--;){const Mn=st[Wt],{name:Ea,namespaceURI:ha,value:Ei}=Mn,Ui=Ye(Ea),go=Ei;let na=Ea==="value"?go:Mmt(go);if(Ct.attrName=Ui,Ct.attrValue=na,Ct.keepAttr=!0,Ct.forceKeepAttr=void 0,rt(D.uponSanitizeAttribute,Ne,Ct),na=Ct.attrValue,et&&(Ui==="id"||Ui==="name")&&(ft(Ea,Ne),na=Be+na),ue&&So(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,na)){ft(Ea,Ne);continue}if(Ui==="attributename"&&rM(na,"href")){ft(Ea,Ne);continue}if(Ct.forceKeepAttr)continue;if(!Ct.keepAttr){ft(Ea,Ne);continue}if(!J&&So(/\/>/i,na)){ft(Ea,Ne);continue}pe&&tB([N,R,B],Et=>{na=hk(na,Et," ")});const Ot=Ye(Ne.nodeName);if(!Gt(Ot,Ui,na)){ft(Ea,Ne);continue}if(k&&typeof A=="object"&&typeof A.getAttributeType=="function"&&!ha)switch(A.getAttributeType(Ot,Ui)){case"TrustedHTML":{na=k.createHTML(na);break}case"TrustedScriptURL":{na=k.createScriptURL(na);break}}if(na!==go)try{ha?Ne.setAttributeNS(ha,Ea,na):Ne.setAttribute(Ea,na),ke(Ne)?se(Ne):jme(t.removed)}catch{ft(Ea,Ne)}}rt(D.afterSanitizeAttributes,Ne,null)},vn=function lt(Ne){let st=null;const Ct=pt(Ne);for(rt(D.beforeSanitizeShadowDOM,Ne,null);st=Ct.nextNode();)rt(D.uponSanitizeShadowNode,st,null),Dt(st),tn(st),st.content instanceof i&&lt(st.content);rt(D.afterSanitizeShadowDOM,Ne,null)};return t.sanitize=function(lt){let Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=null,Ct=null,Wt=null,Mn=null;if(we=!lt,we&&(lt="<!-->"),typeof lt!="string"&&!it(lt))if(typeof lt.toString=="function"){if(lt=lt.toString(),typeof lt!="string")throw fk("dirty is not a string, aborting")}else throw fk("toString is not a function");if(!t.isSupported)return lt;if(Le||ut(Ne),t.removed=[],typeof lt=="string"&&(Je=!1),Je){if(lt.nodeName){const Ei=Ye(lt.nodeName);if(!$[Ei]||W[Ei])throw fk("root node is forbidden and cannot be sanitized in-place")}}else if(lt instanceof s)st=At("<!---->"),Ct=st.ownerDocument.importNode(lt,!0),Ct.nodeType===yk.element&&Ct.nodeName==="BODY"||Ct.nodeName==="HTML"?st=Ct:st.appendChild(Ct);else{if(!Ee&&!pe&&!Te&&lt.indexOf("<")===-1)return k&&Ue?k.createHTML(lt):lt;if(st=At(lt),!st)return Ee?null:Ue?_:""}st&&qe&&se(st.firstChild);const Ea=pt(Je?lt:st);for(;Wt=Ea.nextNode();)Dt(Wt),tn(Wt),Wt.content instanceof i&&vn(Wt.content);if(Je)return lt;if(Ee){if(De)for(Mn=x.call(st.ownerDocument);st.firstChild;)Mn.appendChild(st.firstChild);else Mn=st;return(j.shadowroot||j.shadowrootmode)&&(Mn=I.call(a,Mn,!0)),Mn}let ha=Te?st.outerHTML:st.innerHTML;return Te&&$["!doctype"]&&st.ownerDocument&&st.ownerDocument.doctype&&st.ownerDocument.doctype.name&&So(Yme,st.ownerDocument.doctype.name)&&(ha="<!DOCTYPE "+st.ownerDocument.doctype.name+`>
479
+ `)}})}};var Glt=Rct(()=>Qde(rc([nr({type:Pn("text-start"),id:gn(),providerMetadata:kr.optional()}),nr({type:Pn("text-delta"),id:gn(),delta:gn(),providerMetadata:kr.optional()}),nr({type:Pn("text-end"),id:gn(),providerMetadata:kr.optional()}),nr({type:Pn("error"),errorText:gn()}),nr({type:Pn("tool-input-start"),toolCallId:gn(),toolName:gn(),providerExecuted:as().optional(),dynamic:as().optional()}),nr({type:Pn("tool-input-delta"),toolCallId:gn(),inputTextDelta:gn()}),nr({type:Pn("tool-input-available"),toolCallId:gn(),toolName:gn(),input:Rl(),providerExecuted:as().optional(),providerMetadata:kr.optional(),dynamic:as().optional()}),nr({type:Pn("tool-input-error"),toolCallId:gn(),toolName:gn(),input:Rl(),providerExecuted:as().optional(),providerMetadata:kr.optional(),dynamic:as().optional(),errorText:gn()}),nr({type:Pn("tool-output-available"),toolCallId:gn(),output:Rl(),providerExecuted:as().optional(),dynamic:as().optional(),preliminary:as().optional()}),nr({type:Pn("tool-output-error"),toolCallId:gn(),errorText:gn(),providerExecuted:as().optional(),dynamic:as().optional()}),nr({type:Pn("reasoning-start"),id:gn(),providerMetadata:kr.optional()}),nr({type:Pn("reasoning-delta"),id:gn(),delta:gn(),providerMetadata:kr.optional()}),nr({type:Pn("reasoning-end"),id:gn(),providerMetadata:kr.optional()}),nr({type:Pn("source-url"),sourceId:gn(),url:gn(),title:gn().optional(),providerMetadata:kr.optional()}),nr({type:Pn("source-document"),sourceId:gn(),mediaType:gn(),title:gn(),filename:gn().optional(),providerMetadata:kr.optional()}),nr({type:Pn("file"),url:gn(),mediaType:gn(),providerMetadata:kr.optional()}),nr({type:wde(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:gn().optional(),data:Rl(),transient:as().optional()}),nr({type:Pn("start-step")}),nr({type:Pn("finish-step")}),nr({type:Pn("start"),messageId:gn().optional(),messageMetadata:Rl().optional()}),nr({type:Pn("finish"),finishReason:Ade(["stop","length","content-filter","tool-calls","error","other","unknown"]).optional(),messageMetadata:Rl().optional()}),nr({type:Pn("abort")}),nr({type:Pn("message-metadata"),messageMetadata:Rl()})])));function zlt(e){return e.type.startsWith("data-")}function $de(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;const n={...e};for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){const r=t[a];if(r===void 0)continue;const i=a in e?e[a]:void 0,o=r!==null&&typeof r=="object"&&!Array.isArray(r)&&!(r instanceof Date)&&!(r instanceof RegExp),s=i!=null&&typeof i=="object"&&!Array.isArray(i)&&!(i instanceof Date)&&!(i instanceof RegExp);o&&s?n[a]=$de(i,r):n[a]=r}return n}function Ult(e){const t=["ROOT"];let n=-1,a=null;function r(l,u,d){switch(l){case'"':{n=u,t.pop(),t.push(d),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{n=u,a=u,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=u,t.pop(),t.push(d),t.push("INSIDE_NUMBER");break}case"{":{n=u,t.pop(),t.push(d),t.push("INSIDE_OBJECT_START");break}case"[":{n=u,t.pop(),t.push(d),t.push("INSIDE_ARRAY_START");break}}}function i(l,u){switch(l){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{n=u,t.pop();break}}}function o(l,u){switch(l){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=u,t.pop();break}}}for(let l=0;l<e.length;l++){const u=e[l];switch(t[t.length-1]){case"ROOT":r(u,l,"FINISH");break;case"INSIDE_OBJECT_START":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{n=l,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{u===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{r(u,l,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{i(u,l);break}case"INSIDE_STRING":{switch(u){case'"':{t.pop(),n=l;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:n=l}break}case"INSIDE_ARRAY_START":{u==="]"?(n=l,t.pop()):(n=l,r(u,l,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(u){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=l,t.pop();break}default:{n=l;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{r(u,l,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),n=l;break}case"INSIDE_NUMBER":{switch(u){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=l;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&o(u,l),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&i(u,l);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&i(u,l);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&o(u,l);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const p=e.substring(a,l+1);!"false".startsWith(p)&&!"true".startsWith(p)&&!"null".startsWith(p)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?i(u,l):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&o(u,l)):n=l;break}}}let s=e.slice(0,n+1);for(let l=t.length-1;l>=0;l--)switch(t[l]){case"INSIDE_STRING":{s+='"';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":{s+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{s+="]";break}case"INSIDE_LITERAL":{const d=e.substring(a,e.length);"true".startsWith(d)?s+="true".slice(d.length):"false".startsWith(d)?s+="false".slice(d.length):"null".startsWith(d)&&(s+="null".slice(d.length))}}return s}async function jde(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await Fx({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await Fx({text:Ult(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}function Rx(e){return e.type.startsWith("tool-")}function Hlt(e){return e.type==="dynamic-tool"}function qde(e){return Rx(e)||Hlt(e)}function Gde(e){return e.type.split("-").slice(1).join("-")}function Ylt({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function Wlt({stream:e,messageMetadataSchema:t,dataPartSchemas:n,runUpdateMessageJob:a,onError:r,onToolCall:i,onData:o}){return e.pipeThrough(new TransformStream({async transform(s,l){await a(async({state:u,write:d})=>{var p,m,A,g;function h(k){const E=u.message.parts.filter(Rx).find(v=>v.toolCallId===k);if(E==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return E}function f(k){const E=u.message.parts.filter(v=>v.type==="dynamic-tool").find(v=>v.toolCallId===k);if(E==null)throw new Error("tool-output-error must be preceded by a tool-input-available");return E}function b(k){var _;const E=u.message.parts.find(S=>Rx(S)&&S.toolCallId===k.toolCallId),v=k,x=E;E!=null?(E.state=k.state,x.input=v.input,x.output=v.output,x.errorText=v.errorText,x.rawInput=v.rawInput,x.preliminary=v.preliminary,x.providerExecuted=(_=v.providerExecuted)!=null?_:E.providerExecuted,v.providerMetadata!=null&&E.state==="input-available"&&(E.callProviderMetadata=v.providerMetadata)):u.message.parts.push({type:`tool-${k.toolName}`,toolCallId:k.toolCallId,state:k.state,input:v.input,output:v.output,rawInput:v.rawInput,errorText:v.errorText,providerExecuted:v.providerExecuted,preliminary:v.preliminary,...v.providerMetadata!=null?{callProviderMetadata:v.providerMetadata}:{}})}function y(k){var _,E;const v=u.message.parts.find(I=>I.type==="dynamic-tool"&&I.toolCallId===k.toolCallId),x=k,S=v;v!=null?(v.state=k.state,S.toolName=k.toolName,S.input=x.input,S.output=x.output,S.errorText=x.errorText,S.rawInput=(_=x.rawInput)!=null?_:S.rawInput,S.preliminary=x.preliminary,S.providerExecuted=(E=x.providerExecuted)!=null?E:v.providerExecuted,x.providerMetadata!=null&&v.state==="input-available"&&(v.callProviderMetadata=x.providerMetadata)):u.message.parts.push({type:"dynamic-tool",toolName:k.toolName,toolCallId:k.toolCallId,state:k.state,input:x.input,output:x.output,errorText:x.errorText,preliminary:x.preliminary,providerExecuted:x.providerExecuted,...x.providerMetadata!=null?{callProviderMetadata:x.providerMetadata}:{}})}async function w(k){if(k!=null){const _=u.message.metadata!=null?$de(u.message.metadata,k):k;t!=null&&await Cde({value:_,schema:t}),u.message.metadata=_}}switch(s.type){case"text-start":{const k={type:"text",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeTextParts[s.id]=k,u.message.parts.push(k),d();break}case"text-delta":{const k=u.activeTextParts[s.id];k.text+=s.delta,k.providerMetadata=(p=s.providerMetadata)!=null?p:k.providerMetadata,d();break}case"text-end":{const k=u.activeTextParts[s.id];k.state="done",k.providerMetadata=(m=s.providerMetadata)!=null?m:k.providerMetadata,delete u.activeTextParts[s.id],d();break}case"reasoning-start":{const k={type:"reasoning",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeReasoningParts[s.id]=k,u.message.parts.push(k),d();break}case"reasoning-delta":{const k=u.activeReasoningParts[s.id];k.text+=s.delta,k.providerMetadata=(A=s.providerMetadata)!=null?A:k.providerMetadata,d();break}case"reasoning-end":{const k=u.activeReasoningParts[s.id];k.providerMetadata=(g=s.providerMetadata)!=null?g:k.providerMetadata,k.state="done",delete u.activeReasoningParts[s.id],d();break}case"file":{u.message.parts.push({type:"file",mediaType:s.mediaType,url:s.url}),d();break}case"source-url":{u.message.parts.push({type:"source-url",sourceId:s.sourceId,url:s.url,title:s.title,providerMetadata:s.providerMetadata}),d();break}case"source-document":{u.message.parts.push({type:"source-document",sourceId:s.sourceId,mediaType:s.mediaType,title:s.title,filename:s.filename,providerMetadata:s.providerMetadata}),d();break}case"tool-input-start":{const k=u.message.parts.filter(Rx);u.partialToolCalls[s.toolCallId]={text:"",toolName:s.toolName,index:k.length,dynamic:s.dynamic},s.dynamic?y({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted}):b({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted}),d();break}case"tool-input-delta":{const k=u.partialToolCalls[s.toolCallId];k.text+=s.inputTextDelta;const{value:_}=await jde(k.text);k.dynamic?y({toolCallId:s.toolCallId,toolName:k.toolName,state:"input-streaming",input:_}):b({toolCallId:s.toolCallId,toolName:k.toolName,state:"input-streaming",input:_}),d();break}case"tool-input-available":{s.dynamic?y({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}):b({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}),d(),i&&!s.providerExecuted&&await i({toolCall:s});break}case"tool-input-error":{s.dynamic?y({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}):b({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:void 0,rawInput:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}),d();break}case"tool-output-available":{if(s.dynamic){const k=f(s.toolCallId);y({toolCallId:s.toolCallId,toolName:k.toolName,state:"output-available",input:k.input,output:s.output,preliminary:s.preliminary})}else{const k=h(s.toolCallId);b({toolCallId:s.toolCallId,toolName:Gde(k),state:"output-available",input:k.input,output:s.output,providerExecuted:s.providerExecuted,preliminary:s.preliminary})}d();break}case"tool-output-error":{if(s.dynamic){const k=f(s.toolCallId);y({toolCallId:s.toolCallId,toolName:k.toolName,state:"output-error",input:k.input,errorText:s.errorText,providerExecuted:s.providerExecuted})}else{const k=h(s.toolCallId);b({toolCallId:s.toolCallId,toolName:Gde(k),state:"output-error",input:k.input,rawInput:k.rawInput,errorText:s.errorText,providerExecuted:s.providerExecuted})}d();break}case"start-step":{u.message.parts.push({type:"step-start"});break}case"finish-step":{u.activeTextParts={},u.activeReasoningParts={};break}case"start":{s.messageId!=null&&(u.message.id=s.messageId),await w(s.messageMetadata),(s.messageId!=null||s.messageMetadata!=null)&&d();break}case"finish":{s.finishReason!=null&&(u.finishReason=s.finishReason),await w(s.messageMetadata),s.messageMetadata!=null&&d();break}case"message-metadata":{await w(s.messageMetadata),s.messageMetadata!=null&&d();break}case"error":{r?.(new Error(s.errorText));break}default:if(zlt(s)){n?.[s.type]!=null&&await Cde({value:s.data,schema:n[s.type]});const k=s;if(k.transient){o?.(k);break}const _=k.id!=null?u.message.parts.find(E=>k.type===E.type&&k.id===E.id):void 0;_!=null?_.data=k.data:u.message.parts.push(k),o?.(k),d()}}l.enqueue(s)})}}))}async function Klt({stream:e,onError:t}){const n=e.getReader();try{for(;;){const{done:a}=await n.read();if(a)break}}catch(a){t?.(a)}finally{n.releaseLock()}}Kw({prefix:"aitxt",size:24}),Kw({prefix:"aiobj",size:24});var Zlt=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,n)=>{this.queue.push(async()=>{try{await e(),t()}catch(a){n(a)}}),this.processQueue()})}};Kw({prefix:"aiobj",size:24});var Vlt={};Nlt(Vlt,{object:()=>Xlt,text:()=>Jlt});var Jlt=()=>({type:"text",responseFormat:{type:"text"},async parsePartial({text:e}){return{partial:e}},async parseOutput({text:e}){return e}}),Xlt=({schema:e})=>{const t=Qlt(e);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},async parsePartial({text:n}){const a=await jde(n);switch(a.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:a.value};default:{const r=a.state;throw new Error(`Unsupported parse state: ${r}`)}}},async parseOutput({text:n},a){const r=await Fx({text:n});if(!r.success)throw new Lde({message:"No object generated: could not parse the response.",cause:r.error,text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});const i=await k5({value:r.value,schema:t});if(!i.success)throw new Lde({message:"No object generated: response did not match schema.",cause:i.error,text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});return i.value}}};async function eut(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{const{name:n,type:a}=t,r=await new Promise((i,o)=>{const s=new FileReader;s.onload=l=>{var u;i((u=l.target)==null?void 0:u.result)},s.onerror=l=>o(l),s.readAsDataURL(t)});return{type:"file",mediaType:a,filename:n,url:r}}))}var tut=class{constructor({api:e="/api/chat",credentials:t,headers:n,body:a,fetch:r,prepareSendMessagesRequest:i,prepareReconnectToStreamRequest:o}){this.api=e,this.credentials=t,this.headers=n,this.body=a,this.fetch=r,this.prepareSendMessagesRequest=i,this.prepareReconnectToStreamRequest=o}async sendMessages({abortSignal:e,...t}){var n,a,r,i,o;const s=await df(this.body),l=await df(this.headers),u=await df(this.credentials),d={...uf(l),...uf(t.headers)},p=await((n=this.prepareSendMessagesRequest)==null?void 0:n.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:d,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),m=(a=p?.api)!=null?a:this.api,A=p?.headers!==void 0?uf(p.headers):d,g=p?.body!==void 0?p.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},h=(r=p?.credentials)!=null?r:u,b=await((i=this.fetch)!=null?i:globalThis.fetch)(m,{method:"POST",headers:{"Content-Type":"application/json",...A},body:JSON.stringify(g),credentials:h,signal:e});if(!b.ok)throw new Error((o=await b.text())!=null?o:"Failed to fetch the chat response.");if(!b.body)throw new Error("The response body is empty.");return this.processResponseStream(b.body)}async reconnectToStream(e){var t,n,a,r,i;const o=await df(this.body),s=await df(this.headers),l=await df(this.credentials),u={...uf(s),...uf(e.headers)},d=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...o,...e.body},headers:u,credentials:l,requestMetadata:e.metadata})),p=(n=d?.api)!=null?n:`${this.api}/${e.chatId}/stream`,m=d?.headers!==void 0?uf(d.headers):u,A=(a=d?.credentials)!=null?a:l,h=await((r=this.fetch)!=null?r:globalThis.fetch)(p,{method:"GET",headers:m,credentials:A});if(h.status===204)return null;if(!h.ok)throw new Error((i=await h.text())!=null?i:"Failed to fetch the chat response.");if(!h.body)throw new Error("The response body is empty.");return this.processResponseStream(h.body)}},zde=class extends tut{constructor(e={}){super(e)}processResponseStream(e){return Pct({stream:e,schema:Glt}).pipeThrough(new TransformStream({async transform(t,n){if(!t.success)throw t.error;n.enqueue(t.value)}}))}},nut=class{constructor({generateId:e=Sct,id:t=e(),transport:n=new zde,messageMetadataSchema:a,dataPartSchemas:r,state:i,onError:o,onToolCall:s,onFinish:l,onData:u,sendAutomaticallyWhen:d}){this.activeResponse=void 0,this.jobExecutor=new Zlt,this.sendMessage=async(p,m)=>{var A,g,h,f;if(p==null){await this.makeRequest({trigger:"submit-message",messageId:(A=this.lastMessage)==null?void 0:A.id,...m});return}let b;if("text"in p||"files"in p?b={parts:[...Array.isArray(p.files)?p.files:await eut(p.files),..."text"in p&&p.text!=null?[{type:"text",text:p.text}]:[]]}:b=p,p.messageId!=null){const y=this.state.messages.findIndex(w=>w.id===p.messageId);if(y===-1)throw new Error(`message with id ${p.messageId} not found`);if(this.state.messages[y].role!=="user")throw new Error(`message with id ${p.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,y+1),this.state.replaceMessage(y,{...b,id:p.messageId,role:(g=b.role)!=null?g:"user",metadata:p.metadata})}else this.state.pushMessage({...b,id:(h=b.id)!=null?h:this.generateId(),role:(f=b.role)!=null?f:"user",metadata:p.metadata});await this.makeRequest({trigger:"submit-message",messageId:p.messageId,...m})},this.regenerate=async({messageId:p,...m}={})=>{const A=p==null?this.state.messages.length-1:this.state.messages.findIndex(g=>g.id===p);if(A===-1)throw new Error(`message ${p} not found`);this.state.messages=this.state.messages.slice(0,this.messages[A].role==="assistant"?A:A+1),await this.makeRequest({trigger:"regenerate-message",messageId:p,...m})},this.resumeStream=async(p={})=>{await this.makeRequest({trigger:"resume-stream",...p})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolOutput=async({state:p="output-available",tool:m,toolCallId:A,output:g,errorText:h})=>this.jobExecutor.run(async()=>{var f,b;const y=this.state.messages,w=y[y.length-1];this.state.replaceMessage(y.length-1,{...w,parts:w.parts.map(k=>qde(k)&&k.toolCallId===A?{...k,state:p,output:g,errorText:h}:k)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(k=>qde(k)&&k.toolCallId===A?{...k,state:p,output:g,errorText:h}:k)),this.status!=="streaming"&&this.status!=="submitted"&&((f=this.sendAutomaticallyWhen)!=null&&f.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:(b=this.lastMessage)==null?void 0:b.id})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var p;this.status!=="streaming"&&this.status!=="submitted"||(p=this.activeResponse)!=null&&p.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=n,this.generateId=e,this.messageMetadataSchema=a,this.dataPartSchemas=r,this.state=i,this.onError=o,this.onToolCall=s,this.onFinish=l,this.onData=u,this.sendAutomaticallyWhen=d}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async makeRequest({trigger:e,metadata:t,headers:n,body:a,messageId:r}){var i,o,s,l;this.setStatus({status:"submitted",error:void 0});const u=this.lastMessage;let d=!1,p=!1,m=!1;try{const A={state:Ylt({lastMessage:this.state.snapshot(u),messageId:this.generateId()}),abortController:new AbortController};A.abortController.signal.addEventListener("abort",()=>{d=!0}),this.activeResponse=A;let g;if(e==="resume-stream"){const f=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:n,body:a});if(f==null){this.setStatus({status:"ready"});return}g=f}else g=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:A.abortController.signal,metadata:t,headers:n,body:a,trigger:e,messageId:r});const h=f=>this.jobExecutor.run(()=>f({state:A.state,write:()=>{var b;this.setStatus({status:"streaming"}),A.state.message.id===((b=this.lastMessage)==null?void 0:b.id)?this.state.replaceMessage(this.state.messages.length-1,A.state.message):this.state.pushMessage(A.state.message)}}));await Klt({stream:Wlt({stream:g,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:h,onError:f=>{throw f}}),onError:f=>{throw f}}),this.setStatus({status:"ready"})}catch(A){if(d||A.name==="AbortError")return d=!0,this.setStatus({status:"ready"}),null;m=!0,A instanceof TypeError&&(A.message.toLowerCase().includes("fetch")||A.message.toLowerCase().includes("network"))&&(p=!0),this.onError&&A instanceof Error&&this.onError(A),this.setStatus({status:"error",error:A})}finally{try{(o=this.onFinish)==null||o.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:d,isDisconnect:p,isError:m,finishReason:(i=this.activeResponse)==null?void 0:i.state.finishReason})}catch(A){console.error(A)}this.activeResponse=void 0}(s=this.sendAutomaticallyWhen)!=null&&s.call(this,{messages:this.state.messages})&&!m&&await this.makeRequest({trigger:"submit-message",messageId:(l=this.lastMessage)==null?void 0:l.id,metadata:t,headers:n,body:a})}},B5,Ude;function aut(){if(Ude)return B5;Ude=1;function e(t,n){if(typeof t!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);let a,r=0;return function(...o){clearTimeout(a);const s=Date.now(),l=s-r,u=n-l;u<=0?(r=s,t.apply(this,o)):a=setTimeout(()=>{r=Date.now(),t.apply(this,o)},u)}}return B5=e,B5}var rut=aut();const iut=Zs(rut);var Hde=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Pa=(e,t,n)=>(Hde(e,t,"read from private field"),n?n.call(e):t.get(e)),Ml=(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)},fp=(e,t,n,a)=>(Hde(e,t,"write to private field"),t.set(e,n),n);function out(e,t){return t!=null?iut(e,t):e}var ic,Mx,Ox,Vw,Jw,Xw,pf,I5,S5,sut=class{constructor(e=[]){Ml(this,ic,void 0),Ml(this,Mx,"ready"),Ml(this,Ox,void 0),Ml(this,Vw,new Set),Ml(this,Jw,new Set),Ml(this,Xw,new Set),this.pushMessage=t=>{fp(this,ic,Pa(this,ic).concat(t)),Pa(this,pf).call(this)},this.popMessage=()=>{fp(this,ic,Pa(this,ic).slice(0,-1)),Pa(this,pf).call(this)},this.replaceMessage=(t,n)=>{fp(this,ic,[...Pa(this,ic).slice(0,t),this.snapshot(n),...Pa(this,ic).slice(t+1)]),Pa(this,pf).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,n)=>{const a=n?out(t,n):t;return Pa(this,Vw).add(a),()=>{Pa(this,Vw).delete(a)}},this["~registerStatusCallback"]=t=>(Pa(this,Jw).add(t),()=>{Pa(this,Jw).delete(t)}),this["~registerErrorCallback"]=t=>(Pa(this,Xw).add(t),()=>{Pa(this,Xw).delete(t)}),Ml(this,pf,()=>{Pa(this,Vw).forEach(t=>t())}),Ml(this,I5,()=>{Pa(this,Jw).forEach(t=>t())}),Ml(this,S5,()=>{Pa(this,Xw).forEach(t=>t())}),fp(this,ic,e)}get status(){return Pa(this,Mx)}set status(e){fp(this,Mx,e),Pa(this,I5).call(this)}get error(){return Pa(this,Ox)}set error(e){fp(this,Ox,e),Pa(this,S5).call(this)}get messages(){return Pa(this,ic)}set messages(e){fp(this,ic,[...e]),Pa(this,pf).call(this)}};ic=new WeakMap,Mx=new WeakMap,Ox=new WeakMap,Vw=new WeakMap,Jw=new WeakMap,Xw=new WeakMap,pf=new WeakMap,I5=new WeakMap,S5=new WeakMap;var mf,Yde=class extends nut{constructor({messages:t,...n}){const a=new sut(t);super({...n,state:a}),Ml(this,mf,void 0),this["~registerMessagesCallback"]=(r,i)=>Pa(this,mf)["~registerMessagesCallback"](r,i),this["~registerStatusCallback"]=r=>Pa(this,mf)["~registerStatusCallback"](r),this["~registerErrorCallback"]=r=>Pa(this,mf)["~registerErrorCallback"](r),fp(this,mf,a)}};mf=new WeakMap;function cut({experimental_throttle:e,resume:t=!1,...n}={}){const a=te.useRef("chat"in n?n.chat:new Yde(n));("chat"in n&&n.chat!==a.current||"id"in n&&a.current.id!==n.id)&&(a.current="chat"in n?n.chat:new Yde(n));const i=te.useCallback(d=>a.current["~registerMessagesCallback"](d,e),[e,a.current.id]),o=te.useSyncExternalStore(i,()=>a.current.messages,()=>a.current.messages),s=te.useSyncExternalStore(a.current["~registerStatusCallback"],()=>a.current.status,()=>a.current.status),l=te.useSyncExternalStore(a.current["~registerErrorCallback"],()=>a.current.error,()=>a.current.error),u=te.useCallback(d=>{typeof d=="function"&&(d=d(a.current.messages)),a.current.messages=d},[a]);return te.useEffect(()=>{t&&a.current.resumeStream()},[t,a]),{id:a.current.id,messages:o,setMessages:u,sendMessage:a.current.sendMessage,regenerate:a.current.regenerate,clearError:a.current.clearError,stop:a.current.stop,error:l,resumeStream:a.current.resumeStream,status:s,addToolResult:a.current.addToolOutput,addToolOutput:a.current.addToolOutput}}function D5(){const e=Ur.useLocation(),t=Ur.useNavigate(),a=Kt.getConfig().app?.basePath||"/",r=te.useMemo(()=>{const o=e.pathname,s=o.endsWith("/")&&o!=="/"?o.slice(0,-1):o,l=a.endsWith("/")&&a!=="/"?a.slice(0,-1):a;if(s===(l||"/"))return"/";if(o.startsWith(l)&&l!=="/"){let u=o.slice(l.length);return u.startsWith("/")||(u="/"+u),u}return l==="/"?o:"/"},[e.pathname,a]),i=te.useCallback(o=>{t(M4(a,o||"/"),{replace:!1})},[t,a]);return[r,i]}const lut="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Px=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=lut[n[e]&63];return t};function Wde({onFinish:e}={}){const{t}=fa(["chat","errors"]),n=fu(),a=Kt.getConfig(),r=a.app?.cacheNamespace||"gentiq",[i,o]=D5(),[s,l]=te.useState(()=>Px()),u=te.useRef(new Set);te.useEffect(()=>{(i==="/"||s&&i!==`/${s}`)&&l(Px())},[i]);const d=te.useMemo(()=>i==="/"?s:i.replace(/^\//,""),[i,s]),p=te.useCallback(R=>(u.current.add(R),R),[]),m=te.useCallback(()=>{u.current.forEach(R=>URL.revokeObjectURL(R)),u.current.clear()},[]);te.useEffect(()=>()=>m(),[m]);const{data:A,isLoading:g,isError:h}=Rm({queryKey:[r,"threadMessages",d],queryFn:async()=>{if(i==="/")return[];if(i===`/${s}`)return[];const R=await Kt.getThreadMessages(d);return!R.items||!Array.isArray(R.items)?[]:Promise.all(R.items.map(async B=>{const T=typeof B.content=="string"?B.content:B.content?.text||JSON.stringify(B.content),L=[...Array.isArray(B.parts)&&B.parts.length>0?B.parts:[{type:"text",text:T}]].sort((P,O)=>P.type==="file"&&O.type!=="file"?-1:P.type!=="file"&&O.type==="file"?1:0),M=await Promise.all(L.map(async P=>{if(P.type==="file"&&P.object_name&&!P.url)try{const O=await Kt.getAttachmentBlobUrl(P.object_name);return{...P,url:p(O),mediaType:P.mediaType||P.media_type}}catch(O){return console.warn("Load attachment failed:",P.object_name,O),{...P,mediaType:P.mediaType||P.media_type}}return P}));return{id:B.id||Px(),role:B.role,parts:M,metadata:{feedback:B.feedback}}}))},enabled:i!=="/",staleTime:5e3}),f=te.useMemo(()=>new zde({api:Kt.getEndpoint("chat","/chat"),fetch:async(R,B)=>{const T=new Headers(B?.headers),F=Kt.getHeaders();Object.entries(F).forEach(([O,$])=>{T.set(O,$)}),T.set("X-Thread-Id",d);const L=a.api?.basePath||"/api",M=typeof R=="string"&&!R.startsWith("http")?`${L}${R.startsWith("/")?R:"/"+R}`:R,P=await fetch(M,{...B,headers:T});if(!P.ok){const O=await P.json().catch(()=>({}));if(O.error&&(O.error.code||O.error.message))throw new lW(O,P.status);const $=O.error||O.message||P.statusText;throw new Error(`${P.status}: ${$}`)}return P}}),[d,a.api?.basePath]),b=te.useCallback(()=>{k("ready"),n.invalidateQueries({queryKey:[r,"conversations"]}),e?.()},[n,e,r]),y=cut({id:d,onFinish:b,transport:f}),[w,k]=te.useState("idle"),[_,E]=te.useState(null),v=te.useCallback(()=>{E(null)},[]);te.useEffect(()=>{A&&(i===`/${s}`||(y.setMessages(A),k("ready")))},[A,y.setMessages,i,s]),te.useEffect(()=>{i==="/"&&(y.setMessages([]),k("idle"))},[i,y.setMessages]),te.useEffect(()=>{if(i==="/"){k("idle");return}const R=i===`/${s}`;g&&!R?k("loading-history"):h||_||y.error?k("error"):y.status==="streaming"||y.status==="submitted"?k(y.status):k("ready")},[g,h,y.status,_,y.error,i,s]),te.useEffect(()=>()=>{y.stop()},[d,y.stop]);const x=te.useRef(new Set),S=te.useMemo(()=>y.messages.filter(R=>R.role==="assistant"),[y.messages]);te.useEffect(()=>{let R=!1;for(const B of S){if(x.current.has(B.id))continue;const T=B.parts.find(F=>F.type==="data-title");T&&T.data?.[0]?.title&&(x.current.add(B.id),R=!0)}R&&n.invalidateQueries({queryKey:[r,"conversations"]})},[S,n,r]);const I=te.useCallback(async(R,B)=>{const T=i==="/",F=R.trim();if(!(!F&&(!B||B.length===0))&&!(w==="loading-history"||w==="streaming"||w==="submitted")){if(y.stop(),T){o(`/${d}`);const L=F||t("attach_file"),M=L.length>30?L.slice(0,30)+"...":L;n.setQueryData([r,"conversations"],P=>{const O={id:`/${d}`,firstMessage:M,timestamp:Date.now()};return P&&Array.isArray(P.pages)?{...P,pages:P.pages.map(($,q)=>q===0?{...$,threads:[O,...$.threads||[]]}:$)}:[O,...Array.isArray(P)?P:[]]})}k("submitted"),E(null);try{await y.sendMessage({text:F,files:B})}catch(L){console.error("Failed to send message:",L);const M=uh(L,t);E(new Error(M)),k("error")}}},[y,o,i,d,t,n,w,r]),D=te.useCallback(()=>{y.stop(),k("ready"),n.invalidateQueries({queryKey:[r,"conversations"]})},[y.stop,n,r]),N=te.useMemo(()=>{if(_)return _;if(y.error){const R=uh(y.error,t);return new Error(R)}return null},[_,y.error,t]);return te.useMemo(()=>({...y,sendMessage:I,stop:D,clearError:v,error:N,status:w,isLoadingHistory:w==="loading-history",isErrorHistory:w==="error"||!!N||h,conversationId:i}),[y,I,D,v,N,w,h,i])}function uut({classNames:e={},disclaimer:t}){const{t:n,i18n:a}=fa(["chat","translation"]),r=Wde(),{messages:i,status:o,regenerate:s,error:l,clearError:u,stop:d,isLoadingHistory:p,conversationId:m,sendMessage:A}=r,{MessageList:g,PromptInput:h,disclaimer:f}=Or(),b=t??f,y=a.exists("chat:disclaimer")?n("chat:disclaimer"):null,w=typeof b=="string"?n(b):b??y,[k,_]=te.useState(null),E=te.useRef(o);te.useLayoutEffect(()=>{l&&u()},[m,u,l]);const v=i[i.length-1],x=v?.role==="assistant"&&(o==="ready"||v.parts.some(I=>I.type==="data-chat-finished"));te.useEffect(()=>{o==="error"&&E.current!=="error"&&k!==m?_(m):o==="submitted"&&k!==null&&_(null),E.current=o},[o,m]);const S=o==="error"&&(m==="/"||k===m);return Q.jsxs("div",{className:yt("relative flex flex-col h-full overflow-hidden",e.container),children:[Q.jsx(g,{messages:i,status:o,isLoadingHistory:p,error:S?l:null,conversationId:m,regen:I=>s({messageId:I}),onSuggestionClick:I=>A(I),chat:r,className:yt("flex-1",e.messageList)}),Q.jsxs("div",{className:"absolute bottom-0 left-0 right-0 z-10 pointer-events-none flex flex-col items-stretch",children:[Q.jsx(h,{onSend:A,status:o,isLastMessageFinished:x,stop:d,isErrorVisible:S,conversationId:m,className:yt("pointer-events-auto",e.inputArea,w&&"pb-0 md:pb-0")}),w&&Q.jsxs("div",{className:"relative py-1 px-4 flex justify-center items-center pointer-events-auto",children:[Q.jsx("div",{className:"absolute inset-x-0 bottom-0 top-[-20px] bg-background/80 backdrop-blur-sm [mask-image:linear-gradient(to_top,black_60%,transparent)] pointer-events-none -z-10"}),Q.jsx("p",{className:"text-[10px] md:text-[11px] text-muted-foreground/60 select-none text-center leading-tight",children:w})]})]})]})}const Kde=({components:e,history:t,welcome:n,threadActions:a,composer:r,theme:i,disclaimer:o,...s})=>{const l=Or(),u=te.useMemo(()=>({...l,...e,toolComponents:{...l.toolComponents,...e?.toolComponents}}),[l,e]);return Q.jsx(_le,{components:u,history:t??l.history,welcome:n??l.welcome,threadActions:a??l.threadActions,composer:r??l.composer,theme:i??l.theme,disclaimer:o??l.disclaimer,children:Q.jsx(uut,{...s})})},Q5=768;function dut(){const[e,t]=re.useState(void 0);return re.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Q5-1}px)`),a=()=>{t(window.innerWidth<Q5)};return n.addEventListener("change",a),t(window.innerWidth<Q5),()=>{n.removeEventListener("change",a)}},[]),!!e}function rs({className:e,type:t,...n}){return Q.jsx("input",{type:t,"data-slot":"input",className:yt("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}function put({...e}){return Q.jsx(aae,{"data-slot":"sheet",...e})}function mut({...e}){return Q.jsx(rae,{"data-slot":"sheet-portal",...e})}function Aut({className:e,...t}){return Q.jsx(iae,{"data-slot":"sheet-overlay",className:yt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function gut({className:e,children:t,side:n="right",...a}){return Q.jsxs(mut,{children:[Q.jsx(Aut,{}),Q.jsxs(oae,{"data-slot":"sheet-content",className:yt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...a,children:[t,Q.jsxs(lae,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[Q.jsx(jm,{className:"size-4"}),Q.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function hut({className:e,...t}){return Q.jsx("div",{"data-slot":"sheet-header",className:yt("flex flex-col gap-1.5 p-4",e),...t})}function fut({className:e,...t}){return Q.jsx(sae,{"data-slot":"sheet-title",className:yt("text-foreground font-semibold",e),...t})}function but({className:e,...t}){return Q.jsx(cae,{"data-slot":"sheet-description",className:yt("text-muted-foreground text-sm",e),...t})}const yut="sidebar_state",wut=3600*24*7,kut="19rem",vut="18rem",_ut="3rem",Cut="b",Zde=re.createContext(null);function T5(){const e=re.useContext(Zde);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Vde({defaultOpen:e=!0,open:t,onOpenChange:n,className:a,style:r,children:i,...o}){const s=dut(),[l,u]=re.useState(!1),[d,p]=re.useState(e),m=t??d,A=re.useCallback(b=>{const y=typeof b=="function"?b(m):b;n?n(y):p(y),document.cookie=`${yut}=${y}; path=/; max-age=${wut}`},[n,m]),g=re.useCallback(()=>{s?u(b=>!b):A(b=>!b)},[s,A,u]);re.useEffect(()=>{const b=y=>{y.key===Cut&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),g())};return window.addEventListener("keydown",b),()=>{window.removeEventListener("keydown",b)}},[g]);const h=m?"expanded":"collapsed",f=re.useMemo(()=>({state:h,open:m,setOpen:A,isMobile:s,openMobile:l,setOpenMobile:u,toggleSidebar:g}),[h,m,A,s,l,u,g]);return Q.jsx(Zde.Provider,{value:f,children:Q.jsx(M1,{delayDuration:0,children:Q.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":kut,"--sidebar-width-icon":_ut,...r},className:yt("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",a),...o,children:i})})})}function Eut({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:a,children:r,...i}){const{isMobile:o,state:s,openMobile:l,setOpenMobile:u}=T5();return n==="none"?Q.jsx("div",{"data-slot":"sidebar",className:yt("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),...i,children:r}):o?Q.jsx(put,{open:l,onOpenChange:u,...i,children:Q.jsxs(gut,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":vut},side:e,children:[Q.jsxs(hut,{className:"sr-only",children:[Q.jsx(fut,{children:"Sidebar"}),Q.jsx(but,{children:"Displays the mobile sidebar."})]}),Q.jsx("div",{className:"flex h-full w-full flex-col",children:r})]})}):Q.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":s,"data-collapsible":s==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[Q.jsx("div",{"data-slot":"sidebar-gap",className:yt("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),Q.jsx("div",{"data-slot":"sidebar-container",className:yt("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",a),...i,children:Q.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:r})})]})}function xut({className:e,onClick:t,...n}){const{toggleSidebar:a}=T5();return Q.jsxs(Nr,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:yt("size-7",e),onClick:r=>{t?.(r),a()},...n,children:[Q.jsx(W6e,{}),Q.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function But({className:e,...t}){return Q.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:yt("flex flex-col gap-2 p-2",e),...t})}function Iut({className:e,...t}){return Q.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:yt("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Sut({className:e,...t}){return Q.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:yt("relative flex w-full min-w-0 flex-col p-2",e),...t})}function Jde({className:e,...t}){return Q.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:yt("w-full text-sm",e),...t})}function Xde({className:e,...t}){return Q.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:yt("flex w-full min-w-0 flex-col gap-1",e),...t})}function epe({className:e,...t}){return Q.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:yt("group/menu-item relative",e),...t})}const Dut=w1("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function tpe({asChild:e=!1,isActive:t=!1,variant:n="default",size:a="default",tooltip:r,className:i,...o}){const s=e?j4:"button",{isMobile:l,state:u}=T5(),d=Q.jsx(s,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":a,"data-active":t,className:yt(Dut({variant:n,size:a}),i),...o});return r?(typeof r=="string"&&(r={children:r}),Q.jsxs(zm,{children:[Q.jsx(Um,{asChild:!0,children:d}),Q.jsx(Hm,{side:"right",align:"center",hidden:u!=="collapsed"||l,...r})]})):d}const N5="data:image/svg+xml,%3csvg%20version='1.2'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201280%201280'%20width='500'%20height='500'%3e%3cstyle%3e%20.s0%20{%20opacity:%201;fill:%20%2317535d%20}%20.s1%20{%20opacity:%20.99;fill:%20%23fab185%20}%20%3c/style%3e%3cg%20id='gentiq%20(7)'%3e%3cpath%20id='Path%201'%20fill-rule='evenodd'%20class='s0'%20d='m616.5%2012.22c19.25-0.09%2038.15%200.29%2042%200.84%203.85%200.54%2011.73%201.43%2017.5%201.98%205.77%200.55%2016.35%201.85%2023.5%202.91%207.15%201.05%2016.6%202.62%2021%203.49%204.4%200.88%209.8%202.02%2012%202.53%202.2%200.52%207.15%201.65%2011%202.5%203.85%200.86%208.58%202%2010.5%202.54%201.92%200.54%207.77%202.15%2013%203.6%205.23%201.44%2016.02%204.77%2024%207.4%207.98%202.63%2017.65%205.99%2021.5%207.48%203.85%201.48%2011.95%204.74%2018%207.24%206.05%202.5%2014.6%206.16%2019%208.14%204.4%201.98%2013.4%206.35%2020%209.72%206.6%203.36%2014.48%207.47%2017.5%209.11%203.02%201.65%2011.35%206.5%2018.5%2010.77%207.15%204.27%2018.17%2011.2%2024.49%2015.4%206.32%204.2%2012.17%208.16%2013%208.82%200.83%200.65%207.36%205.55%2014.51%2010.88%207.15%205.33%2013.23%209.97%2013.5%2010.31%200.27%200.34%202.73%202.42%205.45%204.62%202.72%202.2%205.43%204.45%206.02%205%200.59%200.55%204.89%204.35%209.55%208.45%204.67%204.1%2015.04%2014%2023.05%2022%208.02%208%2018.22%2018.6%2022.67%2023.55%204.46%204.95%2011.4%2013.07%2015.43%2018.04%204.03%204.97%2011.43%2014.42%2016.43%2021%205.01%206.58%2012.65%2017.36%2016.97%2023.96%204.33%206.6%208.56%2013.15%209.4%2014.57%200.84%201.41%204.08%206.81%207.19%2012%203.11%205.18%207.29%2012.36%209.29%2015.93%202%203.57%207.6%2014.6%2012.44%2024.5%204.84%209.9%2010.51%2022.05%2012.6%2027%202.08%204.95%204.36%2010.35%205.07%2012%200.71%201.65%202.26%205.48%203.44%208.5%201.19%203.02%204.44%2012.25%207.22%2020.5%202.79%208.25%205.42%2016.35%205.84%2018%200.43%201.65%201.72%206.15%202.87%2010%201.15%203.85%203.86%2014.43%206.03%2023.5%202.16%209.07%204.38%2019.2%204.94%2022.5%200.56%203.3%201.5%208.7%202.1%2012%200.59%203.3%201.68%2010.05%202.43%2015%200.74%204.95%201.85%2013.27%202.47%2018.5%200.61%205.23%201.56%2018.95%202.11%2030.5%200.55%2011.55%200.99%2034.61%200.99%2051.25%200%2019.16-0.37%2030.43-1%2030.75-0.55%200.27-1%202.64-1.01%205.25%200%202.61-0.43%207.45-0.96%2010.75-0.52%203.3-1.7%2011.17-2.62%2017.5-0.92%206.33-2.02%2013.52-2.44%2016-0.43%202.48-1.29%207.42-1.93%2011-0.63%203.58-2.7%2013.02-4.6%2021-1.9%207.98-3.93%2016.3-4.51%2018.5-0.58%202.2-2.41%208.5-4.05%2014-1.64%205.5-4.8%2015.4-7.01%2022-2.21%206.6-4.39%2012.9-4.85%2014-0.46%201.1-2.22%205.71-3.92%2010.25-1.71%204.54-3.44%208.24-3.85%208.22-0.41-0.02-2.55-1.5-4.75-3.29-2.2-1.8-6.25-4.85-9-6.79-2.75-1.94-9.95-6.45-16-10.03-6.05-3.58-14.83-8.34-19.5-10.57-4.67-2.23-10.64-5.01-13.25-6.18-2.61-1.16-8.91-3.51-14-5.21-5.09-1.71-10.71-3.51-12.5-4-1.79-0.5-4.94-1.38-7-1.96-2.06-0.58-6.9-1.73-10.75-2.54-3.85-0.82-9.47-1.94-12.5-2.48-3.02-0.54-10.9-1.64-17.5-2.44-6.6-0.81-18.52-1.46-26.5-1.45-7.98%200-20.13%200.68-27%201.5-6.88%200.81-13.85%201.75-15.5%202.08-1.65%200.32-7.27%201.43-12.5%202.47-5.23%201.04-12.65%202.83-16.5%203.98-3.85%201.16-9.02%202.67-11.5%203.38-2.48%200.7-9.45%203.31-15.5%205.8-6.05%202.49-14.6%206.3-19%208.46-4.4%202.17-12.05%206.39-17%209.38-4.95%203-13.5%208.66-19%2012.58-5.5%203.92-12.7%209.48-16%2012.36-3.3%202.88-8.88%207.99-12.41%2011.36-3.52%203.36-9.6%209.72-13.5%2014.12-3.9%204.4-7.32%208.23-7.59%208.5-0.27%200.27-2.09%202.52-4.04%205-1.94%202.48-4.39%205.85-5.43%207.5-1.04%201.65-2.38%203.47-2.96%204.05-0.59%200.58-3.12%204.4-5.63%208.5-2.5%204.1-5.89%209.7-7.53%2012.45-1.63%202.75-4.16%207.48-5.61%2010.5-1.45%203.02-4.03%208.42-5.73%2012-1.71%203.58-3.1%206.95-3.09%207.5%200%200.55-0.69%202.35-1.54%204-0.85%201.65-2.83%206.83-4.39%2011.5-1.56%204.67-4.24%2014.12-5.95%2021-1.71%206.87-4.01%2019.25-5.1%2027.5-1.42%2010.7-1.99%2020.73-1.99%2035%200%2014.2%200.58%2024.35%201.98%2035%201.09%208.25%203.53%2021.08%205.43%2028.5%201.9%207.42%204.63%2016.87%206.07%2021%201.44%204.12%203.03%208.4%203.54%209.5%200.5%201.1%201.87%204.47%203.03%207.5%201.16%203.03%204.23%209.78%206.82%2015%202.59%205.22%205.48%2010.62%206.42%2012%200.94%201.37%201.73%202.72%201.74%203%200.01%200.28-1.91%201.07-4.26%201.77-2.35%200.7-8.55%202.17-13.78%203.28-5.23%201.11-11.98%202.47-15%203.03-3.02%200.55-7.75%201.43-10.5%201.95-2.75%200.52-10.63%201.65-17.5%202.53-6.88%200.87-16.33%202-21%202.5-4.67%200.5-17.27%201.4-28%202.01-11.32%200.65-29.56%200.85-43.5%200.48-13.2-0.35-27.83-1.06-32.5-1.57-4.67-0.52-14.8-1.66-22.5-2.54-7.7-0.88-17.6-2.21-22-2.95-4.4-0.75-14.98-2.78-23.5-4.5-8.52-1.73-18.88-4.05-23-5.15-4.13-1.1-10.2-2.68-13.5-3.51-3.3-0.83-10.27-2.86-15.5-4.51-5.23-1.65-12.88-4.1-17-5.45-4.13-1.35-8.4-2.85-9.5-3.33-1.1-0.47-6.5-2.54-12-4.6-5.5-2.05-11.8-4.52-14-5.49-2.2-0.97-8.73-3.88-14.5-6.47-5.77-2.59-15.45-7.18-21.5-10.21-6.05-3.02-14.38-7.3-18.5-9.51-4.13-2.2-7.95-4.36-8.5-4.78-0.55-0.42-3.25-2.02-6-3.54-2.75-1.52-12.65-7.69-22-13.71-9.35-6.02-23.75-16.02-32-22.22-8.25-6.21-16.78-12.8-18.96-14.65-2.18-1.85-8.68-7.41-14.44-12.36-5.77-4.95-17.28-15.75-25.58-24-8.3-8.25-17.33-17.48-20.07-20.5-2.74-3.02-7.71-8.65-11.05-12.5-3.34-3.85-9.97-11.95-14.75-18-4.77-6.05-9.02-11.45-9.44-12-0.42-0.55-3.51-4.83-6.87-9.5-3.36-4.67-8.78-12.55-12.05-17.5-3.26-4.95-8.45-13.05-11.52-18-3.07-4.95-8.47-14.17-11.99-20.5-3.53-6.33-9.38-17.58-13-25-3.63-7.42-7.59-15.75-8.8-18.5-1.21-2.75-3.22-7.25-4.45-10-1.24-2.75-2.6-6.13-3.02-7.5-0.43-1.38-1.6-4.3-2.61-6.5-1.01-2.2-3.68-9.17-5.94-15.5-2.27-6.33-4.71-13.3-5.43-15.5-0.73-2.2-2.52-8.05-3.99-13-1.46-4.95-3.06-10.13-3.55-11.5-0.49-1.38-2.5-9.25-4.47-17.5-1.98-8.25-4.02-16.8-4.54-19-0.52-2.2-1.42-6.7-2-10-0.58-3.3-1.67-9.6-2.42-14-0.75-4.4-1.83-11.6-2.41-16-0.58-4.4-1.54-12.5-2.13-18-0.59-5.5-1.51-10.11-2.05-10.25-0.6-0.16-0.97-11.89-0.96-31%200-16.91%200.44-39.3%200.97-49.75%200.53-10.45%201.45-23.73%202.03-29.5%200.59-5.77%201.55-14.1%202.13-18.5%200.58-4.4%201.67-11.6%202.42-16%200.75-4.4%201.84-10.7%202.42-14%200.58-3.3%201.48-7.8%202-10%200.52-2.2%202.56-10.75%204.54-19%201.97-8.25%203.98-16.13%204.47-17.5%200.48-1.38%201.84-5.88%203.02-10%201.18-4.13%204.4-14.02%207.15-22%202.75-7.98%205.36-15.4%205.81-16.5%200.44-1.1%201.97-4.7%203.39-8%201.43-3.3%202.6-6.34%202.61-6.75%200.02-0.41%201.2-3.34%202.64-6.5%201.43-3.16%203.3-7.32%204.15-9.25%200.86-1.93%204.59-9.8%208.3-17.5%203.71-7.7%209.76-19.4%2013.45-26%203.68-6.6%209.22-16.05%2012.3-21%203.08-4.95%208.58-13.5%2012.22-19%203.64-5.5%207.72-11.57%209.05-13.5%201.34-1.93%204.43-6.2%206.87-9.5%202.43-3.3%207.79-10.28%2011.91-15.5%204.11-5.22%2010.67-13.1%2014.56-17.5%203.89-4.4%209.08-10.25%2011.53-13%202.44-2.75%2010.77-11.3%2018.5-19.01%207.73-7.7%2019.23-18.52%2025.55-24.04%206.32-5.51%2015.1-12.94%2019.5-16.49%204.4-3.56%2010.02-7.96%2012.5-9.77%202.48-1.82%207.43-5.45%2011-8.06%203.57-2.62%209.43-6.72%2013-9.11%203.57-2.39%208.3-5.57%2010.5-7.06%202.2-1.49%209.85-6.21%2017-10.48%207.15-4.28%2015.48-9.13%2018.5-10.78%203.02-1.66%2010.92-5.75%2017.53-9.1%206.62-3.36%2015.17-7.53%2019-9.27%203.84-1.75%2010.12-4.52%2013.97-6.17%203.85-1.66%2012.4-5.11%2019-7.67%206.6-2.56%2018.64-6.87%2026.75-9.58%208.11-2.7%2016.44-5.33%2018.5-5.85%202.06-0.52%207.12-1.9%2011.25-3.06%204.12-1.17%2010.43-2.8%2014-3.63%203.57-0.84%208.07-1.88%2010-2.32%201.93-0.45%207.1-1.54%2011.5-2.42%204.4-0.89%2010.25-2.05%2013-2.58%202.75-0.53%207.25-1.24%2010-1.57%202.75-0.34%207.25-1.02%2010-1.52%202.75-0.5%2010.4-1.45%2017-2.1%206.6-0.65%2016.95-1.48%2023-1.84%206.05-0.36%2026.75-0.72%2046-0.8zm-42.29%20288.46c-6.99%200.78-16.76%202.31-21.71%203.4-4.95%201.09-11.48%202.67-14.5%203.51-3.02%200.84-7.98%202.24-11%203.12-3.02%200.88-10.45%203.5-16.5%205.83-6.05%202.33-14.82%206-19.5%208.16-4.68%202.15-12.77%206.32-18%209.26-5.23%202.94-13.32%207.87-18%2010.95-4.68%203.09-11.2%207.62-14.5%2010.08-3.3%202.45-8.93%206.92-12.5%209.92-3.57%203.01-12.15%2011.12-19.05%2018.03-6.9%206.91-15.61%2016.38-19.34%2021.06-3.73%204.68-10.49%2014.13-15.01%2021-4.53%206.88-9.98%2015.65-12.11%2019.5-2.13%203.85-5.64%2010.6-7.79%2015-2.15%204.4-5.5%2011.82-7.43%2016.5-1.94%204.68-4.38%2011.2-5.43%2014.5-1.06%203.3-3.22%2010.5-4.81%2016-1.59%205.5-3.42%2012.7-4.06%2016-0.64%203.3-1.58%208.25-2.08%2011-0.5%202.75-1.58%209.95-2.39%2016-0.95%207.05-1.49%2019.36-1.49%2034.25-0.01%2012.79%200.45%2026.51%201.02%2030.5%200.56%203.99%201.5%2010.17%202.07%2013.75%200.58%203.58%201.73%209.88%202.57%2014%200.84%204.13%202.88%2012.23%204.53%2018%201.65%205.77%204.12%2013.88%205.5%2018%201.37%204.13%202.84%207.95%203.27%208.5%200.42%200.55%201.68%203.48%202.79%206.5%201.11%203.02%203.79%209.1%205.94%2013.5%202.15%204.4%205.66%2011.15%207.78%2015%202.13%203.85%207.59%2012.63%2012.14%2019.5%204.54%206.88%2011.3%2016.33%2015.02%2021%203.73%204.67%2012.09%2013.9%2018.58%2020.5%206.5%206.6%2014.62%2014.29%2018.05%2017.09%203.43%202.8%2010.05%207.98%2014.73%2011.51%204.68%203.53%2012.1%208.74%2016.5%2011.58%204.4%202.83%2010.02%206.3%2012.5%207.7%202.48%201.4%209.45%204.99%2015.5%207.97%206.05%202.98%2013.25%206.42%2016%207.65%202.75%201.23%2012.2%204.61%2021%207.5%208.8%202.9%2021.62%206.44%2028.5%207.89%206.87%201.44%2014.52%203.04%2017%203.55%202.48%200.51%2013.27%201.48%2024%202.15%2015.34%200.97%2023.66%200.97%2039%200.01%2010.73-0.67%2021.3-1.6%2023.5-2.08%202.2-0.47%206.7-1.37%2010-1.99%203.3-0.63%208.92-1.82%2012.5-2.66%203.58-0.84%2010.1-2.58%2014.5-3.87%204.4-1.29%2012.27-3.89%2017.5-5.78%205.23-1.89%2011.51-4.29%2013.96-5.33%202.46-1.04%2010.33-4.84%2017.5-8.44%207.17-3.61%2018.21-9.87%2024.54-13.92%206.33-4.04%2012.68-8.3%2014.12-9.44%201.45-1.15%203.87-2.99%205.39-4.09%201.53-1.1%203.56-2.67%204.52-3.5%200.97-0.83%204.51-3.75%207.88-6.5%203.37-2.75%2011.85-10.86%2018.86-18.02%207-7.16%2016.15-17.51%2020.34-23%204.19-5.49%2010.3-14.03%2013.6-18.98%203.29-4.95%207.48-11.7%209.3-15%201.83-3.3%205.43-10.27%208.02-15.5%202.58-5.23%205.41-11.08%206.28-13%200.88-1.92%202.57-5.98%203.75-9%201.18-3.02%203.02-8.2%204.08-11.5%201.07-3.3%203.22-10.5%204.78-16%201.56-5.5%203.34-12.02%203.96-14.5%200.61-2.48%201.6-7.42%202.18-11%200.59-3.58%201.51-9.65%202.04-13.5%200.54-3.85%201.34-13.98%201.79-22.5%200.44-8.52%200.44-22.25%200-30.5-0.45-8.25-1.25-18.15-1.79-22-0.53-3.85-1.46-9.92-2.05-13.5-0.59-3.58-2.01-10.33-3.14-15-1.14-4.67-2.44-9.62-2.89-11-0.45-1.37-1.84-5.87-3.08-10-1.24-4.12-3.56-10.87-5.15-15-1.59-4.12-3.6-9.07-4.47-11-0.87-1.93-3.71-7.77-6.31-13-2.59-5.23-5.55-11.07-6.56-13-1.01-1.93-3.99-6.87-6.62-11-2.63-4.12-7.45-11.32-10.7-16-3.25-4.68-9.5-12.77-13.89-18-4.39-5.23-13.1-14.45-19.36-20.5-6.26-6.05-15.21-14.06-19.88-17.8-4.68-3.74-10.92-8.47-13.88-10.5-2.96-2.04-9.26-6.13-14-9.1-4.74-2.97-13.12-7.77-18.62-10.66-5.5-2.89-14.5-7.13-20-9.42-5.5-2.28-10.9-4.56-12-5.06-1.1-0.49-6.05-2.24-11-3.88-4.95-1.65-11.02-3.49-13.5-4.09-2.48-0.6-9.23-2.16-15-3.47-5.77-1.3-15.9-3.11-22.5-4.02-6.81-0.93-20.87-1.79-32.5-1.97-11.27-0.17-22.66-0.08-25.29%200.21-2.63%200.29-10.51%201.16-17.5%201.94z'/%3e%3cpath%20id='Path%202'%20class='s1'%20d='m953.5%20831.1c-2.75%200.49-7.7%201.38-11%201.99-3.3%200.61-8.48%201.77-11.5%202.57-3.02%200.81-9.33%202.84-14%204.52-4.67%201.68-13%205.31-18.5%208.06-5.5%202.75-12.48%206.61-15.5%208.58-3.02%201.97-8.2%205.61-11.5%208.08-3.3%202.47-9.33%207.44-13.39%2011.05-4.07%203.6-10.64%2010.38-14.61%2015.05-3.96%204.67-10.02%2012.77-13.46%2018-3.44%205.22-7.84%2012.65-9.78%2016.5-1.94%203.85-5.1%2011.05-7.02%2016-1.92%204.95-4.35%2011.92-5.39%2015.5-1.04%203.58-2.57%209.65-3.39%2013.5-0.83%203.85-2%2013.3-2.61%2021-0.81%2010.28-0.8%2017.79%200.02%2028.25%200.62%207.84%202.22%2018.86%203.55%2024.5%201.33%205.64%203.42%2013.17%204.65%2016.75%201.22%203.58%204%2010.55%206.17%2015.5%202.17%204.95%206.32%2013.05%209.22%2018%202.91%204.95%207.71%2012.22%2010.66%2016.15%202.96%203.94%208.08%2010.19%2011.38%2013.89%203.3%203.7%2010.05%2010.13%2015%2014.28%204.95%204.15%2013.05%2010.21%2018%2013.47%204.95%203.25%2011.92%207.4%2015.5%209.2%203.58%201.81%2010.55%204.92%2015.5%206.91%204.95%201.99%2012.83%204.69%2017.5%206%204.67%201.3%209.85%202.69%2011.5%203.07%201.65%200.39%206.83%201.33%2011.5%202.1%205.11%200.84%2015.89%201.4%2027%201.4%2010.17%200%2020.08-0.41%2022-0.92%201.92-0.5%206.2-1.45%209.5-2.1%203.3-0.65%2010.27-2.42%2015.5-3.93%205.22-1.5%2013.55-4.41%2018.5-6.46%204.95-2.05%2013.05-5.96%2018-8.68%204.95-2.73%2013.5-8.3%2019-12.39%205.5-4.08%2013.97-11.38%2018.82-16.21%204.86-4.83%2012.1-13.06%2016.09-18.28%203.99-5.22%209.09-12.65%2011.32-16.5%202.23-3.85%205.93-10.83%208.21-15.5%202.28-4.67%205.68-13.22%207.55-19%201.87-5.78%203.86-12.3%204.41-14.5%200.55-2.2%201.7-8.39%202.55-13.75%200.98-6.14%201.55-16.31%201.54-27.5%200-12.91-0.53-20.88-1.94-29.25-1.06-6.33-3.1-15.33-4.52-20-1.43-4.67-3.03-9.29-3.56-10.25-0.53-0.96-0.97-2.2-0.97-2.75%200-0.55-0.86-2.91-1.92-5.25-1.06-2.34-2.98-6.5-4.28-9.25-1.29-2.75-4.32-8.38-6.72-12.5-2.41-4.13-5.99-9.75-7.98-12.5-1.98-2.75-4.5-6.1-5.6-7.45-1.1-1.35-4.03-4.71-6.5-7.48-2.47-2.76-5.63-6.17-7-7.56-1.38-1.39-5.65-5.28-9.5-8.64-3.85-3.36-11.5-9.16-17-12.89-5.5-3.73-14.3-8.85-19.55-11.38-5.26-2.53-10.88-5.15-12.5-5.82-1.62-0.68-6.33-2.39-10.45-3.8-4.13-1.42-10.65-3.26-14.5-4.09-3.85-0.84-10.83-2.16-15.5-2.94-5.29-0.88-15.11-1.38-26-1.32-9.63%200.05-19.75%200.49-22.5%200.97z'/%3e%3c/g%3e%3c/svg%3e",Qut=w1("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Kr=re.forwardRef(({className:e,...t},n)=>Q.jsx("label",{ref:n,className:yt(Qut(),e),...t}));Kr.displayName="Label";function F5(e){const t=e+"CollectionProvider",[n,a]=gl(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:f,children:b}=h,y=te.useRef(null),w=te.useRef(new Map).current;return Q.jsx(r,{scope:f,itemMap:w,collectionRef:y,children:b})};o.displayName=t;const s=e+"CollectionSlot",l=mh(s),u=te.forwardRef((h,f)=>{const{scope:b,children:y}=h,w=i(s,b),k=oa(f,w.collectionRef);return Q.jsx(l,{ref:k,children:y})});u.displayName=s;const d=e+"CollectionItemSlot",p="data-radix-collection-item",m=mh(d),A=te.forwardRef((h,f)=>{const{scope:b,children:y,...w}=h,k=te.useRef(null),_=oa(f,k),E=i(d,b);return te.useEffect(()=>(E.itemMap.set(k,{ref:k,...w}),()=>{E.itemMap.delete(k)})),Q.jsx(m,{[p]:"",ref:_,children:y})});A.displayName=d;function g(h){const f=i(e+"CollectionConsumer",h);return te.useCallback(()=>{const y=f.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(f.itemMap.values()).sort((E,v)=>w.indexOf(E.ref.current)-w.indexOf(v.ref.current))},[f.collectionRef,f.itemMap])}return[{Provider:o,Slot:u,ItemSlot:A},g,a]}function npe(e){const t=re.useRef({value:e,previous:e});return re.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Tut=[" ","Enter","ArrowUp","ArrowDown"],Nut=[" ","Enter"],uA="Select",[$x,jx,Fut]=F5(uA),[Af]=gl(uA,[Fut,bh]),qx=bh(),[Lut,bp]=Af(uA),[Rut,Mut]=Af(uA),ape=e=>{const{__scopeSelect:t,children:n,open:a,defaultOpen:r,onOpenChange:i,value:o,defaultValue:s,onValueChange:l,dir:u,name:d,autoComplete:p,disabled:m,required:A,form:g}=e,h=qx(t),[f,b]=re.useState(null),[y,w]=re.useState(null),[k,_]=re.useState(!1),E=wT(u),[v,x]=hl({prop:a,defaultProp:r??!1,onChange:i,caller:uA}),[S,I]=hl({prop:o,defaultProp:s,onChange:l,caller:uA}),D=re.useRef(null),N=f?g||!!f.closest("form"):!0,[R,B]=re.useState(new Set),T=Array.from(R).map(F=>F.props.value).join(";");return Q.jsx(dT,{...h,children:Q.jsxs(Lut,{required:A,scope:t,trigger:f,onTriggerChange:b,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:k,onValueNodeHasChildrenChange:_,contentId:Ic(),value:S,onValueChange:I,open:v,onOpenChange:x,dir:E,triggerPointerDownPosRef:D,disabled:m,children:[Q.jsx($x.Provider,{scope:t,children:Q.jsx(Rut,{scope:e.__scopeSelect,onNativeOptionAdd:re.useCallback(F=>{B(L=>new Set(L).add(F))},[]),onNativeOptionRemove:re.useCallback(F=>{B(L=>{const M=new Set(L);return M.delete(F),M})},[]),children:n})}),N?Q.jsxs(Ipe,{"aria-hidden":!0,required:A,tabIndex:-1,name:d,autoComplete:p,value:S,onChange:F=>I(F.target.value),disabled:m,form:g,children:[S===void 0?Q.jsx("option",{value:""}):null,Array.from(R)]},T):null]})})};ape.displayName=uA;var rpe="SelectTrigger",ipe=re.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:a=!1,...r}=e,i=qx(n),o=bp(rpe,n),s=o.disabled||a,l=oa(t,o.onTriggerChange),u=jx(n),d=re.useRef("touch"),[p,m,A]=Dpe(h=>{const f=u().filter(w=>!w.disabled),b=f.find(w=>w.value===o.value),y=Qpe(f,h,b);y!==void 0&&o.onValueChange(y.value)}),g=h=>{s||(o.onOpenChange(!0),A()),h&&(o.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return Q.jsx(pT,{asChild:!0,...i,children:Q.jsx(Nn.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Spe(o.value)?"":void 0,...r,ref:l,onClick:Xt(r.onClick,h=>{h.currentTarget.focus(),d.current!=="mouse"&&g(h)}),onPointerDown:Xt(r.onPointerDown,h=>{d.current=h.pointerType;const f=h.target;f.hasPointerCapture(h.pointerId)&&f.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(g(h),h.preventDefault())}),onKeyDown:Xt(r.onKeyDown,h=>{const f=p.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&m(h.key),!(f&&h.key===" ")&&Tut.includes(h.key)&&(g(),h.preventDefault())})})})});ipe.displayName=rpe;var ope="SelectValue",spe=re.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:r,children:i,placeholder:o="",...s}=e,l=bp(ope,n),{onValueNodeHasChildrenChange:u}=l,d=i!==void 0,p=oa(t,l.onValueNodeChange);return Bi(()=>{u(d)},[u,d]),Q.jsx(Nn.span,{...s,ref:p,style:{pointerEvents:"none"},children:Spe(l.value)?Q.jsx(Q.Fragment,{children:o}):i})});spe.displayName=ope;var Out="SelectIcon",cpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,children:a,...r}=e;return Q.jsx(Nn.span,{"aria-hidden":!0,...r,ref:t,children:a||"▼"})});cpe.displayName=Out;var Put="SelectPortal",lpe=e=>Q.jsx(J0,{asChild:!0,...e});lpe.displayName=Put;var dA="SelectContent",upe=re.forwardRef((e,t)=>{const n=bp(dA,e.__scopeSelect),[a,r]=re.useState();if(Bi(()=>{r(new DocumentFragment)},[]),!n.open){const i=a;return i?VC.createPortal(Q.jsx(dpe,{scope:e.__scopeSelect,children:Q.jsx($x.Slot,{scope:e.__scopeSelect,children:Q.jsx("div",{children:e.children})})}),i):null}return Q.jsx(ppe,{...e,ref:t})});upe.displayName=dA;var Mc=10,[dpe,yp]=Af(dA),$ut="SelectContentImpl",jut=mh("SelectContent.RemoveScroll"),ppe=re.forwardRef((e,t)=>{const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:o,side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:m,collisionPadding:A,sticky:g,hideWhenDetached:h,avoidCollisions:f,...b}=e,y=bp(dA,n),[w,k]=re.useState(null),[_,E]=re.useState(null),v=oa(t,Y=>k(Y)),[x,S]=re.useState(null),[I,D]=re.useState(null),N=jx(n),[R,B]=re.useState(!1),T=re.useRef(!1);re.useEffect(()=>{if(w)return eN(w)},[w]),W8();const F=re.useCallback(Y=>{const[ae,...V]=N().map(J=>J.ref.current),[X]=V.slice(-1),ee=document.activeElement;for(const J of Y)if(J===ee||(J?.scrollIntoView({block:"nearest"}),J===ae&&_&&(_.scrollTop=0),J===X&&_&&(_.scrollTop=_.scrollHeight),J?.focus(),document.activeElement!==ee))return},[N,_]),L=re.useCallback(()=>F([x,w]),[F,x,w]);re.useEffect(()=>{R&&L()},[R,L]);const{onOpenChange:M,triggerPointerDownPosRef:P}=y;re.useEffect(()=>{if(w){let Y={x:0,y:0};const ae=X=>{Y={x:Math.abs(Math.round(X.pageX)-(P.current?.x??0)),y:Math.abs(Math.round(X.pageY)-(P.current?.y??0))}},V=X=>{Y.x<=10&&Y.y<=10?X.preventDefault():w.contains(X.target)||M(!1),document.removeEventListener("pointermove",ae),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",ae),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",V,{capture:!0})}}},[w,M,P]),re.useEffect(()=>{const Y=()=>M(!1);return window.addEventListener("blur",Y),window.addEventListener("resize",Y),()=>{window.removeEventListener("blur",Y),window.removeEventListener("resize",Y)}},[M]);const[O,$]=Dpe(Y=>{const ae=N().filter(ee=>!ee.disabled),V=ae.find(ee=>ee.ref.current===document.activeElement),X=Qpe(ae,Y,V);X&&setTimeout(()=>X.ref.current.focus())}),q=re.useCallback((Y,ae,V)=>{const X=!T.current&&!V;(y.value!==void 0&&y.value===ae||X)&&(S(Y),X&&(T.current=!0))},[y.value]),j=re.useCallback(()=>w?.focus(),[w]),K=re.useCallback((Y,ae,V)=>{const X=!T.current&&!V;(y.value!==void 0&&y.value===ae||X)&&D(Y)},[y.value]),U=a==="popper"?L5:mpe,W=U===L5?{side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:m,collisionPadding:A,sticky:g,hideWhenDetached:h,avoidCollisions:f}:{};return Q.jsx(dpe,{scope:n,content:w,viewport:_,onViewportChange:E,itemRefCallback:q,selectedItem:x,onItemLeave:j,itemTextRefCallback:K,focusSelectedItem:L,selectedItemText:I,position:a,isPositioned:R,searchRef:O,children:Q.jsx(ix,{as:jut,allowPinchZoom:!0,children:Q.jsx(XE,{asChild:!0,trapped:y.open,onMountAutoFocus:Y=>{Y.preventDefault()},onUnmountAutoFocus:Xt(r,Y=>{y.trigger?.focus({preventScroll:!0}),Y.preventDefault()}),children:Q.jsx(K0,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:Y=>Y.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:Q.jsx(U,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:Y=>Y.preventDefault(),...b,...W,onPlaced:()=>B(!0),ref:v,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:Xt(b.onKeyDown,Y=>{const ae=Y.ctrlKey||Y.altKey||Y.metaKey;if(Y.key==="Tab"&&Y.preventDefault(),!ae&&Y.key.length===1&&$(Y.key),["ArrowUp","ArrowDown","Home","End"].includes(Y.key)){let X=N().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(Y.key)&&(X=X.slice().reverse()),["ArrowUp","ArrowDown"].includes(Y.key)){const ee=Y.target,J=X.indexOf(ee);X=X.slice(J+1)}setTimeout(()=>F(X)),Y.preventDefault()}})})})})})})});ppe.displayName=$ut;var qut="SelectItemAlignedPosition",mpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:a,...r}=e,i=bp(dA,n),o=yp(dA,n),[s,l]=re.useState(null),[u,d]=re.useState(null),p=oa(t,v=>d(v)),m=jx(n),A=re.useRef(!1),g=re.useRef(!0),{viewport:h,selectedItem:f,selectedItemText:b,focusSelectedItem:y}=o,w=re.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&h&&f&&b){const v=i.trigger.getBoundingClientRect(),x=u.getBoundingClientRect(),S=i.valueNode.getBoundingClientRect(),I=b.getBoundingClientRect();if(i.dir!=="rtl"){const ee=I.left-x.left,J=S.left-ee,pe=v.left-J,ue=v.width+pe,Te=Math.max(ue,x.width),Le=window.innerWidth-Mc,qe=nZ(J,[Mc,Math.max(Mc,Le-Te)]);s.style.minWidth=ue+"px",s.style.left=qe+"px"}else{const ee=x.right-I.right,J=window.innerWidth-S.right-ee,pe=window.innerWidth-v.right-J,ue=v.width+pe,Te=Math.max(ue,x.width),Le=window.innerWidth-Mc,qe=nZ(J,[Mc,Math.max(Mc,Le-Te)]);s.style.minWidth=ue+"px",s.style.right=qe+"px"}const D=m(),N=window.innerHeight-Mc*2,R=h.scrollHeight,B=window.getComputedStyle(u),T=parseInt(B.borderTopWidth,10),F=parseInt(B.paddingTop,10),L=parseInt(B.borderBottomWidth,10),M=parseInt(B.paddingBottom,10),P=T+F+R+M+L,O=Math.min(f.offsetHeight*5,P),$=window.getComputedStyle(h),q=parseInt($.paddingTop,10),j=parseInt($.paddingBottom,10),K=v.top+v.height/2-Mc,U=N-K,W=f.offsetHeight/2,Y=f.offsetTop+W,ae=T+F+Y,V=P-ae;if(ae<=K){const ee=D.length>0&&f===D[D.length-1].ref.current;s.style.bottom="0px";const J=u.clientHeight-h.offsetTop-h.offsetHeight,pe=Math.max(U,W+(ee?j:0)+J+L),ue=ae+pe;s.style.height=ue+"px"}else{const ee=D.length>0&&f===D[0].ref.current;s.style.top="0px";const pe=Math.max(K,T+h.offsetTop+(ee?q:0)+W)+V;s.style.height=pe+"px",h.scrollTop=ae-K+h.offsetTop}s.style.margin=`${Mc}px 0`,s.style.minHeight=O+"px",s.style.maxHeight=N+"px",a?.(),requestAnimationFrame(()=>A.current=!0)}},[m,i.trigger,i.valueNode,s,u,h,f,b,i.dir,a]);Bi(()=>w(),[w]);const[k,_]=re.useState();Bi(()=>{u&&_(window.getComputedStyle(u).zIndex)},[u]);const E=re.useCallback(v=>{v&&g.current===!0&&(w(),y?.(),g.current=!1)},[w,y]);return Q.jsx(zut,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:A,onScrollButtonChange:E,children:Q.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:Q.jsx(Nn.div,{...r,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});mpe.displayName=qut;var Gut="SelectPopperPosition",L5=re.forwardRef((e,t)=>{const{__scopeSelect:n,align:a="start",collisionPadding:r=Mc,...i}=e,o=qx(n);return Q.jsx(mT,{...o,...i,ref:t,align:a,collisionPadding:r,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});L5.displayName=Gut;var[zut,R5]=Af(dA,{}),M5="SelectViewport",Ape=re.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:a,...r}=e,i=yp(M5,n),o=R5(M5,n),s=oa(t,i.onViewportChange),l=re.useRef(0);return Q.jsxs(Q.Fragment,{children:[Q.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),Q.jsx($x.Slot,{scope:n,children:Q.jsx(Nn.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:Xt(r.onScroll,u=>{const d=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=o;if(m?.current&&p){const A=Math.abs(l.current-d.scrollTop);if(A>0){const g=window.innerHeight-Mc*2,h=parseFloat(p.style.minHeight),f=parseFloat(p.style.height),b=Math.max(h,f);if(b<g){const y=b+A,w=Math.min(g,y),k=y-w;p.style.height=w+"px",p.style.bottom==="0px"&&(d.scrollTop=k>0?k:0,p.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});Ape.displayName=M5;var gpe="SelectGroup",[Uut,Hut]=Af(gpe),hpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,r=Ic();return Q.jsx(Uut,{scope:n,id:r,children:Q.jsx(Nn.div,{role:"group","aria-labelledby":r,...a,ref:t})})});hpe.displayName=gpe;var fpe="SelectLabel",bpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,r=Hut(fpe,n);return Q.jsx(Nn.div,{id:r.id,...a,ref:t})});bpe.displayName=fpe;var Gx="SelectItem",[Yut,ype]=Af(Gx),wpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,value:a,disabled:r=!1,textValue:i,...o}=e,s=bp(Gx,n),l=yp(Gx,n),u=s.value===a,[d,p]=re.useState(i??""),[m,A]=re.useState(!1),g=oa(t,y=>l.itemRefCallback?.(y,a,r)),h=Ic(),f=re.useRef("touch"),b=()=>{r||(s.onValueChange(a),s.onOpenChange(!1))};if(a==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return Q.jsx(Yut,{scope:n,value:a,disabled:r,textId:h,isSelected:u,onItemTextChange:re.useCallback(y=>{p(w=>w||(y?.textContent??"").trim())},[]),children:Q.jsx($x.ItemSlot,{scope:n,value:a,disabled:r,textValue:d,children:Q.jsx(Nn.div,{role:"option","aria-labelledby":h,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...o,ref:g,onFocus:Xt(o.onFocus,()=>A(!0)),onBlur:Xt(o.onBlur,()=>A(!1)),onClick:Xt(o.onClick,()=>{f.current!=="mouse"&&b()}),onPointerUp:Xt(o.onPointerUp,()=>{f.current==="mouse"&&b()}),onPointerDown:Xt(o.onPointerDown,y=>{f.current=y.pointerType}),onPointerMove:Xt(o.onPointerMove,y=>{f.current=y.pointerType,r?l.onItemLeave?.():f.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Xt(o.onPointerLeave,y=>{y.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:Xt(o.onKeyDown,y=>{l.searchRef?.current!==""&&y.key===" "||(Nut.includes(y.key)&&b(),y.key===" "&&y.preventDefault())})})})})});wpe.displayName=Gx;var ek="SelectItemText",kpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:r,...i}=e,o=bp(ek,n),s=yp(ek,n),l=ype(ek,n),u=Mut(ek,n),[d,p]=re.useState(null),m=oa(t,b=>p(b),l.onItemTextChange,b=>s.itemTextRefCallback?.(b,l.value,l.disabled)),A=d?.textContent,g=re.useMemo(()=>Q.jsx("option",{value:l.value,disabled:l.disabled,children:A},l.value),[l.disabled,l.value,A]),{onNativeOptionAdd:h,onNativeOptionRemove:f}=u;return Bi(()=>(h(g),()=>f(g)),[h,f,g]),Q.jsxs(Q.Fragment,{children:[Q.jsx(Nn.span,{id:l.textId,...i,ref:m}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?VC.createPortal(i.children,o.valueNode):null]})});kpe.displayName=ek;var vpe="SelectItemIndicator",_pe=re.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return ype(vpe,n).isSelected?Q.jsx(Nn.span,{"aria-hidden":!0,...a,ref:t}):null});_pe.displayName=vpe;var O5="SelectScrollUpButton",Cpe=re.forwardRef((e,t)=>{const n=yp(O5,e.__scopeSelect),a=R5(O5,e.__scopeSelect),[r,i]=re.useState(!1),o=oa(t,a.onScrollButtonChange);return Bi(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollTop>0;i(u)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),r?Q.jsx(xpe,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});Cpe.displayName=O5;var P5="SelectScrollDownButton",Epe=re.forwardRef((e,t)=>{const n=yp(P5,e.__scopeSelect),a=R5(P5,e.__scopeSelect),[r,i]=re.useState(!1),o=oa(t,a.onScrollButtonChange);return Bi(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;i(d)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),r?Q.jsx(xpe,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});Epe.displayName=P5;var xpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:a,...r}=e,i=yp("SelectScrollButton",n),o=re.useRef(null),s=jx(n),l=re.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return re.useEffect(()=>()=>l(),[l]),Bi(()=>{s().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),Q.jsx(Nn.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:Xt(r.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(a,50))}),onPointerMove:Xt(r.onPointerMove,()=>{i.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(a,50))}),onPointerLeave:Xt(r.onPointerLeave,()=>{l()})})}),Wut="SelectSeparator",Bpe=re.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return Q.jsx(Nn.div,{"aria-hidden":!0,...a,ref:t})});Bpe.displayName=Wut;var $5="SelectArrow",Kut=re.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,r=qx(n),i=bp($5,n),o=yp($5,n);return i.open&&o.position==="popper"?Q.jsx(AT,{...r,...a,ref:t}):null});Kut.displayName=$5;var Zut="SelectBubbleInput",Ipe=re.forwardRef(({__scopeSelect:e,value:t,...n},a)=>{const r=re.useRef(null),i=oa(a,r),o=npe(t);return re.useEffect(()=>{const s=r.current;if(!s)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&d){const p=new Event("change",{bubbles:!0});d.call(s,t),s.dispatchEvent(p)}},[o,t]),Q.jsx(Nn.select,{...n,style:{...qK,...n.style},ref:i,defaultValue:t})});Ipe.displayName=Zut;function Spe(e){return e===""||e===void 0}function Dpe(e){const t=fl(e),n=re.useRef(""),a=re.useRef(0),r=re.useCallback(o=>{const s=n.current+o;t(s),(function l(u){n.current=u,window.clearTimeout(a.current),u!==""&&(a.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),i=re.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return re.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,r,i]}function Qpe(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=Vut(e,Math.max(i,0));r.length===1&&(o=o.filter(u=>u!==n));const l=o.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Vut(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var Jut=ape,Xut=ipe,edt=spe,tdt=cpe,ndt=lpe,adt=upe,rdt=Ape,idt=hpe,odt=bpe,sdt=wpe,cdt=kpe,ldt=_pe,udt=Cpe,ddt=Epe,pdt=Bpe;function tk({...e}){return Q.jsx(Jut,{"data-slot":"select",...e})}function mdt({...e}){return Q.jsx(idt,{"data-slot":"select-group",...e})}function nk({...e}){return Q.jsx(edt,{"data-slot":"select-value",...e})}function ak({className:e,size:t="default",children:n,...a}){return Q.jsxs(Xut,{"data-slot":"select-trigger","data-size":t,className:yt("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a,children:[n,Q.jsx(tdt,{asChild:!0,children:Q.jsx(Y0,{className:"size-4 opacity-50"})})]})}function rk({className:e,children:t,position:n="popper",...a}){return Q.jsx(ndt,{children:Q.jsxs(adt,{"data-slot":"select-content",className:yt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...a,children:[Q.jsx(Tpe,{}),Q.jsx(rdt,{className:yt("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),Q.jsx(Npe,{})]})})}function Adt({className:e,...t}){return Q.jsx(odt,{"data-slot":"select-label",className:yt("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function gf({className:e,children:t,...n}){return Q.jsxs(sdt,{"data-slot":"select-item",className:yt("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pe-8 ps-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 text-start",e),...n,children:[Q.jsx("span",{className:"absolute inset-inline-end-2 flex size-3.5 items-center justify-center",children:Q.jsx(ldt,{children:Q.jsx(ph,{className:"size-4"})})}),Q.jsx(cdt,{children:t})]})}function gdt({className:e,...t}){return Q.jsx(pdt,{"data-slot":"select-separator",className:yt("bg-border pointer-events-none -mx-1 my-1 h-px",e),...t})}function Tpe({className:e,...t}){return Q.jsx(udt,{"data-slot":"select-scroll-up-button",className:yt("flex cursor-default items-center justify-center py-1",e),...t,children:Q.jsx(N6e,{className:"size-4"})})}function Npe({className:e,...t}){return Q.jsx(ddt,{"data-slot":"select-scroll-down-button",className:yt("flex cursor-default items-center justify-center py-1",e),...t,children:Q.jsx(Y0,{className:"size-4"})})}function hf(e,t){if(!e)return!0;const{field:n,operator:a="equals",value:r}=e,i=t[n];switch(a){case"equals":return i===r;case"not_equals":return i!==r;case"in":return Array.isArray(r)&&r.includes(i);case"not_in":return Array.isArray(r)&&!r.includes(i);default:return!0}}function Fpe({trigger:e}){const{t,i18n:n}=fa(["settings","translation"]),{app:a}=Or(),{theme:r,setTheme:i,accent:o,setAccent:s,radius:l,setRadius:u}=zw(),[d,p]=te.useState(null),[m,A]=te.useState("general"),[g,h]=te.useState(""),[f,b]=te.useState(""),[y,w]=te.useState(""),[k,_]=te.useState(""),E=te.useMemo(()=>a?.userMetadataFields?.filter(O=>O.showInProfile)||[],[a?.userMetadataFields]),[v,x]=te.useState({}),[S,I]=te.useState(!1),D=n.language==="fa",N=D?"text-right":"text-left",R=te.useCallback(async()=>{try{const O=await Kt.getMe();p(O),h(O.name||""),b(O.surname||""),w(O.phone||"");const $={};E.forEach(q=>{$[q.key]=O.metadata?.[q.key]??q.defaultValue??""}),x($)}catch(O){console.error("Failed to fetch user:",O),Zo.error(uh(O,t))}},[t,E]);te.useEffect(()=>{R()},[R]),te.useEffect(()=>{const O={...v};let $=!1;E.forEach(q=>{q.condition&&!hf(q.condition,v)&&O[q.key]!==void 0&&(delete O[q.key],$=!0)}),$&&x(O)},[v,E]);const B=async()=>{I(!0);try{const O={name:g,surname:f,phone:y,metadata:v};k&&(O.password=k),await Kt.updateMe(O),Zo.success(t("profile.success","Profile updated successfully")),_(""),R()}catch(O){Zo.error(uh(O,t))}finally{I(!1)}},T=()=>{window.confirm(t("account.logout_confirm","Are you sure you want to logout?"))&&(Kt.clearToken(),window.location.reload())},F=O=>{n.changeLanguage(O)},L=d?Math.max(0,Math.min(100,d.balance.tokens/(d.balance.token_limit||1)*100)):0,M=d?Math.max(0,Math.min(100,d.balance.requests/(d.balance.request_limit||1)*100)):0,P=[{id:"general",label:t("sections.general","General"),icon:OW},{id:"profile",label:t("sections.profile","Profile"),icon:dLe},{id:"account",label:t("sections.account","Account"),icon:rLe}];return Q.jsxs(rN,{children:[Q.jsx(uae,{asChild:!0,children:e||Q.jsx(Nr,{variant:"ghost",size:"icon",className:"rounded-full",children:Q.jsx($4,{className:"h-5 w-5"})})}),Q.jsx(iN,{dir:D?"rtl":"ltr",className:yt("w-full sm:w-[95vw] sm:max-w-[700px] p-0 gap-0 overflow-hidden rounded-t-2xl sm:rounded-3xl border-none shadow-2xl bg-background/95 backdrop-blur-md h-[90vh] sm:h-[750px]",D&&"rtl"),children:Q.jsxs("div",{className:"flex flex-col h-full w-full min-h-0 overflow-hidden",children:[Q.jsxs("div",{className:"w-full bg-muted/20 sm:bg-muted/30 border-b border-border/40 pt-12 sm:pt-6 flex flex-col shrink-0",children:[Q.jsx("div",{className:"flex items-center justify-between px-4 sm:px-6 mb-2 sm:mb-4",children:Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsx("div",{className:"bg-primary/10 p-1.5 rounded-lg",children:Q.jsx($4,{className:"h-5 w-5 text-primary"})}),Q.jsx("span",{className:"font-bold text-lg",children:t("title","Settings")})]})}),Q.jsx("div",{className:"w-full overflow-x-auto no-scrollbar pt-2 px-2 sm:px-4",children:Q.jsx("nav",{className:"flex items-center gap-2 sm:gap-6 w-max",children:P.map(O=>Q.jsxs("button",{onClick:()=>A(O.id),className:yt("flex items-center gap-1.5 sm:gap-2 pb-2 sm:pb-3 pt-1 px-2 sm:px-1 text-sm sm:text-base font-medium transition-all border-b-2 whitespace-nowrap shrink-0",m===O.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"),children:[Q.jsx(O.icon,{className:yt("h-3.5 w-3.5 sm:h-4 sm:w-4 transition-transform",m===O.id&&"scale-110")}),O.label]},O.id))})})]}),Q.jsx("div",{className:"flex-1 relative min-h-0 h-full bg-background",children:Q.jsxs("div",{className:"absolute inset-0 overflow-y-auto p-5 sm:p-8 pt-12 sm:pt-12 custom-scrollbar",children:[m==="profile"&&Q.jsxs("div",{className:"space-y-6 animate-in fade-in slide-in-from-bottom-4 duration-300",children:[Q.jsxs("div",{children:[Q.jsx("h2",{className:"text-xl font-bold tracking-tight",children:t("profile.title","Profile Information")}),Q.jsx("p",{className:"text-sm text-muted-foreground",children:t("profile.subtitle","Update your personal details below.")})]}),Q.jsxs("div",{className:"grid gap-6",children:[Q.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[Q.jsxs("div",{className:"flex flex-col gap-3",children:[Q.jsx(Kr,{htmlFor:"name",className:"px-1",children:t("profile.name","First Name")}),Q.jsx(rs,{id:"name",value:g,onChange:O=>h(O.target.value),className:yt("bg-muted/30 border-border/50 rounded-xl focus-visible:ring-primary h-11",N)})]}),Q.jsxs("div",{className:"flex flex-col gap-3",children:[Q.jsx(Kr,{htmlFor:"surname",className:"px-1",children:t("profile.surname","Last Name")}),Q.jsx(rs,{id:"surname",value:f,onChange:O=>b(O.target.value),className:yt("bg-muted/30 border-border/50 rounded-xl focus-visible:ring-primary h-11",N)})]})]}),Q.jsxs("div",{className:"flex flex-col gap-3",children:[Q.jsx(Kr,{htmlFor:"phone",className:"px-1",children:t("profile.phone","Phone Number")}),Q.jsxs("div",{className:"relative",children:[Q.jsx(iLe,{className:"absolute top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground start-3"}),Q.jsx(rs,{id:"phone",value:y,onChange:O=>w(O.target.value),className:yt("bg-muted/30 border-border/50 rounded-xl focus-visible:ring-primary ps-10 pe-3 text-left"),dir:"ltr"})]})]}),Q.jsxs("div",{className:"flex flex-col gap-3",children:[Q.jsx(Kr,{htmlFor:"pass",className:"px-1",children:t("profile.password","New Password")}),Q.jsxs("div",{className:"relative",children:[Q.jsx(z6e,{className:"absolute top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground start-3"}),Q.jsx(rs,{id:"pass",type:"password",value:k,onChange:O=>_(O.target.value),placeholder:t("profile.password_placeholder","Leave empty to keep current"),className:yt("bg-muted/30 border-border/50 rounded-xl focus-visible:ring-primary ps-10 pe-3 text-left"),dir:"ltr"})]})]}),E.map(O=>hf(O.condition,v)?Q.jsxs("div",{className:"flex flex-col gap-3 animate-in fade-in slide-in-from-top-1 duration-200",children:[Q.jsx(Kr,{htmlFor:`profile-${O.key}`,className:"px-1",children:t(O.label)}),O.type==="select"?Q.jsxs(tk,{value:String(v[O.key]||""),onValueChange:$=>x({...v,[O.key]:$}),dir:D?"rtl":"ltr",children:[Q.jsx(ak,{className:"bg-muted/30 border-border/50 rounded-xl focus:ring-primary h-11",children:Q.jsx(nk,{placeholder:t(O.placeholder||"profile.select_placeholder")})}),Q.jsx(rk,{className:"rounded-xl border-border/40 shadow-xl bg-background/95 backdrop-blur-md",children:O.options?.map($=>Q.jsx(gf,{value:String($.value),className:"rounded-lg focus:bg-primary/10",children:t($.label)},String($.value)))})]}):O.type==="checkbox"?Q.jsxs("div",{className:"flex items-center gap-3 px-1 py-1",children:[Q.jsx("input",{id:`profile-${O.key}`,type:"checkbox",checked:!!v[O.key],onChange:$=>x({...v,[O.key]:$.target.checked}),className:"h-5 w-5 rounded-md border-border/50 bg-muted/30 text-primary focus:ring-primary transition-all cursor-pointer"}),Q.jsx(Kr,{htmlFor:`profile-${O.key}`,className:"text-sm font-medium text-muted-foreground cursor-pointer",children:t(O.placeholder||O.label)})]}):Q.jsx(rs,{id:`profile-${O.key}`,type:O.type,value:v[O.key]||"",onChange:$=>x({...v,[O.key]:$.target.value}),placeholder:t(O.placeholder||""),className:yt("bg-muted/30 border-border/50 rounded-xl focus-visible:ring-primary h-11",N)})]},O.key):null),Q.jsx("div",{className:"pt-4",children:Q.jsxs(Nr,{onClick:B,disabled:S,className:"w-full sm:w-auto px-8 rounded-xl gap-2 font-semibold shadow-lg shadow-primary/20 h-11 transition-all active:scale-[0.98]",children:[Q.jsx(tLe,{className:"h-4 w-4"}),S?t("profile.saving","Saving..."):t("profile.save","Save Changes")]})})]})]}),m==="general"&&Q.jsxs("div",{className:"space-y-8 animate-in fade-in slide-in-from-bottom-4 duration-300",children:[Q.jsxs("div",{children:[Q.jsx("h2",{className:"text-xl font-bold tracking-tight",children:t("general.title","General Settings")}),Q.jsx("p",{className:"text-sm text-muted-foreground",children:t("general.subtitle","Configure look and feel and language.")})]}),Q.jsxs("div",{className:"space-y-8",children:[Q.jsxs("div",{className:"space-y-3",children:[Q.jsxs(Kr,{className:"text-sm font-semibold flex items-center gap-2",children:[Q.jsx(OW,{className:"h-4 w-4 text-primary"}),t("general.theme","Theme")]}),Q.jsxs("div",{className:"flex p-1 bg-muted/50 rounded-2xl border border-border/40 w-full",children:[Q.jsxs("button",{onClick:()=>i("light"),className:yt("flex-1 flex items-center justify-center gap-2 py-2.5 rounded-xl transition-all",r==="light"?"bg-background shadow-md text-primary":"text-muted-foreground hover:text-foreground"),children:[Q.jsx(GW,{className:"h-4 w-4"}),Q.jsx("span",{className:"text-sm font-medium",children:t("general.themes.light","Light")})]}),Q.jsxs("button",{onClick:()=>i("dark"),className:yt("flex-1 flex items-center justify-center gap-2 py-2.5 rounded-xl transition-all",r==="dark"?"bg-background shadow-md text-primary":"text-muted-foreground hover:text-foreground"),children:[Q.jsx($W,{className:"h-4 w-4"}),Q.jsx("span",{className:"text-sm font-medium",children:t("general.themes.dark","Dark")})]}),Q.jsxs("button",{onClick:()=>i("system"),className:yt("flex-1 flex items-center justify-center gap-2 py-2.5 rounded-xl transition-all",r==="system"?"bg-background shadow-md text-primary":"text-muted-foreground hover:text-foreground"),children:[Q.jsx(P4,{className:"h-4 w-4"}),Q.jsx("span",{className:"text-sm font-medium",children:t("general.themes.system","System")})]})]})]}),Q.jsxs("div",{className:"space-y-4",children:[Q.jsxs(Kr,{className:"text-sm font-semibold flex items-center gap-2",children:[Q.jsx(zW,{className:"h-4 w-4 text-primary"}),t("general.accent","Accent Color")]}),Q.jsx("div",{className:"grid grid-cols-4 sm:grid-cols-8 gap-3 w-full",children:["oklch(0.623 0.214 259.815)","oklch(0.585 0.233 277.117)","oklch(0.627 0.265 303.9)","oklch(0.645 0.246 16.439)","oklch(0.712 0.194 46.666)","oklch(0.627 0.194 149.214)","oklch(0.633 0.145 182.903)","oklch(0.552 0.016 285.938)"].map(O=>{const $=(o||"oklch(0.623 0.214 259.815)")===O;return Q.jsx("button",{onClick:()=>s(O),className:yt("h-8 w-8 rounded-full border-2 transition-all hover:scale-110 active:scale-95 shadow-sm",$?"border-foreground":"border-transparent"),style:{backgroundColor:O}},O)})})]}),Q.jsxs("div",{className:"space-y-4",children:[Q.jsxs(Kr,{className:"text-sm font-semibold flex items-center gap-2",children:[Q.jsx("div",{className:"h-4 w-4 rounded-md border-2 border-primary"}),t("general.radius","Rounded Corners")]}),Q.jsx("div",{className:"flex p-1 bg-muted/50 rounded-2xl border border-border/40 w-full",children:[{id:"sharp",value:"0.3rem"},{id:"round",value:"1.25rem"}].map(O=>{const $=(l||"1.25rem")===O.value;return Q.jsx("button",{onClick:()=>u(O.value),className:yt("flex-1 py-2 rounded-xl transition-all text-sm font-medium",$?"bg-background shadow-md text-primary":"text-muted-foreground hover:text-foreground"),children:t(`general.radius_levels.${O.id}`)},O.id)})})]}),Q.jsxs("div",{className:"space-y-3",children:[Q.jsxs(Kr,{className:"text-sm font-semibold flex items-center gap-2",children:[Q.jsx(MW,{className:"h-4 w-4 text-primary"}),t("general.language","Language")]}),Q.jsxs(tk,{value:n.language,onValueChange:F,children:[Q.jsx(ak,{className:"w-full bg-muted/50 rounded-2xl border-border/40 h-11 focus:ring-primary/20",children:Q.jsx(nk,{placeholder:t("general.language_placeholder","Select language")})}),Q.jsxs(rk,{className:"rounded-2xl border-border/40 shadow-xl bg-background/95 backdrop-blur-md",children:[Q.jsx(gf,{value:"en",className:"rounded-xl focus:bg-primary/10",children:Q.jsxs("span",{className:"flex items-center gap-2",children:[Q.jsx("span",{className:"text-xs font-bold text-muted-foreground mr-1",children:"EN"}),t("general.languages.en","English")]})}),Q.jsx(gf,{value:"fa",className:"rounded-xl focus:bg-primary/10",children:Q.jsxs("span",{className:"flex items-center gap-2",children:[Q.jsx("span",{className:"text-xs font-bold text-muted-foreground mr-1",children:"FA"}),t("general.languages.fa","Persian")]})})]})]})]})]})]}),m==="account"&&Q.jsxs("div",{className:"space-y-8 animate-in fade-in slide-in-from-bottom-4 duration-300",children:[Q.jsxs("div",{children:[Q.jsx("h2",{className:"text-xl font-bold tracking-tight",children:t("account.title","Account & Usage")}),Q.jsx("p",{className:"text-sm text-muted-foreground",children:t("account.subtitle","Monitor your quotas and manage your session.")})]}),Q.jsxs("div",{className:"space-y-6",children:[Q.jsxs("div",{className:"p-6 bg-muted/30 rounded-3xl border border-border/40 space-y-6",children:[Q.jsxs(Kr,{className:"text-xs font-bold uppercase tracking-wider text-primary flex items-center gap-2",children:[Q.jsx($6e,{className:"h-4 w-4"}),t("account.balance","Current Balance")]}),Q.jsxs("div",{className:"space-y-5",children:[Q.jsxs("div",{className:"space-y-2",children:[Q.jsxs("div",{className:"flex justify-between text-sm mb-1",children:[Q.jsx("span",{className:"font-medium text-muted-foreground",children:t("account.tokens","Tokens")}),Q.jsxs("span",{className:"font-bold text-primary",children:[L.toLocaleString(n.language,{maximumFractionDigits:0}),"%"]})]}),Q.jsx("div",{className:"h-2.5 w-full bg-muted/50 rounded-full overflow-hidden border border-border/20 p-0.5",dir:"ltr",children:Q.jsx("div",{className:yt("h-full rounded-full transition-all duration-1000 shadow-sm",L>60?"bg-emerald-500 shadow-emerald-500/20":L>20?"bg-amber-500 shadow-amber-500/20":"bg-destructive shadow-destructive/20"),style:{width:`${L}%`}})})]}),Q.jsxs("div",{className:"space-y-2",children:[Q.jsxs("div",{className:"flex justify-between text-sm mb-1",children:[Q.jsxs("span",{className:"font-medium text-muted-foreground flex items-center gap-1.5 focus:outline-none",children:[Q.jsx(zW,{className:"h-3.5 w-3.5 text-blue-500"}),t("account.requests","Requests")]}),Q.jsxs("span",{className:"font-bold text-primary",children:[M.toLocaleString(n.language,{maximumFractionDigits:0}),"%"]})]}),Q.jsx("div",{className:"h-2.5 w-full bg-muted/50 rounded-full overflow-hidden border border-border/20 p-0.5",dir:"ltr",children:Q.jsx("div",{className:yt("h-full rounded-full transition-all duration-1000 shadow-sm",M>60?"bg-emerald-500 shadow-emerald-500/20":M>20?"bg-amber-500 shadow-amber-500/20":"bg-destructive shadow-destructive/20"),style:{width:`${M}%`}})})]})]})]}),Q.jsxs("div",{className:"pt-2 flex flex-col gap-3",children:[Q.jsxs("p",{className:"text-xs text-muted-foreground px-1",children:[t("account.last_recharge","Last balance update on"),": ",d?.balance.updated_at?new Date(d.balance.updated_at).toLocaleDateString(n.language):d?new Date().toLocaleDateString(n.language):"..."]}),Q.jsxs(Nr,{variant:"destructive",onClick:T,className:"rounded-2xl gap-2 font-bold h-12 shadow-lg shadow-destructive/10 transition-all active:scale-[0.98]",children:[Q.jsx(PW,{className:"h-4 w-4"}),t("account.logout","Logout from Account")]})]})]})]})]})})]})})]})}function Lpe({hideActions:e=!1}){const[,t]=D5(),{t:n}=fa(["sidebar","chat"]),{history:a,app:r}=Or(),{theme:i}=zw(),o=!e&&(a?.enabled??!0),[s,l]=te.useState("light");te.useEffect(()=>{if(i==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)").matches;l(p?"dark":"light")}else l(i)},[i]);const u=te.useMemo(()=>r?.logo?typeof r.logo=="string"?r.logo:s==="dark"?r.logo.dark:r.logo.light:N5,[r?.logo,s]),d=r?.name||"Gentiq";return Q.jsxs("header",{className:"relative flex items-center justify-between px-3 md:px-4 h-14 sticky top-0 z-40 w-full glass border-b border-border/30 transition-all duration-300",children:[Q.jsx("div",{className:"flex items-center gap-1.5 md:gap-2 min-w-[36px] md:min-w-[80px]",children:o&&Q.jsx(xut,{className:"hover:bg-accent/60 transition-all duration-200 hover:scale-105 active:scale-95 rounded-lg size-9"})}),Q.jsx("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:Q.jsx("div",{className:"flex items-center gap-2.5 select-none animate-in fade-in zoom-in-95 duration-500",children:Q.jsx("img",{src:u,alt:d,className:"size-8 object-contain"})})}),Q.jsx("div",{className:"flex items-center gap-1.5 min-w-[36px] md:min-w-[80px] justify-end",children:!e&&Q.jsxs(Q.Fragment,{children:[Q.jsxs(zm,{children:[Q.jsx(Um,{asChild:!0,children:Q.jsx("button",{type:"button",className:yt("flex items-center justify-center size-9 rounded-lg hover:bg-accent/60 transition-all duration-200 hover:scale-105 active:scale-95 text-muted-foreground hover:text-primary",o&&"md:hidden"),onClick:()=>{t("/")},children:Q.jsx(R6e,{className:"size-5"})})}),Q.jsx(Hm,{side:"bottom",className:"text-xs",children:n("new_chat")})]}),r?.showSettings!==!1&&Q.jsx(Fpe,{trigger:Q.jsx("button",{type:"button",className:"flex items-center justify-center size-9 rounded-lg hover:bg-accent/60 transition-all duration-200 hover:scale-105 active:scale-95 text-muted-foreground hover:text-primary",children:Q.jsx($4,{className:"size-5"})})})]})})]})}var j5="rovingFocusGroup.onEntryFocus",hdt={bubbles:!1,cancelable:!0},ik="RovingFocusGroup",[q5,Rpe,fdt]=F5(ik),[bdt,Mpe]=gl(ik,[fdt]),[ydt,wdt]=bdt(ik),Ope=re.forwardRef((e,t)=>Q.jsx(q5.Provider,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(q5.Slot,{scope:e.__scopeRovingFocusGroup,children:Q.jsx(kdt,{...e,ref:t})})}));Ope.displayName=ik;var kdt=re.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:r=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...p}=e,m=re.useRef(null),A=oa(t,m),g=wT(i),[h,f]=hl({prop:o,defaultProp:s??null,onChange:l,caller:ik}),[b,y]=re.useState(!1),w=fl(u),k=Rpe(n),_=re.useRef(!1),[E,v]=re.useState(0);return re.useEffect(()=>{const x=m.current;if(x)return x.addEventListener(j5,w),()=>x.removeEventListener(j5,w)},[w]),Q.jsx(ydt,{scope:n,orientation:a,dir:g,loop:r,currentTabStopId:h,onItemFocus:re.useCallback(x=>f(x),[f]),onItemShiftTab:re.useCallback(()=>y(!0),[]),onFocusableItemAdd:re.useCallback(()=>v(x=>x+1),[]),onFocusableItemRemove:re.useCallback(()=>v(x=>x-1),[]),children:Q.jsx(Nn.div,{tabIndex:b||E===0?-1:0,"data-orientation":a,...p,ref:A,style:{outline:"none",...e.style},onMouseDown:Xt(e.onMouseDown,()=>{_.current=!0}),onFocus:Xt(e.onFocus,x=>{const S=!_.current;if(x.target===x.currentTarget&&S&&!b){const I=new CustomEvent(j5,hdt);if(x.currentTarget.dispatchEvent(I),!I.defaultPrevented){const D=k().filter(F=>F.focusable),N=D.find(F=>F.active),R=D.find(F=>F.id===h),T=[N,R,...D].filter(Boolean).map(F=>F.ref.current);jpe(T,d)}}_.current=!1}),onBlur:Xt(e.onBlur,()=>y(!1))})})}),Ppe="RovingFocusGroupItem",$pe=re.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:r=!1,tabStopId:i,children:o,...s}=e,l=Ic(),u=i||l,d=wdt(Ppe,n),p=d.currentTabStopId===u,m=Rpe(n),{onFocusableItemAdd:A,onFocusableItemRemove:g,currentTabStopId:h}=d;return re.useEffect(()=>{if(a)return A(),()=>g()},[a,A,g]),Q.jsx(q5.ItemSlot,{scope:n,id:u,focusable:a,active:r,children:Q.jsx(Nn.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:Xt(e.onMouseDown,f=>{a?d.onItemFocus(u):f.preventDefault()}),onFocus:Xt(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:Xt(e.onKeyDown,f=>{if(f.key==="Tab"&&f.shiftKey){d.onItemShiftTab();return}if(f.target!==f.currentTarget)return;const b=Cdt(f,d.orientation,d.dir);if(b!==void 0){if(f.metaKey||f.ctrlKey||f.altKey||f.shiftKey)return;f.preventDefault();let w=m().filter(k=>k.focusable).map(k=>k.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const k=w.indexOf(f.currentTarget);w=d.loop?Edt(w,k+1):w.slice(k+1)}setTimeout(()=>jpe(w))}}),children:typeof o=="function"?o({isCurrentTabStop:p,hasTabStop:h!=null}):o})})});$pe.displayName=Ppe;var vdt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _dt(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Cdt(e,t,n){const a=_dt(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return vdt[a]}function jpe(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}function Edt(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var xdt=Ope,Bdt=$pe,G5=["Enter"," "],Idt=["ArrowDown","PageUp","Home"],qpe=["ArrowUp","PageDown","End"],Sdt=[...Idt,...qpe],Ddt={ltr:[...G5,"ArrowRight"],rtl:[...G5,"ArrowLeft"]},Qdt={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ok="Menu",[sk,Tdt,Ndt]=F5(ok),[pA,Gpe]=gl(ok,[Ndt,bh,Mpe]),zx=bh(),zpe=Mpe(),[Fdt,mA]=pA(ok),[Ldt,ck]=pA(ok),Upe=e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:r,onOpenChange:i,modal:o=!0}=e,s=zx(t),[l,u]=re.useState(null),d=re.useRef(!1),p=fl(i),m=wT(r);return re.useEffect(()=>{const A=()=>{d.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>d.current=!1;return document.addEventListener("keydown",A,{capture:!0}),()=>{document.removeEventListener("keydown",A,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),Q.jsx(dT,{...s,children:Q.jsx(Fdt,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:u,children:Q.jsx(Ldt,{scope:t,onClose:re.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:m,modal:o,children:a})})})};Upe.displayName=ok;var Rdt="MenuAnchor",z5=re.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,r=zx(n);return Q.jsx(pT,{...r,...a,ref:t})});z5.displayName=Rdt;var U5="MenuPortal",[Mdt,Hpe]=pA(U5,{forceMount:void 0}),Ype=e=>{const{__scopeMenu:t,forceMount:n,children:a,container:r}=e,i=mA(U5,t);return Q.jsx(Mdt,{scope:t,forceMount:n,children:Q.jsx(Vs,{present:n||i.open,children:Q.jsx(J0,{asChild:!0,container:r,children:a})})})};Ype.displayName=U5;var oc="MenuContent",[Odt,H5]=pA(oc),Wpe=re.forwardRef((e,t)=>{const n=Hpe(oc,e.__scopeMenu),{forceMount:a=n.forceMount,...r}=e,i=mA(oc,e.__scopeMenu),o=ck(oc,e.__scopeMenu);return Q.jsx(sk.Provider,{scope:e.__scopeMenu,children:Q.jsx(Vs,{present:a||i.open,children:Q.jsx(sk.Slot,{scope:e.__scopeMenu,children:o.modal?Q.jsx(Pdt,{...r,ref:t}):Q.jsx($dt,{...r,ref:t})})})})}),Pdt=re.forwardRef((e,t)=>{const n=mA(oc,e.__scopeMenu),a=re.useRef(null),r=oa(t,a);return re.useEffect(()=>{const i=a.current;if(i)return eN(i)},[]),Q.jsx(Y5,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Xt(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),$dt=re.forwardRef((e,t)=>{const n=mA(oc,e.__scopeMenu);return Q.jsx(Y5,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),jdt=mh("MenuContent.ScrollLock"),Y5=re.forwardRef((e,t)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,onDismiss:A,disableOutsideScroll:g,...h}=e,f=mA(oc,n),b=ck(oc,n),y=zx(n),w=zpe(n),k=Tdt(n),[_,E]=re.useState(null),v=re.useRef(null),x=oa(t,v,f.onContentChange),S=re.useRef(0),I=re.useRef(""),D=re.useRef(0),N=re.useRef(null),R=re.useRef("right"),B=re.useRef(0),T=g?ix:re.Fragment,F=g?{as:jdt,allowPinchZoom:!0}:void 0,L=P=>{const O=I.current+P,$=k().filter(Y=>!Y.disabled),q=document.activeElement,j=$.find(Y=>Y.ref.current===q)?.textValue,K=$.map(Y=>Y.textValue),U=Xdt(K,O,j),W=$.find(Y=>Y.textValue===U)?.ref.current;(function Y(ae){I.current=ae,window.clearTimeout(S.current),ae!==""&&(S.current=window.setTimeout(()=>Y(""),1e3))})(O),W&&setTimeout(()=>W.focus())};re.useEffect(()=>()=>window.clearTimeout(S.current),[]),W8();const M=re.useCallback(P=>R.current===N.current?.side&&tpt(P,N.current?.area),[]);return Q.jsx(Odt,{scope:n,searchRef:I,onItemEnter:re.useCallback(P=>{M(P)&&P.preventDefault()},[M]),onItemLeave:re.useCallback(P=>{M(P)||(v.current?.focus(),E(null))},[M]),onTriggerLeave:re.useCallback(P=>{M(P)&&P.preventDefault()},[M]),pointerGraceTimerRef:D,onPointerGraceIntentChange:re.useCallback(P=>{N.current=P},[]),children:Q.jsx(T,{...F,children:Q.jsx(XE,{asChild:!0,trapped:r,onMountAutoFocus:Xt(i,P=>{P.preventDefault(),v.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:Q.jsx(K0,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,onDismiss:A,children:Q.jsx(xdt,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:a,currentTabStopId:_,onCurrentTabStopIdChange:E,onEntryFocus:Xt(l,P=>{b.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:Q.jsx(mT,{role:"menu","aria-orientation":"vertical","data-state":dme(f.open),"data-radix-menu-content":"",dir:b.dir,...y,...h,ref:x,style:{outline:"none",...h.style},onKeyDown:Xt(h.onKeyDown,P=>{const $=P.target.closest("[data-radix-menu-content]")===P.currentTarget,q=P.ctrlKey||P.altKey||P.metaKey,j=P.key.length===1;$&&(P.key==="Tab"&&P.preventDefault(),!q&&j&&L(P.key));const K=v.current;if(P.target!==K||!Sdt.includes(P.key))return;P.preventDefault();const W=k().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);qpe.includes(P.key)&&W.reverse(),Vdt(W)}),onBlur:Xt(e.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(S.current),I.current="")}),onPointerMove:Xt(e.onPointerMove,uk(P=>{const O=P.target,$=B.current!==P.clientX;if(P.currentTarget.contains(O)&&$){const q=P.clientX>B.current?"right":"left";R.current=q,B.current=P.clientX}}))})})})})})})});Wpe.displayName=oc;var qdt="MenuGroup",W5=re.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return Q.jsx(Nn.div,{role:"group",...a,ref:t})});W5.displayName=qdt;var Gdt="MenuLabel",Kpe=re.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return Q.jsx(Nn.div,{...a,ref:t})});Kpe.displayName=Gdt;var Ux="MenuItem",Zpe="menu.itemSelect",Hx=re.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:a,...r}=e,i=re.useRef(null),o=ck(Ux,e.__scopeMenu),s=H5(Ux,e.__scopeMenu),l=oa(t,i),u=re.useRef(!1),d=()=>{const p=i.current;if(!n&&p){const m=new CustomEvent(Zpe,{bubbles:!0,cancelable:!0});p.addEventListener(Zpe,A=>a?.(A),{once:!0}),XW(p,m),m.defaultPrevented?u.current=!1:o.onClose()}};return Q.jsx(Vpe,{...r,ref:l,disabled:n,onClick:Xt(e.onClick,d),onPointerDown:p=>{e.onPointerDown?.(p),u.current=!0},onPointerUp:Xt(e.onPointerUp,p=>{u.current||p.currentTarget?.click()}),onKeyDown:Xt(e.onKeyDown,p=>{const m=s.searchRef.current!=="";n||m&&p.key===" "||G5.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Hx.displayName=Ux;var Vpe=re.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:a=!1,textValue:r,...i}=e,o=H5(Ux,n),s=zpe(n),l=re.useRef(null),u=oa(t,l),[d,p]=re.useState(!1),[m,A]=re.useState("");return re.useEffect(()=>{const g=l.current;g&&A((g.textContent??"").trim())},[i.children]),Q.jsx(sk.ItemSlot,{scope:n,disabled:a,textValue:r??m,children:Q.jsx(Bdt,{asChild:!0,...s,focusable:!a,children:Q.jsx(Nn.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...i,ref:u,onPointerMove:Xt(e.onPointerMove,uk(g=>{a?o.onItemLeave(g):(o.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Xt(e.onPointerLeave,uk(g=>o.onItemLeave(g))),onFocus:Xt(e.onFocus,()=>p(!0)),onBlur:Xt(e.onBlur,()=>p(!1))})})})}),zdt="MenuCheckboxItem",Jpe=re.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:a,...r}=e;return Q.jsx(ame,{scope:e.__scopeMenu,checked:n,children:Q.jsx(Hx,{role:"menuitemcheckbox","aria-checked":Yx(n)?"mixed":n,...r,ref:t,"data-state":Z5(n),onSelect:Xt(r.onSelect,()=>a?.(Yx(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Jpe.displayName=zdt;var Xpe="MenuRadioGroup",[Udt,Hdt]=pA(Xpe,{value:void 0,onValueChange:()=>{}}),eme=re.forwardRef((e,t)=>{const{value:n,onValueChange:a,...r}=e,i=fl(a);return Q.jsx(Udt,{scope:e.__scopeMenu,value:n,onValueChange:i,children:Q.jsx(W5,{...r,ref:t})})});eme.displayName=Xpe;var tme="MenuRadioItem",nme=re.forwardRef((e,t)=>{const{value:n,...a}=e,r=Hdt(tme,e.__scopeMenu),i=n===r.value;return Q.jsx(ame,{scope:e.__scopeMenu,checked:i,children:Q.jsx(Hx,{role:"menuitemradio","aria-checked":i,...a,ref:t,"data-state":Z5(i),onSelect:Xt(a.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});nme.displayName=tme;var K5="MenuItemIndicator",[ame,Ydt]=pA(K5,{checked:!1}),rme=re.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:a,...r}=e,i=Ydt(K5,n);return Q.jsx(Vs,{present:a||Yx(i.checked)||i.checked===!0,children:Q.jsx(Nn.span,{...r,ref:t,"data-state":Z5(i.checked)})})});rme.displayName=K5;var Wdt="MenuSeparator",ime=re.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e;return Q.jsx(Nn.div,{role:"separator","aria-orientation":"horizontal",...a,ref:t})});ime.displayName=Wdt;var Kdt="MenuArrow",ome=re.forwardRef((e,t)=>{const{__scopeMenu:n,...a}=e,r=zx(n);return Q.jsx(AT,{...r,...a,ref:t})});ome.displayName=Kdt;var Zdt="MenuSub",[Vfn,sme]=pA(Zdt),lk="MenuSubTrigger",cme=re.forwardRef((e,t)=>{const n=mA(lk,e.__scopeMenu),a=ck(lk,e.__scopeMenu),r=sme(lk,e.__scopeMenu),i=H5(lk,e.__scopeMenu),o=re.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,u={__scopeMenu:e.__scopeMenu},d=re.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return re.useEffect(()=>d,[d]),re.useEffect(()=>{const p=s.current;return()=>{window.clearTimeout(p),l(null)}},[s,l]),Q.jsx(z5,{asChild:!0,...u,children:Q.jsx(Vpe,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":dme(n.open),...e,ref:W0(t,r.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Xt(e.onPointerMove,uk(p=>{i.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:Xt(e.onPointerLeave,uk(p=>{d();const m=n.content?.getBoundingClientRect();if(m){const A=n.content?.dataset.side,g=A==="right",h=g?-5:5,f=m[g?"left":"right"],b=m[g?"right":"left"];i.onPointerGraceIntentChange({area:[{x:p.clientX+h,y:p.clientY},{x:f,y:m.top},{x:b,y:m.top},{x:b,y:m.bottom},{x:f,y:m.bottom}],side:A}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(p),p.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Xt(e.onKeyDown,p=>{const m=i.searchRef.current!=="";e.disabled||m&&p.key===" "||Ddt[a.dir].includes(p.key)&&(n.onOpenChange(!0),n.content?.focus(),p.preventDefault())})})})});cme.displayName=lk;var lme="MenuSubContent",ume=re.forwardRef((e,t)=>{const n=Hpe(oc,e.__scopeMenu),{forceMount:a=n.forceMount,...r}=e,i=mA(oc,e.__scopeMenu),o=ck(oc,e.__scopeMenu),s=sme(lme,e.__scopeMenu),l=re.useRef(null),u=oa(t,l);return Q.jsx(sk.Provider,{scope:e.__scopeMenu,children:Q.jsx(Vs,{present:a||i.open,children:Q.jsx(sk.Slot,{scope:e.__scopeMenu,children:Q.jsx(Y5,{id:s.contentId,"aria-labelledby":s.triggerId,...r,ref:u,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{o.isUsingKeyboardRef.current&&l.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:Xt(e.onFocusOutside,d=>{d.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Xt(e.onEscapeKeyDown,d=>{o.onClose(),d.preventDefault()}),onKeyDown:Xt(e.onKeyDown,d=>{const p=d.currentTarget.contains(d.target),m=Qdt[o.dir].includes(d.key);p&&m&&(i.onOpenChange(!1),s.trigger?.focus(),d.preventDefault())})})})})})});ume.displayName=lme;function dme(e){return e?"open":"closed"}function Yx(e){return e==="indeterminate"}function Z5(e){return Yx(e)?"indeterminate":e?"checked":"unchecked"}function Vdt(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Jdt(e,t){return e.map((n,a)=>e[(t+a)%e.length])}function Xdt(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=Jdt(e,Math.max(i,0));r.length===1&&(o=o.filter(u=>u!==n));const l=o.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function ept(e,t){const{x:n,y:a}=e;let r=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const s=t[i],l=t[o],u=s.x,d=s.y,p=l.x,m=l.y;d>a!=m>a&&n<(p-u)*(a-d)/(m-d)+u&&(r=!r)}return r}function tpt(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ept(n,t)}function uk(e){return t=>t.pointerType==="mouse"?e(t):void 0}var npt=Upe,apt=z5,rpt=Ype,ipt=Wpe,opt=W5,spt=Kpe,cpt=Hx,lpt=Jpe,upt=eme,dpt=nme,ppt=rme,mpt=ime,Apt=ome,gpt=cme,hpt=ume,Wx="DropdownMenu",[fpt]=gl(Wx,[Gpe]),Bo=Gpe(),[bpt,pme]=fpt(Wx),mme=e=>{const{__scopeDropdownMenu:t,children:n,dir:a,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,l=Bo(t),u=re.useRef(null),[d,p]=hl({prop:r,defaultProp:i??!1,onChange:o,caller:Wx});return Q.jsx(bpt,{scope:t,triggerId:Ic(),triggerRef:u,contentId:Ic(),open:d,onOpenChange:p,onOpenToggle:re.useCallback(()=>p(m=>!m),[p]),modal:s,children:Q.jsx(npt,{...l,open:d,onOpenChange:p,dir:a,modal:s,children:n})})};mme.displayName=Wx;var Ame="DropdownMenuTrigger",gme=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:a=!1,...r}=e,i=pme(Ame,n),o=Bo(n);return Q.jsx(apt,{asChild:!0,...o,children:Q.jsx(Nn.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...r,ref:W0(t,i.triggerRef),onPointerDown:Xt(e.onPointerDown,s=>{!a&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:Xt(e.onKeyDown,s=>{a||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});gme.displayName=Ame;var ypt="DropdownMenuPortal",hme=e=>{const{__scopeDropdownMenu:t,...n}=e,a=Bo(t);return Q.jsx(rpt,{...a,...n})};hme.displayName=ypt;var fme="DropdownMenuContent",bme=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=pme(fme,n),i=Bo(n),o=re.useRef(!1);return Q.jsx(ipt,{id:r.contentId,"aria-labelledby":r.triggerId,...i,...a,ref:t,onCloseAutoFocus:Xt(e.onCloseAutoFocus,s=>{o.current||r.triggerRef.current?.focus(),o.current=!1,s.preventDefault()}),onInteractOutside:Xt(e.onInteractOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!r.modal||d)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});bme.displayName=fme;var wpt="DropdownMenuGroup",kpt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(opt,{...r,...a,ref:t})});kpt.displayName=wpt;var vpt="DropdownMenuLabel",_pt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(spt,{...r,...a,ref:t})});_pt.displayName=vpt;var Cpt="DropdownMenuItem",yme=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(cpt,{...r,...a,ref:t})});yme.displayName=Cpt;var Ept="DropdownMenuCheckboxItem",xpt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(lpt,{...r,...a,ref:t})});xpt.displayName=Ept;var Bpt="DropdownMenuRadioGroup",Ipt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(upt,{...r,...a,ref:t})});Ipt.displayName=Bpt;var Spt="DropdownMenuRadioItem",Dpt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(dpt,{...r,...a,ref:t})});Dpt.displayName=Spt;var Qpt="DropdownMenuItemIndicator",Tpt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(ppt,{...r,...a,ref:t})});Tpt.displayName=Qpt;var Npt="DropdownMenuSeparator",Fpt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(mpt,{...r,...a,ref:t})});Fpt.displayName=Npt;var Lpt="DropdownMenuArrow",Rpt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(Apt,{...r,...a,ref:t})});Rpt.displayName=Lpt;var Mpt="DropdownMenuSubTrigger",Opt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(gpt,{...r,...a,ref:t})});Opt.displayName=Mpt;var Ppt="DropdownMenuSubContent",$pt=re.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...a}=e,r=Bo(n);return Q.jsx(hpt,{...r,...a,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});$pt.displayName=Ppt;var jpt=mme,qpt=gme,Gpt=hme,zpt=bme,Upt=yme;function wme({...e}){return Q.jsx(jpt,{"data-slot":"dropdown-menu",...e})}function kme({...e}){return Q.jsx(qpt,{"data-slot":"dropdown-menu-trigger",...e})}function vme({className:e,sideOffset:t=4,...n}){return Q.jsx(Gpt,{children:Q.jsx(zpt,{"data-slot":"dropdown-menu-content",sideOffset:t,className:yt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function dk({className:e,inset:t,variant:n="default",...a}){return Q.jsx(Upt,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:yt("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a})}const _me=20;function Hpt(){const t=Kt.getConfig().app?.cacheNamespace||"gentiq";return SNe({queryKey:[t,"conversations"],queryFn:async({pageParam:n=0})=>{const a=await Kt.getHistory(n,_me);return{threads:a.threads.map(r=>({id:`/${r.id}`,firstMessage:r.title||r.firstMessage||"Chat",timestamp:new Date(r.created_at).getTime(),pinned:!!r.pinned})),nextSkip:n+_me,hasMore:n+a.threads.length<(a.total_count??0)}},initialPageParam:0,getNextPageParam:n=>n.hasMore?n.nextSkip:void 0,staleTime:1e3*60*5})}async function Ypt(e,t,n,a){const i=Kt.getConfig().app?.cacheNamespace||"gentiq";try{await Kt.deleteThread(e),t.invalidateQueries({queryKey:[i,"conversations"]}),a===e&&n("/")}catch(o){console.error("Failed to delete conversation:",o),Zo.error("Failed to delete conversation")}}function Cme({side:e="left"}){const{t,i18n:n}=fa(["sidebar","translation"]),{data:a,fetchNextPage:r,hasNextPage:i,isFetchingNextPage:o,isLoading:s}=Hpt(),{history:l,app:u}=Or(),d=u?.basePath||"/",p=l?.enabled??!1,m=a?.pages.flatMap(U=>U.threads)??[],[A,g]=D5(),h=fu(),f=te.useRef(null),b=te.useCallback(U=>{f.current&&(f.current.disconnect(),f.current=null),U&&i&&!o&&(f.current=new IntersectionObserver(W=>{W[0].isIntersecting&&r()},{threshold:0,rootMargin:"100px"}),f.current.observe(U))},[i,r,o]),w=Kt.getConfig().app?.cacheNamespace||"gentiq",[k,_]=te.useState(!1),[E,v]=te.useState(null),[x,S]=te.useState(""),[I,D]=te.useState(null),[N,R]=te.useState(""),B=te.useRef(null),T=te.useCallback((U,W)=>{U.button!==0||U.metaKey||U.ctrlKey||(U.preventDefault(),g(W))},[g]),F=m.filter(U=>U.firstMessage?.toLowerCase().includes(x.toLowerCase())).sort((U,W)=>U.pinned&&!W.pinned?-1:!U.pinned&&W.pinned?1:W.timestamp-U.timestamp),L=async U=>{try{await Kt.pinThread(U.id.replace(/^\//,""),!U.pinned),h.invalidateQueries({queryKey:[w,"conversations"]}),Zo.success(U.pinned?t("unpinned_success"):t("pinned_success"))}catch{Zo.error(t("pin_failed"))}},M=async U=>{try{const W=await Kt.shareThread(U.id.replace(/^\//,"")),Y=`${window.location.origin}${W.url}`;navigator.clipboard.writeText(Y),Zo.success(t("share_success"),{description:t("share_description")})}catch{Zo.error(t("share_failed"))}},P=U=>{D(U.id),R(U.firstMessage??""),setTimeout(()=>B.current?.focus(),0)},O=U=>{U?.preventDefault(),U?.stopPropagation(),D(null),R("")},$=async U=>{if(U?.preventDefault(),U&&"stopPropagation"in U&&U.stopPropagation(),!(!I||!N.trim()))try{await Kt.updateThreadTitle(I,N),h.invalidateQueries({queryKey:[w,"conversations"]}),D(null),Zo.success(t("rename_success"))}catch{Zo.error(t("rename_failed"))}},q=U=>{v(U),_(!0)},j=()=>{E&&(Ypt(E.id,h,g,A),_(!1),v(null),Zo.success(t("chat_deleted_success")))},K=U=>new Intl.DateTimeFormat(n.language,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",calendar:n.language==="fa"?"persian":"gregory"}).format(new Date(U));return Q.jsx(M1,{children:Q.jsxs(Eut,{collapsible:"icon",side:e,children:[Q.jsx(Iut,{className:"custom-scrollbar",children:Q.jsxs(Sut,{children:[Q.jsx(Xde,{className:"mt-2 mb-6 px-2 group-data-[collapsible=icon]:px-0",children:Q.jsx(epe,{className:"group-data-[collapsible=icon]:flex group-data-[collapsible=icon]:justify-center",children:Q.jsx(tpe,{asChild:!0,tooltip:t("tooltip_new_conversation"),className:"h-[52px] rounded-2xl bg-white/40 dark:bg-white/5 border border-border/40 hover:border-primary/50 hover:bg-white/90 dark:hover:bg-white/10 text-foreground shadow-[0_4px_12px_-4px_rgba(0,0,0,0.1)] hover:shadow-[0_12px_30px_-10px_var(--glow)] transition-all duration-500 group-data-[collapsible=icon]:size-10 group-data-[collapsible=icon]:p-0! mb-2 group/new-chat overflow-hidden backdrop-blur-md group-data-[collapsible=icon]:mx-auto",children:Q.jsxs("a",{href:M4(d,"/"),onClick:U=>T(U,"/"),className:"px-5 group-data-[collapsible=icon]:px-0 group-data-[collapsible=icon]:justify-center flex items-center gap-3 active:scale-[0.96] w-full h-full relative",children:[Q.jsx("div",{className:"absolute inset-0 bg-linear-to-tr from-primary/10 via-transparent to-primary/5 opacity-0 group-hover/new-chat:opacity-100 transition-opacity duration-700"}),Q.jsx("div",{className:"relative size-8 rounded-xl bg-linear-to-br from-primary/20 to-primary/5 flex items-center justify-center shrink-0 group-hover/new-chat:from-primary/30 group-hover/new-chat:to-primary/10 transition-all duration-500 shadow-inner",children:Q.jsx(J6e,{className:"size-5! text-primary transition-all duration-700 group-hover/new-chat:rotate-180 group-hover/new-chat:scale-110"})}),Q.jsx("span",{className:"font-bold text-[0.95rem] group-data-[collapsible=icon]:hidden tracking-tight bg-clip-text text-foreground/90 group-hover/new-chat:text-foreground transition-colors",children:t("new_conversation")})]})})})}),p&&Q.jsx(Jde,{className:"group-data-[collapsible=icon]:hidden mb-6 px-2",children:Q.jsxs("div",{className:"relative group/search",children:[Q.jsx(nLe,{className:"absolute left-3 top-1/2 -translate-y-1/2 size-4 opacity-40 group-focus-within/search:opacity-70 transition-opacity"}),Q.jsx(rs,{placeholder:t("search_conversations"),value:x,onChange:U=>S(U.target.value),className:"pl-9 h-10 bg-accent/15 border border-border/40 focus-visible:ring-primary/20 rounded-xl transition-all"})]})}),p&&Q.jsxs(Jde,{className:"group-data-[collapsible=icon]:hidden",children:[Q.jsxs(Xde,{children:[F.map((U,W)=>{const Y=I===U.id,ae=dh(U.firstMessage??""),V=ae==="rtl";return Q.jsx(epe,{className:"group/sidebar-menu-item relative",children:Y?Q.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 w-full",children:[Q.jsx(rs,{ref:B,value:N,onChange:X=>R(X.target.value),onKeyDown:X=>{X.key==="Enter"&&$(),X.key==="Escape"&&O()},className:"h-8 py-0 px-2 text-sm",dir:dh(N)}),Q.jsx(Nr,{size:"icon",variant:"ghost",className:"size-8 shrink-0 text-green-600 hover:text-green-700 hover:bg-green-50",onClick:$,children:Q.jsx(ph,{className:"size-4"})}),Q.jsx(Nr,{size:"icon",variant:"ghost",className:"size-8 shrink-0 text-destructive hover:bg-destructive/10",onClick:O,children:Q.jsx(jm,{className:"size-4"})})]}):Q.jsxs(Q.Fragment,{children:[Q.jsx(tpe,{asChild:!0,className:yt("h-auto py-2.5 px-3",{"bg-accent opacity-100 pointer-events-none":U.id===A,"opacity-70 hover:opacity-100":U.id!==A}),children:Q.jsxs("a",{href:M4(d,U.id),onClick:X=>T(X,U.id),dir:ae,className:yt("flex flex-col gap-0.5 w-full overflow-hidden",V?"items-end":"items-start"),children:[Q.jsx("span",{className:yt("truncate w-full font-medium text-[0.9375rem]",n.language==="fa"?"pl-16 text-right":"pr-16 text-left"),children:U.firstMessage}),Q.jsx("div",{className:yt("text-[10px] opacity-40 w-full",n.language==="fa"?"pl-16 text-right":"pr-16 text-left"),children:K(U.timestamp)})]})}),Q.jsxs("div",{className:yt("absolute top-1/2 -translate-y-1/2 flex items-center gap-1 transition-all duration-200 z-10",n.language==="fa"?"left-2":"right-1.5"),children:[U.pinned&&Q.jsx(jW,{className:"size-3.5 text-primary opacity-70 md:absolute md:inset-0 md:m-auto md:group-hover/sidebar-menu-item:opacity-0 transition-opacity pointer-events-none"}),Q.jsxs(wme,{dir:n.language==="fa"?"rtl":"ltr",children:[Q.jsx(kme,{asChild:!0,children:Q.jsx(Nr,{variant:"ghost",size:"icon",className:"size-7 rounded-full opacity-100 md:opacity-0 md:group-hover/sidebar-menu-item:opacity-100 hover:bg-accent hover:text-accent-foreground data-[state=open]:opacity-100 transition-all",children:Q.jsx(j6e,{className:"size-3.5"})})}),Q.jsxs(vme,{align:"end",className:"min-w-[120px] p-1",children:[l?.showPin!==!1&&Q.jsxs(dk,{onSelect:()=>L(U),className:"cursor-pointer flex items-center gap-2",children:[U.pinned?Q.jsx(V6e,{className:"size-4"}):Q.jsx(jW,{className:"size-4"}),Q.jsx("span",{children:U.pinned?t("unpin_conversation"):t("pin_conversation")})]}),l?.showShare!==!1&&Q.jsxs(dk,{onSelect:()=>M(U),className:"cursor-pointer flex items-center gap-2",children:[Q.jsx(qW,{className:"size-4"}),Q.jsx("span",{children:t("share_conversation")})]}),(l?.showRename??!1)&&Q.jsxs(dk,{onSelect:()=>P(U),className:"cursor-pointer flex items-center gap-2",children:[Q.jsx(Z6e,{className:"size-4"}),Q.jsx("span",{children:t("rename_conversation")})]}),(l?.showDelete??!1)&&Q.jsxs(dk,{className:"text-destructive focus:text-destructive focus:bg-destructive/10 cursor-pointer flex items-center gap-2",onSelect:()=>q(U),children:[Q.jsx(lLe,{className:"size-4"}),Q.jsx("span",{children:t("delete_conversation")})]})]})]})]})]})},W)}),!s&&m.length===0&&!x&&Q.jsx("div",{className:"px-4 py-8 text-center text-sm opacity-40",children:t("no_conversations")})]}),Q.jsx("div",{ref:b,className:"h-4 w-full"}),o&&Q.jsxs("div",{className:"flex flex-col items-center gap-2 p-4 pt-0 opacity-60",children:[Q.jsx("div",{className:"size-4 border-2 border-primary border-t-transparent rounded-full animate-spin"}),Q.jsx("span",{className:"text-[10px] uppercase tracking-wider font-medium",children:t("loading_more")})]})]})]})}),Q.jsx(But,{}),Q.jsx(rN,{open:k,onOpenChange:_,children:Q.jsxs(iN,{onKeyDown:U=>{U.key==="Enter"&&(U.preventDefault(),j())},children:[Q.jsxs(dae,{children:[Q.jsx(pae,{children:t("delete_confirm_title")}),Q.jsx(yVe,{children:t("delete_confirm_description")})]}),Q.jsxs(bVe,{children:[Q.jsx(Nr,{variant:"outline",onClick:()=>{_(!1)},children:t("cancel")}),Q.jsx(Nr,{variant:"destructive",onClick:j,autoFocus:!0,children:t("delete")})]})]})})]})})}function Wpt({sidebar:e,header:t,components:n,classNames:a,disclaimer:r,welcome:i}){const{config:o}=Q4(),{history:s}=Or(),l=o?.language==="fa"?"right":"left",u=s?.enabled??!0;return Q.jsxs(Vde,{defaultOpen:u,children:[e!==void 0?e:u?Q.jsx(Cme,{side:l}):null,Q.jsxs("div",{className:"flex flex-col flex-1 h-dvh overflow-hidden relative",children:[t!==void 0?t:Q.jsx(Lpe,{}),Q.jsx("div",{className:yt("flex flex-col relative w-full flex-1 min-h-0 overflow-hidden","has-[.stick-to-bottom:empty]:overflow-visible has-[.stick-to-bottom:empty]:flex-initial transition-[flex] duration-200"),children:Q.jsx(Kde,{components:n,classNames:a,disclaimer:r,welcome:i})})]})]})}const Eme="/api";class Kpt{token=null;constructor(){this.token=localStorage.getItem("admin_token")}setToken(t){this.token=t,localStorage.setItem("admin_token",t)}clearToken(){this.token=null,localStorage.removeItem("admin_token"),localStorage.removeItem("admin_info")}getToken(){return this.token}async request(t,n={}){const a=new Headers(n.headers);a.has("Content-Type")||a.set("Content-Type","application/json"),this.token&&a.set("Authorization",`Bearer ${this.token}`);const r=await fetch(`${Eme}${t}`,{...n,headers:a});if(!r.ok){const i=await r.json().catch(()=>({error:"Request failed"}));throw new Error(i.error||`HTTP ${r.status}`)}return r.json()}async login(t,n){const a=await this.request("/admin/login",{method:"POST",body:JSON.stringify({username:t,password:n})});this.setToken(a.token);const r={admin_id:a.admin_id,username:a.username,name:a.name,permissions:a.permissions};return localStorage.setItem("admin_info",JSON.stringify(r)),a}async checkSetupStatus(){return this.request("/admin/setup-status")}async register(t,n,a,r){return this.request("/admin/admins",{method:"POST",body:JSON.stringify({username:t,password:n,name:a,permissions:r})})}async listAdmins(){return this.request("/admin/admins")}async updateAdmin(t,n){return this.request(`/admin/admins/${t}`,{method:"PATCH",body:JSON.stringify(n)})}async deleteAdmin(t){return this.request(`/admin/admins/${t}`,{method:"DELETE"})}async listPermissions(){return this.request("/admin/permissions")}async listThreads(t=0,n=50,a,r){const i=new URLSearchParams({skip:t.toString(),limit:n.toString()});return a&&i.append("query",a),r&&i.append("feedback",r),this.request(`/admin/chat-history/threads?${i}`)}async getThreadItems(t){return this.request(`/admin/chat-history/threads/${t}/items`)}async shareThread(t){return this.request(`/admin/chat-history/threads/${t}/share`,{method:"POST"})}async listUsers(t=0,n=100,a=""){const r=new URLSearchParams({skip:t.toString(),limit:n.toString()});return a&&r.append("query",a),this.request(`/admin/users?${r.toString()}`)}async createUser(t,n,a,r,i,o,s,l){const u=r!==void 0||i!==void 0||o!==void 0||s!==void 0?{tokens:r||0,requests:i||0,token_limit:o||r||0,request_limit:s||i||0}:void 0;return this.request("/admin/users",{method:"POST",body:JSON.stringify({phone:t,name:n,surname:a,balance:u,metadata:l})})}async updateUser(t,n){return this.request(`/admin/users/${t}`,{method:"PATCH",body:JSON.stringify(n)})}async deleteUser(t){return this.request(`/admin/users/${t}`,{method:"DELETE"})}async updateUserBalance(t,n,a,r,i){return this.request(`/admin/users/${t}/balance`,{method:"POST",body:JSON.stringify({tokens:n,requests:a,token_limit:r,request_limit:i})})}async refreshUserToken(t){return this.request(`/admin/users/${t}/refresh-token`,{method:"POST"})}async getAnalytics(t=30){return this.request(`/admin/analytics?days=${t}`)}async listJobs(t=20,n){const a=new URLSearchParams({limit:t.toString()});return n&&a.append("type",n),this.request(`/admin/jobs?${a}`)}async cancelJob(t){return this.request(`/admin/jobs/${t}/cancel`,{method:"POST"})}async getAttachmentBlob(t){const n={};this.token&&(n.Authorization=`Bearer ${this.token}`);const a=await fetch(`${Eme}/admin/chat-history/attachments/${t}`,{method:"GET",headers:n});if(!a.ok){const r=await a.json().catch(()=>({error:"Request failed"}));throw new Error(r.error||`HTTP ${a.status}`)}return a.blob()}}const Rn=new Kpt;function Zpt({onLoginSuccess:e}){const{t,i18n:n}=fa(["admin","translation"]),{app:a}=Or(),{theme:r}=zw(),[i,o]=te.useState(""),[s,l]=te.useState(""),[u,d]=te.useState(""),[p,m]=te.useState(""),[A,g]=te.useState(!1),[h,f]=te.useState(null),[b,y]=te.useState("light");te.useEffect(()=>{if(r==="system"){const x=window.matchMedia("(prefers-color-scheme: dark)").matches;y(x?"dark":"light")}else y(r)},[r]);const w=te.useMemo(()=>a?.logo?typeof a.logo=="string"?a.logo:b==="dark"?a.logo.dark:a.logo.light:N5,[a?.logo,b]),k=a?.adminTitle||a?.name,_=n.language==="fa";te.useEffect(()=>{Rn.checkSetupStatus().then(x=>f(x.needs_setup)).catch(()=>f(!1))},[]);const E=async x=>{x.preventDefault(),m(""),g(!0);try{await Rn.login(i,s),e()}catch(S){m(S instanceof Error?S.message:t("login.error"))}finally{g(!1)}},v=async x=>{if(x.preventDefault(),m(""),s!==u){m(t("login.passwords_mismatch"));return}if(s.length<4){m(t("login.password_too_short"));return}g(!0);try{await Rn.register("admin",s,"Admin",["chat_history","admin_management","user_management","analytics"]),await Rn.login("admin",s),e()}catch(S){m(S instanceof Error?S.message:t("login.error"))}finally{g(!1)}};return h===null?Q.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:Q.jsx("div",{className:"w-6 h-6 border-2 border-border border-t-primary rounded-full animate-spin"})}):Q.jsxs("div",{className:"min-h-screen bg-background flex items-center justify-center p-4 relative overflow-hidden",dir:_?"rtl":"ltr",children:[Q.jsx("div",{className:"absolute top-[-10%] right-[-10%] w-[50%] h-[50%] bg-primary/10 rounded-full blur-3xl animate-pulse"}),Q.jsx("div",{className:"absolute bottom-[-10%] left-[-10%] w-[40%] h-[40%] bg-primary/5 dark:bg-primary/10 rounded-full blur-3xl"}),Q.jsxs("div",{className:"w-full max-w-md z-10",children:[Q.jsxs("div",{className:"glass rounded-3xl p-10 shadow-2xl",children:[Q.jsxs("div",{className:"text-center mb-10",children:[Q.jsxs("div",{className:"flex flex-col items-center gap-4 mb-6",children:[Q.jsx("img",{src:w,alt:k,className:"size-16 object-contain"}),Q.jsx("h1",{className:"text-3xl font-black bg-gradient-to-l from-primary to-primary/60 bg-clip-text text-transparent",children:h?t("login.setup_title"):k})]}),h&&Q.jsx("p",{className:"text-sm text-muted-foreground mt-3",children:t("login.setup_description")})]}),h?Q.jsxs("form",{onSubmit:v,className:"space-y-7",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-bold text-muted-foreground uppercase tracking-widest mb-3.5 mx-1",children:t("login.username")}),Q.jsx("input",{type:"text",value:"admin",disabled:!0,className:"w-full px-5 py-3.5 rounded-2xl border-0 bg-muted text-muted-foreground text-sm shadow-sm cursor-not-allowed"})]}),Q.jsxs("div",{children:[Q.jsx("label",{htmlFor:"setup-password",className:"block text-xs font-bold text-muted-foreground uppercase tracking-widest mb-3.5 mx-1",children:t("login.set_password")}),Q.jsx("input",{id:"setup-password",type:"password",value:s,onChange:x=>l(x.target.value),required:!0,className:"w-full px-5 py-3.5 rounded-2xl border-0 bg-card text-foreground placeholder-muted-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm text-left",placeholder:t("login.set_password_placeholder"),dir:"ltr"})]}),Q.jsxs("div",{children:[Q.jsx("label",{htmlFor:"setup-confirm",className:"block text-xs font-bold text-muted-foreground uppercase tracking-widest mb-3.5 mx-1",children:t("login.confirm_password")}),Q.jsx("input",{id:"setup-confirm",type:"password",value:u,onChange:x=>d(x.target.value),required:!0,className:"w-full px-5 py-3.5 rounded-2xl border-0 bg-card text-foreground placeholder-muted-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm text-left",placeholder:t("login.confirm_password_placeholder"),dir:"ltr"})]}),p&&Q.jsx("div",{className:"bg-destructive/10 border border-destructive/20 text-destructive px-4 py-3.5 rounded-2xl text-xs backdrop-blur-sm",children:p}),Q.jsx("button",{type:"submit",disabled:A,className:"w-full bg-primary text-primary-foreground font-bold py-4 px-6 rounded-2xl hover:opacity-90 transition-all text-sm shadow-lg hover:shadow-xl disabled:opacity-50 active:scale-[0.98]",children:A?Q.jsxs("div",{className:"flex items-center justify-center gap-2",children:[Q.jsx("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),Q.jsx("span",{children:t("login.setting_up")})]}):t("login.create_admin")})]}):Q.jsxs("form",{onSubmit:E,className:"space-y-7",children:[Q.jsxs("div",{children:[Q.jsx("label",{htmlFor:"username",className:"block text-xs font-bold text-muted-foreground uppercase tracking-widest mb-3.5 mx-1",children:t("login.username")}),Q.jsx("input",{id:"username",type:"text",value:i,onChange:x=>o(x.target.value),required:!0,className:"w-full px-5 py-3.5 rounded-2xl border-0 bg-card text-foreground placeholder-muted-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm text-left",placeholder:t("login.username_placeholder"),dir:"ltr"})]}),Q.jsxs("div",{children:[Q.jsx("label",{htmlFor:"password",className:"block text-xs font-bold text-muted-foreground uppercase tracking-widest mb-3.5 mx-1",children:t("login.password")}),Q.jsx("input",{id:"password",type:"password",value:s,onChange:x=>l(x.target.value),required:!0,className:"w-full px-5 py-3.5 rounded-2xl border-0 bg-card text-foreground placeholder-muted-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm text-left",placeholder:t("login.password_placeholder"),dir:"ltr"})]}),p&&Q.jsx("div",{className:"bg-destructive/10 border border-destructive/20 text-destructive px-4 py-3.5 rounded-2xl text-xs backdrop-blur-sm",children:p}),Q.jsx("button",{type:"submit",disabled:A,className:"w-full bg-primary text-primary-foreground font-bold py-4 px-6 rounded-2xl hover:opacity-90 transition-all text-sm shadow-lg hover:shadow-xl disabled:opacity-50 active:scale-[0.98]",children:A?Q.jsxs("div",{className:"flex items-center justify-center gap-2",children:[Q.jsx("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),Q.jsx("span",{children:t("login.logging_in")})]}):t("login.submit")})]})]}),Q.jsx("div",{className:"mt-10 text-center text-[10px] text-muted-foreground uppercase tracking-widest font-bold",children:Q.jsx("p",{children:t("login.copyright")})})]})]})}function Vpt(){const{t:e,i18n:t}=fa(["admin","translation"]),[n,a]=te.useState([]),[r,i]=te.useState(null),[o,s]=te.useState([]),[l,u]=te.useState(!1),[d,p]=te.useState(!1),[m,A]=te.useState(""),[g,h]=te.useState(""),[f,b]=te.useState(""),[y,w]=te.useState(0),[k,_]=te.useState(!0),E=t.language==="fa",v=E?"fa-IR":"en-US",x=async(L=!1)=>{L?p(!0):(u(!0),w(0)),A("");try{const M=L?y+50:0,P=await Rn.listThreads(M,50,g||void 0,f||void 0);L?(a(O=>[...O,...P.threads]),w(M)):(a(P.threads),w(0)),_(P.threads.length===50)}catch(M){A(M instanceof Error?M.message:e("error_loading"))}finally{u(!1),p(!1)}},S=async L=>{i(L),u(!0),A("");try{const M=await Rn.getThreadItems(L.id);s(M.items)}catch(M){A(M instanceof Error?M.message:e("error_loading"))}finally{u(!1)}},I=async(L,M)=>{L.stopPropagation();try{const P=await Rn.shareThread(M.id),O=`${window.location.origin}${P.url}`;navigator.clipboard.writeText(O),Zo.success(e("sidebar.share_success"),{description:e("sidebar.share_description")})}catch{Zo.error(e("sidebar.share_failed"))}};te.useEffect(()=>{const L=setTimeout(()=>{x()},500);return()=>clearTimeout(L)},[g,f]);const D=L=>{const M=new Date(L);return new Intl.DateTimeFormat(E?"fa-IR":"en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(M)},N=L=>{if(typeof L=="string")try{return JSON.stringify(JSON.parse(L),null,2)}catch{return L}return JSON.stringify(L,null,2)},R=({part:L,idx:M})=>{const[P,O]=te.useState(!1),$=L.tool_name||(L.type&&L.type.startsWith("tool-")?L.type.slice(5):"tool");return Q.jsxs("div",{dir:"ltr",className:"my-2 border border-border/50 rounded-xl overflow-hidden bg-muted/20 text-left",children:[Q.jsxs("div",{onClick:()=>O(!P),className:"px-2.5 py-1.5 bg-muted/50 border-b border-border/50 flex items-center justify-between cursor-pointer hover:bg-accent transition-colors",children:[Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsx("svg",{className:`w-3 h-3 text-gray-400 transition-transform ${P?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M19 9l-7 7-7-7"})}),Q.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:"Tool"}),Q.jsx("span",{className:"text-xs font-semibold",children:$})]}),Q.jsx("span",{className:`text-[10px] px-2 py-0.5 rounded-full ${L.state==="output-available"?"bg-primary/10 text-primary":"bg-muted text-muted-foreground"}`,children:L.state==="output-available"?e("chat_history.output_available"):e("chat_history.running")})]}),P&&Q.jsxs("div",{className:"p-2.5 space-y-2.5 animate-in fade-in slide-in-from-top-1 duration-200",children:[Q.jsxs("div",{children:[Q.jsx("div",{className:"text-[10px] uppercase font-bold text-muted-foreground mb-1",children:"Input"}),Q.jsx("pre",{className:"text-xs bg-black/5 dark:bg-black/20 p-2 rounded-lg overflow-x-auto",children:N(L.input)})]}),(L.output||L.error_text||L.errorText)&&Q.jsxs("div",{children:[Q.jsx("div",{className:"text-[10px] uppercase font-bold text-muted-foreground mb-1",children:L.error_text||L.errorText?"Error":"Output"}),Q.jsx("pre",{className:`text-xs p-2 rounded-lg overflow-x-auto ${L.error_text||L.errorText?"bg-destructive/10 text-destructive":"bg-primary/5 text-foreground/80"}`,children:N(L.output||L.error_text||L.errorText)})]})]})]},M)},B=async(L,M)=>{try{const P=await Rn.getAttachmentBlob(L),O=window.URL.createObjectURL(P),$=document.createElement("a");$.href=O,$.download=M||L.split("/").pop()||"download",document.body.appendChild($),$.click(),window.URL.revokeObjectURL(O),document.body.removeChild($)}catch(P){console.error("Download failed:",P),A(P instanceof Error?P.message:"Download failed")}},T=(L,M)=>typeof L=="string"?Q.jsx("div",{children:L},M):L.type==="text"?Q.jsx("div",{className:"whitespace-pre-wrap",dir:"auto",children:L.text},M):L.type==="reasoning"?Q.jsxs("div",{className:"my-2 p-2.5 bg-muted/40 rounded-lg border border-border text-xs italic text-muted-foreground",dir:"auto",children:[Q.jsx("div",{className:"font-bold mb-1 uppercase tracking-tighter opacity-70",children:"Reasoning"}),L.text]},M):L.type==="dynamic-tool"||L.type&&L.type.startsWith("tool-")||L.tool_call_id?Q.jsx(R,{part:L,idx:M},M):L.type==="file"?Q.jsxs("div",{className:"my-2 flex items-center justify-between p-2.5 bg-muted/40 rounded-xl border border-border group hover:border-primary/30 transition-all",children:[Q.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[Q.jsx("div",{className:"flex-shrink-0 w-8 h-8 flex items-center justify-center bg-primary/10 rounded-lg text-primary",children:Q.jsx("span",{className:"text-xl",children:"📎"})}),Q.jsxs("div",{className:"flex flex-col min-w-0",children:[Q.jsx("span",{className:"text-sm text-foreground font-medium truncate",title:L.filename||"File",children:L.filename||e("chat_history.unnamed_file")}),Q.jsx("span",{className:"text-[10px] text-muted-foreground uppercase tracking-wider font-bold",children:L.media_type||L.mime_type||L.mediaType||"file"})]})]}),L.object_name&&Q.jsx("button",{onClick:()=>B(L.object_name,L.filename),className:"flex-shrink-0 p-2 hover:bg-card rounded-lg border border-transparent hover:border-border transition-all text-muted-foreground hover:text-primary",title:e("chat_history.download_file","Download File"),children:Q.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})})})]},M):Q.jsx("div",{className:"my-2 p-2 bg-muted/40 rounded-lg border border-border text-xs font-mono opacity-60",children:JSON.stringify(L)},M),F=L=>{const{scrollTop:M,scrollHeight:P,clientHeight:O}=L.currentTarget;P-M<=O+50&&!d&&k&&x(!0)};return Q.jsxs("div",{className:"p-5 h-full flex flex-col gap-4 overflow-hidden",dir:E?"rtl":"ltr",children:[Q.jsxs("div",{className:"flex flex-col gap-3",children:[Q.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[Q.jsx("h1",{className:"text-2xl font-bold text-foreground tracking-tight whitespace-nowrap",children:e("chat_history.title")}),Q.jsxs("div",{className:"flex flex-col md:flex-row gap-3 flex-1 max-w-3xl justify-end",children:[Q.jsxs("form",{onSubmit:L=>{L.preventDefault(),x()},className:"flex-1 flex gap-2",children:[Q.jsx("input",{type:"text",value:g,onChange:L=>h(L.target.value),placeholder:e("chat_history.search_placeholder"),className:"flex-1 px-4 py-2.5 border-0 rounded-xl glass-surface text-foreground placeholder-muted-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm"}),Q.jsx("button",{type:"submit",className:"px-5 py-2.5 bg-primary text-primary-foreground rounded-xl hover:opacity-90 transition-all font-semibold text-sm shadow-sm hover:shadow-md",children:e("chat_history.search_button")})]}),Q.jsxs("select",{value:f,onChange:L=>b(L.target.value),className:"px-4 py-2.5 border-0 rounded-xl glass-surface text-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm min-w-[180px]",children:[Q.jsx("option",{value:"",children:e("chat_history.all_feedbacks","All Feedbacks")}),Q.jsx("option",{value:"liked",children:e("chat_history.liked_feedbacks","Liked 👍")}),Q.jsx("option",{value:"disliked",children:e("chat_history.disliked_feedbacks","Disliked 👎")}),Q.jsx("option",{value:"any",children:e("chat_history.any_feedback","With Feedback")})]})]})]}),m&&Q.jsx("div",{className:"bg-destructive/10 border border-destructive/20 text-destructive px-4 py-3 rounded-xl text-sm backdrop-blur-sm",children:m})]}),Q.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[380px_1fr] gap-4 flex-1 min-h-0",children:[Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm overflow-hidden flex flex-col min-w-0",children:[Q.jsx("div",{className:"px-5 py-2.5 border-b border-border/30",children:Q.jsxs("h2",{className:"text-sm font-medium text-muted-foreground uppercase tracking-wide",children:[e("chat_history.threads_list")," (",(n.length||0).toLocaleString(v),")"]})}),Q.jsx("div",{className:"flex-1 overflow-y-auto p-2 custom-scrollbar",onScroll:F,children:l&&n.length===0?Q.jsx("div",{className:"p-8 text-center text-muted-foreground text-sm",children:e("chat_history.no_threads")}):Q.jsxs("div",{className:"space-y-1",children:[n.map(L=>Q.jsxs("div",{onClick:()=>S(L),className:`p-2.5 cursor-pointer transition-all rounded-xl border ${r?.id===L.id?"bg-card border-border shadow-sm":"border-transparent hover:bg-muted/50"}`,children:[Q.jsxs("div",{className:"flex justify-between items-start mb-1.5 gap-4",children:[Q.jsx("h3",{className:`font-medium text-sm truncate flex-1 ${r?.id===L.id?"text-primary":"text-foreground"}`,title:L.title||e("chat_history.no_thread_title"),children:L.title||e("chat_history.no_thread_title")}),Q.jsxs("div",{className:"flex gap-1",children:[L.feedback_info&&L.feedback_info.like>0&&Q.jsx("span",{className:"text-xs",children:"👍"}),L.feedback_info&&L.feedback_info.dislike>0&&Q.jsx("span",{className:"text-xs",children:"👎"})]})]}),Q.jsxs("div",{className:"text-xs space-y-1.5 text-muted-foreground",children:[L.user_info&&Q.jsxs("div",{className:"font-medium text-foreground truncate",title:`${L.user_info.name} ${L.user_info.surname} ${L.user_info.phone?` • ${L.user_info.phone}`:""}`,children:[L.user_info.name," ",L.user_info.surname,L.user_info.phone&&` • ${L.user_info.phone}`]}),L.metadata?.usage&&Q.jsxs("div",{className:"flex gap-2 mt-2 pt-2 border-border/30",children:[Q.jsx("span",{className:"inline-flex items-center gap-1 bg-muted/30 px-2 py-0.5 rounded-md text-[9px] text-muted-foreground",children:e("chat_history.input_tokens",{value:(L.metadata.usage.input_tokens||0).toLocaleString(v)})}),Q.jsx("span",{className:"inline-flex items-center gap-1 bg-muted/30 px-2 py-0.5 rounded-md text-[9px] text-muted-foreground",children:e("chat_history.output_tokens",{value:(L.metadata.usage.output_tokens||0).toLocaleString(v)})})]}),Q.jsx("div",{className:"text-[10px] text-muted-foreground mt-1",children:D(L.created_at)})]})]},L.id)),d&&Q.jsx("div",{className:"p-4 text-center text-muted-foreground text-xs",children:e("loading_more")})]})})]}),Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm overflow-hidden flex flex-col",children:[Q.jsxs("div",{className:"px-5 py-2.5 border-b border-border/30 flex items-center justify-between gap-4",children:[Q.jsx("h2",{className:"text-sm font-medium text-muted-foreground uppercase tracking-wide truncate",children:r?e("chat_history.messages_for",{title:r.title||e("chat_history.no_thread_title")}):e("chat_history.messages")}),r&&Q.jsx("button",{onClick:L=>I(L,r),className:"flex-shrink-0 w-8 h-8 rounded-full bg-primary/10 text-primary flex items-center justify-center hover:bg-primary/20 transition-all shadow-sm",title:e("sidebar.share_conversation"),children:Q.jsx(qW,{className:"w-4 h-4"})})]}),Q.jsx("div",{className:"flex-1 overflow-y-auto p-4 custom-scrollbar",children:r?l?Q.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground text-sm",children:e("chat_history.loading_messages")}):o.length===0?Q.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground text-sm",children:e("chat_history.empty_thread")}):Q.jsx("div",{className:"space-y-6",children:o.map(L=>{const M=L.role==="user",P=L.role==="assistant";return Q.jsxs("div",{className:`p-3.5 rounded-2xl transition-all relative ${M?"bg-primary/10 ms-12 rounded-te-sm":P?"glass shadow-sm me-12 rounded-ts-sm":"bg-muted/30 border border-border/50"}`,children:[L.feedback&&Q.jsx("div",{className:"absolute -bottom-2 -left-2 flex items-center justify-center w-8 h-8 rounded-full shadow-md bg-card border border-border animate-in fade-in zoom-in duration-300 z-10",children:Q.jsx("span",{className:"text-base",children:L.feedback==="like"?"👍":"👎"})}),Q.jsxs("div",{className:"flex justify-between items-center mb-1.5",children:[Q.jsx("span",{className:`text-[10px] font-bold uppercase tracking-wider ${M||P?"text-primary":"text-muted-foreground"}`,children:M?e("chat_history.user_label"):P?e("chat_history.assistant_label"):`${L.role}`}),Q.jsx("span",{className:"text-[10px] text-muted-foreground",children:D(L.created_at)})]}),Q.jsx("div",{className:"text-sm text-foreground leading-relaxed",dir:"auto",children:L.parts&&L.parts.length>0?L.parts.map((O,$)=>T(O,$)):typeof L.content=="object"?Q.jsx("pre",{className:"text-xs font-mono bg-muted/40 p-2.5 rounded-xl",dir:"ltr",children:JSON.stringify(L.content,null,2)}):L.content})]},L.id)})}):Q.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground",children:[Q.jsx("svg",{className:"w-12 h-12 mb-4 opacity-50",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),Q.jsx("p",{className:"text-sm",children:e("chat_history.select_thread")})]})})]})]})]})}function Jpt(){const{t:e,i18n:t}=fa(["admin","translation"]),[n,a]=te.useState([]),[r,i]=te.useState(!1),[o,s]=te.useState(""),[l,u]=te.useState(!1),[d,p]=te.useState(null),[m,A]=te.useState([]),[g,h]=te.useState(null),f=t.language==="fa",[b,y]=te.useState({username:"",password:"",name:"",permissions:[]}),w=async()=>{i(!0),s("");try{const D=await Rn.listAdmins();a(D.admins||[]);const N=localStorage.getItem("admin_info");N&&h(JSON.parse(N).admin_id)}catch(D){s(D instanceof Error?D.message:e("error_loading"))}finally{i(!1)}},k=async()=>{try{const D=await Rn.listPermissions();A(D.permissions)}catch(D){console.error("Failed to load permissions",D)}};te.useEffect(()=>{w(),k()},[]);const _=async D=>{D.preventDefault(),i(!0);try{await Rn.register(b.username,b.password,b.name,b.permissions),u(!1),y({username:"",password:"",name:"",permissions:[]}),w()}catch(N){s(N instanceof Error?N.message:e("error_loading"))}finally{i(!1)}},E=async D=>{if(D.preventDefault(),!!d){i(!0);try{const N={name:b.name,permissions:b.permissions};if(b.password&&(N.password=b.password),await Rn.updateAdmin(d.id,N),d.id===g){const R=localStorage.getItem("admin_info");if(R){const B=JSON.parse(R);B.name=b.name,B.permissions=b.permissions,localStorage.setItem("admin_info",JSON.stringify(B)),window.location.reload();return}}p(null),y({username:"",password:"",name:"",permissions:[]}),w()}catch(N){s(N instanceof Error?N.message:e("error_loading"))}finally{i(!1)}}},v=async D=>{if(confirm(e("admins.confirm_delete_admin")))try{await Rn.deleteAdmin(D),w()}catch(N){s(N instanceof Error?N.message:e("error_loading"))}},x=D=>{p(D),y({username:D.username,password:"",name:D.name,permissions:D.permissions}),u(!0)},S=D=>{y(N=>({...N,permissions:N.permissions.includes(D)?N.permissions.filter(R=>R!==D):[...N.permissions,D]}))},I=D=>{const N=`admins.perm_${D}`,R=e(N);if(R!==N)return R;switch(D){case"chat_history":return e("admins.perm_chat_history");case"admin_management":return e("admins.perm_admin_management");case"user_management":return e("admins.perm_user_management");case"analytics":return e("admins.perm_analytics");default:return D}};return Q.jsxs("div",{className:"h-full flex flex-col p-5 overflow-hidden gap-4",dir:f?"rtl":"ltr",children:[Q.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-3 flex-shrink-0",children:[Q.jsx("h1",{className:"text-2xl font-bold text-foreground tracking-tight whitespace-nowrap",children:e("admins.title")}),Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsx("div",{className:"glass-surface px-4 py-2.5 rounded-xl text-xs font-medium text-muted-foreground border border-border shadow-sm",children:e("admins.admin_count",{count:n.length})}),Q.jsx("button",{onClick:()=>{p(null),y({username:"",password:"",name:"",permissions:[]}),u(!0)},className:"px-4 py-2.5 bg-primary text-primary-foreground rounded-xl text-sm font-semibold hover:opacity-90 transition-all shadow-sm hover:shadow-md whitespace-nowrap",children:e("admins.add_admin")})]})]}),o&&Q.jsx("div",{className:"bg-destructive/10 border border-destructive/20 text-destructive px-4 py-3 rounded-xl text-sm backdrop-blur-sm flex-shrink-0",children:o}),l&&Q.jsx("div",{className:"fixed inset-0 bg-background/20 backdrop-blur-md flex items-center justify-center z-50 p-4",children:Q.jsxs("div",{className:"bg-card rounded-2xl border border-border w-full max-w-md shadow-2xl overflow-hidden",children:[Q.jsx("div",{className:"px-6 py-5 border-b border-border bg-muted/20",children:Q.jsx("h3",{className:"text-lg font-bold text-foreground",children:e(d?"admins.edit_admin":"admins.add_admin")})}),Q.jsx("div",{className:"p-8",children:Q.jsxs("form",{onSubmit:d?E:_,className:"space-y-5",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("admins.username")}),Q.jsx("input",{type:"text",disabled:!!d,value:b.username,onChange:D=>y({...b,username:D.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground disabled:opacity-50 focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono dir-ltr",required:!0,dir:"ltr"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("admins.name")}),Q.jsx("input",{type:"text",value:b.name,onChange:D=>y({...b,name:D.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm",required:!0})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e(d?"admins.password_edit":"admins.password")}),Q.jsx("input",{type:"password",value:b.password,onChange:D=>y({...b,password:D.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono dir-ltr",required:!d,dir:"ltr"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("admins.permissions")}),Q.jsx("div",{className:"space-y-3 p-4 bg-muted/30 rounded-xl border border-border",children:m.map(D=>Q.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[Q.jsx("div",{className:"relative flex items-center",children:Q.jsx("input",{type:"checkbox",checked:b.permissions.includes(D),onChange:()=>S(D),disabled:b.username==="admin"&&D==="admin_management",className:"peer h-4 w-4 rounded border-input text-primary focus:ring-ring transition-all disabled:opacity-50"})}),Q.jsx("span",{className:"text-sm text-foreground/70 group-hover:text-foreground transition-colors select-none",children:I(D)})]},D))})]}),Q.jsxs("div",{className:"flex gap-3 pt-4",children:[Q.jsx("button",{type:"button",onClick:()=>u(!1),className:"flex-1 px-4 py-3 bg-secondary text-secondary-foreground border border-border rounded-xl text-sm font-medium hover:bg-secondary/80 transition-colors",children:e("cancel")}),Q.jsx("button",{type:"submit",disabled:r,className:"flex-1 px-4 py-3 bg-primary text-primary-foreground rounded-xl text-sm font-bold hover:opacity-90 transition-all shadow-md hover:shadow-lg disabled:opacity-50",children:e(r?"saving":"save")})]})]})})]})}),Q.jsx("div",{className:"glass-surface border border-border rounded-2xl overflow-hidden shadow-sm flex-1 flex flex-col",children:Q.jsxs("div",{className:"overflow-x-auto flex-1",children:[Q.jsxs("table",{className:`w-full ${f?"text-right":"text-left"} border-collapse`,children:[Q.jsx("thead",{className:"bg-muted/30 sticky top-0 z-10 backdrop-blur-md",children:Q.jsxs("tr",{children:[Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("admins.name")}),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("admins.username")}),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("admins.permissions")}),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("users.actions")})]})}),Q.jsx("tbody",{className:"divide-y divide-border",children:n.map(D=>Q.jsxs("tr",{className:"hover:bg-muted/30 transition-colors text-xs border-b border-border/50",children:[Q.jsx("td",{className:"px-4 py-3 font-medium text-foreground",children:D.name}),Q.jsx("td",{className:"px-4 py-3 text-muted-foreground font-mono",dir:"ltr",children:D.username}),Q.jsx("td",{className:"px-4 py-3 text-muted-foreground",children:Q.jsx("div",{className:"flex flex-wrap gap-1.5",children:D.permissions.map(N=>Q.jsx("span",{className:"px-2 py-0.5 bg-muted/50 text-foreground/80 rounded text-[10px] border border-border/50",children:I(N)},N))})}),Q.jsx("td",{className:"px-4 py-3",children:Q.jsxs("div",{className:"flex items-center gap-1.5",children:[Q.jsx("button",{onClick:()=>x(D),className:"p-2 text-muted-foreground hover:text-primary hover:bg-primary/10 rounded-xl transition-all",title:e("edit"),children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})})}),D.id!==g&&Q.jsx("button",{onClick:()=>v(D.id),className:"p-2 text-destructive hover:text-destructive/80 hover:bg-destructive/10 rounded-xl transition-all",title:e("delete"),children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})]})})]},D.id))})]}),n.length===0&&!r&&Q.jsxs("div",{className:"p-12 text-center text-muted-foreground text-sm flex flex-col items-center gap-2",children:[Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1,stroke:"currentColor",className:"w-12 h-12 opacity-20",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"})}),e("admins.no_admins")]}),r&&Q.jsxs("div",{className:"p-12 text-center text-muted-foreground text-sm flex flex-col items-center gap-3",children:[Q.jsx("div",{className:"w-8 h-8 border-2 border-primary/20 border-t-primary rounded-full animate-spin"}),Q.jsx("span",{children:e("loading")})]})]})})]})}var Kx="Checkbox",[Xpt]=gl(Kx),[emt,V5]=Xpt(Kx);function tmt(e){const{__scopeCheckbox:t,checked:n,children:a,defaultChecked:r,disabled:i,form:o,name:s,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:p}=e,[m,A]=hl({prop:n,defaultProp:r??!1,onChange:l,caller:Kx}),[g,h]=re.useState(null),[f,b]=re.useState(null),y=re.useRef(!1),w=g?!!o||!!g.closest("form"):!0,k={checked:m,disabled:i,setChecked:A,control:g,setControl:h,name:s,form:o,value:d,hasConsumerStoppedPropagationRef:y,required:u,defaultChecked:wp(r)?!1:r,isFormControl:w,bubbleInput:f,setBubbleInput:b};return Q.jsx(emt,{scope:t,...k,children:nmt(p)?p(k):a})}var xme="CheckboxTrigger",Bme=re.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...a},r)=>{const{control:i,value:o,disabled:s,checked:l,required:u,setControl:d,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:A,bubbleInput:g}=V5(xme,e),h=oa(r,d),f=re.useRef(l);return re.useEffect(()=>{const b=i?.form;if(b){const y=()=>p(f.current);return b.addEventListener("reset",y),()=>b.removeEventListener("reset",y)}},[i,p]),Q.jsx(Nn.button,{type:"button",role:"checkbox","aria-checked":wp(l)?"mixed":l,"aria-required":u,"data-state":Nme(l),"data-disabled":s?"":void 0,disabled:s,value:o,...a,ref:h,onKeyDown:Xt(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:Xt(n,b=>{p(y=>wp(y)?!0:!y),g&&A&&(m.current=b.isPropagationStopped(),m.current||b.stopPropagation())})})});Bme.displayName=xme;var Ime=re.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:a,checked:r,defaultChecked:i,required:o,disabled:s,value:l,onCheckedChange:u,form:d,...p}=e;return Q.jsx(tmt,{__scopeCheckbox:n,checked:r,defaultChecked:i,disabled:s,required:o,onCheckedChange:u,name:a,form:d,value:l,internal_do_not_use_render:({isFormControl:m})=>Q.jsxs(Q.Fragment,{children:[Q.jsx(Bme,{...p,ref:t,__scopeCheckbox:n}),m&&Q.jsx(Tme,{__scopeCheckbox:n})]})})});Ime.displayName=Kx;var Sme="CheckboxIndicator",Dme=re.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:a,...r}=e,i=V5(Sme,n);return Q.jsx(Vs,{present:a||wp(i.checked)||i.checked===!0,children:Q.jsx(Nn.span,{"data-state":Nme(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});Dme.displayName=Sme;var Qme="CheckboxBubbleInput",Tme=re.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:a,hasConsumerStoppedPropagationRef:r,checked:i,defaultChecked:o,required:s,disabled:l,name:u,value:d,form:p,bubbleInput:m,setBubbleInput:A}=V5(Qme,e),g=oa(n,A),h=npe(i),f=TK(a);re.useEffect(()=>{const y=m;if(!y)return;const w=window.HTMLInputElement.prototype,_=Object.getOwnPropertyDescriptor(w,"checked").set,E=!r.current;if(h!==i&&_){const v=new Event("click",{bubbles:E});y.indeterminate=wp(i),_.call(y,wp(i)?!1:i),y.dispatchEvent(v)}},[m,h,i,r]);const b=re.useRef(wp(i)?!1:i);return Q.jsx(Nn.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??b.current,required:s,disabled:l,name:u,value:d,form:p,...t,tabIndex:-1,ref:g,style:{...t.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Tme.displayName=Qme;function nmt(e){return typeof e=="function"}function wp(e){return e==="indeterminate"}function Nme(e){return wp(e)?"indeterminate":e?"checked":"unchecked"}function Fme({className:e,...t}){return Q.jsx(Ime,{"data-slot":"checkbox",className:yt("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:Q.jsx(Dme,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none",children:Q.jsx(ph,{className:"size-3.5"})})})}function amt(){const{t:e,i18n:t}=fa(["admin","translation"]),{app:n}=Or(),[a,r]=te.useState([]),[i,o]=te.useState(!1),[s,l]=te.useState(""),[u,d]=te.useState(!1),[p,m]=te.useState(null),[A,g]=te.useState(""),[h,f]=te.useState(0),b=te.useMemo(()=>n?.userMetadataFields||[],[n?.userMetadataFields]),[y,w]=te.useState(null),[k,_]=te.useState(""),[E,v]=te.useState(""),[x,S]=te.useState(""),[I,D]=te.useState(""),N=t.language==="fa",R=N?"text-right":"text-left",[B,T]=te.useState({phone:"",name:"",surname:"",tokens:"",requests:"",tokensLimit:"",requestsLimit:"",metadata:""}),[F,L]=te.useState({}),M=async()=>{o(!0),l("");try{const W=await Rn.listUsers(0,100,A);r(W.users||[]),f(W.count||0)}catch(W){l(W instanceof Error?W.message:e("error_loading"))}finally{o(!1)}};te.useEffect(()=>{const W=setTimeout(()=>{M()},500);return()=>clearTimeout(W)},[A]),te.useEffect(()=>{try{const Y={...B.metadata?JSON.parse(B.metadata):{},...F},ae=JSON.stringify(Y,null,2);ae!==B.metadata&&T(V=>({...V,metadata:ae}))}catch{}},[F]),te.useEffect(()=>{const W={...F};let Y=!1;b.forEach(ae=>{ae.condition&&!hf(ae.condition,F)&&W[ae.key]!==void 0&&(delete W[ae.key],Y=!0)}),Y&&L(W)},[F,b]);const P=async W=>{W.preventDefault();const Y=B.tokens?parseInt(B.tokens):0,ae=B.requests?parseInt(B.requests):0,V=B.tokensLimit?parseInt(B.tokensLimit):Y,X=B.requestsLimit?parseInt(B.requestsLimit):ae;if(Y>V){l(e("users.tokens_exceed_limit","Tokens cannot exceed limit"));return}if(ae>X){l(e("users.requests_exceed_limit","Requests cannot exceed limit"));return}let ee={};if(B.metadata)try{ee=JSON.parse(B.metadata)}catch{l(e("users.invalid_json","Invalid JSON format"));return}o(!0);try{await Rn.createUser(B.phone,B.name,B.surname,B.tokens?parseInt(B.tokens):void 0,B.requests?parseInt(B.requests):void 0,B.tokensLimit?parseInt(B.tokensLimit):void 0,B.requestsLimit?parseInt(B.requestsLimit):void 0,ee),d(!1),$(),M()}catch(J){l(J instanceof Error?J.message:e("error_loading"))}finally{o(!1)}},O=async W=>{if(W.preventDefault(),!p)return;let Y={};if(B.metadata)try{Y=JSON.parse(B.metadata)}catch{l(e("users.invalid_json","Invalid JSON format"));return}o(!0);try{await Rn.updateUser(p.id,{phone:B.phone,name:B.name,surname:B.surname,metadata:Y}),m(null),d(!1),$(),M()}catch(ae){l(ae instanceof Error?ae.message:e("error_loading"))}finally{o(!1)}},$=()=>{T({phone:"",name:"",surname:"",tokens:"",requests:"",tokensLimit:"",requestsLimit:"",metadata:""}),L({})},q=async W=>{if(confirm(e("users.confirm_delete_user")))try{await Rn.deleteUser(W),M()}catch(Y){l(Y instanceof Error?Y.message:e("error_loading"))}},j=async W=>{try{const ae=(await Rn.refreshUserToken(W.id))?.user?.token;if(!ae){l(e("users.no_token"));return}await navigator.clipboard.writeText(ae),alert(e("users.token_copied"))}catch(Y){l(Y instanceof Error?Y.message:e("error_loading"))}},K=async W=>{if(W.preventDefault(),!y)return;const Y=parseInt(k)||0,ae=parseInt(E)||0,V=x?parseInt(x):y.balance?.token_limit||0,X=I?parseInt(I):y.balance?.request_limit||0;if(Y>V){l(e("users.tokens_exceed_limit","Tokens cannot exceed limit"));return}if(ae>X){l(e("users.requests_exceed_limit","Requests cannot exceed limit"));return}o(!0);try{await Rn.updateUserBalance(y.id,Y,ae,x?parseInt(x):void 0,I?parseInt(I):void 0),w(null),_(""),v(""),S(""),D(""),M()}catch(ee){l(ee instanceof Error?ee.message:e("error_loading"))}finally{o(!1)}},U=W=>{m(W);const Y=W.metadata?JSON.stringify(W.metadata,null,2):"";if(T({phone:W.phone,name:W.name,surname:W.surname,tokens:"",requests:"",tokensLimit:"",requestsLimit:"",metadata:Y}),W.metadata){const ae={};b.forEach(V=>{W.metadata?.[V.key]!==void 0?ae[V.key]=W.metadata[V.key]:V.defaultValue!==void 0&&(ae[V.key]=V.defaultValue)}),L(ae)}d(!0)};return Q.jsxs("div",{className:"h-full flex flex-col p-5 overflow-hidden gap-4",dir:N?"rtl":"ltr",children:[Q.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-3 flex-shrink-0",children:[Q.jsx("h1",{className:"text-2xl font-bold text-foreground tracking-tight whitespace-nowrap",children:e("users.title")}),Q.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-2 flex-1 max-w-4xl justify-end",children:[Q.jsx("div",{className:"flex-1 w-full md:w-auto",children:Q.jsx("input",{type:"text",value:A,onChange:W=>g(W.target.value),placeholder:e("chat_history.search_placeholder"),className:"w-full px-4 py-2.5 border-0 rounded-xl glass-surface text-foreground placeholder-muted-foreground focus:ring-2 focus:ring-primary/20 transition-all text-sm shadow-sm"})}),Q.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[Q.jsx("div",{className:"glass-surface px-4 py-2.5 rounded-xl text-xs font-medium text-muted-foreground border border-border shadow-sm",children:e("users.user_count",{count:h})}),Q.jsx("button",{onClick:()=>{m(null),$(),d(!0)},className:"px-4 py-2.5 bg-primary text-primary-foreground rounded-xl text-sm font-semibold hover:opacity-90 transition-all shadow-sm hover:shadow-md whitespace-nowrap",children:e("users.add_user")})]})]})]}),s&&Q.jsxs("div",{className:"bg-destructive/10 border border-destructive/20 text-destructive px-4 py-3 rounded-xl text-sm backdrop-blur-sm flex-shrink-0 flex justify-between items-center group",children:[Q.jsx("span",{children:s}),Q.jsx("button",{onClick:()=>l(""),className:"opacity-50 hover:opacity-100 transition-opacity p-1",children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),u&&Q.jsx("div",{className:"fixed inset-0 bg-background/20 backdrop-blur-md flex items-center justify-center z-50 p-4",children:Q.jsxs("div",{className:"bg-card rounded-2xl border border-border w-full max-w-xl shadow-2xl overflow-hidden",children:[Q.jsx("div",{className:"px-6 py-5 border-b border-border bg-muted/20",children:Q.jsx("h3",{className:"text-lg font-bold text-foreground",children:e(p?"users.edit_user":"users.add_user")})}),Q.jsx("div",{className:"p-8",children:Q.jsxs("form",{onSubmit:p?O:P,children:[Q.jsxs("div",{className:"space-y-6 max-h-[60vh] overflow-y-auto px-1 custom-scrollbar",children:[Q.jsxs("div",{className:"space-y-4",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.phone")}),Q.jsx("input",{type:"text",value:B.phone,onChange:W=>T({...B,phone:W.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",placeholder:e("users.phone_placeholder"),required:!0,dir:"ltr"})]}),Q.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.name")}),Q.jsx("input",{type:"text",value:B.name,onChange:W=>T({...B,name:W.target.value}),className:`w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm ${R}`,required:!0})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.surname")}),Q.jsx("input",{type:"text",value:B.surname,onChange:W=>T({...B,surname:W.target.value}),className:`w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm ${R}`,required:!0})]})]})]}),!p&&Q.jsxs("div",{className:"border-t border-border/50 pt-4 mt-4 space-y-4",children:[Q.jsx("h4",{className:"text-sm font-bold text-foreground/70",children:e("users.initial_balance","Initial Balance")}),Q.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.initial_tokens")}),Q.jsx("input",{type:"number",value:B.tokens,onChange:W=>T({...B,tokens:W.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",dir:"ltr",placeholder:"0"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.token_limit")}),Q.jsx("input",{type:"number",value:B.tokensLimit,onChange:W=>T({...B,tokensLimit:W.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",dir:"ltr",placeholder:B.tokens||"250000"})]})]}),Q.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.initial_requests")}),Q.jsx("input",{type:"number",value:B.requests,onChange:W=>T({...B,requests:W.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",dir:"ltr",placeholder:"0"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.request_limit")}),Q.jsx("input",{type:"number",value:B.requestsLimit,onChange:W=>T({...B,requestsLimit:W.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",dir:"ltr",placeholder:B.requests||"100"})]})]})]}),b.length>0&&Q.jsxs("div",{className:"border-t border-border/50 pt-4 mt-4 space-y-4",children:[Q.jsx("h4",{className:"text-sm font-bold text-foreground/70",children:e("users.custom_fields","Custom Metadata Fields")}),Q.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:b.map(W=>hf(W.condition,F)?Q.jsxs("div",{className:"animate-in fade-in slide-in-from-top-1 duration-200",children:[Q.jsxs("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:[e(W.label)," ",W.required&&Q.jsx("span",{className:"text-destructive",children:"*"})]}),W.type==="select"?Q.jsxs(tk,{value:String(F[W.key]||""),onValueChange:Y=>L({...F,[W.key]:Y}),required:W.required,dir:N?"rtl":"ltr",children:[Q.jsx(ak,{className:yt("w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground transition-all text-sm h-[46px]",R),children:Q.jsx(nk,{placeholder:e(W.placeholder||"admin.select_placeholder")})}),Q.jsx(rk,{className:"rounded-xl border-border bg-card",children:W.options?.map(Y=>Q.jsx(gf,{value:String(Y.value),children:e(Y.label)},String(Y.value)))})]}):W.type==="checkbox"?Q.jsxs("div",{className:"flex items-center gap-3 h-[46px] px-1",children:[Q.jsx(Fme,{id:`admin-md-${W.key}`,checked:!!F[W.key],onCheckedChange:Y=>L({...F,[W.key]:!!Y}),required:W.required}),Q.jsx("label",{htmlFor:`admin-md-${W.key}`,className:"text-sm text-foreground/80 cursor-pointer select-none",children:e(W.placeholder||W.label)})]}):Q.jsx("input",{type:W.type,value:F[W.key]||"",onChange:Y=>L({...F,[W.key]:Y.target.value}),className:`w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm ${R}`,placeholder:e(W.placeholder||""),required:W.required})]},W.key):null)})]}),Q.jsxs("div",{className:"border-t border-border/50 pt-4 mt-4",children:[Q.jsxs("div",{className:"flex items-center justify-between mb-2",children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider",children:e("users.metadata_raw","Metadata (Raw JSON)")}),Q.jsx("span",{className:"text-[10px] text-muted-foreground opacity-60",children:"Advanced usage"})]}),Q.jsx("textarea",{value:B.metadata,onChange:W=>T({...B,metadata:W.target.value}),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-xs font-mono min-h-[100px] custom-scrollbar",placeholder:'{ "key": "value" }',dir:"ltr"})]})]}),Q.jsxs("div",{className:"flex gap-3 pt-6",children:[Q.jsx("button",{type:"button",onClick:()=>{d(!1),m(null)},className:"flex-1 px-4 py-3 bg-secondary text-secondary-foreground border border-border rounded-xl text-sm font-medium hover:bg-secondary/80 transition-colors",children:e("cancel")}),Q.jsx("button",{type:"submit",disabled:i,className:"flex-1 px-4 py-3 bg-primary text-primary-foreground rounded-xl text-sm font-bold hover:opacity-90 transition-all shadow-md hover:shadow-lg disabled:opacity-50",children:e(i?"saving":"save")})]})]})})]})}),y&&Q.jsx("div",{className:"fixed inset-0 bg-background/20 backdrop-blur-md flex items-center justify-center z-50 p-4",children:Q.jsxs("div",{className:"bg-card rounded-2xl border border-border w-full max-w-sm shadow-2xl overflow-hidden",children:[Q.jsx("div",{className:"px-6 py-5 border-b border-border bg-muted/20",children:Q.jsxs("h3",{className:"text-lg font-bold text-foreground",children:[e("users.update_balance_for")," ",y.name]})}),Q.jsx("div",{className:"p-8",children:Q.jsxs("form",{onSubmit:K,children:[Q.jsxs("div",{className:"space-y-4",children:[Q.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.token_count")}),Q.jsx("input",{type:"number",value:k,onChange:W=>_(W.target.value),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",required:!0,dir:"ltr"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.token_limit")}),Q.jsx("input",{type:"number",value:x,onChange:W=>S(W.target.value),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",dir:"ltr",placeholder:k})]})]}),Q.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.request_count")}),Q.jsx("input",{type:"number",value:E,onChange:W=>v(W.target.value),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",required:!0,dir:"ltr"})]}),Q.jsxs("div",{children:[Q.jsx("label",{className:"block text-xs font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e("users.request_limit")}),Q.jsx("input",{type:"number",value:I,onChange:W=>D(W.target.value),className:"w-full px-4 py-3 bg-input/50 border border-border rounded-xl text-foreground focus:ring-2 focus:ring-ring focus:border-transparent transition-all text-sm font-mono text-left",dir:"ltr",placeholder:E})]})]})]}),Q.jsxs("div",{className:"flex gap-3 pt-6",children:[Q.jsx("button",{type:"button",onClick:()=>{w(null),l("")},className:"flex-1 px-4 py-3 bg-secondary text-secondary-foreground border border-border rounded-xl text-sm font-medium hover:bg-secondary/80 transition-colors",children:e("cancel")}),Q.jsx("button",{type:"submit",disabled:i,className:"flex-1 px-4 py-3 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 rounded-xl text-sm font-bold hover:bg-gray-800 dark:hover:bg-gray-200 transition-all shadow-md hover:shadow-lg disabled:opacity-50",children:e(i?"users.updating":"users.update_balance")})]})]})})]})}),Q.jsx("div",{className:"glass-surface border border-border rounded-2xl overflow-hidden shadow-sm flex-1 flex flex-col",children:Q.jsxs("div",{className:"overflow-x-auto flex-1 custom-scrollbar",children:[Q.jsxs("table",{className:`w-full ${N?"text-right":"text-left"} border-collapse`,children:[Q.jsx("thead",{className:"bg-muted/30 sticky top-0 z-10 backdrop-blur-md",children:Q.jsxs("tr",{children:[Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("users.phone")}),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("users.name")}),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("users.surname")}),b.map(W=>Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e(W.label)},W.key)),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50 w-[120px]",children:e("users.balance")}),Q.jsx("th",{className:"px-4 py-3.5 text-[11px] font-bold text-muted-foreground uppercase tracking-widest border-b border-border/50",children:e("users.actions")})]})}),Q.jsx("tbody",{className:"divide-y divide-border",children:a.map(W=>Q.jsxs("tr",{className:"hover:bg-muted/30 transition-colors text-xs border-b border-border/50",children:[Q.jsx("td",{className:"px-4 py-3 text-foreground font-mono",dir:"ltr",children:W.phone}),Q.jsx("td",{className:"px-4 py-3 font-medium text-foreground",children:W.name}),Q.jsx("td",{className:"px-4 py-3 text-foreground/80",children:W.surname}),b.map(Y=>Q.jsx("td",{className:"px-4 py-3 text-foreground/80",children:Y.type==="checkbox"?W.metadata?.[Y.key]?Q.jsx("span",{className:"text-emerald-500 font-bold",children:"✓"}):Q.jsx("span",{className:"text-muted-foreground opacity-30",children:"✗"}):String(W.metadata?.[Y.key]??"")},Y.key)),Q.jsx("td",{className:"px-4 py-3 text-muted-foreground w-[120px]",children:W.balance?Q.jsxs("div",{className:"flex flex-col gap-3 min-w-0 py-1",children:[Q.jsxs("div",{className:"space-y-1",children:[Q.jsxs("div",{className:"flex justify-between text-[10px] font-semibold",children:[Q.jsx("span",{className:"text-muted-foreground",children:e("users.tokens_label")}),Q.jsxs("span",{className:"text-foreground",children:[(W.balance.token_limit>0?Math.round(W.balance.tokens/W.balance.token_limit*100):0).toLocaleString(t.language),"%"]})]}),Q.jsx("div",{className:"h-1 w-full bg-muted rounded-full overflow-hidden",dir:"ltr",children:Q.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${W.balance.tokens/(W.balance.token_limit||1)>.6?"bg-emerald-500":W.balance.tokens/(W.balance.token_limit||1)>.2?"bg-amber-500":"bg-destructive"}`,style:{width:`${Math.min(100,Math.max(0,W.balance.tokens/(W.balance.token_limit||1)*100))}%`}})})]}),Q.jsxs("div",{className:"space-y-1",children:[Q.jsxs("div",{className:"flex justify-between text-[10px] font-semibold",children:[Q.jsx("span",{className:"text-muted-foreground",children:e("users.requests_label")}),Q.jsxs("span",{className:"text-foreground",children:[(W.balance.request_limit>0?Math.round(W.balance.requests/W.balance.request_limit*100):0).toLocaleString(t.language),"%"]})]}),Q.jsx("div",{className:"h-1 w-full bg-muted rounded-full overflow-hidden",dir:"ltr",children:Q.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${W.balance.requests/(W.balance.request_limit||1)>.6?"bg-emerald-500":W.balance.requests/(W.balance.request_limit||1)>.2?"bg-amber-500":"bg-destructive"}`,style:{width:`${Math.min(100,Math.max(0,W.balance.requests/(W.balance.request_limit||1)*100))}%`}})})]})]}):Q.jsx("span",{className:"text-muted-foreground/40 text-[10px]",children:"—"})}),Q.jsx("td",{className:"px-4 py-3",children:Q.jsxs("div",{className:"flex items-center gap-1.5",children:[Q.jsx("button",{onClick:()=>U(W),className:"p-2 text-muted-foreground hover:text-primary hover:bg-primary/10 rounded-xl transition-all",title:e("edit"),children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})})}),Q.jsx("button",{onClick:()=>{w(W),_(String(W.balance?.tokens||0)),v(String(W.balance?.requests||0)),S(String(W.balance?.token_limit||0)),D(String(W.balance?.request_limit||0)),l("")},className:"p-2 text-muted-foreground hover:text-primary hover:bg-primary/10 rounded-xl transition-all",title:e("users.recharge"),children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm3 0h.008v.008H18V10.5Zm-12 0h.008v.008H6V10.5Z"})})}),Q.jsx("button",{onClick:()=>j(W),className:"p-2 text-muted-foreground hover:text-primary hover:bg-primary/10 rounded-xl transition-all",title:e("users.copy_token"),children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})})}),Q.jsx("button",{onClick:()=>q(W.id),className:"p-2 text-destructive hover:text-destructive/80 hover:bg-destructive/10 rounded-xl transition-all",title:e("delete"),children:Q.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})]})})]},W.id))})]}),a.length===0&&!i&&Q.jsxs("div",{className:"p-12 text-center text-muted-foreground text-sm flex flex-col items-center gap-2",children:[Q.jsx("svg",{xmlns:"http://www.w3.org/2000/xl",fill:"none",viewBox:"0 0 24 24",strokeWidth:1,stroke:"currentColor",className:"w-12 h-12 opacity-20",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"})}),e("users.no_users")]}),i&&Q.jsxs("div",{className:"p-12 text-center text-muted-foreground text-sm flex flex-col items-center gap-3",children:[Q.jsx("div",{className:"w-8 h-8 border-2 border-primary/20 border-t-primary rounded-full animate-spin"}),Q.jsx("span",{children:e("loading")})]})]})})]})}function rmt(){const{t:e,i18n:t}=fa(["admin","translation"]),[n,a]=te.useState(null),[r,i]=te.useState(!0),[o,s]=te.useState(""),[l,u]=te.useState(30),[d,p]=te.useState(0),m=te.useRef(null),A=t.language==="fa",g=A?"fa-IR":"en-US",h=A?"fa-IR-u-ca-persian":"en-US";te.useEffect(()=>{y()},[l]),te.useEffect(()=>{if(!m.current)return;const I=new ResizeObserver(D=>{for(const N of D)p(N.contentRect.width)});return I.observe(m.current),()=>I.disconnect()},[]);const f=(I,D,N)=>{const R=[],B=new Date,T=I||[],F=new Map(T.map(L=>[L.date,L]));for(let L=D-1;L>=0;L--){const P=new Date(B.getTime()-L*24*60*60*1e3).toISOString().split("T")[0];if(F.has(P))R.push(F.get(P));else{const O={date:P};N.forEach($=>O[$]=0),R.push(O)}}return R},b=I=>{if(!I||I.length===0)return null;const D=I.length,N=new Intl.DateTimeFormat(h,{month:"short"});let R=[];if(l<=14)R=Array.from({length:D},(B,T)=>T);else{const B=A?45:35,T=d>0?Math.floor(d/B):6,F=Math.max(1,Math.ceil(D/Math.max(1,T)));for(let L=0;L<D;L+=F)R.push(L);R.length>0&&R[R.length-1]!==D-1&&(D-1-R[R.length-1]>F/2?R.push(D-1):R[R.length-1]=D-1)}return Q.jsx("div",{className:"relative w-full h-8 mt-2",dir:A?"rtl":"ltr",children:R.map(B=>{const T=I[B];if(!T)return null;const F=new Date(T.date),L=F.toLocaleDateString(h,{day:"numeric"}),M=N.format(F),P=D>1?B/(D-1)*100:50;return Q.jsxs("div",{className:"absolute top-0 transform -translate-x-1/2 flex flex-col items-center",style:{left:`${P}%`},children:[Q.jsx("span",{className:"text-[10px] text-gray-600 dark:text-gray-400 font-medium leading-none",children:L}),Q.jsx("span",{className:"text-[9px] text-gray-400 dark:text-gray-500 mt-1 leading-none whitespace-nowrap",children:M})]},B)})})},y=async()=>{i(!0),s("");try{const I=await Rn.getAnalytics(l),D={...I,overview:I.overview||{total_users:0,total_threads:0,total_messages:0,total_token_usage:0},trends:{...I.trends||{},users:f(I.trends?.users,l,["count"]),threads:f(I.trends?.threads,l,["count"]),messages:f(I.trends?.messages,l,["count"]),token_usage:f(I.trends?.token_usage,l,["tokens","requests"])},distributions:{...I.distributions||{},feedback_sentiment:I.distributions?.feedback_sentiment||[]},active_users:I.active_users||[]};a(D)}catch(I){s(I instanceof Error?I.message:e("analytics.error_loading"))}finally{i(!1)}};if(r)return Q.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:e("analytics.loading_analytics")});if(o)return Q.jsx("div",{className:"h-full flex items-center justify-center",children:Q.jsxs("div",{className:"text-center",children:[Q.jsx("div",{className:"text-destructive mb-4",children:o}),Q.jsx("button",{onClick:y,className:"px-4 py-2 bg-primary text-primary-foreground rounded-lg text-sm font-medium hover:opacity-90 transition-colors",children:e("retry")})]})});if(!n)return null;const w=I=>{if(I<=0)return 10;const D=I*1.15,N=Math.pow(10,Math.floor(Math.log10(D))),R=D/N;let B;return R<=1.2?B=.2:R<=2.5?B=.5:R<=5?B=1:B=2,Math.ceil(D/(B*N))*(B*N)},k=Math.max(...n.trends.threads.map(I=>I.count)||[1]),_=Math.max(...n.trends.messages.map(I=>I.count)||[1]),E=Math.max(...n.trends.token_usage.map(I=>I.tokens)||[1]),v=w(k),x=w(_),S=w(E);return Q.jsxs("div",{className:"h-full overflow-auto p-5 flex flex-col gap-5",dir:A?"rtl":"ltr",children:[Q.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-3",children:[Q.jsx("h1",{className:"text-2xl font-bold text-foreground tracking-tight whitespace-nowrap",children:e("analytics.title")}),Q.jsx("div",{className:"flex gap-2",children:[7,14,30,90].map(I=>Q.jsx("button",{onClick:()=>u(I),className:`px-4 py-2 text-sm font-medium rounded-xl transition-all shadow-sm ${l===I?"bg-primary text-primary-foreground shadow-md":"bg-muted/50 text-muted-foreground hover:bg-muted hover:text-foreground border border-border/50"}`,children:e("analytics.days",{count:I})},I))})]}),Q.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[Q.jsx("div",{className:"glass-surface rounded-2xl shadow-sm hover:shadow-md transition-shadow p-4",children:Q.jsxs("div",{className:"flex items-center justify-between",children:[Q.jsxs("div",{children:[Q.jsx("p",{className:"text-[11px] uppercase tracking-widest font-bold text-muted-foreground/80 mb-1",children:e("analytics.total_users")}),Q.jsx("p",{className:"text-2xl font-light text-foreground",children:(n.overview.total_users||0).toLocaleString(g)})]}),Q.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center",children:Q.jsx("svg",{className:"w-5 h-5 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"})})})]})}),Q.jsx("div",{className:"glass-surface rounded-2xl shadow-sm hover:shadow-md transition-shadow p-4",children:Q.jsxs("div",{className:"flex items-center justify-between",children:[Q.jsxs("div",{children:[Q.jsx("p",{className:"text-[11px] uppercase tracking-widest font-bold text-muted-foreground/80 mb-1",children:e("analytics.total_threads")}),Q.jsx("p",{className:"text-2xl font-light text-foreground",children:(n.overview.total_threads||0).toLocaleString(g)})]}),Q.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center",children:Q.jsx("svg",{className:"w-5 h-5 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})})})]})}),Q.jsx("div",{className:"glass-surface rounded-2xl shadow-sm hover:shadow-md transition-shadow p-4",children:Q.jsxs("div",{className:"flex items-center justify-between",children:[Q.jsxs("div",{children:[Q.jsx("p",{className:"text-[11px] uppercase tracking-widest font-bold text-muted-foreground/80 mb-1",children:e("analytics.total_messages")}),Q.jsx("p",{className:"text-2xl font-light text-foreground",children:(n.overview.total_messages||0).toLocaleString(g)})]}),Q.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center",children:Q.jsx("svg",{className:"w-5 h-5 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})})})]})}),Q.jsx("div",{className:"glass-surface rounded-2xl shadow-sm hover:shadow-md transition-shadow p-4",children:Q.jsxs("div",{className:"flex items-center justify-between",children:[Q.jsxs("div",{children:[Q.jsx("p",{className:"text-[11px] uppercase tracking-widest font-bold text-muted-foreground/80 mb-1",children:e("analytics.total_token_usage")}),Q.jsx("p",{className:"text-2xl font-light text-foreground",children:(n.overview.total_token_usage||0).toLocaleString(g)})]}),Q.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center",children:Q.jsx("svg",{className:"w-5 h-5 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:Q.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})})]})})]}),Q.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm p-7",children:[Q.jsx("h3",{className:"text-[11px] font-bold text-muted-foreground/80 mb-6 uppercase tracking-widest",children:e("analytics.threads_chart")}),Q.jsxs("div",{className:"h-64 flex flex-col",ref:m,children:[Q.jsxs("div",{className:"flex-1 flex gap-2 min-h-0",dir:"ltr",children:[Q.jsxs("div",{className:"flex flex-col justify-between text-[10px] text-muted-foreground pt-6 text-right min-w-[24px]",children:[Q.jsx("span",{children:(v||0).toLocaleString(g)}),Q.jsx("span",{children:Math.floor((v||0)/2).toLocaleString(g)}),Q.jsx("span",{children:"0"})]}),Q.jsxs("div",{className:"flex-1 relative flex items-end justify-between pt-6 border-b border-border/30",children:[Q.jsxs("div",{className:"absolute inset-0 pt-6 pointer-events-none",children:[Q.jsx("div",{className:"absolute top-6 left-0 right-0 border-t border-border/30 w-full"}),Q.jsx("div",{className:"absolute top-[calc(50%-4px)] left-0 right-0 border-t border-border/30 w-full"})]}),n.trends.threads.length>0?n.trends.threads.map((I,D)=>Q.jsx("div",{className:"w-1.5 group relative flex flex-col justify-end h-full",children:Q.jsx("div",{className:"bg-primary/80 w-full rounded-t-lg transition-all group-hover:bg-primary relative",style:{height:`${I.count/v*100}%`},children:Q.jsxs("div",{className:"absolute bottom-full mb-1 left-1/2 -translate-x-1/2 opacity-0 group-hover:opacity-100 transition-opacity bg-card px-2 py-1 rounded border border-border shadow-sm z-20 pointer-events-none flex flex-col items-center",children:[Q.jsx("span",{className:"text-[10px] font-medium text-primary leading-none mb-0.5",children:I.count.toLocaleString(g)}),Q.jsx("span",{className:"text-[9px] text-muted-foreground leading-none whitespace-nowrap",children:new Date(I.date).toLocaleDateString(h,{month:"short",day:"numeric"})})]})})},D)):Q.jsx("p",{className:"w-full text-center text-muted-foreground py-8",children:e("no_data")})]})]}),Q.jsxs("div",{className:"flex gap-2",dir:"ltr",children:[Q.jsx("div",{className:"min-w-[24px] invisible"}),b(n.trends.threads)]})]})]}),Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm p-7",children:[Q.jsx("h3",{className:"text-[11px] font-bold text-muted-foreground/80 mb-6 uppercase tracking-widest",children:e("analytics.messages_chart")}),Q.jsxs("div",{className:"h-64 flex flex-col",ref:m,children:[Q.jsxs("div",{className:"flex-1 flex gap-2 min-h-0",dir:"ltr",children:[Q.jsxs("div",{className:"flex flex-col justify-between text-[10px] text-muted-foreground pt-6 text-right min-w-[24px]",children:[Q.jsx("span",{children:(x||0).toLocaleString(g)}),Q.jsx("span",{children:Math.floor((x||0)/2).toLocaleString(g)}),Q.jsx("span",{children:"0"})]}),Q.jsxs("div",{className:"flex-1 relative flex items-end justify-between pt-6 border-b border-border/30",children:[Q.jsxs("div",{className:"absolute inset-0 pt-6 pointer-events-none",children:[Q.jsx("div",{className:"absolute top-6 left-0 right-0 border-t border-border/30 w-full"}),Q.jsx("div",{className:"absolute top-[calc(50%-4px)] left-0 right-0 border-t border-border/30 w-full"})]}),n.trends.messages.length>0?n.trends.messages.map((I,D)=>Q.jsx("div",{className:"w-1.5 group relative flex flex-col justify-end h-full",children:Q.jsx("div",{className:"bg-primary/80 w-full rounded-t-lg transition-all group-hover:bg-primary relative",style:{height:`${I.count/x*100}%`},children:Q.jsxs("div",{className:"absolute bottom-full mb-1 left-1/2 -translate-x-1/2 opacity-0 group-hover:opacity-100 transition-opacity bg-card px-2 py-1 rounded border border-border shadow-sm z-20 pointer-events-none flex flex-col items-center",children:[Q.jsx("span",{className:"text-[10px] font-medium text-primary leading-none mb-0.5",children:I.count.toLocaleString(g)}),Q.jsx("span",{className:"text-[9px] text-muted-foreground leading-none whitespace-nowrap",children:new Date(I.date).toLocaleDateString(h,{month:"short",day:"numeric"})})]})})},D)):Q.jsx("p",{className:"w-full text-center text-muted-foreground py-8",children:e("no_data")})]})]}),Q.jsxs("div",{className:"flex gap-2",dir:"ltr",children:[Q.jsx("div",{className:"min-w-[24px] invisible"}),b(n.trends.messages)]})]})]}),Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm p-7",children:[Q.jsx("h3",{className:"text-[11px] font-bold text-muted-foreground/80 mb-6 uppercase tracking-widest",children:e("analytics.token_usage_chart")}),Q.jsxs("div",{className:"h-64 flex flex-col",ref:m,children:[Q.jsxs("div",{className:"flex-1 flex gap-2 min-h-0",dir:"ltr",children:[Q.jsxs("div",{className:"flex flex-col justify-between text-[10px] text-muted-foreground pt-6 text-right min-w-[24px]",children:[Q.jsx("span",{children:(S||0).toLocaleString(g)}),Q.jsx("span",{children:Math.floor((S||0)/2).toLocaleString(g)}),Q.jsx("span",{children:"0"})]}),Q.jsxs("div",{className:"flex-1 relative flex items-end justify-between pt-6 border-b border-border/30",children:[Q.jsxs("div",{className:"absolute inset-0 pt-6 pointer-events-none",children:[Q.jsx("div",{className:"absolute top-6 left-0 right-0 border-t border-border/30 w-full"}),Q.jsx("div",{className:"absolute top-[calc(50%-4px)] left-0 right-0 border-t border-border/30 w-full"})]}),n.trends.token_usage.length>0?n.trends.token_usage.map((I,D)=>Q.jsx("div",{className:"w-1.5 group relative flex flex-col justify-end h-full",children:Q.jsx("div",{className:"bg-primary/80 w-full rounded-t-lg transition-all group-hover:bg-primary relative",style:{height:`${I.tokens/S*100}%`},children:Q.jsxs("div",{className:"absolute bottom-full mb-1 left-1/2 -translate-x-1/2 opacity-0 group-hover:opacity-100 transition-opacity bg-card px-2 py-1 rounded border border-border shadow-sm z-20 pointer-events-none flex flex-col items-center",children:[Q.jsx("span",{className:"text-[10px] font-medium text-primary leading-none mb-0.5",children:(I.tokens||0).toLocaleString(g)}),Q.jsx("span",{className:"text-[9px] text-muted-foreground leading-none whitespace-nowrap",children:new Date(I.date).toLocaleDateString(h,{month:"short",day:"numeric"})})]})})},D)):Q.jsx("p",{className:"w-full text-center text-muted-foreground py-8",children:e("no_data")})]})]}),Q.jsxs("div",{className:"flex gap-2",dir:"ltr",children:[Q.jsx("div",{className:"min-w-[24px] invisible"}),b(n.trends.token_usage)]})]})]}),Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm p-7",children:[Q.jsx("h3",{className:"text-[11px] font-bold text-muted-foreground/80 mb-6 uppercase tracking-widest",children:e("analytics.feedback")}),Q.jsx("div",{className:"h-64 flex flex-col justify-center",children:n.distributions.feedback_sentiment.length>0?Q.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-8 lg:gap-12",children:[Q.jsxs("div",{className:"relative w-56 h-56 lg:w-60 lg:h-60",children:[Q.jsx("svg",{viewBox:"0 0 100 100",className:"w-full h-full -rotate-90 drop-shadow-md",children:(()=>{const I=n.distributions.feedback_sentiment.filter(M=>M.sentiment==="positive"||M.sentiment==="negative"),D=I.reduce((M,P)=>M+P.count,0);if(D===0)return null;const N=I.find(M=>M.sentiment==="positive")?.count||0,R=I.find(M=>M.sentiment==="negative")?.count||0,B=40,T=2*Math.PI*B,F=N/D*100,L=R/D*100;return Q.jsxs(Q.Fragment,{children:[Q.jsx("circle",{cx:"50",cy:"50",r:B,fill:"transparent",stroke:"currentColor",strokeWidth:"10",className:"text-muted"}),Q.jsxs("defs",{children:[Q.jsxs("linearGradient",{id:"posGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[Q.jsx("stop",{offset:"0%",stopColor:"var(--primary)",stopOpacity:"0.8"}),Q.jsx("stop",{offset:"100%",stopColor:"var(--primary)"})]}),Q.jsxs("linearGradient",{id:"negGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[Q.jsx("stop",{offset:"0%",stopColor:"var(--destructive)",stopOpacity:"0.8"}),Q.jsx("stop",{offset:"100%",stopColor:"var(--destructive)"})]})]}),Q.jsx("circle",{cx:"50",cy:"50",r:B,fill:"transparent",stroke:"url(#posGradient)",strokeWidth:"10",strokeDasharray:`${F/100*T} ${T}`,strokeLinecap:F>0?"round":"butt",className:"transition-all duration-1000 ease-out drop-shadow-sm"}),Q.jsx("circle",{cx:"50",cy:"50",r:B,fill:"transparent",stroke:"url(#negGradient)",strokeWidth:"10",strokeDasharray:`${L/100*T} ${T}`,strokeDashoffset:-(F/100*T),strokeLinecap:L>0?"round":"butt",className:"transition-all duration-1000 ease-out drop-shadow-sm"})]})})()}),Q.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",children:[Q.jsx("span",{className:"text-3xl lg:text-4xl font-light text-foreground",children:n.distributions.feedback_sentiment.filter(I=>I.sentiment==="positive"||I.sentiment==="negative").reduce((I,D)=>I+(D.count||0),0).toLocaleString(g)}),Q.jsx("span",{className:"text-xs text-muted-foreground uppercase tracking-widest mt-1",children:e("analytics.total_feedback")})]})]}),Q.jsx("div",{className:"flex flex-col gap-4 min-w-[140px]",children:[...n.distributions.feedback_sentiment].filter(I=>I.sentiment==="positive"||I.sentiment==="negative").sort((I,D)=>I.sentiment==="positive"?-1:1).map(I=>{const N=n.distributions.feedback_sentiment.filter(L=>L.sentiment==="positive"||L.sentiment==="negative").reduce((L,M)=>L+M.count,0),R=N>0?I.count/N*100:0,B=I.sentiment==="positive"?e("analytics.positive"):e("analytics.negative"),T=I.sentiment==="positive"?"bg-primary":"bg-destructive",F=I.sentiment==="positive"?"👍":"👎";return Q.jsxs("div",{className:"flex items-center justify-between gap-6 group",children:[Q.jsxs("div",{className:"flex items-center gap-3",children:[Q.jsx("div",{className:`w-3 h-3 rounded-full ${T} shadow-sm group-hover:scale-110 transition-transform`}),Q.jsxs("span",{className:"text-sm text-muted-foreground font-medium",children:[B," ",F]})]}),Q.jsxs("div",{className:"flex items-center gap-2",children:[Q.jsxs("span",{className:"text-sm font-semibold text-foreground bg-muted/50 px-2.5 py-1 rounded-lg min-w-[50px] text-center",children:[(R||0).toLocaleString(g,{maximumFractionDigits:0}),"%"]}),Q.jsxs("span",{className:"text-[13px] font-normal text-muted-foreground w-12 text-right",children:["(",(I.count||0).toLocaleString(g),")"]})]})]},I.sentiment)})})]}):Q.jsx("p",{className:"text-center text-muted-foreground py-8",children:e("no_data")})})]})]}),Q.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:Q.jsxs("div",{className:"glass-surface rounded-2xl shadow-sm p-7",children:[Q.jsx("h3",{className:"text-[11px] font-bold text-muted-foreground/80 mb-6 uppercase tracking-widest",children:e("analytics.active_users")}),Q.jsx("div",{className:"space-y-2.5",children:n.active_users.length>0?n.active_users.map(I=>Q.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted/30 rounded-xl hover:bg-muted/50 transition-colors",children:[Q.jsxs("div",{className:"flex items-center gap-3",children:[Q.jsx("div",{className:"w-9 h-9 rounded-full bg-primary/10 flex items-center justify-center text-primary text-sm font-medium",children:I.name.charAt(0)}),Q.jsx("div",{children:Q.jsx("p",{className:"text-sm font-medium text-foreground",children:I.name})})]}),Q.jsxs("div",{className:"text-sm font-semibold text-primary",children:[(I.thread_count||0).toLocaleString(g)," ",e("analytics.threads")]})]},I.user_id)):Q.jsx("p",{className:"text-center text-muted-foreground py-8",children:e("no_data")})})]})})]})}function pk(){const{t:e,i18n:t}=fa(["admin"]),n=t.language==="fa";return Q.jsxs("div",{className:"h-full flex flex-col items-center justify-center p-6 text-center gap-4 animate-in fade-in duration-500",dir:n?"rtl":"ltr",children:[Q.jsx("div",{className:"bg-destructive/10 p-4 rounded-2xl border border-destructive/20 relative",children:Q.jsx(aLe,{className:"size-10 text-destructive/70"})}),Q.jsxs("div",{className:"space-y-1 max-w-sm",children:[Q.jsx("h3",{className:"text-lg font-bold text-foreground tracking-tight",children:e("errors.access_denied_title","Access Denied")}),Q.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e("errors.access_denied_message","You don't have permission to access this page.")})]})]})}const imt=({className:e})=>{const{t}=fa(["theme"]),{theme:n,setTheme:a}=zw(),r=()=>{a(n==="system"?"light":n==="light"?"dark":"system")},i=()=>{switch(n){case"light":return Q.jsx(GW,{className:"h-[1.2rem] w-[1.2rem]"});case"dark":return Q.jsx($W,{className:"h-[1.2rem] w-[1.2rem]"});case"system":return Q.jsx(P4,{className:"h-[1.2rem] w-[1.2rem]"});default:return Q.jsx(P4,{className:"h-[1.2rem] w-[1.2rem]"})}},o=()=>{switch(n){case"light":return t("dark");case"dark":return t("system");case"system":return t("light");default:return t("toggle")}};return Q.jsxs(zm,{children:[Q.jsx(Um,{asChild:!0,children:Q.jsxs(Nr,{variant:"ghost",size:"icon",onClick:r,className:e,children:[i(),Q.jsx("span",{className:"sr-only",children:t("toggle")})]})}),Q.jsx(Hm,{children:o()})]})};function omt({extraPages:e=[],disabledPages:t=[]}){const n=Ur.useNavigate(),a=Ur.useLocation(),{t:r,i18n:i}=fa(["admin","settings","translation"]),{app:o}=Or(),{theme:s}=zw(),[l,u]=te.useState([]),[d,p]=te.useState(!1),m=te.useRef(!1),[A,g]=te.useState("light");te.useEffect(()=>{if(s==="system"){const x=window.matchMedia("(prefers-color-scheme: dark)").matches;g(x?"dark":"light")}else g(s)},[s]);const h=te.useMemo(()=>o?.logo?typeof o.logo=="string"?o.logo:A==="dark"?o.logo.dark:o.logo.light:N5,[o?.logo,A]),f=o?.adminTitle||o?.name,b=i.language==="fa";te.useEffect(()=>{const x=localStorage.getItem("admin_info");if(x)try{const I=JSON.parse(x).permissions||[];if(u(I),a.pathname==="/admin"||a.pathname==="/admin/")if(I.includes("analytics")&&!t.includes("analytics"))n("/admin/analytics",{replace:!0});else if(I.includes("chat_history")&&!t.includes("chat_history"))n("/admin/chat-history",{replace:!0});else if(I.includes("user_management")&&!t.includes("user_management"))n("/admin/users",{replace:!0});else if(I.includes("admin_management")&&!t.includes("admin_management"))n("/admin/admins",{replace:!0});else{const D=e.find(N=>!N.permission||I.includes(N.permission));D&&n(`/admin/${D.path}`,{replace:!0})}}catch(S){console.error("Failed to parse admin_info",S)}else console.warn("DashboardPage: No adminInfo found in localStorage")},[n,a.pathname]);const y=()=>{Rn.clearToken(),window.location.reload()},w=x=>l.includes(x),k=x=>l.includes(x)&&!t.includes(x),_=Object.keys(i.services?.resourceStore?.data||{}).filter(x=>x!=="dev"),E=_.length>0?_:["en","fa"],v=x=>{localStorage.setItem("gentiq-admin-language",x),i.changeLanguage(x),p(!1),document.activeElement instanceof HTMLElement&&document.activeElement.blur()};return Q.jsxs("div",{className:"min-h-screen bg-background overflow-hidden flex flex-col",dir:b?"rtl":"ltr",children:[Q.jsx("header",{className:"glass border-b border-border sticky top-0 z-50",children:Q.jsx("div",{className:"px-8",children:Q.jsxs("div",{className:"flex flex-col md:flex-row md:items-stretch justify-between min-h-[72px] gap-y-4",children:[Q.jsxs("div",{className:"flex flex-col md:flex-row md:items-stretch gap-x-12",children:[Q.jsxs("div",{className:"flex items-center gap-3 py-4 md:py-0",children:[Q.jsx("img",{src:h,alt:f,className:"size-8 object-contain"}),Q.jsx("h1",{className:"text-2xl font-black bg-gradient-to-l from-primary to-primary/60 bg-clip-text text-transparent",children:f})]}),Q.jsxs("nav",{className:"flex items-stretch gap-8",children:[!t.includes("analytics")&&Q.jsx("button",{onClick:()=>n("/admin/analytics"),className:`flex items-center text-base font-medium transition-all border-b-2 px-1 ${a.pathname==="/admin/analytics"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"}`,children:r("dashboard.tabs.analytics")}),!t.includes("chat_history")&&Q.jsx("button",{onClick:()=>n("/admin/chat-history"),className:`flex items-center text-base font-medium transition-all border-b-2 px-1 ${a.pathname==="/admin/chat-history"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"}`,children:r("dashboard.tabs.chat_history")}),!t.includes("user_management")&&Q.jsx("button",{onClick:()=>n("/admin/users"),className:`flex items-center text-base font-medium transition-all border-b-2 px-1 ${a.pathname==="/admin/users"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"}`,children:r("dashboard.tabs.users")}),!t.includes("admin_management")&&Q.jsx("button",{onClick:()=>n("/admin/admins"),className:`flex items-center text-base font-medium transition-all border-b-2 px-1 ${a.pathname==="/admin/admins"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"}`,children:r("dashboard.tabs.admins")}),e.map(x=>Q.jsx("button",{onClick:()=>n(`/admin/${x.path}`),className:`flex items-center text-base font-medium transition-all border-b-2 px-1 ${a.pathname===`/admin/${x.path}`?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"}`,children:typeof x.label=="string"?r(x.label):x.label},`tab-${x.path}`))]})]}),Q.jsxs("div",{className:"flex items-center gap-1.5 py-4 md:py-0",children:[Q.jsxs(wme,{onOpenChange:x=>{x?p(!1):(m.current=!0,setTimeout(()=>{m.current=!1},200))},children:[Q.jsxs(zm,{open:d,onOpenChange:x=>{x&&m.current||p(x)},children:[Q.jsx(Um,{asChild:!0,children:Q.jsx(kme,{asChild:!0,children:Q.jsx(Nr,{variant:"ghost",size:"icon",className:"font-bold text-xs text-muted-foreground hover:bg-muted",onPointerDown:()=>p(!1),children:(i.language?.split("-")[0]||"").toUpperCase()})})}),Q.jsx(Hm,{side:"bottom",className:"text-xs",children:r("dashboard.language","Change Language")})]}),Q.jsx(vme,{align:"center",className:"min-w-[8rem]",children:E.map(x=>Q.jsx(dk,{onClick:()=>v(x),className:x===i.language?"bg-primary/10":"",children:r(`general.languages.${x}`,x.toUpperCase())},x))})]}),Q.jsx(imt,{className:"size-9 !bg-transparent hover:bg-muted text-muted-foreground"}),Q.jsx("div",{className:"w-px h-5 bg-border mx-1"}),Q.jsxs(zm,{children:[Q.jsx(Um,{asChild:!0,children:Q.jsx(Nr,{variant:"ghost",size:"icon",className:"hover:bg-destructive/10 hover:scale-105 active:scale-95 text-muted-foreground hover:text-destructive",onClick:y,children:Q.jsx(PW,{className:"size-5"})})}),Q.jsx(Hm,{side:"bottom",className:"text-xs",children:r("dashboard.logout")})]})]})]})})}),Q.jsx("main",{className:"flex-1 overflow-hidden relative",children:Q.jsx("div",{className:"absolute inset-0 overflow-hidden",children:Q.jsxs(Ur.Routes,{children:[Q.jsx(Ur.Route,{path:"/",element:Q.jsx(Ur.Navigate,{to:"/admin/analytics",replace:!0})}),Q.jsx(Ur.Route,{path:"/analytics",element:k("analytics")?Q.jsx(rmt,{}):Q.jsx(pk,{})}),Q.jsx(Ur.Route,{path:"/chat-history",element:k("chat_history")?Q.jsx(Vpt,{}):Q.jsx(pk,{})}),Q.jsx(Ur.Route,{path:"/admins",element:k("admin_management")?Q.jsx(Jpt,{}):Q.jsx(pk,{})}),Q.jsx(Ur.Route,{path:"/users",element:k("user_management")?Q.jsx(amt,{}):Q.jsx(pk,{})}),e.map(x=>Q.jsx(Ur.Route,{path:`/${x.path}`,element:x.permission&&!w(x.permission)?Q.jsx(pk,{}):x.element},`route-${x.path}`)),Q.jsx(Ur.Route,{path:"*",element:Q.jsx(Ur.Navigate,{to:"/admin/analytics",replace:!0})})]})})})]})}function smt(e){const t=te.useMemo(()=>{const n=Hi.createInstance();return n.use(r5).use(rW).init({resources:i5,fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],lookupLocalStorage:"gentiq-admin-language",caches:["localStorage"]}}),n},[]);return Q.jsx(cW,{i18n:t,children:Q.jsx(cmt,{...e})})}function cmt({extraPages:e,disabledPages:t=[]}){const{app:n,i18n:a}=Or(),{t:r,i18n:i}=fa(["admin","translation"]),[o,s]=te.useState(!1),[l,u]=te.useState(!0),[d,p]=te.useState(!1);te.useEffect(()=>{a?.resources&&Object.entries(a.resources).forEach(([g,h])=>{Object.entries(h).forEach(([f,b])=>{i.addResourceBundle(g,f,b,!0,!0)})}),!localStorage.getItem("gentiq-admin-language")&&n?.language&&i.language!==n.language&&i.changeLanguage(n.language),p(!0)},[a?.resources,i,n?.language]),te.useEffect(()=>{const A=Rn.getToken();return s(!!A),u(!1),document.body.classList.add("admin-theme-root"),()=>{document.body.classList.remove("admin-theme-root")}},[]),te.useEffect(()=>{d&&(document.documentElement.dir=i.language==="fa"?"rtl":"ltr",document.documentElement.lang=i.language)},[d,i.language]);const m=()=>{s(!0)};return l||!d?Q.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:Q.jsx("div",{className:"text-muted-foreground",children:r("loading")})}):Q.jsx(Ele,{storageKey:"gentiq-admin-theme",children:o?Q.jsx(omt,{extraPages:e,disabledPages:t}):Q.jsx(Zpt,{onLoginSuccess:m})})}function lmt({children:e}){const[t,n]=te.useState(null),a=Ur.useLocation(),r=Ur.useNavigate(),i=fu();return te.useEffect(()=>{(async()=>{const s=new URLSearchParams(a.search),l=s.get("token");if(l)try{Kt.setToken(l),await Kt.getBalance(),s.delete("token");const d=s.toString(),p=a.pathname+(d?`?${d}`:"");r(p,{replace:!0}),n(!0);return}catch(d){console.error("Error validating token from URL:",d),n(!1);return}if(!Kt.getToken()){n(!1);return}try{await Kt.getBalance(),n(!0)}catch(d){console.error("Token validation failed:",d),d.status===401?(Kt.clearToken(),i.clear(),n(!1)):n(!0)}})()},[a.search,r,a.pathname,i]),t===null?Q.jsx("div",{className:"flex h-screen w-full items-center justify-center",children:Q.jsx("div",{className:"size-8 rounded-full border-4 border-primary border-t-transparent animate-spin"})}):t?Q.jsx(Q.Fragment,{children:e}):Q.jsx(Ur.Navigate,{to:"/login",replace:!0})}function umt(){const{t:e,i18n:t}=fa(["login","translation"]),{app:n}=Or(),a=t.dir()==="rtl",r=a?"text-right":"text-left",i=Ur.useNavigate(),o=fu(),[s,l]=te.useState("login"),[u,d]=te.useState(""),[p,m]=te.useState(""),[A,g]=te.useState(""),[h,f]=te.useState(""),[b,y]=te.useState(""),[w,k]=te.useState(""),_=te.useMemo(()=>n?.userMetadataFields?.filter(B=>B.showInSignup)||[],[n?.userMetadataFields]),[E,v]=te.useState(()=>{const B={};return _.forEach(T=>{T.defaultValue!==void 0&&(B[T.key]=T.defaultValue)}),B});te.useEffect(()=>{const B={...E};let T=!1;_.forEach(F=>{F.condition&&!hf(F.condition,E)&&B[F.key]!==void 0&&(delete B[F.key],T=!0)}),T&&v(B)},[E,_]);const[x,S]=te.useState(""),[I,D]=te.useState(!1),N=async B=>{B.preventDefault(),S(""),D(!0);try{await Kt.login(u,p),o.clear(),i("/")}catch(T){S(uh(T,e))}finally{D(!1)}},R=async B=>{B.preventDefault(),S(""),D(!0);try{await Kt.register(A,h,b,w,E),o.clear(),i("/")}catch(T){S(uh(T,e))}finally{D(!1)}};return Q.jsx("div",{className:"min-h-screen bg-background flex flex-col items-center justify-center p-4",dir:t.dir(),children:Q.jsxs("div",{className:"w-full max-w-md bg-card border border-border rounded-xl shadow-lg p-6",children:[Q.jsx("div",{className:"text-center mb-6",children:Q.jsx("h1",{className:"text-2xl font-bold bg-gradient-to-r from-primary to-primary/60 bg-clip-text text-transparent",children:n?.name})}),Q.jsxs("div",{className:"flex bg-muted p-1 rounded-lg mb-6",children:[Q.jsx("button",{type:"button",onClick:()=>{l("login"),S("")},className:`flex-1 py-2 text-sm font-medium rounded-md transition-all ${s==="login"?"bg-background shadow-sm text-foreground":"text-muted-foreground hover:text-foreground"}`,children:e("login_tab","Login")}),Q.jsx("button",{type:"button",onClick:()=>{l("register"),S("")},className:`flex-1 py-2 text-sm font-medium rounded-md transition-all ${s==="register"?"bg-background shadow-sm text-foreground":"text-muted-foreground hover:text-foreground"}`,children:e("signup_tab","Sign Up")})]}),s==="login"&&Q.jsxs("form",{onSubmit:N,className:"space-y-4",children:[Q.jsxs("div",{className:"space-y-3",children:[Q.jsx(Kr,{htmlFor:"login-phone",children:e("phone","Phone")}),Q.jsx(rs,{id:"login-phone",type:"tel",value:u,onChange:B=>d(B.target.value),required:!0,className:"text-left",placeholder:e("phone_placeholder","Phone number"),dir:"ltr"})]}),Q.jsxs("div",{className:"space-y-3",children:[Q.jsx(Kr,{htmlFor:"login-pass",children:e("password","Password")}),Q.jsx(rs,{id:"login-pass",type:"password",value:p,onChange:B=>m(B.target.value),required:!0,className:"text-left",placeholder:"••••••••",dir:"ltr"})]}),x&&Q.jsx("div",{className:"text-sm text-destructive",children:x}),Q.jsx(Nr,{type:"submit",disabled:I,className:"w-full font-semibold",children:I?e("logging_in","Logging in..."):e("login_button","Login")})]}),s==="register"&&Q.jsxs("form",{onSubmit:R,className:"space-y-4",children:[Q.jsxs("div",{className:"space-y-3",children:[Q.jsx(Kr,{htmlFor:"reg-phone",children:e("phone","Phone")}),Q.jsx(rs,{id:"reg-phone",type:"tel",value:A,onChange:B=>g(B.target.value),required:!0,className:"text-left",placeholder:e("phone_placeholder","Phone number"),dir:"ltr"})]}),Q.jsxs("div",{className:"space-y-3",children:[Q.jsx(Kr,{htmlFor:"reg-pass",children:e("password","Password")}),Q.jsx(rs,{id:"reg-pass",type:"password",value:h,onChange:B=>f(B.target.value),required:!0,className:"text-left",placeholder:"••••••••",dir:"ltr"})]}),Q.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[Q.jsxs("div",{className:"space-y-3",children:[Q.jsx(Kr,{htmlFor:"reg-name",children:e("name","Name")}),Q.jsx(rs,{id:"reg-name",type:"text",value:b,onChange:B=>y(B.target.value),required:!0,className:r,placeholder:e("name_placeholder","First Name")})]}),Q.jsxs("div",{className:"space-y-3",children:[Q.jsx(Kr,{htmlFor:"reg-surname",children:e("surname","Surname")}),Q.jsx(rs,{id:"reg-surname",type:"text",value:w,onChange:B=>k(B.target.value),required:!0,className:r,placeholder:e("surname_placeholder","Last Name")})]})]}),_.map(B=>hf(B.condition,E)?Q.jsxs("div",{className:"space-y-3 animate-in fade-in slide-in-from-top-1 duration-200",children:[Q.jsx(Kr,{htmlFor:`signup-${B.key}`,children:e(B.label)}),B.type==="select"?Q.jsxs(tk,{value:String(E[B.key]||""),onValueChange:T=>v({...E,[B.key]:T}),required:B.required,dir:a?"rtl":"ltr",children:[Q.jsx(ak,{className:yt("bg-background",r),children:Q.jsx(nk,{placeholder:e(B.placeholder||"login.select_placeholder")})}),Q.jsx(rk,{className:"rounded-xl",children:B.options?.map(T=>Q.jsx(gf,{value:String(T.value),children:e(T.label)},String(T.value)))})]}):B.type==="checkbox"?Q.jsxs("div",{className:"flex items-center gap-2 py-2",children:[Q.jsx(Fme,{id:`signup-${B.key}`,checked:!!E[B.key],onCheckedChange:T=>v({...E,[B.key]:!!T}),required:B.required}),Q.jsx("label",{htmlFor:`signup-${B.key}`,className:"text-sm text-muted-foreground cursor-pointer select-none",children:e(B.placeholder||B.label)})]}):Q.jsx(rs,{id:`signup-${B.key}`,type:B.type,value:E[B.key]||"",onChange:T=>v({...E,[B.key]:T.target.value}),required:B.required,className:r,placeholder:e(B.placeholder||"")})]},B.key):null),x&&Q.jsx("div",{className:"text-sm text-destructive",children:x}),Q.jsx(Nr,{type:"submit",disabled:I,className:"w-full font-semibold",children:I?e("signing_up","Signing up..."):e("signup_button","Sign Up")})]})]})})}function dmt(){const{shareId:e}=Ur.useParams(),[t,n]=te.useState(null),[a,r]=te.useState(!0),[i,o]=te.useState(null),{MessageList:s}=Or(),l=te.useRef(new Set);return te.useEffect(()=>()=>{l.current.forEach(u=>URL.revokeObjectURL(u)),l.current.clear()},[]),te.useEffect(()=>{if(!e)return;(async()=>{try{r(!0);const d=await Kt.getSharedThread(e);d.items&&(d.items=await Promise.all(d.items.map(async p=>{if(!p.parts)return p;const m=await Promise.all(p.parts.map(async A=>{if(A.type==="file"&&A.object_name&&!A.url)try{const g=await Kt.getPublicAttachmentBlobUrl(A.object_name);return l.current.add(g),{...A,url:g}}catch(g){console.error("Failed to resolve shared attachment:",A.object_name,g)}return A}));return{...p,parts:m}}))),n(d)}catch(d){console.error("Failed to fetch shared chat:",d),o(d.message||"Failed to load shared chat")}finally{r(!1)}})()},[e]),a?Q.jsx("div",{className:"flex h-dvh items-center justify-center",children:Q.jsx(f1,{})}):i||!t?Q.jsxs("div",{className:"flex h-dvh flex-col items-center justify-center p-4 text-center",children:[Q.jsx("h1",{className:"text-2xl font-bold text-destructive mb-2 font-display",children:"Shared Chat Not Found"}),Q.jsx("p",{className:"text-muted-foreground max-w-md",children:i||"This shared conversation might have been deleted or the link is invalid."})]}):Q.jsxs("div",{className:"relative flex flex-col h-dvh overflow-hidden bg-background",children:[Q.jsx(Lpe,{hideActions:!0}),Q.jsx("div",{className:"flex-1 min-h-0 overflow-hidden relative flex flex-col",children:Q.jsx(s,{messages:t.items||[],status:"ready",isLoadingHistory:!1,error:null,conversationId:t.id,regen:()=>{},onSuggestionClick:()=>{},className:"pb-8",readonly:!0})})]})}function pmt(){return Q.jsx(dmt,{})}const Lu="gentiq_admin";function mmt(e=0,t=100,n=""){return Rm({queryKey:[Lu,"users",e,t,n],queryFn:()=>Rn.listUsers(e,t,n)})}function Amt(){const e=fu(),t=()=>{e.invalidateQueries({queryKey:[Lu,"users"]})},n=bu({mutationFn:s=>Rn.createUser(s.phone,s.name,s.surname,s.tokens,s.requests),onSuccess:t}),a=bu({mutationFn:({userId:s,data:l})=>Rn.updateUser(s,l),onSuccess:t}),r=bu({mutationFn:s=>Rn.deleteUser(s),onSuccess:t}),i=bu({mutationFn:({userId:s,tokens:l,requests:u})=>Rn.updateUserBalance(s,l,u),onSuccess:t}),o=bu({mutationFn:s=>Rn.refreshUserToken(s)});return{createUser:n,updateUser:a,deleteUser:r,updateBalance:i,refreshToken:o}}function gmt(e=30){return Rm({queryKey:[Lu,"analytics",e],queryFn:()=>Rn.getAnalytics(e)})}function hmt(){return Rm({queryKey:[Lu,"admins"],queryFn:()=>Rn.listAdmins()})}function fmt(){const e=fu(),t=()=>{e.invalidateQueries({queryKey:[Lu,"admins"]})},n=bu({mutationFn:i=>Rn.register(i.username,i.password,i.name,i.permissions),onSuccess:t}),a=bu({mutationFn:({adminId:i,data:o})=>Rn.updateAdmin(i,o),onSuccess:t}),r=bu({mutationFn:i=>Rn.deleteAdmin(i),onSuccess:t});return{createAdmin:n,updateAdmin:a,deleteAdmin:r}}function bmt(e=0,t=50,n,a){return Rm({queryKey:[Lu,"threads",e,t,n,a],queryFn:()=>Rn.listThreads(e,t,n,a)})}function ymt(e){return Rm({queryKey:[Lu,"threadItems",e],queryFn:()=>Rn.getThreadItems(e),enabled:!!e})}function wmt(e=20,t){return Rm({queryKey:[Lu,"jobs",e,t],queryFn:()=>Rn.listJobs(e,t),refetchInterval:5e3})}function kmt(){const e=fu();return{cancelJob:bu({mutationFn:a=>Rn.cancelJob(a),onSuccess:()=>{e.invalidateQueries({queryKey:[Lu,"jobs"]})}})}}function vmt(){return{login:async(e,t)=>Rn.login(e,t),logout:()=>Rn.clearToken(),getToken:()=>Rn.getToken(),isAuthenticated:!!Rn.getToken()}}var Zx={exports:{}},_mt=Zx.exports,Lme;function Cmt(){return Lme||(Lme=1,(function(e,t){(function(n,a){e.exports=a()})(_mt,(function(){var n=1e3,a=6e4,r=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",d="week",p="month",m="quarter",A="year",g="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var T=["th","st","nd","rd"],F=B%100;return"["+B+(T[(F-20)%10]||T[F]||T[0])+"]"}},w=function(B,T,F){var L=String(B);return!L||L.length>=T?B:""+Array(T+1-L.length).join(F)+B},k={s:w,z:function(B){var T=-B.utcOffset(),F=Math.abs(T),L=Math.floor(F/60),M=F%60;return(T<=0?"+":"-")+w(L,2,"0")+":"+w(M,2,"0")},m:function B(T,F){if(T.date()<F.date())return-B(F,T);var L=12*(F.year()-T.year())+(F.month()-T.month()),M=T.clone().add(L,p),P=F-M<0,O=T.clone().add(L+(P?-1:1),p);return+(-(L+(F-M)/(P?M-O:O-M))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:p,y:A,w:d,d:u,D:g,h:l,m:s,s:o,ms:i,Q:m}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},_="en",E={};E[_]=y;var v="$isDayjsObject",x=function(B){return B instanceof N||!(!B||!B[v])},S=function B(T,F,L){var M;if(!T)return _;if(typeof T=="string"){var P=T.toLowerCase();E[P]&&(M=P),F&&(E[P]=F,M=P);var O=T.split("-");if(!M&&O.length>1)return B(O[0])}else{var $=T.name;E[$]=T,M=$}return!L&&M&&(_=M),M||!L&&_},I=function(B,T){if(x(B))return B.clone();var F=typeof T=="object"?T:{};return F.date=B,F.args=arguments,new N(F)},D=k;D.l=S,D.i=x,D.w=function(B,T){return I(B,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var N=(function(){function B(F){this.$L=S(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[v]=!0}var T=B.prototype;return T.parse=function(F){this.$d=(function(L){var M=L.date,P=L.utc;if(M===null)return new Date(NaN);if(D.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var O=M.match(f);if(O){var $=O[2]-1||0,q=(O[7]||"0").substring(0,3);return P?new Date(Date.UTC(O[1],$,O[3]||1,O[4]||0,O[5]||0,O[6]||0,q)):new Date(O[1],$,O[3]||1,O[4]||0,O[5]||0,O[6]||0,q)}}return new Date(M)})(F),this.init()},T.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},T.$utils=function(){return D},T.isValid=function(){return this.$d.toString()!==h},T.isSame=function(F,L){var M=I(F);return this.startOf(L)<=M&&M<=this.endOf(L)},T.isAfter=function(F,L){return I(F)<this.startOf(L)},T.isBefore=function(F,L){return this.endOf(L)<I(F)},T.$g=function(F,L,M){return D.u(F)?this[L]:this.set(M,F)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(F,L){var M=this,P=!!D.u(L)||L,O=D.p(F),$=function(V,X){var ee=D.w(M.$u?Date.UTC(M.$y,X,V):new Date(M.$y,X,V),M);return P?ee:ee.endOf(u)},q=function(V,X){return D.w(M.toDate()[V].apply(M.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(X)),M)},j=this.$W,K=this.$M,U=this.$D,W="set"+(this.$u?"UTC":"");switch(O){case A:return P?$(1,0):$(31,11);case p:return P?$(1,K):$(0,K+1);case d:var Y=this.$locale().weekStart||0,ae=(j<Y?j+7:j)-Y;return $(P?U-ae:U+(6-ae),K);case u:case g:return q(W+"Hours",0);case l:return q(W+"Minutes",1);case s:return q(W+"Seconds",2);case o:return q(W+"Milliseconds",3);default:return this.clone()}},T.endOf=function(F){return this.startOf(F,!1)},T.$set=function(F,L){var M,P=D.p(F),O="set"+(this.$u?"UTC":""),$=(M={},M[u]=O+"Date",M[g]=O+"Date",M[p]=O+"Month",M[A]=O+"FullYear",M[l]=O+"Hours",M[s]=O+"Minutes",M[o]=O+"Seconds",M[i]=O+"Milliseconds",M)[P],q=P===u?this.$D+(L-this.$W):L;if(P===p||P===A){var j=this.clone().set(g,1);j.$d[$](q),j.init(),this.$d=j.set(g,Math.min(this.$D,j.daysInMonth())).$d}else $&&this.$d[$](q);return this.init(),this},T.set=function(F,L){return this.clone().$set(F,L)},T.get=function(F){return this[D.p(F)]()},T.add=function(F,L){var M,P=this;F=Number(F);var O=D.p(L),$=function(K){var U=I(P);return D.w(U.date(U.date()+Math.round(K*F)),P)};if(O===p)return this.set(p,this.$M+F);if(O===A)return this.set(A,this.$y+F);if(O===u)return $(1);if(O===d)return $(7);var q=(M={},M[s]=a,M[l]=r,M[o]=n,M)[O]||1,j=this.$d.getTime()+F*q;return D.w(j,this)},T.subtract=function(F,L){return this.add(-1*F,L)},T.format=function(F){var L=this,M=this.$locale();if(!this.isValid())return M.invalidDate||h;var P=F||"YYYY-MM-DDTHH:mm:ssZ",O=D.z(this),$=this.$H,q=this.$m,j=this.$M,K=M.weekdays,U=M.months,W=M.meridiem,Y=function(X,ee,J,pe){return X&&(X[ee]||X(L,P))||J[ee].slice(0,pe)},ae=function(X){return D.s($%12||12,X,"0")},V=W||function(X,ee,J){var pe=X<12?"AM":"PM";return J?pe.toLowerCase():pe};return P.replace(b,(function(X,ee){return ee||(function(J){switch(J){case"YY":return String(L.$y).slice(-2);case"YYYY":return D.s(L.$y,4,"0");case"M":return j+1;case"MM":return D.s(j+1,2,"0");case"MMM":return Y(M.monthsShort,j,U,3);case"MMMM":return Y(U,j);case"D":return L.$D;case"DD":return D.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Y(M.weekdaysMin,L.$W,K,2);case"ddd":return Y(M.weekdaysShort,L.$W,K,3);case"dddd":return K[L.$W];case"H":return String($);case"HH":return D.s($,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return V($,q,!0);case"A":return V($,q,!1);case"m":return String(q);case"mm":return D.s(q,2,"0");case"s":return String(L.$s);case"ss":return D.s(L.$s,2,"0");case"SSS":return D.s(L.$ms,3,"0");case"Z":return O}return null})(X)||O.replace(":","")}))},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(F,L,M){var P,O=this,$=D.p(L),q=I(F),j=(q.utcOffset()-this.utcOffset())*a,K=this-q,U=function(){return D.m(O,q)};switch($){case A:P=U()/12;break;case p:P=U();break;case m:P=U()/3;break;case d:P=(K-j)/6048e5;break;case u:P=(K-j)/864e5;break;case l:P=K/r;break;case s:P=K/a;break;case o:P=K/n;break;default:P=K}return M?P:D.a(P)},T.daysInMonth=function(){return this.endOf(p).$D},T.$locale=function(){return E[this.$L]},T.locale=function(F,L){if(!F)return this.$L;var M=this.clone(),P=S(F,L,!0);return P&&(M.$L=P),M},T.clone=function(){return D.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},B})(),R=N.prototype;return I.prototype=R,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",p],["$y",A],["$D",g]].forEach((function(B){R[B[1]]=function(T){return this.$g(T,B[0],B[1])}})),I.extend=function(B,T){return B.$i||(B(T,N,I),B.$i=!0),I},I.locale=S,I.isDayjs=x,I.unix=function(B){return I(1e3*B)},I.en=E[_],I.Ls=E,I.p={},I}))})(Zx)),Zx.exports}var Emt=Cmt();const mi=Zs(Emt);var Rme=Object.defineProperty,C=(e,t)=>Rme(e,"name",{value:t,configurable:!0}),Vx=(e,t)=>{for(var n in t)Rme(e,n,{get:t[n],enumerable:!0})},Ru={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},oe={trace:C((...e)=>{},"trace"),debug:C((...e)=>{},"debug"),info:C((...e)=>{},"info"),warn:C((...e)=>{},"warn"),error:C((...e)=>{},"error"),fatal:C((...e)=>{},"fatal")},J5=C(function(e="fatal"){let t=Ru.fatal;typeof e=="string"?e.toLowerCase()in Ru&&(t=Ru[e]):typeof e=="number"&&(t=e),oe.trace=()=>{},oe.debug=()=>{},oe.info=()=>{},oe.warn=()=>{},oe.error=()=>{},oe.fatal=()=>{},t<=Ru.fatal&&(oe.fatal=console.error?console.error.bind(console,sc("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",sc("FATAL"))),t<=Ru.error&&(oe.error=console.error?console.error.bind(console,sc("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",sc("ERROR"))),t<=Ru.warn&&(oe.warn=console.warn?console.warn.bind(console,sc("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",sc("WARN"))),t<=Ru.info&&(oe.info=console.info?console.info.bind(console,sc("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",sc("INFO"))),t<=Ru.debug&&(oe.debug=console.debug?console.debug.bind(console,sc("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",sc("DEBUG"))),t<=Ru.trace&&(oe.trace=console.debug?console.debug.bind(console,sc("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",sc("TRACE")))},"setLogLevel"),sc=C(e=>`%c${mi().format("ss.SSS")} : ${e} : `,"format");const Jx={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},a)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;switch(a){case"r":return Jx.hue2rgb(i,r,e+1/3)*255;case"g":return Jx.hue2rgb(i,r,e)*255;case"b":return Jx.hue2rgb(i,r,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},a)=>{e/=255,t/=255,n/=255;const r=Math.max(e,t,n),i=Math.min(e,t,n),o=(r+i)/2;if(a==="l")return o*100;if(r===i)return 0;const s=r-i,l=o>.5?s/(2-r-i):s/(r+i);if(a==="s")return l*100;switch(r){case e:return((t-n)/s+(t<n?6:0))*60;case t:return((n-e)/s+2)*60;case n:return((e-t)/s+4)*60;default:return-1}}},Cn={channel:Jx,lang:{clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},unit:{dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}},kp={};for(let e=0;e<=255;e++)kp[e]=Cn.unit.dec2hex(e);const Ji={ALL:0,RGB:1,HSL:2};let xmt=class{constructor(){this.type=Ji.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Ji.ALL}is(t){return this.type===t}};class Bmt{constructor(t,n){this.color=n,this.changed=!1,this.data=t,this.type=new xmt}set(t,n){return this.color=n,this.changed=!1,this.data=t,this.type.type=Ji.ALL,this}_ensureHSL(){const t=this.data,{h:n,s:a,l:r}=t;n===void 0&&(t.h=Cn.channel.rgb2hsl(t,"h")),a===void 0&&(t.s=Cn.channel.rgb2hsl(t,"s")),r===void 0&&(t.l=Cn.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:n,g:a,b:r}=t;n===void 0&&(t.r=Cn.channel.hsl2rgb(t,"r")),a===void 0&&(t.g=Cn.channel.hsl2rgb(t,"g")),r===void 0&&(t.b=Cn.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,n=t.r;return!this.type.is(Ji.HSL)&&n!==void 0?n:(this._ensureHSL(),Cn.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,n=t.g;return!this.type.is(Ji.HSL)&&n!==void 0?n:(this._ensureHSL(),Cn.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,n=t.b;return!this.type.is(Ji.HSL)&&n!==void 0?n:(this._ensureHSL(),Cn.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,n=t.h;return!this.type.is(Ji.RGB)&&n!==void 0?n:(this._ensureRGB(),Cn.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,n=t.s;return!this.type.is(Ji.RGB)&&n!==void 0?n:(this._ensureRGB(),Cn.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,n=t.l;return!this.type.is(Ji.RGB)&&n!==void 0?n:(this._ensureRGB(),Cn.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Ji.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Ji.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Ji.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Ji.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Ji.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Ji.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Xx=new Bmt({r:0,g:0,b:0,a:0},"transparent"),ff={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(ff.re);if(!t)return;const n=t[1],a=parseInt(n,16),r=n.length,i=r%4===0,o=r>4,s=o?1:17,l=o?8:4,u=i?0:-1,d=o?255:15;return Xx.set({r:(a>>l*(u+3)&d)*s,g:(a>>l*(u+2)&d)*s,b:(a>>l*(u+1)&d)*s,a:i?(a&d)*s/255:1},e)},stringify:e=>{const{r:t,g:n,b:a,a:r}=e;return r<1?`#${kp[Math.round(t)]}${kp[Math.round(n)]}${kp[Math.round(a)]}${kp[Math.round(r*255)]}`:`#${kp[Math.round(t)]}${kp[Math.round(n)]}${kp[Math.round(a)]}`}},AA={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(AA.hueRe);if(t){const[,n,a]=t;switch(a){case"grad":return Cn.channel.clamp.h(parseFloat(n)*.9);case"rad":return Cn.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return Cn.channel.clamp.h(parseFloat(n)*360)}}return Cn.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const n=e.match(AA.re);if(!n)return;const[,a,r,i,o,s]=n;return Xx.set({h:AA._hue2deg(a),s:Cn.channel.clamp.s(parseFloat(r)),l:Cn.channel.clamp.l(parseFloat(i)),a:o?Cn.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:n,l:a,a:r}=e;return r<1?`hsla(${Cn.lang.round(t)}, ${Cn.lang.round(n)}%, ${Cn.lang.round(a)}%, ${r})`:`hsl(${Cn.lang.round(t)}, ${Cn.lang.round(n)}%, ${Cn.lang.round(a)}%)`}},mk={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=mk.colors[e];if(t)return ff.parse(t)},stringify:e=>{const t=ff.stringify(e);for(const n in mk.colors)if(mk.colors[n]===t)return n}},Ak={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const n=e.match(Ak.re);if(!n)return;const[,a,r,i,o,s,l,u,d]=n;return Xx.set({r:Cn.channel.clamp.r(r?parseFloat(a)*2.55:parseFloat(a)),g:Cn.channel.clamp.g(o?parseFloat(i)*2.55:parseFloat(i)),b:Cn.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:u?Cn.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{const{r:t,g:n,b:a,a:r}=e;return r<1?`rgba(${Cn.lang.round(t)}, ${Cn.lang.round(n)}, ${Cn.lang.round(a)}, ${Cn.lang.round(r)})`:`rgb(${Cn.lang.round(t)}, ${Cn.lang.round(n)}, ${Cn.lang.round(a)})`}},Oc={format:{keyword:mk,hex:ff,rgb:Ak,rgba:Ak,hsl:AA,hsla:AA},parse:e=>{if(typeof e!="string")return e;const t=ff.parse(e)||Ak.parse(e)||AA.parse(e)||mk.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Ji.HSL)||e.data.r===void 0?AA.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Ak.stringify(e):ff.stringify(e)},Mme=(e,t)=>{const n=Oc.parse(e);for(const a in t)n[a]=Cn.channel.clamp[a](t[a]);return Oc.stringify(n)},vp=(e,t,n=0,a=1)=>{if(typeof e!="number")return Mme(e,{a:t});const r=Xx.set({r:Cn.channel.clamp.r(e),g:Cn.channel.clamp.g(t),b:Cn.channel.clamp.b(n),a:Cn.channel.clamp.a(a)});return Oc.stringify(r)},X5=(e,t)=>Cn.lang.round(Oc.parse(e)[t]),Imt=e=>{const{r:t,g:n,b:a}=Oc.parse(e),r=.2126*Cn.channel.toLinear(t)+.7152*Cn.channel.toLinear(n)+.0722*Cn.channel.toLinear(a);return Cn.lang.round(r)},Smt=e=>Imt(e)>=.5,Mu=e=>!Smt(e),eM=(e,t,n)=>{const a=Oc.parse(e),r=a[t],i=Cn.channel.clamp[t](r+n);return r!==i&&(a[t]=i),Oc.stringify(a)},Ut=(e,t)=>eM(e,"l",t),cn=(e,t)=>eM(e,"l",-t),Ome=(e,t)=>eM(e,"a",-t),Ze=(e,t)=>{const n=Oc.parse(e),a={};for(const r in t)t[r]&&(a[r]=n[r]+t[r]);return Mme(e,a)},Dmt=(e,t,n=50)=>{const{r:a,g:r,b:i,a:o}=Oc.parse(e),{r:s,g:l,b:u,a:d}=Oc.parse(t),p=n/100,m=p*2-1,A=o-d,h=((m*A===-1?m:(m+A)/(1+m*A))+1)/2,f=1-h,b=a*h+s*f,y=r*h+l*f,w=i*h+u*f,k=o*p+d*(1-p);return vp(b,y,w,k)},$t=(e,t=100)=>{const n=Oc.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,Dmt(n,e,t)};const{entries:Pme,setPrototypeOf:$me,isFrozen:Qmt,getPrototypeOf:Tmt,getOwnPropertyDescriptor:Nmt}=Object;let{freeze:Io,seal:cc,create:eB}=Object,{apply:tM,construct:nM}=typeof Reflect<"u"&&Reflect;Io||(Io=function(t){return t}),cc||(cc=function(t){return t}),tM||(tM=function(t,n){for(var a=arguments.length,r=new Array(a>2?a-2:0),i=2;i<a;i++)r[i-2]=arguments[i];return t.apply(n,r)}),nM||(nM=function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return new t(...a)});const tB=Do(Array.prototype.forEach),Fmt=Do(Array.prototype.lastIndexOf),jme=Do(Array.prototype.pop),gk=Do(Array.prototype.push),Lmt=Do(Array.prototype.splice),nB=Do(String.prototype.toLowerCase),aM=Do(String.prototype.toString),rM=Do(String.prototype.match),hk=Do(String.prototype.replace),Rmt=Do(String.prototype.indexOf),Mmt=Do(String.prototype.trim),Ts=Do(Object.prototype.hasOwnProperty),So=Do(RegExp.prototype.test),fk=Omt(TypeError);function Do(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return tM(e,t,a)}}function Omt(e){return function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return nM(e,n)}}function zn(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nB;$me&&$me(e,null);let a=t.length;for(;a--;){let r=t[a];if(typeof r=="string"){const i=n(r);i!==r&&(Qmt(t)||(t[a]=i),r=i)}e[r]=!0}return e}function Pmt(e){for(let t=0;t<e.length;t++)Ts(e,t)||(e[t]=null);return e}function Ol(e){const t=eB(null);for(const[n,a]of Pme(e))Ts(e,n)&&(Array.isArray(a)?t[n]=Pmt(a):a&&typeof a=="object"&&a.constructor===Object?t[n]=Ol(a):t[n]=a);return t}function bk(e,t){for(;e!==null;){const a=Nmt(e,t);if(a){if(a.get)return Do(a.get);if(typeof a.value=="function")return Do(a.value)}e=Tmt(e)}function n(){return null}return n}const qme=Io(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),iM=Io(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),oM=Io(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$mt=Io(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),sM=Io(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),jmt=Io(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Gme=Io(["#text"]),zme=Io(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),cM=Io(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ume=Io(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),aB=Io(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qmt=cc(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Gmt=cc(/<%[\w\W]*|[\w\W]*%>/gm),zmt=cc(/\$\{[\w\W]*/gm),Umt=cc(/^data-[\-\w.\u00B7-\uFFFF]+$/),Hmt=cc(/^aria-[\-\w]+$/),Hme=cc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ymt=cc(/^(?:\w+script|data):/i),Wmt=cc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yme=cc(/^html$/i),Kmt=cc(/^[a-z][.\w]*(-[.\w]+)+$/i);var Wme=Object.freeze({__proto__:null,ARIA_ATTR:Hmt,ATTR_WHITESPACE:Wmt,CUSTOM_ELEMENT:Kmt,DATA_ATTR:Umt,DOCTYPE_NAME:Yme,ERB_EXPR:Gmt,IS_ALLOWED_URI:Hme,IS_SCRIPT_OR_DATA:Ymt,MUSTACHE_EXPR:qmt,TMPLIT_EXPR:zmt});const yk={element:1,text:3,progressingInstruction:7,comment:8,document:9},Zmt=function(){return typeof window>"u"?null:window},Vmt=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(a=n.getAttribute(r));const i="dompurify"+(a?"#"+a:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Kme=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Zme(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zmt();const t=lt=>Zme(lt);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==yk.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const a=n,r=a.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:m,trustedTypes:A}=e,g=l.prototype,h=bk(g,"cloneNode"),f=bk(g,"remove"),b=bk(g,"nextSibling"),y=bk(g,"childNodes"),w=bk(g,"parentNode");if(typeof o=="function"){const lt=n.createElement("template");lt.content&&lt.content.ownerDocument&&(n=lt.content.ownerDocument)}let k,_="";const{implementation:E,createNodeIterator:v,createDocumentFragment:x,getElementsByTagName:S}=n,{importNode:I}=a;let D=Kme();t.isSupported=typeof Pme=="function"&&typeof w=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:N,ERB_EXPR:R,TMPLIT_EXPR:B,DATA_ATTR:T,ARIA_ATTR:F,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:P}=Wme;let{IS_ALLOWED_URI:O}=Wme,$=null;const q=zn({},[...qme,...iM,...oM,...sM,...Gme]);let j=null;const K=zn({},[...zme,...cM,...Ume,...aB]);let U=Object.seal(eB(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,Y=null;const ae=Object.seal(eB(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let V=!0,X=!0,ee=!1,J=!0,pe=!1,ue=!0,Te=!1,Le=!1,qe=!1,Ee=!1,De=!1,Ue=!1,ye=!0,et=!1;const Be="user-content-";let He=!0,Je=!1,he={},_e=null;const $e=zn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const je=zn({},["audio","video","img","source","image","track"]);let ne=null;const Ae=zn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),z="http://www.w3.org/1998/Math/MathML",le="http://www.w3.org/2000/svg",ce="http://www.w3.org/1999/xhtml";let be=ce,we=!1,Ie=null;const Re=zn({},[z,le,ce],aM);let ve=zn({},["mi","mo","mn","ms","mtext"]),Oe=zn({},["annotation-xml"]);const Xe=zn({},["title","style","font","a","script"]);let Ge=null;const We=["application/xhtml+xml","text/html"],me="text/html";let Ye=null,fe=null;const kt=n.createElement("form"),gt=function(Ne){return Ne instanceof RegExp||Ne instanceof Function},ut=function(){let Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(fe&&fe===Ne)){if((!Ne||typeof Ne!="object")&&(Ne={}),Ne=Ol(Ne),Ge=We.indexOf(Ne.PARSER_MEDIA_TYPE)===-1?me:Ne.PARSER_MEDIA_TYPE,Ye=Ge==="application/xhtml+xml"?aM:nB,$=Ts(Ne,"ALLOWED_TAGS")?zn({},Ne.ALLOWED_TAGS,Ye):q,j=Ts(Ne,"ALLOWED_ATTR")?zn({},Ne.ALLOWED_ATTR,Ye):K,Ie=Ts(Ne,"ALLOWED_NAMESPACES")?zn({},Ne.ALLOWED_NAMESPACES,aM):Re,ne=Ts(Ne,"ADD_URI_SAFE_ATTR")?zn(Ol(Ae),Ne.ADD_URI_SAFE_ATTR,Ye):Ae,de=Ts(Ne,"ADD_DATA_URI_TAGS")?zn(Ol(je),Ne.ADD_DATA_URI_TAGS,Ye):je,_e=Ts(Ne,"FORBID_CONTENTS")?zn({},Ne.FORBID_CONTENTS,Ye):$e,W=Ts(Ne,"FORBID_TAGS")?zn({},Ne.FORBID_TAGS,Ye):Ol({}),Y=Ts(Ne,"FORBID_ATTR")?zn({},Ne.FORBID_ATTR,Ye):Ol({}),he=Ts(Ne,"USE_PROFILES")?Ne.USE_PROFILES:!1,V=Ne.ALLOW_ARIA_ATTR!==!1,X=Ne.ALLOW_DATA_ATTR!==!1,ee=Ne.ALLOW_UNKNOWN_PROTOCOLS||!1,J=Ne.ALLOW_SELF_CLOSE_IN_ATTR!==!1,pe=Ne.SAFE_FOR_TEMPLATES||!1,ue=Ne.SAFE_FOR_XML!==!1,Te=Ne.WHOLE_DOCUMENT||!1,Ee=Ne.RETURN_DOM||!1,De=Ne.RETURN_DOM_FRAGMENT||!1,Ue=Ne.RETURN_TRUSTED_TYPE||!1,qe=Ne.FORCE_BODY||!1,ye=Ne.SANITIZE_DOM!==!1,et=Ne.SANITIZE_NAMED_PROPS||!1,He=Ne.KEEP_CONTENT!==!1,Je=Ne.IN_PLACE||!1,O=Ne.ALLOWED_URI_REGEXP||Hme,be=Ne.NAMESPACE||ce,ve=Ne.MATHML_TEXT_INTEGRATION_POINTS||ve,Oe=Ne.HTML_INTEGRATION_POINTS||Oe,U=Ne.CUSTOM_ELEMENT_HANDLING||{},Ne.CUSTOM_ELEMENT_HANDLING&&gt(Ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=Ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ne.CUSTOM_ELEMENT_HANDLING&&gt(Ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=Ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ne.CUSTOM_ELEMENT_HANDLING&&typeof Ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(U.allowCustomizedBuiltInElements=Ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),pe&&(X=!1),De&&(Ee=!0),he&&($=zn({},Gme),j=eB(null),he.html===!0&&(zn($,qme),zn(j,zme)),he.svg===!0&&(zn($,iM),zn(j,cM),zn(j,aB)),he.svgFilters===!0&&(zn($,oM),zn(j,cM),zn(j,aB)),he.mathMl===!0&&(zn($,sM),zn(j,Ume),zn(j,aB))),Ts(Ne,"ADD_TAGS")||(ae.tagCheck=null),Ts(Ne,"ADD_ATTR")||(ae.attributeCheck=null),Ne.ADD_TAGS&&(typeof Ne.ADD_TAGS=="function"?ae.tagCheck=Ne.ADD_TAGS:($===q&&($=Ol($)),zn($,Ne.ADD_TAGS,Ye))),Ne.ADD_ATTR&&(typeof Ne.ADD_ATTR=="function"?ae.attributeCheck=Ne.ADD_ATTR:(j===K&&(j=Ol(j)),zn(j,Ne.ADD_ATTR,Ye))),Ne.ADD_URI_SAFE_ATTR&&zn(ne,Ne.ADD_URI_SAFE_ATTR,Ye),Ne.FORBID_CONTENTS&&(_e===$e&&(_e=Ol(_e)),zn(_e,Ne.FORBID_CONTENTS,Ye)),Ne.ADD_FORBID_CONTENTS&&(_e===$e&&(_e=Ol(_e)),zn(_e,Ne.ADD_FORBID_CONTENTS,Ye)),He&&($["#text"]=!0),Te&&zn($,["html","head","body"]),$.table&&(zn($,["tbody"]),delete W.tbody),Ne.TRUSTED_TYPES_POLICY){if(typeof Ne.TRUSTED_TYPES_POLICY.createHTML!="function")throw fk('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ne.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fk('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=Ne.TRUSTED_TYPES_POLICY,_=k.createHTML("")}else k===void 0&&(k=Vmt(A,r)),k!==null&&typeof _=="string"&&(_=k.createHTML(""));Io&&Io(Ne),fe=Ne}},St=zn({},[...iM,...oM,...$mt]),dt=zn({},[...sM,...jmt]),ot=function(Ne){let st=w(Ne);(!st||!st.tagName)&&(st={namespaceURI:be,tagName:"template"});const Ct=nB(Ne.tagName),Wt=nB(st.tagName);return Ie[Ne.namespaceURI]?Ne.namespaceURI===le?st.namespaceURI===ce?Ct==="svg":st.namespaceURI===z?Ct==="svg"&&(Wt==="annotation-xml"||ve[Wt]):!!St[Ct]:Ne.namespaceURI===z?st.namespaceURI===ce?Ct==="math":st.namespaceURI===le?Ct==="math"&&Oe[Wt]:!!dt[Ct]:Ne.namespaceURI===ce?st.namespaceURI===le&&!Oe[Wt]||st.namespaceURI===z&&!ve[Wt]?!1:!dt[Ct]&&(Xe[Ct]||!St[Ct]):!!(Ge==="application/xhtml+xml"&&Ie[Ne.namespaceURI]):!1},se=function(Ne){gk(t.removed,{element:Ne});try{w(Ne).removeChild(Ne)}catch{f(Ne)}},ft=function(Ne,st){try{gk(t.removed,{attribute:st.getAttributeNode(Ne),from:st})}catch{gk(t.removed,{attribute:null,from:st})}if(st.removeAttribute(Ne),Ne==="is")if(Ee||De)try{se(st)}catch{}else try{st.setAttribute(Ne,"")}catch{}},At=function(Ne){let st=null,Ct=null;if(qe)Ne="<remove></remove>"+Ne;else{const Ea=rM(Ne,/^[\r\n\t ]+/);Ct=Ea&&Ea[0]}Ge==="application/xhtml+xml"&&be===ce&&(Ne='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ne+"</body></html>");const Wt=k?k.createHTML(Ne):Ne;if(be===ce)try{st=new m().parseFromString(Wt,Ge)}catch{}if(!st||!st.documentElement){st=E.createDocument(be,"template",null);try{st.documentElement.innerHTML=we?_:Wt}catch{}}const Mn=st.body||st.documentElement;return Ne&&Ct&&Mn.insertBefore(n.createTextNode(Ct),Mn.childNodes[0]||null),be===ce?S.call(st,Te?"html":"body")[0]:Te?st.documentElement:Mn},pt=function(Ne){return v.call(Ne.ownerDocument||Ne,Ne,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},ke=function(Ne){return Ne instanceof p&&(typeof Ne.nodeName!="string"||typeof Ne.textContent!="string"||typeof Ne.removeChild!="function"||!(Ne.attributes instanceof d)||typeof Ne.removeAttribute!="function"||typeof Ne.setAttribute!="function"||typeof Ne.namespaceURI!="string"||typeof Ne.insertBefore!="function"||typeof Ne.hasChildNodes!="function")},it=function(Ne){return typeof s=="function"&&Ne instanceof s};function rt(lt,Ne,st){tB(lt,Ct=>{Ct.call(t,Ne,st,fe)})}const Dt=function(Ne){let st=null;if(rt(D.beforeSanitizeElements,Ne,null),ke(Ne))return se(Ne),!0;const Ct=Ye(Ne.nodeName);if(rt(D.uponSanitizeElement,Ne,{tagName:Ct,allowedTags:$}),ue&&Ne.hasChildNodes()&&!it(Ne.firstElementChild)&&So(/<[/\w!]/g,Ne.innerHTML)&&So(/<[/\w!]/g,Ne.textContent)||Ne.nodeType===yk.progressingInstruction||ue&&Ne.nodeType===yk.comment&&So(/<[/\w]/g,Ne.data))return se(Ne),!0;if(!(ae.tagCheck instanceof Function&&ae.tagCheck(Ct))&&(!$[Ct]||W[Ct])){if(!W[Ct]&&Rt(Ct)&&(U.tagNameCheck instanceof RegExp&&So(U.tagNameCheck,Ct)||U.tagNameCheck instanceof Function&&U.tagNameCheck(Ct)))return!1;if(He&&!_e[Ct]){const Wt=w(Ne)||Ne.parentNode,Mn=y(Ne)||Ne.childNodes;if(Mn&&Wt){const Ea=Mn.length;for(let ha=Ea-1;ha>=0;--ha){const Ei=h(Mn[ha],!0);Ei.__removalCount=(Ne.__removalCount||0)+1,Wt.insertBefore(Ei,b(Ne))}}}return se(Ne),!0}return Ne instanceof l&&!ot(Ne)||(Ct==="noscript"||Ct==="noembed"||Ct==="noframes")&&So(/<\/no(script|embed|frames)/i,Ne.innerHTML)?(se(Ne),!0):(pe&&Ne.nodeType===yk.text&&(st=Ne.textContent,tB([N,R,B],Wt=>{st=hk(st,Wt," ")}),Ne.textContent!==st&&(gk(t.removed,{element:Ne.cloneNode()}),Ne.textContent=st)),rt(D.afterSanitizeElements,Ne,null),!1)},Gt=function(Ne,st,Ct){if(Y[st]||ye&&(st==="id"||st==="name")&&(Ct in n||Ct in kt))return!1;if(!(X&&!Y[st]&&So(T,st))){if(!(V&&So(F,st))){if(!(ae.attributeCheck instanceof Function&&ae.attributeCheck(st,Ne))){if(!j[st]||Y[st]){if(!(Rt(Ne)&&(U.tagNameCheck instanceof RegExp&&So(U.tagNameCheck,Ne)||U.tagNameCheck instanceof Function&&U.tagNameCheck(Ne))&&(U.attributeNameCheck instanceof RegExp&&So(U.attributeNameCheck,st)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(st,Ne))||st==="is"&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&So(U.tagNameCheck,Ct)||U.tagNameCheck instanceof Function&&U.tagNameCheck(Ct))))return!1}else if(!ne[st]){if(!So(O,hk(Ct,M,""))){if(!((st==="src"||st==="xlink:href"||st==="href")&&Ne!=="script"&&Rmt(Ct,"data:")===0&&de[Ne])){if(!(ee&&!So(L,hk(Ct,M,"")))){if(Ct)return!1}}}}}}}return!0},Rt=function(Ne){return Ne!=="annotation-xml"&&rM(Ne,P)},tn=function(Ne){rt(D.beforeSanitizeAttributes,Ne,null);const{attributes:st}=Ne;if(!st||ke(Ne))return;const Ct={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let Wt=st.length;for(;Wt--;){const Mn=st[Wt],{name:Ea,namespaceURI:ha,value:Ei}=Mn,Ui=Ye(Ea),go=Ei;let na=Ea==="value"?go:Mmt(go);if(Ct.attrName=Ui,Ct.attrValue=na,Ct.keepAttr=!0,Ct.forceKeepAttr=void 0,rt(D.uponSanitizeAttribute,Ne,Ct),na=Ct.attrValue,et&&(Ui==="id"||Ui==="name")&&(ft(Ea,Ne),na=Be+na),ue&&So(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,na)){ft(Ea,Ne);continue}if(Ui==="attributename"&&rM(na,"href")){ft(Ea,Ne);continue}if(Ct.forceKeepAttr)continue;if(!Ct.keepAttr){ft(Ea,Ne);continue}if(!J&&So(/\/>/i,na)){ft(Ea,Ne);continue}pe&&tB([N,R,B],Et=>{na=hk(na,Et," ")});const Ot=Ye(Ne.nodeName);if(!Gt(Ot,Ui,na)){ft(Ea,Ne);continue}if(k&&typeof A=="object"&&typeof A.getAttributeType=="function"&&!ha)switch(A.getAttributeType(Ot,Ui)){case"TrustedHTML":{na=k.createHTML(na);break}case"TrustedScriptURL":{na=k.createScriptURL(na);break}}if(na!==go)try{ha?Ne.setAttributeNS(ha,Ea,na):Ne.setAttribute(Ea,na),ke(Ne)?se(Ne):jme(t.removed)}catch{ft(Ea,Ne)}}rt(D.afterSanitizeAttributes,Ne,null)},vn=function lt(Ne){let st=null;const Ct=pt(Ne);for(rt(D.beforeSanitizeShadowDOM,Ne,null);st=Ct.nextNode();)rt(D.uponSanitizeShadowNode,st,null),Dt(st),tn(st),st.content instanceof i&&lt(st.content);rt(D.afterSanitizeShadowDOM,Ne,null)};return t.sanitize=function(lt){let Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=null,Ct=null,Wt=null,Mn=null;if(we=!lt,we&&(lt="<!-->"),typeof lt!="string"&&!it(lt))if(typeof lt.toString=="function"){if(lt=lt.toString(),typeof lt!="string")throw fk("dirty is not a string, aborting")}else throw fk("toString is not a function");if(!t.isSupported)return lt;if(Le||ut(Ne),t.removed=[],typeof lt=="string"&&(Je=!1),Je){if(lt.nodeName){const Ei=Ye(lt.nodeName);if(!$[Ei]||W[Ei])throw fk("root node is forbidden and cannot be sanitized in-place")}}else if(lt instanceof s)st=At("<!---->"),Ct=st.ownerDocument.importNode(lt,!0),Ct.nodeType===yk.element&&Ct.nodeName==="BODY"||Ct.nodeName==="HTML"?st=Ct:st.appendChild(Ct);else{if(!Ee&&!pe&&!Te&&lt.indexOf("<")===-1)return k&&Ue?k.createHTML(lt):lt;if(st=At(lt),!st)return Ee?null:Ue?_:""}st&&qe&&se(st.firstChild);const Ea=pt(Je?lt:st);for(;Wt=Ea.nextNode();)Dt(Wt),tn(Wt),Wt.content instanceof i&&vn(Wt.content);if(Je)return lt;if(Ee){if(De)for(Mn=x.call(st.ownerDocument);st.firstChild;)Mn.appendChild(st.firstChild);else Mn=st;return(j.shadowroot||j.shadowrootmode)&&(Mn=I.call(a,Mn,!0)),Mn}let ha=Te?st.outerHTML:st.innerHTML;return Te&&$["!doctype"]&&st.ownerDocument&&st.ownerDocument.doctype&&st.ownerDocument.doctype.name&&So(Yme,st.ownerDocument.doctype.name)&&(ha="<!DOCTYPE "+st.ownerDocument.doctype.name+`>
480
480
  `+ha),pe&&tB([N,R,B],Ei=>{ha=hk(ha,Ei," ")}),k&&Ue?k.createHTML(ha):ha},t.setConfig=function(){let lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ut(lt),Le=!0},t.clearConfig=function(){fe=null,Le=!1},t.isValidAttribute=function(lt,Ne,st){fe||ut({});const Ct=Ye(lt),Wt=Ye(Ne);return Gt(Ct,Wt,st)},t.addHook=function(lt,Ne){typeof Ne=="function"&&gk(D[lt],Ne)},t.removeHook=function(lt,Ne){if(Ne!==void 0){const st=Fmt(D[lt],Ne);return st===-1?void 0:Lmt(D[lt],st,1)[0]}return jme(D[lt])},t.removeHooks=function(lt){D[lt]=[]},t.removeAllHooks=function(){D=Kme()},t}var _p=Zme(),Vme=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,wk=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Jmt=/\s*%%.*\n/gm,Jme=(jy=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},C(jy,"UnknownDiagramError"),jy),gA={},lM=C(function(e,t){e=e.replace(Vme,"").replace(wk,"").replace(Jmt,`
481
481
  `);for(const[n,{detector:a}]of Object.entries(gA))if(a(e,t))return n;throw new Jme(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),uM=C((...e)=>{for(const{id:t,detector:n,loader:a}of e)Xme(t,n,a)},"registerLazyLoadedDiagrams"),Xme=C((e,t,n)=>{gA[e]&&oe.warn(`Detector with key ${e} already exists. Overwriting.`),gA[e]={detector:t,loader:n},oe.debug(`Detector with key ${e} added${n?" with loader":""}`)},"addDetector"),Xmt=C(e=>gA[e].loader,"getDiagramLoader"),dM=C((e,t,{depth:n=2,clobber:a=!1}={})=>{const r={depth:n,clobber:a};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(i=>dM(e,i,r)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(i=>{e.includes(i)||e.push(i)}),e):e===void 0||n<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(i=>{typeof t[i]=="object"&&t[i]!==null&&(e[i]===void 0||typeof e[i]=="object")?(e[i]===void 0&&(e[i]=Array.isArray(t[i])?[]:{}),e[i]=dM(e[i],t[i],{depth:n-1,clobber:a})):(a||typeof e[i]!="object"&&typeof t[i]!="object")&&(e[i]=t[i])}),e)},"assignWithDepth"),vr=dM,rB="#ffffff",iB="#f2f2f2",Qo=C((e,t)=>t?Ze(e,{s:-40,l:10}):Ze(e,{s:-40,l:-10}),"mkBorder"),eAt=(qy=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Ze(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ze(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Qo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Qo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Qo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Qo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||$t(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||$t(this.tertiaryColor),this.lineColor=this.lineColor||$t(this.background),this.arrowheadColor=this.arrowheadColor||$t(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?cn(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||cn(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||$t(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Ut(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||cn(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||cn(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Ut(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Ut(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ze(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ze(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ze(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ze(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ze(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ze(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Ze(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ze(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ze(this.primaryColor,{h:330}),this.darkMode)for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScale"+n]=cn(this["cScale"+n],75);else for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScale"+n]=cn(this["cScale"+n],25);for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScaleInv"+n]=this["cScaleInv"+n]||$t(this["cScale"+n]);for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this.darkMode?this["cScalePeer"+n]=this["cScalePeer"+n]||Ut(this["cScale"+n],10):this["cScalePeer"+n]=this["cScalePeer"+n]||cn(this["cScale"+n],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let n=0;n<this.THEME_COLOR_LIMIT;n++)this["cScaleLabel"+n]=this["cScaleLabel"+n]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let n=0;n<5;n++)this["surface"+n]=this["surface"+n]||Ze(this.mainBkg,{h:180,s:-15,l:t*(5+n*3)}),this["surfacePeer"+n]=this["surfacePeer"+n]||Ze(this.mainBkg,{h:180,s:-15,l:t*(8+n*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Ze(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Ze(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Ze(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Ze(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Ze(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Ze(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ze(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ze(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Ze(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Ze(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ze(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ze(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ze(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Ze(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Ze(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??Ze(this.primaryColor,{l:-30}),this.venn2=this.venn2??Ze(this.secondaryColor,{l:-30}),this.venn3=this.venn3??Ze(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??Ze(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??Ze(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??Ze(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??Ze(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??Ze(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ze(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ze(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ze(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ze(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ze(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ze(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Mu(this.quadrant1Fill)?Ut(this.quadrant1Fill):cn(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?cn(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ze(this.primaryColor,{h:-30}),this.git4=this.git4||Ze(this.primaryColor,{h:-60}),this.git5=this.git5||Ze(this.primaryColor,{h:-90}),this.git6=this.git6||Ze(this.primaryColor,{h:60}),this.git7=this.git7||Ze(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ut(this.git0,25),this.git1=Ut(this.git1,25),this.git2=Ut(this.git2,25),this.git3=Ut(this.git3,25),this.git4=Ut(this.git4,25),this.git5=Ut(this.git5,25),this.git6=Ut(this.git6,25),this.git7=Ut(this.git7,25)):(this.git0=cn(this.git0,25),this.git1=cn(this.git1,25),this.git2=cn(this.git2,25),this.git3=cn(this.git3,25),this.git4=cn(this.git4,25),this.git5=cn(this.git5,25),this.git6=cn(this.git6,25),this.git7=cn(this.git7,25)),this.gitInv0=this.gitInv0||$t(this.git0),this.gitInv1=this.gitInv1||$t(this.git1),this.gitInv2=this.gitInv2||$t(this.git2),this.gitInv3=this.gitInv3||$t(this.git3),this.gitInv4=this.gitInv4||$t(this.git4),this.gitInv5=this.gitInv5||$t(this.git5),this.gitInv6=this.gitInv6||$t(this.git6),this.gitInv7=this.gitInv7||$t(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rB,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||iB}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(a=>{this[a]=t[a]}),this.updateColors(),n.forEach(a=>{this[a]=t[a]})}},C(qy,"Theme"),qy),tAt=C(e=>{const t=new eAt;return t.calculate(e),t},"getThemeVariables"),nAt=(Gy=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Ut(this.primaryColor,16),this.tertiaryColor=Ze(this.primaryColor,{h:-160}),this.primaryBorderColor=$t(this.background),this.secondaryBorderColor=Qo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qo(this.tertiaryColor,this.darkMode),this.primaryTextColor=$t(this.primaryColor),this.secondaryTextColor=$t(this.secondaryColor),this.tertiaryTextColor=$t(this.tertiaryColor),this.lineColor=$t(this.background),this.textColor=$t(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Ut($t("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=vp(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=cn("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=cn(this.sectionBkgColor,10),this.taskBorderColor=vp(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=vp(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Ut(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||cn(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=Ut(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Ut(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Ut(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=$t(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ze(this.primaryColor,{h:64}),this.fillType3=Ze(this.secondaryColor,{h:64}),this.fillType4=Ze(this.primaryColor,{h:-64}),this.fillType5=Ze(this.secondaryColor,{h:-64}),this.fillType6=Ze(this.primaryColor,{h:128}),this.fillType7=Ze(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ze(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ze(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ze(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ze(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ze(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ze(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ze(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ze(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ze(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||$t(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||Ut(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||Ze(this.mainBkg,{h:30,s:-30,l:-(-10+t*4)}),this["surfacePeer"+t]=this["surfacePeer"+t]||Ze(this.mainBkg,{h:30,s:-30,l:-(-7+t*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??Ut(this["cScale"+t],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ze(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ze(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ze(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ze(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ze(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ze(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Mu(this.quadrant1Fill)?Ut(this.quadrant1Fill):cn(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?cn(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Ut(this.secondaryColor,20),this.git1=Ut(this.pie2||this.secondaryColor,20),this.git2=Ut(this.pie3||this.tertiaryColor,20),this.git3=Ut(this.pie4||Ze(this.primaryColor,{h:-30}),20),this.git4=Ut(this.pie5||Ze(this.primaryColor,{h:-60}),20),this.git5=Ut(this.pie6||Ze(this.primaryColor,{h:-90}),10),this.git6=Ut(this.pie7||Ze(this.primaryColor,{h:60}),10),this.git7=Ut(this.pie8||Ze(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||$t(this.git0),this.gitInv1=this.gitInv1||$t(this.git1),this.gitInv2=this.gitInv2||$t(this.git2),this.gitInv3=this.gitInv3||$t(this.git3),this.gitInv4=this.gitInv4||$t(this.git4),this.gitInv5=this.gitInv5||$t(this.git5),this.gitInv6=this.gitInv6||$t(this.git6),this.gitInv7=this.gitInv7||$t(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||$t(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||$t(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ut(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ut(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(a=>{this[a]=t[a]}),this.updateColors(),n.forEach(a=>{this[a]=t[a]})}},C(Gy,"Theme"),Gy),aAt=C(e=>{const t=new nAt;return t.calculate(e),t},"getThemeVariables"),rAt=(zy=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Ze(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Ze(this.primaryColor,{h:-160}),this.primaryBorderColor=Qo(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qo(this.tertiaryColor,this.darkMode),this.primaryTextColor=$t(this.primaryColor),this.secondaryTextColor=$t(this.secondaryColor),this.tertiaryTextColor=$t(this.tertiaryColor),this.lineColor=$t(this.background),this.textColor=$t(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=vp(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ze(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ze(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ze(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ze(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ze(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ze(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ze(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ze(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ze(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||cn(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||cn(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=cn(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||cn(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Ze(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||Ze(this.mainBkg,{h:30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||Ze(this.mainBkg,{h:30,l:-(7+t*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||$t(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||$t(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=Ut(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Ut(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Ut(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ze(this.primaryColor,{h:64}),this.fillType3=Ze(this.secondaryColor,{h:64}),this.fillType4=Ze(this.primaryColor,{h:-64}),this.fillType5=Ze(this.secondaryColor,{h:-64}),this.fillType6=Ze(this.primaryColor,{h:128}),this.fillType7=Ze(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Ze(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Ze(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ze(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Ze(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Ze(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Ze(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Ze(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Ze(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Ze(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Ze(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??Ze(this.primaryColor,{l:-30}),this.venn2=this.venn2??Ze(this.secondaryColor,{l:-30}),this.venn3=this.venn3??Ze(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??Ze(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??Ze(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??Ze(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??Ze(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??Ze(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ze(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ze(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ze(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ze(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ze(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ze(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Mu(this.quadrant1Fill)?Ut(this.quadrant1Fill):cn(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ze(this.primaryColor,{h:-30}),this.git4=this.git4||Ze(this.primaryColor,{h:-60}),this.git5=this.git5||Ze(this.primaryColor,{h:-90}),this.git6=this.git6||Ze(this.primaryColor,{h:60}),this.git7=this.git7||Ze(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ut(this.git0,25),this.git1=Ut(this.git1,25),this.git2=Ut(this.git2,25),this.git3=Ut(this.git3,25),this.git4=Ut(this.git4,25),this.git5=Ut(this.git5,25),this.git6=Ut(this.git6,25),this.git7=Ut(this.git7,25)):(this.git0=cn(this.git0,25),this.git1=cn(this.git1,25),this.git2=cn(this.git2,25),this.git3=cn(this.git3,25),this.git4=cn(this.git4,25),this.git5=cn(this.git5,25),this.git6=cn(this.git6,25),this.git7=cn(this.git7,25)),this.gitInv0=this.gitInv0||cn($t(this.git0),25),this.gitInv1=this.gitInv1||$t(this.git1),this.gitInv2=this.gitInv2||$t(this.git2),this.gitInv3=this.gitInv3||$t(this.git3),this.gitInv4=this.gitInv4||$t(this.git4),this.gitInv5=this.gitInv5||$t(this.git5),this.gitInv6=this.gitInv6||$t(this.git6),this.gitInv7=this.gitInv7||$t(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||$t(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||$t(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rB,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||iB}calculate(t){if(Object.keys(this).forEach(a=>{this[a]==="calculated"&&(this[a]=void 0)}),typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(a=>{this[a]=t[a]}),this.updateColors(),n.forEach(a=>{this[a]=t[a]})}},C(zy,"Theme"),zy),oB=C(e=>{const t=new rAt;return t.calculate(e),t},"getThemeVariables"),iAt=(Uy=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Ut("#cde498",10),this.primaryBorderColor=Qo(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qo(this.tertiaryColor,this.darkMode),this.primaryTextColor=$t(this.primaryColor),this.secondaryTextColor=$t(this.secondaryColor),this.tertiaryTextColor=$t(this.primaryColor),this.lineColor=$t(this.background),this.textColor=$t(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=cn(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ze(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ze(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ze(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ze(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ze(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ze(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ze(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ze(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ze(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||cn(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||cn(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=cn(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||cn(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Ze(this["cScale"+t],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||Ze(this.mainBkg,{h:30,s:-30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||Ze(this.mainBkg,{h:30,s:-30,l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Ut(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Ut(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ze(this.primaryColor,{h:64}),this.fillType3=Ze(this.secondaryColor,{h:64}),this.fillType4=Ze(this.primaryColor,{h:-64}),this.fillType5=Ze(this.secondaryColor,{h:-64}),this.fillType6=Ze(this.primaryColor,{h:128}),this.fillType7=Ze(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ze(this.primaryColor,{l:-30}),this.pie5=this.pie5||Ze(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Ze(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Ze(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ze(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ze(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ze(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Ze(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Ze(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??Ze(this.primaryColor,{l:-30}),this.venn2=this.venn2??Ze(this.secondaryColor,{l:-30}),this.venn3=this.venn3??Ze(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??Ze(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??Ze(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??Ze(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??Ze(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??Ze(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ze(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ze(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ze(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ze(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ze(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ze(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Mu(this.quadrant1Fill)?Ut(this.quadrant1Fill):cn(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ze(this.primaryColor,{h:-30}),this.git4=this.git4||Ze(this.primaryColor,{h:-60}),this.git5=this.git5||Ze(this.primaryColor,{h:-90}),this.git6=this.git6||Ze(this.primaryColor,{h:60}),this.git7=this.git7||Ze(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ut(this.git0,25),this.git1=Ut(this.git1,25),this.git2=Ut(this.git2,25),this.git3=Ut(this.git3,25),this.git4=Ut(this.git4,25),this.git5=Ut(this.git5,25),this.git6=Ut(this.git6,25),this.git7=Ut(this.git7,25)):(this.git0=cn(this.git0,25),this.git1=cn(this.git1,25),this.git2=cn(this.git2,25),this.git3=cn(this.git3,25),this.git4=cn(this.git4,25),this.git5=cn(this.git5,25),this.git6=cn(this.git6,25),this.git7=cn(this.git7,25)),this.gitInv0=this.gitInv0||$t(this.git0),this.gitInv1=this.gitInv1||$t(this.git1),this.gitInv2=this.gitInv2||$t(this.git2),this.gitInv3=this.gitInv3||$t(this.git3),this.gitInv4=this.gitInv4||$t(this.git4),this.gitInv5=this.gitInv5||$t(this.git5),this.gitInv6=this.gitInv6||$t(this.git6),this.gitInv7=this.gitInv7||$t(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||$t(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||$t(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rB,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||iB}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(a=>{this[a]=t[a]}),this.updateColors(),n.forEach(a=>{this[a]=t[a]})}},C(Uy,"Theme"),Uy),oAt=C(e=>{const t=new iAt;return t.calculate(e),t},"getThemeVariables"),sAt=(Hy=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Ut(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Ze(this.primaryColor,{h:-160}),this.primaryBorderColor=Qo(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qo(this.tertiaryColor,this.darkMode),this.primaryTextColor=$t(this.primaryColor),this.secondaryTextColor=$t(this.secondaryColor),this.tertiaryTextColor=$t(this.tertiaryColor),this.lineColor=$t(this.background),this.textColor=$t(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Ut(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=Ut(this.contrast,55),this.border2=this.contrast,this.actorBorder=Ut(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||$t(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||Ut(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||cn(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||Ze(this.mainBkg,{l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||Ze(this.mainBkg,{l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=Ut(this.contrast,30),this.sectionBkgColor2=Ut(this.contrast,30),this.taskBorderColor=cn(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Ut(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=cn(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ze(this.primaryColor,{h:64}),this.fillType3=Ze(this.secondaryColor,{h:64}),this.fillType4=Ze(this.primaryColor,{h:-64}),this.fillType5=Ze(this.secondaryColor,{h:-64}),this.fillType6=Ze(this.primaryColor,{h:128}),this.fillType7=Ze(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let t=0;t<8;t++)this["venn"+(t+1)]=this["venn"+(t+1)]??this["cScale"+t];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ze(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ze(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ze(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ze(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ze(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ze(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Mu(this.quadrant1Fill)?Ut(this.quadrant1Fill):cn(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=cn(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Ze(this.primaryColor,{h:-30}),this.git4=this.pie5||Ze(this.primaryColor,{h:-60}),this.git5=this.pie6||Ze(this.primaryColor,{h:-90}),this.git6=this.pie7||Ze(this.primaryColor,{h:60}),this.git7=this.pie8||Ze(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||$t(this.git0),this.gitInv1=this.gitInv1||$t(this.git1),this.gitInv2=this.gitInv2||$t(this.git2),this.gitInv3=this.gitInv3||$t(this.git3),this.gitInv4=this.gitInv4||$t(this.git4),this.gitInv5=this.gitInv5||$t(this.git5),this.gitInv6=this.gitInv6||$t(this.git6),this.gitInv7=this.gitInv7||$t(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||rB,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||iB}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(a=>{this[a]=t[a]}),this.updateColors(),n.forEach(a=>{this[a]=t[a]})}},C(Hy,"Theme"),Hy),cAt=C(e=>{const t=new sAt;return t.calculate(e),t},"getThemeVariables"),Ou={base:{getThemeVariables:tAt},dark:{getThemeVariables:aAt},default:{getThemeVariables:oB},forest:{getThemeVariables:oAt},neutral:{getThemeVariables:cAt}},lc={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},eAe={...lc,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Ou.default.getThemeVariables(),sequence:{...lc.sequence,messageFont:C(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:C(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:C(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...lc.gantt,tickInterval:void 0,useWidth:void 0},c4:{...lc.c4,useWidth:void 0,personFont:C(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...lc.flowchart,inheritDir:!1},external_personFont:C(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:C(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:C(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:C(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:C(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:C(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:C(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:C(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:C(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:C(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:C(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:C(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:C(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:C(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:C(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:C(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:C(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:C(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:C(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:C(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:C(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...lc.pie,useWidth:984},xyChart:{...lc.xyChart,useWidth:void 0},requirement:{...lc.requirement,useWidth:void 0},packet:{...lc.packet},radar:{...lc.radar},ishikawa:{...lc.ishikawa},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...lc.venn}},tAe=C((e,t="")=>Object.keys(e).reduce((n,a)=>Array.isArray(e[a])?n:typeof e[a]=="object"&&e[a]!==null?[...n,t+a,...tAe(e[a],"")]:[...n,t+a],[]),"keyify"),lAt=new Set(tAe(eAe,"")),Wn=eAe,sB=C(e=>{if(oe.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>sB(t));return}for(const t of Object.keys(e)){if(oe.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!lAt.has(t)||e[t]==null){oe.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){oe.debug("sanitizing object",t),sB(e[t]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const a of n)t.includes(a)&&(oe.debug("sanitizing css option",t),e[t]=uAt(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const n=e.themeVariables[t];n?.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}oe.debug("After sanitization",e)}},"sanitizeDirective"),uAt=C(e=>{let t=0,n=0;for(const a of e){if(t<n)return"{ /* ERROR: Unbalanced CSS */ }";a==="{"?t++:a==="}"&&n++}return t!==n?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),bf=Object.freeze(Wn),Cp=C(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),is=vr({},bf),cB,hA=[],kk=vr({},bf),lB=C((e,t)=>{let n=vr({},e),a={};for(const r of t)rAe(r),a=vr(a,r);if(n=vr(n,a),a.theme&&a.theme in Ou){const r=vr({},cB),i=vr(r.themeVariables||{},a.themeVariables);n.theme&&n.theme in Ou&&(n.themeVariables=Ou[n.theme].getThemeVariables(i))}return kk=n,sAe(kk),kk},"updateCurrentConfig"),dAt=C(e=>(is=vr({},bf),is=vr(is,e),e.theme&&Ou[e.theme]&&(is.themeVariables=Ou[e.theme].getThemeVariables(e.themeVariables)),lB(is,hA),is),"setSiteConfig"),pAt=C(e=>{cB=vr({},e)},"saveConfigFromInitialize"),mAt=C(e=>(is=vr(is,e),lB(is,hA),is),"updateSiteConfig"),nAe=C(()=>vr({},is),"getSiteConfig"),aAe=C(e=>(sAe(e),vr(kk,e),Kn()),"setConfig"),Kn=C(()=>vr({},kk),"getConfig"),rAe=C(e=>{e&&(["secure",...is.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(oe.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&rAe(e[t])}))},"sanitize"),AAt=C(e=>{sB(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),hA.push(e),lB(is,hA)},"addDirective"),uB=C((e=is)=>{hA=[],lB(e,hA)},"reset"),gAt={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},iAe={},oAe=C(e=>{iAe[e]||(oe.warn(gAt[e]),iAe[e]=!0)},"issueWarning"),sAe=C(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&oAe("LAZY_LOAD_DEPRECATED")},"checkConfig"),hAt=C(()=>{let e={};cB&&(e=vr(e,cB));for(const t of hA)e=vr(e,t);return e},"getUserDefinedConfig"),ma=C(e=>(e.flowchart?.htmlLabels!=null&&oAe("FLOWCHART_HTML_LABELS_DEPRECATED"),Cp(e.htmlLabels??e.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),yf=/<br\s*\/?>/gi,fAt=C(e=>e?dAe(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),bAt=(()=>{let e=!1;return()=>{e||(cAe(),e=!0)}})();function cAe(){const e="data-temp-href-target";_p.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),_p.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}C(cAe,"setupDompurifyHooks");var lAe=C(e=>(bAt(),_p.sanitize(e)),"removeScript"),uAe=C((e,t)=>{if(ma(t)){const n=t.securityLevel;n==="antiscript"||n==="strict"||n==="sandbox"?e=lAe(e):n!=="loose"&&(e=dAe(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=vAt(e))}return e},"sanitizeMore"),aa=C((e,t)=>e&&(t.dompurifyConfig?e=_p.sanitize(uAe(e,t),t.dompurifyConfig).toString():e=_p.sanitize(uAe(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),yAt=C((e,t)=>typeof e=="string"?aa(e,t):e.flat().map(n=>aa(n,t)),"sanitizeTextOrArray"),wAt=C(e=>yf.test(e),"hasBreaks"),kAt=C(e=>e.split(yf),"splitBreaks"),vAt=C(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),dAe=C(e=>e.replace(yf,"#br#"),"breakToPlaceholder"),dB=C(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),_At=C(function(...e){const t=e.filter(n=>!isNaN(n));return Math.max(...t)},"getMax"),CAt=C(function(...e){const t=e.filter(n=>!isNaN(n));return Math.min(...t)},"getMin"),Ep=C(function(e){const t=e.split(/(,)/),n=[];for(let a=0;a<t.length;a++){let r=t[a];if(r===","&&a>0&&a+1<t.length){const i=t[a-1],o=t[a+1];EAt(i,o)&&(r=i+","+o,a++,n.pop())}n.push(xAt(r))}return n.join("")},"parseGenericTypes"),pM=C((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),EAt=C((e,t)=>{const n=pM(e,"~"),a=pM(t,"~");return n===1&&a===1},"shouldCombineSets"),xAt=C(e=>{const t=pM(e,"~");let n=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),n=!0);const a=[...e];let r=a.indexOf("~"),i=a.lastIndexOf("~");for(;r!==-1&&i!==-1&&r!==i;)a[r]="<",a[i]=">",r=a.indexOf("~"),i=a.lastIndexOf("~");return n&&a.unshift("~"),a.join("")},"processSet"),pAe=C(()=>window.MathMLElement!==void 0,"isMathMLSupported"),mM=/\$\$(.*)\$\$/g,_r=C(e=>(e.match(mM)?.length??0)>0,"hasKatex"),vk=C(async(e,t)=>{const n=document.createElement("div");n.innerHTML=await pB(e,t),n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",n);const r={width:n.clientWidth,height:n.clientHeight};return n.remove(),r},"calculateMathMLDimensions"),BAt=C(async(e,t)=>{if(!_r(e))return e;if(!(pAe()||t.legacyMathML||t.forceLegacyMathML))return e.replace(mM,"MathML is unsupported in this environment.");{const{default:n}=await Promise.resolve().then(()=>s7e),a=t.forceLegacyMathML||!pAe()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(yf).map(r=>_r(r)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${r}</div>`:`<div>${r}</div>`).join("").replace(mM,(r,i)=>n.renderToString(i,{throwOnError:!0,displayMode:!0,output:a}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),pB=C(async(e,t)=>aa(await BAt(e,t),t),"renderKatexSanitized"),It={getRows:fAt,sanitizeText:aa,sanitizeTextOrArray:yAt,hasBreaks:wAt,splitBreaks:kAt,lineBreakRegex:yf,removeScript:lAe,getUrl:dB,evaluate:Cp,getMax:_At,getMin:CAt},IAt=C(function(e,t){for(let n of t)e.attr(n[0],n[1])},"d3Attrs"),SAt=C(function(e,t,n){let a=new Map;return n?(a.set("width","100%"),a.set("style",`max-width: ${t}px;`)):(a.set("height",e),a.set("width",t)),a},"calculateSvgSizeAttrs"),Ai=C(function(e,t,n,a){const r=SAt(t,n,a);IAt(e,r)},"configureSvgSize"),_k=C(function(e,t,n,a){const r=t.node().getBBox(),i=r.width,o=r.height;oe.info(`SVG bounds: ${i}x${o}`,r);let s=0,l=0;oe.info(`Graph bounds: ${s}x${l}`,e),s=i+n*2,l=o+n*2,oe.info(`Calculated bounds: ${s}x${l}`),Ai(t,l,s,a);const u=`${r.x-n} ${r.y-n} ${r.width+2*n} ${r.height+2*n}`;t.attr("viewBox",u)},"setupGraphViewbox"),mB={},DAt=C((e,t,n)=>{let a="";return e in mB&&mB[e]?a=mB[e](n):oe.warn(`No theme found for ${e}`),` & {
482
482
  font-family: ${n.fontFamily};