1var Rn=Object.defineProperty;var jn=(e,n,i)=>n in e?Rn(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var b=(e,n,i)=>jn(e,typeof n!="symbol"?n+"":n,i);import{u as Bn,r as ie,j as Y,T as ze,c as Ge,B as Dn,A as qn}from"./index-NJ3uk8qz.js";import{e as Un}from"./executeError-CLrfvkuM.js";const Kn="Ø§ÙØµÙ YAML Ø£Ø¯ÙØ§Ù",Hn=`Ø§ÙØ§Ø³Ù : Ø§Ø¯ÙØ§Øª ÙÙØ±Ø¨Ø§Ø¦ÙØ© 2اÙÙ ÙØ²Ø§Øª: 3 - ٠جاÙÙ 4 - Ù ØÙÙ`,Vn="ØªÙØ³ÙÙ YAML",zn="YAML Ù ÙØ³Ù",Gn="YAML ØºÙØ± ØµØ§ÙØ. Ø§ÙØªØÙ٠٠٠اÙÙ Ø³Ø§ÙØ© Ø§ÙØ¨Ø§Ø¯Ø¦Ø© ÙØ¨Ùاء Ø§ÙØ¬Ù ÙØ©.",Wn="ÙØªØ¬Ø§Ùز Ø§ÙØ¥Ø¯Ø®Ø§Ù Ø§ÙØØ¯ Ø§ÙØ£ÙØµÙ ÙØ¹Ø¯Ø¯ Ø§ÙØ£ØØ±Ù ÙÙÙ 200000 ØØ±Ù.",Qn={inputLabel:Kn,inputPlaceholder:Hn,format:Vn,resultLabel:zn,invalidYaml:Gn,tooLong:Wn},Xn="নিà¦à§ YAML পà§à¦¸à§à¦ à¦à¦°à§à¦¨",Jn=`নাম: পাà¦à¦¯à¦¼à¦¾à¦° à¦à§à¦²à¦¸ 5বà§à¦¶à¦¿à¦·à§à¦à§à¦¯: 6 - বিনামà§à¦²à§à¦¯à§ 7 - সà§à¦¥à¦¾à¦¨à§à¦¯à¦¼`,Zn="YAML ফরà§à¦®à§à¦¯à¦¾à¦ à¦à¦°à§à¦¨",ei="ফরà§à¦®à§à¦¯à¦¾à¦ à¦à¦°à¦¾ YAML",ni="ঠবà§à¦§ YAML à¦à¦¨à§à¦¡à§à¦¨à§à¦à§à¦¶à¦¨ à¦à¦¬à¦ সিনà¦à§à¦¯à¦¾à¦à§à¦¸ পরà§à¦à§à¦·à¦¾ à¦à¦°à§à¦¨à¥¤",ii="à¦à¦¨à¦ªà§à¦ 200,000 ঠà¦à§à¦·à¦° সà§à¦®à¦¾ ঠতিà¦à§à¦°à¦® à¦à¦°à§à¦à§à§·",ti={inputLabel:Xn,inputPlaceholder:Jn,format:Zn,resultLabel:ei,invalidYaml:ni,tooLong:ii},ri="Fügen Sie unten YAML ein",oi=`Name: Elektrowerkzeuge 8Merkmale: 9 - kostenlos 10 - lokal`,li="Formatieren Sie YAML",ai="Formatiertes YAML",ci="Ungültiges YAML. Ãberprüfen Sie Einrückung und Syntax.",si="Die Eingabe überschreitet die Grenze von 200.000 Zeichen.",ui={inputLabel:ri,inputPlaceholder:oi,format:li,resultLabel:ai,invalidYaml:ci,tooLong:si},fi="Paste YAML below",pi=`name: Power Tools 11features: 12 - free 13 - local`,di="Format YAML",hi="Formatted YAML",gi="Invalid YAML. Check indentation and syntax.",mi="Input exceeds the 200,000 character limit.",Ai={inputLabel:fi,inputPlaceholder:pi,format:di,resultLabel:hi,invalidYaml:gi,tooLong:mi},Li="Pegue YAML a continuación",vi=`nombre: Herramientas eléctricas 14caracterÃsticas: 15 - gratis 16 - locales`,bi="Formato YAML",yi="YAML formateado",Si="YAML no válido. Verifique la sangrÃa y la sintaxis.",Ti="La entrada supera el lÃmite de 200.000 caracteres.",_i={inputLabel:Li,inputPlaceholder:vi,format:bi,resultLabel:yi,invalidYaml:Si,tooLong:Ti},Ci="YAML را در Ø²ÛØ± Ø¨ÚØ³Ø¨Ø§ÙÛØ¯",Ei=`ÙØ§Ù : ابزار ÙØ¯Ø±Øª 17ÙÛÚÚ¯Û ÙØ§: 18 - راÛگا٠19 - Ù ØÙÛ`,$i="ÙØ±Ù ت YAML",ki="ÙØ±Ù ت YAML",Ii="YAML ÙØ§Ù عتبر است. ØªÙØ±ÙØªÚ¯Û Ù ÙØÙ Ø±Ø§ Ø¨Ø±Ø±Ø³Û Ú©ÙÛØ¯.",Ni="ÙØ±ÙØ¯Û Ø¨ÛØ´ از ØØ¯ ٠جاز 200000 کاراکتر است.",Yi={inputLabel:Ci,inputPlaceholder:Ei,format:$i,resultLabel:ki,invalidYaml:Ii,tooLong:Ni},xi="Paste YAML below",wi=`pangalan: Power Tools 20mga tampok: 21 - libre 22 - lokal`,Mi="Format YAML",Pi="Formatted YAML",Fi="Di-wastong YAML. Suriin ang indentation at syntax.",Oi="Ang input ay lumampas sa 200,000 character na limitasyon.",Ri={inputLabel:xi,inputPlaceholder:wi,format:Mi,resultLabel:Pi,invalidYaml:Fi,tooLong:Oi},ji="Collez YAML ci-dessous",Bi=`nom: Outils électriques 23caractéristiques : 24 - gratuit 25 - local`,Di="Formater YAML",qi="YAML formaté",Ui="YAML invalide. Vérifiez l'indentation et la syntaxe.",Ki="La saisie dépasse la limite de 200 000 caractères.",Hi={inputLabel:ji,inputPlaceholder:Bi,format:Di,resultLabel:qi,invalidYaml:Ui,tooLong:Ki},Vi="नà¥à¤à¥ YAML à¤à¤¿à¤ªà¤à¤¾à¤à¤",zi=`नाम: विदà¥à¤¯à¥à¤¤ à¤à¤ªà¤à¤°à¤£ 26विशà¥à¤·à¤¤à¤¾à¤à¤: 27 - मà¥à¤«à¤¼à¥à¤¤ 28 - सà¥à¤¥à¤¾à¤¨à¥à¤¯`,Gi="YAML पà¥à¤°à¤¾à¤°à¥à¤ªà¤¿à¤¤ à¤à¤°à¥à¤",Wi="सà¥à¤µà¤°à¥à¤ªà¤¿à¤¤ YAML",Qi="ठमानà¥à¤¯ YAML. à¤à¤à¤¡à¥à¤à¤à¥à¤¶à¤¨ à¤à¤° सिà¤à¤à¥à¤à¥à¤¸ à¤à¥ à¤à¤¾à¤à¤ à¤à¤°à¥à¤.",Xi="à¤à¤¨à¤ªà¥à¤ 200,000 वरà¥à¤£ सà¥à¤®à¤¾ सॠठधिठहà¥à¥¤",Ji={inputLabel:Vi,inputPlaceholder:zi,format:Gi,resultLabel:Wi,invalidYaml:Qi,tooLong:Xi},Zi="Tempel YAML di bawah",et=`nama: Perkakas Listrik 29fitur: 30 - gratis 31 - lokal`,nt="Format YAML",it="YAML yang diformat",tt="YAML tidak valid. Periksa indentasi dan sintaksis.",rt="Input melebihi batas 200.000 karakter.",ot={input
31Label:Zi,inputPlaceholder:et,format:nt,resultLabel:it,invalidYaml:tt,tooLong:rt},lt="Incolla YAML qui sotto",at=`nome: Utensili elettrici 32caratteristiche: 33 - gratuito 34 - locale`,ct="Formato YAML",st="YAML formattato",ut="YAML non valido. Controlla il rientro e la sintassi.",ft="L'input supera il limite di 200.000 caratteri.",pt={inputLabel:lt,inputPlaceholder:at,format:ct,resultLabel:st,invalidYaml:ut,tooLong:ft},dt="YAML ãä¸ã«è²¼ãä»ãã¾ã",ht=`åå: é»åå·¥å · 35ç¹å¾´: 36 - ç¡æ 37 - ãã¼ã«ã«`,gt="YAMLå½¢å¼",mt="ãã©ã¼ããããããYAML",At="ç¡å¹ãª YAMLãã¤ã³ãã³ãã¨æ§æã確èªãã¦ãã ããã",Lt="å ¥åã 200,000 æåã®å¶éãè¶ ãã¦ãã¾ãã",vt={inputLabel:dt,inputPlaceholder:ht,format:gt,resultLabel:mt,invalidYaml:At,tooLong:Lt},bt="ìëì YAMLì ë¶ì¬ë£ì¼ì¸ì.",yt=`ì´ë¦: ì ë 공구 38í¹ì§: 39 - ë¬´ë£ 40 - ì§ì`,St="YAML íì",Tt="íìíë YAML",_t="ì못ë YAMLì ëë¤. ë¤ì¬ì°ê¸°ì 구문ì íì¸íì¸ì.",Ct="ì ë ¥ì´ 200,000ì ì íì ì´ê³¼íìµëë¤.",Et={inputLabel:bt,inputPlaceholder:yt,format:St,resultLabel:Tt,invalidYaml:_t,tooLong:Ct},$t="Paste YAML below",kt=`nama: Alat Kuasa 41ciri-ciri: 42 - percuma 43 - tempatan`,It="Format YAML",Nt="Formatted YAML",Yt="YAML tidak sah. Semak lekukan dan sintaks.",xt="Input melebihi had 200,000 aksara.",wt={inputLabel:$t,inputPlaceholder:kt,format:It,resultLabel:Nt,invalidYaml:Yt,tooLong:xt},Mt="Plak YAML hieronder",Pt=`naam: Elektrisch gereedschap 44kenmerken: 45 - gratis 46 - lokaal`,Ft="YAML-indeling",Ot="YAML geformatteerd",Rt="Ongeldige YAML. Controleer de inspringing en syntaxis.",jt="De invoer overschrijdt de limiet van 200.000 tekens.",Bt={inputLabel:Mt,inputPlaceholder:Pt,format:Ft,resultLabel:Ot,invalidYaml:Rt,tooLong:jt},Dt="Wklej poniżej YAML",qt=`nazwa: ElektronarzÄdzia 47cechy: 48 - za darmo 49 - lokalny`,Ut="Sformatuj YAML",Kt="Sformatowany YAML",Ht="NieprawidÅowy YAML. Sprawdź wciÄcia i skÅadniÄ.",Vt="Wprowadzona dÅugoÅÄ przekracza limit 200 000 znaków.",zt={inputLabel:Dt,inputPlaceholder:qt,format:Ut,resultLabel:Kt,invalidYaml:Ht,tooLong:Vt},Gt="Cole o YAML abaixo",Wt=`nome: Ferramentas Elétricas 50recursos: 51 - grátis 52 - locais`,Qt="Formatar YAML",Xt="YAML formatado",Jt="YAML inválido. Verifique o recuo e a sintaxe.",Zt="A entrada excede o limite de 200.000 caracteres.",er={inputLabel:Gt,inputPlaceholder:Wt,format:Qt,resultLabel:Xt,invalidYaml:Jt,tooLong:Zt},nr="ÐÑÑавÑÑе YAML ниже",ir=`имÑ: ÐлекÑÑоинÑÑÑÑменÑÑ 53оÑобенноÑÑи: 54 - беÑплаÑно 55 - меÑÑнÑй`,tr="ФоÑÐ¼Ð°Ñ YAML",rr="ФоÑмаÑиÑованнÑй YAML",or="ÐевеÑнÑй YAML. ÐÑовеÑÑÑе оÑÑÑÑÐ¿Ñ Ð¸ ÑинÑакÑиÑ.",lr="Ðвод пÑевÑÑÐ°ÐµÑ Ð»Ð¸Ð¼Ð¸Ñ Ð² 200 000 Ñимволов.",ar={inputLabel:nr,inputPlaceholder:ir,format:tr,resultLabel:rr,invalidYaml:or,tooLong:lr},cr="Paste YAML below",sr=`jina: Vyombo vya Nguvu 56vipengele: 57 - bure 58 - ndani`,ur="Format YAML",fr="Formatted YAML",pr="YAML si sahihi. Angalia ujongezaji na sintaksia.",dr="Ingizo linazidi kikomo cha herufi 200,000.",hr={inputLabel:cr,inputPlaceholder:sr,format:ur,resultLabel:fr,invalidYaml:pr,tooLong:dr},gr="วาภYAML à¸à¹à¸²à¸à¸¥à¹à¸²à¸",mr=`à¸à¸·à¹à¸: à¹à¸à¸£à¸·à¹à¸à¸à¸¡à¸·à¸à¹à¸à¸à¹à¸² 59à¸à¸¸à¸à¸ªà¸¡à¸à¸±à¸à¸´: 60 - à¸à¸£à¸µ 61 - à¸à¹à¸à¸à¸à¸´à¹à¸`,Ar="à¸à¸±à¸à¸£à¸¹à¸à¹à¸à¸ YAML",Lr="YAML à¸à¸µà¹à¸à¸±à¸à¸£à¸¹à¸à¹à¸à¸à¹à¸¥à¹à¸§",vr="YAML à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸ à¸à¸£à¸§à¸à¸ªà¸à¸à¸à¸²à¸£à¹à¸¢à¸·à¹à¸à¸à¹à¸¥à¸°à¹à¸§à¸¢à¸²à¸à¸£à¸à¹",br="à¸à¸´à¸à¸à¸¸à¸à¹à¸à¸´à¸à¸à¸µà¸à¸à¸³à¸à¸±à¸à¸à¸±à¸à¸à¸£à¸° 200,000 à¸à¸±à¸§",yr={inputLabel:gr,inputPlaceholder:mr,format:Ar,resultLabel:Lr,invali
61dYaml:vr,tooLong:br},Sr="YAML'yi aÅaÄıya yapıÅtırın",Tr=`isim: Elektrikli El Aletleri 62özellikler: 63 - ücretsiz 64 - yerel`,_r="YAML'yi biçimlendir",Cr="BiçimlendirilmiÅ YAML",Er="Geçersiz YAML. Girintiyi ve söz dizimini kontrol edin.",$r="GiriÅ 200.000 karakter sınırını aÅıyor.",kr={inputLabel:Sr,inputPlaceholder:Tr,format:_r,resultLabel:Cr,invalidYaml:Er,tooLong:$r},Ir="ÐÑÑавÑе YAML нижÑе",Nr=`Ðазва: ÐлекÑÑоÑнÑÑÑÑменÑи 65оÑобливоÑÑÑ: 66 - безкоÑÑовно 67 - мÑÑÑевий`,Yr="ФоÑÐ¼Ð°Ñ YAML",xr="ÐÑдÑоÑмаÑований YAML",wr="ÐедÑйÑний YAML. ÐеÑевÑÑÑе вÑдÑÑÑпи Ñа ÑинÑакÑиÑ.",Mr="Ðовжина введеного ÑекÑÑÑ Ð¿ÐµÑевиÑÑÑ 200 000 ÑимволÑв.",Pr={inputLabel:Ir,inputPlaceholder:Nr,format:Yr,resultLabel:xr,invalidYaml:wr,tooLong:Mr},Fr="ÙÛÚÛ YAML ÚØ³Ù¾Ø§Úº کرÛÚºÛ",Or=`ÙØ§Ù : Ù¾Ø§ÙØ± Ù¹ÙÙØ² 68Ø®ØµÙØµÛات: 69 --.Ù ÙØª 70 --.Ù ÙØ§Ù Û`,Rr="YAML ÙØ§Ø±Ù ÛÙ¹ کرÛÚºÛ",jr="ÙØ§Ø±Ù ÛÙ¹ Ø´Ø¯Û YAML",Br="ØºÙØ· YAMLÛ Ø§ÙÚÛÙÙ¹ÛØ´Ù Ø§ÙØ± ÙØÙ Ú©Ù ÚÛÚ© کرÛÚºÛ",Dr="ا٠پٹ 200,000 ØØ±ÙÙ Ú©Û ØØ¯ Ø³Û Ø²ÛØ§Ø¯Û ÛÛÛ",qr={inputLabel:Fr,inputPlaceholder:Or,format:Rr,resultLabel:jr,invali
70dYaml:Br,tooLong:Dr},Ur="Dán YAML bên dưá»i",Kr=`Tên: Dụng cụ Äiá»n 71tÃnh nÄng: 72 - miá» n phà 73 - Äá»a phương`,Hr="Äá»nh dạng YAML",Vr="YAML ÄÆ°á»£c Äá»nh dạng",zr="YAML không hợp lá». Kiá»m tra thụt lá» và cú pháp.",Gr="Dữ liá»u nháºp vượt quá giá»i hạn 200.000 ký tá»±.",Wr={inputLabel:Ur,inputPlaceholder:Kr,format:Hr,resultLabel:Vr,invalidYaml:zr,tooLong:Gr},Qr="å¨ä¸æ¹ç²è´´ YAML",Xr=`åç§°ï¼ çµå¨å·¥å · 74ç¹ç¹ï¼ 75 - å è´¹ 76 - æ¬å°`,Jr="æ ¼å¼å YAML",Zr="æ ¼å¼åç»æ",eo="YAML æ æï¼è¯·æ£æ¥ç¼©è¿ä¸è¯æ³ã",no="è¾å ¥è¶ è¿ 200,000 å符éå¶ã",io={inputLabel:Qr,inputPlaceholder:Xr,format:Jr,resultLabel:Zr,invalidYaml:eo,tooLong:no},to="å¨ä¸æ¹ç²è²¼ YAML",ro=`åç¨±ï¼ é»åå·¥å · 77ç¹é»ï¼ 78 - å è²» 79 - æ¬å°`,oo="æ ¼å¼å YAML",lo="æ ¼å¼åçµæ",ao="YAML ç¡æï¼è«æª¢æ¥ç¸®é²èèªæ³ã",co="è¼¸å ¥è¶ é 200,000 å符éå¶ã",so={inputLabel:to,inputPlaceholder:ro,format:oo,resultLabel:lo,invalidYaml:ao,tooLong:co};/*! js-yaml 5.2.2 https://github.com/nodeca/js-yaml @license MIT */var m=Symbol("NOT_RESOLVED"),Fe=Symbol("MERGE_KEY");function S(e,n){return{tagName:e,nodeKind:"scalar",implicit:n.implicit??!1,matchByTagPrefix:n.matchByTagPrefix??!1,implicitFirstChars:n.implicitFirstChars??null,resolve:n.resolve,identify:n.identify??null,represent:n.represent??(i=>String(i)),representTagName:n.representTagName??null}}function Oe(e,n){const i=n.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:n.matchByTagPrefix??!1,create:n.create,addItem:n.addItem,finalize:n.finalize??(t=>t),carrierIsResult:i,identify:n.identify??null,represent:n.represent??(t=>t),representTagName:n.representTagName??null}}function ue(e,n){const i=n.finalize===void 0;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:n.matchByTagPrefix??!1,create:n.create,addPair:n.addPair,has:n.has,keys:n.keys,get:n.get,finalize:n.finalize??(t=>t),carrierIsResult:i,identify:n.identify??null,represent:n.represent??(t=>t),representTagName:n.representTagName??null}}var uo=S("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),fo=["","~","null","Null","NULL"],po=S("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>fo.indexOf(e)!==-1?null:m,identify:e=>e===null,represent:()=>"null"}),ho=S("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,n)=>e==="null"||n&&e===""?null:m,identify:e=>e===null,represent:()=>"null"}),go=["","~","null","Null","NULL"],mo=S("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>go.indexOf(e)!==-1?null:m,identify:e=>e===null,represent:()=>"null"}),Ao=["true","True","TRUE"],Lo=["false","False","FALSE"],vo=S("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>Ao.indexOf(e)!==-1?!0:Lo.indexOf(e)!==-1?!1:m,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),bo=["true"],yo=["false"],So=S("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>bo.indexOf(e)!==-1?!0:yo.indexOf(e)!==-1?!1:m,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),To=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],_o=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],Co=S("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>To.indexOf(e)!==-1?!0:_o.indexOf(e)!==-1?!1:m,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),Eo=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),$o=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function ko(e){let n=e,i=1;return(n[0]==="-"||n[0]==="+")&&(n[0]==="-"&&(i=-1),n=n.slice(1)),n.startsWith("0b")?i*parseInt(n.slice(2),2):n.startsWith("0o")?i*parseInt(n.slice(2),8):n.startsWith("0x")?i*parseInt(n.slice(2),16):i*parseInt(n,10)}function Io(e,n){if(n){if(!$o.test(e))return m}else if(!Eo.test(e))return m;const i=ko(e);return Number.isFinite(i)?i:m}var hn=S("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:Io,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),No=new RegExp("^-?(?:0|[1-9][0-9]*)$"),Yo=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function xo(e){let n=e,i=1;return(n[0]==="-"||n[0]==="+")&&(n[0]==="-"&&(i=-1),n=n.slice(1)),n.startsWith("0b")?i*parseInt(n.slice(2),2):n.startsWith("0o")?i*parseInt(n.slice(2),8):n.startsWith("0x")?i*parseInt(n.slice(2),16):i*parseInt(n,10)}function wo(e,n){if(n){if(!Yo.test(e))return m}else if(!No.test(e))return m;const i=xo(e);return Number.isFinite(i)?i:m}var Mo=S("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:wo,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),Po=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function Fo(e){let n=e.replace(/_/g,""),i=1;if((n[0]==="-"||n[0]==="+")&&(n[0]==="-"&&(i=-1),n=n.slice(1)),n.startsWith("0b"))return i*parseInt(n.slice(2),2);if(n.startsWith("0x"))return i*parseInt(n.slice(2),16);if(n.includes(":")){let t=0;for(const r of n.split(":"))t=t*60+Number(r);return i*t}return n!=="0"&&n[0]==="0"?i*parseInt(n,8):i*parseInt(n,10)}function Oo(e){if(!Po.test(e))return m;const n=Fo(e);return Number.isFinite(n)?n:m}var be=S("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:Oo,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),Ro=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),jo=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Bo(e){if(!Ro.test(e))return m;let n=e.toLowerCase();const i=n[0]==="-"?-1:1;
79if("+-".includes(n[0])&&(n=n.slice(1)),n===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;const t=i*parseFloat(n);return Number.isFinite(t)||jo.test(e)?t:m}function Do(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const n=e.toString(10);return/^[-+]?[0-9]+e/.test(n)?n.replace("e",".e"):n}var gn=S("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:Bo,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:Do}),qo=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),Uo=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ko(e,n){if(n){if(!Uo.test(e))return m;let t=e.toLowerCase();const r=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;const o=r*parseFloat(t);return Number.isFinite(o)?o:m}if(!qo.test(e))return m;const i=Number(e);return Number.isFinite(i)?i:m}function Ho(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const n=e.toString(10);return/^[-+]?[0-9]+e/.test(n)?n.replace("e",".e"):n}var Vo=S("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:Ko,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:Ho}),zo=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Go=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Wo(e){if(!zo.test(e))return m;let n=e.toLowerCase().replace(/_/g,"");const i=n[0]==="-"?-1:1;
79if("+-".includes(n[0])&&(n=n.slice(1)),n===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let t=0;if(n.includes(":")){for(const r of n.split(":"))t=t*60+Number(r);t*=i}else t=i*parseFloat(n);return Number.isFinite(t)||Go.test(e)?t:m}function Qo(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const n=e.toString(10);return/^[-+]?[0-9]+e/.test(n)?n.replace("e",".e"):n}var ye=S("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:Wo,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:Qo}),Xo=S("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,n)=>e==="<<"||n&&e===""?Fe:m}),Jo=/^[A-Za-z0-9+/]*={0,2}$/;function Zo(e){const n=e.replace(/\s/g,"");if(n.length%4!==0||!Jo.test(n))return m;const i=atob(n),t=new Uint8Array(i.length);for(let r=0;r<i.length;r++)t[r]=i.charCodeAt(r);return t}function el(e){let n="";for(let i=0;i<e.length;i++)n+=String.fromCharCode(e[i]);return btoa(n)}var nl=S("tag:yaml.org,2002:binary",{resolve:Zo,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:el}),il=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),tl=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function rl(e){let n=il.exec(e);if(n===null&&(n=tl.exec(e)),n===null)return m;const i=+n[1],t=+n[2]-1,r=+n[3];if(!n[4]){const u=new Date(Date.UTC(i,t,r));return u.getUTCFullYear()!==i||u.getUTCMonth()!==t||u.getUTCDate()!==r?m:u}const o=+n[4],l=+n[5],a=+n[6];let c=0;if(o>23||l>59||a>59)return m;if(n[7]){let u=n[7].slice(0,3);for(;u.length<3;)u+="0";c=+u}const s=new Date(Date.UTC(i,t,r,o,l,a,c));if(s.getUTCFullYear()!==i||s.getUTCMonth()!==t||s.getUTCDate()!==r)return m;if(n[9]){const u=+n[10],p=+(n[11]||0);if(u>23||p>59)return m;const f=(u*60+p)*6e4;s.setTime(s.getTime()-(n[9]==="-"?-f:f))}return s}var ol=S("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:rl,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),ll=Oe("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,n)=>{e.push(n)},identify:Array.isArray});function fe(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;const n=Object.getPrototypeOf(e);return n===null||n===Object.prototype}function Se(e,n){const i={};for(const t of n)e[t]!==void 0&&(i[t]=e[t]);return i}var al=Oe("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,n)=>{let i;if(n instanceof Map){if(n.size!==1)return"cannot resolve an ordered map item";i=n.keys().next().value}else if(fe(n)){const t=Object.keys(n);if(t.length!==1)return"cannot resolve an ordered map item";i=t[0]}else return"cannot resolve an ordered map item";return e.seen.has(i)?"duplicate key in ordered map":(e.seen.add(i),e.list.push(n),"")},finalize:e=>e.list}),cl=Oe("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(e,n)=>{if(n instanceof Map)return n.size!==1?"cannot resolve a pairs item":(e.push(n.entries().next().value),"");if(Object.prototype.toString.call(n)!=="[object Object]")return"cannot resolve a pairs item";const i=n,t=Object.keys(i);return t.length!==1?"cannot resolve a pairs item":(e.push([t[0],i[t[0]]]),"")}}),sl=ue("tag:yaml.org,2002:map",{create:()=>({}),identify:fe,represent:e=>{const n=new Map;for(const i of Object.keys(e))n.set(i,e[i]);return n},addPair:(e,n,i)=>{if(n!==null&&typeof n=="object")return"object-based map does not support complex keys";const t=String(n);return t==="__proto__"?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,""},has:(e,n)=>n!==null&&typeof n=="object"?!1:Object.prototype.hasOwnProperty.call(e,String(n)),keys:e=>Object.keys(e),get:(e,n)=>e[String(n)]}),ul=ue("tag:yaml.org,2002:set",{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{const n=new Map;for(const i of e)n.set(i,null);return n},addPair:(e,n,i)=>i!==null?"cannot resolve a set item":(e.add(n),""),has:(e,n)=>e.has(n),keys:e=>e.keys(),get:()=>null});function fl(){return{scalar:{},sequence:{},mapping:{}}}function pl(){return{scalar:[],sequence:[],mapping:[]}}function dl(e){const n=[];for(const i of e){let t=n.length;for(let r=0;r<n.length;r++){const o=n[r];if(o.nodeKind===i.nodeKind&&o.tagName===i.tagName&&o.matchByTagPrefix===i.matchByTagPrefix){t=r;break}}n[t]=i}return n}var pe=class mn{constructor(n){b(this,"tags");b(this,"implicitScalarTags");b(this,"implicitScalarByFirstChar");b(this,"implicitScalarAnyFirstChar");b(this,"defaultScalarTag");b(this,"defaultSequenceTag");b(this,"defaultMappingTag");b(this,"exact");b(this,"prefix");const i=dl(n),t=[],r=fl(),o=pl();for(const u of i){if(u.nodeKind==="scalar"&&u.implicit){if(u.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");t.push(u)}switch(u.nodeKind){case"scalar":u.matchByTagPrefix?o.scalar.push(u):r.scalar[u.tagName]=u;break;case"sequence":u.matchByTagPrefix?o.sequence.push(u):r.sequence[u.tagName]=u;break;case"mapping":u.matchByTagPrefix?o.mapping.push(u):r.mapping[u.tagName]=u;break}}const l=t.filter(u=>u.implicitFirstChars===null),a=new Set;for(const u of t)if(u.implicitFirstChars!==null)for(const p of u.implicitFirstChars)a.add(p);const c=new Map;for(const u of a)c.set(u,t.filter(p=>
79p.implicitFirstChars===null||p.implicitFirstChars.indexOf(u)!==-1));const s=r.scalar["tag:yaml.org,2002:str"];if(!s)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=i,this.implicitScalarTags=t,this.implicitScalarByFirstChar=c,this.implicitScalarAnyFirstChar=l,this.defaultScalarTag=s,this.defaultSequenceTag=r.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=r.mapping["tag:yaml.org,2002:map"],this.exact=r,this.prefix=o}withTags(...n){let i=[];for(const t of n)i=i.concat(t);return new mn([...this.tags,...i])}},Re=new pe([uo,ll,sl]);new pe([...Re.tags,ho,So,Mo,Vo]);var hl=new pe([...Re.tags,po,vo,hn,gn]),gl=new pe([...Re.tags,mo,Co,be,ye,ol,Xo,nl,al,cl,ul]);ue("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,n,i)=>(e.set(n,i),""),has:(e,n)=>e.has(n),keys:e=>e.keys(),get:(e,n)=>e.get(n),identify:e=>e instanceof Map||fe(e),represent:e=>{if(e instanceof Map)return e;const n=new Map,i=e;for(const t of Object.keys(i))n.set(t,i[t]);return n}});function We(e){if(Array.isArray(e)){const n=Array.prototype.slice.call(e);for(let i=0;i<n.length;i++){if(Array.isArray(n[i]))return null;typeof n[i]=="object"&&Object.prototype.toString.call(n[i])==="[object Object]"&&(n[i]="[object Object]")}return String(n)}return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"?"[object Object]":String(e)}ue("tag:yaml.org,2002:map",{create:()=>({}),identify:fe,represent:e=>{const n=new Map;for(const i of Object.keys(e))n.set(i,e[i]);return n},addPair:(e,n,i)=>{const t=We(n);return t===null?"nested arrays are not supported inside keys":(t==="__proto__"?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,"")},has:(e,n)=>{const i=We(n);return i!==null&&Object.prototype.hasOwnProperty.call(e,i)},keys:e=>Object.keys(e),get:(e,n)=>e[String(n)]});var ml={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function he(e,n,i,t,r){let o="",l="";const a=Math.floor(r/2)-1;return t-n>a&&(o=" ... ",n=t-a+o.length),i-t>a&&(l=" ...",i=t+a-l.length),{str:o+e.slice(n,i).replace(/\t/g,"â")+l,pos:t-n+o.length}}function ge(e,n){return" ".repeat(Math.max(n-e.length,0))+e}function Al(e,n){if(!e.buffer)return null;const i={...ml,...n},t=/\r?\n|\r|\0/g,r=[0],o=[];let l,a=-1;for(;l=t.exec(e.buffer);)o.push(l.index),r.push(l.index+l[0].length),e.position<=l.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);let c="";const s=Math.min(e.line+i.linesAfter,o.length).toString().length,u=i.maxLength-(i.indent+s+3);for(let f=1;f<=i.linesBefore&&!(a-f<0);f++){const d=he(e.buffer,r[a-f],o[a-f],e.position-(r[a]-r[a-f]),u);c=`${" ".repeat(i.indent)}${ge((e.line-f+1).toString(),s)} | ${d.str} 80${c}`}const p=he(e.buffer,r[a],o[a],e.position,u);c+=`${" ".repeat(i.indent)}${ge((e.line+1).toString(),s)} | ${p.str} 81`,c+=`${"-".repeat(i.indent+s+3+p.pos)}^ 82`;for(let f=1;f<=i.linesAfter&&!(a+f>=o.length);f++){const d=he(e.buffer,r[a+f],o[a+f],e.position-(r[a]-r[a+f]),u);c+=`${" ".repeat(i.indent)}${ge((e.line+f+1).toString(),s)} | ${d.str} 83`}return c.replace(/\n$/,"")}function Qe(e,n){let i="";return e.mark?(e.mark.name&&(i+=`in "${e.mark.name}" `),i+=`(${e.mark.line+1}:${e.mark.column+1})`,!n&&e.mark.snippet&&(i+=` 84 85${e.mark.snippet}`),`${e.reason} ${i}`):e.reason}var X=class extends Error{constructor(n,i){super();b(this,"reason");b(this,"mark");this.name="YAMLException",this.reason=n,this.mark=i,this.message=Qe(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(n){return`${this.name}: ${Qe(this,n)}`}};function de(e,n,i,t=""){let r=0,o=0;for(let a=0;a<n;a++){const c=e.charCodeAt(a);c===10?(r++,o=a+1):c===13&&(r++,e.charCodeAt(a+1)===10&&a++,o=a+1)}const l={name:t,buffer:e,position:n,line:r,column:n-o};throw l.snippet=Al(l),new X(i,l)}var Ll=-1;function Xe(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return` 86`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"Â ";case 95:return"Â ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}var An=new Array(256),Ln=new Array(256);for(let e=0;e<256;e++)An[e]=Xe(e)?1:0,Ln[e]=Xe(e);function vl(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function bl(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function yl(e){return e===120?2:e===117?4:8}function ae(e,n,i){let t=0;for(;n<i;){const r=e.charCodeAt(n);if(r===10)t++,n++;else if(r===13)t++,n++,e.charCodeAt(n)===10&&n++;else if(r===32||r===9)n++;else break}return{position:n,breaks:t}}function je(e){return e===1?" ":` 87`.repeat(e-1)}function Sl(e,n,i){let t="",r=n,o=n,l=n;for(;r<i;){const a=e.charCodeAt(r);if(a===10||a===13){t+=e.slice(o,l);const c=ae(e,r,i);t+=je(c.breaks),r=o=l=c.position}else r++,a!==32&&a!==9&&(l=r)}return t+e.slice(o,l)}function Tl(e,n,i){let t="",r=n,o=n,l=n;for(;r<i;){const a=e.charCodeAt(r);if(a===39)t+=e.slice(o,r)+"'",r+=2,o=l=r;else if(a===10||a===13){t+=e.slice(o,l);const c=ae(e,r,i);t+=je(c.breaks),r=o=l=c.position}else r++,a!==32&&a!==9&&(l=r)}return t+e.slice(o,i)}function _l(e,n,i){let t="",r=n,o=n,l=n;for(;r<i;){const a=e.charCodeAt(r);if(a===92){t+=e.slice(o,r),r++;const c=e.charCodeAt(r);if(c===10||c===13)r=ae(e,r,i).position;else if(c<256&&An[c])t+=Ln[c],r++;else{let s=yl(c),u=0;for(;s>0;s--){r++;const p=bl(e.charCodeAt(r));u=(u<<4)+p}t+=vl(u),r++}o=l=r}else if(a===10||a===13){t+=e.slice(o,l);const c=ae(e,r,i);t+=je(c.breaks),r=o=l=c.position}else r++,a!==32&&a!==9&&(l=r)}return t+e.slice(o,i)}function Je(e,n,i,t,r,o){const l=t<0?0:t,a=e.slice(n,i).replace(/\r\n?/g,` 88`),c=a===""?[]:(a.endsWith(` 89`)?a.slice(0,-1):a).split(` 90`);let s="",u=!1,p=0,f=!1;for(const d of c){let g=0;for(;g<l&&d.charCodeAt(g)===32;)g++;if(t<0||g>=d.length){p++;continue}const A=d.slice(l),v=A.charCodeAt(0);o?v===32||v===9?(f=!0,s+=` 91`.repeat(u?1+p:p)):f?(f=!1,s+=` 92`.repeat(p+1)):p===0?u&&(s+=" "):s+=` 93`.repeat(p):s+=` 94`.repeat(u?1+p:p),s+=A,u=!0,p=0}return r===3?s+=` 95`.repeat(u?1+p:p):r!==2&&u&&(s+=` 96`),s}function Cl(e,n){if(n.valueStart===Ll)return"";const{valueStart:i,valueEnd:t}=n;if(n.fast)return e.slice(i,t);switch(n.style){case 2:return Tl(e,i,t);case 3:return _l(e,i,t);case 4:return Je(e,i,t,n.indent,n.chomping,!1);case 5:return Je(e,i,t,n.indent,n.chomping,!0);default:return Sl(e,i,t)}}var El={"!":"!","!!":"tag:yaml.org,2002:"};function me(e){return encodeURI(e).replace(/!/g,"%21")}function vn(e,n){if(e.startsWith("!<")&&e.endsWith(">"))return decodeURIComponent(e.slice(2,-1));const i=e.indexOf("!",1),t=i===-1?"!":e.slice(0,i+1),r=(n==null?void 0:n[t])??El[t]??t;return decodeURIComponent(r)+decodeURIComponent(e.slice(t.length))}function bn(e){let n=e;
96return n.charCodeAt(0)===33?(n=n.slice(1),`!${me(n)}`):n.slice(0,18)==="tag:yaml.org,2002:"?`!!${me(n.slice(18))}`:`!<${me(n)}>`}var j=-1,Be={filename:"",schema:hl,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function $l(e){return"tagStart"in e&&e.tagStart!==j?e.tagStart:"anchorStart"in e&&e.anchorStart!==j?e.anchorStart:"valueStart"in e&&e.valueStart!==j?e.valueStart:"start"in e?e.start:0}function E(e,n){de(e.source,e.position,n,e.filename)}function yn(e,n,i,t){try{return i.finalize(t)}catch(r){if(r instanceof X)throw r;de(e.source,n,r instanceof Error?r.message:String(r),e.filename)}}function oe(e,n,i){const t=e[i];if(t)return t;for(const r of n)if(i.startsWith(r.tagName))return r}function kl(e,n,i,t,r){const o=oe(n,i,t);if(o)return o;E(e,`unknown ${r} tag !<${t}>`)}function Il(e,n){const i=Cl(e.source,n),t=n.tagStart===j?"":e.source.slice(n.tagStart,n.tagEnd),r=e.schema.defaultScalarTag;if(t!==""){if(t==="!")return{value:i,tag:r};const o=vn(t,e.tagHandlers),l=oe(e.schema.exact.scalar,e.schema.prefix.scalar,o);if(l){const c=l.resolve(i,!0,o);return c===m&&E(e,`cannot resolve a node with !<${o}> explicit tag`),{value:c,tag:l}}const a=oe(e.schema.exact.mapping,e.schema.prefix.mapping,o)??oe(e.schema.exact.sequence,e.schema.prefix.sequence,o);if(a){i!==""&&E(e,`cannot resolve a node with !<${o}> explicit tag`);const c=a.create(o);return{value:a.carrierIsResult?c:yn(e,e.position,a,c),tag:a}}E(e,`unknown scalar tag !<${o}>`)}if(n.style===1){const o=e.schema.implicitScalarByFirstChar.get(i.charAt(0))??e.schema.implicitScalarAnyFirstChar;for(const l of o){const a=l.resolve(i,!1,l.tagName);if(a!==m)return{value:a,tag:l}}}return{value:r.resolve(i,!1,r.tagName),tag:r}}function Ze(e,n,i,t,r,o){const l=n.tagStart===j?"":e.source.slice(n.tagStart,n.tagEnd),a=l===""||l==="!"?r:vn(l,e.tagHandlers);return{tagName:a,tag:kl(e,i,t,a,o)}}function Sn(e){return e.nodeKind==="mapping"}function en(e,n,i,t){for(const r of t.keys(i)){if(e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&E(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`),n.tag.has(n.value,r))continue;const o=n.tag.addPair(n.value,r,t.get(i,r));o&&E(e,o),(n.overridable??(n.overridable=new Set)).add(r)}}function Nl(e,n,i,t){if(e.position=n.keyPosition,Sn(t))en(e,n,i,t);else if(t.nodeKind==="sequence"&&Array.isArray(i))for(const r of i)en(e,n,r,n.tag);else E(e,"cannot merge mappings; the provided source object is unacceptable")}function Yl(e,n,i,t,r){var l,a;if(e.position=n.keyPosition,i===Fe){Nl(e,n,t,r);return}!e.json&&n.tag.has(n.value,i)&&!((l=n.overridable)!=null&&l.has(i))&&E(e,"duplicated mapping key");const o=n.tag.addPair(n.value,i,t);o&&E(e,o),(a=n.overridable)==null||a.delete(i)}function Ae(e,n,i){const t=e.frames[e.frames.length-1];if(t.kind==="document")t.value=n,t.hasValue=!0;else if(t.kind==="sequence"){t.merge&&(Sn(i)||E(e,"cannot merge mappings; the provided source object is unacceptable"));const r=t.tag.addItem(t.value,n,t.index++);r&&E(e,r)}else if(t.hasKey){const r=t.key;t.key=void 0,t.hasKey=!1,Yl(e,t,r,n,i)}else t.key=n,t.keyPosition=e.position,t.hasKey=!0}function Le(e,n,i,t,r){if(n.anchorStart!==j){const o={value:i,tag:t,isValueFinal:r};
96return e.anchors.set(e.source.slice(n.anchorStart,n.anchorEnd),o),o}return null}function xl(e,n){const i={...Be,...n,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;i.eventIndex<i.events.length;){const t=i.events[i.eventIndex++];switch(i.position=$l(t),t.type){case 1:i.anchors=new Map,i.aliasCount=0,i.tagHandlers=Object.create(null);for(const r of t.directives)r.kind==="tag"&&(i.tagHandlers[r.handle]=r.prefix);i.frames.push({kind:"document",position:i.position,value:void 0,hasValue:!1});break;case 4:{const{value:r,tag:o}=Il(i,t);Le(i,t,r,o,!0),Ae(i,r,o);break}case 2:{const r=Ze(i,t,i.schema.exact.sequence,i.schema.prefix.sequence,"tag:yaml.org,2002:seq","sequence"),o=r.tag.create(r.tagName),l=Le(i,t,o,r.tag,r.tag.carrierIsResult),a=i.frames[i.frames.length-1],c=a!==void 0&&a.kind==="mapping"&&a.hasKey&&a.key===Fe;i.frames.push({kind:"sequence",position:i.position,value:o,tag:r.tag,anchor:l,index:0,merge:c});break}case 3:{const r=Ze(i,t,i.schema.exact.mapping,i.schema.prefix.mapping,"tag:yaml.org,2002:map","mapping"),o=r.tag.create(r.tagName),l=Le(i,t,o,r.tag,r.tag.carrierIsResult);i.frames.push({kind:"mapping",position:i.position,value:o,tag:r.tag,anchor:l,key:void 0,keyPosition:i.position,hasKey:!1,overridable:null});break}case 5:{i.maxAliases!==-1&&++i.aliasCount>i.maxAliases&&E(i,`aliases exceeded maxAliases (${i.maxAliases})`);const r=i.source.slice(t.anchorStart,t.anchorEnd),o=i.anchors.get(r);o||E(i,`unidentified alias "${r}"`),o.isValueFinal||E(i,`recursive alias "${r}" is not supported for tag ${o.tag.tagName} because it uses finalize()`),Ae(i,o.value,o.tag);break}case 6:{const r=i.frames.pop();if(r.kind==="document")i.documents.push(r.value);else{const o=r.tag.carrierIsResult?r.value:yn(i,r.position,r.tag,r.value);r.anchor&&(r.anchor.value=o,r.anchor.isValueFinal=!0),Ae(i,o,r.tag)}break}}}return i.documents}var L=-1,Tn=Object.prototype.hasOwnProperty,U=1,Te=2,_n=3,ce=4,wl=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ml=/[,\[\]{}]/,Cn=/^(?:!|!!|![0-9A-Za-z-]+!)$/,_e=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,En=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,Pl=new RegExp(`^(?:${_e})*$`),Fl=new RegExp(`^(?:${En})+$`),Ol=new RegExp(`^(?:!(?:${_e})*|${En}(?:${_e})*)$`),De={filename:"",maxDepth:100};function Rl(e,n,i){e.events.push({type:1,explicitStart:n,explicitEnd:i,directives:e.directives})}function $n(e,n,i,t,r,o,l){e.events.push({type:2,start:n,anchorStart:i,anchorEnd:t,tagStart:r,tagEnd:o,style:l})}function Ce(e,n,i,t,r,o,l){e.events.push({type:3,start:n,anchorStart:i,anchorEnd:t,tagStart:r,tagEnd:o,style:l})}function nn(e,n){e.events.splice(n.eventsLength,0,{type:3,start:n.position,anchorStart:L,anchorEnd:L,tagStart:L,tagEnd:L,style:2})}function H(e,n,i,t,r,o,l,a,c=1,s=-1,u=!1){e.events.push({type:4,valueStart:n,valueEnd:i,anchorStart:t,anchorEnd:r,tagStart:o,tagEnd:l,style:a,chomping:c,indent:s,fast:u})}function jl(e,n,i){e.events.push({type:5,anchorStart:n,anchorEnd:i})}function B(e){e.events.push({type:6})}function _(e){H(e,L,L,L,L,L,L,1)}function tn(){return{anchorStart:L,anchorEnd:L,tagStart:L,tagEnd:L}}function W(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function D(e,n){e.position=n.position,e.line=n.line,e.lineStart=n.lineStart,e.lineIndent=n.lineIndent,e.firstTabInLine=n.firstTabInLine,e.events.length=n.eventsLength}function h(e,n){de(e.input.slice(0,e.length),e.position,n,e.filename)}function y(e){return e===10||e===13}function F(e){return e===9||e===32}function $(e){return F(e)||y(e)}function k(e){return e===0||$(e)}function O(e){return e===44||e===91||e===93||e===123||e===125}function Bl(e){return e>=48&&e<=57?e-48:-1}function Dl(e){if(e>=48&&e<=57)return e-48;const n=e|32;return n>=97&&n<=102?n-97+10:-1}function ql(e){return e===120?2:e===117?4:e===85?8:0}function Ul(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function se(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}
96function C(e,n){let i=0,t=e.input.charCodeAt(e.position),r=e.position===e.lineStart||$(e.input.charCodeAt(e.position-1));for(;t!==0;){for(;F(t);)r=!0,t===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),t=e.input.charCodeAt(++e.position);if(n&&r&&t===35)do t=e.input.charCodeAt(++e.position);while(!y(t)&&t!==0);if(!y(t))break;for(se(e),i++,r=!0,t=e.input.charCodeAt(e.position);t===32;)e.lineIndent++,t=e.input.charCodeAt(++e.position)}return i}function w(e,n=e.position){const i=e.input.charCodeAt(n);if((i===45||i===46)&&i===e.input.charCodeAt(n+1)&&i===e.input.charCodeAt(n+2)){const t=e.input.charCodeAt(n+3);return t===0||$(t)}return!1}function rn(e){let n=e.input.charCodeAt(e.position);for(;n!==0&&!y(n);)n=e.input.charCodeAt(++e.position)}function kn(e,n,i){wl.test(e.input.slice(n,i))&&h(e,"the stream contains non-printable characters")}function Kl(e,n,i){if(e.input.charCodeAt(e.position)!==33)return!1;n.tagStart!==L&&h(e,"duplication of a tag property");const t=e.position;let r=!1,o=!1,l="!",a=e.input.charCodeAt(++e.position);a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33&&(o=!0,l="!!",a=e.input.charCodeAt(++e.position));let c=e.position,s;if(r){for(;a!==0&&a!==62;)a=e.input.charCodeAt(++e.position);a!==62&&h(e,"unexpected end of the stream within a verbatim tag"),s=e.input.slice(c,e.position),e.position++}else{for(;a!==0&&!$(a)&&!(i&&O(a));)a===33&&(o?h(e,"tag suffix cannot contain exclamation marks"):(l=e.input.slice(c-1,e.position+1),Cn.test(l)||h(e,"named tag handle cannot contain such characters"),o=!0,c=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(c,e.position),Ml.test(s)&&h(e,"tag suffix cannot contain flow indicator characters")}return s&&!(r?Pl.test(s):Fl.test(s))&&h(e,`tag name cannot contain such characters: ${s}`),!r&&l!=="!"&&l!=="!!"&&!Tn.call(e.tagHandlers,l)&&h(e,`undeclared tag handle "${l}"`),n.tagStart=t,n.tagEnd=e.position,!0}function Hl(e,n){if(e.input.charCodeAt(e.position)!==38)return!1;n.anchorStart!==L&&h(e,"duplication of an anchor property"),e.position++;const i=e.position;for(;e.input.charCodeAt(e.position)!==0&&!$(e.input.charCodeAt(e.position))&&!O(e.input.charCodeAt(e.position));)e.position++;return e.position===i&&h(e,"name of an anchor node must contain at least one character"),n.anchorStart=i,n.anchorEnd=e.position,!0}function Vl(e,n){if(e.input.charCodeAt(e.position)!==42)return!1;(n.anchorStart!==L||n.tagStart!==L)&&h(e,"alias node should not have any properties"),e.position++;const i=e.position;for(;e.input.charCodeAt(e.position)!==0&&!$(e.input.charCodeAt(e.position))&&!O(e.input.charCodeAt(e.position));)e.position++;return e.position===i&&h(e,"name of an alias node must contain at least one character"),jl(e,i,e.position),!0}function Ee(e,n){C(e,!1),e.lineIndent<n&&h(e,"deficient indentation")}function zl(e,n,i){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;const t=e.position;let r=!0;for(;e.input.charCodeAt(e.position)!==0;){const o=e.input.charCodeAt(e.position);if(o===39){if(e.input.charCodeAt(e.position+1)===39){r=!1,e.position+=2;continue}const l=e.position;return e.position++,H(e,t,l,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,2,1,-1,r),!0}y(o)?(r=!1,Ee(e,n)):e.position===e.lineStart&&w(e)?h(e,"unexpected end of the document within a single quoted scalar"):o!==9&&o<32?h(e,"expected valid JSON character"):e.position++}h(e,"unexpected end of the stream within a single quoted scalar")}function Gl(e,n,i){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;const t=e.position;let r=!0;for(;e.input.charCodeAt(e.position)!==0;){const o=e.input.charCodeAt(e.position);if(o===34){const l=e.position;return e.position++,H(e,t,l,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,3,1,-1,r),!0}if(o===92){r=!1;const l=e.input.charCodeAt(++e.position);if(y(l))Ee(e,n);else if(Ul(l))e.position++;else{let a=ql(l);for(a===0&&h(e,"unknown escape sequence");a-- >0;)e.position++,Dl(e.input.charCodeAt(e.position))<0&&h(e,"expected hexadecimal character");e.position++}}else y(o)?(r=!1,Ee(e,n)):e.position===e.lineStart&&w(e)?h(e,"unexpected end of the document within a double quoted scalar"):o!==9&&o<32?h(e,"expected valid JSON character"):e.position++}h(e,"unexpected end of the stream within a double quoted scalar")}function Wl(e,n,i){const t=e.input.charCodeAt(e.position);let r=1,o=-1,l=!1;if(t!==124&&t!==62)return!1;const a=t===124?4:5;for(e.position++;e.input.charCodeAt(e.position)!==0;){const d=e.input.charCodeAt(e.position),g=Bl(d);if(d===43||d===45)r!==1&&h(e,"repeat of a chomping mode identifier"),r=d===43?3:2,e.position++;else if(g>=0)g===0&&h(e,"bad explicit indentation width of a block scalar; it cannot be less than one"),l&&h(e,"repeat of an indentation width identifier"),o=n+g-1,l=!0,e.position++;else break}let c=!1;for(;F(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&rn(e),y(e.input.charCodeAt(e.position))?se(e):e.input.charCodeAt(e.position)!==0&&h(e,"a line break is expected");let s=l?o:-1,u=0;const p=e.position;let f=e.position;for(;e.input.charCodeAt(e.position)!==0;){const d=e.position;let g=0;for(;e.input.charCodeAt(d+g)===32;)g++;const A=e.input.charCodeAt(d+g);if(A===0){s>=0?g>s&&(f=d+g):g>0&&(f=d+g);break}if(d===e.lineStart&&w(e,d))break;if(!l&&s===-1&&y(A)&&(u=Math.max(u,g)),!l&&s===-1&&!y(A)&&(A===9&&g<n&&(e.position=d+g,h(e,"tab characters must not be used in indentation")),g<u&&(e.position=d+g,h(e,"bad indentation of a mapping entry"))),s===-1&&A!==0&&!y(A)&&g<n){e.lineIndent=g,e.position=d+g;break}!l&&A!==0&&!y(A)&&s===-1&&(s=g);const v=s===-1?n+1:s;if(A!==0&&!y(A)&&g<v){e.lineIndent=g,e.position=d+g;break}rn(e),f=e.position,y(e.input.charCodeAt(e.position))&&(se(e),f=e.position)}return kn(e,p,f),H(e,p,f,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,a,r,s),!0}function Ql(e,n){const i=e.input.charCodeAt(e.position),t=n===U;
96if(i===0||$(i)||i===35||i===38||i===42||i===33||i===124||i===62||i===39||i===34||i===37||i===64||i===96||t&&O(i))return!1;if(i===63||i===45){const r=e.input.charCodeAt(e.position+1);if(k(r)||t&&O(r))return!1}return!0}function Xl(e,n,i,t){if(!Ql(e,i))return!1;const r=e.position;let o=e.position,l=e.input.charCodeAt(e.position);const a=i===U;let c=!1;for(;l!==0&&!(e.position===e.lineStart&&w(e));){if(l===58){const s=e.input.charCodeAt(e.position+1);if(k(s)||a&&O(s))break}else if(l===35){if($(e.input.charCodeAt(e.position-1)))break}else{if(a&&O(l))break;if(y(l)){const s=e.position,u=e.line,p=e.lineStart,f=e.lineIndent;if(C(e,!1),e.lineIndent>=n){c=!0,l=e.input.charCodeAt(e.position);continue}e.position=s,e.line=u,e.lineStart=p,e.lineIndent=f;break}}F(l)||(o=e.position+1),l=e.input.charCodeAt(++e.position)}return o===r?!1:(kn(e,r,o),H(e,r,o,t.anchorStart,t.anchorEnd,t.tagStart,t.tagEnd,1,1,-1,!c),!0)}function z(e,n){const i=e.line;C(e,!0),(e.line>i&&e.lineIndent<n||e.firstTabInLine!==-1&&e.lineIndent<n)&&h(e,"deficient indentation")}function Jl(e,n,i){const t=e.input.charCodeAt(e.position),r=t===123,o=e.position;let l=!0;if(t!==91&&t!==123)return!1;const a=r?125:93;for(r?Ce(e,o,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,2):$n(e,o,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,2),e.position++;e.input.charCodeAt(e.position)!==0;){z(e,n);let c=e.input.charCodeAt(e.position);if(c===a)return e.position++,B(e),!0;l?c===44&&h(e,"expected the node content, but found ','"):h(e,"missed comma between flow collection entries");let s=!1,u=!1;c===63&&$(e.input.charCodeAt(e.position+1))&&(s=u=!0,e.position+=1,z(e,n));const p=e.line,f=W(e),d=P(e,n,U,!1,!0);z(e,n),c=e.input.charCodeAt(e.position),(r||u||e.line===p)&&c===58?(s=!0,e.position++,z(e,n),r||nn(e,f),d||_(e),P(e,n,U,!1,!0)||_(e),z(e,n),r||B(e)):r&&s?(d||_(e),_(e)):r?_(e):s&&(nn(e,f),d||_(e),_(e),B(e)),c=e.input.charCodeAt(e.position),c===44?(l=!0,e.position++):l=!1}h(e,"unexpected end of the stream within a flow collection")}function on(e,n,i){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!k(e.input.charCodeAt(e.position+1)))return!1;for($n(e,e.position,i.anchorStart,i.anchorEnd,i.tagStart,i.tagEnd,1);e.input.charCodeAt(e.position)===45&&k(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,h(e,"tab characters must not be used in indentation"));const t=e.line;e.position++;const r=C(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&k(e.input.charCodeAt(e.position+1))&&h(e,"bad indentation of a sequence entry"),r&&e.lineIndent<=n?_(e):P(e,n,_n,!1,!0),C(e,!0),e.lineIndent<n||e.position>=e.length)break;e.lineIndent>n&&h(e,"bad indentation of a sequence entry"),e.line===t&&e.input.charCodeAt(e.position)===45&&k(e.input.charCodeAt(e.position+1))&&h(e,"bad indentation of a sequence entry")}return B(e),!0}function ve(e,n,i,t){let r=!1,o=!1,l=!1,a=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);for(;c!==0;){!r&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,h(e,"tab characters must not be used in indentation"));const s=e.input.charCodeAt(e.position+1),u=e.line;if((c===63||c===58)&&k(s))l||(Ce(e,e.position,t.anchorStart,t.anchorEnd,t.tagStart,t.tagEnd,1),l=!0),c===63?(r&&_(e),o=!0,r=!0):(r||(_(e),o=!0),r=!1),e.position+=1,a=!0;else{r&&(_(e),r=!1);const p=W(e);if(!P(e,i,Te,!1,!0))break;if(e.line===u){for(c=e.input.charCodeAt(e.position);F(c);)c=e.input.charCodeAt(++e.position);if(c===58){if(c=e.input.charCodeAt(++e.position),k(c)||h(e,"a whitespace character is expected after the key-value separator within a block mapping"),!l){for(D(e,p),Ce(e,p.position,t.anchorStart,t.anchorEnd,t.tagStart,t.tagEnd,1),l=!0,P(e,i,Te,!1,!0),c=e.input.charCodeAt(e.position);F(c);)c=e.input.charCodeAt(++e.position);e.position++}o=!0,r=!1,a=!1}else if(o)h(e,"expected ':' after a mapping key");else return t.anchorStart!==L||t.tagStart!==L?(D(e,p),!1):!0}else if(o)h(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.anchorStart!==L||t.tagStart!==L?(D(e,p),!1):!0}if(P(e,n,ce,!0,a)&&(a=!1),r||a&&(_(e),a=!1),C(e,!0),c=e.input.charCodeAt(e.position),(e.line===u||e.lineIndent>n)&&c!==0)h(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return o?(r&&_(e),l&&B(e),!0):!1}function P(e,n,i,t,r,o=!0){var g,A;e.depth>=e.maxDepth&&h(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let l=1,a=!1,c=!1,s=null;const u=tn();let p=i===ce||i===_n,f=p;const d=p;if(t&&C(e,!0)&&(a=!0,e.lineIndent>n?l=1:e.lineIndent===n?l=0:l=-1),e.position===e.lineStart&&w(e))return e.depth--,!1;if(l===1)for(;;){const v=e.input.charCodeAt(e.position),N=W(e);if(a&&l!==1&&(v===33||v===38))break;if(a&&d&&(u.tagStart!==L||u.anchorStart!==L)&&(v===33||v===38)){const V=W(e),ne=n+1;if(ve(e,e.position-e.lineStart,ne,u)&&((g=e.events[V.eventsLength])==null?void 0:g.type)===3)return e.depth--,!0;D(e,V)}if(a&&(v===33&&u.tagStart!==L||v===38&&u.anchorStart!==L)||!Kl(e,u,i===U)&&!Hl(e,u))break;s===null&&(s=N),C(e,!0)?(a=!0,f=d,e.lineIndent>n?l=1:e.lineIndent===n?l=0:l=-1):f=!1}if(f&&(f=a||r),l===1||i===ce){const v=i===U||i===Te?n:n+1,N=e.position-e.lineStart;if(l===1)if(f&&(on(e,N,u)||ve(e,N,v,u))||Jl(e,v,u))c=!0;else{const V=e.input.charCodeAt(e.position);if(s!==null&&o&&d&&!f&&V!==124&&V!==62){const ne=W(e),On=s.position-s.lineStart;D(e,s),ve(e,On,v,tn())&&((A=e.events[ne.eventsLength])==null?void 0:A.type)===3?c=!0:D(e,ne)}!c&&(p&&Wl(e,v,u)||zl(e,v,u)||Gl(e,v,u)||Vl(e,u)||Xl(e,v,i,u))&&(c=!0)}else l===0&&(c=f&&on(e,N,u))}
96return p=p&&!c,!c&&(u.anchorStart!==L||u.tagStart!==L||p)&&(H(e,L,L,u.anchorStart,u.anchorEnd,u.tagStart,u.tagEnd,1),c=!0),e.depth--,c||u.anchorStart!==L||u.tagStart!==L}function Zl(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;const n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!$(e.input.charCodeAt(e.position));)e.position++;const i=e.input.slice(n,e.position),t=[];for(i.length===0&&h(e,"directive name must not be less than one character in length");e.input.charCodeAt(e.position)!==0&&!y(e.input.charCodeAt(e.position));){for(;F(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||y(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;const r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!$(e.input.charCodeAt(e.position));)e.position++;t.push(e.input.slice(r,e.position))}if(y(e.input.charCodeAt(e.position))&&se(e),i==="YAML"){e.directives.some(o=>o.kind==="yaml")&&h(e,"duplication of %YAML directive"),t.length!==1&&h(e,"YAML directive accepts exactly one argument");const r=/^([0-9]+)\.([0-9]+)$/.exec(t[0]);r===null&&h(e,"ill-formed argument of the YAML directive"),parseInt(r[1],10)!==1&&h(e,"unacceptable YAML version of the document"),e.directives.push({kind:"yaml",version:t[0]})}else if(i==="TAG"){t.length!==2&&h(e,"TAG directive accepts exactly two arguments");const[r,o]=t;Cn.test(r)||h(e,"ill-formed tag handle (first argument) of the TAG directive"),Tn.call(e.tagHandlers,r)&&h(e,`there is a previously declared suffix for "${r}" tag handle`),Ol.test(o)||h(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagHandlers[r]=o,e.directives.push({kind:"tag",handle:r,prefix:o})}return!0}function ea(e){e.directives=[],e.tagHandlers=Object.create(null);let n=!1;for(C(e,!0);Zl(e);)n=!0,C(e,!0);let i=!1,t=!1,r=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&k(e.input.charCodeAt(e.position+3))){i=!0;const a=e.line;e.position+=3,C(e,!0),r=e.line>a}else n&&h(e,"directives end mark is expected");const o=e.events.length;if(!i&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&w(e)){e.position+=3,C(e,!0);return}if(Rl(e,i,!1),P(e,e.lineIndent-1,ce,!1,r,r)||_(e),C(e,!0),e.position===e.lineStart&&w(e)&&(t=e.input.charCodeAt(e.position)===46,t)){const a=e.line;e.position+=3,C(e,!0),e.line===a&&e.position<e.length&&h(e,"end of the stream or a document separator is expected")}const l=e.events[o];(l==null?void 0:l.type)===1&&(l.explicitEnd=t),B(e),!t&&e.position<e.length&&!(e.position===e.lineStart&&w(e))&&h(e,"end of the stream or a document separator is expected")}function na(e,n){const i=e.length,t={...De,...n,input:`${e}\0`,length:i,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},r=e.indexOf("\0");for(r!==-1&&de(e,r,"null byte is not allowed in input",t.filename),t.input.charCodeAt(t.position)===65279&&t.position++;t.position<t.length&&(C(t,!0),!(t.position>=t.length));){const o=t.position;ea(t),t.position===o&&h(t,"can not read a document")}return t.events}var ia={...De,...Be};function ta(e,n={}){const i={...ia,...n},t=String(e),r=Object.keys(De),o=Object.keys(Be);return xl(na(t,Se(i,r)),{...Se(i,o),source:t})}function ra(e,n){const i=ta(e,n);if(i.length===0)throw new X("expected a document, but the input is empty");if(i.length===1)return i[0];throw new X("expected a single document in the stream, but found more")}var te=class{constructor(){b(this,"tagged",!1);b(this,"flow",!1);b(this,"singleQuoted",!1);b(this,"doubleQuoted",!1);b(this,"literal",!1);b(this,"folded",!1)}},M=Symbol("INVALID");function oa(e){const n=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter(o=>o!==void 0)),i=e.implicitScalarTags,t=e.tags.filter(o=>!(o.nodeKind==="scalar"&&o.implicit)&&!n.has(o)),r=e.tags.filter(o=>n.has(o));return[...i.map(o=>({tag:o,implicitTag:!0})),...t.map(o=>({tag:o,implicitTag:!1})),...r.map(o=>({tag:o,implicitTag:!0}))]}function la(e,n){for(let i=0,t=e.representTypes.length;i<t;i+=1){const{tag:r,implicitTag:o}=e.representTypes[i];if(r.identify&&r.identify(n)){let l;return r.matchByTagPrefix&&r.representTagName?l=r.representTagName(n):l=r.tagName,{tag:r,tagName:l,implicitTag:o}}}return null}function G(e,n){if(!e.noRefs&&n!==null&&typeof n=="object"){const u=e.refs.get(n);if(u)return u.anchor===void 0&&(u.anchor=`ref_${e.refCounter++}`),{kind:"alias",tag:"",style:new te,anchor:u.anchor}}const i=la(e,n);if(!i){if(n===void 0||e.skipInvalid)return M;throw new X(`unacceptable kind of an object to dump ${Object.prototype.toString.call(n)}`)}const{tag:t,tagName:r,implicitTag:o}=i,l=o?r:bn(r);
96if(t.nodeKind==="scalar"){const u=new te;return u.tagged=!o,{kind:"scalar",tag:l,style:u,value:t.represent(n)}}if(t.nodeKind==="sequence"){const u=t.represent(n),p=new te;p.tagged=!o;const f={kind:"sequence",tag:l,style:p,items:[]};e.noRefs||e.refs.set(n,f);for(let d=0,g=u.length;d<g;d+=1){let A=G(e,u[d]);A===M&&u[d]===void 0&&(A=G(e,null)),A!==M&&f.items.push(A)}return f}const a=t.represent(n),c=new te;c.tagged=!o;const s={kind:"mapping",tag:l,style:c,items:[]};e.noRefs||e.refs.set(n,s);for(const[u,p]of a){const f=G(e,u);if(f===M)continue;const d=G(e,p);d!==M&&s.items.push({key:f,value:d})}return s}function aa(e,n,i={}){const t=G({representTypes:oa(n),noRefs:i.noRefs??!1,skipInvalid:i.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:t===M?null:t,directives:[]}]}var ca=Symbol("visit:break"),In=Symbol("visit:skip");function le(e,n,i){const t=n(e,i);if(t===ca)return!0;if(t===In)return!1;const r=i.depth+1;switch(e.kind){case"sequence":for(const o of e.items)if(le(o,n,{depth:r,parent:e,isKey:!1}))return!0;break;case"mapping":for(const{key:o,value:l}of e.items)if(le(o,n,{depth:r,parent:e,isKey:!0})||le(l,n,{depth:r,parent:e,isKey:!1}))return!0;break}return!1}function sa(e,n){for(const i of e)if(i.contents&&le(i.contents,n,{depth:0,parent:null,isKey:!1}))return}var qe=65279,ua=9,R=10,Nn=13,fa=32,pa=33,Yn=34,$e=35,da=37,ha=38,xn=39,ga=42,ke=44,Ue=45,J=58,ma=61,Aa=62,wn=63,La=64,Ie=91,Ne=93,va=96,Ye=123,ba=124,xe=125,T={};T[0]="\\0";T[7]="\\a";T[8]="\\b";T[9]="\\t";T[10]="\\n";T[11]="\\v";T[12]="\\f";T[13]="\\r";T[27]="\\e";T[34]='\\"';T[92]="\\\\";T[133]="\\N";T[160]="\\_";T[8232]="\\L";T[8233]="\\P";var Ke={indent:2,seqNoIndent:!1,seqInlineFirst:!0,sortKeys:!1,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,tagBeforeAnchor:!1};function ya(e){return e.style.tagged?e.tag:bn(e.tag)}function Sa(e){const n={...Ke,...e};return{...n,defaultScalarTagName:n.schema.defaultScalarTag.tagName,implicitResolvers:n.schema.implicitScalarTags}}function Ta(e){const n=e.toString(16).toUpperCase(),i=e<=255?"x":"u",t=e<=255?2:4;return`\\${i}${"0".repeat(t-n.length)}${n}`}function ln(e,n){const i=" ".repeat(n);let t=0,r="";const o=e.length;for(;t<o;){let l;const a=e.indexOf(` 97`,t);a===-1?(l=e.slice(t),t=o):(l=e.slice(t,a+1),t=a+1),l.length&&l!==` 98`&&(r+=i),r+=l}return r}function we(e,n){return` 99${" ".repeat(e.indent*n)}`}function _a(e,n){const i=e.indent*Math.max(1,n);return{indent:i,blockIndent:n===0?e.indent+1:e.indent,lineWidth:e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i)}}function an(e,n){for(let i=0,t=e.implicitResolvers.length;i<t;i+=1){const r=e.implicitResolvers[i];if(r.resolve(n,!1,r.tagName)!==m)return r.tagName}return e.defaultScalarTagName}function K(e){return e===fa||e===ua}function Ca(e){const n=e.charCodeAt(0);if(n!==Ue&&n!==46||e.charCodeAt(1)!==n||e.charCodeAt(2)!==n)return!1;if(e.length===3)return!0;const i=e.charCodeAt(3);return K(i)||i===Nn||i===R}function Z(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==qe||e>=65536&&e<=1114111}function cn(e){return Z(e)&&e!==qe&&e!==Nn&&e!==R}function Me(e,n,i){const t=cn(e),r=t&&!K(e);return(i?t:t&&e!==ke&&e!==Ie&&e!==Ne&&e!==Ye&&e!==xe)&&e!==$e&&!(n===J&&!r)||cn(n)&&!K(n)&&e===$e||n===J&&r&&(i||e!==ke&&e!==Ie&&e!==Ne&&e!==Ye&&e!==xe)}function Ea(e){return Z(e)&&e!==qe&&!K(e)&&e!==Ue&&e!==wn&&e!==J&&e!==ke&&e!==Ie&&e!==Ne&&e!==Ye&&e!==xe&&e!==$e&&e!==ha&&e!==ga&&e!==pa&&e!==ba&&e!==ma&&e!==Aa&&e!==xn&&e!==Yn&&e!==da&&e!==La&&e!==va}function $a(e,n){const i=q(e,0);if(Ea(i))return!0;if(e.length>1&&(i===Ue||i===wn||i===J)){const t=q(e,1);return!K(t)&&Me(t,i,n)}return!1}function ka(e){return!K(e)&&e!==J}function q(e,n){const i=e.charCodeAt(n);let t;return i>=55296&&i<=56319&&n+1<e.length&&(t=e.charCodeAt(n+1),t>=56320&&t<=57343)?(i-55296)*1024+t-56320+65536:i}function Mn(e){return/^\n* /.test(e)}var ee=1,Q=2,He=3,Ve=4,x=5;function Ia(e,n,i,t,r,o){const{blockIndent:l,lineWidth:a}=i;let c,s=0,u=-1,p=!1,f=!1;const d=a!==-1;let g=-1,A=!Ca(n)&&$a(n,o)&&ka(q(n,n.length-1));if(t||r)for(c=0;c<n.length;s>=65536?c+=2:c++){if(s=q(n,c),!Z(s))return x;A=A&&Me(s,u,o),u=s}else{for(c=0;c<n.length;s>=65536?c+=2:c++){if(s=q(n,c),s===R)p=!0,d&&(f=f||c-g-1>a&&n[g+1]!==" ",g=c);else if(!Z(s))return x;A=A&&Me(s,u,o),u=s}f=f||d&&c-g-1>a&&n[g+1]!==" "}return!p&&!f?A&&!r?ee:e.quoteStyle==="double"?x:Q:l>9&&Mn(n)?x:f?Ve:He}function Na(e,n,i){const{indent:t,blockIndent:r,lineWidth:o}=i;switch(n){case ee:return un(e,t);case Q:return`'${un(e,t).replace(/'/g,"''")}'`;case He:return"|"+sn(e,r)+fn(ln(e,t));case Ve:return">"+sn(e,r)+fn(ln(xa(e,o),t));case x:return`"${wa(e)}"`}}function Ya(e,n,i,t,r){const o=t||!r;if(n.style.singleQuoted)return Q;if(n.style.doubleQuoted)return x;if(!o){if(n.style.literal)return He;if(n.style.folded)return Ve}const l=n.value;if(l.length===0)return n.style.tagged||an(e,l)===n.tag?ee:e.quoteStyle==="double"?x:Q;const a=Ia(e,l,i,o,e.forceQuotes&&!t,r);return a===ee&&!n.style.tagged&&an(e,l)!==n.tag?e.quoteStyle==="double"?x:Q:a}function sn(e,n){const i=Mn(e)?String(n):"",t=e[e.length-1]===` 100`;return`${i}${t&&(e[e.length-2]===` 101`||e===` 102`)?"+":t?"":"-"} 103`}function un(e,n){let i=e.indexOf(` 104`);if(i===-1)return e;const t=" ".repeat(n);let r=e.slice(0,i);const o=/(\n+)([^\n]*)/g;o.lastIndex=i;let l;for(;l=o.exec(e);){const a=l[1].length,c=l[2];r+=` 105`.repeat(a+1)+t+c}return r}function fn(e){return e[e.length-1]===` 106`?e.slice(0,-1):e}function xa(e,n){const i=/(\n+)([^\n]*)/g;let t=e.indexOf(` 107`);t===-1&&(t=e.length),i.lastIndex=t;let r=pn(e.slice(0,t),n),o=e[0]===` 108`||e[0]===" ",l,a;for(;a=i.exec(e);){const c=a[1],s=a[2];l=s[0]===" ",r+=c+(!o&&!l&&s!==""?` 109`:"")+pn(s,n),o=l}return r}function pn(e,n){if(e===""||e[0]===" ")return e;const i=/ [^ ]/g;let t,r=0,o,l=0,a=0,c="";for(;t=i.exec(e);)a=t.index,a-r>n&&(o=l>r?l:a,c+=` 110${e.slice(r,o)}`,r=o+1),l=a;return c+=` 111`,e.length-r>n&&l>r?c+=`${e.slice(r,l)} 112${e.slice(l+1)}`:c+=e.slice(r),c.slice(1)}function wa(e){let n="",i=0;for(let t=0;t<e.length;i>=65536?t+=2:t++){i=q(e,t);const r=T[i];if(r){n+=r;
112continue}if(Z(i)){n+=e[t],i>=65536&&(n+=e[t+1]);continue}n+=Ta(i)}return n}function Ma(e,n,i){let t="";for(let o=0,l=i.items.length;o<l;o+=1){const a=I(e,n,i.items[o],{});t!==""&&(t+=`,${e.flowSkipCommaSpace?"":" "}`),t+=a}const r=e.flowBracketPadding&&t!==""?" ":"";return`[${r}${t}${r}]`}function dn(e,n,i,t){let r="";for(let o=0,l=i.items.length;o<l;o+=1){const a=I(e,n+1,i.items[o],{block:!0,compact:e.seqInlineFirst,isblockseq:!0});(!t||r!=="")&&(r+=we(e,n)),a===""||R===a.charCodeAt(0)?r+="-":r+="- ",r+=a}return r}function Pa(e,n,i){let t="";const r=Pn(e,i.items);for(const{key:l,value:a}of r){let c="";t!==""&&(c+=`,${e.flowSkipCommaSpace?"":" "}`);const s=I(e,n,l,{iskey:!0}),u=s.length>1024;u?c+="? ":e.quoteFlowKeys&&(c+='"');const p=I(e,n,a,{}),f=e.flowSkipColonSpace||p===""?"":" ";c+=`${s}${e.quoteFlowKeys&&!u?'"':""}:${f}${p}`,t+=c}const o=e.flowBracketPadding&&t!==""?" ":"";return`{${o}${t}${o}}`}function re(e){return e.kind==="scalar"?e.value:e}function Pn(e,n){if(!e.sortKeys)return n;const i=n.slice();if(e.sortKeys===!0)i.sort((t,r)=>{const o=re(t.key),l=re(r.key);return o<l?-1:o>l?1:0});else{const t=e.sortKeys;i.sort((r,o)=>t(re(r.key),re(o.key)))}return i}function Fa(e,n,i,t){let r="";const o=Pn(e,i.items);for(let l=0,a=o.length;l<a;l+=1){let c="";(!t||r!=="")&&(c+=we(e,n));const{key:s,value:u}=o[l],p=(s.kind==="mapping"||s.kind==="sequence")&&!s.style.flow&&s.items.length!==0||s.kind==="scalar"&&(s.style.literal||s.style.folded),f=p?I(e,n+1,s,{block:!0,compact:!0,isblockseq:!Pe(e,s,n+1)}):I(e,n+1,s,{block:!0,compact:!0,iskey:!0}),d=s.kind==="scalar"&&s.value.indexOf(` 113`)!==-1,g=p||d||f.length>1024;g&&(f&&R===f.charCodeAt(0)?c+="?":c+="? "),c+=f,g&&(c+=we(e,n));const A=I(e,n+1,u,{block:!0,compact:g,isblockseq:g&&!Pe(e,u,n+1)}),v=s.kind==="scalar"&&s.value===""&&f!==""&&f.charCodeAt(f.length-1)!==xn&&f.charCodeAt(f.length-1)!==Yn,N=!g&&(s.kind==="alias"||v)?" ":"";A===""||R===A.charCodeAt(0)?c+=`${N}:`:c+=`${N}: `,c+=A,r+=c}return r}function Pe(e,n,i){return n.style.tagged||n.anchor!==void 0||e.indent<2&&i>0}function I(e,n,i,t){if(i.kind==="alias")return`*${i.anchor}`;const{block:r=!1,iskey:o=!1,isblockseq:l=!1}=t;let a=t.compact??!1;const c=i.anchor!==void 0;Pe(e,i,n)&&(a=!1);let s,u=i.style.tagged;const p=r&&(i.kind==="mapping"||i.kind==="sequence")&&!i.style.flow&&i.items.length!==0;if(i.kind==="mapping")p?s=Fa(e,n,i,a):s=Pa(e,n,i);else if(i.kind==="sequence")p?e.seqNoIndent&&!l&&n>0?s=dn(e,n-1,i,a):s=dn(e,n,i,a):s=Ma(e,n,i);else{const f=_a(e,n),d=Ya(e,i,f,o,r);s=Na(i.value,d,f),u=i.style.tagged||d!==ee&&i.tag!==e.defaultScalarTagName}if(p&&a&&n>0&&e.indent>2&&(s=`${" ".repeat(e.indent-2)}${s}`),u||c){const f=[],d=u?ya(i):null,g=c?`&${i.anchor}`:null;e.tagBeforeAnchor?(d!==null&&f.push(d),g!==null&&f.push(g)):(g!==null&&f.push(g),d!==null&&f.push(d));const A=s===""||s.charCodeAt(0)===R?"":" ";s=`${f.join(" ")}${A}${s}`}return s}function Oa(e){return(e.kind==="sequence"||e.kind==="mapping")&&!e.style.flow&&e.items.length!==0&&!e.style.tagged&&e.anchor===void 0}function Ra(e){let n=e;for(;(n.kind==="sequence"||n.kind==="mapping")&&!n.style.flow&&n.items.length!==0;)n=n.kind==="sequence"?n.items[n.items.length-1]:n.items[n.items.length-1].value;if(n.kind!=="scalar"||!(n.style.literal||n.style.folded))return!1;const{value:i}=n;return i.endsWith(` 114 115`)||i===` 116`}function ja(e){let n="";for(const i of e.directives){if(i.kind==="yaml"){n+=`%YAML ${i.version} 117`;continue}const{handle:t,prefix:r}=i;n+=`%TAG ${t} ${r} 118`}return n}function Ba(e,n){const i=Sa(n);let t="",r=!1;for(let o=0;o<e.length;o+=1){const l=e[o],a=ja(l),c=a!=="",s=l.explicitStart||c||o>0&&!r;if(t+=a,l.contents===null)s&&(t+=`--- 119`);else if(s){const u=I(i,0,l.contents,{block:!0,compact:!0}),p=u===""?"":c||Oa(l.contents)?` 120`:" ";t+=`---${p}${u} 121`}else t+=I(i,0,l.contents,{block:!0,compact:!0})+` 122`;r=l.explicitEnd||l.contents!==null&&Ra(l.contents),r&&(t+=`... 123`)}return t}var Da=gl.withTags({...be,resolve:(e,n,i)=>{const t=be.resolve(e,n,i);return t===m?hn.resolve(e,n,i):t}},{...ye,resolve:(e,n,i)=>{const t=ye.resolve(e,n,i);return t===m?gn.resolve(e,n,i):t}}),qa={...Ke,schema:Da,skipInvalid:!1,noRefs:!1,flowLevel:-1,transform:()=>{}};function Ua(e,n={}){const i={...qa,...n},t=aa(e,i.schema,{noRefs:i.noRefs,skipInvalid:i.skipInvalid});return i.flowLevel>=0&&sa(t,(r,o)=>{if(!(o.depth<i.flowLevel))return r.style.flow=!0,In}),i.transform(t),Ba(t,{...Se(i,Object.keys(Ke)),schema:i.schema})}const Ka=2e5;function Ha(e){const n=e.trim();if(!n)return"";if(n.length>Ka)throw new Error("TOO_LONG");try{const i=ra(n);if(i===void 0)throw new Error("INVALID_YAML");return Ua(i,{indent:2,lineWidth:120,noRefs:!0,sortKeys:!1}).trimEnd()}catch(i){throw i instanceof Error&&(i.message==="TOO_LONG"||i.message==="INVALID_YAML")?i:new Error("INVALID_YAML")}}const Va="tool-yaml-formatter";function za({onExecute:e,onResultView:n,onExecuteError:i}){const{t}=Bn(Va),[r,o]=ie.useState(""),[l,a]=ie.useState(null),[c,s]=ie.useState(null),u=ie.useCallback(()=>{e==null||e(),s(null),a(null);const p=r.trim();if(p)try{a(Ha(p)),n==null||n()}catch(f){Un(i,f);const d=f instanceof Error?f.message:"";s(t(d==="TOO_LONG"?"tooLong":"invalidYaml"))}},[r,e,n,i,t]);return Y.jsxs("div",{className:"tool-workspace",children:[Y.jsx(ze.Paragraph,{type:"secondary",children:t("inputLabel")}),Y.jsx(Ge.TextArea,{rows:8,value:r,onChange:p=>o(p.target.value),placeholder:t("inputPlaceholder")}
123),Y.jsx(Dn,{type:"primary",size:"large",shape:"round",onClick:u,style:{marginTop:16},children:t("format")}),c&&Y.jsx(qn,{type:"error",title:c,showIcon:!0,style:{marginTop:16}}),l&&Y.jsxs("div",{style:{marginTop:24},children:[Y.jsx(ze.Title,{level:5,children:t("resultLabel")}),Y.jsx(Ge.TextArea,{rows:10,value:l,readOnly:!0})]})]})}const Ga=Object.assign({"./locales/ar.json":Qn,"./locales/bn-BD.json":ti,"./locales/de-DE.json":ui,"./locales/en-US.json":Ai,"./locales/es-419.json":_i,"./locales/fa-IR.json":Yi,"./locales/fil-PH.json":Ri,"./locales/fr-FR.json":Hi,"./locales/hi-IN.json":Ji,"./locales/id-ID.json":ot,"./locales/it-IT.json":pt,"./locales/ja-JP.json":vt,"./locales/ko-KR.json":Et,"./locales/ms-MY.json":wt,"./locales/nl-NL.json":Bt,"./locales/pl-PL.json":zt,"./locales/pt-BR.json":er,"./locales/ru-RU.json":ar,"./locales/sw-KE.json":hr,"./locales/th-TH.json":yr,"./locales/tr-TR.json":kr,"./locales/uk-UA.json":Pr,"./locales/ur-PK.json":qr,"./locales/vi-VN.json":Wr,"./locales/zh-CN.json":io,"./locales/zh-TW.json":so}),Fn={};for(const[e,n]of Object.entries(Ga)){const i=e.match(/\.\/locales\/(.+)\.json$/);i&&(Fn[i[1]]=n)}const Ja={slug:"yaml-formatter",runtime:"NATIVE",i18nNamespace:"tool-yaml-formatter",ToolView:za,locales:Fn,immersiveFullscreen:!0};export{Ja as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.