ompgui 0.7.4 → 0.7.6

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 (77) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +5 -5
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/react-loadable-manifest.json +1 -1
  6. package/.next/required-server-files.js +2 -2
  7. package/.next/required-server-files.json +2 -2
  8. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/_global-error.html +1 -1
  10. package/.next/server/app/_global-error.rsc +2 -2
  11. package/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
  12. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +2 -2
  13. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/_not-found.html +1 -1
  16. package/.next/server/app/_not-found.rsc +2 -2
  17. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  18. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  19. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  20. package/.next/server/app/api/app-update/route.js +1 -1
  21. package/.next/server/app/api/auth/all-providers/route.js +1 -1
  22. package/.next/server/app/api/auth/all-providers/route.js.nft.json +1 -1
  23. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  24. package/.next/server/app/api/auth/login/[provider]/route.js +1 -1
  25. package/.next/server/app/api/auth/providers/route.js +1 -1
  26. package/.next/server/app/api/models/route.js +1 -1
  27. package/.next/server/app/api/models-config/connectivity/route.js +1 -1
  28. package/.next/server/app/api/models-config/connectivity/route.js.nft.json +1 -1
  29. package/.next/server/app/api/models-config/route.js +1 -1
  30. package/.next/server/app/api/models-config/route.js.nft.json +1 -1
  31. package/.next/server/app/api/models-config/test/route.js +1 -1
  32. package/.next/server/app/api/models-config/test/route.js.nft.json +1 -1
  33. package/.next/server/app/api/omp-settings/route.js +1 -1
  34. package/.next/server/app/api/providers/enable/route.js +1 -1
  35. package/.next/server/app/index.html +1 -1
  36. package/.next/server/app/index.rsc +3 -3
  37. package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  38. package/.next/server/app/index.segments/_full.segment.rsc +3 -3
  39. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  40. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  41. package/.next/server/app/login.html +1 -1
  42. package/.next/server/app/login.rsc +2 -2
  43. package/.next/server/app/login.segments/_full.segment.rsc +2 -2
  44. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  45. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  46. package/.next/server/app/page.js +1 -1
  47. package/.next/server/app/page_client-reference-manifest.js +1 -1
  48. package/.next/server/app/pair/page_client-reference-manifest.js +1 -1
  49. package/.next/server/app/pair.html +1 -1
  50. package/.next/server/app/pair.rsc +3 -3
  51. package/.next/server/app/pair.segments/_full.segment.rsc +3 -3
  52. package/.next/server/app/pair.segments/_tree.segment.rsc +1 -1
  53. package/.next/server/app/pair.segments/pair/__PAGE__.segment.rsc +3 -3
  54. package/.next/server/app-paths-manifest.json +5 -5
  55. package/.next/server/chunks/244.js +1 -0
  56. package/.next/server/chunks/2676.js +1 -1
  57. package/.next/server/chunks/6480.js +1 -1
  58. package/.next/server/chunks/7226.js +9 -9
  59. package/.next/server/chunks/933.js +1 -1
  60. package/.next/server/middleware-build-manifest.js +1 -1
  61. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  62. package/.next/server/pages/404.html +1 -1
  63. package/.next/server/pages/500.html +1 -1
  64. package/.next/server/server-reference-manifest.json +1 -1
  65. package/.next/static/chunks/4315-f0bee51727fa8bed.js +1 -0
  66. package/.next/static/chunks/{4318.65827559038c9692.js → 4318.262b14251f05c7a0.js} +3 -3
  67. package/.next/static/chunks/app/{page-bca40f639be6becb.js → page-52be30b788f58e8c.js} +1 -1
  68. package/.next/static/chunks/{webpack-b14269412e91a71d.js → webpack-71c49b2d000b4171.js} +1 -1
  69. package/README.ja.md +1 -1
  70. package/README.ko.md +5 -4
  71. package/README.md +5 -4
  72. package/README.zh-CN.md +1 -1
  73. package/package.json +1 -1
  74. package/.next/server/chunks/1448.js +0 -1
  75. package/.next/static/chunks/4315-dfe6a33b10f1a366.js +0 -1
  76. /package/.next/static/{d7tCWD5FStyLazqHgLBLG → kCY3TYrtVGBtbLBIXH4MJ}/_buildManifest.js +0 -0
  77. /package/.next/static/{d7tCWD5FStyLazqHgLBLG → kCY3TYrtVGBtbLBIXH4MJ}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- exports.id=7226,exports.ids=[7226],exports.modules={58:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e,f,g){var h=c(22418),i=c(43823).TypeError,j=c(22418).inherits,k=h.errorObj,l=h.tryCatch,m={};function n(a){setTimeout(function(){throw a},0)}function o(a,b,c){this._data=a,this._promise=b,this._context=c}function p(a,b,c){this.constructor$(a,b,c)}function q(a){return o.isDisposer(a)?(this.resources[this.index]._setDisposable(a),a.promise()):a}function r(a){this.length=a,this.promise=null,this[a-1]=null}o.prototype.data=function(){return this._data},o.prototype.promise=function(){return this._promise},o.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():m},o.prototype.tryDispose=function(a){var b=this.resource(),c=this._context;void 0!==c&&c._pushContext();var d=b!==m?this.doDispose(b,a):null;return void 0!==c&&c._popContext(),this._promise._unsetDisposable(),this._data=null,d},o.isDisposer=function(a){return null!=a&&"function"==typeof a.resource&&"function"==typeof a.tryDispose},j(p,o),p.prototype.doDispose=function(a,b){return this.data().call(a,a,b)},r.prototype._resultCancelled=function(){for(var b=this.length,c=0;c<b;++c){var d=this[c];d instanceof a&&d.cancel()}},a.using=function(){var c,e=arguments.length;if(e<2)return b("you must pass at least 2 arguments to Promise.using");var i=arguments[e-1];if("function"!=typeof i)return b("expecting a function but got "+h.classString(i));var j=!0;2===e&&Array.isArray(arguments[0])?(c=arguments[0],e=c.length,j=!1):(c=arguments,e--);for(var m=new r(e),p=0;p<e;++p){var s=c[p];if(o.isDisposer(s)){var t=s;(s=s.promise())._setDisposable(t)}else{var u=d(s);u instanceof a&&(s=u._then(q,null,null,{resources:m,index:p},void 0))}m[p]=s}for(var v=Array(m.length),p=0;p<v.length;++p)v[p]=a.resolve(m[p]).reflect();var w=a.all(v).then(function(a){for(var b=0;b<a.length;++b){var c=a[b];if(c.isRejected())return k.e=c.error(),k;if(!c.isFulfilled())return void w.cancel();a[b]=c.value()}x._pushContext(),i=l(i);var d=j?i.apply(void 0,a):i(a),e=x._popContext();return g.checkForgottenReturns(d,e,"Promise.using",x),d}),x=w.lastly(function(){var b,c,e,g=new a.PromiseInspection(w);return b=0,c=m.length,e=new a(f),!function f(){if(b>=c)return e._fulfill();var h,i,j=((i=d(h=m[b++]))!==h&&"function"==typeof h._isDisposable&&"function"==typeof h._getDisposer&&h._isDisposable()&&i._setDisposable(h._getDisposer()),i);if(j instanceof a&&j._isDisposable()){try{j=d(j._getDisposer().tryDispose(g),m.promise)}catch(a){return n(a)}if(j instanceof a)return j._then(f,n,null,null,null)}f()}(),e});return m.promise=x,x._setOnCancel(m),x},a.prototype._setDisposable=function(a){this._bitField=131072|this._bitField,this._disposer=a},a.prototype._isDisposable=function(){return(131072&this._bitField)>0},a.prototype._getDisposer=function(){return this._disposer},a.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},a.prototype.disposer=function(a){if("function"==typeof a)return new p(a,this,e());throw new i}}},788:(a,b,c)=>{"use strict";var d=c(69217);function e(a){d.call(this,a)}c(58952).inherits(e,d),e.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},1434:a=>{"function"==typeof Object.create?a.exports=function(a,b){b&&(a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:a.exports=function(a,b){if(b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}}},1789:(a,b,c)=>{var d=c(84906),e=c(9920),f=c(35976);b.V=function(a,b){return a.exists(b)?a.read(b,"utf-8").then(i).then(h):e.resolve(null)};var g={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function h(a){return f.readString(a,g).then(function(a){return function a(b){return"element"!==b.type?[b]:"mc:AlternateContent"===b.name?b.firstOrEmpty("mc:Fallback").children:(b.children=d.flatten(b.children.map(a,!0)),[b])}(a)[0]})}function i(a){return a.replace(/^\uFEFF/g,"")}},1906:(a,b)=>{function c(a){return"function"==typeof a?a():a}b.none=Object.create({value:function(){throw Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return b.none},flatMap:function(){return b.none},filter:function(){return b.none},toArray:function(){return[]},orElse:c,valueOrElse:c}),b.some=function(a){return new d(a)};var d=function(a){this._value=a};d.prototype.value=function(){return this._value},d.prototype.isNone=function(){return!1},d.prototype.isSome=function(){return!0},d.prototype.map=function(a){return new d(a(this._value))},d.prototype.flatMap=function(a){return a(this._value)},d.prototype.filter=function(a){return a(this._value)?this:b.none},d.prototype.toArray=function(){return[this._value]},d.prototype.orElse=function(a){return this},d.prototype.valueOrElse=function(a){return this._value},b.isOption=function(a){return a===b.none||a instanceof d},b.fromNullable=function(a){return null==a?b.none:new d(a)}},2063:(a,b,c)=>{"use strict";var d=c(71260),e=c(31991),f=c(38141);b.createScalarToken=d.createScalarToken,b.resolveAsScalar=d.resolveAsScalar,b.setScalarValue=d.setScalarValue,b.stringify=e.stringify,b.visit=f.visit,b.BOM="\uFEFF",b.DOCUMENT="\x02",b.FLOW_END="\x18",b.SCALAR="\x1f",b.isCollection=a=>!!a&&"items"in a,b.isScalar=a=>!!a&&("scalar"===a.type||"single-quoted-scalar"===a.type||"double-quoted-scalar"===a.type||"block-scalar"===a.type),b.prettyToken=function(a){switch(a){case"\uFEFF":return"<BOM>";case"\x02":return"<DOC>";case"\x18":return"<FLOW_END>";case"\x1f":return"<SCALAR>";default:return JSON.stringify(a)}},b.tokenType=function(a){switch(a){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(a[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}},2286:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(54117).isObject,a.exports=function(a){function c(a,d,e,f){var g;c.__super__.constructor.call(this,a),b(d)&&(d=(g=d).version,e=g.encoding,f=g.standalone),d||(d="1.0"),this.version=this.stringify.xmlVersion(d),null!=e&&(this.encoding=this.stringify.xmlEncoding(e)),null!=f&&(this.standalone=this.stringify.xmlStandalone(f))}return d(c,a),c.prototype.toString=function(a){return this.options.writer.set(a).declaration(this)},c}(c(8142))}).call(this)},2541:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}]},3289:(a,b,c)=>{"use strict";var d=c(73315),e=c(26701),f=c(81833),g=c(40542);b.composeScalar=function(a,b,c,h){let i,j,{value:k,type:l,comment:m,range:n}="block-scalar"===b.type?f.resolveBlockScalar(a,b,h):g.resolveFlowScalar(b,a.options.strict,h),o=c?a.directives.tagName(c.source,a=>h(c,"TAG_RESOLVE_FAILED",a)):null;i=a.options.stringKeys&&a.atKey?a.schema[d.SCALAR]:o?function(a,b,c,e,f){if("!"===c)return a[d.SCALAR];let g=[];for(let b of a.tags)if(!b.collection&&b.tag===c)if(!b.default||!b.test)return b;else g.push(b);for(let a of g)if(a.test?.test(b))return a;let h=a.knownTags[c];return h&&!h.collection?(a.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(f(e,"TAG_RESOLVE_FAILED",`Unresolved tag: ${c}`,"tag:yaml.org,2002:str"!==c),a[d.SCALAR])}(a.schema,k,o,c,h):"scalar"===b.type?function({atKey:a,directives:b,schema:c},e,f,g){let h=c.tags.find(b=>(!0===b.default||a&&"key"===b.default)&&b.test?.test(e))||c[d.SCALAR];if(c.compat){let a=c.compat.find(a=>a.default&&a.test?.test(e))??c[d.SCALAR];if(h.tag!==a.tag){let c=b.tagString(h.tag),d=b.tagString(a.tag);g(f,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${c} or ${d}`,!0)}}return h}(a,k,b,h):a.schema[d.SCALAR];try{let f=i.resolve(k,a=>h(c??b,"TAG_RESOLVE_FAILED",a),a.options);j=d.isScalar(f)?f:new e.Scalar(f)}catch(a){h(c??b,"TAG_RESOLVE_FAILED",a instanceof Error?a.message:String(a)),j=new e.Scalar(k)}return j.range=n,j.source=k,l&&(j.type=l),o&&(j.tag=o),i.format&&(j.format=i.format),m&&(j.comment=m),j}},3327:(a,b,c)=>{"use strict";var d=c(10140),e=c(3404),f=c(73315),g=c(26957),h=c(49443);class i extends g.NodeBase{constructor(a){super(f.ALIAS),this.source=a,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(a,b){let c,d;if(b?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let g of(b?.aliasResolveCache?c=b.aliasResolveCache:(c=[],e.visit(a,{Node:(a,b)=>{(f.isAlias(b)||f.hasAnchor(b))&&c.push(b)}}),b&&(b.aliasResolveCache=c)),c)){if(g===this)break;g.anchor===this.source&&(d=g)}return d}toJSON(a,b){if(!b)return{source:this.source};let{anchors:c,doc:d,maxAliasCount:e}=b,g=this.resolve(d,b);if(!g)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let i=c.get(g);if(i||(h.toJS(g,null,b),i=c.get(g)),i?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(e>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=function a(b,c,d){if(f.isAlias(c)){let a=c.resolve(b),e=d&&a&&d.get(a);return e?e.count*e.aliasCount:0}if(f.isCollection(c)){let e=0;for(let f of c.items){let c=a(b,f,d);c>e&&(e=c)}return e}return f.isPair(c)?Math.max(a(b,c.key,d),a(b,c.value,d)):1}(d,g,c)),i.count*i.aliasCount>e))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return i.res}toString(a,b,c){let e=`*${this.source}`;if(a){if(d.anchorIsValid(this.source),a.options.verifyAliasOrder&&!a.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(a.implicitKey)return`${e} `}return e}}b.Alias=i},3404:(a,b,c)=>{"use strict";var d=c(73315);let e=Symbol("break visit"),f=Symbol("skip children"),g=Symbol("remove node");function h(a,b){let c=l(b);d.isDocument(a)?i(null,a.contents,c,Object.freeze([a]))===g&&(a.contents=null):i(null,a,c,Object.freeze([]))}function i(a,b,c,f){let h=m(a,b,c,f);if(d.isNode(h)||d.isPair(h))return n(a,f,h),i(a,h,c,f);if("symbol"!=typeof h){if(d.isCollection(b)){f=Object.freeze(f.concat(b));for(let a=0;a<b.items.length;++a){let d=i(a,b.items[a],c,f);if("number"==typeof d)a=d-1;else{if(d===e)return e;d===g&&(b.items.splice(a,1),a-=1)}}}else if(d.isPair(b)){f=Object.freeze(f.concat(b));let a=i("key",b.key,c,f);if(a===e)return e;a===g&&(b.key=null);let d=i("value",b.value,c,f);if(d===e)return e;d===g&&(b.value=null)}}return h}async function j(a,b){let c=l(b);d.isDocument(a)?await k(null,a.contents,c,Object.freeze([a]))===g&&(a.contents=null):await k(null,a,c,Object.freeze([]))}async function k(a,b,c,f){let h=await m(a,b,c,f);if(d.isNode(h)||d.isPair(h))return n(a,f,h),k(a,h,c,f);if("symbol"!=typeof h){if(d.isCollection(b)){f=Object.freeze(f.concat(b));for(let a=0;a<b.items.length;++a){let d=await k(a,b.items[a],c,f);if("number"==typeof d)a=d-1;else{if(d===e)return e;d===g&&(b.items.splice(a,1),a-=1)}}}else if(d.isPair(b)){f=Object.freeze(f.concat(b));let a=await k("key",b.key,c,f);if(a===e)return e;a===g&&(b.key=null);let d=await k("value",b.value,c,f);if(d===e)return e;d===g&&(b.value=null)}}return h}function l(a){return"object"==typeof a&&(a.Collection||a.Node||a.Value)?Object.assign({Alias:a.Node,Map:a.Node,Scalar:a.Node,Seq:a.Node},a.Value&&{Map:a.Value,Scalar:a.Value,Seq:a.Value},a.Collection&&{Map:a.Collection,Seq:a.Collection},a):a}function m(a,b,c,e){return"function"==typeof c?c(a,b,e):d.isMap(b)?c.Map?.(a,b,e):d.isSeq(b)?c.Seq?.(a,b,e):d.isPair(b)?c.Pair?.(a,b,e):d.isScalar(b)?c.Scalar?.(a,b,e):d.isAlias(b)?c.Alias?.(a,b,e):void 0}function n(a,b,c){let e=b[b.length-1];if(d.isCollection(e))e.items[a]=c;else if(d.isPair(e))"key"===a?e.key=c:e.value=c;else if(d.isDocument(e))e.contents=c;else{let a=d.isAlias(e)?"alias":"scalar";throw Error(`Cannot replace node with ${a} parent`)}}h.BREAK=e,h.SKIP=f,h.REMOVE=g,j.BREAK=e,j.SKIP=f,j.REMOVE=g,b.visit=h,b.visitAsync=j},3863:(a,b)=>{"use strict";b.emptyScalarPosition=function(a,b,c){if(b){c??(c=b.length);for(let d=c-1;d>=0;--d){let c=b[d];switch(c.type){case"space":case"comment":case"newline":a-=c.source.length;continue}for(c=b[++d];c?.type==="space";)a+=c.source.length,c=b[++d];break}}return a}},3987:a=>{var b=function(){return void 0===this}();if(b)a.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:b,propertyIsWritable:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);return!!(!c||c.writable||c.set)}};else{var c={}.hasOwnProperty,d={}.toString,e={}.constructor.prototype,f=function(a){var b=[];for(var d in a)c.call(a,d)&&b.push(d);return b};a.exports={isArray:function(a){try{return"[object Array]"===d.call(a)}catch(a){return!1}},keys:f,names:f,defineProperty:function(a,b,c){return a[b]=c.value,a},getDescriptor:function(a,b){return{value:a[b]}},freeze:function(a){return a},getPrototypeOf:function(a){try{return Object(a).constructor.prototype}catch(a){return e}},isES5:b,propertyIsWritable:function(){return!0}}}},4204:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e,f,g){var h=a._getDomain,i=c(22418),j=i.tryCatch;function k(b,c,d,e){this.constructor$(b);var g=h();this._fn=null===g?c:i.domainBind(g,c),void 0!==d&&(d=a.resolve(d))._attachCancellationCallback(this),this._initialValue=d,this._currentCancellable=null,e===f?this._eachValues=Array(this._length):0===e?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function l(a,b){this.isFulfilled()?b._resolve(a):b._reject(a)}function m(a,b,c,e){return"function"!=typeof b?d("expecting a function but got "+i.classString(b)):new k(a,b,c,e).promise()}function n(b){this.accum=b,this.array._gotAccum(b);var c=e(this.value,this.array._promise);return c instanceof a?(this.array._currentCancellable=c,c._then(o,void 0,void 0,this,void 0)):o.call(this,c)}function o(b){var c,d=this.array,e=d._promise,f=j(d._fn);e._pushContext(),(c=void 0!==d._eachValues?f.call(e._boundValue(),b,this.index,this.length):f.call(e._boundValue(),this.accum,b,this.index,this.length))instanceof a&&(d._currentCancellable=c);var h=e._popContext();return g.checkForgottenReturns(c,h,void 0!==d._eachValues?"Promise.each":"Promise.reduce",e),c}i.inherits(k,b),k.prototype._gotAccum=function(a){void 0!==this._eachValues&&null!==this._eachValues&&a!==f&&this._eachValues.push(a)},k.prototype._eachComplete=function(a){return null!==this._eachValues&&this._eachValues.push(a),this._eachValues},k.prototype._init=function(){},k.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},k.prototype.shouldCopyValues=function(){return!1},k.prototype._resolve=function(a){this._promise._resolveCallback(a),this._values=null},k.prototype._resultCancelled=function(b){if(b===this._initialValue)return this._cancel();!this._isResolved()&&(this._resultCancelled$(),this._currentCancellable instanceof a&&this._currentCancellable.cancel(),this._initialValue instanceof a&&this._initialValue.cancel())},k.prototype._iterate=function(b){this._values=b;var c,d,e=b.length;if(void 0!==this._initialValue?(c=this._initialValue,d=0):(c=a.resolve(b[0]),d=1),this._currentCancellable=c,!c.isRejected())for(;d<e;++d){var f={accum:null,value:b[d],index:d,length:e,array:this};c=c._then(n,void 0,void 0,f,void 0)}void 0!==this._eachValues&&(c=c._then(this._eachComplete,void 0,void 0,this,void 0)),c._then(l,l,void 0,c,this)},a.prototype.reduce=function(a,b){return m(this,a,b,null)},a.reduce=function(a,b,c,d){return m(a,b,c,d)}}},4398:function(a,b,c){var d=c(77880),e=c(6560).Result;function f(a,b){function c(a){var b=a.attributes["w:type"];return"continuationSeparator"!==b&&"separator"!==b}function f(c){var e=c.attributes["w:id"];return b.readXmlElements(c.children).map(function(b){return d.Note({noteType:a,noteId:e,body:b})})}return function(b){return e.combine(b.getElementsByTagName("w:"+a).filter(c).map(f))}}b.createFootnotesReader=f.bind(this,"footnote"),b.createEndnotesReader=f.bind(this,"endnote")},4907:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(54117).isObject,a.exports=function(a){function c(a,d,e,f){if(c.__super__.constructor.call(this,a),null==e)throw Error("Missing DTD entity name. "+this.debugInfo(e));if(null==f)throw Error("Missing DTD entity value. "+this.debugInfo(e));if(this.pe=!!d,this.name=this.stringify.eleName(e),b(f)){if(!f.pubID&&!f.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(e));if(f.pubID&&!f.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(e));if(null!=f.pubID&&(this.pubID=this.stringify.dtdPubID(f.pubID)),null!=f.sysID&&(this.sysID=this.stringify.dtdSysID(f.sysID)),null!=f.nData&&(this.nData=this.stringify.dtdNData(f.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(e))}else this.value=this.stringify.dtdEntityValue(f)}return d(c,a),c.prototype.toString=function(a){return this.options.writer.set(a).dtdEntity(this)},c}(c(8142))}).call(this)},5040:a=>{"use strict";a.exports=function(a,b){var c=a.map;a.prototype.filter=function(a,d){return c(this,a,d,b)},a.filter=function(a,d,e){return c(a,d,e,b)}}},5410:(a,b)=>{"use strict";b.byteLength=function(a){var b=i(a),c=b[0],d=b[1];return(c+d)*3/4-d},b.toByteArray=function(a){var b,c,f=i(a),g=f[0],h=f[1],j=new e((g+h)*3/4-h),k=0,l=h>0?g-4:g;for(c=0;c<l;c+=4)b=d[a.charCodeAt(c)]<<18|d[a.charCodeAt(c+1)]<<12|d[a.charCodeAt(c+2)]<<6|d[a.charCodeAt(c+3)],j[k++]=b>>16&255,j[k++]=b>>8&255,j[k++]=255&b;return 2===h&&(b=d[a.charCodeAt(c)]<<2|d[a.charCodeAt(c+1)]>>4,j[k++]=255&b),1===h&&(b=d[a.charCodeAt(c)]<<10|d[a.charCodeAt(c+1)]<<4|d[a.charCodeAt(c+2)]>>2,j[k++]=b>>8&255,j[k++]=255&b),j},b.fromByteArray=function(a){for(var b,d=a.length,e=d%3,f=[],g=0,h=d-e;g<h;g+=16383)f.push(function(a,b,d){for(var e,f=[],g=b;g<d;g+=3)e=(a[g]<<16&0xff0000)+(a[g+1]<<8&65280)+(255&a[g+2]),f.push(c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]);return f.join("")}(a,g,g+16383>h?h:g+16383));return 1===e?f.push(c[(b=a[d-1])>>2]+c[b<<4&63]+"=="):2===e&&f.push(c[(b=(a[d-2]<<8)+a[d-1])>>10]+c[b>>4&63]+c[b<<2&63]+"="),f.join("")};for(var c=[],d=[],e="u">typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,h=f.length;g<h;++g)c[g]=f[g],d[f.charCodeAt(g)]=g;function i(a){var b=a.length;if(b%4>0)throw Error("Invalid string. Length must be a multiple of 4");var c=a.indexOf("=");-1===c&&(c=b);var d=c===b?0:4-c%4;return[c,d]}d[45]=62,d[95]=63},5928:a=>{"use strict";a.exports=function(a){function b(){return this.value}function c(){throw this.reason}a.prototype.return=a.prototype.thenReturn=function(c){return c instanceof a&&c.suppressUnhandledRejections(),this._then(b,void 0,void 0,{value:c},void 0)},a.prototype.throw=a.prototype.thenThrow=function(a){return this._then(c,void 0,void 0,{reason:a},void 0)},a.prototype.catchThrow=function(a){if(arguments.length<=1)return this._then(void 0,c,void 0,{reason:a},void 0);var b=arguments[1];return this.caught(a,function(){throw b})},a.prototype.catchReturn=function(c){if(arguments.length<=1)return c instanceof a&&c.suppressUnhandledRejections(),this._then(void 0,b,void 0,{value:c},void 0);var d=arguments[1];return d instanceof a&&d.suppressUnhandledRejections(),this.caught(c,function(){return d})}}},6163:(a,b,c)=>{"use strict";var d=c(71646);function e(){}var f={},g=["REJECTED"],h=["FULFILLED"],i=["PENDING"],j=["UNHANDLED"];function k(a){if("function"!=typeof a)throw TypeError("resolver must be a function");this.state=i,this.queue=[],this.outcome=void 0,this.handled=j,a!==e&&o(this,a)}function l(a,b,c){this.promise=a,"function"==typeof b&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),"function"==typeof c&&(this.onRejected=c,this.callRejected=this.otherCallRejected)}function m(a,b,c){d(function(){var d;try{d=b(c)}catch(b){return f.reject(a,b)}d===a?f.reject(a,TypeError("Cannot resolve promise with itself")):f.resolve(a,d)})}function n(a){var b=a&&a.then;if(a&&("object"==typeof a||"function"==typeof a)&&"function"==typeof b)return function(){b.apply(a,arguments)}}function o(a,b){var c=!1;function d(b){c||(c=!0,f.reject(a,b))}function e(b){c||(c=!0,f.resolve(a,b))}var g=p(function(){b(e,d)});"error"===g.status&&d(g.value)}function p(a,b){var c={};try{c.value=a(b),c.status="success"}catch(a){c.status="error",c.value=a}return c}a.exports=k,k.prototype.finally=function(a){if("function"!=typeof a)return this;var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){throw c})})},k.prototype.catch=function(a){return this.then(null,a)},k.prototype.then=function(a,b){if("function"!=typeof a&&this.state===h||"function"!=typeof b&&this.state===g)return this;var c=new this.constructor(e);return this.handled===j&&(this.handled=null),this.state!==i?m(c,this.state===h?a:b,this.outcome):this.queue.push(new l(c,a,b)),c},l.prototype.callFulfilled=function(a){f.resolve(this.promise,a)},l.prototype.otherCallFulfilled=function(a){m(this.promise,this.onFulfilled,a)},l.prototype.callRejected=function(a){f.reject(this.promise,a)},l.prototype.otherCallRejected=function(a){m(this.promise,this.onRejected,a)},f.resolve=function(a,b){var c=p(n,b);if("error"===c.status)return f.reject(a,c.value);var d=c.value;if(d)o(a,d);else{a.state=h,a.outcome=b;for(var e=-1,g=a.queue.length;++e<g;)a.queue[e].callFulfilled(b)}return a},f.reject=function(a,b){a.state=g,a.outcome=b,a.handled===j&&d(function(){a.handled===j&&process.emit("unhandledRejection",b,a)});for(var c=-1,e=a.queue.length;++c<e;)a.queue[c].callRejected(b);return a},k.resolve=function(a){return a instanceof this?a:f.resolve(new this(e),a)},k.reject=function(a){var b=new this(e);return f.reject(b,a)},k.all=function(a){var b=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(TypeError("must be an array"));var c=a.length,d=!1;if(!c)return this.resolve([]);for(var g=Array(c),h=0,i=-1,j=new this(e);++i<c;)!function(a,e){b.resolve(a).then(function(a){g[e]=a,++h!==c||d||(d=!0,f.resolve(j,g))},function(a){d||(d=!0,f.reject(j,a))})}(a[i],i);return j},k.race=function(a){var b,c=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(TypeError("must be an array"));var d=a.length,g=!1;if(!d)return this.resolve([]);for(var h=-1,i=new this(e);++h<d;){b=a[h],c.resolve(b).then(function(a){g||(g=!0,f.resolve(i,a))},function(a){g||(g=!0,f.reject(i,a))})}return i}},6273:(a,b,c)=>{"use strict";var d=c(73315);b.mapIncludes=function(a,b,c){let{uniqueKeys:e}=a.options;if(!1===e)return!1;let f="function"==typeof e?e:(a,b)=>a===b||d.isScalar(a)&&d.isScalar(b)&&a.value===b.value;return b.some(a=>f(a.key,c))}},6560:(a,b,c)=>{var d=c(84906);function e(a,b){this.value=a,this.messages=b||[]}function f(a){var b=[];return d.flatten(d.pluck(a,"messages"),!0).forEach(function(a){var c,e;c=b,e=a,void 0===d.find(c,g.bind(null,e))&&b.push(a)}),b}function g(a,b){return a.type===b.type&&a.message===b.message}b.Result=e,b.success=function(a){return new e(a,[])},b.warning=function(a){return{type:"warning",message:a}},b.error=function(a){return{type:"error",message:a.message,error:a}},e.prototype.map=function(a){return new e(a(this.value),this.messages)},e.prototype.flatMap=function(a){var b=a(this.value);return new e(b.value,f([this,b]))},e.prototype.flatMapThen=function(a){var b=this;return a(this.value).then(function(a){return new e(a.value,f([b,a]))})},e.combine=function(a){return new e(d.flatten(d.pluck(a,"value")),f(a))}},7226:(a,b,c)=>{"use strict";let d;c.d(b,{attachRelayGateway:()=>li});var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I={};c.r(I),c.d(I,{boolean:()=>cY,booleanish:()=>cZ,commaOrSpaceSeparated:()=>c2,commaSeparated:()=>c1,number:()=>c_,overloadedBoolean:()=>c$,spaceSeparated:()=>c0});var J=c(37067),K=c(44708),L=c(77598);function M(a){return(0,L.createHash)("sha256").update(a,"utf8").digest()}function N(a=process.env.OMPGUI_PASSWORD??process.env.OMP_WEB_PASSWORD){return"string"==typeof a&&a.length>0}var O=c(73024),P=c(76760),Q=c.n(P),R=c(92226),S=c(28672),T=c(18437);let U=new Set(["prompt","abort","get_state","set_model","set_thinking_level","compact","get_subagents","get_available_commands"]),V=/^d_[A-Za-z0-9_-]{16,64}$/,W=/^[A-Za-z0-9_-]{32,128}$/,X=/^[A-Za-z0-9._-]{1,128}$/;function Y(a){let b=[];if(Array.isArray(a))for(let c of a){let a=function(a){if(!(0,S.u4)(a))return null;let b=(0,S.oJ)(a.provider)?.trim(),c=(0,S.oJ)(a.id)?.trim();if(!b||!c||b.length>512||c.length>512)return null;let d=(0,S.oJ)(a.name)?.trim()||c;return{provider:b,id:c,name:d.length>128?d.slice(0,128):d}}(c);a&&b.push(a)}return{op:"models",models:b}}function Z(a){return(0,L.createHash)("sha256").update(a,"utf8").digest("hex")}function $(a,b){let c=Buffer.from(a,"hex"),d=Buffer.from(b,"hex");return 32===c.length&&32===d.length&&(0,L.timingSafeEqual)(c,d)}function _(a,b=16){return`${a}${(0,L.randomBytes)(b).toString("base64url")}`}function aa(a){return(a??"").replace(/[\u0000-\u001f\u007f]/g,"").trim().slice(0,64)}function ab(){return(0,P.resolve)((0,R.$M)(),"ompgui-relay.json")}function ac(){return{version:1,serverId:_("s_"),devices:[],pairing:null}}function ad(a){let b=ab(),c=`${b}.lock`;(0,O.mkdirSync)((0,P.dirname)(c),{recursive:!0});let d=Date.now()+3e3;for(;;){let b=null;try{b=(0,O.openSync)(c,"wx")}catch(a){if("EEXIST"!==a.code)throw a;try{if(Date.now()-(0,O.statSync)(c).mtimeMs>1e4){(0,O.unlinkSync)(c);continue}}catch{continue}if(Date.now()>=d)throw Error("Timed out waiting for the ompgui relay device registry lock");!function(){let a=new SharedArrayBuffer(4);Atomics.wait(new Int32Array(a),0,0,25)}();continue}try{(0,O.writeSync)(b,String(process.pid))}finally{(0,O.closeSync)(b)}try{return a()}finally{try{(0,O.unlinkSync)(c)}catch{}}}}function ae(){let a=ab();if(!(0,O.existsSync)(a)){let a=ac();return af(a),a}try{return function(a){try{let b=JSON.parse(a);if(!(0,S.u4)(b)||1!==b.version)return ac();let c="string"==typeof b.serverId&&/^[A-Za-z0-9_-]{16,64}$/.test(b.serverId)?b.serverId:_("s_"),d=[];if(Array.isArray(b.devices))for(let a of b.devices)(0,S.u4)(a)&&"string"==typeof a.id&&a.id.startsWith("d_")&&"string"==typeof a.tokenHash&&64===a.tokenHash.length&&d.push({id:a.id,label:aa("string"==typeof a.label?a.label:""),tokenHash:a.tokenHash,createdAt:"string"==typeof a.createdAt?a.createdAt:new Date(0).toISOString(),lastSeenAt:"string"==typeof a.lastSeenAt?a.lastSeenAt:new Date(0).toISOString()});let e=null;if((0,S.u4)(b.pairing)){let a="string"==typeof b.pairing.secretHash?b.pairing.secretHash:"",c="number"==typeof b.pairing.expiresAt?b.pairing.expiresAt:0,d="string"==typeof b.pairing.relayUrl?b.pairing.relayUrl:"",f="string"==typeof b.pairing.createdAt?b.pairing.createdAt:new Date(0).toISOString();64===a.length&&c>0&&d&&(e={secretHash:a,expiresAt:c,relayUrl:d,createdAt:f})}let f="string"==typeof b.relayUrl?b.relayUrl:void 0;return{version:1,serverId:c,...f?{relayUrl:f}:{},devices:d,pairing:e}}catch{return ac()}}((0,O.readFileSync)(a,"utf8"))}catch{return ac()}}function af(a){let b=ab();(0,O.mkdirSync)((0,P.dirname)(b),{recursive:!0});let c=`${b}.tmp-${process.pid}-${Date.now()}`;try{(0,O.writeFileSync)(c,`${JSON.stringify(a,null,2)}
1
+ exports.id=7226,exports.ids=[7226],exports.modules={58:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e,f,g){var h=c(22418),i=c(43823).TypeError,j=c(22418).inherits,k=h.errorObj,l=h.tryCatch,m={};function n(a){setTimeout(function(){throw a},0)}function o(a,b,c){this._data=a,this._promise=b,this._context=c}function p(a,b,c){this.constructor$(a,b,c)}function q(a){return o.isDisposer(a)?(this.resources[this.index]._setDisposable(a),a.promise()):a}function r(a){this.length=a,this.promise=null,this[a-1]=null}o.prototype.data=function(){return this._data},o.prototype.promise=function(){return this._promise},o.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():m},o.prototype.tryDispose=function(a){var b=this.resource(),c=this._context;void 0!==c&&c._pushContext();var d=b!==m?this.doDispose(b,a):null;return void 0!==c&&c._popContext(),this._promise._unsetDisposable(),this._data=null,d},o.isDisposer=function(a){return null!=a&&"function"==typeof a.resource&&"function"==typeof a.tryDispose},j(p,o),p.prototype.doDispose=function(a,b){return this.data().call(a,a,b)},r.prototype._resultCancelled=function(){for(var b=this.length,c=0;c<b;++c){var d=this[c];d instanceof a&&d.cancel()}},a.using=function(){var c,e=arguments.length;if(e<2)return b("you must pass at least 2 arguments to Promise.using");var i=arguments[e-1];if("function"!=typeof i)return b("expecting a function but got "+h.classString(i));var j=!0;2===e&&Array.isArray(arguments[0])?(c=arguments[0],e=c.length,j=!1):(c=arguments,e--);for(var m=new r(e),p=0;p<e;++p){var s=c[p];if(o.isDisposer(s)){var t=s;(s=s.promise())._setDisposable(t)}else{var u=d(s);u instanceof a&&(s=u._then(q,null,null,{resources:m,index:p},void 0))}m[p]=s}for(var v=Array(m.length),p=0;p<v.length;++p)v[p]=a.resolve(m[p]).reflect();var w=a.all(v).then(function(a){for(var b=0;b<a.length;++b){var c=a[b];if(c.isRejected())return k.e=c.error(),k;if(!c.isFulfilled())return void w.cancel();a[b]=c.value()}x._pushContext(),i=l(i);var d=j?i.apply(void 0,a):i(a),e=x._popContext();return g.checkForgottenReturns(d,e,"Promise.using",x),d}),x=w.lastly(function(){var b,c,e,g=new a.PromiseInspection(w);return b=0,c=m.length,e=new a(f),!function f(){if(b>=c)return e._fulfill();var h,i,j=((i=d(h=m[b++]))!==h&&"function"==typeof h._isDisposable&&"function"==typeof h._getDisposer&&h._isDisposable()&&i._setDisposable(h._getDisposer()),i);if(j instanceof a&&j._isDisposable()){try{j=d(j._getDisposer().tryDispose(g),m.promise)}catch(a){return n(a)}if(j instanceof a)return j._then(f,n,null,null,null)}f()}(),e});return m.promise=x,x._setOnCancel(m),x},a.prototype._setDisposable=function(a){this._bitField=131072|this._bitField,this._disposer=a},a.prototype._isDisposable=function(){return(131072&this._bitField)>0},a.prototype._getDisposer=function(){return this._disposer},a.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},a.prototype.disposer=function(a){if("function"==typeof a)return new p(a,this,e());throw new i}}},788:(a,b,c)=>{"use strict";var d=c(69217);function e(a){d.call(this,a)}c(58952).inherits(e,d),e.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},1434:a=>{"function"==typeof Object.create?a.exports=function(a,b){b&&(a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:a.exports=function(a,b){if(b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}}},1789:(a,b,c)=>{var d=c(84906),e=c(9920),f=c(35976);b.V=function(a,b){return a.exists(b)?a.read(b,"utf-8").then(i).then(h):e.resolve(null)};var g={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function h(a){return f.readString(a,g).then(function(a){return function a(b){return"element"!==b.type?[b]:"mc:AlternateContent"===b.name?b.firstOrEmpty("mc:Fallback").children:(b.children=d.flatten(b.children.map(a,!0)),[b])}(a)[0]})}function i(a){return a.replace(/^\uFEFF/g,"")}},1906:(a,b)=>{function c(a){return"function"==typeof a?a():a}b.none=Object.create({value:function(){throw Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return b.none},flatMap:function(){return b.none},filter:function(){return b.none},toArray:function(){return[]},orElse:c,valueOrElse:c}),b.some=function(a){return new d(a)};var d=function(a){this._value=a};d.prototype.value=function(){return this._value},d.prototype.isNone=function(){return!1},d.prototype.isSome=function(){return!0},d.prototype.map=function(a){return new d(a(this._value))},d.prototype.flatMap=function(a){return a(this._value)},d.prototype.filter=function(a){return a(this._value)?this:b.none},d.prototype.toArray=function(){return[this._value]},d.prototype.orElse=function(a){return this},d.prototype.valueOrElse=function(a){return this._value},b.isOption=function(a){return a===b.none||a instanceof d},b.fromNullable=function(a){return null==a?b.none:new d(a)}},2063:(a,b,c)=>{"use strict";var d=c(71260),e=c(31991),f=c(38141);b.createScalarToken=d.createScalarToken,b.resolveAsScalar=d.resolveAsScalar,b.setScalarValue=d.setScalarValue,b.stringify=e.stringify,b.visit=f.visit,b.BOM="\uFEFF",b.DOCUMENT="\x02",b.FLOW_END="\x18",b.SCALAR="\x1f",b.isCollection=a=>!!a&&"items"in a,b.isScalar=a=>!!a&&("scalar"===a.type||"single-quoted-scalar"===a.type||"double-quoted-scalar"===a.type||"block-scalar"===a.type),b.prettyToken=function(a){switch(a){case"\uFEFF":return"<BOM>";case"\x02":return"<DOC>";case"\x18":return"<FLOW_END>";case"\x1f":return"<SCALAR>";default:return JSON.stringify(a)}},b.tokenType=function(a){switch(a){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(a[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}},2286:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(54117).isObject,a.exports=function(a){function c(a,d,e,f){var g;c.__super__.constructor.call(this,a),b(d)&&(d=(g=d).version,e=g.encoding,f=g.standalone),d||(d="1.0"),this.version=this.stringify.xmlVersion(d),null!=e&&(this.encoding=this.stringify.xmlEncoding(e)),null!=f&&(this.standalone=this.stringify.xmlStandalone(f))}return d(c,a),c.prototype.toString=function(a){return this.options.writer.set(a).declaration(this)},c}(c(8142))}).call(this)},2541:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}]},3289:(a,b,c)=>{"use strict";var d=c(73315),e=c(26701),f=c(81833),g=c(40542);b.composeScalar=function(a,b,c,h){let i,j,{value:k,type:l,comment:m,range:n}="block-scalar"===b.type?f.resolveBlockScalar(a,b,h):g.resolveFlowScalar(b,a.options.strict,h),o=c?a.directives.tagName(c.source,a=>h(c,"TAG_RESOLVE_FAILED",a)):null;i=a.options.stringKeys&&a.atKey?a.schema[d.SCALAR]:o?function(a,b,c,e,f){if("!"===c)return a[d.SCALAR];let g=[];for(let b of a.tags)if(!b.collection&&b.tag===c)if(!b.default||!b.test)return b;else g.push(b);for(let a of g)if(a.test?.test(b))return a;let h=a.knownTags[c];return h&&!h.collection?(a.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(f(e,"TAG_RESOLVE_FAILED",`Unresolved tag: ${c}`,"tag:yaml.org,2002:str"!==c),a[d.SCALAR])}(a.schema,k,o,c,h):"scalar"===b.type?function({atKey:a,directives:b,schema:c},e,f,g){let h=c.tags.find(b=>(!0===b.default||a&&"key"===b.default)&&b.test?.test(e))||c[d.SCALAR];if(c.compat){let a=c.compat.find(a=>a.default&&a.test?.test(e))??c[d.SCALAR];if(h.tag!==a.tag){let c=b.tagString(h.tag),d=b.tagString(a.tag);g(f,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${c} or ${d}`,!0)}}return h}(a,k,b,h):a.schema[d.SCALAR];try{let f=i.resolve(k,a=>h(c??b,"TAG_RESOLVE_FAILED",a),a.options);j=d.isScalar(f)?f:new e.Scalar(f)}catch(a){h(c??b,"TAG_RESOLVE_FAILED",a instanceof Error?a.message:String(a)),j=new e.Scalar(k)}return j.range=n,j.source=k,l&&(j.type=l),o&&(j.tag=o),i.format&&(j.format=i.format),m&&(j.comment=m),j}},3327:(a,b,c)=>{"use strict";var d=c(10140),e=c(3404),f=c(73315),g=c(26957),h=c(49443);class i extends g.NodeBase{constructor(a){super(f.ALIAS),this.source=a,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(a,b){let c,d;if(b?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let g of(b?.aliasResolveCache?c=b.aliasResolveCache:(c=[],e.visit(a,{Node:(a,b)=>{(f.isAlias(b)||f.hasAnchor(b))&&c.push(b)}}),b&&(b.aliasResolveCache=c)),c)){if(g===this)break;g.anchor===this.source&&(d=g)}return d}toJSON(a,b){if(!b)return{source:this.source};let{anchors:c,doc:d,maxAliasCount:e}=b,g=this.resolve(d,b);if(!g)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let i=c.get(g);if(i||(h.toJS(g,null,b),i=c.get(g)),i?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(e>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=function a(b,c,d){if(f.isAlias(c)){let a=c.resolve(b),e=d&&a&&d.get(a);return e?e.count*e.aliasCount:0}if(f.isCollection(c)){let e=0;for(let f of c.items){let c=a(b,f,d);c>e&&(e=c)}return e}return f.isPair(c)?Math.max(a(b,c.key,d),a(b,c.value,d)):1}(d,g,c)),i.count*i.aliasCount>e))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return i.res}toString(a,b,c){let e=`*${this.source}`;if(a){if(d.anchorIsValid(this.source),a.options.verifyAliasOrder&&!a.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(a.implicitKey)return`${e} `}return e}}b.Alias=i},3404:(a,b,c)=>{"use strict";var d=c(73315);let e=Symbol("break visit"),f=Symbol("skip children"),g=Symbol("remove node");function h(a,b){let c=l(b);d.isDocument(a)?i(null,a.contents,c,Object.freeze([a]))===g&&(a.contents=null):i(null,a,c,Object.freeze([]))}function i(a,b,c,f){let h=m(a,b,c,f);if(d.isNode(h)||d.isPair(h))return n(a,f,h),i(a,h,c,f);if("symbol"!=typeof h){if(d.isCollection(b)){f=Object.freeze(f.concat(b));for(let a=0;a<b.items.length;++a){let d=i(a,b.items[a],c,f);if("number"==typeof d)a=d-1;else{if(d===e)return e;d===g&&(b.items.splice(a,1),a-=1)}}}else if(d.isPair(b)){f=Object.freeze(f.concat(b));let a=i("key",b.key,c,f);if(a===e)return e;a===g&&(b.key=null);let d=i("value",b.value,c,f);if(d===e)return e;d===g&&(b.value=null)}}return h}async function j(a,b){let c=l(b);d.isDocument(a)?await k(null,a.contents,c,Object.freeze([a]))===g&&(a.contents=null):await k(null,a,c,Object.freeze([]))}async function k(a,b,c,f){let h=await m(a,b,c,f);if(d.isNode(h)||d.isPair(h))return n(a,f,h),k(a,h,c,f);if("symbol"!=typeof h){if(d.isCollection(b)){f=Object.freeze(f.concat(b));for(let a=0;a<b.items.length;++a){let d=await k(a,b.items[a],c,f);if("number"==typeof d)a=d-1;else{if(d===e)return e;d===g&&(b.items.splice(a,1),a-=1)}}}else if(d.isPair(b)){f=Object.freeze(f.concat(b));let a=await k("key",b.key,c,f);if(a===e)return e;a===g&&(b.key=null);let d=await k("value",b.value,c,f);if(d===e)return e;d===g&&(b.value=null)}}return h}function l(a){return"object"==typeof a&&(a.Collection||a.Node||a.Value)?Object.assign({Alias:a.Node,Map:a.Node,Scalar:a.Node,Seq:a.Node},a.Value&&{Map:a.Value,Scalar:a.Value,Seq:a.Value},a.Collection&&{Map:a.Collection,Seq:a.Collection},a):a}function m(a,b,c,e){return"function"==typeof c?c(a,b,e):d.isMap(b)?c.Map?.(a,b,e):d.isSeq(b)?c.Seq?.(a,b,e):d.isPair(b)?c.Pair?.(a,b,e):d.isScalar(b)?c.Scalar?.(a,b,e):d.isAlias(b)?c.Alias?.(a,b,e):void 0}function n(a,b,c){let e=b[b.length-1];if(d.isCollection(e))e.items[a]=c;else if(d.isPair(e))"key"===a?e.key=c:e.value=c;else if(d.isDocument(e))e.contents=c;else{let a=d.isAlias(e)?"alias":"scalar";throw Error(`Cannot replace node with ${a} parent`)}}h.BREAK=e,h.SKIP=f,h.REMOVE=g,j.BREAK=e,j.SKIP=f,j.REMOVE=g,b.visit=h,b.visitAsync=j},3863:(a,b)=>{"use strict";b.emptyScalarPosition=function(a,b,c){if(b){c??(c=b.length);for(let d=c-1;d>=0;--d){let c=b[d];switch(c.type){case"space":case"comment":case"newline":a-=c.source.length;continue}for(c=b[++d];c?.type==="space";)a+=c.source.length,c=b[++d];break}}return a}},3987:a=>{var b=function(){return void 0===this}();if(b)a.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:b,propertyIsWritable:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);return!!(!c||c.writable||c.set)}};else{var c={}.hasOwnProperty,d={}.toString,e={}.constructor.prototype,f=function(a){var b=[];for(var d in a)c.call(a,d)&&b.push(d);return b};a.exports={isArray:function(a){try{return"[object Array]"===d.call(a)}catch(a){return!1}},keys:f,names:f,defineProperty:function(a,b,c){return a[b]=c.value,a},getDescriptor:function(a,b){return{value:a[b]}},freeze:function(a){return a},getPrototypeOf:function(a){try{return Object(a).constructor.prototype}catch(a){return e}},isES5:b,propertyIsWritable:function(){return!0}}}},4204:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e,f,g){var h=a._getDomain,i=c(22418),j=i.tryCatch;function k(b,c,d,e){this.constructor$(b);var g=h();this._fn=null===g?c:i.domainBind(g,c),void 0!==d&&(d=a.resolve(d))._attachCancellationCallback(this),this._initialValue=d,this._currentCancellable=null,e===f?this._eachValues=Array(this._length):0===e?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function l(a,b){this.isFulfilled()?b._resolve(a):b._reject(a)}function m(a,b,c,e){return"function"!=typeof b?d("expecting a function but got "+i.classString(b)):new k(a,b,c,e).promise()}function n(b){this.accum=b,this.array._gotAccum(b);var c=e(this.value,this.array._promise);return c instanceof a?(this.array._currentCancellable=c,c._then(o,void 0,void 0,this,void 0)):o.call(this,c)}function o(b){var c,d=this.array,e=d._promise,f=j(d._fn);e._pushContext(),(c=void 0!==d._eachValues?f.call(e._boundValue(),b,this.index,this.length):f.call(e._boundValue(),this.accum,b,this.index,this.length))instanceof a&&(d._currentCancellable=c);var h=e._popContext();return g.checkForgottenReturns(c,h,void 0!==d._eachValues?"Promise.each":"Promise.reduce",e),c}i.inherits(k,b),k.prototype._gotAccum=function(a){void 0!==this._eachValues&&null!==this._eachValues&&a!==f&&this._eachValues.push(a)},k.prototype._eachComplete=function(a){return null!==this._eachValues&&this._eachValues.push(a),this._eachValues},k.prototype._init=function(){},k.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},k.prototype.shouldCopyValues=function(){return!1},k.prototype._resolve=function(a){this._promise._resolveCallback(a),this._values=null},k.prototype._resultCancelled=function(b){if(b===this._initialValue)return this._cancel();!this._isResolved()&&(this._resultCancelled$(),this._currentCancellable instanceof a&&this._currentCancellable.cancel(),this._initialValue instanceof a&&this._initialValue.cancel())},k.prototype._iterate=function(b){this._values=b;var c,d,e=b.length;if(void 0!==this._initialValue?(c=this._initialValue,d=0):(c=a.resolve(b[0]),d=1),this._currentCancellable=c,!c.isRejected())for(;d<e;++d){var f={accum:null,value:b[d],index:d,length:e,array:this};c=c._then(n,void 0,void 0,f,void 0)}void 0!==this._eachValues&&(c=c._then(this._eachComplete,void 0,void 0,this,void 0)),c._then(l,l,void 0,c,this)},a.prototype.reduce=function(a,b){return m(this,a,b,null)},a.reduce=function(a,b,c,d){return m(a,b,c,d)}}},4398:function(a,b,c){var d=c(77880),e=c(6560).Result;function f(a,b){function c(a){var b=a.attributes["w:type"];return"continuationSeparator"!==b&&"separator"!==b}function f(c){var e=c.attributes["w:id"];return b.readXmlElements(c.children).map(function(b){return d.Note({noteType:a,noteId:e,body:b})})}return function(b){return e.combine(b.getElementsByTagName("w:"+a).filter(c).map(f))}}b.createFootnotesReader=f.bind(this,"footnote"),b.createEndnotesReader=f.bind(this,"endnote")},4907:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(54117).isObject,a.exports=function(a){function c(a,d,e,f){if(c.__super__.constructor.call(this,a),null==e)throw Error("Missing DTD entity name. "+this.debugInfo(e));if(null==f)throw Error("Missing DTD entity value. "+this.debugInfo(e));if(this.pe=!!d,this.name=this.stringify.eleName(e),b(f)){if(!f.pubID&&!f.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(e));if(f.pubID&&!f.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(e));if(null!=f.pubID&&(this.pubID=this.stringify.dtdPubID(f.pubID)),null!=f.sysID&&(this.sysID=this.stringify.dtdSysID(f.sysID)),null!=f.nData&&(this.nData=this.stringify.dtdNData(f.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(e))}else this.value=this.stringify.dtdEntityValue(f)}return d(c,a),c.prototype.toString=function(a){return this.options.writer.set(a).dtdEntity(this)},c}(c(8142))}).call(this)},5040:a=>{"use strict";a.exports=function(a,b){var c=a.map;a.prototype.filter=function(a,d){return c(this,a,d,b)},a.filter=function(a,d,e){return c(a,d,e,b)}}},5410:(a,b)=>{"use strict";b.byteLength=function(a){var b=i(a),c=b[0],d=b[1];return(c+d)*3/4-d},b.toByteArray=function(a){var b,c,f=i(a),g=f[0],h=f[1],j=new e((g+h)*3/4-h),k=0,l=h>0?g-4:g;for(c=0;c<l;c+=4)b=d[a.charCodeAt(c)]<<18|d[a.charCodeAt(c+1)]<<12|d[a.charCodeAt(c+2)]<<6|d[a.charCodeAt(c+3)],j[k++]=b>>16&255,j[k++]=b>>8&255,j[k++]=255&b;return 2===h&&(b=d[a.charCodeAt(c)]<<2|d[a.charCodeAt(c+1)]>>4,j[k++]=255&b),1===h&&(b=d[a.charCodeAt(c)]<<10|d[a.charCodeAt(c+1)]<<4|d[a.charCodeAt(c+2)]>>2,j[k++]=b>>8&255,j[k++]=255&b),j},b.fromByteArray=function(a){for(var b,d=a.length,e=d%3,f=[],g=0,h=d-e;g<h;g+=16383)f.push(function(a,b,d){for(var e,f=[],g=b;g<d;g+=3)e=(a[g]<<16&0xff0000)+(a[g+1]<<8&65280)+(255&a[g+2]),f.push(c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]);return f.join("")}(a,g,g+16383>h?h:g+16383));return 1===e?f.push(c[(b=a[d-1])>>2]+c[b<<4&63]+"=="):2===e&&f.push(c[(b=(a[d-2]<<8)+a[d-1])>>10]+c[b>>4&63]+c[b<<2&63]+"="),f.join("")};for(var c=[],d=[],e="u">typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,h=f.length;g<h;++g)c[g]=f[g],d[f.charCodeAt(g)]=g;function i(a){var b=a.length;if(b%4>0)throw Error("Invalid string. Length must be a multiple of 4");var c=a.indexOf("=");-1===c&&(c=b);var d=c===b?0:4-c%4;return[c,d]}d[45]=62,d[95]=63},5928:a=>{"use strict";a.exports=function(a){function b(){return this.value}function c(){throw this.reason}a.prototype.return=a.prototype.thenReturn=function(c){return c instanceof a&&c.suppressUnhandledRejections(),this._then(b,void 0,void 0,{value:c},void 0)},a.prototype.throw=a.prototype.thenThrow=function(a){return this._then(c,void 0,void 0,{reason:a},void 0)},a.prototype.catchThrow=function(a){if(arguments.length<=1)return this._then(void 0,c,void 0,{reason:a},void 0);var b=arguments[1];return this.caught(a,function(){throw b})},a.prototype.catchReturn=function(c){if(arguments.length<=1)return c instanceof a&&c.suppressUnhandledRejections(),this._then(void 0,b,void 0,{value:c},void 0);var d=arguments[1];return d instanceof a&&d.suppressUnhandledRejections(),this.caught(c,function(){return d})}}},6163:(a,b,c)=>{"use strict";var d=c(71646);function e(){}var f={},g=["REJECTED"],h=["FULFILLED"],i=["PENDING"],j=["UNHANDLED"];function k(a){if("function"!=typeof a)throw TypeError("resolver must be a function");this.state=i,this.queue=[],this.outcome=void 0,this.handled=j,a!==e&&o(this,a)}function l(a,b,c){this.promise=a,"function"==typeof b&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),"function"==typeof c&&(this.onRejected=c,this.callRejected=this.otherCallRejected)}function m(a,b,c){d(function(){var d;try{d=b(c)}catch(b){return f.reject(a,b)}d===a?f.reject(a,TypeError("Cannot resolve promise with itself")):f.resolve(a,d)})}function n(a){var b=a&&a.then;if(a&&("object"==typeof a||"function"==typeof a)&&"function"==typeof b)return function(){b.apply(a,arguments)}}function o(a,b){var c=!1;function d(b){c||(c=!0,f.reject(a,b))}function e(b){c||(c=!0,f.resolve(a,b))}var g=p(function(){b(e,d)});"error"===g.status&&d(g.value)}function p(a,b){var c={};try{c.value=a(b),c.status="success"}catch(a){c.status="error",c.value=a}return c}a.exports=k,k.prototype.finally=function(a){if("function"!=typeof a)return this;var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){throw c})})},k.prototype.catch=function(a){return this.then(null,a)},k.prototype.then=function(a,b){if("function"!=typeof a&&this.state===h||"function"!=typeof b&&this.state===g)return this;var c=new this.constructor(e);return this.handled===j&&(this.handled=null),this.state!==i?m(c,this.state===h?a:b,this.outcome):this.queue.push(new l(c,a,b)),c},l.prototype.callFulfilled=function(a){f.resolve(this.promise,a)},l.prototype.otherCallFulfilled=function(a){m(this.promise,this.onFulfilled,a)},l.prototype.callRejected=function(a){f.reject(this.promise,a)},l.prototype.otherCallRejected=function(a){m(this.promise,this.onRejected,a)},f.resolve=function(a,b){var c=p(n,b);if("error"===c.status)return f.reject(a,c.value);var d=c.value;if(d)o(a,d);else{a.state=h,a.outcome=b;for(var e=-1,g=a.queue.length;++e<g;)a.queue[e].callFulfilled(b)}return a},f.reject=function(a,b){a.state=g,a.outcome=b,a.handled===j&&d(function(){a.handled===j&&process.emit("unhandledRejection",b,a)});for(var c=-1,e=a.queue.length;++c<e;)a.queue[c].callRejected(b);return a},k.resolve=function(a){return a instanceof this?a:f.resolve(new this(e),a)},k.reject=function(a){var b=new this(e);return f.reject(b,a)},k.all=function(a){var b=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(TypeError("must be an array"));var c=a.length,d=!1;if(!c)return this.resolve([]);for(var g=Array(c),h=0,i=-1,j=new this(e);++i<c;)!function(a,e){b.resolve(a).then(function(a){g[e]=a,++h!==c||d||(d=!0,f.resolve(j,g))},function(a){d||(d=!0,f.reject(j,a))})}(a[i],i);return j},k.race=function(a){var b,c=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(TypeError("must be an array"));var d=a.length,g=!1;if(!d)return this.resolve([]);for(var h=-1,i=new this(e);++h<d;){b=a[h],c.resolve(b).then(function(a){g||(g=!0,f.resolve(i,a))},function(a){g||(g=!0,f.reject(i,a))})}return i}},6273:(a,b,c)=>{"use strict";var d=c(73315);b.mapIncludes=function(a,b,c){let{uniqueKeys:e}=a.options;if(!1===e)return!1;let f="function"==typeof e?e:(a,b)=>a===b||d.isScalar(a)&&d.isScalar(b)&&a.value===b.value;return b.some(a=>f(a.key,c))}},6560:(a,b,c)=>{var d=c(84906);function e(a,b){this.value=a,this.messages=b||[]}function f(a){var b=[];return d.flatten(d.pluck(a,"messages"),!0).forEach(function(a){var c,e;c=b,e=a,void 0===d.find(c,g.bind(null,e))&&b.push(a)}),b}function g(a,b){return a.type===b.type&&a.message===b.message}b.Result=e,b.success=function(a){return new e(a,[])},b.warning=function(a){return{type:"warning",message:a}},b.error=function(a){return{type:"error",message:a.message,error:a}},e.prototype.map=function(a){return new e(a(this.value),this.messages)},e.prototype.flatMap=function(a){var b=a(this.value);return new e(b.value,f([this,b]))},e.prototype.flatMapThen=function(a){var b=this;return a(this.value).then(function(a){return new e(a.value,f([b,a]))})},e.combine=function(a){return new e(d.flatten(d.pluck(a,"value")),f(a))}},7226:(a,b,c)=>{"use strict";let d;c.d(b,{attachRelayGateway:()=>lh});var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I={};c.r(I),c.d(I,{boolean:()=>cY,booleanish:()=>cZ,commaOrSpaceSeparated:()=>c2,commaSeparated:()=>c1,number:()=>c_,overloadedBoolean:()=>c$,spaceSeparated:()=>c0});var J=c(37067),K=c(44708),L=c(77598);function M(a){return(0,L.createHash)("sha256").update(a,"utf8").digest()}function N(a=process.env.OMPGUI_PASSWORD??process.env.OMP_WEB_PASSWORD){return"string"==typeof a&&a.length>0}var O=c(73024),P=c(76760),Q=c.n(P),R=c(92226),S=c(28672),T=c(18437);let U=new Set(["prompt","abort","get_state","set_model","set_thinking_level","compact","get_subagents","get_available_commands"]),V=/^d_[A-Za-z0-9_-]{16,64}$/,W=/^[A-Za-z0-9_-]{32,128}$/,X=/^[A-Za-z0-9._-]{1,128}$/;function Y(a){let b=[];if(Array.isArray(a))for(let c of a){let a=function(a){if(!(0,S.u4)(a))return null;let b=(0,S.oJ)(a.provider)?.trim(),c=(0,S.oJ)(a.id)?.trim();if(!b||!c||b.length>512||c.length>512)return null;let d=(0,S.oJ)(a.name)?.trim()||c;return{provider:b,id:c,name:d.length>128?d.slice(0,128):d}}(c);a&&b.push(a)}return{op:"models",models:b}}function Z(a){return(0,L.createHash)("sha256").update(a,"utf8").digest("hex")}function $(a,b){let c=Buffer.from(a,"hex"),d=Buffer.from(b,"hex");return 32===c.length&&32===d.length&&(0,L.timingSafeEqual)(c,d)}function _(a,b=16){return`${a}${(0,L.randomBytes)(b).toString("base64url")}`}function aa(a){return(a??"").replace(/[\u0000-\u001f\u007f]/g,"").trim().slice(0,64)}function ab(){return(0,P.resolve)((0,R.$M)(),"ompgui-relay.json")}function ac(){return{version:1,serverId:_("s_"),devices:[],pairing:null}}function ad(a){let b=ab(),c=`${b}.lock`;(0,O.mkdirSync)((0,P.dirname)(c),{recursive:!0});let d=Date.now()+3e3;for(;;){let b=null;try{b=(0,O.openSync)(c,"wx")}catch(a){if("EEXIST"!==a.code)throw a;try{if(Date.now()-(0,O.statSync)(c).mtimeMs>1e4){(0,O.unlinkSync)(c);continue}}catch{continue}if(Date.now()>=d)throw Error("Timed out waiting for the ompgui relay device registry lock");!function(){let a=new SharedArrayBuffer(4);Atomics.wait(new Int32Array(a),0,0,25)}();continue}try{(0,O.writeSync)(b,String(process.pid))}finally{(0,O.closeSync)(b)}try{return a()}finally{try{(0,O.unlinkSync)(c)}catch{}}}}function ae(){let a=ab();if(!(0,O.existsSync)(a)){let a=ac();return af(a),a}try{return function(a){try{let b=JSON.parse(a);if(!(0,S.u4)(b)||1!==b.version)return ac();let c="string"==typeof b.serverId&&/^[A-Za-z0-9_-]{16,64}$/.test(b.serverId)?b.serverId:_("s_"),d=[];if(Array.isArray(b.devices))for(let a of b.devices)(0,S.u4)(a)&&"string"==typeof a.id&&a.id.startsWith("d_")&&"string"==typeof a.tokenHash&&64===a.tokenHash.length&&d.push({id:a.id,label:aa("string"==typeof a.label?a.label:""),tokenHash:a.tokenHash,createdAt:"string"==typeof a.createdAt?a.createdAt:new Date(0).toISOString(),lastSeenAt:"string"==typeof a.lastSeenAt?a.lastSeenAt:new Date(0).toISOString()});let e=null;if((0,S.u4)(b.pairing)){let a="string"==typeof b.pairing.secretHash?b.pairing.secretHash:"",c="number"==typeof b.pairing.expiresAt?b.pairing.expiresAt:0,d="string"==typeof b.pairing.relayUrl?b.pairing.relayUrl:"",f="string"==typeof b.pairing.createdAt?b.pairing.createdAt:new Date(0).toISOString();64===a.length&&c>0&&d&&(e={secretHash:a,expiresAt:c,relayUrl:d,createdAt:f})}let f="string"==typeof b.relayUrl?b.relayUrl:void 0;return{version:1,serverId:c,...f?{relayUrl:f}:{},devices:d,pairing:e}}catch{return ac()}}((0,O.readFileSync)(a,"utf8"))}catch{return ac()}}function af(a){let b=ab();(0,O.mkdirSync)((0,P.dirname)(b),{recursive:!0});let c=`${b}.tmp-${process.pid}-${Date.now()}`;try{(0,O.writeFileSync)(c,`${JSON.stringify(a,null,2)}
2
2
  `,"utf8"),(0,O.renameSync)(c,b)}catch(a){try{(0,O.existsSync)(c)&&(0,O.unlinkSync)(c)}catch{}throw a}}function ag(){return ad(()=>ae()).devices.map(({id:a,label:b,createdAt:c,lastSeenAt:d})=>({id:a,label:b,createdAt:c,lastSeenAt:d}))}class ah extends Error{constructor(a){super("relay_frame_too_large"===a?"Relay frame exceeds the size limit":"Invalid relay chunk transfer"),this.code=a,this.name="RelayChunkError"}}class ai{constructor(a=Date.now){this.now=a,this.transfers=new Map,this.bytes=0}clear(){this.transfers.clear(),this.bytes=0}accept(a){let b,c,d=this.now();for(let[a,b]of this.transfers)d>=b.expiresAt&&(this.bytes-=b.bytes,this.transfers.delete(a));if("object"!=typeof a||null===a||Array.isArray(a)||5!==Object.keys(a).length||!("op"in a)||"chunk"!==a.op||!("transfer"in a)||"string"!=typeof a.transfer||!/^[A-Za-z0-9_-]{1,64}$/.test(a.transfer)||!("index"in a)||"number"!=typeof a.index||!Number.isSafeInteger(a.index)||!("count"in a)||"number"!=typeof a.count||!Number.isSafeInteger(a.count)||a.count<1||a.count>342||a.index<0||a.index>=a.count||!("data"in a)||"string"!=typeof a.data||0===a.data.length||a.data.length>65536||!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a.data))throw new ah("relay_chunk_invalid");let e=Buffer.from(a.data,"base64");if(e.length>49152||e.toString("base64")!==a.data)throw new ah("relay_chunk_invalid");let f=this.transfers.get(a.transfer);if(void 0===f){if(0!==a.index||this.transfers.size>=4)throw new ah("relay_chunk_invalid");f={count:a.count,expiresAt:d+3e4,bytes:0,parts:[]}}if(a.count!==f.count||a.index!==f.parts.length||f.bytes+e.length>0x1000000||this.bytes+e.length>0x1000000)throw new ah("relay_chunk_invalid");if(f.parts.push(e),f.bytes+=e.length,this.bytes+=e.length,this.transfers.set(a.transfer,f),f.parts.length!==f.count)return null;this.transfers.delete(a.transfer),this.bytes-=f.bytes;try{b=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(Buffer.concat(f.parts,f.bytes)),c=JSON.parse(b)}catch{throw new ah("relay_chunk_invalid")}if("object"==typeof c&&null!==c&&"op"in c&&"chunk"===c.op)throw new ah("relay_chunk_invalid");return b}}var aj=c(54639),ak=c(83739),al=c(82043);async function am(){let a=Date.now(),b=globalThis.__piAllowedRootsCache;if(b&&b.expiresAt>a)return b.roots;let c=await (0,al.dQ)(),d=new Set;for(let a of c)a.cwd&&d.add((0,aj.Nw)(a.cwd)),a.projectRoot&&d.add((0,aj.Nw)(a.projectRoot));for(let a of(0,aj.HM)())d.add(a);return globalThis.__piAllowedRootsCache={roots:d,expiresAt:a+5e3},d}function an(a,b){return(0,ak.xk)(a,b)}c(15011);var ao=c(29021),ap=c.n(ao),aq=c(33873),ar=c.n(aq);let as=new Set(["error","overwrite","skip"]);function at(a,b){let c=[],d=[];for(let e of b){let b,f=ar().join(a,e);try{b=ap().lstatSync(f)}catch(a){if("ENOENT"===a.code)continue;throw a}c.push(e),(!b.isFile()||b.isSymbolicLink())&&d.push(e)}return{conflicts:c,nonReplaceable:d}}var au=c(31421),av=c(48161),aw=c(57975),ax=c(80803),ay=c(51671),az=c(44500);function aA(a,b){if("object"!=typeof a||null===a||!("role"in a)||"string"!=typeof a.role)return null;let c={...a};if(!["user","assistant","toolResult","custom","bashExecution"].includes(a.role)||"custom"===a.role&&"xdev-mount-notice"===c.customType)return null;let d=[],e=0;if("string"==typeof c.content)d.push({type:"text",text:c.content});else if(Array.isArray(c.content)){for(let a of c.content)if("object"==typeof a&&null!==a&&"type"in a)if("image"===a.type)e++,d.push({type:"image",deferred:!0,..."mimeType"in a&&"string"==typeof a.mimeType?{mimeType:a.mimeType}:{}});else if("toolCall"===a.type){let b={...a};d.push({type:"toolCall",toolCallId:b.toolCallId??b.id??"",toolName:b.toolName??b.name??"",input:b.input??b.arguments??{}})}else("text"===a.type||"thinking"===a.type)&&d.push({...a})}"string"==typeof c.output&&d.push({type:"text",text:c.output});let f=b??`live:${(0,L.createHash)("sha256").update(JSON.stringify(a)).digest("hex")}`,g={role:a.role,entryId:f,content:d,text:d.filter(a=>"text"===a.type&&"string"==typeof a.text).map(a=>a.text).join("\n")};if("number"==typeof c.timestamp&&(g.timestamp=c.timestamp),"string"==typeof c.toolCallId&&(g.toolCallId=c.toolCallId),"string"==typeof c.toolName&&(g.toolName=c.toolName),"boolean"==typeof c.isError&&(g.isError=c.isError),"object"==typeof c.details&&null!==c.details&&"images"in c.details){let{images:a,...b}=c.details;Array.isArray(a)&&(e+=a.length),g.details=b}else void 0!==c.details&&(g.details=c.details);"bashExecution"===a.role&&(g.toolName="bash",g.isError="number"==typeof c.exitCode&&0!==c.exitCode,g.details={command:c.command,exitCode:c.exitCode,cancelled:c.cancelled,truncated:c.truncated}),"string"==typeof c.errorMessage&&(g.errorMessage=c.errorMessage),"string"==typeof c.stopReason&&(g.stopReason=c.stopReason);let h=c.deferredImages;return"object"==typeof h&&null!==h&&"count"in h&&"number"==typeof h.count&&(e+=h.count),e&&(g.deferredImages={entryId:f,count:e}),g}function aB(a,b=[],c,d=100){let e=a.length,f=c??Math.max(0,e-Math.min(d,100)),g=[],h=0,i=0;for(let c=f;c<e&&h<d;c++){let d=aA(a[c],b[c]);if(d){let a=Buffer.byteLength(JSON.stringify(d));if(a>65536){let b=d.text.slice(0,16e3),c=d.content?.filter(a=>"toolCall"===a.type).slice(0,100).map(a=>({type:"toolCall",toolCallId:String(a.toolCallId).slice(0,200),toolName:String(a.toolName).slice(0,200),input:{}}))??[];d={...d,text:b,content:[{type:"text",text:b},...c],toolCallId:d.toolCallId?.slice(0,200),toolName:d.toolName?.slice(0,200),errorMessage:d.errorMessage?.slice(0,1e3),stopReason:d.stopReason?.slice(0,100),details:void 0,truncated:!0},a=Buffer.byteLength(JSON.stringify(d))}if(i+a>4194304&&h>0)break;i+=a,g.push(d)}h++}return{messages:g,total:e,offset:f,nextOffset:f+h,hasMore:f+h<e}}var aC=c(21820);function aD(){let a=(globalThis.__piModelsCacheState||(globalThis.__piModelsCacheState={entries:new Map,inFlight:new Map,generation:0}),globalThis.__piModelsCacheState);a.generation+=1,a.entries.clear(),a.inFlight.clear()}var aE=c(55511);function aF(a,b){let c=`${a}.tmp-${(0,aE.randomUUID)()}`,d=(0,ao.openSync)(c,"wx",384);try{try{(0,ao.writeFileSync)(d,b,"utf8")}finally{(0,ao.closeSync)(d)}(0,ao.renameSync)(c,a)}finally{try{(0,ao.unlinkSync)(c)}catch(a){if(!(a instanceof Error&&"code"in a&&"ENOENT"===a.code))throw a}}}var aG=c(71217);let aH=new Set(["auto","minimal","low","medium","high","xhigh","max"]),aI=new Set(["low","medium","high"]),aJ=new Set(["default","friendly","pragmatic","none"]),aK=new Set(["off","1","3","5"]),aL=new Set(["always-ask","write","yolo"]),aM=new Set(["allow","prompt","deny"]),aN=new Set(["cooldown-expiry","never"]),aO=new Set(["snapcompact","handoff","context-full","shake","off"]),aP=new Set(["off","local","mnemopi","hindsight"]),aQ=new Set(["global","per-project","per-project-tagged"]),aR=new Set(["default","preferred","always"]);function aS(a){return Array.isArray(a)&&a.every(a=>"string"==typeof a)?a:void 0}function aT(a){if(!(0,S.u4)(a))return;let b={};for(let[c,d]of Object.entries(a))("string"==typeof d||aS(d))&&(b[c]=d);return b}function aU(a){if(!(0,S.u4)(a))return;let b={};for(let[c,d]of Object.entries(a))("boolean"==typeof d||"string"==typeof d)&&(b[c]=d);return b}function aV(a,b){if(void 0!==a&&!(0,S.u4)(a))throw Error(`${b} must be an object`)}function aW(a,b){return Object.prototype.hasOwnProperty.call(a,b)&&void 0!==a[b]}function aX(a){if(!(0,S.u4)(a))throw Error("Settings must be an object");let b={};for(let c of["defaultThinkingLevel","hideThinkingBlock","externalThinking","textVerbosity","personality","enabledModels","disabledProviders","modelProviderOrder"])aW(a,c)&&(b[c]=a[c]);for(let[c,d,e]of[["advisor",["enabled","subagents","syncBacklog","immuneTurns"],void 0],["tools",["approvalMode","approval"],{approval:["bash","extension"]}],["retry",["enabled","maxRetries","modelFallback","fallbackRevertPolicy","fallbackChains"],void 0],["compaction",["enabled","midTurnEnabled","strategy","autoContinue","remoteEnabled","keepRecentTokens"],void 0],["memory",["backend"],void 0],["autolearn",["enabled","autoContinue","minToolCalls"],void 0],["mnemopi",["scoping","autoRecall","autoRetain","noEmbeddings"],void 0],["mcp",["enableProjectConfig","renderMarkdownResults","notifications","notificationDebounceMs"],void 0],["task",["eager","prewalk","agentModelOverrides","agentPrewalk","agentAdvisor","disabledAgents"],void 0],["browser",["enabled","relay","headless"],void 0],["computer",["enabled","display"],void 0],["web_search",["enabled"],void 0],["github",["enabled"],void 0],["security",["enabled"],void 0],["checkpoint",["enabled"],void 0]]){let f=function(a,b,c,d={}){if(!aW(a,b))return;let e=a[b];if(!(0,S.u4)(e))return e;let f={};for(let a of c){if(!aW(e,a))continue;let b=d[a];if(!b||!(0,S.u4)(e[a])){f[a]=e[a];continue}let c=function(a,b){if(!(0,S.u4)(a))return a;let c={};for(let d of b)aW(a,d)&&(c[d]=a[d]);return c}(e[a],b);(0===Object.keys(e[a]).length||Object.keys(c).length>0)&&(f[a]=c)}return f}(a,c,d,e);if(void 0===f)continue;let g=a[c];(!(0,S.u4)(g)||0===Object.keys(g).length||Object.keys(f).length>0)&&(b[c]=f)}return b}let aY={advisor:!0,tools:!0,retry:!0,compaction:!0,memory:!0,autolearn:!0,mnemopi:!0,mcp:!0,task:!0,browser:!0,computer:!0,web_search:!0,github:!0,security:!0,checkpoint:!0};function aZ(a,b){let c=(0,S.u4)(a)?a:{},d=aX(b),e={...c};for(let[a,b]of Object.entries(d))if(void 0!==b)if(aY[a]&&(0,S.u4)(b)){let c=(0,S.u4)(e[a])?e[a]:{},d={...c,...b};if("tools"===a&&(0,S.u4)(b.approval)){let a=(0,S.u4)(c.approval)?c.approval:{};d.approval=0===Object.keys(b.approval).length?{}:{...a,...b.approval}}e[a]=d}else e[a]=b;return delete e.registryHasScopedEntries,e}function a$(){let a=(0,R.pA)(),b=(0,aG.Tp)((0,ao.existsSync)(a)?(0,ao.readFileSync)(a,"utf8"):"");if(b.errors.length>0)throw Error(`${a} is not valid YAML: ${b.errors[0].message}`);return{path:a,doc:b}}function a_(){let{path:a,doc:b}=a$(),c=b.toJS();if(!(0,S.u4)(c))return{path:a,settings:{}};let d=(0,S.u4)(c.advisor)?c.advisor:{},e=(0,S.u4)(c.tools)?c.tools:{},f=(0,S.u4)(e.approval)?e.approval:{},g=(0,S.u4)(c.retry)?c.retry:{},h=(0,S.u4)(g.fallbackChains)?Object.fromEntries(Object.entries(g.fallbackChains).filter(a=>"string"==typeof a[0]&&void 0!==aS(a[1]))):{},i=(0,S.u4)(c.compaction)?c.compaction:{},j=(0,S.u4)(c.memory)?c.memory:{},k=(0,S.u4)(c.autolearn)?c.autolearn:{},l=(0,S.u4)(c.mnemopi)?c.mnemopi:{},m=(0,S.u4)(c.mcp)?c.mcp:{},n=(0,S.u4)(c.task)?c.task:{},o=(0,S.u4)(c.browser)?c.browser:{},p=(0,S.u4)(c.computer)?c.computer:{},q=(0,S.u4)(c.web_search)?c.web_search:{},r=(0,S.u4)(c.github)?c.github:{},s=(0,S.u4)(c.security)?c.security:{},t=(0,S.u4)(c.checkpoint)?c.checkpoint:{},u=[c.enabledModels,c.disabledProviders,c.modelProviderOrder].some(a=>Array.isArray(a)&&!a.every(a=>"string"==typeof a));return{path:a,settings:{...aH.has(c.defaultThinkingLevel)?{defaultThinkingLevel:c.defaultThinkingLevel}:{},..."boolean"==typeof c.hideThinkingBlock?{hideThinkingBlock:c.hideThinkingBlock}:{},..."boolean"==typeof c.externalThinking?{externalThinking:c.externalThinking}:{},...aI.has(c.textVerbosity)?{textVerbosity:c.textVerbosity}:{},...aJ.has(c.personality)?{personality:c.personality}:{},...Object.keys(d).length?{advisor:{..."boolean"==typeof d.enabled?{enabled:d.enabled}:{},..."boolean"==typeof d.subagents?{subagents:d.subagents}:{},...aK.has(d.syncBacklog)?{syncBacklog:d.syncBacklog}:{},..."number"==typeof d.immuneTurns&&Number.isInteger(d.immuneTurns)?{immuneTurns:d.immuneTurns}:{}}}:{},...Object.keys(e).length?{tools:{...aL.has(e.approvalMode)?{approvalMode:e.approvalMode}:{},...aM.has(f.bash)||"allow"===f.extension||"prompt"===f.extension?{approval:{...aM.has(f.bash)?{bash:f.bash}:{},..."allow"===f.extension||"prompt"===f.extension?{extension:f.extension}:{}}}:{}}}:{},...aS(c.enabledModels)?{enabledModels:aS(c.enabledModels)}:{},...aS(c.disabledProviders)?{disabledProviders:aS(c.disabledProviders)}:{},...aS(c.modelProviderOrder)?{modelProviderOrder:aS(c.modelProviderOrder)}:{},...u?{registryHasScopedEntries:!0}:{},...Object.keys(g).length?{retry:{..."boolean"==typeof g.enabled?{enabled:g.enabled}:{},..."number"==typeof g.maxRetries&&Number.isInteger(g.maxRetries)?{maxRetries:g.maxRetries}:{},..."boolean"==typeof g.modelFallback?{modelFallback:g.modelFallback}:{},...aN.has(g.fallbackRevertPolicy)?{fallbackRevertPolicy:g.fallbackRevertPolicy}:{},...Object.keys(h).length?{fallbackChains:h}:{}}}:{},...Object.keys(i).length?{compaction:{..."boolean"==typeof i.enabled?{enabled:i.enabled}:{},..."boolean"==typeof i.midTurnEnabled?{midTurnEnabled:i.midTurnEnabled}:{},...aO.has(i.strategy)?{strategy:i.strategy}:{},..."boolean"==typeof i.autoContinue?{autoContinue:i.autoContinue}:{},..."boolean"==typeof i.remoteEnabled?{remoteEnabled:i.remoteEnabled}:{},..."number"==typeof i.keepRecentTokens&&Number.isInteger(i.keepRecentTokens)?{keepRecentTokens:i.keepRecentTokens}:{}}}:{},...Object.keys(j).length?{memory:{...aP.has(j.backend)?{backend:j.backend}:{}}}:{},...Object.keys(k).length?{autolearn:{..."boolean"==typeof k.enabled?{enabled:k.enabled}:{},..."boolean"==typeof k.autoContinue?{autoContinue:k.autoContinue}:{},..."number"==typeof k.minToolCalls&&Number.isInteger(k.minToolCalls)?{minToolCalls:k.minToolCalls}:{}}}:{},...Object.keys(l).length?{mnemopi:{...aQ.has(l.scoping)?{scoping:l.scoping}:{},..."boolean"==typeof l.autoRecall?{autoRecall:l.autoRecall}:{},..."boolean"==typeof l.autoRetain?{autoRetain:l.autoRetain}:{},..."boolean"==typeof l.noEmbeddings?{noEmbeddings:l.noEmbeddings}:{}}}:{},...Object.keys(m).length?{mcp:{..."boolean"==typeof m.enableProjectConfig?{enableProjectConfig:m.enableProjectConfig}:{},..."boolean"==typeof m.renderMarkdownResults?{renderMarkdownResults:m.renderMarkdownResults}:{},..."boolean"==typeof m.notifications?{notifications:m.notifications}:{},..."number"==typeof m.notificationDebounceMs&&Number.isInteger(m.notificationDebounceMs)?{notificationDebounceMs:m.notificationDebounceMs}:{}}}:{},...Object.keys(n).length?{task:{...aR.has(n.eager)?{eager:n.eager}:{},..."boolean"==typeof n.prewalk?{prewalk:n.prewalk}:{},...aT(n.agentModelOverrides)?{agentModelOverrides:aT(n.agentModelOverrides)}:{},...aU(n.agentPrewalk)?{agentPrewalk:aU(n.agentPrewalk)}:{},...aU(n.agentAdvisor)?{agentAdvisor:aU(n.agentAdvisor)}:{},...aS(n.disabledAgents)?{disabledAgents:aS(n.disabledAgents)}:{}}}:{},...Object.keys(o).length?{browser:{..."boolean"==typeof o.enabled?{enabled:o.enabled}:{},..."boolean"==typeof o.relay?{relay:o.relay}:{},..."boolean"==typeof o.headless?{headless:o.headless}:{}}}:{},...Object.keys(p).length?{computer:{..."boolean"==typeof p.enabled?{enabled:p.enabled}:{},..."string"==typeof p.display?{display:p.display}:{}}}:{},...Object.keys(q).length?{web_search:{..."boolean"==typeof q.enabled?{enabled:q.enabled}:{}}}:{},...Object.keys(r).length?{github:{..."boolean"==typeof r.enabled?{enabled:r.enabled}:{}}}:{},...Object.keys(s).length?{security:{..."boolean"==typeof s.enabled?{enabled:s.enabled}:{}}}:{},...Object.keys(t).length?{checkpoint:{..."boolean"==typeof t.enabled?{enabled:t.enabled}:{}}}:{}}}}function a0(a){if(!(0,S.u4)(a))throw Error("Settings must be an object");for(let[b,c]of(aV(a.advisor,"advisor"),aV(a.tools,"tools"),aV(a.tools?.approval,"tools.approval"),aV(a.retry,"retry"),aV(a.retry?.fallbackChains,"retry.fallbackChains"),aV(a.compaction,"compaction"),aV(a.memory,"memory"),aV(a.autolearn,"autolearn"),aV(a.mnemopi,"mnemopi"),aV(a.mcp,"mcp"),aV(a.task,"task"),aV(a.task?.agentModelOverrides,"task.agentModelOverrides"),aV(a.task?.agentPrewalk,"task.agentPrewalk"),aV(a.task?.agentAdvisor,"task.agentAdvisor"),aV(a.browser,"browser"),aV(a.computer,"computer"),aV(a.web_search,"web_search"),aV(a.github,"github"),aV(a.security,"security"),aV(a.checkpoint,"checkpoint"),Object.entries({hideThinkingBlock:a.hideThinkingBlock,externalThinking:a.externalThinking,"advisor.enabled":a.advisor?.enabled,"advisor.subagents":a.advisor?.subagents,"retry.enabled":a.retry?.enabled,"retry.modelFallback":a.retry?.modelFallback,"compaction.enabled":a.compaction?.enabled,"compaction.midTurnEnabled":a.compaction?.midTurnEnabled,"compaction.autoContinue":a.compaction?.autoContinue,"compaction.remoteEnabled":a.compaction?.remoteEnabled,"autolearn.enabled":a.autolearn?.enabled,"autolearn.autoContinue":a.autolearn?.autoContinue,"mnemopi.autoRecall":a.mnemopi?.autoRecall,"mnemopi.autoRetain":a.mnemopi?.autoRetain,"mnemopi.noEmbeddings":a.mnemopi?.noEmbeddings,"mcp.enableProjectConfig":a.mcp?.enableProjectConfig,"mcp.renderMarkdownResults":a.mcp?.renderMarkdownResults,"mcp.notifications":a.mcp?.notifications,"task.prewalk":a.task?.prewalk,"browser.enabled":a.browser?.enabled,"browser.relay":a.browser?.relay,"browser.headless":a.browser?.headless,"computer.enabled":a.computer?.enabled,"web_search.enabled":a.web_search?.enabled,"github.enabled":a.github?.enabled,"security.enabled":a.security?.enabled,"checkpoint.enabled":a.checkpoint?.enabled})))if(void 0!==c&&"boolean"!=typeof c)throw Error(`${b} must be a boolean`);var b=a.computer?.display;if(void 0!==b&&"string"!=typeof b)throw Error("computer.display must be a string");for(let[b,c]of Object.entries(a.task?.agentModelOverrides??{}))if("string"==typeof c){if(!c.trim())throw Error(`task.agentModelOverrides.${b} must be a non-empty string`)}else if(aS(c)){if(c.some(a=>!a.trim()))throw Error(`task.agentModelOverrides.${b} must contain non-empty strings`)}else throw Error(`task.agentModelOverrides.${b} must be a string or string array`);for(let[b,c]of[["agentPrewalk",a.task?.agentPrewalk],["agentAdvisor",a.task?.agentAdvisor]])for(let[a,d]of Object.entries(c??{}))if("boolean"!=typeof d&&"string"!=typeof d)throw Error(`task.${b}.${a} must be a boolean or string`);if(a.task?.disabledAgents!==void 0&&(!aS(a.task.disabledAgents)||a.task.disabledAgents.some(a=>!a.trim())))throw Error("task.disabledAgents must contain non-empty strings");if(a.task?.eager!==void 0&&!aR.has(a.task.eager))throw Error("Invalid task eager preference");if(void 0!==a.defaultThinkingLevel&&!aH.has(a.defaultThinkingLevel))throw Error("Invalid default thinking level");if(void 0!==a.textVerbosity&&!aI.has(a.textVerbosity))throw Error("Invalid text verbosity");if(void 0!==a.personality&&!aJ.has(a.personality))throw Error("Invalid personality");if(a.advisor?.syncBacklog!==void 0&&!aK.has(a.advisor.syncBacklog))throw Error("Invalid advisor sync backlog");if(a.advisor?.immuneTurns!==void 0&&(!Number.isInteger(a.advisor.immuneTurns)||a.advisor.immuneTurns<0||a.advisor.immuneTurns>20))throw Error("Advisor immune turns must be an integer between 0 and 20");if(a.tools?.approvalMode!==void 0&&!aL.has(a.tools.approvalMode))throw Error("Invalid approval mode");if(a.tools?.approval?.bash!==void 0&&!aM.has(a.tools.approval.bash))throw Error("Invalid Bash approval policy");if(a.tools?.approval?.extension!==void 0&&"allow"!==a.tools.approval.extension&&"prompt"!==a.tools.approval.extension)throw Error("Invalid extension tool approval policy");if(a.retry?.maxRetries!==void 0&&(!Number.isInteger(a.retry.maxRetries)||a.retry.maxRetries<0||a.retry.maxRetries>20))throw Error("Retry attempts must be an integer between 0 and 20");if(a.retry?.fallbackRevertPolicy!==void 0&&!aN.has(a.retry.fallbackRevertPolicy))throw Error("Invalid fallback revert policy");if(a.retry?.fallbackChains!==void 0){for(let[b,c]of Object.entries(a.retry.fallbackChains))if(!b.trim()||!Array.isArray(c)||c.some(a=>"string"!=typeof a||!a.trim()))throw Error("Fallback chains require non-empty role and model selectors")}if(a.compaction?.strategy!==void 0&&!aO.has(a.compaction.strategy))throw Error("Invalid compaction strategy");if(a.compaction?.keepRecentTokens!==void 0&&(!Number.isInteger(a.compaction.keepRecentTokens)||a.compaction.keepRecentTokens<1e3||a.compaction.keepRecentTokens>1e6))throw Error("Compaction retained tokens must be an integer between 1,000 and 1,000,000");if(a.memory?.backend!==void 0&&!aP.has(a.memory.backend))throw Error("Invalid memory backend");if(a.autolearn?.minToolCalls!==void 0&&(!Number.isInteger(a.autolearn.minToolCalls)||a.autolearn.minToolCalls<0||a.autolearn.minToolCalls>100))throw Error("Auto-learn minimum tool calls must be an integer between 0 and 100");if(a.mnemopi?.scoping!==void 0&&!aQ.has(a.mnemopi.scoping))throw Error("Invalid Mnemopi memory scope");if(a.mcp?.notificationDebounceMs!==void 0&&(!Number.isInteger(a.mcp.notificationDebounceMs)||a.mcp.notificationDebounceMs<0||a.mcp.notificationDebounceMs>6e4))throw Error("MCP notification debounce must be an integer between 0 and 60,000");for(let[b,c]of Object.entries({enabledModels:a.enabledModels,disabledProviders:a.disabledProviders,modelProviderOrder:a.modelProviderOrder}))if(void 0!==c&&(!Array.isArray(c)||c.some(a=>"string"!=typeof a||!a.trim())))throw Error(`${b} must contain non-empty strings`);let c=aX(a),{path:d,doc:e}=a$();if((0,ao.mkdirSync)((0,aq.dirname)(d),{recursive:!0}),null===e.contents){e.contents=e.createNode(c),aF(d,e.toString());return}if(!(0,aG.jh)(e.contents))throw Error(`${d} must contain a YAML mapping`);for(let[a,b]of(void 0!==c.defaultThinkingLevel&&e.set("defaultThinkingLevel",c.defaultThinkingLevel),void 0!==c.hideThinkingBlock&&e.set("hideThinkingBlock",c.hideThinkingBlock),void 0!==c.externalThinking&&e.set("externalThinking",c.externalThinking),void 0!==c.textVerbosity&&e.set("textVerbosity",c.textVerbosity),void 0!==c.personality&&e.set("personality",c.personality),Object.entries(c.advisor??{})))e.setIn(["advisor",a],b);for(let[a,b]of(c.tools?.approvalMode!==void 0&&e.setIn(["tools","approvalMode"],c.tools.approvalMode),c.tools?.approval!==void 0&&(0===Object.keys(c.tools.approval).length?e.setIn(["tools","approval"],{}):(void 0!==c.tools.approval.bash&&e.setIn(["tools","approval","bash"],c.tools.approval.bash),void 0!==c.tools.approval.extension&&e.setIn(["tools","approval","extension"],c.tools.approval.extension))),void 0!==c.enabledModels&&e.set("enabledModels",c.enabledModels),void 0!==c.disabledProviders&&e.set("disabledProviders",c.disabledProviders),void 0!==c.modelProviderOrder&&e.set("modelProviderOrder",c.modelProviderOrder),Object.entries(c.retry??{})))e.setIn(["retry",a],b);for(let[a,b]of Object.entries(c.compaction??{}))e.setIn(["compaction",a],b);for(let[a,b]of Object.entries(c.memory??{}))e.setIn(["memory",a],b);for(let[a,b]of Object.entries(c.autolearn??{}))e.setIn(["autolearn",a],b);for(let[a,b]of Object.entries(c.mnemopi??{}))e.setIn(["mnemopi",a],b);for(let[a,b]of Object.entries(c.mcp??{}))e.setIn(["mcp",a],b);for(let[a,b]of(c.task?.eager!==void 0&&e.setIn(["task","eager"],c.task.eager),c.task?.prewalk!==void 0&&e.setIn(["task","prewalk"],c.task.prewalk),c.task?.agentModelOverrides!==void 0&&e.setIn(["task","agentModelOverrides"],c.task.agentModelOverrides),c.task?.agentPrewalk!==void 0&&e.setIn(["task","agentPrewalk"],c.task.agentPrewalk),c.task?.agentAdvisor!==void 0&&e.setIn(["task","agentAdvisor"],c.task.agentAdvisor),c.task?.disabledAgents!==void 0&&e.setIn(["task","disabledAgents"],c.task.disabledAgents),Object.entries(c.browser??{})))e.setIn(["browser",a],b);for(let[a,b]of Object.entries(c.computer??{}))e.setIn(["computer",a],b);for(let[a,b]of Object.entries(c.web_search??{}))e.setIn(["web_search",a],b);for(let[a,b]of Object.entries(c.github??{}))e.setIn(["github",a],b);for(let[a,b]of Object.entries(c.security??{}))e.setIn(["security",a],b);for(let[a,b]of Object.entries(c.checkpoint??{}))e.setIn(["checkpoint",a],b);aF(d,e.toString())}let a1={revision:0,items:[]},a2="enqueue_message",a3="recall_queued_message",a4="delete_queued_message",a5="promote_queued_message",a6="get_message_queue",a7="queue_stale_revision",a8="queue_item_missing",a9="queue_item_sending",ba="queue_invalid",bb="This message may already have been handed to the agent. It was not confirmed and will not be retried.",bc=new Set([a2,a3,a4,a5,a6]);class bd extends Error{constructor(a,b){super(a),this.name="SessionQueueError",this.code=b}}function be(a){return"steer"===a||"followUp"===a}function bf(a){return{type:"message_queue_update",queue:a}}function bg(a,b){return b?{queue:a,recalled:b}:{queue:a}}function bh(a){return Buffer.byteLength(a,"utf8")}function bi(a){let b={id:a.id,text:a.text,lane:a.lane,status:a.status,...a.error?{error:a.error}:{},...a.attachments?{attachments:Object.freeze(a.attachments.map(a=>Object.freeze({...a})))}:{}};return Object.freeze(b),b}class bj{getSnapshot(){return this.snapshot}hasSending(){return this.items.some(a=>"sending"===a.status)}selectDispatchCandidate(a){if(!this.hasSending())return this.items.find(b=>"queued"===b.status&&b.lane===a)}getImages(a){return this.imagePayloads.get(a)}enqueue(a){if(!be(a.lane))throw new bd("lane must be steer or followUp",ba);let b=(0,T.kc)(a.images);if(b)throw new bd(b,ba);let c=[],d=[],e=0;if(Array.isArray(a.images))for(let b of a.images){if("object"!=typeof b||null===b||!("data"in b)||!("mimeType"in b)||"string"!=typeof b.data||"string"!=typeof b.mimeType)throw new bd("Each attachment must be an image",ba);let a=(0,T.Si)(b.data);if(null===a)throw new bd("Invalid image data",ba);e+=a,c.push(Object.freeze({type:"image",data:b.data,mimeType:b.mimeType})),d.push({mimeType:b.mimeType,bytes:a})}if(this.imageBytes+e>0x6400000)throw new bd("Queue image capacity exceeds 100MiB; remove or recall queued images first","queue_images_too_large");let f=this.assertText(a.text,c.length>0);if(this.items.length>=32)throw new bd("The queue already holds 32 messages","queue_full");this.assertTotalBytes(bh(f));let g=bi({id:(0,L.randomUUID)(),lane:a.lane,text:f,status:"queued",...d.length?{attachments:d}:{}});return c.length&&this.imagePayloads.set(g.id,Object.freeze(c)),this.imageBytes+=e,this.items=[...this.items,g],this.publish()}promote(a,b){let c=this.requireMutable(a,b);if("followUp"!==c.lane||"queued"!==c.status)throw new bd("Only a queued follow-up can be promoted to steer",ba);let d=bi({...c,lane:"steer",status:"queued"});return this.items=[d,...this.items.filter(b=>b.id!==a)],this.publish()}recall(a,b,c){let d=this.requireMutable(a,b),e=this.imagePayloads.get(a);if(void 0!==c){if(!Number.isSafeInteger(c)||c<=0)throw new bd("Invalid recall response capacity",ba);let a=bh(JSON.stringify({queue:this.snapshot,recalled:d}))+256;for(let b of e??[])a+=b.data.length+bh(JSON.stringify({type:"image",data:"",mimeType:b.mimeType}))+1;if(a>c)throw new bd("These queued images exceed the remote recall transfer limit. Recall them from the web app instead; the queued message has not changed.","queue_recall_too_large")}return this.releaseImages(d),this.items=this.items.filter(b=>b.id!==a),{item:e?{...d,images:e}:d,snapshot:this.publish()}}delete(a,b){let c=this.requireMutable(a,b);return this.releaseImages(c),this.items=this.items.filter(b=>b.id!==a),this.publish()}markSending(a){let b=this.items.find(b=>b.id===a);if(!b)throw new bd("Queued message was not found",a8);if("queued"!==b.status)throw new bd("Queued message is already being sent",a9);return this.replace(a,{...b,status:"sending"}),this.publish()}markFailed(a,b){let c=this.items.find(b=>b.id===a);return c?(this.replace(a,{...c,status:"failed",error:b}),this.publish()):this.snapshot}remove(a){let b=this.items.find(b=>b.id===a);return b?(this.releaseImages(b),this.items=this.items.filter(b=>b.id!==a),this.publish()):this.snapshot}failSending(a){return this.hasSending()?(this.items=this.items.map(b=>"sending"===b.status?bi({...b,status:"failed",error:a}):b),this.publish()):this.snapshot}reset(){return this.imagePayloads.clear(),this.imageBytes=0,this.items=[],this.revision=0,this.snapshot=a1,this.snapshot}releaseImages(a){if(this.imagePayloads.delete(a.id))for(let b of a.attachments??[])this.imageBytes-=b.bytes}requireMutable(a,b){this.assertCas(b);let c=this.items.find(b=>b.id===a);if(!c)throw new bd("Queued message was not found",a8);if("sending"===c.status)throw new bd("Queued message is already being sent",a9);return c}assertCas(a){if("number"!=typeof a||a!==this.revision)throw new bd("Queue revision is stale; reload the queue and retry",a7)}assertText(a,b){if("string"!=typeof a)throw new bd("Message text is required",ba);if(!b&&0===a.trim().length)throw new bd("Message text cannot be empty",ba);if(bh(a)>262144)throw new bd("Message exceeds 262144 bytes","queue_item_too_large");return a}assertTotalBytes(a){let b=a;for(let a of this.items)b+=bh(a.text);if(b>1048576)throw new bd("Queue exceeds 1048576 bytes","queue_too_large")}replace(a,b){this.items=this.items.map(c=>c.id===a?bi(b):c)}publish(){let a;this.revision+=1;let b={revision:this.revision,items:(Object.freeze(a=this.items.map(a=>bi(a))),a)};return Object.freeze(b),this.snapshot=b,b}constructor(){this.revision=0,this.items=[],this.imagePayloads=new Map,this.imageBytes=0,this.snapshot=a1}}let bk="This session is restarting — retry in a moment.";class bl extends Error{constructor(a,b){super(a),this.name="WebRpcError",this.code=b}}let bm=new Set(["select","confirm","input","editor","open_url"]),bn=new Set(["abort","abort_and_prompt","set_thinking_level","cycle_thinking_level","cycle_model","get_available_models","set_auto_compaction","set_auto_retry","abort_retry","abort_bash","set_todos","set_steering_mode","set_follow_up_mode","set_interrupt_mode","get_branch_messages","get_messages","get_messages_page","export_html","handoff","get_subagents","get_subagent_messages","set_subagent_subscription","get_login_providers","login"]),bo={navigate_tree:"Branch navigation is not supported over the omp RPC protocol",clear_queue:"Recalling queued messages is not supported over the omp RPC protocol",get_tools:"Per-session tool listing is not supported over the omp RPC protocol",set_tools:"Changing tools on a running session is not supported over the omp RPC protocol; tool presets apply to new sessions",extension_ui_input:"Extension custom UI is not supported over the omp RPC protocol"},bp={find:"glob",search:"grep"},bq=new Set(["ls"]);function br(a){let b=[];for(let c of a){let a=c.toLowerCase();if(bq.has(a))continue;let d=bp[a]??a;b.includes(d)||b.push(d)}return b}let bs=["bash","read","edit","write","grep","find","ls","task"].map(a=>a.toLowerCase()).sort().join(",");function bt(a,b,c=!1){let d=[];if(a)d.push("--resume",a);else if(void 0!==b){let a=b.map(a=>a.toLowerCase()).sort().join(",");if(0===b.length)d.push("--no-tools");else if(a===bs);else{let a=br(b);a.length>0&&d.push("--tools",a.join(","))}}return c&&!a&&d.push("--advisor"),d}function bu(a){return a?.length?a:void 0}function bv(a){return"string"==typeof a.toolCallId&&a.toolCallId?a.toolCallId:"string"==typeof a.id&&a.id?a.id:""}function bw(a){if(a&&(0,ao.existsSync)(a))return{cwd:a,fellBack:!1};try{let a=process.cwd();if(a&&(0,ao.existsSync)(a))return{cwd:a,fellBack:!0}}catch{}return{cwd:(0,aC.homedir)(),fellBack:!0}}function bx(a){a&&"object"==typeof a&&void 0===a.estimatedTokensAfter&&(a.estimatedTokensAfter=Math.round((a.summary?.length??0)/4))}class by{constructor(a,b,c){this.listeners=[],this.pendingUiRequests=new Map,this.uiExpiryTimers=new Map,this.extensionStatuses=new Map,this.extensionWidgets=new Map,this.promptRunning=!1,this.bashRunning=!1,this.streaming=!1,this.compacting=!1,this.fastModeEnabled=!1,this.idleTimer=null,this.destroyListeners=[],this.onIdentityChangeCallback=null,this.unsubscribeFrames=null,this.initPromise=null,this.restarting=!1,this.mcpListWaiter=null,this._alive=!0,this.hostToolNames=new Set,this.pendingHostTools=new Map,this.hostUriSchemes=new Map,this.pendingHostUris=new Map,this.messageQueue=new bj,this.queueEpoch=0,this.queueDispatching=!1,this.queueDispatchAgain=!1,this.abortHoldsDispatch=!1,this.activeToolIds=new Set,this.nativeFollowUpDepth=0,this.nativeHandoffPending=0,this.nativeQueuedCount=0,this.nativeQueueStale=!1,this.nativeReconcileGeneration=0,this.destroyPromise=null,this._sessionId="",this._sessionFile="",this.sessionFileSignalTimer=null,this.proc=a,this.cwd=b,this.recordedCwd=c??null}get sessionId(){return this._sessionId}get sessionFile(){return this._sessionFile}isAlive(){return this._alive&&this.proc.isAlive}isRunning(){return this.isAlive()&&(this.promptRunning||this.streaming||this.compacting||this.bashRunning)}start(){this.unsubscribeFrames=this.proc.onFrame(a=>this.handleFrame(a)),this.resetIdleTimer(),bE()}waitUntilReady(){return this.initPromise||(this.initPromise=this.initialize()),this.initPromise}async initialize(){let a=await this.proc.waitReady(12e4);await this.proc.negotiateProtocol(a),await this.proc.sendCommand({type:"set_subagent_subscription",level:"events"}).catch(()=>{});let b=await this.proc.sendCommand({type:"get_state"});this.applyIdentity(b),this.recordedCwd&&this.recordedCwd!==this.cwd&&this.emit({type:"notice",level:"warning",message:`This session's working directory no longer exists; the agent is running in ${this.cwd}.`})}applyIdentity(a){this._sessionId=a.sessionId,this._sessionFile=a.sessionFile??"",this._sessionName=a.sessionName,this.streaming=a.isStreaming,this.compacting=a.isCompacting,this.fastModeEnabled=a.fastModeEnabled??a.fastMode??this.fastModeEnabled,this._sessionFile&&(0,al.O8)(this._sessionId,this._sessionFile)}handleProcessExit(a){if(!this._alive||this.restarting)return;let b=a.trim().split("\n").pop()??"";this.emit({type:"notice",level:"error",message:`The omp process for this session exited unexpectedly${b?`: ${b}`:"."}`}),(this.streaming||this.promptRunning)&&this.emit({type:"agent_end",isTerminal:!0,messages:[]}),this.destroy()}handleFrame(a){this.resetIdleTimer();let b=!1,c=!1;switch(a.type){case"command_output":{let b=this.mcpListWaiter;if(b&&"string"==typeof a.text){clearTimeout(b.timer),this.mcpListWaiter=null,b.resolve(a.text),bE();return}break}case"agent_start":!this.streaming&&this.nativeFollowUpDepth>0&&(this.nativeFollowUpDepth-=1),this.streaming=!0,(0,al.mD)(),b=!0,this._sessionFile&&!(0,ao.existsSync)(this._sessionFile)&&this.signalWhenSessionFileAppears();break;case"agent_end":!1!==a.isTerminal&&(this.streaming=!1,this.promptRunning=!1,this.activeToolIds.clear(),(0,al.mD)(),this.nativeQueuedCount>0||this.nativeQueueStale?this.beginNativeQueueReconcile():c=!0);break;case"prompt_result":this.promptRunning=!1,c=!0;break;case"auto_compaction_start":this.compacting=!0;break;case"auto_compaction_end":this.compacting=!1,bx(a.result),(0,al.mD)(),c=!0;break;case"tool_execution_start":{let b=bv(a);b&&this.activeToolIds.add(b);break}case"tool_execution_end":{let b=bv(a);b&&this.activeToolIds.delete(b),c=!0;break}case"session_info_update":"string"==typeof a.title&&(this._sessionName=a.title),(0,al.mD)(),b=!0;break;case"response":if(!1===a.success&&"prompt"===a.command){this.promptRunning=!1,this.emit({type:"prompt_error",errorMessage:a.error??"Prompt failed"}),bE(),this.scheduleQueueDispatch();return}break;case"extension_ui_request":if(this.trackExtensionUiRequest(a))return void bE();break;case"host_tool_call":{let b="string"==typeof a.id?a.id:"",c="string"==typeof a.toolName?a.toolName:"";if(b&&c&&this.hostToolNames.has(c)&&this.listeners.length>0){this.pendingHostTools.set(b,a),this.emit(a),bE();return}this.rejectUnexpectedHostTool(a);return}case"host_tool_cancel":{let b="string"==typeof a.targetId?a.targetId:"";if(b&&this.pendingHostTools.delete(b)){this.emit(a),bE();return}break}case"host_uri_request":{let b="string"==typeof a.id?a.id:"",c=("string"==typeof a.url?a.url:"").split(":")[0]??"",d="write"===a.operation?"write":"read",e=this.hostUriSchemes.get(c);if(b&&c&&e&&("write"!==d||e.writable)&&this.listeners.length>0){this.pendingHostUris.set(b,a),this.emit(a),bE();return}this.proc.sendFrame({type:"host_uri_result",id:b,isError:!0,error:`URI scheme "${c}" is not registered by omp-web`});return}case"host_uri_cancel":{let b="string"==typeof a.targetId?a.targetId:"";if(b&&this.pendingHostUris.delete(b)){this.emit(a),bE();return}}}this.emit(a),bE({refreshSessionList:b}),c&&this.scheduleQueueDispatch()}forgetPendingUiRequest(a){this.pendingUiRequests.delete(a);let b=this.uiExpiryTimers.get(a);b&&(clearTimeout(b),this.uiExpiryTimers.delete(a))}clearPendingUiRequests(){for(let a of this.uiExpiryTimers.values())clearTimeout(a);this.uiExpiryTimers.clear(),this.pendingUiRequests.clear()}trackExtensionUiRequest(a){let b=a.method,c=a.id;if("cancel"===b)return this.forgetPendingUiRequest(a.targetId),!1;let d=!1;try{d=a_().settings.tools?.approval?.extension==="allow"}catch{}if("confirm"===b&&"string"==typeof a.title&&/^allow tool\s*:/i.test(a.title)&&d)return this.forgetPendingUiRequest(c),this.proc.sendFrame({type:"extension_ui_response",id:c,confirmed:!0}),!0;if(bm.has(b)){this.forgetPendingUiRequest(c);let b="number"==typeof a.timeout?a.timeout:void 0;if(void 0!==b&&Number.isFinite(b)&&b>0&&b<=0x7fffffff){a.expiresAt=Date.now()+b;let d=setTimeout(()=>{this.forgetPendingUiRequest(c),this.emit({type:"extension_ui_request",method:"cancel",id:`expired:${c}`,targetId:c})},b);d.unref?.(),this.uiExpiryTimers.set(c,d)}return this.pendingUiRequests.set(c,a),!1}if("setStatus"===b){let b=a.statusKey,c=a.statusText;return void 0===c?this.extensionStatuses.delete(b):this.extensionStatuses.set(b,c),!1}if("setWidget"===b){let b=a.widgetKey,c=a.widgetLines;void 0===c?this.extensionWidgets.delete(b):this.extensionWidgets.set(b,{key:b,lines:c,placement:a.widgetPlacement??"aboveEditor"})}return!1}rejectUnexpectedHostTool(a){let b="string"==typeof a.id?a.id:"";if(!b)return;let c="string"==typeof a.toolName?a.toolName:"unknown";this.proc.sendFrame({type:"host_tool_result",id:b,isError:!0,result:{content:[{type:"text",text:`Host tool "${c}" is not available in ompgui. Use OMP's built-in tools within the selected workspace.`}]}}),this.emit({type:"notice",level:"warning",message:`Rejected unavailable host tool: ${c}`})}rejectPendingHostTools(a){for(let b of this.pendingHostTools.keys())this.proc.sendFrame({type:"host_tool_result",id:b,isError:!0,result:{content:[{type:"text",text:a}]}});this.pendingHostTools.clear()}rejectPendingHostUris(a){for(let b of this.pendingHostUris.keys())this.proc.sendFrame({type:"host_uri_result",id:b,isError:!0,error:a});this.pendingHostUris.clear()}emit(a){for(let b of this.listeners)try{b(a)}catch{}}signalWhenSessionFileAppears(){if(this.sessionFileSignalTimer)return;let a=0,b=()=>{if(this.sessionFileSignalTimer=null,this._alive&&this._sessionFile){if(!(0,ao.existsSync)(this._sessionFile)){(a+=1)<40&&(this.sessionFileSignalTimer=setTimeout(b,250));return}(0,al.mD)(),bE({refreshSessionList:!0})}};this.sessionFileSignalTimer=setTimeout(b,250)}resetIdleTimer(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=setTimeout(()=>{this.isRunning()?this.resetIdleTimer():this.destroy()},6e5)}onEvent(a){this.listeners.push(a);let b=Date.now();for(let[a,c]of this.pendingUiRequests){let d=c.expiresAt;if(void 0!==d&&d<=b){this.forgetPendingUiRequest(a);continue}}for(let b of(a({type:"extension_ui_pending",ids:[...this.pendingUiRequests.keys()]}),this.pendingUiRequests.values()))a(b);return a(bf(this.messageQueue.getSnapshot())),()=>{let b=this.listeners.indexOf(a);-1!==b&&this.listeners.splice(b,1),0===this.listeners.length&&(this.rejectPendingHostTools("The web UI disconnected while the agent was waiting for this host tool"),this.rejectPendingHostUris("The web UI disconnected while the agent was waiting for this URI request"))}}onDestroy(a){return this._alive?(this.destroyListeners.push(a),()=>{let b=this.destroyListeners.indexOf(a);-1!==b&&this.destroyListeners.splice(b,1)}):(a(),()=>{})}onIdentityChange(a){this.onIdentityChangeCallback=a}async withFinalRunningNotification(a){try{return await a()}finally{bE()}}async getMcpList(){let a,b;if(this.restarting)throw new bl(bk,"session_restarting");if(!this.isAlive())throw Error("Session is no longer running");if(this.isRunning())throw new bl("Wait for the current run to finish","session_busy");if(this.mcpListWaiter)throw new bl("MCP list is already loading","mcp_list_loading");this.promptRunning=!0,bE();let c=new Promise((c,d)=>{a=c,b=d});c.catch(()=>{});let d={resolve:a,reject:b,timer:void 0};d.timer=setTimeout(()=>{this.mcpListWaiter===d&&(this.mcpListWaiter=null,b(new bl("Timed out while loading MCP servers","mcp_list_timeout")))},15e3),d.timer.unref?.(),this.mcpListWaiter=d;try{return await this.proc.sendCommand({type:"prompt",message:"/mcp list"}),await c}catch(a){throw this.mcpListWaiter===d&&(clearTimeout(d.timer),this.mcpListWaiter=null,d.reject(a instanceof Error?a:Error(String(a)))),a}finally{this.mcpListWaiter===d&&(clearTimeout(d.timer),this.mcpListWaiter=null),this.promptRunning=!1,bE()}}buildWebState(a){return this.streaming=a.isStreaming,this.compacting=a.isCompacting,this._sessionName=a.sessionName,this.nativeQueuedCount=a.queuedMessageCount??0,this.nativeQueueStale=!1,a.sessionId&&(this._sessionId=a.sessionId,this._sessionFile=a.sessionFile??this._sessionFile),{sessionId:a.sessionId,sessionFile:a.sessionFile??"",sessionName:a.sessionName,isStreaming:a.isStreaming,isPromptRunning:this.promptRunning,isBashRunning:this.bashRunning,isCompacting:a.isCompacting,autoCompactionEnabled:a.autoCompactionEnabled,autoRetryEnabled:a.autoRetryEnabled,interruptMode:a.interruptMode,steeringMode:a.steeringMode,followUpMode:a.followUpMode,model:a.model?{id:a.model.id,provider:a.model.provider,name:a.model.name,reasoning:a.model.reasoning,thinking:a.model.thinking?{efforts:a.model.thinking.efforts}:void 0}:void 0,messageCount:a.messageCount,queuedMessageCount:a.queuedMessageCount,messageQueue:this.queueSnapshotForClient(),contextUsage:a.contextUsage??null,systemPrompt:a.systemPrompt?.join("\n\n")??"",thinkingLevel:a.thinkingLevel??"off",fastModeEnabled:a.fastModeEnabled??a.fastMode??this.fastModeEnabled,fastModeActive:a.fastModeActive,todoPhases:a.todoPhases??[],extensionStatuses:Array.from(this.extensionStatuses,([a,b])=>({key:a,text:b})),extensionWidgets:Array.from(this.extensionWidgets.values())}}async refreshIdentityAfterSessionChange(){let a=this._sessionId,b=await this.proc.sendCommand({type:"get_state"});return this.applyIdentity(b),a&&a!==this._sessionId&&(this.clearPendingUiRequests(),this.emit({type:"extension_ui_pending",ids:[]}),this.discardQueue("Queued messages were discarded because the session changed."),this.onIdentityChangeCallback?.(a,this._sessionId)),(0,al.mD)(),this._sessionId}async restart(){if(this.restarting)throw new bl(bk,"session_restarting");let a=this._sessionFile,b=!!a&&(0,ao.existsSync)(a),c=this.proc;this.restarting=!0,this.queueEpoch+=1,this.abortHoldsDispatch=!1,this.activeToolIds.clear(),this.nativeFollowUpDepth=0,this.nativeHandoffPending=0,this.nativeQueuedCount=0,this.nativeQueueStale=!1,this.nativeReconcileGeneration+=1,this.messageQueue.failSending(bb),this.emitQueueSnapshot(),this.unsubscribeFrames?.();try{if(await c.dispose(),!this._alive)return;this.extensionStatuses.clear(),this.extensionWidgets.clear(),this.clearPendingUiRequests(),this.promptRunning=!1,this.bashRunning=!1,this.streaming=!1,this.compacting=!1;let d=new ax.X({cwd:this.cwd,extraArgs:bt(b?a:""),onExit:({stderrTail:a})=>{this.proc===d&&this.handleProcessExit(a)}});this.proc=d,this.unsubscribeFrames=d.onFrame(a=>this.handleFrame(a));try{let a=await d.waitReady(12e4);await d.negotiateProtocol(a),await d.sendCommand({type:"set_subagent_subscription",level:"events"}).catch(()=>{});let b=await d.sendCommand({type:"get_state"});this.applyIdentity(b)}catch(a){throw this.unsubscribeFrames?.(),this.unsubscribeFrames=null,d.dispose(),this.destroy(),a}}finally{this.restarting=!1}bE(),this.scheduleQueueDispatch()}async send(a){if(this.restarting)throw new bl(bk,"session_restarting");if(!this.isAlive())throw Error("Session is no longer running");this.resetIdleTimer();let b=a.type;if("prompt"===b||"steer"===b||"follow_up"===b){let b=(0,T.kc)(a.images);if(b)throw Error(b)}let c=bo[b];if(c)throw new ax.x(b,c,"unsupported");if("string"==typeof b&&bc.has(b))return this.handleQueueCommand(a);switch(b){case"prompt":{if(this.bashRunning)throw Error("Cannot send a prompt while a shell command is running");let b=a.streamingBehavior;b||(this.abortHoldsDispatch=!1,this.promptRunning=!0,bE());try{let c=await this.forwardNativeHandoff({type:"prompt",message:a.message,...bu(a.images)?{images:bu(a.images)}:{},...b?{streamingBehavior:b}:{}},"followUp"===b);c?.agentInvoked===!1&&(b||(this.promptRunning=!1,this.emit({type:"prompt_result",agentInvoked:!1}),bE()),this.scheduleQueueDispatch())}catch(a){throw this.promptRunning=!1,bE(),a}return null}case"steer":case"follow_up":return await this.forwardNativeHandoff({type:b,message:a.message,...bu(a.images)?{images:bu(a.images)}:{}},"follow_up"===b),null;case"abort":return this.abortHoldsDispatch=!0,await this.withFinalRunningNotification(async()=>{await this.proc.sendCommand({type:"abort"}),this.promptRunning=!1}),null;case"get_state":{let a=await this.proc.sendCommand({type:"get_state"});return this.buildWebState(a)}case"set_model":{let{provider:b,modelId:c}=a,d=await this.proc.sendCommand({type:"set_model",provider:b,modelId:c});return aD(),(0,al.mD)(),{id:d.id,provider:d.provider}}case"set_fast_mode":{let b=!0===a.enabled,c=await this.proc.sendCommand({type:"set_fast_mode",enabled:b});return this.fastModeEnabled=c?.enabled??b,{enabled:this.fastModeEnabled,active:c?.active??!1}}case"fork":if(this.bashRunning)throw Error("Cannot fork while a shell command is running");if(this.queueEpoch+=1,this.messageQueue.failSending(bb),this.emitQueueSnapshot(),(await this.proc.sendCommand({type:"branch",entryId:a.entryId})).cancelled)return{cancelled:!0};return{cancelled:!1,newSessionId:await this.refreshIdentityAfterSessionChange()};case"new_session":case"switch_session":{this.queueEpoch+=1,this.messageQueue.failSending(bb),this.emitQueueSnapshot();let b=await this.proc.sendCommand(a);if(!b.cancelled)return{cancelled:!1,newSessionId:await this.refreshIdentityAfterSessionChange()};return b}case"compact":try{return await this.withFinalRunningNotification(async()=>{this.compacting=!0,bE();try{let b=await this.proc.sendCommand({type:"compact",...a.customInstructions?{customInstructions:a.customInstructions}:{}});return bx(b),b}finally{this.compacting=!1}})}finally{(0,al.mD)(),this.scheduleQueueDispatch()}case"abort_compaction":return this.abortHoldsDispatch=!0,await this.withFinalRunningNotification(()=>this.proc.sendCommand({type:"abort"})),null;case"set_session_name":{let b=a.name?.trim();if(!b)throw Error("Session name cannot be empty");return await this.proc.sendCommand({type:"set_session_name",name:b}),this._sessionName=b,(0,al.mD)(),null}case"get_session_stats":return{...await this.proc.sendCommand({type:"get_session_stats"}),sessionName:this._sessionName};case"get_last_assistant_text":return{text:(await this.proc.sendCommand({type:"get_last_assistant_text"})).text??""};case"get_commands":return await this.proc.sendCommand({type:"get_available_commands"});case"reload":return await this.restart(),{success:!0};case"extension_ui_response":{let b,c=a.id,d="string"==typeof c?this.pendingUiRequests.get(c):void 0;if(!d||"string"!=typeof c)throw new bl("This dialog is no longer pending in this session","dialog_not_pending");if("number"==typeof d.expiresAt&&d.expiresAt<=Date.now())throw this.forgetPendingUiRequest(c),this.emit({type:"extension_ui_request",method:"cancel",id:`expired:${c}`,targetId:c}),new bl("This dialog has expired","dialog_not_pending");if(!0===a.cancelled)b={cancelled:!0,...!0===a.timedOut?{timedOut:!0}:{}};else if("confirm"===d.method||"open_url"===d.method){if("boolean"!=typeof a.confirmed)throw new bl("A boolean confirmation is required","invalid_dialog_response");b={confirmed:a.confirmed}}else{if("string"!=typeof a.value||a.value.length>3145728)throw new bl("A dialog value of at most 3Mi characters is required","invalid_dialog_response");if("select"===d.method&&(!Array.isArray(d.options)||!d.options.includes(a.value)))throw new bl("Select one of the offered options","invalid_dialog_response");b={value:a.value}}return this.proc.sendFrame({type:"extension_ui_response",id:c,...b}),this.forgetPendingUiRequest(c),this.emit({type:"extension_ui_request",method:"cancel",id:`answered:${c}`,targetId:c}),null}case"bash":if(!0===a.excludeFromContext)throw new bl("omp cannot run a shell command with its output excluded from the model context (`!!`): the RPC bash command has no exclusion option, so the output would silently enter the context anyway. Run it with a single `!` to share the output with the model, or use a terminal outside ompgui.","bash_exclude_unsupported");if(this.isRunning())throw Error("Cannot run a shell command while the session is busy");this.bashRunning=!0,bE();try{return await this.proc.sendCommand({type:"bash",command:a.command})}finally{this.bashRunning=!1,(0,al.mD)(),bE(),this.scheduleQueueDispatch()}case"set_host_tools":{let b=(Array.isArray(a.tools)?a.tools:[]).filter(a=>"string"==typeof a.name&&a.name);return this.hostToolNames=new Set(b.map(a=>a.name)),await this.proc.sendCommand({type:"set_host_tools",tools:b}),null}case"host_tool_result":return"string"==typeof a.id&&this.pendingHostTools.delete(a.id),await this.proc.sendCommand(a),null;case"set_host_uri_schemes":{let b=Array.isArray(a.schemes)?a.schemes:[];for(let a of(this.hostUriSchemes=new Map,b))"string"==typeof a.scheme&&a.scheme&&this.hostUriSchemes.set(a.scheme,{writable:!0===a.writable});return await this.proc.sendCommand({type:"set_host_uri_schemes",schemes:b}),null}case"host_uri_result":return"string"==typeof a.id&&this.pendingHostUris.delete(a.id),await this.proc.sendCommand(a),null;default:if(bn.has(b)){let c=await this.proc.sendCommand(a);return"set_thinking_level"===b&&(0,al.mD)(),c??null}throw Error(`Unsupported command: ${b}`)}}handleQueueCommand(a){try{let b=a.type;switch(b){case a2:if(!be(a.lane))throw new bd("lane must be steer or followUp",ba);if("string"!=typeof a.message)throw new bd("message is required",ba);return this.messageQueue.enqueue({lane:a.lane,text:a.message,images:a.images}),this.abortHoldsDispatch=!1,this.emitQueueSnapshot(),this.finishQueueCommand();case a5:if("string"!=typeof a.id)throw new bd("id is required",ba);return this.messageQueue.promote(a.id,this.requireExpectedRevision(a)),this.abortHoldsDispatch=!1,this.emitQueueSnapshot(),this.finishQueueCommand();case a3:{if("string"!=typeof a.id)throw new bd("id is required",ba);let b=a.__relayRecallMaxBytes;if(void 0!==b&&"number"!=typeof b)throw new bd("Invalid recall response capacity",ba);let{item:c}=this.messageQueue.recall(a.id,this.requireExpectedRevision(a),b);this.emitQueueSnapshot();let d=bg(this.queueSnapshotForClient(),c);return this.scheduleQueueDispatch(),Promise.resolve(d)}case a4:if("string"!=typeof a.id)throw new bd("id is required",ba);return this.messageQueue.delete(a.id,this.requireExpectedRevision(a)),this.emitQueueSnapshot(),this.finishQueueCommand();case a6:return Promise.resolve(bg(this.queueSnapshotForClient()));default:throw Error(`Unsupported command: ${b}`)}}catch(a){if(a instanceof bd)throw new bl(a.message,a.code);throw a}}requireExpectedRevision(a){if("number"!=typeof a.expectedRevision)throw new bd("Queue revision is stale; reload the queue and retry",a7);return a.expectedRevision}async finishQueueCommand(){return await this.drainQueueDispatch(),bg(this.queueSnapshotForClient())}queueSnapshotForClient(){return{...this.messageQueue.getSnapshot(),nativeQueuedCount:this.nativeQueuedCount}}emitQueueSnapshot(){this.emit(bf(this.queueSnapshotForClient()))}beginNativeQueueReconcile(){this.nativeQueueStale=!0,this.nativeReconcileGeneration+=1;let a=this.nativeReconcileGeneration,b=this.queueEpoch,c=this.proc;this.refreshNativeQueuedCount(a,b,c)}async refreshNativeQueuedCount(a,b,c){try{let d=await c.sendCommand({type:"get_state"});if(!this.nativeReconcileStillValid(a,b,c))return;this.nativeQueuedCount=d.queuedMessageCount??0,this.nativeQueueStale=!1}catch{if(!this.nativeReconcileStillValid(a,b,c))return;this.nativeQueuedCount=0,this.nativeQueueStale=!1}this.scheduleQueueDispatch()}nativeReconcileStillValid(a,b,c){return this._alive&&this.queueEpoch===b&&this.proc===c&&this.nativeReconcileGeneration===a}discardQueue(a){this.queueEpoch+=1;let b=this.messageQueue.getSnapshot().items.length>0;this.messageQueue.reset(),this.emitQueueSnapshot(),b&&this.emit({type:"notice",level:"warning",message:a})}scheduleQueueDispatch(){this.drainQueueDispatch()}async drainQueueDispatch(){if(this.queueDispatching){this.queueDispatchAgain=!0;return}this.queueDispatching=!0;try{do this.queueDispatchAgain=!1,await this.dispatchNextQueueItem();while(this.queueDispatchAgain)}catch{}finally{this.queueDispatching=!1,this.queueDispatchAgain&&this.scheduleQueueDispatch()}}canDispatchSteer(){return this.isAlive()&&!this.restarting&&this.streaming&&!this.compacting&&!this.bashRunning&&0===this.activeToolIds.size&&0===this.pendingHostTools.size&&0===this.nativeHandoffPending}canDispatchFollowUp(){return this.isAlive()&&!this.restarting&&!this.abortHoldsDispatch&&!this.promptRunning&&!this.streaming&&!this.compacting&&!this.bashRunning&&0===this.activeToolIds.size&&0===this.pendingHostTools.size&&0===this.nativeFollowUpDepth&&0===this.nativeHandoffPending&&!this.nativeQueueStale&&0===this.nativeQueuedCount}canDispatchIdlePrompt(){return this.canDispatchFollowUp()}async dispatchNextQueueItem(){for(;this.isAlive()&&!this.restarting;){if(this.messageQueue.hasSending())return;let a=this.messageQueue.selectDispatchCandidate("steer");if(a){if(this.canDispatchSteer()){await this.forwardQueueItem(a,"steer");continue}if(this.canDispatchIdlePrompt()){await this.forwardQueueItem(a);continue}return}let b=this.messageQueue.selectDispatchCandidate("followUp");if(b&&this.canDispatchFollowUp()){await this.forwardQueueItem(b);continue}return}}async forwardQueueItem(a,b){let c=this.queueEpoch,d=this.proc,e=this._sessionId,f=this.messageQueue.getImages(a.id);this.messageQueue.markSending(a.id),this.emitQueueSnapshot(),b||(this.promptRunning=!0,bE());try{let g=await d.sendCommand({type:"prompt",message:a.text,...f?{images:f}:{},...b?{streamingBehavior:b}:{}},3e4);if(!this.queueForwardStillValid(c,d,e,a.id))return;this.messageQueue.remove(a.id),this.emitQueueSnapshot(),g?.agentInvoked!==!1||b||(this.promptRunning=!1,this.emit({type:"prompt_result",agentInvoked:!1}),bE())}catch(g){if(b||(this.promptRunning=!1),!this.queueForwardStillValid(c,d,e,a.id))return;let f=g instanceof Error&&/timed out/i.test(g.message)?bb:`${bb} ${g instanceof Error?g.message:String(g)}`;this.messageQueue.markFailed(a.id,f),this.emitQueueSnapshot(),this.emit({type:"notice",level:"warning",message:f}),bE()}}queueForwardStillValid(a,b,c,d){return!!this._alive&&this.queueEpoch===a&&this.proc===b&&(!c||this._sessionId===c)&&this.messageQueue.getSnapshot().items.some(a=>a.id===d&&"sending"===a.status)}async forwardNativeHandoff(a,b){this.nativeHandoffPending+=1,b&&(this.nativeFollowUpDepth+=1);try{var c;let d=await this.proc.sendCommand(a);return b&&(c=d)&&"object"==typeof c&&!1===c.agentInvoked&&(this.nativeFollowUpDepth=Math.max(0,this.nativeFollowUpDepth-1)),d}catch(a){throw b&&(this.nativeFollowUpDepth=Math.max(0,this.nativeFollowUpDepth-1)),a}finally{this.nativeHandoffPending=Math.max(0,this.nativeHandoffPending-1),this.scheduleQueueDispatch()}}destroy(){this.destroyAndWait()}async destroyAndWait(){if(this.destroyPromise)return this.destroyPromise;if(!this._alive)return;this._alive=!1,this.queueEpoch+=1,this.abortHoldsDispatch=!0,this.discardQueue("Queued messages were discarded because the session shut down."),this.idleTimer&&clearTimeout(this.idleTimer),this.sessionFileSignalTimer&&(clearTimeout(this.sessionFileSignalTimer),this.sessionFileSignalTimer=null),this.unsubscribeFrames?.(),this.clearPendingUiRequests(),this.mcpListWaiter&&(clearTimeout(this.mcpListWaiter.timer),this.mcpListWaiter.reject(Error("Session was closed while loading MCP servers")),this.mcpListWaiter=null);let a=this.proc.dispose().catch(()=>{}).then(()=>{for(let[a,b]of bz())b===this&&bz().delete(a)});for(let b of(this.destroyPromise=a,this.pendingHostTools.clear(),this.hostToolNames.clear(),this.pendingHostUris.clear(),this.hostUriSchemes.clear(),this.destroyListeners.splice(0)))try{b()}catch{}bE(),await a}}function bz(){if(!globalThis.__ompSessions){globalThis.__ompSessions=new Map;let a=()=>globalThis.__ompSessions?.forEach(a=>a.destroy());process.once("exit",a),process.once("SIGINT",a),process.once("SIGTERM",a)}return globalThis.__ompSessions}function bA(a){return bz().get(a)}function bB(){let a=new Set;for(let[b,c]of bz())c.isRunning()&&a.add(c.sessionId||b);return[...a]}async function bC(){let a=[...new Set(bz().values())];return await Promise.all(a.map(a=>a.destroyAndWait())),a.length}let bD="";function bE({refreshSessionList:a=!1}={}){let b=bB(),c=JSON.stringify([...b].sort());if(c===bD&&!a)return;bD=c;let d={ids:b,refreshSessionList:a};for(let a of(globalThis.__ompRunningListeners||(globalThis.__ompRunningListeners=new Set),globalThis.__ompRunningListeners))try{a(d)}catch{}}async function bF(a,b,c,d,e=!1,f){let g=bz(),h=(globalThis.__ompStartLocks||(globalThis.__ompStartLocks=new Map),globalThis.__ompStartLocks),i=g.get(a);for(;i&&!i.isAlive()&&i.destroyPromise;)await i.destroyPromise,i=g.get(a);if(i?.isAlive())return{session:i,realSessionId:a};let j=h.get(a);if(j)return j;let k=(async()=>{let a={},h=new by(new ax.X({cwd:c,extraArgs:bt(b,d,e),onExit:({stderrTail:b})=>a.wrapper?.handleProcessExit(b)}),c,f);a.wrapper=h,h.start();try{await h.waitUntilReady()}catch(a){throw await h.destroyAndWait(),a}let i=h.sessionId;return h.onIdentityChange((a,b)=>{g.get(a)===h&&g.delete(a),g.set(b,h)}),g.set(i,h),{session:h,realSessionId:i}})().finally(()=>h.delete(a));return h.set(a,k),k}class bG extends Error{constructor(a,b){super(b),this.name="RelaySessionError",this.code=a}}function bH(a){return{id:a.id,cwd:a.cwd,...a.name?{name:a.name}:{},created:a.created,modified:a.modified,messageCount:a.messageCount,firstMessage:a.firstMessage,...a.parentSessionId?{parentSessionId:a.parentSessionId}:{},...a.projectRoot?{projectRoot:a.projectRoot}:{},...a.projectKey?{projectKey:a.projectKey}:{},...a.worktreeBranch?{worktreeBranch:a.worktreeBranch}:{}}}async function bI(){return{sessions:(await (0,al.dQ)()).map(bH),runningIds:bB()}}async function bJ(a,b){let c=a=>{if("tool_execution_update"===a.type||"tool_execution_end"===a.type){let c=a.result??a.partialResult;if("object"==typeof c&&null!==c){let d=aB([{...c,role:"toolResult",toolCallId:a.toolCallId,toolName:a.toolName}]).messages[0];if(d){let c=!0===d.truncated||(d.deferredImages?.count??0)>0,e={...d,contentPending:c};delete e.entryId,d.deferredImages&&(e.deferredImages={count:d.deferredImages.count});let f={...a,contentPending:c};delete f.result,delete f.partialResult,f["tool_execution_end"===a.type?"result":"partialResult"]=e,b(f);return}}}if(("message_start"===a.type||"message_end"===a.type)&&a.message){let c=aB([a.message]).messages[0];if(c)return void b({...a,entryId:c.entryId,message:c})}b(a)},d=await (0,al.os)(a);if(!d){let d=bA(a);if(!d?.isAlive())throw new bG("session_not_found","Session not found");let e=await d.send({type:"get_state"}),f=await d.send({type:"get_messages"});if("object"!=typeof f||null===f||!("messages"in f)||!Array.isArray(f.messages))throw new bG("rpc_command_failed","Live session transcript is unavailable");let g=aB(f.messages);if(!d.isAlive()||bA(a)!==d)throw new bG("session_not_found","Session not found");let h=!1,i=d.onEvent(b=>{h||d.sessionId!==a||bA(a)!==d||c(b)}),j=d.onDestroy(()=>{h||d.sessionId!==a||b({type:"session_closed",sessionId:a})});return b({type:"connected",sessionId:a}),{snapshot:{cwd:d.cwd,leafId:null,...g,agent:{running:d.isRunning(),ready:!0,state:e}},dispose:()=>{h||(h=!0,i(),j())}}}let e=(0,al.cr)(d);if("too_large"===e.error)throw new bG("session_file_too_large","Session file is too large to open in ompgui");if(!e.header)throw new bG("session_file_malformed","Session file is missing or malformed");let f=e.entries,g=(0,az.kT)(f),h=(0,al.Uv)(f,g,{deferThinking:!1,deferToolResultImages:!1}),i=aB(h.messages,h.entryIds),j=bA(a),k=!!j?.isAlive(),l={running:!!j?.isRunning(),ready:k};if(j?.isAlive())try{l={running:j.isRunning(),ready:!0,state:await j.send({type:"get_state"})}}catch{l={running:j.isRunning(),ready:!0}}let m=null,n=null,o=!1;return b({type:"connected",sessionId:a}),(async()=>{try{let e=j?.isAlive()?j:void 0;if(!e){let b=(0,al.eP)(d),{cwd:c}=bw(b?.cwd);({session:e}=await bF(a,d,c,void 0,!1,b?.cwd))}if(o||e.sessionId!==a)return;let f=e;m=f.onEvent(b=>{o||f.sessionId!==a||bA(a)!==f||c(b)}),n=f.onDestroy(()=>{o||f.sessionId!==a||b({type:"session_closed",sessionId:a})})}catch(a){o||b({type:"notice",level:"error",message:`Failed to start agent: ${a instanceof Error?a.message:String(a)}`})}})(),{snapshot:{...e.header.title?{title:e.header.title}:{},...e.header.cwd?{cwd:e.header.cwd}:{},leafId:g,...i,agent:l},dispose:()=>{o||(o=!0,m?.(),n?.())}}}async function bK(a,b,c){let d=bA(a);if(d?.isAlive())return d.send(c?c():b);if("extension_ui_response"===b.type)throw new bG("dialog_not_pending","This dialog is no longer pending in this session");let e=await (0,al.os)(a);if(!e)throw new bG("session_not_found","Session not found");let f=(0,al.eP)(e),{cwd:g}=bw(f?.cwd);try{let{session:d}=await bF(a,e,g,void 0,!1,f?.cwd);return await d.send(c?c():b)}catch(a){if(a instanceof bl||a instanceof ax.x||a instanceof bG)throw a;throw new bG("rpc_command_failed",a instanceof Error?a.message:String(a))}}let bL=(0,aw.promisify)(au.execFile);async function bM(a){let b=await (0,al.os)(a);if(!b)throw new bG("session_not_found","Session not found");let c=(0,al.cr)(b);if("too_large"===c.error)throw new bG("session_file_too_large","Session file is too large to open in ompgui");if(!c.header)throw new bG("session_file_malformed","Session file is missing or malformed");let d=c.entries;return{filePath:b,document:c,entries:d}}async function bN(a){let{entries:b}=await bM(a),c=[];return!function a(b,c){for(let d of b){if(c.length>=40)return;if(0===d.children.length){let a=function(a){if("message"!==a.type||!("message"in a)||!a.message)return{label:a.type};let b="content"in a.message?a.message.content:void 0,c="string"==typeof b?b:Array.isArray(b)?b.filter(a=>"object"==typeof a&&null!==a&&"type"in a&&"text"===a.type&&"text"in a&&"string"==typeof a.text).map(a=>a.text).join(" "):"";(c=c.replace(/\s+/g," ").trim()).length>40&&(c=`${c.slice(0,40)}…`);let d="user"===a.message.role||"assistant"===a.message.role?a.message.role:void 0;return c||(c="assistant"===d?"assistant":"message"),{label:c,...d?{role:d}:{}}}(d.entry);c.push({id:d.entry.id,label:(d.label?.trim()||a.label).slice(0,40),...a.role?{role:a.role}:{}});continue}a(d.children,c)}}((0,az.lc)(b),c),{id:a,leafId:(0,az.kT)(b),branches:c}}async function bO(a,b){let{document:c,entries:d}=await bM(a);if(!new Set(d.map(a=>a.id)).has(b))throw new bG("unknown_leaf","Unknown conversation branch");let e=(0,al.Uv)(d,b,{deferThinking:!1,deferToolResultImages:!1}),f=aB(e.messages,e.entryIds);return{...c.header?.title?{title:c.header.title}:{},...c.header?.cwd?{cwd:c.header.cwd}:{},leafId:b,...f,agent:{running:!1,ready:!1}}}async function bP(a,b){var c;let d,e=bR.get(b);void 0===e&&(e=Symbol(),bR.set(b,e));let{filePath:f}=await bM(a),g=await bS(f);if(bR.get(b)!==e)throw new bG("export_cancelled","Export owner disconnected or was revoked");let h=Buffer.byteLength(g,"utf8"),i=(0,P.basename)(f,".jsonl"),j=`omp-session-${i}.html`;if(h<=8e4)return{id:a,fileName:j,bytes:h,html:g};let k=(c={deviceId:b,fileName:j,html:g,bytes:h},!function(a=Date.now()){for(let[b,c]of bQ)c.expiresAt<=a&&bQ.delete(b);for(;bQ.size>=8;){let a=bQ.keys().next();if(a.done)break;bQ.delete(a.value)}}(),d=(0,L.randomUUID)(),bQ.set(d,{deviceId:c.deviceId,transferId:d,fileName:c.fileName,bytes:Buffer.from(c.html,"utf8"),size:c.bytes,expiresAt:Date.now()+9e5}),{transferId:d});return{id:a,fileName:j,bytes:h,transferId:k.transferId,size:h}}let bQ=new Map,bR=new Map;async function bS(a){let b=(0,ay.resolveOmpBin)();if(!b)throw new bG("omp_not_found","omp binary not found. Install oh-my-pi or set OMP_WEB_OMP_BIN.");let c=(0,P.join)((0,av.tmpdir)(),"ompgui-export");(0,O.mkdirSync)(c,{recursive:!0});let d=(0,P.join)(c,`${(0,L.randomUUID)()}.html`);try{return await bL(b,["--export",a,d],{cwd:(0,av.tmpdir)(),timeout:6e4,maxBuffer:4194304,windowsHide:!0}),(0,O.readFileSync)(d,"utf8")}finally{(0,O.rmSync)(d,{force:!0})}}var bT=c(79646),bU=c(28354);let bV={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif"},bW={mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",opus:"audio/ogg",m4a:"audio/mp4",aac:"audio/aac",flac:"audio/flac",weba:"audio/webm",webm:"audio/webm"},bX={pdf:"application/pdf",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};function bY(a){return(a.replace(/\\/g,"/").split("/").pop()??"").toLowerCase().split(".").pop()??""}let bZ=new Set(["DD","AU","UD","UA","DU","AA","UU"]);function b$(a){let b=`${a.indexStatus}${a.worktreeStatus}`;return"??"===b?{status:"untracked",code:"U"}:bZ.has(b)||b.includes("U")?{status:"conflict",code:"C"}:b.includes("D")?{status:"deleted",code:"D"}:b.includes("R")||b.includes("C")?{status:"renamed",code:"R"}:b.includes("A")?{status:"added",code:"A"}:{status:"modified",code:"M"}}let b_=(0,bU.promisify)(bT.execFile);async function b0(a,b,c=8388608){let{stdout:d}=await b_("git",["-C",a,...b],{timeout:1e4,maxBuffer:c,env:{...process.env,LC_ALL:"C"}});return d}async function b1(a){try{return(await b0(a,["rev-parse","--show-toplevel"])).trim()||null}catch{return null}}function b2(a,b){let c=ar().relative(ar().resolve(a),ar().resolve(b));return""===c||!c.startsWith(`..${ar().sep}`)&&".."!==c&&!ar().isAbsolute(c)}async function b3(a){return function(a){let b=a.split("\0"),c=[];for(let a=0;a<b.length;a++){let d=b[a];if(!d||d.length<4||" "!==d[2])continue;let e=d[0],f=d[1],g={path:d.slice(3),indexStatus:e,worktreeStatus:f};("R"===e||"C"===e||"R"===f||"C"===f)&&(g.originalPath=b[++a]||void 0),c.push(g)}return c}(await b0(a,["status","--porcelain=v1","-z","--untracked-files=all"]))}async function b4(a){let b=await b1(a);if(!b)return{isGitRepository:!1,repositoryRoot:null,files:[]};let c=(await b3(b)).flatMap(c=>{let d=ar().resolve(b,c.path);return b2(a,d)?[{filePath:d,...b$(c),indexStatus:c.indexStatus,worktreeStatus:c.worktreeStatus}]:[]});return{isGitRepository:!0,repositoryRoot:b,files:c}}function b5(a,b){let c=b.endsWith("\n"),d=b.split("\n");c&&d.pop();let e=d.map(a=>`+${a}`).join("\n"),f=!c&&d.length>0?"\n\":"";return`diff --git a/${a} b/${a}
3
3
  new file mode 100644
4
4
  --- /dev/null
@@ -64,23 +64,23 @@ ${d}
64
64
  </body>
65
65
  </html>`);if(void 0!==c&&Buffer.byteLength(l,"utf8")>c)throw new gv("preview_too_large","Rendered document is too large for preview",413);try{if(gx((0,O.statSync)(a,{bigint:!0}))!==g)throw new gv("stale_revision","File changed during conversion",409)}catch(a){if(a instanceof gv)throw a;throw new gv("stale_revision","File changed during conversion",409)}return{revision:g,html:l}}let gz=new Set,gA=new Set(["node_modules",".git",".next","dist","build","__pycache__",".turbo",".cache","coverage",".pytest_cache",".mypy_cache","target","vendor",".DS_Store"]),gB=new Set(["auto","minimal","low","medium","high","xhigh","max"]);async function gC(){let a=function(a,b){let c=new Set(a.projects.filter(a=>a.hidden).map(a=>ca(a.path))),d=[],e=new Set;for(let b of a.projects.filter(a=>!a.hidden).sort((a,b)=>b.addedAt.localeCompare(a.addedAt))){let a=ca(b.path);e.has(a)||(e.add(a),d.push({path:b.path,addedAt:b.addedAt}))}let f=[],g=new Set;for(let a of new Set([...b].filter(Boolean).map(cg))){let b=ca(a);c.has(b)||e.has(b)||g.has(b)||(g.add(b),f.push({path:a}))}return f.sort((a,b)=>a.path.localeCompare(b.path)),[...d,...f]}(ch(),(await (0,al.dQ)()).map(a=>a.projectRoot??a.cwd).filter(a=>!!a));for(let b of a)(0,aj.wz)(b.path);return a.map(a=>({path:a.path,name:(0,P.basename)(a.path)||a.path,...a.addedAt?{addedAt:a.addedAt}:{}}))}async function gD(a,b=0,c=100){let d,e,f=await am(),g=(a??"").trim(),h=g?(0,P.resolve)(g):[...f][0]??(0,av.homedir)();if(!an(h,f))throw new bG("access_denied","Path is outside allowed workspaces");try{d=(0,O.statSync)(h)}catch{throw new bG("path_not_found","Path not found")}if(!d.isDirectory())throw new bG("not_a_directory","Path is not a directory");let i=[];try{e=(0,O.readdirSync)(h,{withFileTypes:!0})}catch{throw new bG("access_denied","Could not read directory")}let j=(0,O.realpathSync)(h);for(let a of[...e].sort((a,b)=>a.name.localeCompare(b.name))){if(gA.has(a.name)||a.name.endsWith(".pyc"))continue;let b=(0,P.join)(h,a.name);if(gz.has(b)||gz.has((0,P.join)(j,a.name))||!an(b,f))continue;let c=function(a,b){if(a.isDirectory())return!0;if(a.isFile())return!1;try{return ap().statSync(b).isDirectory()}catch{return null}}(a,b);null!==c&&i.push({name:a.name,path:b,dir:c})}let k=gJ(b,c);return{path:h,entries:i.slice(k.offset,k.offset+k.limit),total:i.length,...k,hasMore:k.offset+k.limit<i.length}}function gE(){return ck.map(a=>({name:a.name,requiresArgs:a.requiresArgs,hint:a.name}))}async function gF(a){let b;try{b=cj(a.cwd)}catch(a){if(a instanceof ce)throw new bG(a.code,a.message);throw a}if(!(0,O.existsSync)(b))throw new bG("directory_not_found",`Directory does not exist: ${b}`);let c=a.message?.trim()??"";if(c.length>3145728)throw new bG("invalid_command","prompt message is too long");let d=a.thinkingLevel?.trim();if(d&&!gB.has(d))throw new bG("invalid_command","Unknown thinking level");let e=a.provider?.trim(),f=a.modelId?.trim();if(e&&!f||!e&&f)throw new bG("invalid_command","set_model requires provider and modelId");let g=`__new__${(0,L.randomUUID)()}`,{session:h,realSessionId:i}=await bF(g,"",b,a.toolNames,a.advisor??!1);return(0,aj.wz)(b),(0,al.mD)(),e&&f&&await h.send({type:"set_model",provider:e,modelId:f}),d&&await h.send({type:"set_thinking_level",level:d}),c&&await h.send({type:"prompt",message:c}),{sessionId:i}}let gG={ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",mjs:"javascript",py:"python",go:"go",rs:"rust",java:"java",kt:"kotlin",json:"json",md:"markdown",yml:"yaml",yaml:"yaml",sh:"bash",css:"css",html:"html",txt:"text"};async function gH(a){let b=await am(),c=(0,P.resolve)(a.trim());if(!an(c,b))throw new bG("access_denied","Path is outside allowed workspaces");return c}async function gI(a,b){let c=await am(),d=(0,O.realpathSync)(await gH(a));if(!an(d,c))throw new bG("access_denied","Path is outside allowed workspaces");try{let a=await gy(d,b,8388608);if(!an(d,c))throw new bG("access_denied","Path is outside allowed workspaces");return{path:d,...a,mime:"text/html"}}catch(a){if(a instanceof gv)throw new bG(a.code,a.message);throw a}}function gJ(a=0,b=100){if(!Number.isSafeInteger(a)||a<0||!Number.isSafeInteger(b)||b<1||b>100)throw new bG("invalid_args","Invalid pagination (limit must be 1–100)");return{offset:a,limit:b}}function gK(a){let b=(0,O.statSync)(a,{bigint:!0});return`${b.dev}:${b.ino}:${b.size}:${b.mtimeNs}:${b.ctimeNs}`}function gL(a){let b=(0,O.openSync)(a,"r");try{let a,c=(0,L.createHash)("sha256"),d=Buffer.allocUnsafe(131072);for(;(a=(0,O.readSync)(b,d,0,d.length,null))>0;)c.update(d.subarray(0,a));return c.digest("hex")}finally{(0,O.closeSync)(b)}}async function gM(a){let b,c=await gH(a),d=(0,O.statSync)(c);if(!d.isFile()&&!d.isDirectory())throw new bG("not_a_file","Unsupported file type");let e=bV[bY(c)]??null,f=bW[bY(c)]??null,g="pdf"===(b=bY(c))||"docx"===b?b:null,h=e?"image":f?"audio":g??"text";if(d.isFile()&&"text"===h){let a=(0,O.openSync)(c,"r");try{let b=Buffer.allocUnsafe(Math.min(d.size,8192)),c=(0,O.readSync)(a,b,0,b.length,0);if(b.subarray(0,c).includes(0))h="binary";else try{new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(b.subarray(0,c),{stream:c<d.size})}catch{h="binary"}}finally{(0,O.closeSync)(a)}}let i=(0,P.basename)(c).toLowerCase().split(".").pop()??"";return{path:c,name:(0,P.basename)(c),size:d.size,mtimeMs:d.mtimeMs,revision:gK(c),kind:d.isDirectory()?"dir":"file",previewKind:h,mime:d.isDirectory()?"inode/directory":e??f??bX[bY(c)]??null??("binary"===h?"application/octet-stream":({json:"application/json",html:"text/html",css:"text/css",csv:"text/csv",js:"text/javascript",mjs:"text/javascript",xml:"application/xml",md:"text/markdown"})[i]??"text/plain")}}function gN(a,b){let c=Math.min(a.length,b);if(c<a.length)for(;c>0&&(192&a[c])==128;)c--;return a.subarray(0,c)}async function gO(a,b,c,d=98304){let e,f,g=await gM(a);if("file"!==g.kind)throw new bG("not_a_file","Path is not a file");if("text"!==g.previewKind)throw Object.assign(new bG("use_download","Use download for this file"),{details:{meta:g}});if(g.revision!==b)throw new bG("stale_revision","File changed; reload before continuing");if(!Number.isSafeInteger(c)||c<0||c>g.size||!Number.isSafeInteger(d)||d<4||d>98304)throw new bG("invalid_args","Invalid read range");let h=(0,O.openSync)(g.path,"r");try{let a=Buffer.allocUnsafe(Math.min(d+4,g.size-c)),b=(0,O.readSync)(h,a,0,a.length,c);e=gN(a.subarray(0,b),d)}finally{(0,O.closeSync)(h)}try{f=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(e)}catch{throw Object.assign(new bG("use_download","File is not UTF-8 text"),{details:{meta:{...g,previewKind:"binary",mime:"application/octet-stream"}}})}let i=c+e.length,j=i===g.size,k=j?gL(g.path):void 0;if(gK(g.path)!==b)throw new bG("stale_revision","File changed during read");return{text:f,nextOffset:i,complete:j,...k?{contentHash:k}:{}}}async function gP(a){let b=await gM(a),c=await gO(b.path,b.revision,0),d=b.name.toLowerCase().split(".").pop()??"";return{path:b.path,name:b.name,language:gG[d]??"text",revision:b.revision,size:b.size,bytes:b.size,encoding:"utf8",truncated:!c.complete,...c}}async function gQ(a){let b=(0,P.resolve)(a.trim()),c=await (0,cd.ew)(b,await am());if(!c)throw new bG("access_denied","Path is outside allowed workspaces");let{project:d,listingCwd:e}=c,f=[],g=null,h=!0;try{f=await (0,cd.P9)(e),g=(0,cd.xw)(f,b)}catch{h=!1}for(let a of f)(0,aj.wz)(a.path);return{cwd:b,projectRoot:d.projectRoot,isGit:h,currentWorktreePath:g,worktrees:f.map(a=>({path:a.path,branch:a.branch,isMain:a.isMain}))}}async function gR(a,b,c,d,e=!1){let f=await am(),g=(0,P.resolve)(a.trim()),h=(0,P.dirname)(g);if(!an(h,f))throw new bG("access_denied","Path is outside allowed workspaces");let i=(0,O.realpathSync)(h),j=(0,P.join)(i,(0,P.basename)(g)),k=384,l=!1,m=()=>{let a;if((0,O.realpathSync)(h)!==i||!an(h,f))throw new bG("access_denied","Directory changed");try{a=(0,O.lstatSync)(j)}catch(a){if(!(a instanceof Error&&"code"in a&&"ENOENT"===a.code))throw a}if(a){if(!a.isFile()||a.isSymbolicLink())throw new bG("not_a_file","Cannot replace a directory or symbolic link");if(!an(j,f))throw new bG("access_denied","Path is outside allowed workspaces");if(!c||!d)throw new bG("revision_required","Read the complete file before saving");let b=gK(j);if(b!==c||gL(j)!==d||gK(j)!==b)throw new bG("stale_revision","File changed; your edits were not written");return k=4095&a.mode,!0}if(c||d||!e)throw new bG("stale_revision","File is missing; explicit creation is required");return!1};l=m();let n=(0,P.join)(i,`.relay-save-${(0,L.randomUUID)()}`),o=(0,O.openSync)(n,O.constants.O_CREAT|O.constants.O_EXCL|O.constants.O_WRONLY,k);try{(0,O.writeFileSync)(o,b,"utf8"),(0,O.chmodSync)(n,k),(0,O.fsyncSync)(o)}catch(a){throw(0,O.unlinkSync)(n),a}finally{(0,O.closeSync)(o)}try{if(m()!==l)throw new bG("stale_revision","File changed before save");l?(0,O.renameSync)(n,j):((0,O.linkSync)(n,j),(0,O.unlinkSync)(n));let a=(0,O.openSync)(i,"r");try{(0,O.fsyncSync)(a)}finally{(0,O.closeSync)(a)}return{path:g,bytes:Buffer.byteLength(b),revision:gK(j),contentHash:gL(j)}}finally{(0,O.existsSync)(n)&&(0,O.unlinkSync)(n)}}async function gS(a,b=0,c=100){let d=await gH(a),e=await b4(d),f=gJ(b,c);return{cwd:d,isGitRepository:e.isGitRepository,repositoryRoot:e.repositoryRoot,total:e.files.length,...f,hasMore:f.offset+f.limit<e.files.length,files:e.files.slice(f.offset,f.offset+f.limit).map(a=>({filePath:(0,P.resolve)(e.repositoryRoot??d,a.filePath),status:a.status,code:a.code}))}}async function gT(a,b){let c=await gH(a),d=(0,P.resolve)(b);if((0,O.existsSync)(d))await gH(d);else{let a=(0,P.dirname)(d);for(;!(0,O.existsSync)(a)&&(0,P.dirname)(a)!==a;)a=(0,P.dirname)(a);await gH(a)}let e=await b7(c,d);if(!e.supported)return{path:d,supported:!1};let f=e.patch??"",g=Buffer.from(f,"utf8"),h=g.length>8e4;return h&&(f=gN(g,8e4).toString("utf8")),{path:d,supported:!0,...e.status?{status:e.status}:{},...f?{patch:f}:{},truncated:h}}async function gU(a,b){let c=await gH(a);if(!(0,O.existsSync)(c))throw new bG("directory_not_found",`Directory does not exist: ${c}`);try{let a=await (0,cd.l)(c,b);return(0,aj.wz)(a.path),a}catch(a){throw new bG("worktree_add_failed",a instanceof Error?a.message:String(a))}}async function gV(a){let b;try{b=cj(a)}catch(a){if(a instanceof ce)throw new bG(a.code,a.message);throw a}let{projectRoot:c}=await (0,cd.KI)(b),d=function(a,b,c=new Date().toISOString()){let d=cg(b),e=ca(d),f=a.projects.filter(a=>ca(a.path)!==e);return f.push({path:d,addedAt:c,hidden:!1}),{version:1,projects:f}}(ch(),c);ci(d),(0,aj.wz)(c);let e=d.projects.find(a=>ca(a.path)===ca(c));return{path:e?.path??c,name:(0,P.basename)(e?.path??c)||c}}async function gW(a){var b;let c,d,e,f,g=a.trim();if(!g)throw new bG("path_required","Path is required");let{projectRoot:h}=await (0,cd.KI)(g);return ci((b=ch(),d=ca(c=cg(h)),e=b.projects.some(a=>ca(a.path)===d),f=b.projects.map(a=>ca(a.path)===d?{...a,hidden:!0}:a),e||f.push({path:c,addedAt:new Date().toISOString(),hidden:!0}),{version:1,projects:f})),{path:h}}let gX=(0,aw.promisify)(au.execFile),gY=new Set(["node_modules",".git",".next","dist","build","__pycache__",".turbo",".cache","coverage",".pytest_cache",".mypy_cache","target","vendor",".DS_Store"]);async function gZ(a){try{let{stdout:b}=await gX("git",["-C",a,"ls-files","--cached","--others","--exclude-standard","-z"],{timeout:1e4,maxBuffer:0x4000000,env:{...process.env,LC_ALL:"C"}});return b.split("\0").filter(Boolean)}catch{}let b=[],c=[{abs:a,rel:"",depth:0}];for(;c.length>0;){let a,d=c.shift();try{a=(0,O.readdirSync)(d.abs,{withFileTypes:!0})}catch{continue}for(let e of a){if(gY.has(e.name)||e.name.endsWith(".pyc"))continue;let a=d.rel?`${d.rel}/${e.name}`:e.name;e.isDirectory()?c.push({abs:(0,P.join)(d.abs,e.name),rel:a,depth:d.depth+1}):e.isFile()&&b.push(a)}}return b}async function g$(a,b,c=0,d=100){let e,f=await gH(a);try{e=(0,O.statSync)(f)}catch{throw new bG("directory_not_found","Directory not found")}if(!e.isDirectory())throw new bG("not_a_directory","Not a directory");let g=function(a){let b=new Set;for(let c of a){let a=c.indexOf("/");for(;-1!==a;)b.add(c.slice(0,a)),a=c.indexOf("/",a+1)}let c=[];for(let a of b)c.push({path:a,isDir:!0});for(let b of a)b&&c.push({path:b,isDir:!1});return c.sort((a,b)=>cb(a.path)-cb(b.path)||a.path.localeCompare(b.path)),c}(await gZ(f)),h=function(a,b,c=20){let d=b.toLowerCase();if(!d)return a.slice(0,c);let e=[];for(let b of a){let a=function(a,b){let c=a.path.toLowerCase(),d=0;if(b.includes("/"))c===b?d=100:c.startsWith(b)?d=80:c.includes(b)?d=50:cc(b,c)&&(d=10);else{let a=c.lastIndexOf("/"),e=-1===a?c:c.slice(a+1);e===b?d=100:e.startsWith(b)?d=80:e.includes(b)?d=50:c.includes(b)?d=30:cc(b,c)&&(d=10)}return a.isDir&&d>0&&(d+=10),d}(b,d);a>0&&e.push({entry:b,score:a})}return e.sort((a,b)=>b.score-a.score||cb(a.entry.path)-cb(b.entry.path)||a.entry.path.localeCompare(b.entry.path)),e.slice(0,c).map(a=>a.entry)}(g,b,g.length),i=gJ(c,d);return{cwd:f,query:b,total:h.length,...i,hasMore:i.offset+i.limit<h.length,matches:h.slice(i.offset,i.offset+i.limit).map(a=>({path:a.path,...a.isDir?{isDir:!0}:{}}))}}function g_(a){let b=0;for(let c of g0.values())c.deviceId===a&&b++;if(g0.size>=128||b>=16)throw new bG("transfer_quota","File transfer quota exceeded")}let g0=new Map;function g1(a){let b=g0.get(a);if(b&&(g0.delete(a),clearTimeout(b.timer),"upload"===b.kind)){gz.delete(b.temp);try{b.fd>=0&&(0,O.closeSync)(b.fd)}catch{}b.fd=-1;try{(0,O.unlinkSync)(b.temp)}catch(a){a instanceof Error&&"code"in a&&"ENOENT"===a.code||console.warn("Relay upload staging cleanup failed",a)}}}function g2(a,b,c=!1){let d=a[b];if(void 0!==d||!c){if("string"!=typeof d||"text"!==b&&"query"!==b&&"data"!==b&&0===d.length||d.includes("\0"))throw new bG("invalid_args",`Invalid ${b}`);return d}}function g3(a,b,c=!1,d=Number.MAX_SAFE_INTEGER){let e=a[b];if(void 0!==e||!c){if("number"!=typeof e||!Number.isSafeInteger(e)||e<0||e>d)throw new bG("invalid_args",`Invalid ${b}`);return e}}function g4(a,b,c){let d=g0.get(a);if(!d||d.deviceId!==b||d.kind!==c)throw new bG("transfer_not_found","File transfer not found");if(Date.now()>=d.expiresAt)throw g1(a),new bG("transfer_expired","File transfer expired");return d}async function g5(a,b){let c=await am();if(!an(a,c))throw new bG("path_not_allowed","Upload directory is not allowed");let d=(0,O.realpathSync)(a);if(d!==a||!(0,O.lstatSync)(d).isDirectory())throw new bG("path_not_allowed","Upload directory changed");let e=Q().join(d,b),f=at(d,[b]);if(f.nonReplaceable.length)throw new bG("invalid_target","Upload destination must be a regular file, not a directory or symlink");if(f.conflicts.length&&!an(e,c))throw new bG("path_not_allowed","Upload destination is not allowed");return e}let g6=async(a,b,c)=>{switch(a){case"list":return{...await gD(g2(b,"path",!0),g3(b,"offset",!0),g3(b,"limit",!0))};case"search":return{...await g$(g2(b,"cwd"),g2(b,"query"),g3(b,"offset",!0),g3(b,"limit",!0))};case"meta":return{...await gM(g2(b,"path"))};case"preview":return{...await gI(g2(b,"path"),g2(b,"revision",!0))};case"read":return{...await gP(g2(b,"path"))};case"readChunk":return{...await gO(g2(b,"path"),g2(b,"revision"),g3(b,"offset"),g3(b,"length",!0,131072))};case"write":if(void 0!==b.createIfMissing&&"boolean"!=typeof b.createIfMissing)throw new bG("invalid_args","Invalid createIfMissing");return{...await gR(g2(b,"path"),g2(b,"text"),g2(b,"revision",!0),g2(b,"baseContentHash",!0),b.createIfMissing)};case"gitStatus":return{...await gS(g2(b,"cwd"),g3(b,"offset",!0),g3(b,"limit",!0))};case"gitDiff":return{...await gT(g2(b,"cwd"),g2(b,"path"))};case"uploadBegin":{let a,d=g2(b,"file");if(function(a){if(0===a.length)return"No files selected";let b=new Set;for(let c of a){if(!c||"."===c||".."===c||c.includes("\0"))return`Invalid file name: ${c||"(empty)"}`;if(c.includes("/")||c.includes("\\")||ar().basename(c)!==c)return`File names must not contain a path: ${c}`;let a="win32"===process.platform?c.toLocaleLowerCase():c;if(b.has(a))return`Duplicate file name in upload: ${c}`;b.add(a)}return null}([d]))throw new bG("invalid_args","Invalid upload file name");let e=g3(b,"size",!1,0x1900000),f=(a=g2(b,"conflict",!0)??null??"error",as.has(a)?a:null);if(!f)throw new bG("invalid_args","Invalid conflict strategy");let g=(0,O.realpathSync)(await gH(g2(b,"dir"))),h=await g5(g,d);if(at(g,[d]).conflicts.length&&"overwrite"!==f){if("skip"===f)return{skipped:!0,path:h,name:d,bytes:e};throw Object.assign(new bG("upload_conflict","Upload destination already exists"),{details:{conflicts:[d]}})}c.assertActive?.(),g_(c.deviceId);let i=(0,L.randomUUID)(),j=Q().join(g,`.relay-upload-${(0,L.randomUUID)()}.tmp`),k=(0,O.openSync)(j,"wx",384);gz.add(j);let l=Date.now()+3e5,m=setTimeout(()=>{g1(i)},3e5);return m.unref(),g0.set(i,{kind:"upload",deviceId:c.deviceId,expiresAt:l,timer:m,path:h,directory:g,name:d,temp:j,fd:k,size:e,received:0,conflict:f}),{transferId:i,path:h,name:d,bytes:e,size:e,chunkSize:131072,expiresAt:l}}case"uploadChunk":case"uploadComplete":case"uploadAbort":{let d=g2(b,"transferId"),e=g4(d,c.deviceId,"upload");if("upload"!==e.kind)throw new bG("transfer_not_found","Upload not found");try{if("uploadAbort"===a)return g1(d),{aborted:!0};if("uploadChunk"===a){let a=g3(b,"offset"),c=g2(b,"data");if(a!==e.received)throw new bG("invalid_offset","Upload chunks must be sequential");if(c.length>4*Math.ceil(131072/3)||!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(c))throw new bG("invalid_chunk","Invalid base64 upload chunk");let f=Buffer.from(c,"base64");if(f.toString("base64")!==c||0===f.length||f.length>131072||e.received+f.length>e.size)throw new bG("invalid_chunk","Invalid upload chunk size or encoding");let g=0;for(;g<f.length;){let a=(0,O.writeSync)(e.fd,f,g,f.length-g,e.received+g);if(0===a)throw new bG("upload_failed","Upload write made no progress");g+=a}return e.received+=g,{transferId:d,received:e.received,nextOffset:e.received,complete:e.received===e.size}}if(e.received!==e.size)throw new bG("size_mismatch","Upload is incomplete");let f=g2(b,"sha256",!0);if(void 0!==f&&(!/^[a-fA-F0-9]{64}$/.test(f)||gL(e.temp).toLowerCase()!==f.toLowerCase()))throw new bG("hash_mismatch","Upload checksum mismatch");await g5(e.directory,e.name),g4(d,c.deviceId,"upload");let g=at(e.directory,[e.name]);if(g.conflicts.length&&"overwrite"!==e.conflict){if("skip"===e.conflict)return g1(d),{skipped:!0,path:e.path,name:e.name,bytes:e.size};throw Object.assign(new bG("upload_conflict","Upload destination already exists"),{details:{conflicts:[e.name]}})}if(g.conflicts.length&&(0,O.fchmodSync)(e.fd,4095&(0,O.lstatSync)(e.path).mode),(0,O.fsyncSync)(e.fd),(0,O.closeSync)(e.fd),e.fd=-1,g.conflicts.length&&"overwrite"===e.conflict)(0,O.renameSync)(e.temp,e.path);else{try{(0,O.linkSync)(e.temp,e.path)}catch(a){if(a instanceof Error&&"code"in a&&"EEXIST"===a.code){if(at(e.directory,[e.name]).nonReplaceable.length)throw new bG("invalid_target","Upload destination must be a regular file, not a directory or symlink");if("skip"===e.conflict)return g1(d),{skipped:!0,path:e.path,name:e.name,bytes:e.size};throw Object.assign(new bG("upload_conflict","Upload destination already exists"),{details:{conflicts:[e.name]}})}throw a}(0,O.unlinkSync)(e.temp)}let h=(0,O.openSync)(e.directory,O.constants.O_RDONLY);try{(0,O.fsyncSync)(h)}finally{(0,O.closeSync)(h)}return g1(d),{path:e.path,name:e.name,bytes:e.size,revision:gK(e.path),contentHash:gL(e.path)}}catch(a){if(g1(d),a instanceof bG)throw a;throw new bG("upload_failed","File upload failed")}}case"downloadBegin":{let a=await gH(g2(b,"path")),d=await gM(a);if("file"!==d.kind)throw new bG("invalid_target","Download target must be a file");if(d.size>0x6400000)throw new bG("file_too_large","Download exceeds 100 MiB");c.assertActive?.(),g_(c.deviceId);let e=(0,L.randomUUID)(),f=Date.now()+3e5,g=setTimeout(()=>{g1(e)},3e5);return g.unref(),g0.set(e,{kind:"download",deviceId:c.deviceId,expiresAt:f,timer:g,path:a,size:d.size,revision:d.revision}),{...d,transferId:e,bytes:d.size,chunkSize:131072,expiresAt:f}}case"downloadChunk":case"downloadClose":{let d=g2(b,"transferId");if("downloadClose"===a&&!g0.has(d))return{closed:!0};let e=g4(d,c.deviceId,"download");if("download"!==e.kind)throw new bG("transfer_not_found","Download not found");try{let f;if("downloadClose"===a)return g1(d),{closed:!0};let g=g3(b,"offset"),h=g3(b,"length",!0,131072)??131072;if(0===h||g>e.size)throw new bG("invalid_offset","Invalid download range");if(await gH(e.path),g4(d,c.deviceId,"download"),gK(e.path)!==e.revision)throw new bG("stale_revision","Download file changed");let i=(0,O.openSync)(e.path,O.constants.O_RDONLY|O.constants.O_NOFOLLOW);try{if(!(0,O.fstatSync)(i).isFile())throw new bG("invalid_target","Download target must be a file");f=Buffer.alloc(Math.min(h,e.size-g));let a=0;for(;a<f.length;){let b=(0,O.readSync)(i,f,a,f.length-a,g+a);if(!b)throw new bG("stale_revision","Download file changed");a+=b}let b=(0,O.fstatSync)(i),c=(0,O.lstatSync)(e.path);if(b.dev!==c.dev||b.ino!==c.ino||b.size!==e.size||gK(e.path)!==e.revision)throw new bG("stale_revision","Download file changed")}finally{(0,O.closeSync)(i)}let j=g+f.length;return j===e.size&&g1(d),{transferId:d,path:e.path,revision:e.revision,offset:g,data:f.toString("base64"),nextOffset:j,complete:j===e.size}}catch(a){if(g1(d),a instanceof bG)throw a;throw new bG("download_failed","File download failed")}}default:throw new bG("unknown_action","Unknown files action")}};var g7=c(84157);function g8(a){return(0,aq.join)((0,aq.dirname)(a),(0,aq.basename)(a,".jsonl"))}class g9 extends Error{}function ha(a,b,c,d,e=!1){let f,g,h;try{f=(0,ao.realpathSync)(g8(a))}catch{return null}let i=d?(0,aq.resolve)(f,d):(0,aq.join)(f,`${b}${c}`);try{g=(0,ao.realpathSync)((0,aq.dirname)(i))}catch{return null}if(g!==f){if(e)throw new g9("Subagent artifact is outside the parent session artifact directory");return null}try{h=(0,ao.realpathSync)(i)}catch{return null}if((0,aq.dirname)(h)!==f){if(e)throw new g9("Subagent artifact is outside the parent session artifact directory");return null}try{if(!(0,ao.statSync)(h).isFile())return null}catch{return null}return h}function hb(a){if("string"!=typeof a)return;let b=/^<task-result id="([A-Za-z0-9_-]+)" agent="[^"\r\n]+" status="(completed|aborted|cancelled|failed(?: \(exit -?\d+\))?)" duration="[^"\r\n]+">\r?\n/.exec(a.slice(0,1024));if(b)return{id:b[1],status:"completed"===b[2]?"completed":"aborted"===b[2]||"cancelled"===b[2]?"aborted":"failed"}}function hc(a){var b,c,d;let e;try{e=(0,al.DK)(a)}catch{return[]}let f=new Map,g=new Map,h=a=>{let b=f.get(a.id);b?f.set(a.id,{...b,...a,result:a.result??("started"===a.status&&"started"!==b.status?void 0:b.result)}):f.set(a.id,a)},i=(a,b,c)=>{let d=f.get(a);d&&f.set(a,{...d,status:b,result:d.status===b?d.result:void 0,durationMs:c??d.durationMs})};for(let a of e){if("custom_message"===a.type){let b=(0,S.u4)(a.details)?a.details:void 0;if("async-result"===a.customType&&b&&Array.isArray(b.jobs)&&"string"==typeof a.content){let c=/^<system-notice>\r?\nBackground job ([A-Za-z0-9_-]+) has (?:completed|failed|been cancelled|been canceled). Resume your work using the result below.\r?\n/.exec(a.content.slice(0,512));if(c){let d=hb(a.content.slice(c[0].length,c[0].length+1024)),e=b.jobs.find(a=>(0,S.u4)(a)&&"task"===a.type&&a.jobId===c[1]);d&&d.id===c[1]&&(0,S.u4)(e)&&i(d.id,d.status,(0,S.i)(e.durationMs))}else if(/^<system-notice>\r?\n\d+ background jobs have completed\. Resume your work using the results below\.\r?\n/.test(a.content.slice(0,512))){let c=a.content.slice(0,hd);for(let a of b.jobs){if(!(0,S.u4)(a)||"task"!==a.type||"string"!=typeof a.jobId||"string"!=typeof a.label||/[\r\n]/.test(a.label))continue;let b=`
66
66
  ── Job ${a.jobId} (${a.label}) ──
67
- `,d=c.indexOf(b);if(d<0||c.indexOf(b,d+b.length)>=0)continue;let e=hb(c.slice(d+b.length,d+b.length+1024));e?.id===a.jobId&&i(e.id,e.status,(0,S.i)(a.durationMs))}}}else if("irc:incoming"===a.customType&&b?.wakeRelay===!0){let a=hb(b.message);a&&b.from===a.id&&i(a.id,a.status)}continue}if("message"!==a.type||a.message?.role!=="toolResult")continue;let d=a.message,e=(0,S.u4)(d.details)?d.details:{};if("hub"===d.toolName&&Array.isArray(e.jobs)){for(let a of e.jobs)(0,S.u4)(a)&&"task"===a.type&&"string"==typeof a.id&&("completed"===a.status||"failed"===a.status||"aborted"===a.status?i(a.id,a.status,(0,S.i)(a.durationMs)):"cancelled"===a.status&&i(a.id,"aborted",(0,S.i)(a.durationMs)));continue}if("task"!==d.toolName)continue;let j=(0,S.oJ)(a.message.toolCallId),k=(a,b)=>{let c=g.get(a);j&&g.set(a,j);let d=f.get(a);return"started"===b&&d&&"started"!==d.status&&void 0!==j&&c===j?d.status:b},l=Array.isArray(e.progress)?e.progress:[],m=Array.isArray(e.results)?e.results:[],n=(0,S.u4)(e.async)?e.async:void 0;for(let a of l){let c=function(a){var b,c;if(!(0,S.u4)(a))return;let d={},e=(0,S.i)(a.index);void 0!==e&&(d.index=e);let f=(0,S.oJ)(a.id);void 0!==f&&(d.id=f);let g=(0,S.oJ)(a.agent);void 0!==g&&(d.agent=g);let h="bundled"===(b=a.agentSource)||"user"===b||"project"===b?b:void 0;void 0!==h&&(d.agentSource=h);let i="pending"===(c=a.status)||"running"===c||"completed"===c||"failed"===c||"aborted"===c?c:void 0;void 0!==i&&(d.status=i);let j=(0,S.oJ)(a.task);void 0!==j&&(d.task=j);let k=(0,S.oJ)(a.assignment);void 0!==k&&(d.assignment=k);let l=(0,S.oJ)(a.description);void 0!==l&&(d.description=l);let m=(0,S.oJ)(a.lastIntent);void 0!==m&&(d.lastIntent=m);let n=(0,S.oJ)(a.currentTool);void 0!==n&&(d.currentTool=n);let o=(0,S.oJ)(a.currentToolArgs);void 0!==o&&(d.currentToolArgs=o);let p=(0,S.i)(a.currentToolStartMs);void 0!==p&&(d.currentToolStartMs=p),Array.isArray(a.recentTools)&&(d.recentTools=a.recentTools),Array.isArray(a.recentOutput)&&(d.recentOutput=a.recentOutput.filter(a=>"string"==typeof a));let q=(0,S.i)(a.toolCount);void 0!==q&&(d.toolCount=q);let r=(0,S.i)(a.requests);void 0!==r&&(d.requests=r);let s=(0,S.i)(a.tokens);void 0!==s&&(d.tokens=s);let t=(0,S.i)(a.contextTokens);void 0!==t&&(d.contextTokens=t);let u=(0,S.i)(a.contextWindow);void 0!==u&&(d.contextWindow=u);let v=(0,S.i)(a.cost);void 0!==v&&(d.cost=v);let w=(0,S.i)(a.durationMs);void 0!==w&&(d.durationMs=w),("string"==typeof a.modelOverride||Array.isArray(a.modelOverride)&&a.modelOverride.every(a=>"string"==typeof a))&&(d.modelOverride=a.modelOverride);let x=(0,S.oJ)(a.modelRole);void 0!==x&&(d.modelRole=x);let y=(0,S.oJ)(a.resolvedModel);if(void 0!==y&&(d.resolvedModel=y),"boolean"==typeof a.resolvedModelIsFallback&&(d.resolvedModelIsFallback=a.resolvedModelIsFallback),(0,S.u4)(a.retryState)){let b=(0,S.i)(a.retryState.attempt),c=(0,S.i)(a.retryState.maxAttempts),e=(0,S.i)(a.retryState.delayMs),f=(0,S.oJ)(a.retryState.errorMessage),g=(0,S.i)(a.retryState.startedAtMs);void 0!==b&&void 0!==c&&void 0!==e&&void 0!==f&&void 0!==g&&(d.retryState={attempt:b,maxAttempts:c,delayMs:e,errorMessage:f,startedAtMs:g})}if((0,S.u4)(a.retryFailure)){let b=(0,S.i)(a.retryFailure.attempt),c=(0,S.oJ)(a.retryFailure.errorMessage);void 0!==b&&void 0!==c&&(d.retryFailure={attempt:b,errorMessage:c})}return void 0!==a.inflightTaskDetails&&(d.inflightTaskDetails=a.inflightTaskDetails),(0,S.u4)(a.extractedToolData)&&(d.extractedToolData=a.extractedToolData),Object.keys(d).length>0?d:void 0}(a);c?.id&&h({id:c.id,agent:c.agent??"subagent",agentSource:c.agentSource,status:k(c.id,"completed"===(b=c.status)?"completed":"failed"===b?"failed":"aborted"===b?"aborted":"started"),task:c.task,assignment:c.assignment,description:c.description,index:c.index??0,lastIntent:c.lastIntent,toolCount:c.toolCount,requests:c.requests,tokens:c.tokens,contextTokens:c.contextTokens,contextWindow:c.contextWindow,cost:c.cost,durationMs:c.durationMs,modelOverride:c.modelOverride,modelRole:c.modelRole,resolvedModel:c.resolvedModel,resolvedModelIsFallback:c.resolvedModelIsFallback,retryFailure:c.retryFailure,transcriptAvailable:!1})}for(let a of m){if(!(0,S.u4)(a))continue;let b=(0,S.oJ)(a.id);if(!b)continue;let d=f.get(b),e={},g=(0,S.i)(a.exitCode);void 0!==g&&(e.exitCode=g),!0===a.truncated&&(e.truncated=!0);let i=(0,S.i)(a.cost)??(0,g7.tw)(a.usage);void 0!==i&&(e.cost=i);let j=(0,g7.bA)(a.structuredOutput);void 0!==j&&(e.structuredOutput=j);let l=(0,S.oJ)(a.error);void 0!==l&&(e.error=l),!0===a.aborted&&(e.aborted=!0);let m=(0,S.oJ)(a.abortReason);void 0!==m&&(e.abortReason=m);let n=(0,S.oJ)(a.outputPath);void 0!==n&&(e.outputPath=n);let o=(0,S.oJ)(a.patchPath);void 0!==o&&(e.patchPath=o);let p=(0,S.oJ)(a.branchName);void 0!==p&&(e.branchName=p);let q=(0,S.u4)(a.retryFailure)?{attempt:(0,S.i)(a.retryFailure.attempt)??0,errorMessage:(0,S.oJ)(a.retryFailure.errorMessage)??""}:d?.retryFailure;h({id:b,agent:(0,S.oJ)(a.agent)??d?.agent??"subagent",agentSource:("bundled"===(c=a.agentSource)||"user"===c||"project"===c?c:void 0)??d?.agentSource,status:k(b,!0===a.aborted?"aborted":"string"==typeof a.error&&a.error?"failed":"number"==typeof a.exitCode?0===a.exitCode?"completed":"failed":"completed"===a.status?"completed":"failed"===a.status?"failed":"aborted"===a.status?"aborted":"started"),task:(0,S.oJ)(a.task)??d?.task,assignment:(0,S.oJ)(a.assignment)??d?.assignment,description:(0,S.oJ)(a.description)??d?.description,index:(0,S.i)(a.index)??d?.index??0,lastIntent:(0,S.oJ)(a.lastIntent)??d?.lastIntent,toolCount:(0,S.i)(a.toolCount)??d?.toolCount,requests:(0,S.i)(a.requests)??d?.requests,tokens:(0,S.i)(a.tokens)??d?.tokens,contextTokens:(0,S.i)(a.contextTokens)??d?.contextTokens,contextWindow:(0,S.i)(a.contextWindow)??d?.contextWindow,cost:(0,S.i)(a.cost)??(0,g7.tw)(a.usage)??d?.cost,durationMs:(0,S.i)(a.durationMs)??d?.durationMs,modelOverride:"string"==typeof a.modelOverride||Array.isArray(a.modelOverride)?a.modelOverride:d?.modelOverride,modelRole:(0,S.oJ)(a.modelRole)??d?.modelRole,resolvedModel:(0,S.oJ)(a.resolvedModel)??d?.resolvedModel,resolvedModelIsFallback:"boolean"==typeof a.resolvedModelIsFallback?a.resolvedModelIsFallback:d?.resolvedModelIsFallback,retryFailure:q,transcriptAvailable:!1,result:Object.keys(e).length>0?e:void 0})}if(n){let a=(0,S.oJ)(n.jobId);a&&!f.has(a)&&h({id:a,agent:"task",status:"completed"===n.state?"completed":"failed"===n.state?"failed":"started",index:f.size,transcriptAvailable:!1})}}let j=new Set;for(let a of e){if("message"!==a.type||a.message?.role!=="toolResult")continue;let b=a.message;if("task"!==b.toolName)continue;let c=(0,S.u4)(b.details)?b.details:{},d=(0,S.u4)(c.async)?c.async:void 0,e=d?(0,S.oJ)(d.jobId):void 0;e&&j.add(e)}let k=[...f.values()];for(let b of k)j.has(b.id)&&(b.detached=!0),ha(a,b.id,".jsonl")&&(d=b.id,b.sessionFile=(0,aq.join)(g8(a),`${d}.jsonl`),b.transcriptAvailable=!0);return k.sort((a,b)=>a.index-b.index||a.id.localeCompare(b.id))}let hd=1048576;function he(a){if(!a)return;let b=(a.split(/\r?\n/)[0]??"").replace(/[\u0000-\u001f\u007f-\u009f]/g," ").replace(/\s+/g," ").trim();return b.length>0?b:void 0}var hf=c(51455),hg=c(80481),hh=c(58500),hi=c(7561);class hj extends Error{constructor(a,b){super(a),this.status=b,this.name="SessionSearchError"}}let hk=new Map;function hl(a){let b,[c,d]=process.versions.node.split(".").map(Number);if(c<22||22===c&&d<19)throw new hj("Session search requires Node.js 22.19 or newer with node:sqlite enabled.",503);try{let c=process.getBuiltinModule("node:sqlite");if(!c||"function"!=typeof c.DatabaseSync)throw Error("node:sqlite is not available in this Node runtime");b=new c.DatabaseSync(a)}catch(a){throw new hj(`Cannot open session search cache; use Node.js 22.19+ with node:sqlite and check cache permissions: ${a instanceof Error?a.message:String(a)}`,503)}try{return b.exec("PRAGMA journal_mode=DELETE; PRAGMA busy_timeout=5000; CREATE TABLE IF NOT EXISTS sessions (id TEXT PRIMARY KEY, path TEXT NOT NULL, stamp TEXT NOT NULL, name TEXT NOT NULL, cwd TEXT NOT NULL, project TEXT NOT NULL); CREATE TABLE IF NOT EXISTS entries (session TEXT NOT NULL, id TEXT NOT NULL, parent TEXT, timestamp TEXT NOT NULL, time REAL, role TEXT, content TEXT NOT NULL, PRIMARY KEY(session,id)); CREATE INDEX IF NOT EXISTS entries_order ON entries(time DESC,session,id);"),b.exec("PRAGMA secure_delete=ON"),b.prepare("PRAGMA user_version").get()?.user_version!==1&&b.exec("BEGIN IMMEDIATE; DELETE FROM entries; DELETE FROM sessions; PRAGMA user_version=1; COMMIT"),b}catch(a){throw b.close(),new hj(`Cannot initialize derived search cache; remove the .ompgui-search cache directory and retry: ${a instanceof Error?a.message:String(a)}`,503)}}function hm(a,b){if(void 0===a)return;if("string"!=typeof a||!/^(?:\d{4}-\d{2}-\d{2}|\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[+-]\d{2}:\d{2}))$/.test(a))throw new hj(`${b} must be a UTC YYYY-MM-DD or ISO timestamp with explicit timezone.`,400);if(a.length>10&&(Number(a.slice(11,13))>23||Number(a.slice(14,16))>59||Number(a.slice(17,19))>59))throw new hj(`${b} is not a valid timestamp.`,400);let c=a.slice(0,10),d=Date.parse(`${c}T00:00:00Z`),e=Date.parse(a);if(!Number.isFinite(e)||!Number.isFinite(d)||new Date(d).toISOString().slice(0,10)!==c)throw new hj(`${b} is not a valid date.`,400);return e}async function hn(a,b,c){let d,e=a.prepare("INSERT OR REPLACE INTO entries VALUES (?,?,?,?,?,?,?)"),f=(0,O.createReadStream)(b,{encoding:"utf8",highWaterMark:65536}),g=(0,hg.createInterface)({input:f,crlfDelay:1/0}),h=!0,i=!1,j="",k="",l=!1,m=null,n=0,o=0;f.on("data",a=>{for(let b of a.split(/(?<=\n)/)){if((o+=Buffer.byteLength(b))>0x4000000)return void f.destroy(new hj("A session JSONL line exceeds the 64 MiB search limit. Split or compact the session before searching.",503));b.endsWith("\n")&&(o=0)}});try{for await(let a of g){let b;if(h){h=!1;let b=(0,az.U1)(a);if(b){d=b.title;continue}}try{b=JSON.parse(a)}catch{continue}if(null===b||"object"!=typeof b||Array.isArray(b))continue;if(!i){if(!("type"in b)||"session"!==b.type||!("id"in b)||b.id!==c)throw new hj("Session changed while indexing; retry search.",503);l=!("version"in b)||"number"!=typeof b.version||b.version<2,j=d??("title"in b&&"string"==typeof b.title?b.title:""),i=!0;continue}if("type"in b&&"session"===b.type)continue;n++;let f=l?`legacy-${n}`:"id"in b&&"string"==typeof b.id?b.id:void 0;if(!f)continue;let g=l?m:"parentId"in b&&"string"==typeof b.parentId?b.parentId:null;m=f;let o="timestamp"in b&&"string"==typeof b.timestamp?b.timestamp:"",q=null,r="";if("type"in b&&"message"===b.type&&"message"in b&&null!==b.message&&"object"==typeof b.message){let a=b.message;if(!("hidden"in b&&!0===b.hidden)&&!("hidden"in a&&!0===a.hidden)&&"role"in a&&("user"===a.role||"assistant"===a.role||"toolResult"===a.role)){var p;q=a.role,r="content"in a?(p=a.content,"string"==typeof p?p:Array.isArray(p)?p.flatMap(a=>null!==a&&"object"==typeof a&&!("hidden"in a&&!0===a.hidden)&&"type"in a&&"text"===a.type&&"text"in a&&"string"==typeof a.text?[a.text]:[]).join("\n"):""):""}}!k&&null!==q&&r.trim()&&(k=Array.from(r.slice(0,320)).slice(0,160).join(""));let s=Date.parse(o);e.run(c,f,g,o,Number.isFinite(s)?s:null,q,r),n%128==0&&await (0,hh.setImmediate)()}if(!i)throw new hj("Session header disappeared while indexing; retry search.",503);return j||k}finally{g.close(),f.destroy()}}async function ho(a,b){(0,az.I3)();let c=await (0,az.L1)();if((0,hi.$)(await (0,hf.realpath)((0,R.tE)()).catch(()=>Q().resolve((0,R.tE)())))!==b)throw new hj("Active session profile changed; retry search.",503);let d=await (0,hf.open)(a,"a",384);await d.close(),await (0,hf.chmod)(a,384);let e=hl(a);try{let a=new Set;for(let d of c){let c=await (0,hf.realpath)(d.path).catch(()=>null);if(!c)continue;let f=Q().relative(b,c);if(f.startsWith(`..${Q().sep}`)||".."===f||Q().isAbsolute(f))continue;if(a.has(d.id))throw new hj("Duplicate native session IDs prevent unambiguous search; remove the duplicate session file.",503);a.add(d.id);let g=await (0,hf.stat)(c),h=`${g.dev}:${g.ino}:${g.size}:${g.mtimeMs}:${g.ctimeMs}`,i=e.prepare("SELECT stamp,path FROM sessions WHERE id=?").get(d.id);if(i?.stamp===h&&i.path===c)continue;let j=(0,hi.$)((await (0,cd.KI)(d.cwd)).projectRoot);e.exec("BEGIN IMMEDIATE");try{e.prepare("DELETE FROM entries WHERE session=?").run(d.id);let a=await hn(e,c,d.id),b=await (0,hf.stat)(c);if(`${b.dev}:${b.ino}:${b.size}:${b.mtimeMs}:${b.ctimeMs}`!==h)throw new hj("Session changed while indexing; retry search.",503);e.prepare("INSERT OR REPLACE INTO sessions VALUES (?,?,?,?,?,?)").run(d.id,c,h,a,d.cwd,j),e.exec("COMMIT")}catch(a){throw e.exec("ROLLBACK"),a}await (0,hh.setImmediate)()}e.exec("BEGIN IMMEDIATE");try{for(let b of e.prepare("SELECT id FROM sessions").all())"string"!=typeof b.id||a.has(b.id)||(e.prepare("DELETE FROM entries WHERE session=?").run(b.id),e.prepare("DELETE FROM sessions WHERE id=?").run(b.id));e.exec("COMMIT")}catch(a){throw e.exec("ROLLBACK"),a}}finally{e.close()}}async function hp(){let a=(0,hi.$)(await (0,hf.realpath)((0,R.tE)()).catch(()=>Q().resolve((0,R.tE)()))),b=(0,L.createHash)("sha256").update(`${(0,R.oy)()??""}\0${a}`).digest("hex"),c=await (0,hf.realpath)((0,R.$M)()).catch(()=>Q().resolve((0,R.$M)())),d=Q().join(c,".ompgui-search");await (0,hf.mkdir)(d,{recursive:!0,mode:448}),await (0,hf.chmod)(d,448);let e=Q().join(d,`${b}.sqlite`),f=hk.get(e);f||(f=ho(e,a).finally(()=>{hk.delete(e)}),hk.set(e,f));try{return await f,hl(e)}catch(a){if(a instanceof hj)throw a;throw new hj(`Session search index refresh failed; check native session files and cache permissions: ${a instanceof Error?a.message:String(a)}`,503)}}async function hq(a){let b;if("string"!=typeof a.query||!a.query.trim()||a.query.length>500)throw new hj("query must contain 1–500 characters and cannot be whitespace-only.",400);let c=a.limit??25;if(!Number.isInteger(c)||c<1||c>50)throw new hj("limit must be an integer from 1 to 50.",400);if(void 0!==a.projectRoot&&("string"!=typeof a.projectRoot||!a.projectRoot.trim()||a.projectRoot.length>4096))throw new hj("projectRoot must be a nonempty path of at most 4096 characters.",400);let d=hm(a.from,"from"),e=hm(a.to,"to");if(void 0!==d&&void 0!==e&&d>=e)throw new hj("from must precede to (to is exclusive).",400);let f=void 0===a.projectRoot?null:(0,hi.$)(await (0,hf.realpath)(a.projectRoot).catch(()=>Q().resolve(a.projectRoot))),g=(0,L.createHash)("sha256").update(JSON.stringify([a.query,f,d,e,c])).digest("hex"),h=0;if(void 0!==a.cursor)try{if("string"!=typeof a.cursor||a.cursor.length>1024||!/^[A-Za-z0-9_-]+$/.test(a.cursor))throw Error();let d=JSON.parse(Buffer.from(a.cursor,"base64url").toString("utf8"));if(null===d||"object"!=typeof d||!("signature"in d)||d.signature!==g||!("offset"in d)||"number"!=typeof d.offset||!Number.isSafeInteger(d.offset)||d.offset<1||d.offset%c!=0||!("generation"in d)||"string"!=typeof d.generation)throw Error();h=d.offset,b=d.generation}catch{throw new hj("Invalid cursor or cursor belongs to different search filters.",400)}let i=await hp();try{let j=(0,L.createHash)("sha256").update(JSON.stringify(i.prepare("SELECT id,path,stamp FROM sessions ORDER BY id").all())).digest("hex");if(void 0!==b&&b!==j)throw new hj("Search results changed; restart without a cursor.",400);let k=RegExp(a.query.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"iu"),l=a.query.toLowerCase(),m=i.prepare("SELECT s.id AS sessionId,s.name AS sessionName,s.cwd,e.id AS entryId,e.timestamp,e.time,e.role,e.content FROM entries e JOIN sessions s ON s.id=e.session WHERE e.role IS NOT NULL AND (? IS NULL OR s.project=?) AND (? IS NULL OR e.time>=?) AND (? IS NULL OR e.time<?) AND (?=0 OR e.time<? OR (e.time IS ? AND (e.session>? OR (e.session=? AND e.id>?))) OR (e.time IS NULL AND ? IS NOT NULL)) ORDER BY e.time DESC,e.session,e.id LIMIT 128"),n=[],o=0,p=null,q="",r="",s=0,t=!1,u=!1;for(;!u&&!t;){let a=0,b=0;for(let g of m.iterate(f,f,d??null,d??null,e??null,e??null,o,p,p,q,q,r,p)){o=1,p="number"==typeof g.time?g.time:null,q=String(g.sessionId),r=String(g.entryId),a++;let d=String(g.content);b+=d.length;let e=k.exec(d),f=e?-1:d.toLowerCase().indexOf(l);if(!e&&f<0||s++<h){if(b>=1048576)break;continue}if(n.length===c){t=!0;break}let i=0,j=e?.index??0;for(let a of d){if(i>=f)break;i+=a.toLowerCase().length,j+=a.length}let m=Math.max(0,j-80);m&&/[\uDC00-\uDFFF]/.test(d[m])&&m--;let u=Math.min(d.length,m+640);u<d.length&&/[\uDC00-\uDFFF]/.test(d[u])&&u--;let v=`${m?"…":""}${d.slice(m,u)}${u<d.length?"…":""}`;if(n.push({sessionId:String(g.sessionId),sessionName:String(g.sessionName),cwd:String(g.cwd),entryId:String(g.entryId),timestamp:String(g.timestamp),role:g.role,snippet:v}),b>=1048576)break}if((u=0===a)||t||await (0,hh.setImmediate)(),(0,L.createHash)("sha256").update(JSON.stringify(i.prepare("SELECT id,path,stamp FROM sessions ORDER BY id").all())).digest("hex")!==j)throw new hj("Search results changed; restart without a cursor.",400)}if(h&&0===n.length)throw new hj("Cursor points beyond the search results; restart without a cursor.",400);return{matches:n,...t?{nextCursor:Buffer.from(JSON.stringify({signature:g,generation:j,offset:h+c})).toString("base64url")}:{}}}finally{i.close()}}async function hr(a){if("string"!=typeof a.id||!a.id||a.id.length>1024||"string"!=typeof a.entryId||!a.entryId||a.entryId.length>1024)throw new hj("id and entryId must be nonempty identifiers of at most 1024 characters.",400);let b=await hp();try{let c=b.prepare("SELECT name,cwd FROM sessions WHERE id=?").get(a.id),d=b.prepare("SELECT id,parent,timestamp,role,content FROM entries WHERE session=? AND id=?"),e=d.get(a.id,a.entryId);if(!c||!e||null===e.role||!e.content)throw new hj("Session or searchable entry not found.",404);let f=[],g=new Set,h=0;for(;e;){let b=String(e.id);if(g.has(b))throw new hj("Session ancestor chain contains a cycle; repair the native session file.",503);if(g.add(b),null!==e.role&&e.content){let a=String(e.content),c=Buffer.byteLength(a);if(c>262144&&0===f.length)throw new hj("Matched message exceeds the 256 KiB context limit; inspect the native session file for its full text.",503);if(21===f.length||h+c>262144)break;h+=c,f.push({entryId:b,timestamp:String(e.timestamp),role:e.role,content:a})}e="string"==typeof e.parent?d.get(a.id,e.parent):void 0}return f.reverse(),{sessionId:a.id,sessionName:String(c.name),cwd:String(c.cwd),entryId:a.entryId,leafId:a.entryId,matchIndex:f.length-1,messages:f,hasMoreBefore:void 0!==e,hasMoreAfter:!1}}finally{b.close()}}class hs extends Error{constructor(a,b){super(b),this.code=a}}class ht{constructor(a=Date.now,b=setTimeout,c=clearTimeout,d=(0,av.tmpdir)()){this.now=a,this.schedule=b,this.unschedule=c,this.root=d,this.images=new Map,this.reservedBytes=0}remove(a){this.images.get(a.id)===a&&(a.cancelled=!0,(0,O.rmSync)(a.directory,{recursive:!0,force:!0}),this.unschedule(a.timer),this.images.delete(a.id),this.reservedBytes-=a.size)}expire(){for(let a of this.images.values())(a.cancelled||a.expires<=this.now())&&this.remove(a)}owned(a,b){this.expire();let c="string"==typeof b?this.images.get(b):void 0;if(!c||c.deviceId!==a||c.claimed||c.cancelled)throw new hs("invalid_attachment","Attachment is unavailable");return c}begin(a,b,c){if(this.expire(),"string"!=typeof b||!/^image\/[A-Za-z0-9.+-]{1,100}$/.test(b))throw new hs("invalid_images","An image MIME type is required");if("number"!=typeof c||!Number.isSafeInteger(c)||c<1||c>T.Mt)throw new hs("invalid_images",`Each image must be 1 byte to ${T.Mt/1048576}MiB`);let d=0;for(let b of this.images.values())b.deviceId===a&&d++;if(d>=T.ZQ||this.reservedBytes+c>0x20000000||this.images.size>=1024)throw new hs("attachment_quota","Attachment staging quota exceeded");let e=(0,L.randomUUID)(),f=(0,O.mkdtempSync)((0,P.join)(this.root,"ompgui-relay-attachment-")),g=(0,P.join)(f,"image");try{(0,O.closeSync)((0,O.openSync)(g,"wx",384))}catch(a){throw(0,O.rmSync)(f,{recursive:!0,force:!0}),a}let h=this.schedule(()=>{let a=this.images.get(e);if(a)try{this.remove(a)}catch{}},9e5);return h.unref?.(),this.images.set(e,{id:e,deviceId:a,directory:f,path:g,mimeType:b,size:c,offset:0,complete:!1,claimed:!1,cancelled:!1,expires:this.now()+9e5,timer:h}),this.reservedBytes+=c,{attachmentId:e,maxChunkBytes:65536}}chunk(a,b,c,d){let e=this.owned(a,b);if(e.complete||c!==e.offset)throw new hs("invalid_offset","Attachment chunks must be sequential");if("string"!=typeof d||d.length>4*Math.ceil(65536/3))throw new hs("invalid_chunk","Attachment chunk is too large or malformed");let f=(0,T.Si)(d);if(null===f||f<1||f>65536||e.offset+f>e.size)throw new hs("invalid_chunk","Attachment chunk exceeds declared size or chunk limit");let g=Buffer.from(d,"base64");if(g.toString("base64")!==d)throw new hs("invalid_chunk","Attachment chunk must be canonical base64");let h=(0,O.openSync)(e.path,"r+");try{let a=0;for(;a<g.length;){let b=(0,O.writeSync)(h,g,a,g.length-a,e.offset+a);if(0===b)throw new hs("attachment_write_failed","Attachment storage write failed");a+=b}e.offset+=g.length}catch(a){throw(0,O.closeSync)(h),this.remove(e),a}return(0,O.closeSync)(h),{nextOffset:e.offset}}complete(a,b){let c=this.owned(a,b);if(c.offset!==c.size)throw new hs("incomplete_attachment","Attachment byte count does not match declared size");return c.complete=!0,{attachmentId:c.id}}abort(a,b){return this.remove(this.owned(a,b)),{aborted:!0}}claim(a,b){if(!Array.isArray(b)||b.length>T.ZQ||b.some(a=>"string"!=typeof a)||new Set(b).size!==b.length)throw new hs("invalid_attachment",`attachmentIds must contain at most ${T.ZQ} unique IDs`);let c=b.map(b=>this.owned(a,b));for(let a of c)if(!a.complete)throw new hs("incomplete_attachment","Attachment upload is incomplete");for(let a of c)a.claimed=!0;return{materialize:()=>(this.expire(),c.map(a=>{if(a.cancelled||this.images.get(a.id)!==a)throw new hs("invalid_attachment","Attachment expired or was cancelled");let b=(0,O.readFileSync)(a.path);if(b.length!==a.size)throw new hs("invalid_attachment","Attachment byte count changed");return{type:"image",mimeType:a.mimeType,data:b.toString("base64")}})),dispose:()=>{for(let a of c)this.remove(a)}}}cleanupDevice(a){for(let b of this.images.values())if(b.deviceId===a)try{this.remove(b)}catch{}}}let hu=new ht;async function hv(a){let b,c,d=await (0,al.os)(a);if(!d)throw new bG("not_found","Session not found");let e=(0,al.eP)(d),f=e?.id??a,g=e?.parentSession;if(g){let a=await (0,al.u1)(g);if(a)b=g,c=a;else{let a=await (0,al.os)(g);a&&(b=a,c=g)}}let h=(0,hi.$)(d),i=(0,P.dirname)(d),j=[];try{for(let a of(0,O.readdirSync)(i).filter(a=>a.endsWith(".jsonl")&&(0,hi.$)((0,P.join)(i,a))!==h)){let d,e,k,l,m=(0,P.join)(i,a);try{if((0,O.statSync)(m).size>az.ni){let b=a,c=!1;try{let a=(0,O.openSync)(m,"r");try{let d=Buffer.alloc(65536),e=(0,O.readSync)(a,d,0,d.length,0),g=d.toString("utf8",0,e).split("\n"),i=+!!(0,az.U1)(g[0]??""),j=JSON.parse(g[i]??"{}");"object"==typeof j&&null!==j&&!Array.isArray(j)&&"type"in j&&"session"===j.type&&("id"in j&&"string"==typeof j.id&&(b=j.id),"parentSession"in j&&"string"==typeof j.parentSession&&(c=j.parentSession===f||(0,hi.$)(j.parentSession)===h))}finally{(0,O.closeSync)(a)}}catch{}c&&j.push({id:b,reason:"session_child_too_large"});continue}}catch{continue}try{d=(0,O.readFileSync)(m,"utf8").split("\n"),e=+!!(0,az.U1)(d[0]??"");let a=JSON.parse(d[e]);if("object"!=typeof a||null===a||Array.isArray(a))continue;for(let[b,c]of(k={},Object.entries(a)))k[b]=c;if("session"!==k.type||"string"!=typeof k.parentSession||!k.parentSession||!(l=(0,hi.$)(k.parentSession)===h)&&k.parentSession!==f)continue}catch{continue}let n="string"==typeof k.id?k.id:void 0;if(n&&bA(n)?.isAlive?.()){j.push({id:n,reason:"session_child_live"});continue}k.parentSession=l?b??g:c??g,d[e]=JSON.stringify(k);try{(0,az.sv)(m,d.join("\n"),"reparent")}catch{j.push({id:n??a,reason:"session_child_rewrite_failed"})}}}catch{}return await bA(a)?.destroyAndWait?.(),(0,az.XS)(d),(0,al.BR)(a),(0,al.mD)(),j.length>0?{id:a,skippedChildren:j}:{id:a}}async function hw(a){let b=await (0,al.os)(a);if(!b)throw new bG("not_found","Session not found");if((await (0,al.dQ)()).some(b=>b.parentSessionId===a))throw new bG("session_has_children","Archive child sessions before archiving this session");return await bA(a)?.destroyAndWait?.(),(0,az.a8)(b),(0,al.BR)(a),(0,al.mD)(),{id:a}}async function hx(a,b){let c=b.trim();if(!c)throw new bG("invalid_name","name is required");let d=!1,e=bA(a);if(e?.isAlive?.()&&"function"==typeof e.send)try{await e.send({type:"set_session_name",name:c}),d=!0}catch{}if(!d){let b=await (0,al.os)(a);if(!b)throw new bG("not_found","Session not found");(0,az.Bm)(b,c,"user")}return(0,al.mD)(),{id:a,name:c}}async function hy(){return(await (0,az.Uk)()).map(a=>({key:a.key,...a.name?{name:a.name}:{},...a.id?{id:a.id}:{},...a.cwd?{cwd:a.cwd}:{},archivedAt:a.modified}))}async function hz(a){try{let b=await (0,az.O0)(a);return(0,al.BR)(b.id),(0,al.mD)(),{id:b.id}}catch(a){if(a instanceof az.De)throw new bG(a.code,a.message);throw a}}async function hA(a,b){let c,d=a.trim();if(!d||d.length>200||d.includes("/")||d.includes("\\"))throw new bG("invalid_file_name","Invalid file name");if(!b.trim())throw new bG("invalid_content","Empty session file");if(Buffer.byteLength(b,"utf8")>0xa00000)throw new bG("invalid_content","Session file is too large (max 10 MB)");let e=b.split(/\r?\n/).filter(a=>a.trim().length>0),f=(0,L.randomUUID)(),g=[];for(let a of e){let b;try{b=JSON.parse(a)}catch{throw new bG("invalid_session_file","Not a valid omp session file (malformed JSON line)")}if("object"==typeof b&&null!==b&&!Array.isArray(b)&&"type"in b){if("session"===b.type&&"cwd"in b&&"string"==typeof b.cwd&&(c=b.cwd),"session"===b.type){g.push(JSON.stringify({...b,id:f}));continue}if("message"===b.type&&"message"in b){let a=b.message;if("object"==typeof a&&null!==a&&!Array.isArray(a)&&"role"in a&&"bashExecution"===a.role){let c={};for(let[b,d]of Object.entries(a))"fullOutputPath"!==b&&(c[b]=d);g.push(JSON.stringify({...b,message:c}));continue}}}g.push(a)}if(!c)throw new bG("invalid_session_file","Not a valid omp session file (missing session header with cwd)");if(!an(c,await am()))throw new bG("import_cwd_not_authorized","Imported session workspace is not authorized");let h=(0,P.join)((0,R.tE)(),(0,R._8)(c));(0,O.mkdirSync)(h,{recursive:!0});let i=(0,P.join)(h,`${new Date().toISOString().replace(/[:.]/g,"-")}_${(0,L.randomUUID)()}.jsonl`);return(0,O.writeFileSync)(i,g.join("\n")+"\n","utf8"),(0,al.mD)(),(0,az.I3)(),{id:f,cwd:c}}let hB=/^[A-Za-z0-9._-]{1,128}$/,hC=/^[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*$/,hD=new Set(["auto","minimal","low","medium","high","xhigh","max","off"]),hE=new Set(["prompt","steer","follow_up","enqueue_message","get_message_queue","recall_queued_message","delete_queued_message","promote_queued_message","abort","abort_and_prompt","get_state","set_model","set_thinking_level","set_fast_mode","fork","new_session","switch_session","compact","abort_compaction","set_session_name","get_session_stats","get_last_assistant_text","get_commands","reload","extension_ui_response","bash","set_steering_mode","set_follow_up_mode","set_interrupt_mode","set_auto_compaction","set_auto_retry","abort_retry","abort_bash","set_todos","handoff","get_subagents","get_subagent_messages","set_subagent_subscription","get_messages","get_messages_page","get_branch_messages","export_html","cycle_model","cycle_thinking_level"]),hF={navigate_tree:"Branch navigation is not supported over the omp RPC protocol",clear_queue:"Recalling queued messages is not supported over the omp RPC protocol",get_tools:"Per-session tool listing is not supported over the omp RPC protocol",set_tools:"Changing tools on a running session is not supported over the omp RPC protocol; tool presets apply to new sessions",extension_ui_input:"Extension custom UI is not supported over the omp RPC protocol"},hG=new Set(["list","search","searchContext","create","delete","archive","rename","restore","archives","import","branches","leaf","history","content","thinking","media","subagents","subagentTranscript","subagentCompletion","stats","state","systemPrompt","autoname","export","exportChunk","exportClose","command","attachments.begin","attachments.chunk","attachments.complete","attachments.abort","projects.remove","worktrees.list","worktrees.add","worktrees.remove"]);class hH extends bG{constructor(a,b,c){super(a,b),void 0!==c&&(this.details=c)}}function hI(a,b,c){throw new hH(a,b,c)}function hJ(a){let b=(0,S.oJ)(a)?.trim();return b&&hB.test(b)||hI("invalid_session","session id is required"),b}function hK(a,b=0){if(void 0===a)return b;let c=(0,S.i)(a);return(void 0===c||!Number.isSafeInteger(c)||c<0)&&hI("invalid_offset","offset must be a non-negative integer"),c}function hL(a,b,c){if(void 0===a)return b;let d=(0,S.i)(a);return(void 0===d||!Number.isSafeInteger(d)||d<1||d>c)&&hI("invalid_limit",`limit must be 1..${c}`),d}function hM(a){let b={};for(let[c,d]of Object.entries(a))b[c]=d;return b}async function hN(a){let b=hK(a.offset,0),c=hL(a.limit,100,500),d=(0,S.oJ)(a.query)?.trim().toLowerCase()??"",e=!0===a.runningOnly,f=await bI(),g=new Set(f.runningIds),h=f.sessions;e&&(h=h.filter(a=>g.has(a.id))),d&&(h=h.filter(a=>a.id.toLowerCase().includes(d)||(a.name??"").toLowerCase().includes(d)||a.cwd.toLowerCase().includes(d)||a.firstMessage.toLowerCase().includes(d)));let i=h.length,j=h.slice(b,b+c);return{sessions:j,runningIds:f.runningIds,total:i,offset:b,limit:c,hasMore:b+j.length<i}}async function hO(a){"string"!=typeof a.query&&hI("invalid_search","query must be a string");let b={query:a.query};for(let c of["projectRoot","from","to","cursor"]){let d=a[c];void 0!==d&&("string"!=typeof d&&hI("invalid_search",`${c} must be a string`),b[c]=d)}void 0!==a.limit&&("number"!=typeof a.limit&&hI("invalid_search","limit must be a number"),b.limit=a.limit);try{return{...await hq(b)}}catch(a){throw a instanceof hj&&hI(400===a.status?"invalid_search":"search_unavailable",a.message),a}}async function hP(a){let b=hJ(a.id);"string"!=typeof a.entryId&&hI("invalid_search","entryId must be a string");try{return{...await hr({id:b,entryId:a.entryId})}}catch(a){throw a instanceof hj&&hI(404===a.status?"not_found":400===a.status?"invalid_search":"search_unavailable",a.message),a}}async function hQ(a){let b,c,d=(0,S.oJ)(a.cwd)?.trim();d||hI("cwd_required","cwd is required");try{b=cj(d)}catch(a){throw a instanceof ce&&hI(a.code,a.message),a}(0,O.existsSync)(b)||hI("directory_not_found",`Directory does not exist: ${b}`);let e=(0,S.oJ)(a.message)?.trim()??"";e.length>3145728&&hI("invalid_command","prompt message is too long");let f=(0,S.oJ)(a.thinkingLevel)?.trim();f&&!hD.has(f)&&hI("invalid_command","Unknown thinking level");let g=(0,S.oJ)(a.provider)?.trim(),h=(0,S.oJ)(a.modelId)?.trim();if((g&&!h||!g&&h)&&hI("invalid_command","set_model requires provider and modelId"),void 0!==a.toolNames){let b=a.toolNames;Array.isArray(b)||hI("invalid_tools","toolNames must be an array of tool names");let d=[];for(let a of b){("string"!=typeof a||!a.trim()||a.length>64)&&hI("invalid_tools","toolNames must be an array of tool names");let b=a.toLowerCase();d.includes(b)||d.push(b)}c=br(d)}let i=!0===a.advisor,j=`__new__${(0,L.randomUUID)()}`;try{let{session:a,realSessionId:d}=await bF(j,"",b,c,i);return(0,aj.wz)(b),(0,al.mD)(),g&&h&&await a.send({type:"set_model",provider:g,modelId:h}),f&&await a.send({type:"set_thinking_level",level:f}),e&&await a.send({type:"prompt",message:e}),{sessionId:d}}catch(a){if(a instanceof bl||a instanceof ax.x||a instanceof bG)throw a;hI("session_create_failed",a instanceof Error?a.message:String(a))}hI("session_create_failed","unreachable")}async function hR(a){let b=hJ(a.id),c=null==a.leafId?void 0:(0,S.oJ)(a.leafId)?.trim();null!=a.leafId&&(!c||c.length>200)&&hI("invalid_leaf","leafId is invalid");let d=await (0,al.os)(b);if(d){let a=(0,al.cr)(d);"too_large"===a.error&&hI("session_file_too_large","Session file is too large"),a.header||hI("session_file_malformed","Session file is missing or malformed"),c&&!a.entries.some(a=>a.id===c)&&hI("unknown_leaf","Unknown conversation branch");let e=c??(0,az.kT)(a.entries),f=(0,al.Uv)(a.entries,e,{deferThinking:!1,deferToolResultImages:!1});return{id:b,leafId:e,messages:f.messages,entryIds:f.entryIds,filePath:d,entries:a.entries}}c&&hI("unknown_leaf","Unknown conversation branch");let e=bA(b);e?.isAlive()||hI("session_not_found","Session not found");let f=await e.send({type:"get_messages"});e.isAlive()&&bA(b)===e&&e.sessionId===b||hI("session_not_found","Session not found"),"object"==typeof f&&null!==f&&"messages"in f&&Array.isArray(f.messages)||hI("rpc_command_failed","Live transcript unavailable");let g=f.messages;return{id:b,leafId:null,messages:g,entryIds:g.map(a=>aA(a)?.entryId??""),filePath:void 0,entries:[]}}function hS(a,b,c,d){if(!a)return -1;let e=b.indexOf(a);if(e>=0)return e;if(!a.startsWith("live:"))return -1;let f=new Map(d.map(a=>[a.id,a]));for(let d=0;d<b.length;d++){let e=f.get(b[d]),g=e&&"message"in e?e.message:c[d];if(aA(g)?.entryId===a)return d}return -1}async function hT(a){let b=await hR(a),c=(0,S.oJ)(a.entryId),d=hS(c,b.entryIds,b.messages,b.entries);d<0&&hI("entry_not_found","Entry is not part of this conversation branch");let e=aA(b.messages[d],c);e||hI("entry_not_found","Entry is not visible in this conversation");let f=JSON.stringify(e),g=hK(a.offset,0),h=hL(a.limit,32e3,64e3),i=Math.min(f.length,g+h);return{text:f.slice(g,i),encoding:"json",total:f.length,offset:g,nextOffset:i,hasMore:i<f.length}}async function hU(a){let b;if(!0===a.online){let b=await hR(a),c=aB(b.messages,b.entryIds,hK(a.offset,0),hL(a.limit,100,500));return{id:b.id,leafId:b.leafId,...c}}let c=hJ(a.id),d=await (0,al.os)(c);d||hI("session_not_found","Session not found");let e=(0,al.cr)(d);"too_large"===e.error&&hI("session_file_too_large","Session file is too large to open in ompgui"),e.header||hI("session_file_malformed","Session file is missing or malformed");let f=(0,az.qd)(e.entries,{skipToolResultImages:!0});if(void 0!==a.leafId&&null!==a.leafId){let c=(0,S.oJ)(a.leafId)?.trim();(!c||c.length>200)&&hI("invalid_leaf","leafId is invalid"),b=c}let g=(0,az.kT)(f),h=b??g;b&&(new Set(f.map(a=>a.id)).has(b)||hI("unknown_leaf","Unknown conversation branch"));let i=(0,al.Uv)(f,h??void 0,{deferThinking:!0,deferToolResultImages:!0}),j=i.messages.length,k=hK(a.offset,0),l=hL(a.limit,100,500),m=i.messages.slice(k,k+l),n=i.entryIds.slice(k,k+l);return{id:c,leafId:h??null,total:j,offset:k,limit:l,hasMore:k+m.length<j,messages:m,entryIds:n,thinkingLevel:i.thinkingLevel,model:i.model,todoPhases:i.todoPhases}}async function hV(a){let b=hJ(a.id),c=(0,S.oJ)(a.entryId)?.trim();(!c||c.length>200)&&hI("invalid_entry","entryId is required");let d=(0,S.i)(a.blockIndex);(void 0===d||!Number.isSafeInteger(d)||d<0||d>100)&&hI("invalid_block_index","A valid block index is required");let e=await (0,al.os)(b);e||hI("session_not_found","Session not found");let f=(0,al.DK)(e).find(a=>a.id===c);!(void 0===f||"message"!==f.type||"object"!=typeof f.message||null===f.message||Array.isArray(f.message))&&"role"in f.message&&"assistant"===f.message.role&&"content"in f.message&&Array.isArray(f.message.content)||hI("assistant_message_not_found","Assistant message not found");let g=f.message.content[d];return!("object"!=typeof g||null===g||Array.isArray(g))&&"type"in g&&"thinking"===g.type&&"thinking"in g&&"string"==typeof g.thinking||hI("thinking_block_not_found","Thinking block not found"),{thinking:g.thinking}}function hW(a,b,c){let d=hK(c.offset,0),e=hL(c.limit,10,10),f=[],g=0;for(let b of a.slice(d,d+e)){let a=Buffer.byteLength(JSON.stringify(b));if(g+a>0xe00000&&f.length>0)break;a>0xe00000&&hI("tool_result_images_too_large","Image exceeds supported size"),g+=a,f.push(b)}let h=d+f.length;return{images:f,missingCount:b,total:a.length,offset:d,nextOffset:h,hasMore:h<a.length}}async function hX(a){let b=await hR(a),c=(0,S.oJ)(a.entryId)?.trim();(!c||c.length>200)&&hI("invalid_entry","entryId is required");let d=hS(c,b.entryIds,b.messages,b.entries);if((d<0||!aA(b.messages[d],c))&&hI("entry_not_found","Entry is not part of this conversation branch"),b.filePath)try{let c=(0,al.td)(b.filePath,b.entryIds[d]);if(c)return hW(c.images,c.missingCount,a)}catch(a){throw a instanceof T.zJ&&hI(a.code,a.message),a}let e=b.entries.find(a=>a.id===b.entryIds[d]),f=e?(0,az.qd)([e])[0]:void 0,g=f&&"message"in f?f.message:b.messages[d];return"object"==typeof g&&null!==g&&"content"in g&&Array.isArray(g.content)?hW((0,T.K8)({content:g.content,details:"details"in g?g.details:void 0}),0,a):{images:[],missingCount:0}}async function hY(a){let b=hJ(a.id),c=await (0,al.os)(b);if(!c){if(bA(b)?.isAlive())return{subagents:[]};hI("session_not_found","Session not found")}return{subagents:hc(c)}}async function hZ(a,b){let c,d=await (0,al.os)(a),e=bA(a);d||e?.isAlive()||hI("session_not_found","Session not found");let f=d?hc(d).find(a=>a.id===b):void 0;if(e?.isAlive())try{let a=await e.send({type:"get_subagents"});a&&"object"==typeof a&&"subagents"in a&&Array.isArray(a.subagents)&&(c=a.subagents.find(a=>null!==a&&"object"==typeof a&&"id"in a&&a.id===b))}catch{}let g=c?.status;return{filePath:d,rpc:e,live:c,history:f,pending:"started"===g||"pending"===g||"running"===g}}function h$(a,b,c,d){try{return ha(a,b,c,void 0,!0)??(d?ha(a,b,c,d,!0):null)}catch(a){throw a instanceof g9&&hI("artifact_forbidden",a.message),a}}async function h_(a){let b=hJ(a.id),c=(0,S.oJ)(a.subagentId)?.trim();c&&!(c.length>100)&&hC.test(c)||hI("invalid_subagent_id","Invalid subagent id");let d=void 0===a.fromByte?0:(0,S.i)(a.fromByte);(void 0===d||!Number.isSafeInteger(d)||d<0)&&hI("invalid_offset","fromByte must be a non-negative integer");let e=await hZ(b,c);if(e.live&&e.rpc)try{let a=await e.rpc.send({type:"get_subagent_messages",subagentId:c,fromByte:d});if(a&&"object"==typeof a&&"messages"in a&&Array.isArray(a.messages)&&!("error"in a&&a.error))return{...a,status:e.pending&&0===a.messages.length?"pending":"ready"}}catch{}let f=e.filePath?h$(e.filePath,c,".jsonl"):null;if(!f){if(e.pending)return{status:"pending",fromByte:d,nextByte:d,reset:!1,messages:[],totalBytes:null};e.history||e.live||hI("subagent_not_found","Subagent is not part of this session"),hI("transcript_not_found","No saved transcript is available for this subagent")}let g=function(a,b=0){let c,d={sessionFile:a,fromByte:"number"==typeof b&&Number.isFinite(b)?Math.max(0,Math.trunc(b)):0,nextByte:"number"==typeof b&&Number.isFinite(b)?Math.max(0,Math.trunc(b)):0,reset:!1,messages:[]},e=d.fromByte,f=!1;try{c=(0,ao.openSync)(a,ao.constants.O_RDONLY|ao.constants.O_NOFOLLOW);let b=(0,ao.fstatSync)(c);if(!b.isFile())return{...d,error:"Subagent transcript is not a regular file"};let g=b.size;if(e>g&&(e=0,f=!0),g>0x1000000)return{...d,fromByte:e,nextByte:e,reset:f,error:"Subagent transcript exceeds the readable size limit"};let h=[],i=0,j=0;for(;e+i<g;){let a=Buffer.allocUnsafe(Math.min(262144,g-e-i)),b=(0,ao.readSync)(c,a,0,a.length,e+i);if(0===b)break;let d=a.subarray(0,b),f=0===i?d.lastIndexOf(10):d.indexOf(10);if(f>=0){h.push(d.subarray(0,f+1)),j=i+f+1;break}h.push(d),i+=b}let k=[];if(j>0){let a=(1===h.length?h[0]:Buffer.concat(h,j)).toString("utf8");for(let b of(0,az.nr)(a)){if(null===b||"object"!=typeof b||Array.isArray(b))continue;let a=(0,al.HA)(b,{});null!==a&&k.push(a)}}return{sessionFile:a,fromByte:e,nextByte:e+j,reset:f,messages:k,totalBytes:g}}catch{return{...d,fromByte:e,nextByte:e,reset:f,error:"Subagent transcript could not be read"}}finally{void 0!==c&&(0,ao.closeSync)(c)}}(f,d);return{status:e.pending&&0===g.messages.length?"pending":"ready",fromByte:g.fromByte,nextByte:g.nextByte,reset:g.reset,messages:g.messages,totalBytes:g.totalBytes??null,...g.error?{error:g.error}:{}}}async function h0(a){let b=hJ(a.id),c=(0,S.oJ)(a.subagentId)?.trim();c&&!(c.length>100)&&hC.test(c)||hI("invalid_subagent_id","Invalid subagent id");let d=await hZ(b,c),e=d.filePath?h$(d.filePath,c,".md",d.history?.result?.outputPath):null,f=e?function(a){let b;try{b=(0,ao.openSync)(a,ao.constants.O_RDONLY|ao.constants.O_NOFOLLOW)}catch{return null}try{let a=(0,ao.fstatSync)(b);if(!a.isFile()||a.size<=0)return null;let c=a.size>hd,d=Math.min(a.size,hd),e=Buffer.alloc(d),f=(0,ao.readSync)(b,e,0,d,0),g=e.subarray(0,f),h=g.length,i=0;for(;h-i>0&&(192&g[h-1-i])==128;)i+=1;let j=h-1-i;if(j>=0){let a=g[j];j+(a>=240?4:a>=224?3:a>=192?2:1)>g.length&&(h=j)}else h=0;return{completion:g.subarray(0,h).toString("utf8"),truncated:c}}finally{(0,ao.closeSync)(b)}}(e):null;return f?{...f,status:"ready"}:(d.history||d.live||hI("subagent_not_found","Subagent is not part of this session"),{completion:null,truncated:!1,status:d.pending?"pending":"unavailable"})}async function h1(a){let b=hJ(a.id);try{let a=await bK(b,{type:"get_session_stats"});return("object"!=typeof a||null===a||Array.isArray(a))&&hI("stats_failed","Session stats unavailable"),hM(a)}catch(a){if(a instanceof bG||a instanceof bl||a instanceof ax.x)throw a;hI("stats_failed",a instanceof Error?a.message:String(a))}hI("stats_failed","unreachable")}async function h2(a){let b=hJ(a.id);try{let a=await bK(b,{type:"get_state"});return("object"!=typeof a||null===a||Array.isArray(a))&&hI("state_failed","Session state unavailable"),hM(a)}catch(a){if(a instanceof bG||a instanceof bl||a instanceof ax.x)throw a;hI("state_failed",a instanceof Error?a.message:String(a))}hI("state_failed","unreachable")}async function h3(a){let b=hJ(a.id),c=await bK(b,{type:"get_state"});return"object"==typeof c&&null!==c&&!Array.isArray(c)&&"systemPrompt"in c&&"string"==typeof c.systemPrompt?{systemPrompt:c.systemPrompt}:{systemPrompt:null}}async function h4(a){let b=hJ(a.id),c=bA(b),d=!!c?.isAlive?.();if(d&&void 0!==c&&"function"==typeof c.send)try{let a,b=await c.send({type:"get_state"});"object"==typeof b&&null!==b&&!Array.isArray(b)&&"sessionName"in b&&"string"==typeof b.sessionName&&(a=b.sessionName);let d=he(a);if(d)return(0,al.mD)(),{title:d}}catch{}let e=await (0,al.os)(b);e||hI("session_not_found","Session not found");let f=(0,az.mk)(e,!1),g=he(f?.title);if(g)return{title:g};let h=function(a){if(!a||"(no messages)"===a)return null;let b=he(a);if(!b||!/[\p{L}\p{N}]/u.test(b))return null;let c=Array.from(b);return c.length<=60?b:`${c.slice(0,60).join("").trimEnd()}…`}(f?.firstMessage);return h||hI("session_no_messages_to_name","The session has no user messages to name"),d||(0,az.Bm)(e,h,"auto"),(0,al.mD)(),{title:h}}async function h5(a,b){let c=hJ(a.id),d=function(a){("object"!=typeof a||null===a||Array.isArray(a))&&hI("invalid_command","command must be an object");let b={};for(let[c,d]of Object.entries(a))b[c]=d;return b}(a.command),e=(0,S.oJ)(d.type)?.trim();e||hI("command_type_required","command type is required"),hF[e]&&hI("unsupported_command",hF[e]),hE.has(e)||hI("unsupported_command",`Unsupported command: ${e}`),d.type=e,"recall_queued_message"===e&&(d.__relayRecallMaxBytes=0xf00000);let f="prompt"===e||"abort_and_prompt"===e||"steer"===e||"follow_up"===e||"enqueue_message"===e,g=void 0!==d.attachmentIds;if(g&&!f&&hI("invalid_attachment","This command does not accept attachmentIds"),"enqueue_message"===e&&"steer"!==d.lane&&"followUp"!==d.lane&&hI("invalid_command","enqueue_message requires lane steer or followUp"),("recall_queued_message"===e||"delete_queued_message"===e||"promote_queued_message"===e)&&("string"==typeof d.id&&d.id.trim()||hI("invalid_command",`${e} requires id`),("number"!=typeof d.expectedRevision||!Number.isSafeInteger(d.expectedRevision)||d.expectedRevision<0)&&hI("invalid_command",`${e} requires a nonnegative safe integer expectedRevision`)),g&&void 0!==d.images&&hI("invalid_images","Do not combine images and attachmentIds"),f&&("string"!=typeof d.message||d.message.length>3145728)&&hI("invalid_command","A prompt message of at most 3Mi characters is required"),f&&void 0!==d.images){let a=d.images;Array.isArray(a)||hI("invalid_images","images must be an array");let b=a.map(a=>"object"!=typeof a||null===a||Array.isArray(a)?a:{type:"image",data:"data"in a&&"string"==typeof a.data?a.data:void 0,mimeType:"mimeType"in a&&"string"==typeof a.mimeType?a.mimeType:void 0}),c=(0,T.kc)(b);c&&hI("invalid_images",c),d.images=b}if("fork"===e&&((0,S.oJ)(d.entryId)?.trim()||hI("invalid_entry","fork requires entryId")),"bash"===e&&!0===d.excludeFromContext&&hI("bash_exclude_unsupported","omp cannot run a shell command with its output excluded from the model context (`!!`): the RPC bash command has no exclusion option, so the output would silently enter the context anyway. Run it with a single `!` to share the output with the model, or use a terminal outside ompgui."),"set_model"===e){let a=(0,S.oJ)(d.provider)?.trim(),b=(0,S.oJ)(d.modelId)?.trim();a&&b||hI("invalid_command","set_model requires provider and modelId")}"set_thinking_level"===e&&(((0,S.oJ)(d.level)?.trim()??(0,S.oJ)(d.thinkingLevel)?.trim())||hI("invalid_command","set_thinking_level requires level")),"set_session_name"===e&&((0,S.oJ)(d.name)?.trim()||hI("invalid_command","Session name cannot be empty")),"extension_ui_response"===e&&((0,S.oJ)(d.id)?.trim()||hI("invalid_command","extension_ui_response requires id"),b.sessionId!==c&&hI("invalid_session","Open the target session before answering its dialog")),g&&(b.sessionId!==c&&hI("invalid_session","Open the target session before sending attachments"),bA(c)?.isAlive()||await (0,al.os)(c)||hI("session_not_found","Session not found")),b.assertActive?.();let h=g?hu.claim(b.deviceId,d.attachmentIds):void 0;delete d.attachmentIds;try{let a=await bK(c,d,()=>(b.assertActive?.(),h?{...d,images:h.materialize()}:d));if(null==a)return{result:null};if("object"==typeof a)return{result:a};return{result:{value:a}}}catch(a){if(a instanceof bG||a instanceof bl||a instanceof ax.x)throw a;hI("rpc_command_failed",a instanceof Error?a.message:String(a))}finally{h?.dispose()}hI("rpc_command_failed","unreachable")}async function h6(a){let b=(0,S.oJ)(a.cwd)?.trim(),c=(0,S.oJ)(a.path)?.trim();b||hI("cwd_required","cwd is required"),c||hI("path_required","path is required");let d=await am();an((0,P.resolve)(b),d)||hI("access_denied","Path is outside allowed workspaces");let e=!0===a.force;try{return await (0,cd.IL)(b,c,e),{path:c}}catch(b){let a=b instanceof Error?b.message:String(b);/contains modified or untracked files|is dirty/i.test(a)&&hI("worktree_dirty",a,{dirty:!0}),a.startsWith("Not a worktree of this repository")&&hI("not_a_worktree",a),a.startsWith("Cannot remove the main worktree")&&hI("cannot_remove_main_worktree",a),hI("worktree_remove_failed",a)}hI("worktree_remove_failed","unreachable")}async function h7(a,b,c){hG.has(a)||hI("unknown_action",`Unknown sessions action: ${a}`),("object"!=typeof b||null===b||Array.isArray(b))&&hI("invalid_args","args must be an object");let d={};for(let[a,c]of Object.entries(b))d[a]=c;switch(a){case"projects.remove":{let a=(0,S.oJ)(d.cwd)?.trim();return a||hI("invalid_args","cwd is required"),{...await gW(await gH(a)),projects:await gC()}}case"list":return hN(d);case"create":return hQ(d);case"delete":{let a=hJ(d.id);return{...await hv(a)}}case"archive":{let a=hJ(d.id);return{...await hw(a)}}case"rename":{let a=hJ(d.id),b=(0,S.oJ)(d.name)??"";return{...await hx(a,b)}}case"restore":{let a=(0,S.oJ)(d.key)?.trim();return a||hI("invalid_key","archive key is required"),{...await hz(a)}}case"archives":return{archives:await hy()};case"import":{let a=(0,S.oJ)(d.fileName)??"",b=(0,S.oJ)(d.content)??"";return{...await hA(a,b)}}case"branches":{let a=hJ(d.id);return{...await bN(a)}}case"leaf":{let a=hJ(d.id),b=(0,S.oJ)(d.leafId)?.trim();return b||hI("invalid_leaf","leafId is required"),{...await bO(a,b)}}case"search":return hO(d);case"searchContext":return hP(d);case"content":return hT(d);case"history":return hU(d);case"thinking":return hV(d);case"media":return hX(d);case"subagents":return hY(d);case"subagentTranscript":return h_(d);case"subagentCompletion":return h0(d);case"stats":return h1(d);case"state":return h2(d);case"systemPrompt":return h3(d);case"autoname":return h4(d);case"export":{let a=hJ(d.id);return{...await bP(a,c.deviceId)}}case"exportChunk":{let a=(0,S.oJ)(d.transferId)?.trim();return a||hI("invalid_transfer","transferId is required"),{...function(a,b,c,d){let e=bQ.get(a);if(!e||e.deviceId!==d||e.expiresAt<=Date.now())throw e?.expiresAt!==void 0&&e.expiresAt<=Date.now()&&bQ.delete(a),new bG("unknown_transfer","Unknown or expired export transfer");if(!Number.isSafeInteger(b)||b<0||b>e.size)throw new bG("invalid_offset","Invalid export offset");if(!Number.isSafeInteger(c)||c<=0||c>98304)throw new bG("invalid_length","Invalid export chunk length");let f=e.bytes.subarray(b,Math.min(e.size,b+c)),g=b+f.length;return{transferId:a,offset:b,data:Buffer.from(f).toString("base64"),bytes:f.length,nextOffset:g,complete:g>=e.size,size:e.size}}(a,hK(d.offset,0),void 0===d.length?98304:hL(d.length,98304,98304),c.deviceId)}}case"exportClose":{var e;let a,b=(0,S.oJ)(d.transferId)?.trim();return b||hI("invalid_transfer","transferId is required"),{...(e=c.deviceId,!(a=bQ.get(b))||a.deviceId!==e?{closed:!1}:{closed:bQ.delete(b)})}}case"attachments.begin":return hu.begin(c.deviceId,d.mimeType,d.size);case"attachments.chunk":return hu.chunk(c.deviceId,d.attachmentId,d.offset,d.data);case"attachments.complete":return hu.complete(c.deviceId,d.attachmentId);case"attachments.abort":return hu.abort(c.deviceId,d.attachmentId);case"command":return h5(d,c);case"worktrees.list":{let a=(0,S.oJ)(d.cwd)?.trim();return a||hI("cwd_required","cwd is required"),{...await gQ(a)}}case"worktrees.add":{let a=(0,S.oJ)(d.cwd)?.trim(),b=(0,S.oJ)(d.branch)?.trim();return a||hI("cwd_required","cwd is required"),b||hI("branch_required","branch is required"),{...await gU(a,b)}}case"worktrees.remove":return h6(d);default:hI("unknown_action",`Unknown sessions action: ${a}`)}hI("unknown_action",`Unknown sessions action: ${a}`)}let h8="models_config_invalid";class h9 extends Error{constructor(a){const b=a.length>0?a:[{path:"",message:"Invalid models configuration"}];super(b.map(a=>a.path?`${a.path} ${a.message}`:a.message).join("; ")),this.code=h8,this.name="ModelsConfigValidationError",this.issues=b}}function ia(a,b,c){a.push({path:b,message:c})}function ib(a){if("string"!=typeof a||""===a.trim())return!1;try{let b=new URL(a);return("http:"===b.protocol||"https:"===b.protocol)&&b.hostname.length>0}catch{return!1}}function ic(a,b,c){(!(0,S.u4)(a)||Object.values(a).some(a=>"string"!=typeof a))&&ia(c,b,"must map header names to strings")}function id(a){let b=[];if(!(0,S.u4)(a))throw new h9([{path:"",message:"must be an object"}]);let c=ij(a).providers,d=void 0===c?{}:c;if((0,S.u4)(d))for(let[a,c]of Object.entries(d)){let d=`providers.${a}`;if(!(0,S.u4)(c)){ia(b,d,"must be an object");continue}if(void 0===c.baseUrl||ib(c.baseUrl)||ia(b,`${d}.baseUrl`,"must be a valid HTTP(S) URL"),void 0!==c.api&&("string"!=typeof c.api||""===c.api.trim())&&ia(b,`${d}.api`,"must be a non-empty API identifier"),void 0!==c.auth&&"none"!==c.auth&&"apiKey"!==c.auth&&"oauth"!==c.auth&&ia(b,`${d}.auth`,"must be one of apiKey, none, or oauth"),void 0!==c.apiKey&&"string"!=typeof c.apiKey&&ia(b,`${d}.apiKey`,"must be a string"),void 0!==c.headers&&ic(c.headers,`${d}.headers`,b),void 0!==c.models&&!Array.isArray(c.models)){ia(b,`${d}.models`,"must be an array");continue}let e=Array.isArray(c.models)?c.models:[],f=new Map;for(let[a,g]of(e.length>0&&(("string"!=typeof c.baseUrl||""===c.baseUrl.trim())&&ia(b,`${d}.baseUrl`,"is required when defining custom models"),"apiKey"===(c.auth??"apiKey")&&("string"!=typeof c.apiKey||""===c.apiKey.trim())&&ia(b,`${d}.apiKey`,"is required when defining custom models unless auth is none or oauth")),e.entries())){let e=`${d}.models[${a}]`;if(!(0,S.u4)(g)){ia(b,e,"must be an object");continue}if("string"!=typeof g.id||""===g.id.trim())ia(b,`${e}.id`,"is required");else{let c=f.get(g.id);void 0!==c?ia(b,`${e}.id`,`duplicates the model id at index ${c}`):f.set(g.id,a)}for(let a of(void 0===g.baseUrl||ib(g.baseUrl)||ia(b,`${e}.baseUrl`,"must be a valid HTTP(S) URL"),void 0!==g.api&&("string"!=typeof g.api||""===g.api.trim())&&ia(b,`${e}.api`,"must be a non-empty API identifier"),("string"!=typeof c.api||""===c.api.trim())&&("string"!=typeof g.api||""===g.api.trim())&&ia(b,`${e}.api`,"must be specified at provider or model level"),["contextWindow","maxTokens"]))void 0!==g[a]&&("number"!=typeof g[a]||!Number.isFinite(g[a])||g[a]<=0)&&ia(b,`${e}.${a}`,"must be a positive finite number");if(void 0!==g.headers&&ic(g.headers,`${e}.headers`,b),void 0!==g.cost)if((0,S.u4)(g.cost))for(let a of["input","output","cacheRead","cacheWrite"]){let c=g.cost[a];void 0===c?ia(b,`${e}.cost.${a}`,"is required (cost needs input, output, cacheRead, and cacheWrite)"):("number"!=typeof c||!Number.isFinite(c)||c<0)&&ia(b,`${e}.cost.${a}`,"must be a finite non-negative number")}else ia(b,`${e}.cost`,"must be an object")}}else ia(b,"providers","must be an object");if(b.length>0)throw new h9(b)}function ie(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function ig(a){if(!(0,S.u4)(a))return a;let b={...a};return delete b.originalId,b}function ih(a){if(!(0,S.u4)(a))return a;let b={...a};return delete b.originalName,delete b.apiKeyConfigured,delete b.headersConfigured,Array.isArray(b.models)&&(b.models=b.models.map(ig)),b}class ii extends Error{constructor(a,b){super(`${a} is not valid YAML: ${b}`),this.name="ModelsConfigParseError",this.path=a,this.detail=b}}function ij(a){if(!(0,S.u4)(a.providers))return a;let b=Object.fromEntries(Object.entries(a.providers).map(([a,b])=>{if(!(0,S.u4)(b)||!Array.isArray(b.models))return[a,b];let c=b.models.filter(a=>!(0,S.u4)(a)||"string"!=typeof a.id||a.id.trim().length>0);return[a,{...b,models:c}]}));return{...a,providers:b}}function ik(){let a,b=(0,R.OK)();if(!(0,ao.existsSync)(b))return{path:b,exists:!1,config:{providers:{}}};try{a=(0,ao.readFileSync)(b,"utf8")}catch(a){return{path:b,exists:!0,config:{providers:{}},parseError:String(a)}}let c=(0,aG.Tp)(a);if(c.errors.length>0)return{path:b,exists:!0,source:a,config:{providers:{}},parseError:c.errors[0].message};let d=c.toJS();return null==d?{path:b,exists:!0,source:a,config:{providers:{}}}:(0,S.u4)(d)?{path:b,exists:!0,source:a,config:ij(d)}:{path:b,exists:!0,source:a,config:{providers:{}},parseError:"the top level of models.yml must be a mapping"}}function il(a){return"object"==typeof a&&null!==a&&!Array.isArray(a)}function im(a){return(0,aG.jn)(a)&&("string"==typeof a.value||"number"==typeof a.value)?String(a.value):"string"==typeof a?a:void 0}function io(a,b){if(void 0===b||""===b.trim())return(0,aG.As)(a);let c=(0,aG.Tp)(b);return c.errors.length>0?(0,aG.As)(a):((0,aG.jh)(c.contents)?!function a(b,c,d){if((0,aG.jh)(c)&&il(d)){let e=new Map(Object.entries(d).filter(([,a])=>void 0!==a));for(let[d,f]of(c.items=c.items.filter(a=>{let b=im(a.key);return void 0===b||e.has(b)}),e)){let e=c.items.find(a=>im(a.key)===d);e?e.value=a(b,e.value,f):c.set(b.createNode(d),b.createNode(f))}return c}if((0,aG.oP)(c)&&Array.isArray(d)){let e=[...c.items],f=new Map;for(let a of e){let b=function(a){if(!(0,aG.jh)(a))return;let b=a.get("id");return"string"==typeof b?b:void 0}(a);void 0===b||f.has(b)||f.set(b,a)}return c.items=d.map((c,d)=>{let g,h=il(c)&&"string"==typeof c.id?c.id:void 0;return void 0!==h?void 0!==(g=f.get(h))&&f.delete(h):g=e[d],a(b,g,c)}),c}if((0,aG.jn)(c)&&!il(d)&&!Array.isArray(d)&&typeof c.value==typeof d)return c.value=d,c;let e=b.createNode(d);return c&&e&&"object"==typeof c&&"object"==typeof e&&(null!=c.comment&&(e.comment=c.comment),null!=c.commentBefore&&(e.commentBefore=c.commentBefore),c.spaceBefore&&(e.spaceBefore=c.spaceBefore)),e}(c,c.contents,a):c.contents=c.createNode(a),c.toString())}var ip=c(52676);class iq extends Error{constructor(a,b,c,d){super(b),this.code=a,this.latencyMs=c,this.issues=d,this.name="ModelVerificationError"}}function ir(a){let b="object"!=typeof a||null===a||Array.isArray(a)?{}:a,c="providerName"in b&&"string"==typeof b.providerName?b.providerName.trim():"";if(!c)throw new iq("provider_name_required","providerName is required");if(!("provider"in b)||"object"!=typeof b.provider||null===b.provider||Array.isArray(b.provider))throw new iq("provider_required","provider is required");if(!("model"in b)||"object"!=typeof b.model||null===b.model||Array.isArray(b.model))throw new iq("model_required","model is required");let d="id"in b.model&&"string"==typeof b.model.id?b.model.id.trim():"";if(!d)throw new iq("model_id_required","Model ID is required");let e={providers:{[c]:{...b.provider,models:[{...b.model,id:d}]}}};try{id(e)}catch(a){throw new iq("models_config_invalid",a instanceof h9?a.message:"Invalid models configuration",void 0,a instanceof h9?a.issues:void 0)}return{providerName:c,modelId:d,candidate:e}}function is(a){let b=(0,O.mkdtempSync)((0,P.join)((0,av.tmpdir)(),"ompgui-model-test-"));try{return(0,O.writeFileSync)((0,P.join)(b,"models.yml"),io(a),{encoding:"utf8",mode:384}),b}catch(a){throw(0,O.rmSync)(b,{recursive:!0,force:!0}),a}}async function it(a){let b,c,{providerName:d,modelId:e,candidate:f}=ir(a);try{try{b=is(f),c=Date.now();let a=await (0,ip._)({type:"get_available_models"},{env:{PI_CODING_AGENT_DIR:b,OMP_PROFILE:"",PI_PROFILE:"",XDG_DATA_HOME:""},timeoutMs:6e4}),g=Date.now()-c;if(!("object"==typeof a&&null!==a&&"models"in a&&Array.isArray(a.models)?a.models:[]).some(a=>"object"==typeof a&&null!==a&&"provider"in a&&a.provider===d&&"id"in a&&a.id===e))throw new iq("model_test_unresolved",`Model ${d}/${e} did not resolve — check the API key and provider config`,g);return{ok:!0,latencyMs:g,responseText:`${d}/${e} resolved (configuration only; credentials were not contacted)`}}finally{b&&(0,O.rmSync)(b,{recursive:!0,force:!0})}}catch(a){if(a instanceof iq)throw a;throw new iq("model_test_failed","Model configuration verification failed",void 0===c?void 0:Date.now()-c)}}async function iu(a,b={}){let c,d,e,f;try{c=new URL(a)}catch{throw Error("Invalid model probe endpoint")}if("http:"!==c.protocol&&"https:"!==c.protocol||c.hash)throw Error("Unsupported model probe endpoint");if(b.signal?.aborted)throw Error("Model probe cancelled");try{b.assertActive?.()}catch{throw Error("Model probe cancelled")}let g=`/model-probe-${(0,L.randomBytes)(24).toString("hex")}`,h=a.split("?",1)[0].endsWith("/"),i=new URLSearchParams(c.search);c.search="";let j=c.href.replace(/\/+$/,""),k=new Set,l=new Set,m=!1,n=!1,o=a=>{let b=Promise.withResolvers();k.add(a),l.add(b.promise),a.once("close",()=>{k.delete(a),l.delete(b.promise),b.resolve()}),n&&a.destroy()},p=(0,J.createServer)((a,c)=>{let f=a.url??"",h=f.indexOf("?"),k=h<0?f:f.slice(0,h),l=b.expectedPath;if(m||n||"POST"!==a.method||!(f===g||f.startsWith(`${g}/`)||f.startsWith(`${g}?`))||void 0!==l&&k!==`${g}/${l.replace(/^\/+/,"")}`){c.writeHead(403,{connection:"close"}),c.end(),a.resume();return}try{let h=new URL(j+f.slice(g.length));for(let[a,b]of i)h.searchParams.set(a,b);let k={...a.headers};for(let[a,c]of Object.entries(b.upstreamHeaders??{}))k[a.toLowerCase()]=c;if(k.host=h.host,k.connection="close",b.signal?.aborted||n||(b.authorizeDispatch?.(),b.assertActive?.(),b.signal?.aborted||n))throw Error("Model probe cancelled");m=!0,d=("https:"===h.protocol?K.request:J.request)(h,{method:a.method,headers:k,agent:!1});let l=Promise.withResolvers();e=l.promise,d.once("close",()=>l.resolve()),d.on("socket",o),d.on("error",()=>{c.headersSent?c.destroy():(c.writeHead(502,{connection:"close"}),c.end())}),d.on("response",a=>{if(a.on("error",()=>c.destroy()),a.statusCode&&a.statusCode>=300&&a.statusCode<400){c.writeHead(502,{connection:"close"}),c.end(),a.destroy();return}c.writeHead(a.statusCode??502,a.statusMessage,a.rawHeaders),a.pipe(c),c.once("close",()=>a.destroy())}),a.on("error",()=>d?.destroy()),a.once("aborted",()=>d?.destroy()),c.once("close",()=>d?.destroy()),a.pipe(d)}catch{d?.destroy(),c.writeHead(502,{connection:"close"}),c.end(),a.resume()}});p.on("connection",o),p.on("clientError",(a,b)=>b.destroy());let q=()=>{if(f)return f;n=!0,b.signal?.removeEventListener("abort",r);let a=Promise.withResolvers();for(let b of(f=a.promise,d?.destroy(),k))b.destroy();let c=Promise.withResolvers();return p.close(()=>c.resolve()),Promise.all([c.promise,e,...l]).then(()=>a.resolve()),f},r=()=>{q()},s=Promise.withResolvers();p.once("error",()=>s.reject(Error("Model probe transport unavailable"))),p.listen(0,"127.0.0.1",()=>s.resolve());try{if(await s.promise,b.signal?.addEventListener("abort",r,{once:!0}),b.signal?.aborted)throw Error("Model probe cancelled");b.assertActive?.();let a=p.address();if(!a||"string"==typeof a)throw Error("Model probe transport unavailable");return{baseUrl:`http://127.0.0.1:${a.port}${g}${h?"/":""}`,close:q}}catch{throw await q(),Error("Model probe transport unavailable")}}let iv=new Set(["openai-completions","openai-responses","anthropic-messages"]),iw=["ollama","llama.cpp","lm-studio","google-vertex","zenmux","vllm"],ix=new Set(["moonshot","sakana","github-copilot","alibaba-token-plan","alibaba-coding-plan","ollama-cloud"]),iy={disabledProviders:iw,retry:{enabled:!1,maxRetries:0,modelFallback:!1,usageAwareFallback:!1,fallbackChains:{}},advisor:{enabled:!1},autolearn:{enabled:!1,autoContinue:!1},memory:{backend:"off"},memories:{enabled:!1},compaction:{enabled:!1,autoContinue:!1},ttsr:{enabled:!1},features:{unexpectedStopDetection:!1},providers:{anthropic:{serverSideFallback:!1}}};async function iz(a,b={}){var c;let d,e,f,g,h,i;if("object"!=typeof a||null===a||!("confirm"in a)||!0!==a.confirm)throw new iq("connectivity_confirmation_required","Confirm the provider and model connection test and possible charges first");b.assertActive?.();let j=ir(a),{providerName:k,modelId:l}=j,m=structuredClone(j.candidate),n=m.providers[k],o=n.models[0],p=o.api??n.api;if("string"!=typeof p||!iv.has(p)||iw.includes(k)||ix.has(k))throw new iq("connectivity_unsupported","Live checks support OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages APIs with isolated endpoint routing. This API or native provider identity is not supported; configuration checks remain available.");let q=[n.apiKey,...Object.values(n.headers??{}),...Object.values(o.headers??{})].filter(a=>"string"==typeof a&&a.length>0);if("oauth"===n.auth||q.some(a=>a.startsWith("!")||/^[A-Z_][A-Z0-9_]*$/.test(a)))throw new iq("connectivity_credential_method_unsupported","Supply literal candidate credentials; saved authentication, environment references, and credential commands are not used");let r=(c=o.baseUrl??n.baseUrl,(i=new URL(c)).pathname=i.pathname.replace(/\/+$/,""),"anthropic-messages"===p&&i.pathname.endsWith("/v1")&&(i.pathname=i.pathname.slice(0,-3)),"openai-completions"===p&&i.hostname.endsWith(".openai.azure.com")&&(i.pathname.includes("/deployments/")||(i.pathname=`${i.pathname.replace(/\/+$/,"")}/deployments/${encodeURIComponent(l)}`),i.searchParams.set("api-version","2024-10-21")),i),s=r.href;for(let a of r.searchParams.values())a&&q.push(a);for(let a of[r.username,r.password])if(a){q.push(a);try{q.push(decodeURIComponent(a))}catch{}}let t={};if(n.apiKey){if("anthropic-messages"===p&&n.apiKey.includes("sk-ant-oat"))throw new iq("connectivity_credential_method_unsupported","OAuth credentials cannot be safely tested in this isolated probe");let a="anthropic-messages"===p?"x-api-key":"authorization";for(let[b,c]of(t[a]="anthropic-messages"===p?n.apiKey:`Bearer ${n.apiKey}`,Object.entries({...n.headers,...o.headers})))b.toLowerCase()===a&&(t[a]=c)}let u=Date.now(),v=new AbortController,w=Promise.withResolvers();w.promise.catch(()=>{});let x=!1,y=Math.min(Math.max(b.timeoutMs??3e4,1),3e4),z=(a,b)=>{w.reject(new iq(a,b,Date.now()-u)),v.abort()},A=()=>z("connectivity_cancelled","Model connection test cancelled");b.signal?.addEventListener("abort",A,{once:!0});let B=setTimeout(()=>z("connectivity_timeout","Model connection test timed out"),y),C=a=>{if(!x)return;if("message_end"===a.type&&"object"==typeof a.message&&null!==a.message&&"role"in a.message&&"assistant"===a.message.role&&((h=a.message).provider!==k||h.model!==l))return void z("connectivity_model_mismatch","The selected provider and model did not produce the completion");if("agent_end"!==a.type||!1===a.isTerminal)return;if(Array.isArray(a.messages)){for(let b of a.messages)if("object"==typeof b&&null!==b&&"role"in b&&"assistant"===b.role){if(b.provider!==k||b.model!==l)return void z("connectivity_model_mismatch","The selected provider and model did not produce the completion");h=b}}if(!h||h.provider!==k||h.model!==l)return void z("connectivity_model_mismatch","The selected provider and model did not produce the completion");if("stop"!==h.stopReason&&"length"!==h.stopReason)return 401===h.errorStatus||403===h.errorStatus?void z("connectivity_auth_required","The provider rejected the submitted credentials; saved authentication is not used"):void z("connectivity_failed","The provider did not complete the connection test successfully");let b="";if(Array.isArray(h.content))for(let a of h.content)"object"==typeof a&&null!==a&&"text"===a.type&&"string"==typeof a.text&&(b+=a.text);if(!b.trim())return void z("connectivity_failed","The provider returned no assistant text");for(let a of q)b=b.replaceAll(a,"[redacted]");let c={};if("object"==typeof h.usage&&null!==h.usage)for(let[a,b]of Object.entries(h.usage))("input"===a||"output"===a||"totalTokens"===a)&&"number"==typeof b&&Number.isFinite(b)&&b>=0&&(c[a]=b);w.resolve({ok:!0,latencyMs:Date.now()-u,responseText:b.slice(0,2048),...Object.keys(c).length?{usage:c}:{}})};try{b.signal?.aborted&&A(),g=(async()=>{if(v.signal.aborted||(f=await iu(s,{upstreamHeaders:t,expectedPath:"openai-completions"===p?"/chat/completions":"openai-responses"===p?"/responses":"/v1/messages",assertActive:b.assertActive,authorizeDispatch:()=>{if(b.assertActive?.(),!x)throw new iq("connectivity_failed","The model probe is not ready to dispatch")},signal:v.signal}),b.assertActive?.(),v.signal.aborted))return w.promise;for(let a of(n.baseUrl=f.baseUrl,n.auth="none",delete n.apiKey,["modelOverrides","discovery","transport","remoteCompaction","contextPromotionTarget","compactionModel"]))delete n[a];for(let a of["remoteCompaction","contextPromotionTarget","compactionModel"])delete o[a];o.baseUrl=f.baseUrl,o.maxTokens=Math.max(1,Math.floor(Math.min(o.maxTokens??32,32))),o.reasoning=!1,o.omitMaxOutputTokens=!1,o.compat={...n.compat,...o.compat,alwaysSendMaxTokens:!0},delete o.compat.extraBody,delete o.compat.whenThinking,n.compat=o.compat,d=is(m);let a=(0,P.join)(d,"probe-settings.json");(0,O.writeFileSync)(a,JSON.stringify(iy),{mode:384});let c={};for(let a of Object.keys(process.env))c[a]="";Object.assign(c,{PATH:process.env.PATH??"",HOME:d,TMPDIR:d,PI_CODING_AGENT_DIR:d,OMP_PROFILE:"",PI_PROFILE:"",XDG_DATA_HOME:d,XDG_CONFIG_HOME:d}),e=(b.createProcess??(a=>new ax.X(a)))({cwd:d,env:c,extraArgs:["--no-session","--no-tools","--no-lsp","--no-pty","--no-extensions","--no-skills","--no-rules","--no-title","--no-prewalk","--provider",k,"--model",l,"--config",a,"--system-prompt","Reply briefly.","--thinking","off"],onFrame:C,onExit:()=>z("connectivity_failed","Model connection process exited before completion")});let g=await e.waitReady(y);if(v.signal.aborted||(await e.negotiateProtocol(g),v.signal.aborted))return w.promise;let h=await e.sendCommand({type:"set_model",provider:k,modelId:l},y);if("object"!=typeof h||null===h||!("provider"in h)||h.provider!==k||!("id"in h)||h.id!==l)throw new iq("connectivity_model_mismatch","The requested provider and model could not be selected",Date.now()-u);return await e.sendCommand({type:"set_auto_retry",enabled:!1},y),await e.sendCommand({type:"set_auto_compaction",enabled:!1},y),b.assertActive?.(),v.signal.aborted||(x=!0,await e.sendCommand({type:"prompt",message:"Reply with OK."},y)),w.promise})();let a=await Promise.race([g,w.promise]);return b.assertActive?.(),a}catch(a){if(a instanceof iq)throw a;throw new iq("connectivity_failed","Model connection test failed; check the submitted endpoint and credentials",Date.now()-u)}finally{clearTimeout(B),b.signal?.removeEventListener("abort",A),v.abort();try{try{await e?.dispose(),await g?.catch(()=>{})}finally{try{await f?.close()}finally{d&&(0,O.rmSync)(d,{recursive:!0,force:!0})}}}catch{throw new iq("connectivity_failed","Model connection cleanup failed",Date.now()-u)}}}let iA={anthropic:["api.anthropic.com"],google:["generativelanguage.googleapis.com"],openai:["api.openai.com"],openrouter:["openrouter.ai"]},iB={text:!0,image:!0};function iC(a){return"string"==typeof a&&a.trim()?a.trim():void 0}function iD(a){return"number"==typeof a&&Number.isFinite(a)&&a>=0?a:void 0}function iE(a){return a.trim().toLocaleLowerCase().replace(/[^a-z0-9]/g,"")}function iF(a){if(a)try{return new URL(a).hostname.toLocaleLowerCase().replace(/\.$/,"")}catch{return}}function iG(a){return void 0!==a.cost.input&&void 0!==a.cost.output}function iH(a,b,c){if(0===a.length||b<=0)return;let d=new Map;for(let b of a){let a=c(b),e=d.get(a);e?e.count+=1:d.set(a,{value:b,count:1})}let e=[...d.values()].sort((a,b)=>b.count-a.count),f=e[0];if(f&&!(f.count/b<.6)&&e[1]?.count!==f.count)return f.value}function iI(a){if(0===a.length)return;let b=new Map;for(let c of a)b.set(c,(b.get(c)??0)+1);let c=[...b.entries()].sort((a,b)=>b[1]-a[1]);if(c[0]&&c[1]?.[1]!==c[0][1])return c[0][0]}function iJ(a,b){return{status:"reliable",method:b,cost:{input:a.cost.input,output:a.cost.output,cacheRead:a.cost.cacheRead??0,cacheWrite:a.cost.cacheWrite??0},providerId:a.providerId,providerName:a.providerName,support:1,total:1}}let iK="https://models.dev/api.json";class iL extends Error{constructor(a,b,c){super(b),this.code=a,this.status=c,this.name="ModelCatalogError"}}async function iM(){let a=await fetch(iK,{cache:"no-store",headers:{Accept:"application/json"},signal:AbortSignal.timeout(15e3)});if(!a.ok)throw Error("Catalog request failed");let b=function(a){if(!(0,S.u4)(a))return[];let b=[];for(let[d,e]of Object.entries(a)){if(!(0,S.u4)(e)||!(0,S.u4)(e.models))continue;let a=iC(e.name)??d,f=iC(e.api);for(let[g,h]of Object.entries(e.models)){var c;if(!(0,S.u4)(h))continue;let e=iC(h.id)??g;if(!e)continue;let i=iC(h.name)??e,j={key:`${d}/${e}`,providerId:d,providerName:a,id:e,name:i,cost:(c=h.cost,(0,S.u4)(c)?{input:iD(c.input),output:iD(c.output),cacheRead:iD(c.cache_read),cacheWrite:iD(c.cache_write)}:{})};f&&(j.providerBaseUrl=f),"boolean"==typeof h.reasoning&&(j.reasoning=h.reasoning);let k=function(a){if(!(0,S.u4)(a)||!Array.isArray(a.input))return;let b=Array.from(new Set(a.input.filter(a=>"string"==typeof a).map(a=>a.trim().toLocaleLowerCase()).filter(a=>!0===iB[a])));return b.length?b:void 0}(h.modalities);if(k&&(j.input=k),(0,S.u4)(h.limit)){let a=h.limit.context,b=h.limit.output;"number"==typeof a&&Number.isFinite(a)&&a>0&&(j.contextWindow=a),"number"==typeof b&&Number.isFinite(b)&&b>0&&(j.maxTokens=b)}b.push(j)}}return b}(await a.json());if(0===b.length)throw Error("Catalog is empty");return b}async function iN(){let a=globalThis.__ompguiModelsDevCatalogCache;if(a||(a=globalThis.__ompguiModelsDevCatalogCache={entries:[],expiresAt:0}),a.entries.length>0&&a.expiresAt>Date.now())return a.entries;a.inFlight||(a.inFlight=iM().then(b=>(a.entries=b,a.expiresAt=Date.now()+36e5,b)).finally(()=>{a.inFlight=void 0}));try{return await a.inFlight}catch{if(a.entries.length>0)return a.entries;throw new iL("catalog_unavailable","The public model catalog is unavailable. Try again later.",502)}}async function iO(a){let{query:b,provider:c="",baseUrl:d="",limit:e=50}=a;if("string"!=typeof b||b.length>120)throw new iL("invalid_args","query must be a string of at most 120 characters",400);if("string"!=typeof c||c.length>120)throw new iL("invalid_args","provider must be a string of at most 120 characters",400);if("string"!=typeof d||d.length>500)throw new iL("invalid_args","baseUrl must be a string of at most 500 characters",400);if("number"!=typeof e||!Number.isInteger(e)||e<1||e>100)throw new iL("invalid_args","limit must be an integer between 1 and 100",400);let f=await iN();return{models:function(a,b,c="",d=50){let e=b.trim().toLocaleLowerCase(),f=c.trim().toLocaleLowerCase(),g=Math.max(1,Math.min(100,Math.floor(d)||50));return a.map(a=>{let b,c,d,g,h,i;return{entry:a,rank:(b=a.id.toLocaleLowerCase(),c=a.name.toLocaleLowerCase(),d=a.providerId.toLocaleLowerCase(),g=a.providerName.toLocaleLowerCase(),h=`${d}/${b}`,i=20,e?b===e||h===e?i=0:c===e?i=1:b.startsWith(e)||c.startsWith(e)?i=2:h.startsWith(e)||d===e||g===e?i=3:b.includes(e)||c.includes(e)?i=4:(h.includes(e)||g.includes(e))&&(i=5):i=10,i<20&&f&&(d===f||g===f)&&(i-=.5),i)}}).filter(({rank:a})=>!e||a<20).sort((a,b)=>a.rank-b.rank||a.entry.providerName.localeCompare(b.entry.providerName,void 0,{sensitivity:"base"})||a.entry.name.localeCompare(b.entry.name,void 0,{numeric:!0,sensitivity:"base"})||a.entry.id.localeCompare(b.entry.id,void 0,{numeric:!0,sensitivity:"base"})).slice(0,g).map(({entry:a})=>a)}(f,b,c,e),recommendation:function(a,b,c="",d=""){let e,f=a.filter(a=>(function(a,b){let c=b.trim().toLocaleLowerCase().replace(/^models\//,"");if(!c)return!1;let d=a.id.trim().toLocaleLowerCase().replace(/^models\//,""),e=`${a.providerId.toLocaleLowerCase()}/${d}`;return d===c||e===c})(a,b));if(0===f.length)return{exactMatches:0,metadataMethod:"none",preset:{},price:{status:"unreliable",reason:"no-exact-match",support:0,total:0}};let g=f.filter(a=>{let b;return!!(b=iE(c))&&(iE(a.providerId)===b||iE(a.providerName)===b)}),h=f.filter(a=>(function(a,b){let c=iF(b);if(!c)return!1;let d=iA[iE(a.providerId)]??[],e=iF(a.providerBaseUrl);return[...d,...e?[e]:[]].some(a=>c===a||c.endsWith(`.${a}`))})(a,d)),i=g[0]??h[0],j=g.length?"provider":h.length?"base-url":"consensus",k=i?{name:i.name,reasoning:i.reasoning,input:i.input,contextWindow:i.contextWindow,maxTokens:i.maxTokens}:(e=f.length,{name:iH(f.map(a=>a.name),e,a=>a.toLocaleLowerCase()),reasoning:iH(f.flatMap(a=>void 0===a.reasoning?[]:[a.reasoning]),e,String),input:iH(f.flatMap(a=>a.input?[a.input]:[]),e,a=>[...a].sort().join(",")),contextWindow:iH(f.flatMap(a=>void 0===a.contextWindow?[]:[a.contextWindow]),e,String),maxTokens:iH(f.flatMap(a=>void 0===a.maxTokens?[]:[a.maxTokens]),e,String)}),l=g.find(iG),m=h.find(iG),n=l?iJ(l,"provider"):m?iJ(m,"base-url"):function(a){let b=a.filter(iG);if(0===b.length)return{status:"unreliable",reason:"no-valid-price",support:0,total:0};if(1===b.length)return{status:"unreliable",reason:"insufficient-support",support:1,total:1};let c=new Map;for(let a of b){let b=JSON.stringify([a.cost.input,a.cost.output]),d=c.get(b);d?d.push(a):c.set(b,[a])}let d=[...c.values()].sort((a,b)=>b.length-a.length),e=d[0];if(!e)return{status:"unreliable",reason:"no-valid-price",support:0,total:b.length};let f=e.length/b.length>=.6||e.length>=5;if(d[1]?.length===e.length||!f)return{status:"unreliable",reason:"conflict",support:e.length,total:b.length};let g=iI(e.map(a=>a.cost.cacheRead??0))??0,h=iI(e.map(a=>a.cost.cacheWrite??0))??0;return{status:"reliable",method:"consensus",cost:{input:e[0].cost.input,output:e[0].cost.output,cacheRead:g,cacheWrite:h},support:e.length,total:b.length}}(f);return"reliable"===n.status&&(k.cost=n.cost),{exactMatches:f.length,metadataMethod:j,matchedProviderId:i?.providerId,matchedProviderName:i?.providerName,preset:k,price:n}}(f,b,c,d),source:iK}}let iP=new Set(["off","minimal","low","medium","high","xhigh","max"]);function iQ(a,b){let c=a.toLocaleLowerCase(),d=b.filter(a=>`${a.provider}/${a.id}`.toLocaleLowerCase()===c);return d.length>0?d:b.filter(a=>a.id.toLocaleLowerCase()===c)}function iR(a,b){if(Array.isArray(a))for(let d of a){var c;if("string"!=typeof d)continue;let a=d.trim();if(!a||(c=a).includes("*")||c.includes("?")||c.includes("["))continue;let e=iQ(a,b),f=a.lastIndexOf(":"),g=f>=0?a.slice(f+1):"";if(0===e.length&&f>=0&&iP.has(g)&&(e=iQ(a.slice(0,f),b)),e.length<=1)continue;let h=e.map(a=>`${a.provider}/${a.id}`).sort().join(", ");throw Error(`Ambiguous enabledModels entry "${a}" matches multiple models: ${h}. Use provider/modelId.`)}}function iS(a){let b=(0,R.pA)();if(!(0,ao.existsSync)(b))return;let c=(0,aG.Tp)((0,ao.readFileSync)(b,"utf8"));if(c.errors.length>0)throw Error(`${b} is not valid YAML: ${c.errors[0].message}`);if(!(0,aG.jh)(c.contents))throw Error(`${b} must contain a YAML mapping`);let d=c.toJS(),e=(0,S.u4)(d)&&Array.isArray(d.disabledProviders)?d.disabledProviders.filter(a=>"string"==typeof a):[],f=e.filter(b=>b!==a);f.length!==e.length&&(c.set("disabledProviders",f),aF(b,c.toString()))}let iT=["catalog.get","catalog.search","roles.get","roles.set","registry.get","registry.set","providers.enable","providers.get","providers.update","providers.validate","providers.test","providers.connectivity","fallback.get","fallback.set","auth.providers","auth.login.start","auth.login.poll","auth.login.confirm","auth.login.cancel","auth.apikey.get","auth.apikey.set","auth.apikey.remove","auth.logout"];class iU extends Error{constructor(a,b,c,d){super(b),this.name="ModelsRequestError",this.code=a,void 0!==c&&(this.details=c),void 0!==d&&(this.status=d)}}let iV=["--no-session","--no-extensions","--no-skills","--no-lsp"],iW="ompgui cannot manage stored API keys. Run `omp` in a terminal and use /login (or /logout), set the provider's environment variable (e.g. OPENAI_API_KEY), or configure an apiKey on a custom provider in ~/.omp/agent/models.yml.";function iX(a,b="provider"){let c=("string"==typeof a?a:void 0)?.trim();if(!c||c.length>128||/\s/.test(c))throw new iU("invalid_provider",`${b} must be a non-empty id without whitespace`);return c}function iY(a){let b=("string"==typeof a?a:void 0)?.trim();if(!b||b.length>320)throw new iU("login_token_required","token is required");return b}function iZ(a,b){if(void 0===a)return;if(!Array.isArray(a))throw new iU("invalid_args",`${b} must contain non-empty strings`);let c=[];for(let d of a){if("string"!=typeof d||!d.trim())throw new iU("invalid_args",`${b} must contain non-empty strings`);c.push(d)}return c}function i$(a){try{return Buffer.byteLength(JSON.stringify(a),"utf8")}catch{throw new iU("invalid_args","config must be JSON-serializable")}}function i_(a){return a instanceof h9?new iU(h8,"Invalid models configuration",{issues:a.issues}):new iU(h8,"Invalid models configuration")}let i0=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function i1(a){return a.reasoning?["off",...a.thinking?.efforts??[]]:["off"]}function i2(a){return"object"==typeof a&&null!==a&&"id"in a&&"string"==typeof a.id&&"provider"in a&&"string"==typeof a.provider}function i3(a){return"object"==typeof a&&null!==a&&"id"in a&&"string"==typeof a.id&&"name"in a&&"string"==typeof a.name&&"authenticated"in a&&"boolean"==typeof a.authenticated}function i4(a){let b="name"in a&&"string"==typeof a.name&&a.name.trim().length>0?a.name:a.id,c={id:a.id,provider:a.provider,name:b};if("reasoning"in a&&"boolean"==typeof a.reasoning&&(c.reasoning=a.reasoning),"thinking"in a){let b=a.thinking;if("object"==typeof b&&null!==b&&!Array.isArray(b)){let a="efforts"in b&&Array.isArray(b.efforts)&&b.efforts.every(a=>"string"==typeof a)?b.efforts:void 0;void 0!==a&&(c.thinking={efforts:a})}}return"contextWindow"in a&&"number"==typeof a.contextWindow&&(c.contextWindow=a.contextWindow),c}async function i5(){let a,b;try{let b=await (0,ip.runUtilityCommand)({type:"get_available_models"},12e4);a=Array.isArray(b.models)?b.models.filter(i2).map(i4):[]}catch{return{models:[],defaultModel:null,connectedProviders:[],unavailable:!0}}let c=[];try{let a=await (0,ip.runUtilityCommand)({type:"get_login_providers"},3e4);c=Array.isArray(a.providers)?a.providers.filter(i3).map(a=>({id:a.id,name:a.name,available:!("available"in a)||"boolean"!=typeof a.available||a.available,authenticated:a.authenticated})):[]}catch{c=[]}try{b=function(){let a=(0,R.pA)();if(!(0,ao.existsSync)(a))return new Set;let b=(0,aG.Tp)((0,ao.readFileSync)(a,"utf8"));if(b.errors.length>0)throw Error(`${a} is not valid YAML: ${b.errors[0].message}`);let c=b.toJS();return(0,S.u4)(c)&&Array.isArray(c.disabledProviders)?new Set(c.disabledProviders.filter(a=>"string"==typeof a)):new Set}()}catch{b=new Set}let d={};for(let b of a)d[`${b.provider}:${b.id}`]=i1(b);let e=a.map(a=>({id:a.id,name:a.name,provider:a.provider,thinkingLevels:i1(a),supportsFastMode:"anthropic"===a.provider||"openai"===a.provider||"google"===a.provider,..."number"==typeof a.contextWindow&&Number.isFinite(a.contextWindow)&&a.contextWindow>0?{contextWindow:a.contextWindow}:{}})).sort((a,b)=>i0.compare(a.name||a.id,b.name||b.id)||i0.compare(a.provider,b.provider)||i0.compare(a.id,b.id)),f=c.filter(a=>a.authenticated).map(a=>({id:a.id,name:a.name,disabled:b.has(a.id)})),g=null;try{let b=await (0,ip.runUtilityCommand)({type:"get_state"},3e4),c=b.model?.provider,d=b.model?.id;c&&d&&a.some(a=>a.provider===c&&a.id===d)&&(g={provider:c,modelId:d})}catch{}return{models:e,defaultModel:g,thinkingLevels:d,connectedProviders:f}}function i6(a){let b={};return void 0!==a.enabledModels&&(b.enabledModels=a.enabledModels),void 0!==a.disabledProviders&&(b.disabledProviders=a.disabledProviders),void 0!==a.modelProviderOrder&&(b.modelProviderOrder=a.modelProviderOrder),void 0!==a.registryHasScopedEntries&&(b.registryHasScopedEntries=a.registryHasScopedEntries),b}async function i7(a){let b={},c=iZ(a.enabledModels,"enabledModels"),d=iZ(a.disabledProviders,"disabledProviders"),e=iZ(a.modelProviderOrder,"modelProviderOrder");if(void 0!==c&&(b.enabledModels=c),void 0!==d&&(b.disabledProviders=d),void 0!==e&&(b.modelProviderOrder=e),void 0===b.enabledModels&&void 0===b.disabledProviders&&void 0===b.modelProviderOrder)throw new iU("invalid_args","registry.set requires at least one of enabledModels, disabledProviders, modelProviderOrder");if(void 0!==c&&c.length>0)try{let a=await (0,ip.runUtilityCommand)({type:"get_available_models"},12e4);Array.isArray(a.models)&&iR(c,a.models.filter(i2))}catch(a){if(a instanceof Error&&a.message.startsWith("Ambiguous enabledModels entry"))throw a}try{let a=a_(),c=aZ(a.settings,b);a0(c)}catch(a){throw new iU("registry_write_failed",a instanceof Error?a.message:String(a))}aD(),(0,ip.j)();let f=a_();return{settings:i6(f.settings),path:f.path}}function i8(a){let b=a.config;if(!("object"==typeof b&&null!==b&&!Array.isArray(b)))throw new iU(h8,"Invalid models configuration",{issues:[{path:"",message:"must be an object"}]});return b}async function i9(a){try{return await it(a)}catch(a){if(!(a instanceof iq))throw a;if("models_config_invalid"===a.code)throw new iU(h8,"Invalid models configuration",a.issues?{issues:a.issues}:void 0);if("model_test_unresolved"===a.code||"model_test_failed"===a.code)throw new iU(a.code,a.message,"model_test_unresolved"===a.code?{latencyMs:a.latencyMs}:void 0);throw new iU("invalid_args","model_id_required"===a.code?"model.id is required":a.message)}}function ja(a){let b=a.retry??{},c={chains:b.fallbackChains??{}};return void 0!==b.enabled&&(c.enabled=b.enabled),void 0!==b.maxRetries&&(c.maxRetries=b.maxRetries),void 0!==b.modelFallback&&(c.modelFallback=b.modelFallback),void 0!==b.fallbackRevertPolicy&&(c.revertPolicy=b.fallbackRevertPolicy),c}async function jb(){try{let a=await (0,ip.runUtilityCommand)({type:"get_login_providers"},3e4);return{providers:(Array.isArray(a.providers)?a.providers.filter(i3).filter(a=>!("available"in a)||!1!==a.available):[]).map(a=>({id:a.id,name:a.name,loggedIn:a.authenticated}))}}catch(a){throw new iU("auth_failed",a instanceof Error?a.message:String(a))}}async function jc(a){let b=iX(a);try{let{models:a}=await (0,ip.runUtilityCommand)({type:"get_available_models"},12e4),{providers:c}=await (0,ip.runUtilityCommand)({type:"get_login_providers"},3e4),d=c.find(a=>a.id===b),e=a.filter(a=>a.provider===b).length;return{provider:b,displayName:d?.name??b,configured:e>0||d?.authenticated===!0,models:e}}catch(a){throw new iU("auth_failed",a instanceof Error?a.message:String(a))}}let jd=new Map;function je(){let a=Date.now();for(let[b,c]of jd)if(a-c.createdAt>9e5){try{c.proc?.dispose()}catch{}jd.delete(b)}}async function jf(a){let b=a.proc;if(!b){a.phase="error",a.error="Login process is unavailable";return}try{let c=await b.waitReady(6e4);await b.negotiateProtocol(c),await b.sendCommand({type:"login",providerId:a.provider},9e5),iS(a.provider),aD(),(0,ip.j)(),a.phase="success"}catch(b){a.phase="error",a.error=b instanceof Error?b.message:String(b)}finally{try{await b.dispose()}catch{}a.proc=null,a.pendingInputId=null}}function jg(a){let b=a?.deviceId;if("string"!=typeof b||!b)throw new iU("unauthorized","device is required");return b}function jh(a,b,c){je();let d=jd.get(a);if(!d)throw new iU("login_no_pending","No pending login for token");if(d.provider!==b)throw new iU("login_token_mismatch","Token does not match provider");if(d.deviceId!==c)throw new iU("login_device_mismatch","Login belongs to another device");return d}async function ji(a,b){let c=iX(a.provider),d=iY(a.token),e=jh(d,c,jg(b));jd.delete(d);try{await e.proc?.dispose()}catch{}return{cancelled:!0,provider:c}}async function jj(a,b){jd.delete(b);try{await a.proc?.dispose()}catch{}}async function jk(a){let b=0;for(let[c,d]of[...jd])d.deviceId===a&&(await jj(d,c),b+=1);return b}async function jl(a,b,c){if("object"!=typeof b||null===b||Array.isArray(b))throw new iU("invalid_args","args must be an object");if("object"!=typeof c||null===c)throw new iU("unauthorized","device is required");switch(function(a){for(let b of iT)if(b===a)return b;throw new iU("unknown_action",`Unknown models action "${a}"`)}(a)){case"catalog.get":return i5();case"catalog.search":try{return{...await iO({query:b.query,provider:b.provider,baseUrl:b.baseUrl,limit:b.limit})}}catch(a){if(a instanceof iL)throw new iU(a.code,a.message,void 0,a.status);throw new iU("catalog_unavailable","The public model catalog is unavailable. Try again later.",void 0,502)}case"roles.get":try{let a=function(){let a=(0,R.pA)();if(!(0,ao.existsSync)(a))return{path:a,roles:{}};let b=(0,aG.Tp)((0,ao.readFileSync)(a,"utf8"));if(b.errors.length>0)throw Error(`${a} is not valid YAML: ${b.errors[0].message}`);let c=b.toJS();return(0,S.u4)(c)&&(0,S.u4)(c.modelRoles)?{path:a,roles:Object.fromEntries(Object.entries(c.modelRoles).filter(a=>"string"==typeof a[1]))}:{path:a,roles:{}}}();return{path:a.path,roles:a.roles}}catch(a){throw new iU("roles_read_failed",a instanceof Error?a.message:String(a))}case"roles.set":return function(a){if("object"!=typeof a.roles||null===a.roles||Array.isArray(a.roles))throw new iU("invalid_args","roles must be an object");let b={};for(let[c,d]of Object.entries(a.roles)){if("string"!=typeof d)continue;let a=c.trim(),e=d.trim();0===a.length||a.length>128||0===e.length||e.length>512||(b[a]=e)}try{let a=(0,R.pA)(),c=(0,ao.existsSync)(a)?(0,ao.readFileSync)(a,"utf8"):"",d=(0,aG.Tp)(c);if(d.errors.length>0)throw Error(`${a} is not valid YAML: ${d.errors[0].message}`);if((0,ao.mkdirSync)((0,aq.dirname)(a),{recursive:!0}),null===d.contents)aF(a,(0,aG.As)({modelRoles:b}));else{if(!(0,aG.jh)(d.contents))throw Error(`${a} must contain a YAML mapping`);d.set("modelRoles",b),aF(a,d.toString())}}catch(a){throw new iU("roles_write_failed",a instanceof Error?a.message:String(a))}return aD(),{roles:b}}(b);case"registry.get":try{let a=a_();return{path:a.path,settings:i6(a.settings)}}catch(a){throw new iU("registry_read_failed",a instanceof Error?a.message:String(a))}case"registry.set":return i7(b);case"providers.enable":{let a=iX(b.provider);try{iS(a)}catch(a){throw new iU("provider_enable_failed",a instanceof Error?a.message:String(a))}return aD(),(0,ip.j)(),{provider:a}}case"providers.get":let d;return(d=ik()).parseError?{providers:{},parseError:"models.yml contains invalid YAML; fix it by hand and reload",path:d.path,exists:d.exists,code:"models_config_unparseable"}:{...function(a){let b={...a,providers:{}};for(let[c,d]of Object.entries(a.providers??{})){if(!(0,S.u4)(d)){b.providers[c]=d;continue}let a={...d},e="string"==typeof d.apiKey&&d.apiKey.length>0,f=(0,S.u4)(d.headers)&&Object.keys(d.headers).length>0;delete a.apiKey,delete a.headers,a.originalName=c,Array.isArray(d.models)&&(a.models=d.models.map(a=>{if(!(0,S.u4)(a))return a;let b={...a};return delete b.headers,"string"==typeof a.id?b.originalId=a.id:delete b.originalId,b})),a.apiKeyConfigured=e,a.headersConfigured=f,b.providers[c]=a}return b}(d.config),path:d.path,exists:d.exists};case"providers.update":return function(a){let b,c=i8(a);if(i$(c)>524288)throw new iU("config_too_large","models configuration exceeds 512KiB");let d=void 0===a.mode||"partial"===a.mode?"partial":"full"===a.mode?"full":null;if(null===d)throw new iU("invalid_args","mode must be full or partial");let e=void 0!==a.overwrite&&!0===a.overwrite;if(void 0!==a.overwrite&&"boolean"!=typeof a.overwrite)throw new iU("invalid_args","overwrite must be a boolean");let f=ik();try{b=function(a,b,c){if("full"!==c&&"partial"!==c)throw new h9([{path:"mode",message:"must be full or partial"}]);let d="full"===c?{...b,providers:{}}:{...a,...b,providers:{}},e=(0,S.u4)(a.providers)?a.providers:{},f=ie(b,"providers"),g=f?b.providers:void 0;if(f&&!(0,S.u4)(g))return d.providers=g,d;if(!f&&"partial"===c)return d.providers=Object.fromEntries(Object.entries(e).map(([a,b])=>[a,ih(b)])),(0,S.u4)(a.providers)||(d.providers=a.providers),d;let h=(0,S.u4)(g)?Object.entries(g):[],i=[],j=[],k=new Map;for(let[a,b]of h){let d,f=`providers.${a}`;if((0,S.u4)(b)&&ie(b,"originalName")){let a=b.originalName;"string"!=typeof a?ia(i,`${f}.originalName`,"must be a string identifying an existing provider"):ie(e,a)?d=a:ia(i,`${f}.originalName`,"must identify a provider in the current configuration")}else ie(e,a)&&(d=a);if(void 0!==d){let b=k.get(d);void 0!==b?ia(i,`${f}.originalName`,`duplicates the provider identity used by providers.${b}`):k.set(d,a),"partial"===c&&d!==a&&ie(e,a)&&ia(i,f,"rename conflicts with an existing provider; choose an unused name")}j.push({targetName:a,incoming:b,sourceName:d,previous:void 0!==d&&(0,S.u4)(e[d])?e[d]:void 0})}let l="partial"===c?Object.fromEntries(Object.entries(e).map(([a,b])=>[a,ih(b)])):{};for(let{targetName:a,incoming:b,sourceName:d,previous:e}of j){if(!(0,S.u4)(b)){"partial"===c&&void 0!==d&&d!==a&&delete l[d],l[a]=b;continue}"partial"===c&&void 0!==d&&d!==a&&delete l[d];let f=e?ih(e):{},g={..."partial"===c?f:{},...b};ie(b,"apiKey")&&void 0!==b.apiKey?null===b.apiKey?delete g.apiKey:g.apiKey=b.apiKey:e&&ie(e,"apiKey")?g.apiKey=e.apiKey:delete g.apiKey,ie(b,"headers")&&void 0!==b.headers?null===b.headers?delete g.headers:g.headers=b.headers:e&&ie(e,"headers")?g.headers=e.headers:delete g.headers,Array.isArray(b.models)?g.models=function(a,b,c,d,e){let f=Array.isArray(a)?a:[],g=new Map,h=new Set;for(let a of f)(0,S.u4)(a)&&"string"==typeof a.id&&(h.has(a.id)||(g.has(a.id)?(g.delete(a.id),h.add(a.id)):g.set(a.id,a)));let i=new Map,j=new Map;return b.map((a,b)=>{let f,k=`${d}[${b}]`;if(!(0,S.u4)(a))return a;if(ie(a,"originalId")){let b=a.originalId;"string"!=typeof b?ia(e,`${k}.originalId`,"must be a string identifying an existing model"):h.has(b)?ia(e,`${k}.originalId`,"must identify exactly one existing model"):g.has(b)?f=b:ia(e,`${k}.originalId`,"must identify an existing model in the current configuration")}else"string"==typeof a.id&&(h.has(a.id)?ia(e,`${k}.id`,"matches multiple existing models; supply originalId"):g.has(a.id)&&(f=a.id));let l=void 0===f?void 0:g.get(f);if(void 0!==f){let c=i.get(f);void 0!==c?ia(e,ie(a,"originalId")?`${k}.originalId`:`${k}.id`,`duplicates the existing model identified at index ${c}`):i.set(f,b)}let m={..."partial"===c&&l?ig(l):{},...a};if(delete m.originalId,ie(a,"headers")&&void 0!==a.headers?null===a.headers?delete m.headers:m.headers=a.headers:l&&ie(l,"headers")?m.headers=l.headers:void 0===m.headers&&delete m.headers,"string"==typeof m.id){let a=j.get(m.id);void 0!==a?ia(e,`${k}.id`,`duplicates the model id at index ${a}`):j.set(m.id,b)}return m})}(e?.models,b.models,c,`providers.${a}.models`,i):"full"!==c||ie(b,"models")&&void 0!==b.models?"partial"===c&&ie(b,"models")&&void 0===b.models&&(e&&ie(e,"models")?g.models=f.models:delete g.models):delete g.models,l[a]=ih(g)}if(i.length>0)throw new h9(i);return d.providers=l,d}(f.config,c,d),id(b)}catch(a){throw i_(a)}try{!function(a,b={}){let c=ik();if(c.parseError&&!b.overwriteUnparseable)throw new ii(c.path,c.parseError);let d=io(ij(a),c.parseError?void 0:c.source),e=(0,aq.dirname)(c.path);(0,ao.existsSync)(e)||(0,ao.mkdirSync)(e,{recursive:!0}),aF(c.path,d)}(b,{overwriteUnparseable:e})}catch(a){if(a instanceof ii)throw new iU("models_config_unparseable","models.yml is not valid YAML — fix it by hand; ompgui will not overwrite it");throw new iU("models_config_write_failed",a instanceof Error?a.message:String(a))}return aD(),(0,ip.j)(),{success:!0,path:f.path}}(b);case"providers.validate":let e=i8(b);if(i$(e)>524288)throw new iU("config_too_large","models configuration exceeds 512KiB");try{id(e)}catch(a){throw i_(a)}return{ok:!0};case"providers.test":return i9(b);case"providers.connectivity":if(!0!==b.confirm)throw new iU("connectivity_confirmation_required","Explicit confirmation is required for a live connectivity check");if(i$(b)>524288)throw new iU("config_too_large","models configuration exceeds 512KiB");if("function"!=typeof c.assertActive)throw new iU("unauthorized","Active device authorization is required");try{c.assertActive();let a=await iz(b,{assertActive:()=>{if("function"!=typeof c.assertActive)throw new iq("connectivity_cancelled","Connectivity request authorization expired");c.assertActive()},signal:c.signal});return c.assertActive(),{ok:a.ok,latencyMs:a.latencyMs,responseText:a.responseText,...a.usage?{usage:a.usage}:{}}}catch(a){if(a instanceof iq)throw new iU(a.code,"models_config_invalid"===a.code?"Invalid models configuration":a.message,void 0===a.latencyMs?void 0:{latencyMs:a.latencyMs});throw new iU("connectivity_failed","Model connectivity check failed")}case"fallback.get":try{let a=a_();return ja(a.settings)}catch(a){throw new iU("fallback_read_failed",a instanceof Error?a.message:String(a))}case"fallback.set":return function(a){let b={},c=!1;if(void 0!==a.chains){if("object"!=typeof a.chains||null===a.chains||Array.isArray(a.chains))throw new iU("invalid_args","chains must be an object");let d={};for(let[b,c]of Object.entries(a.chains)){if(!b.trim()||!Array.isArray(c)||c.some(a=>"string"!=typeof a||!a.trim()))throw new iU("invalid_args","fallback chains require non-empty role and model selectors");let a=[];for(let b of c)"string"==typeof b&&a.push(b);d[b]=a}b.fallbackChains=d,c=!0}if(void 0!==a.enabled){if("boolean"!=typeof a.enabled)throw new iU("invalid_args","enabled must be a boolean");b.enabled=a.enabled,c=!0}if(void 0!==a.maxRetries){if("number"!=typeof a.maxRetries||!Number.isInteger(a.maxRetries)||a.maxRetries<0||a.maxRetries>20)throw new iU("invalid_args","maxRetries must be an integer between 0 and 20");b.maxRetries=a.maxRetries,c=!0}if(void 0!==a.modelFallback){if("boolean"!=typeof a.modelFallback)throw new iU("invalid_args","modelFallback must be a boolean");b.modelFallback=a.modelFallback,c=!0}if(void 0!==a.revertPolicy){if("cooldown-expiry"!==a.revertPolicy&&"never"!==a.revertPolicy)throw new iU("invalid_args","revertPolicy must be cooldown-expiry or never");b.fallbackRevertPolicy=a.revertPolicy,c=!0}if(!c)throw new iU("invalid_args","fallback.set requires at least one of chains, enabled, maxRetries, modelFallback, revertPolicy");try{let a=a_(),c=aZ(a.settings,{retry:b});return a0(c),{retry:ja(c)}}catch(a){if(a instanceof iU)throw a;throw new iU("fallback_write_failed",a instanceof Error?a.message:String(a))}}(b);case"auth.providers":return jb();case"auth.login.start":return function(a,b){let c=iX(a),d=jg(b);if(je(),jd.size>=32)throw new iU("auth_busy","Too many pending logins; cancel one and retry");let e=`${c}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,f={provider:c,deviceId:d,proc:null,createdAt:Date.now(),phase:"waiting",pendingInputId:null,bufferedValue:null};try{let a=new ax.X({cwd:(0,aC.homedir)(),extraArgs:iV,onFrame:a=>{if("extension_ui_request"!==a.type)return;let b=a.method;if("open_url"===b)f.phase="auth",f.url=String(a.url??""),f.instructions="string"==typeof a.instructions?a.instructions:null;else if("input"===b){let b=String(a.id);if(null!==f.bufferedValue){let a=f.bufferedValue;f.bufferedValue=null,f.proc?.sendFrame({type:"extension_ui_response",id:b,value:a})}else f.pendingInputId=b,f.phase="prompt",f.message="string"==typeof a.title&&a.title?a.title:"Enter the authorization code",f.placeholder="string"==typeof a.placeholder?a.placeholder:null}else"notify"===b?("string"==typeof a.message&&(f.message=a.message),"waiting"===f.phase&&(f.phase="progress")):"cancel"===b&&null!==f.pendingInputId&&a.targetId===f.pendingInputId&&(f.pendingInputId=null,"prompt"===f.phase&&(f.phase=f.url?"auth":"waiting"))}});f.proc=a}catch(a){throw new iU("auth_failed",a instanceof Error?a.message:String(a))}return jd.set(e,f),jf(f),{provider:c,token:e}}(b.provider,c);case"auth.login.poll":let f,g,h,i;return f=iX(b.provider),h=jh(g=iY(b.token),f,jg(c)),i={provider:h.provider,phase:h.phase,token:g},void 0!==h.url&&(i.url=h.url),void 0!==h.instructions&&null!==h.instructions&&(i.instructions=h.instructions),void 0!==h.message&&(i.message=h.message),void 0!==h.placeholder&&null!==h.placeholder&&(i.placeholder=h.placeholder),void 0!==h.error&&(i.error=h.error),i;case"auth.login.confirm":let j=iX(b.provider),k=jh(iY(b.token),j,jg(c));if("success"===k.phase||"error"===k.phase||"cancelled"===k.phase)throw new iU("login_not_pending","Login is no longer pending");let l="string"==typeof b.code?b.code:void 0;if(!l||!l.trim()||l.length>4096)throw new iU("login_code_required","code is required");if(null!==k.pendingInputId&&k.proc){let a=k.pendingInputId;return k.pendingInputId=null,k.proc.sendFrame({type:"extension_ui_response",id:a,value:l}),{ok:!0,buffered:!1}}return k.bufferedValue=l,{ok:!0,buffered:!0};case"auth.login.cancel":return ji(b,c);case"auth.apikey.get":return jc(b.provider);case"auth.apikey.set":throw new iU("api_key_store_unsupported",`Cannot store an API key for "${iX(b.provider)}" from ompgui. ${iW}`,void 0,501);case"auth.apikey.remove":throw new iU("api_key_remove_unsupported",`Cannot remove the API key for "${iX(b.provider)}" from ompgui. ${iW}`,void 0,501);case"auth.logout":throw new iU("logout_unsupported",`ompgui cannot disconnect "${iX(b.provider)}": omp exposes no logout command outside its own UI. ompgui cannot disconnect this provider: omp exposes no logout command outside its own UI. Run \`omp\` in a terminal and use /logout to remove the credential.`,void 0,501)}}let jm=/\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*(?:\x07|\x1B\\))/g,jn=/\x1B_pi:c\x07/g;function jo(a){return a.replace(jn,"").replace(jm,"")}let jp=/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/,jq=[(0,aq.join)(".omp","mcp.json"),(0,aq.join)(".omp",".mcp.json"),"mcp.json",".mcp.json"];function jr(a){if(!(0,ao.existsSync)(a))return{path:a,servers:[],disabledServers:[]};try{if((0,ao.statSync)(a).size>5242880)throw Error("configuration is too large to inspect");let b=JSON.parse((0,ao.readFileSync)(a,"utf8"));if(!(0,S.u4)(b))throw Error("configuration must contain a JSON object");if(void 0!==b.mcpServers&&!(0,S.u4)(b.mcpServers))throw Error("mcpServers must be an object");return{path:a,servers:Object.entries(b.mcpServers??{}).sort(([a],[b])=>a.localeCompare(b)).map(([a,b])=>({name:a,config:b})),disabledServers:Array.isArray(b.disabledServers)?b.disabledServers.filter(a=>"string"==typeof a).sort((a,b)=>a.localeCompare(b)):[]}}catch(b){return{path:a,servers:[],disabledServers:[],error:b instanceof Error?b.message:String(b)}}}function js(a){let b=new Set([(0,aq.join)(a,".claude.json"),(0,aq.join)(a,"mcp.json"),(0,aq.join)(a,".mcp.json")]);try{for(let c of(0,ao.readdirSync)(a,{withFileTypes:!0})){if(!c.isDirectory()||!c.name.startsWith("."))continue;let d=(0,aq.join)(a,c.name);b.add((0,aq.join)(d,"mcp.json")),b.add((0,aq.join)(d,"config.json")),b.add((0,aq.join)(d,"config.toml"))}}catch{}return[...b].filter(b=>{try{return(0,ao.existsSync)(b)&&(0,ak.o4)((0,ao.realpathSync)(b),new Set([(0,ao.realpathSync)(a)]))}catch{return!1}})}function jt(a,b){if(!(0,S.u4)(a)||Object.values(a).some(a=>"string"!=typeof a))throw Error(`${b} must map strings to strings`)}function ju(a){let b=(0,ao.realpathSync)(function(a){try{return(0,aq.resolve)((0,bT.execFileSync)("git",["-C",a,"rev-parse","--show-toplevel"],{encoding:"utf8",windowsHide:!0,stdio:["ignore","pipe","ignore"]}).trim())}catch{return(0,aq.resolve)(a)}}(a)),c=new Set([b]);if(!(0,ak.o4)((0,ao.realpathSync)(a),c))throw Error("Project root does not contain workspace");let d=jq.map(a=>(0,aq.join)(b,a)),e=d.find(ao.existsSync)??d[0],f=(0,ak.SW)(e);if(!(0,ak.o4)(f,c))throw Error("Access denied to MCP configuration outside project root");return{root:b,path:f}}function jv(a){let b,c=ju(a);if(!(0,ao.existsSync)(c.path))return{...c,config:{mcpServers:{}},exists:!1};if((0,ao.statSync)(c.path).size>524288)throw Error("MCP configuration is too large to edit in ompgui");try{b=JSON.parse((0,ao.readFileSync)(c.path,"utf8"))}catch{throw Error(`${c.path} is not valid JSON`)}if(!(0,S.u4)(b))throw Error(`${c.path} must contain a JSON object`);if(void 0!==b.mcpServers&&!(0,S.u4)(b.mcpServers))throw Error("mcpServers must be an object");return{...c,config:b,exists:!0}}function jw(a,b){if("string"!=typeof a||!jp.test(a))throw Error("Server name may contain letters, numbers, dots, dashes, and underscores");if(!(0,S.u4)(b))throw Error("Server configuration must be an object");let c=b.type;if(void 0!==c&&"stdio"!==c&&"http"!==c&&"sse"!==c)throw Error("Server type must be stdio, http, or sse");let d="string"==typeof b.command&&b.command.trim().length>0,e="string"==typeof b.url&&b.url.trim().length>0;if(d===e)throw Error("Provide exactly one of command or url");if((void 0===c||"stdio"===c)&&!d)throw Error("A stdio server requires a command");if(("http"===c||"sse"===c)&&!e)throw Error("An HTTP or SSE server requires a URL");if(e)try{let a=new URL(b.url);if("http:"!==a.protocol&&"https:"!==a.protocol)throw Error()}catch{throw Error("Server URL must be an http or https URL")}if(void 0!==b.args&&(!Array.isArray(b.args)||b.args.some(a=>"string"!=typeof a)))throw Error("args must be an array of strings");if(void 0!==b.env&&jt(b.env,"env"),void 0!==b.headers&&jt(b.headers,"headers"),void 0!==b.cwd&&"string"!=typeof b.cwd)throw Error("cwd must be a string");if(void 0!==b.enabled&&"boolean"!=typeof b.enabled)throw Error("enabled must be a boolean");if(void 0!==b.timeout&&(!Number.isInteger(b.timeout)||b.timeout<0||b.timeout>6e5))throw Error("timeout must be an integer between 0 and 600000");if(void 0!==b.requestIdFormat&&"number"!==b.requestIdFormat&&"string"!==b.requestIdFormat)throw Error("requestIdFormat must be number or string")}function jx(a,b){let c=`${a}.lock`,d=Date.now()+3e3;for((0,ao.mkdirSync)((0,aq.dirname)(c),{recursive:!0});;){let a=null;try{a=(0,ao.openSync)(c,"wx")}catch(a){if("EEXIST"!==a.code)throw a;try{if(Date.now()-(0,ao.statSync)(c).mtimeMs>1e4){(0,ao.unlinkSync)(c);continue}}catch{continue}if(Date.now()>=d)throw Error(`Timed out waiting for ${c} (another process holds the MCP config lock)`);!function(){let a=new SharedArrayBuffer(4);Atomics.wait(new Int32Array(a),0,0,25)}();continue}try{try{(0,ao.writeSync)(a,String(process.pid))}finally{(0,ao.closeSync)(a)}return b()}finally{try{(0,ao.unlinkSync)(c)}catch{}}}}class jy extends Error{constructor(a){super(`MCP server "${a}" already exists`),this.name="McpServerConflictError"}}var jz=c(19771);let jA=(0,bU.promisify)(bT.execFile);async function jB(a,b={}){let c=function(){let a=(0,aq.dirname)(jz.execPath);for(let b of[(0,aq.join)(a,"node_modules","npm","bin","npx-cli.js"),(0,aq.join)(a,"..","lib","node_modules","npm","bin","npx-cli.js")])try{if((0,ao.existsSync)(b))return b}catch{}return null}(),{command:d,commandArgs:e}=c?{command:jz.execPath,commandArgs:[c,...a]}:{command:"npx",commandArgs:a};return jA(d,e,{timeout:b.timeout,cwd:b.cwd,env:b.env})}function jC(a){return"string"==typeof a&&/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a)}let jD={task:{description:"General-purpose subagent with full capabilities for delegated multi-step tasks",model:"@task",thinkingLevel:"auto",spawns:["*"],tools:["read","write","edit","bash"],systemPrompt:"General-purpose coding agent with full capabilities. Implement requested changes carefully and verify them before finishing."},scout:{description:"MUST be used for exploratory codebase research, rapid code analysis, and broad pattern searches. Fast read-only scout returning compressed context for handoff.",model:"@smol",thinkingLevel:"medium",tools:["read","grep","glob","web_search"],systemPrompt:"Explore the codebase and return concise, evidence-backed findings. Do not modify files."},reviewer:{description:"Code review specialist for quality/security analysis",model:"@slow",spawns:["scout"],tools:["read","grep","glob","bash","lsp","web_search","ast_grep"],systemPrompt:"Review code for correctness, security, maintainability, and regressions with concrete findings."},"security-reviewer":{description:"Read-only security specialist for evidence-backed repository vulnerability discovery",model:"@slow",tools:["read","grep","glob","lsp","ast_grep"],systemPrompt:"Discover potential security vulnerabilities and return concrete evidence and remediation guidance."},librarian:{description:"Researches external libraries and APIs by reading source code. Returns definitive, source-verified answers.",model:"@smol",thinkingLevel:"minimal",tools:["read","grep","glob","bash","lsp","web_search","ast_grep"],systemPrompt:"Research library APIs and source documentation; provide definitive, source-verified answers."},designer:{description:"UI/UX specialist for design implementation, review, visual refinement",model:"@designer",tools:["read","write","edit"],systemPrompt:"Design and implement polished, accessible user interfaces following project conventions."},sonic:{description:"Low-reasoning agent for strictly mechanical updates or data collection only",model:"@smol",thinkingLevel:"medium",tools:["read","write","edit"],systemPrompt:"Perform strictly mechanical updates and data collection accurately with minimal overhead."}};function jE(a,b,c){let d=a.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/),e=d?d[1]:"",f=d?a.slice(d[0].length):a,g=(0,aG.Tp)(e);if(g.errors.length>0)throw Error(`YAML parse error in ${b}: ${g.errors[0].message}`);let h=g.toJS(),i=h&&"object"==typeof h&&!Array.isArray(h)?h:{},j=String(i.name||ar().basename(b,".md"));if(!jC(j))throw Error(`Invalid agent identifier "${j}" in ${b}`);return{...i,name:j,description:String(i.description||""),tools:Array.isArray(i.tools)?i.tools.map(String):void 0,model:"string"==typeof i.model||Array.isArray(i.model)?i.model:void 0,prewalk:"boolean"==typeof i.prewalk||"string"==typeof i.prewalk?i.prewalk:void 0,advisor:"boolean"==typeof i.advisor||"string"==typeof i.advisor?i.advisor:void 0,thinkingLevel:"string"==typeof i.thinkingLevel?i.thinkingLevel:void 0,blocking:"boolean"==typeof i.blocking?i.blocking:void 0,systemPrompt:String(i.systemPrompt??f.trim()),source:c,filePath:b,isShadowed:!1}}async function jF(a,b,c){try{let d=await ao.promises.readdir(a,{withFileTypes:!0}),e=[];for(let f of d)if(f.isFile()&&f.name.endsWith(".md")){let d=ar().join(a,f.name);try{let a=await ao.promises.readFile(d,"utf8");e.push(jE(a,d,b))}catch(a){c.push({path:d,error:a instanceof Error?a.message:String(a)})}}return e}catch(b){return"ENOENT"!==(b&&"object"==typeof b&&"code"in b?b.code:void 0)&&c.push({path:a,error:b instanceof Error?b.message:String(b)}),[]}}function jG(a){let b=ar().resolve(a);for(;;){let a=ar().join(b,".omp","agents"),c=ar().join(b,".omp");if((0,ao.existsSync)(a)||(0,ao.existsSync)(c)){if(!(0,ak.o4)((0,ak.SW)(a),new Set([(0,ak.SW)(b)])))throw Error(`Access denied to project agents directory: ${a}`);return a}let d=ar().dirname(b);if(d===b)return null;b=d}}function jH(){return ar().join((0,R.$M)(),"agents")}async function jI(a=process.cwd()){let b=[],c=jG(a),d=jH(),e=[];for(let a of(c&&e.push({dir:c,source:"project"}),e.push({dir:d,source:"user"}),(process.env.OMP_EXTENSION_DIRS||"").split(ar().delimiter).filter(Boolean)))e.push({dir:ar().join(a,"agents"),source:"extension"});let f=[];for(let{dir:a,source:c}of e){let d=await jF(a,c,b);f.push(...d)}for(let[a,b]of Object.entries(jD))f.push({name:a,model:b.model,thinkingLevel:b.thinkingLevel,spawns:b.spawns,description:b.description||"",tools:b.tools,systemPrompt:b.systemPrompt||"",source:"bundled",isShadowed:!1});let g=new Set,h=[],i={};try{i=a_().settings.task||{}}catch{}let j=i.agentModelOverrides||{},k=i.agentPrewalk||{},l=i.agentAdvisor||{},m=new Set(Array.isArray(i.disabledAgents)?i.disabledAgents:[]);for(let a of f){let b=!g.has(a.name);g.add(a.name),a.isShadowed=!b,b&&(a.name in j&&(a.overrideModel=j[a.name]),a.name in k&&(a.prewalkOverride=k[a.name]),a.name in l&&(a.advisorOverride=l[a.name]),m.has(a.name)&&(a.disabled=!0),h.push(a))}return{agents:h,projectRoot:c?ar().dirname(ar().dirname(c)):void 0,...b.length>0?{diagnostics:b}:{}}}async function jJ(a){let b,c;if("user"===a.scope)c=(0,ak.SW)((0,R.$M)()),b=jH();else{let d=a.cwd||process.cwd(),e=await am();if(!an(d,e))throw Error(`Access denied to project path: ${d}`);if(b=jG(d)||ar().join(ar().resolve(d),".omp","agents"),!an(c=await ao.promises.realpath(ar().dirname(ar().dirname(b))),e))throw Error(`Access denied to project root: ${c}`)}let d=(0,ak.SW)(b);if(!(0,ak.o4)(d,new Set([c])))throw Error(`Access denied to agents directory: ${b}`);return d}async function jK(a){if(!jC(a.name))throw Error(`Invalid agent identifier: "${a.name}"`);let b=await jJ(a),c=(0,ak.SW)(ar().join(b,`${a.name}.md`));if(!(0,ak.o4)(c,new Set([b])))throw Error(`Access denied to target agent file: ${c}`);return await ao.promises.mkdir(b,{recursive:!0}),c}function jL(a){let b={name:a.name,description:a.description};for(let[c,d]of(a.tools&&a.tools.length>0&&(b.tools=a.tools),void 0!==a.model&&(b.model=a.model),void 0!==a.thinkingLevel&&(b.thinkingLevel=a.thinkingLevel),void 0!==a.prewalk&&(b.prewalk=a.prewalk),void 0!==a.advisor&&(b.advisor=a.advisor),Object.entries(a)))"name"===c||"description"===c||"tools"===c||"model"===c||"thinkingLevel"===c||"prewalk"===c||"advisor"===c||"systemPrompt"===c||["scope","cwd","source","filePath","isShadowed","overrideModel","prewalkOverride","advisorOverride","disabled"].includes(c)||void 0===d||(b[c]=d);let c=(0,aG.As)(b).trim(),d=(a.systemPrompt||"").trim();return`---
67
+ `,d=c.indexOf(b);if(d<0||c.indexOf(b,d+b.length)>=0)continue;let e=hb(c.slice(d+b.length,d+b.length+1024));e?.id===a.jobId&&i(e.id,e.status,(0,S.i)(a.durationMs))}}}else if("irc:incoming"===a.customType&&b?.wakeRelay===!0){let a=hb(b.message);a&&b.from===a.id&&i(a.id,a.status)}continue}if("message"!==a.type||a.message?.role!=="toolResult")continue;let d=a.message,e=(0,S.u4)(d.details)?d.details:{};if("hub"===d.toolName&&Array.isArray(e.jobs)){for(let a of e.jobs)(0,S.u4)(a)&&"task"===a.type&&"string"==typeof a.id&&("completed"===a.status||"failed"===a.status||"aborted"===a.status?i(a.id,a.status,(0,S.i)(a.durationMs)):"cancelled"===a.status&&i(a.id,"aborted",(0,S.i)(a.durationMs)));continue}if("task"!==d.toolName)continue;let j=(0,S.oJ)(a.message.toolCallId),k=(a,b)=>{let c=g.get(a);j&&g.set(a,j);let d=f.get(a);return"started"===b&&d&&"started"!==d.status&&void 0!==j&&c===j?d.status:b},l=Array.isArray(e.progress)?e.progress:[],m=Array.isArray(e.results)?e.results:[],n=(0,S.u4)(e.async)?e.async:void 0;for(let a of l){let c=function(a){var b,c;if(!(0,S.u4)(a))return;let d={},e=(0,S.i)(a.index);void 0!==e&&(d.index=e);let f=(0,S.oJ)(a.id);void 0!==f&&(d.id=f);let g=(0,S.oJ)(a.agent);void 0!==g&&(d.agent=g);let h="bundled"===(b=a.agentSource)||"user"===b||"project"===b?b:void 0;void 0!==h&&(d.agentSource=h);let i="pending"===(c=a.status)||"running"===c||"completed"===c||"failed"===c||"aborted"===c?c:void 0;void 0!==i&&(d.status=i);let j=(0,S.oJ)(a.task);void 0!==j&&(d.task=j);let k=(0,S.oJ)(a.assignment);void 0!==k&&(d.assignment=k);let l=(0,S.oJ)(a.description);void 0!==l&&(d.description=l);let m=(0,S.oJ)(a.lastIntent);void 0!==m&&(d.lastIntent=m);let n=(0,S.oJ)(a.currentTool);void 0!==n&&(d.currentTool=n);let o=(0,S.oJ)(a.currentToolArgs);void 0!==o&&(d.currentToolArgs=o);let p=(0,S.i)(a.currentToolStartMs);void 0!==p&&(d.currentToolStartMs=p),Array.isArray(a.recentTools)&&(d.recentTools=a.recentTools),Array.isArray(a.recentOutput)&&(d.recentOutput=a.recentOutput.filter(a=>"string"==typeof a));let q=(0,S.i)(a.toolCount);void 0!==q&&(d.toolCount=q);let r=(0,S.i)(a.requests);void 0!==r&&(d.requests=r);let s=(0,S.i)(a.tokens);void 0!==s&&(d.tokens=s);let t=(0,S.i)(a.contextTokens);void 0!==t&&(d.contextTokens=t);let u=(0,S.i)(a.contextWindow);void 0!==u&&(d.contextWindow=u);let v=(0,S.i)(a.cost);void 0!==v&&(d.cost=v);let w=(0,S.i)(a.durationMs);void 0!==w&&(d.durationMs=w),("string"==typeof a.modelOverride||Array.isArray(a.modelOverride)&&a.modelOverride.every(a=>"string"==typeof a))&&(d.modelOverride=a.modelOverride);let x=(0,S.oJ)(a.modelRole);void 0!==x&&(d.modelRole=x);let y=(0,S.oJ)(a.resolvedModel);if(void 0!==y&&(d.resolvedModel=y),"boolean"==typeof a.resolvedModelIsFallback&&(d.resolvedModelIsFallback=a.resolvedModelIsFallback),(0,S.u4)(a.retryState)){let b=(0,S.i)(a.retryState.attempt),c=(0,S.i)(a.retryState.maxAttempts),e=(0,S.i)(a.retryState.delayMs),f=(0,S.oJ)(a.retryState.errorMessage),g=(0,S.i)(a.retryState.startedAtMs);void 0!==b&&void 0!==c&&void 0!==e&&void 0!==f&&void 0!==g&&(d.retryState={attempt:b,maxAttempts:c,delayMs:e,errorMessage:f,startedAtMs:g})}if((0,S.u4)(a.retryFailure)){let b=(0,S.i)(a.retryFailure.attempt),c=(0,S.oJ)(a.retryFailure.errorMessage);void 0!==b&&void 0!==c&&(d.retryFailure={attempt:b,errorMessage:c})}return void 0!==a.inflightTaskDetails&&(d.inflightTaskDetails=a.inflightTaskDetails),(0,S.u4)(a.extractedToolData)&&(d.extractedToolData=a.extractedToolData),Object.keys(d).length>0?d:void 0}(a);c?.id&&h({id:c.id,agent:c.agent??"subagent",agentSource:c.agentSource,status:k(c.id,"completed"===(b=c.status)?"completed":"failed"===b?"failed":"aborted"===b?"aborted":"started"),task:c.task,assignment:c.assignment,description:c.description,index:c.index??0,lastIntent:c.lastIntent,toolCount:c.toolCount,requests:c.requests,tokens:c.tokens,contextTokens:c.contextTokens,contextWindow:c.contextWindow,cost:c.cost,durationMs:c.durationMs,modelOverride:c.modelOverride,modelRole:c.modelRole,resolvedModel:c.resolvedModel,resolvedModelIsFallback:c.resolvedModelIsFallback,retryFailure:c.retryFailure,transcriptAvailable:!1})}for(let a of m){if(!(0,S.u4)(a))continue;let b=(0,S.oJ)(a.id);if(!b)continue;let d=f.get(b),e={},g=(0,S.i)(a.exitCode);void 0!==g&&(e.exitCode=g),!0===a.truncated&&(e.truncated=!0);let i=(0,S.i)(a.cost)??(0,g7.tw)(a.usage);void 0!==i&&(e.cost=i);let j=(0,g7.bA)(a.structuredOutput);void 0!==j&&(e.structuredOutput=j);let l=(0,S.oJ)(a.error);void 0!==l&&(e.error=l),!0===a.aborted&&(e.aborted=!0);let m=(0,S.oJ)(a.abortReason);void 0!==m&&(e.abortReason=m);let n=(0,S.oJ)(a.outputPath);void 0!==n&&(e.outputPath=n);let o=(0,S.oJ)(a.patchPath);void 0!==o&&(e.patchPath=o);let p=(0,S.oJ)(a.branchName);void 0!==p&&(e.branchName=p);let q=(0,S.u4)(a.retryFailure)?{attempt:(0,S.i)(a.retryFailure.attempt)??0,errorMessage:(0,S.oJ)(a.retryFailure.errorMessage)??""}:d?.retryFailure;h({id:b,agent:(0,S.oJ)(a.agent)??d?.agent??"subagent",agentSource:("bundled"===(c=a.agentSource)||"user"===c||"project"===c?c:void 0)??d?.agentSource,status:k(b,!0===a.aborted?"aborted":"string"==typeof a.error&&a.error?"failed":"number"==typeof a.exitCode?0===a.exitCode?"completed":"failed":"completed"===a.status?"completed":"failed"===a.status?"failed":"aborted"===a.status?"aborted":"started"),task:(0,S.oJ)(a.task)??d?.task,assignment:(0,S.oJ)(a.assignment)??d?.assignment,description:(0,S.oJ)(a.description)??d?.description,index:(0,S.i)(a.index)??d?.index??0,lastIntent:(0,S.oJ)(a.lastIntent)??d?.lastIntent,toolCount:(0,S.i)(a.toolCount)??d?.toolCount,requests:(0,S.i)(a.requests)??d?.requests,tokens:(0,S.i)(a.tokens)??d?.tokens,contextTokens:(0,S.i)(a.contextTokens)??d?.contextTokens,contextWindow:(0,S.i)(a.contextWindow)??d?.contextWindow,cost:(0,S.i)(a.cost)??(0,g7.tw)(a.usage)??d?.cost,durationMs:(0,S.i)(a.durationMs)??d?.durationMs,modelOverride:"string"==typeof a.modelOverride||Array.isArray(a.modelOverride)?a.modelOverride:d?.modelOverride,modelRole:(0,S.oJ)(a.modelRole)??d?.modelRole,resolvedModel:(0,S.oJ)(a.resolvedModel)??d?.resolvedModel,resolvedModelIsFallback:"boolean"==typeof a.resolvedModelIsFallback?a.resolvedModelIsFallback:d?.resolvedModelIsFallback,retryFailure:q,transcriptAvailable:!1,result:Object.keys(e).length>0?e:void 0})}if(n){let a=(0,S.oJ)(n.jobId);a&&!f.has(a)&&h({id:a,agent:"task",status:"completed"===n.state?"completed":"failed"===n.state?"failed":"started",index:f.size,transcriptAvailable:!1})}}let j=new Set;for(let a of e){if("message"!==a.type||a.message?.role!=="toolResult")continue;let b=a.message;if("task"!==b.toolName)continue;let c=(0,S.u4)(b.details)?b.details:{},d=(0,S.u4)(c.async)?c.async:void 0,e=d?(0,S.oJ)(d.jobId):void 0;e&&j.add(e)}let k=[...f.values()];for(let b of k)j.has(b.id)&&(b.detached=!0),ha(a,b.id,".jsonl")&&(d=b.id,b.sessionFile=(0,aq.join)(g8(a),`${d}.jsonl`),b.transcriptAvailable=!0);return k.sort((a,b)=>a.index-b.index||a.id.localeCompare(b.id))}let hd=1048576;function he(a){if(!a)return;let b=(a.split(/\r?\n/)[0]??"").replace(/[\u0000-\u001f\u007f-\u009f]/g," ").replace(/\s+/g," ").trim();return b.length>0?b:void 0}var hf=c(51455),hg=c(80481),hh=c(58500),hi=c(7561);class hj extends Error{constructor(a,b){super(a),this.status=b,this.name="SessionSearchError"}}let hk=new Map;function hl(a){let b,[c,d]=process.versions.node.split(".").map(Number);if(c<22||22===c&&d<19)throw new hj("Session search requires Node.js 22.19 or newer with node:sqlite enabled.",503);try{let c=process.getBuiltinModule("node:sqlite");if(!c||"function"!=typeof c.DatabaseSync)throw Error("node:sqlite is not available in this Node runtime");b=new c.DatabaseSync(a)}catch(a){throw new hj(`Cannot open session search cache; use Node.js 22.19+ with node:sqlite and check cache permissions: ${a instanceof Error?a.message:String(a)}`,503)}try{return b.exec("PRAGMA journal_mode=DELETE; PRAGMA busy_timeout=5000; CREATE TABLE IF NOT EXISTS sessions (id TEXT PRIMARY KEY, path TEXT NOT NULL, stamp TEXT NOT NULL, name TEXT NOT NULL, cwd TEXT NOT NULL, project TEXT NOT NULL); CREATE TABLE IF NOT EXISTS entries (session TEXT NOT NULL, id TEXT NOT NULL, parent TEXT, timestamp TEXT NOT NULL, time REAL, role TEXT, content TEXT NOT NULL, PRIMARY KEY(session,id)); CREATE INDEX IF NOT EXISTS entries_order ON entries(time DESC,session,id);"),b.exec("PRAGMA secure_delete=ON"),b.prepare("PRAGMA user_version").get()?.user_version!==1&&b.exec("BEGIN IMMEDIATE; DELETE FROM entries; DELETE FROM sessions; PRAGMA user_version=1; COMMIT"),b}catch(a){throw b.close(),new hj(`Cannot initialize derived search cache; remove the .ompgui-search cache directory and retry: ${a instanceof Error?a.message:String(a)}`,503)}}function hm(a,b){if(void 0===a)return;if("string"!=typeof a||!/^(?:\d{4}-\d{2}-\d{2}|\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[+-]\d{2}:\d{2}))$/.test(a))throw new hj(`${b} must be a UTC YYYY-MM-DD or ISO timestamp with explicit timezone.`,400);if(a.length>10&&(Number(a.slice(11,13))>23||Number(a.slice(14,16))>59||Number(a.slice(17,19))>59))throw new hj(`${b} is not a valid timestamp.`,400);let c=a.slice(0,10),d=Date.parse(`${c}T00:00:00Z`),e=Date.parse(a);if(!Number.isFinite(e)||!Number.isFinite(d)||new Date(d).toISOString().slice(0,10)!==c)throw new hj(`${b} is not a valid date.`,400);return e}async function hn(a,b,c){let d,e=a.prepare("INSERT OR REPLACE INTO entries VALUES (?,?,?,?,?,?,?)"),f=(0,O.createReadStream)(b,{encoding:"utf8",highWaterMark:65536}),g=(0,hg.createInterface)({input:f,crlfDelay:1/0}),h=!0,i=!1,j="",k="",l=!1,m=null,n=0,o=0;f.on("data",a=>{for(let b of a.split(/(?<=\n)/)){if((o+=Buffer.byteLength(b))>0x4000000)return void f.destroy(new hj("A session JSONL line exceeds the 64 MiB search limit. Split or compact the session before searching.",503));b.endsWith("\n")&&(o=0)}});try{for await(let a of g){let b;if(h){h=!1;let b=(0,az.U1)(a);if(b){d=b.title;continue}}try{b=JSON.parse(a)}catch{continue}if(null===b||"object"!=typeof b||Array.isArray(b))continue;if(!i){if(!("type"in b)||"session"!==b.type||!("id"in b)||b.id!==c)throw new hj("Session changed while indexing; retry search.",503);l=!("version"in b)||"number"!=typeof b.version||b.version<2,j=d??("title"in b&&"string"==typeof b.title?b.title:""),i=!0;continue}if("type"in b&&"session"===b.type)continue;n++;let f=l?`legacy-${n}`:"id"in b&&"string"==typeof b.id?b.id:void 0;if(!f)continue;let g=l?m:"parentId"in b&&"string"==typeof b.parentId?b.parentId:null;m=f;let o="timestamp"in b&&"string"==typeof b.timestamp?b.timestamp:"",q=null,r="";if("type"in b&&"message"===b.type&&"message"in b&&null!==b.message&&"object"==typeof b.message){let a=b.message;if(!("hidden"in b&&!0===b.hidden)&&!("hidden"in a&&!0===a.hidden)&&"role"in a&&("user"===a.role||"assistant"===a.role||"toolResult"===a.role)){var p;q=a.role,r="content"in a?(p=a.content,"string"==typeof p?p:Array.isArray(p)?p.flatMap(a=>null!==a&&"object"==typeof a&&!("hidden"in a&&!0===a.hidden)&&"type"in a&&"text"===a.type&&"text"in a&&"string"==typeof a.text?[a.text]:[]).join("\n"):""):""}}!k&&null!==q&&r.trim()&&(k=Array.from(r.slice(0,320)).slice(0,160).join(""));let s=Date.parse(o);e.run(c,f,g,o,Number.isFinite(s)?s:null,q,r),n%128==0&&await (0,hh.setImmediate)()}if(!i)throw new hj("Session header disappeared while indexing; retry search.",503);return j||k}finally{g.close(),f.destroy()}}async function ho(a,b){(0,az.I3)();let c=await (0,az.L1)();if((0,hi.$)(await (0,hf.realpath)((0,R.tE)()).catch(()=>Q().resolve((0,R.tE)())))!==b)throw new hj("Active session profile changed; retry search.",503);let d=await (0,hf.open)(a,"a",384);await d.close(),await (0,hf.chmod)(a,384);let e=hl(a);try{let a=new Set;for(let d of c){let c=await (0,hf.realpath)(d.path).catch(()=>null);if(!c)continue;let f=Q().relative(b,c);if(f.startsWith(`..${Q().sep}`)||".."===f||Q().isAbsolute(f))continue;if(a.has(d.id))throw new hj("Duplicate native session IDs prevent unambiguous search; remove the duplicate session file.",503);a.add(d.id);let g=await (0,hf.stat)(c),h=`${g.dev}:${g.ino}:${g.size}:${g.mtimeMs}:${g.ctimeMs}`,i=e.prepare("SELECT stamp,path FROM sessions WHERE id=?").get(d.id);if(i?.stamp===h&&i.path===c)continue;let j=(0,hi.$)((await (0,cd.KI)(d.cwd)).projectRoot);e.exec("BEGIN IMMEDIATE");try{e.prepare("DELETE FROM entries WHERE session=?").run(d.id);let a=await hn(e,c,d.id),b=await (0,hf.stat)(c);if(`${b.dev}:${b.ino}:${b.size}:${b.mtimeMs}:${b.ctimeMs}`!==h)throw new hj("Session changed while indexing; retry search.",503);e.prepare("INSERT OR REPLACE INTO sessions VALUES (?,?,?,?,?,?)").run(d.id,c,h,a,d.cwd,j),e.exec("COMMIT")}catch(a){throw e.exec("ROLLBACK"),a}await (0,hh.setImmediate)()}e.exec("BEGIN IMMEDIATE");try{for(let b of e.prepare("SELECT id FROM sessions").all())"string"!=typeof b.id||a.has(b.id)||(e.prepare("DELETE FROM entries WHERE session=?").run(b.id),e.prepare("DELETE FROM sessions WHERE id=?").run(b.id));e.exec("COMMIT")}catch(a){throw e.exec("ROLLBACK"),a}}finally{e.close()}}async function hp(){let a=(0,hi.$)(await (0,hf.realpath)((0,R.tE)()).catch(()=>Q().resolve((0,R.tE)()))),b=(0,L.createHash)("sha256").update(`${(0,R.oy)()??""}\0${a}`).digest("hex"),c=await (0,hf.realpath)((0,R.$M)()).catch(()=>Q().resolve((0,R.$M)())),d=Q().join(c,".ompgui-search");await (0,hf.mkdir)(d,{recursive:!0,mode:448}),await (0,hf.chmod)(d,448);let e=Q().join(d,`${b}.sqlite`),f=hk.get(e);f||(f=ho(e,a).finally(()=>{hk.delete(e)}),hk.set(e,f));try{return await f,hl(e)}catch(a){if(a instanceof hj)throw a;throw new hj(`Session search index refresh failed; check native session files and cache permissions: ${a instanceof Error?a.message:String(a)}`,503)}}async function hq(a){let b;if("string"!=typeof a.query||!a.query.trim()||a.query.length>500)throw new hj("query must contain 1–500 characters and cannot be whitespace-only.",400);let c=a.limit??25;if(!Number.isInteger(c)||c<1||c>50)throw new hj("limit must be an integer from 1 to 50.",400);if(void 0!==a.projectRoot&&("string"!=typeof a.projectRoot||!a.projectRoot.trim()||a.projectRoot.length>4096))throw new hj("projectRoot must be a nonempty path of at most 4096 characters.",400);let d=hm(a.from,"from"),e=hm(a.to,"to");if(void 0!==d&&void 0!==e&&d>=e)throw new hj("from must precede to (to is exclusive).",400);let f=void 0===a.projectRoot?null:(0,hi.$)(await (0,hf.realpath)(a.projectRoot).catch(()=>Q().resolve(a.projectRoot))),g=(0,L.createHash)("sha256").update(JSON.stringify([a.query,f,d,e,c])).digest("hex"),h=0;if(void 0!==a.cursor)try{if("string"!=typeof a.cursor||a.cursor.length>1024||!/^[A-Za-z0-9_-]+$/.test(a.cursor))throw Error();let d=JSON.parse(Buffer.from(a.cursor,"base64url").toString("utf8"));if(null===d||"object"!=typeof d||!("signature"in d)||d.signature!==g||!("offset"in d)||"number"!=typeof d.offset||!Number.isSafeInteger(d.offset)||d.offset<1||d.offset%c!=0||!("generation"in d)||"string"!=typeof d.generation)throw Error();h=d.offset,b=d.generation}catch{throw new hj("Invalid cursor or cursor belongs to different search filters.",400)}let i=await hp();try{let j=(0,L.createHash)("sha256").update(JSON.stringify(i.prepare("SELECT id,path,stamp FROM sessions ORDER BY id").all())).digest("hex");if(void 0!==b&&b!==j)throw new hj("Search results changed; restart without a cursor.",400);let k=RegExp(a.query.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"iu"),l=a.query.toLowerCase(),m=i.prepare("SELECT s.id AS sessionId,s.name AS sessionName,s.cwd,e.id AS entryId,e.timestamp,e.time,e.role,e.content FROM entries e JOIN sessions s ON s.id=e.session WHERE e.role IS NOT NULL AND (? IS NULL OR s.project=?) AND (? IS NULL OR e.time>=?) AND (? IS NULL OR e.time<?) AND (?=0 OR e.time<? OR (e.time IS ? AND (e.session>? OR (e.session=? AND e.id>?))) OR (e.time IS NULL AND ? IS NOT NULL)) ORDER BY e.time DESC,e.session,e.id LIMIT 128"),n=[],o=0,p=null,q="",r="",s=0,t=!1,u=!1;for(;!u&&!t;){let a=0,b=0;for(let g of m.iterate(f,f,d??null,d??null,e??null,e??null,o,p,p,q,q,r,p)){o=1,p="number"==typeof g.time?g.time:null,q=String(g.sessionId),r=String(g.entryId),a++;let d=String(g.content);b+=d.length;let e=k.exec(d),f=e?-1:d.toLowerCase().indexOf(l);if(!e&&f<0||s++<h){if(b>=1048576)break;continue}if(n.length===c){t=!0;break}let i=0,j=e?.index??0;for(let a of d){if(i>=f)break;i+=a.toLowerCase().length,j+=a.length}let m=Math.max(0,j-80);m&&/[\uDC00-\uDFFF]/.test(d[m])&&m--;let u=Math.min(d.length,m+640);u<d.length&&/[\uDC00-\uDFFF]/.test(d[u])&&u--;let v=`${m?"…":""}${d.slice(m,u)}${u<d.length?"…":""}`;if(n.push({sessionId:String(g.sessionId),sessionName:String(g.sessionName),cwd:String(g.cwd),entryId:String(g.entryId),timestamp:String(g.timestamp),role:g.role,snippet:v}),b>=1048576)break}if((u=0===a)||t||await (0,hh.setImmediate)(),(0,L.createHash)("sha256").update(JSON.stringify(i.prepare("SELECT id,path,stamp FROM sessions ORDER BY id").all())).digest("hex")!==j)throw new hj("Search results changed; restart without a cursor.",400)}if(h&&0===n.length)throw new hj("Cursor points beyond the search results; restart without a cursor.",400);return{matches:n,...t?{nextCursor:Buffer.from(JSON.stringify({signature:g,generation:j,offset:h+c})).toString("base64url")}:{}}}finally{i.close()}}async function hr(a){if("string"!=typeof a.id||!a.id||a.id.length>1024||"string"!=typeof a.entryId||!a.entryId||a.entryId.length>1024)throw new hj("id and entryId must be nonempty identifiers of at most 1024 characters.",400);let b=await hp();try{let c=b.prepare("SELECT name,cwd FROM sessions WHERE id=?").get(a.id),d=b.prepare("SELECT id,parent,timestamp,role,content FROM entries WHERE session=? AND id=?"),e=d.get(a.id,a.entryId);if(!c||!e||null===e.role||!e.content)throw new hj("Session or searchable entry not found.",404);let f=[],g=new Set,h=0;for(;e;){let b=String(e.id);if(g.has(b))throw new hj("Session ancestor chain contains a cycle; repair the native session file.",503);if(g.add(b),null!==e.role&&e.content){let a=String(e.content),c=Buffer.byteLength(a);if(c>262144&&0===f.length)throw new hj("Matched message exceeds the 256 KiB context limit; inspect the native session file for its full text.",503);if(21===f.length||h+c>262144)break;h+=c,f.push({entryId:b,timestamp:String(e.timestamp),role:e.role,content:a})}e="string"==typeof e.parent?d.get(a.id,e.parent):void 0}return f.reverse(),{sessionId:a.id,sessionName:String(c.name),cwd:String(c.cwd),entryId:a.entryId,leafId:a.entryId,matchIndex:f.length-1,messages:f,hasMoreBefore:void 0!==e,hasMoreAfter:!1}}finally{b.close()}}class hs extends Error{constructor(a,b){super(b),this.code=a}}class ht{constructor(a=Date.now,b=setTimeout,c=clearTimeout,d=(0,av.tmpdir)()){this.now=a,this.schedule=b,this.unschedule=c,this.root=d,this.images=new Map,this.reservedBytes=0}remove(a){this.images.get(a.id)===a&&(a.cancelled=!0,(0,O.rmSync)(a.directory,{recursive:!0,force:!0}),this.unschedule(a.timer),this.images.delete(a.id),this.reservedBytes-=a.size)}expire(){for(let a of this.images.values())(a.cancelled||a.expires<=this.now())&&this.remove(a)}owned(a,b){this.expire();let c="string"==typeof b?this.images.get(b):void 0;if(!c||c.deviceId!==a||c.claimed||c.cancelled)throw new hs("invalid_attachment","Attachment is unavailable");return c}begin(a,b,c){if(this.expire(),"string"!=typeof b||!/^image\/[A-Za-z0-9.+-]{1,100}$/.test(b))throw new hs("invalid_images","An image MIME type is required");if("number"!=typeof c||!Number.isSafeInteger(c)||c<1||c>T.Mt)throw new hs("invalid_images",`Each image must be 1 byte to ${T.Mt/1048576}MiB`);let d=0;for(let b of this.images.values())b.deviceId===a&&d++;if(d>=T.ZQ||this.reservedBytes+c>0x20000000||this.images.size>=1024)throw new hs("attachment_quota","Attachment staging quota exceeded");let e=(0,L.randomUUID)(),f=(0,O.mkdtempSync)((0,P.join)(this.root,"ompgui-relay-attachment-")),g=(0,P.join)(f,"image");try{(0,O.closeSync)((0,O.openSync)(g,"wx",384))}catch(a){throw(0,O.rmSync)(f,{recursive:!0,force:!0}),a}let h=this.schedule(()=>{let a=this.images.get(e);if(a)try{this.remove(a)}catch{}},9e5);return h.unref?.(),this.images.set(e,{id:e,deviceId:a,directory:f,path:g,mimeType:b,size:c,offset:0,complete:!1,claimed:!1,cancelled:!1,expires:this.now()+9e5,timer:h}),this.reservedBytes+=c,{attachmentId:e,maxChunkBytes:65536}}chunk(a,b,c,d){let e=this.owned(a,b);if(e.complete||c!==e.offset)throw new hs("invalid_offset","Attachment chunks must be sequential");if("string"!=typeof d||d.length>4*Math.ceil(65536/3))throw new hs("invalid_chunk","Attachment chunk is too large or malformed");let f=(0,T.Si)(d);if(null===f||f<1||f>65536||e.offset+f>e.size)throw new hs("invalid_chunk","Attachment chunk exceeds declared size or chunk limit");let g=Buffer.from(d,"base64");if(g.toString("base64")!==d)throw new hs("invalid_chunk","Attachment chunk must be canonical base64");let h=(0,O.openSync)(e.path,"r+");try{let a=0;for(;a<g.length;){let b=(0,O.writeSync)(h,g,a,g.length-a,e.offset+a);if(0===b)throw new hs("attachment_write_failed","Attachment storage write failed");a+=b}e.offset+=g.length}catch(a){throw(0,O.closeSync)(h),this.remove(e),a}return(0,O.closeSync)(h),{nextOffset:e.offset}}complete(a,b){let c=this.owned(a,b);if(c.offset!==c.size)throw new hs("incomplete_attachment","Attachment byte count does not match declared size");return c.complete=!0,{attachmentId:c.id}}abort(a,b){return this.remove(this.owned(a,b)),{aborted:!0}}claim(a,b){if(!Array.isArray(b)||b.length>T.ZQ||b.some(a=>"string"!=typeof a)||new Set(b).size!==b.length)throw new hs("invalid_attachment",`attachmentIds must contain at most ${T.ZQ} unique IDs`);let c=b.map(b=>this.owned(a,b));for(let a of c)if(!a.complete)throw new hs("incomplete_attachment","Attachment upload is incomplete");for(let a of c)a.claimed=!0;return{materialize:()=>(this.expire(),c.map(a=>{if(a.cancelled||this.images.get(a.id)!==a)throw new hs("invalid_attachment","Attachment expired or was cancelled");let b=(0,O.readFileSync)(a.path);if(b.length!==a.size)throw new hs("invalid_attachment","Attachment byte count changed");return{type:"image",mimeType:a.mimeType,data:b.toString("base64")}})),dispose:()=>{for(let a of c)this.remove(a)}}}cleanupDevice(a){for(let b of this.images.values())if(b.deviceId===a)try{this.remove(b)}catch{}}}let hu=new ht;async function hv(a){let b,c,d=await (0,al.os)(a);if(!d)throw new bG("not_found","Session not found");let e=(0,al.eP)(d),f=e?.id??a,g=e?.parentSession;if(g){let a=await (0,al.u1)(g);if(a)b=g,c=a;else{let a=await (0,al.os)(g);a&&(b=a,c=g)}}let h=(0,hi.$)(d),i=(0,P.dirname)(d),j=[];try{for(let a of(0,O.readdirSync)(i).filter(a=>a.endsWith(".jsonl")&&(0,hi.$)((0,P.join)(i,a))!==h)){let d,e,k,l,m=(0,P.join)(i,a);try{if((0,O.statSync)(m).size>az.ni){let b=a,c=!1;try{let a=(0,O.openSync)(m,"r");try{let d=Buffer.alloc(65536),e=(0,O.readSync)(a,d,0,d.length,0),g=d.toString("utf8",0,e).split("\n"),i=+!!(0,az.U1)(g[0]??""),j=JSON.parse(g[i]??"{}");"object"==typeof j&&null!==j&&!Array.isArray(j)&&"type"in j&&"session"===j.type&&("id"in j&&"string"==typeof j.id&&(b=j.id),"parentSession"in j&&"string"==typeof j.parentSession&&(c=j.parentSession===f||(0,hi.$)(j.parentSession)===h))}finally{(0,O.closeSync)(a)}}catch{}c&&j.push({id:b,reason:"session_child_too_large"});continue}}catch{continue}try{d=(0,O.readFileSync)(m,"utf8").split("\n"),e=+!!(0,az.U1)(d[0]??"");let a=JSON.parse(d[e]);if("object"!=typeof a||null===a||Array.isArray(a))continue;for(let[b,c]of(k={},Object.entries(a)))k[b]=c;if("session"!==k.type||"string"!=typeof k.parentSession||!k.parentSession||!(l=(0,hi.$)(k.parentSession)===h)&&k.parentSession!==f)continue}catch{continue}let n="string"==typeof k.id?k.id:void 0;if(n&&bA(n)?.isAlive?.()){j.push({id:n,reason:"session_child_live"});continue}k.parentSession=l?b??g:c??g,d[e]=JSON.stringify(k);try{(0,az.sv)(m,d.join("\n"),"reparent")}catch{j.push({id:n??a,reason:"session_child_rewrite_failed"})}}}catch{}return await bA(a)?.destroyAndWait?.(),(0,az.XS)(d),(0,al.BR)(a),(0,al.mD)(),j.length>0?{id:a,skippedChildren:j}:{id:a}}async function hw(a){let b=await (0,al.os)(a);if(!b)throw new bG("not_found","Session not found");if((await (0,al.dQ)()).some(b=>b.parentSessionId===a))throw new bG("session_has_children","Archive child sessions before archiving this session");return await bA(a)?.destroyAndWait?.(),(0,az.a8)(b),(0,al.BR)(a),(0,al.mD)(),{id:a}}async function hx(a,b){let c=b.trim();if(!c)throw new bG("invalid_name","name is required");let d=!1,e=bA(a);if(e?.isAlive?.()&&"function"==typeof e.send)try{await e.send({type:"set_session_name",name:c}),d=!0}catch{}if(!d){let b=await (0,al.os)(a);if(!b)throw new bG("not_found","Session not found");(0,az.Bm)(b,c,"user")}return(0,al.mD)(),{id:a,name:c}}async function hy(){return(await (0,az.Uk)()).map(a=>({key:a.key,...a.name?{name:a.name}:{},...a.id?{id:a.id}:{},...a.cwd?{cwd:a.cwd}:{},archivedAt:a.modified}))}async function hz(a){try{let b=await (0,az.O0)(a);return(0,al.BR)(b.id),(0,al.mD)(),{id:b.id}}catch(a){if(a instanceof az.De)throw new bG(a.code,a.message);throw a}}async function hA(a,b){let c,d=a.trim();if(!d||d.length>200||d.includes("/")||d.includes("\\"))throw new bG("invalid_file_name","Invalid file name");if(!b.trim())throw new bG("invalid_content","Empty session file");if(Buffer.byteLength(b,"utf8")>0xa00000)throw new bG("invalid_content","Session file is too large (max 10 MB)");let e=b.split(/\r?\n/).filter(a=>a.trim().length>0),f=(0,L.randomUUID)(),g=[];for(let a of e){let b;try{b=JSON.parse(a)}catch{throw new bG("invalid_session_file","Not a valid omp session file (malformed JSON line)")}if("object"==typeof b&&null!==b&&!Array.isArray(b)&&"type"in b){if("session"===b.type&&"cwd"in b&&"string"==typeof b.cwd&&(c=b.cwd),"session"===b.type){g.push(JSON.stringify({...b,id:f}));continue}if("message"===b.type&&"message"in b){let a=b.message;if("object"==typeof a&&null!==a&&!Array.isArray(a)&&"role"in a&&"bashExecution"===a.role){let c={};for(let[b,d]of Object.entries(a))"fullOutputPath"!==b&&(c[b]=d);g.push(JSON.stringify({...b,message:c}));continue}}}g.push(a)}if(!c)throw new bG("invalid_session_file","Not a valid omp session file (missing session header with cwd)");if(!an(c,await am()))throw new bG("import_cwd_not_authorized","Imported session workspace is not authorized");let h=(0,P.join)((0,R.tE)(),(0,R._8)(c));(0,O.mkdirSync)(h,{recursive:!0});let i=(0,P.join)(h,`${new Date().toISOString().replace(/[:.]/g,"-")}_${(0,L.randomUUID)()}.jsonl`);return(0,O.writeFileSync)(i,g.join("\n")+"\n","utf8"),(0,al.mD)(),(0,az.I3)(),{id:f,cwd:c}}let hB=/^[A-Za-z0-9._-]{1,128}$/,hC=/^[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*$/,hD=new Set(["auto","minimal","low","medium","high","xhigh","max","off"]),hE=new Set(["prompt","steer","follow_up","enqueue_message","get_message_queue","recall_queued_message","delete_queued_message","promote_queued_message","abort","abort_and_prompt","get_state","set_model","set_thinking_level","set_fast_mode","fork","new_session","switch_session","compact","abort_compaction","set_session_name","get_session_stats","get_last_assistant_text","get_commands","reload","extension_ui_response","bash","set_steering_mode","set_follow_up_mode","set_interrupt_mode","set_auto_compaction","set_auto_retry","abort_retry","abort_bash","set_todos","handoff","get_subagents","get_subagent_messages","set_subagent_subscription","get_messages","get_messages_page","get_branch_messages","export_html","cycle_model","cycle_thinking_level"]),hF={navigate_tree:"Branch navigation is not supported over the omp RPC protocol",clear_queue:"Recalling queued messages is not supported over the omp RPC protocol",get_tools:"Per-session tool listing is not supported over the omp RPC protocol",set_tools:"Changing tools on a running session is not supported over the omp RPC protocol; tool presets apply to new sessions",extension_ui_input:"Extension custom UI is not supported over the omp RPC protocol"},hG=new Set(["list","search","searchContext","create","delete","archive","rename","restore","archives","import","branches","leaf","history","content","thinking","media","subagents","subagentTranscript","subagentCompletion","stats","state","systemPrompt","autoname","export","exportChunk","exportClose","command","attachments.begin","attachments.chunk","attachments.complete","attachments.abort","projects.remove","worktrees.list","worktrees.add","worktrees.remove"]);class hH extends bG{constructor(a,b,c){super(a,b),void 0!==c&&(this.details=c)}}function hI(a,b,c){throw new hH(a,b,c)}function hJ(a){let b=(0,S.oJ)(a)?.trim();return b&&hB.test(b)||hI("invalid_session","session id is required"),b}function hK(a,b=0){if(void 0===a)return b;let c=(0,S.i)(a);return(void 0===c||!Number.isSafeInteger(c)||c<0)&&hI("invalid_offset","offset must be a non-negative integer"),c}function hL(a,b,c){if(void 0===a)return b;let d=(0,S.i)(a);return(void 0===d||!Number.isSafeInteger(d)||d<1||d>c)&&hI("invalid_limit",`limit must be 1..${c}`),d}function hM(a){let b={};for(let[c,d]of Object.entries(a))b[c]=d;return b}async function hN(a){let b=hK(a.offset,0),c=hL(a.limit,100,500),d=(0,S.oJ)(a.query)?.trim().toLowerCase()??"",e=!0===a.runningOnly,f=await bI(),g=new Set(f.runningIds),h=f.sessions;e&&(h=h.filter(a=>g.has(a.id))),d&&(h=h.filter(a=>a.id.toLowerCase().includes(d)||(a.name??"").toLowerCase().includes(d)||a.cwd.toLowerCase().includes(d)||a.firstMessage.toLowerCase().includes(d)));let i=h.length,j=h.slice(b,b+c);return{sessions:j,runningIds:f.runningIds,total:i,offset:b,limit:c,hasMore:b+j.length<i}}async function hO(a){"string"!=typeof a.query&&hI("invalid_search","query must be a string");let b={query:a.query};for(let c of["projectRoot","from","to","cursor"]){let d=a[c];void 0!==d&&("string"!=typeof d&&hI("invalid_search",`${c} must be a string`),b[c]=d)}void 0!==a.limit&&("number"!=typeof a.limit&&hI("invalid_search","limit must be a number"),b.limit=a.limit);try{return{...await hq(b)}}catch(a){throw a instanceof hj&&hI(400===a.status?"invalid_search":"search_unavailable",a.message),a}}async function hP(a){let b=hJ(a.id);"string"!=typeof a.entryId&&hI("invalid_search","entryId must be a string");try{return{...await hr({id:b,entryId:a.entryId})}}catch(a){throw a instanceof hj&&hI(404===a.status?"not_found":400===a.status?"invalid_search":"search_unavailable",a.message),a}}async function hQ(a){let b,c,d=(0,S.oJ)(a.cwd)?.trim();d||hI("cwd_required","cwd is required");try{b=cj(d)}catch(a){throw a instanceof ce&&hI(a.code,a.message),a}(0,O.existsSync)(b)||hI("directory_not_found",`Directory does not exist: ${b}`);let e=(0,S.oJ)(a.message)?.trim()??"";e.length>3145728&&hI("invalid_command","prompt message is too long");let f=(0,S.oJ)(a.thinkingLevel)?.trim();f&&!hD.has(f)&&hI("invalid_command","Unknown thinking level");let g=(0,S.oJ)(a.provider)?.trim(),h=(0,S.oJ)(a.modelId)?.trim();if((g&&!h||!g&&h)&&hI("invalid_command","set_model requires provider and modelId"),void 0!==a.toolNames){let b=a.toolNames;Array.isArray(b)||hI("invalid_tools","toolNames must be an array of tool names");let d=[];for(let a of b){("string"!=typeof a||!a.trim()||a.length>64)&&hI("invalid_tools","toolNames must be an array of tool names");let b=a.toLowerCase();d.includes(b)||d.push(b)}c=br(d)}let i=!0===a.advisor,j=`__new__${(0,L.randomUUID)()}`;try{let{session:a,realSessionId:d}=await bF(j,"",b,c,i);return(0,aj.wz)(b),(0,al.mD)(),g&&h&&await a.send({type:"set_model",provider:g,modelId:h}),f&&await a.send({type:"set_thinking_level",level:f}),e&&await a.send({type:"prompt",message:e}),{sessionId:d}}catch(a){if(a instanceof bl||a instanceof ax.x||a instanceof bG)throw a;hI("session_create_failed",a instanceof Error?a.message:String(a))}hI("session_create_failed","unreachable")}async function hR(a){let b=hJ(a.id),c=null==a.leafId?void 0:(0,S.oJ)(a.leafId)?.trim();null!=a.leafId&&(!c||c.length>200)&&hI("invalid_leaf","leafId is invalid");let d=await (0,al.os)(b);if(d){let a=(0,al.cr)(d);"too_large"===a.error&&hI("session_file_too_large","Session file is too large"),a.header||hI("session_file_malformed","Session file is missing or malformed"),c&&!a.entries.some(a=>a.id===c)&&hI("unknown_leaf","Unknown conversation branch");let e=c??(0,az.kT)(a.entries),f=(0,al.Uv)(a.entries,e,{deferThinking:!1,deferToolResultImages:!1});return{id:b,leafId:e,messages:f.messages,entryIds:f.entryIds,filePath:d,entries:a.entries}}c&&hI("unknown_leaf","Unknown conversation branch");let e=bA(b);e?.isAlive()||hI("session_not_found","Session not found");let f=await e.send({type:"get_messages"});e.isAlive()&&bA(b)===e&&e.sessionId===b||hI("session_not_found","Session not found"),"object"==typeof f&&null!==f&&"messages"in f&&Array.isArray(f.messages)||hI("rpc_command_failed","Live transcript unavailable");let g=f.messages;return{id:b,leafId:null,messages:g,entryIds:g.map(a=>aA(a)?.entryId??""),filePath:void 0,entries:[]}}function hS(a,b,c,d){if(!a)return -1;let e=b.indexOf(a);if(e>=0)return e;if(!a.startsWith("live:"))return -1;let f=new Map(d.map(a=>[a.id,a])),g=-1;for(let d=0;d<b.length;d++){let e=f.get(b[d]),h=e&&"message"in e?e.message:c[d];if(aA(h)?.entryId===a){if(g>=0)return -1;g=d}}return g}async function hT(a){let b=await hR(a),c=(0,S.oJ)(a.entryId),d=hS(c,b.entryIds,b.messages,b.entries);d<0&&hI("entry_not_found","Entry is not part of this conversation branch");let e=aA(b.messages[d],c);e||hI("entry_not_found","Entry is not visible in this conversation");let f=JSON.stringify(e),g=hK(a.offset,0),h=hL(a.limit,32e3,64e3),i=Math.min(f.length,g+h);return{text:f.slice(g,i),encoding:"json",total:f.length,offset:g,nextOffset:i,hasMore:i<f.length}}async function hU(a){let b;if(!0===a.online){let b=await hR(a),c=aB(b.messages,b.entryIds,hK(a.offset,0),hL(a.limit,100,500));return{id:b.id,leafId:b.leafId,...c}}let c=hJ(a.id),d=await (0,al.os)(c);d||hI("session_not_found","Session not found");let e=(0,al.cr)(d);"too_large"===e.error&&hI("session_file_too_large","Session file is too large to open in ompgui"),e.header||hI("session_file_malformed","Session file is missing or malformed");let f=(0,az.qd)(e.entries,{skipToolResultImages:!0});if(void 0!==a.leafId&&null!==a.leafId){let c=(0,S.oJ)(a.leafId)?.trim();(!c||c.length>200)&&hI("invalid_leaf","leafId is invalid"),b=c}let g=(0,az.kT)(f),h=b??g;b&&(new Set(f.map(a=>a.id)).has(b)||hI("unknown_leaf","Unknown conversation branch"));let i=(0,al.Uv)(f,h??void 0,{deferThinking:!0,deferToolResultImages:!0}),j=i.messages.length,k=hK(a.offset,0),l=hL(a.limit,100,500),m=i.messages.slice(k,k+l),n=i.entryIds.slice(k,k+l);return{id:c,leafId:h??null,total:j,offset:k,limit:l,hasMore:k+m.length<j,messages:m,entryIds:n,thinkingLevel:i.thinkingLevel,model:i.model,todoPhases:i.todoPhases}}async function hV(a){let b=hJ(a.id),c=(0,S.oJ)(a.entryId)?.trim();(!c||c.length>200)&&hI("invalid_entry","entryId is required");let d=(0,S.i)(a.blockIndex);(void 0===d||!Number.isSafeInteger(d)||d<0||d>100)&&hI("invalid_block_index","A valid block index is required");let e=await (0,al.os)(b);e||hI("session_not_found","Session not found");let f=(0,al.DK)(e).find(a=>a.id===c);!(void 0===f||"message"!==f.type||"object"!=typeof f.message||null===f.message||Array.isArray(f.message))&&"role"in f.message&&"assistant"===f.message.role&&"content"in f.message&&Array.isArray(f.message.content)||hI("assistant_message_not_found","Assistant message not found");let g=f.message.content[d];return!("object"!=typeof g||null===g||Array.isArray(g))&&"type"in g&&"thinking"===g.type&&"thinking"in g&&"string"==typeof g.thinking||hI("thinking_block_not_found","Thinking block not found"),{thinking:g.thinking}}function hW(a,b,c){let d=hK(c.offset,0),e=hL(c.limit,10,10),f=[],g=0;for(let b of a.slice(d,d+e)){let a=Buffer.byteLength(JSON.stringify(b));if(g+a>0xe00000&&f.length>0)break;a>0xe00000&&hI("tool_result_images_too_large","Image exceeds supported size"),g+=a,f.push(b)}let h=d+f.length;return{images:f,missingCount:b,total:a.length,offset:d,nextOffset:h,hasMore:h<a.length}}async function hX(a){let b=await hR(a),c=(0,S.oJ)(a.entryId)?.trim();(!c||c.length>200)&&hI("invalid_entry","entryId is required");let d=hS(c,b.entryIds,b.messages,b.entries);if((d<0||!aA(b.messages[d],c))&&hI("entry_not_found","Entry is not part of this conversation branch"),b.filePath)try{let c=(0,al.td)(b.filePath,b.entryIds[d]);if(c)return hW(c.images,c.missingCount,a)}catch(a){throw a instanceof T.zJ&&hI(a.code,a.message),a}let e=b.entries.find(a=>a.id===b.entryIds[d]),f=e?(0,az.qd)([e])[0]:void 0,g=f&&"message"in f?f.message:b.messages[d];return"object"==typeof g&&null!==g&&"content"in g&&Array.isArray(g.content)?hW((0,T.K8)({content:g.content,details:"details"in g?g.details:void 0}),0,a):{images:[],missingCount:0}}async function hY(a){let b=hJ(a.id),c=await (0,al.os)(b);if(!c){if(bA(b)?.isAlive())return{subagents:[]};hI("session_not_found","Session not found")}return{subagents:hc(c)}}async function hZ(a,b){let c,d=await (0,al.os)(a),e=bA(a);d||e?.isAlive()||hI("session_not_found","Session not found");let f=d?hc(d).find(a=>a.id===b):void 0;if(e?.isAlive())try{let a=await e.send({type:"get_subagents"});a&&"object"==typeof a&&"subagents"in a&&Array.isArray(a.subagents)&&(c=a.subagents.find(a=>null!==a&&"object"==typeof a&&"id"in a&&a.id===b))}catch{}let g=c?.status;return{filePath:d,rpc:e,live:c,history:f,pending:"started"===g||"pending"===g||"running"===g}}function h$(a,b,c,d){try{return ha(a,b,c,void 0,!0)??(d?ha(a,b,c,d,!0):null)}catch(a){throw a instanceof g9&&hI("artifact_forbidden",a.message),a}}async function h_(a){let b=hJ(a.id),c=(0,S.oJ)(a.subagentId)?.trim();c&&!(c.length>100)&&hC.test(c)||hI("invalid_subagent_id","Invalid subagent id");let d=void 0===a.fromByte?0:(0,S.i)(a.fromByte);(void 0===d||!Number.isSafeInteger(d)||d<0)&&hI("invalid_offset","fromByte must be a non-negative integer");let e=await hZ(b,c);if(e.live&&e.rpc)try{let a=await e.rpc.send({type:"get_subagent_messages",subagentId:c,fromByte:d});if(a&&"object"==typeof a&&"messages"in a&&Array.isArray(a.messages)&&!("error"in a&&a.error))return{...a,status:e.pending&&0===a.messages.length?"pending":"ready"}}catch{}let f=e.filePath?h$(e.filePath,c,".jsonl"):null;if(!f){if(e.pending)return{status:"pending",fromByte:d,nextByte:d,reset:!1,messages:[],totalBytes:null};e.history||e.live||hI("subagent_not_found","Subagent is not part of this session"),hI("transcript_not_found","No saved transcript is available for this subagent")}let g=function(a,b=0){let c,d={sessionFile:a,fromByte:"number"==typeof b&&Number.isFinite(b)?Math.max(0,Math.trunc(b)):0,nextByte:"number"==typeof b&&Number.isFinite(b)?Math.max(0,Math.trunc(b)):0,reset:!1,messages:[]},e=d.fromByte,f=!1;try{c=(0,ao.openSync)(a,ao.constants.O_RDONLY|ao.constants.O_NOFOLLOW);let b=(0,ao.fstatSync)(c);if(!b.isFile())return{...d,error:"Subagent transcript is not a regular file"};let g=b.size;if(e>g&&(e=0,f=!0),g>0x1000000)return{...d,fromByte:e,nextByte:e,reset:f,error:"Subagent transcript exceeds the readable size limit"};let h=[],i=0,j=0;for(;e+i<g;){let a=Buffer.allocUnsafe(Math.min(262144,g-e-i)),b=(0,ao.readSync)(c,a,0,a.length,e+i);if(0===b)break;let d=a.subarray(0,b),f=0===i?d.lastIndexOf(10):d.indexOf(10);if(f>=0){h.push(d.subarray(0,f+1)),j=i+f+1;break}h.push(d),i+=b}let k=[];if(j>0){let a=(1===h.length?h[0]:Buffer.concat(h,j)).toString("utf8");for(let b of(0,az.nr)(a)){if(null===b||"object"!=typeof b||Array.isArray(b))continue;let a=(0,al.HA)(b,{});null!==a&&k.push(a)}}return{sessionFile:a,fromByte:e,nextByte:e+j,reset:f,messages:k,totalBytes:g}}catch{return{...d,fromByte:e,nextByte:e,reset:f,error:"Subagent transcript could not be read"}}finally{void 0!==c&&(0,ao.closeSync)(c)}}(f,d);return{status:e.pending&&0===g.messages.length?"pending":"ready",fromByte:g.fromByte,nextByte:g.nextByte,reset:g.reset,messages:g.messages,totalBytes:g.totalBytes??null,...g.error?{error:g.error}:{}}}async function h0(a){let b=hJ(a.id),c=(0,S.oJ)(a.subagentId)?.trim();c&&!(c.length>100)&&hC.test(c)||hI("invalid_subagent_id","Invalid subagent id");let d=await hZ(b,c),e=d.filePath?h$(d.filePath,c,".md",d.history?.result?.outputPath):null,f=e?function(a){let b;try{b=(0,ao.openSync)(a,ao.constants.O_RDONLY|ao.constants.O_NOFOLLOW)}catch{return null}try{let a=(0,ao.fstatSync)(b);if(!a.isFile()||a.size<=0)return null;let c=a.size>hd,d=Math.min(a.size,hd),e=Buffer.alloc(d),f=(0,ao.readSync)(b,e,0,d,0),g=e.subarray(0,f),h=g.length,i=0;for(;h-i>0&&(192&g[h-1-i])==128;)i+=1;let j=h-1-i;if(j>=0){let a=g[j];j+(a>=240?4:a>=224?3:a>=192?2:1)>g.length&&(h=j)}else h=0;return{completion:g.subarray(0,h).toString("utf8"),truncated:c}}finally{(0,ao.closeSync)(b)}}(e):null;return f?{...f,status:"ready"}:(d.history||d.live||hI("subagent_not_found","Subagent is not part of this session"),{completion:null,truncated:!1,status:d.pending?"pending":"unavailable"})}async function h1(a){let b=hJ(a.id);try{let a=await bK(b,{type:"get_session_stats"});return("object"!=typeof a||null===a||Array.isArray(a))&&hI("stats_failed","Session stats unavailable"),hM(a)}catch(a){if(a instanceof bG||a instanceof bl||a instanceof ax.x)throw a;hI("stats_failed",a instanceof Error?a.message:String(a))}hI("stats_failed","unreachable")}async function h2(a){let b=hJ(a.id);try{let a=await bK(b,{type:"get_state"});return("object"!=typeof a||null===a||Array.isArray(a))&&hI("state_failed","Session state unavailable"),hM(a)}catch(a){if(a instanceof bG||a instanceof bl||a instanceof ax.x)throw a;hI("state_failed",a instanceof Error?a.message:String(a))}hI("state_failed","unreachable")}async function h3(a){let b=hJ(a.id),c=await bK(b,{type:"get_state"});return"object"==typeof c&&null!==c&&!Array.isArray(c)&&"systemPrompt"in c&&"string"==typeof c.systemPrompt?{systemPrompt:c.systemPrompt}:{systemPrompt:null}}async function h4(a){let b=hJ(a.id),c=bA(b),d=!!c?.isAlive?.();if(d&&void 0!==c&&"function"==typeof c.send)try{let a,b=await c.send({type:"get_state"});"object"==typeof b&&null!==b&&!Array.isArray(b)&&"sessionName"in b&&"string"==typeof b.sessionName&&(a=b.sessionName);let d=he(a);if(d)return(0,al.mD)(),{title:d}}catch{}let e=await (0,al.os)(b);e||hI("session_not_found","Session not found");let f=(0,az.mk)(e,!1),g=he(f?.title);if(g)return{title:g};let h=function(a){if(!a||"(no messages)"===a)return null;let b=he(a);if(!b||!/[\p{L}\p{N}]/u.test(b))return null;let c=Array.from(b);return c.length<=60?b:`${c.slice(0,60).join("").trimEnd()}…`}(f?.firstMessage);return h||hI("session_no_messages_to_name","The session has no user messages to name"),d||(0,az.Bm)(e,h,"auto"),(0,al.mD)(),{title:h}}async function h5(a,b){let c,d=hJ(a.id),e=function(a){("object"!=typeof a||null===a||Array.isArray(a))&&hI("invalid_command","command must be an object");let b={};for(let[c,d]of Object.entries(a))b[c]=d;return b}(a.command),f=(0,S.oJ)(e.type)?.trim();f||hI("command_type_required","command type is required"),hF[f]&&hI("unsupported_command",hF[f]),hE.has(f)||hI("unsupported_command",`Unsupported command: ${f}`),e.type=f,"recall_queued_message"===f&&(e.__relayRecallMaxBytes=0xf00000);let g="prompt"===f||"abort_and_prompt"===f||"steer"===f||"follow_up"===f||"enqueue_message"===f,h=void 0!==e.attachmentIds;if(h&&!g&&hI("invalid_attachment","This command does not accept attachmentIds"),"enqueue_message"===f&&"steer"!==e.lane&&"followUp"!==e.lane&&hI("invalid_command","enqueue_message requires lane steer or followUp"),("recall_queued_message"===f||"delete_queued_message"===f||"promote_queued_message"===f)&&("string"==typeof e.id&&e.id.trim()||hI("invalid_command",`${f} requires id`),("number"!=typeof e.expectedRevision||!Number.isSafeInteger(e.expectedRevision)||e.expectedRevision<0)&&hI("invalid_command",`${f} requires a nonnegative safe integer expectedRevision`)),h&&void 0!==e.images&&hI("invalid_images","Do not combine images and attachmentIds"),g&&("string"!=typeof e.message||e.message.length>3145728)&&hI("invalid_command","A prompt message of at most 3Mi characters is required"),g&&void 0!==e.images){let a=e.images;Array.isArray(a)||hI("invalid_images","images must be an array");let b=a.map(a=>"object"!=typeof a||null===a||Array.isArray(a)?a:{type:"image",data:"data"in a&&"string"==typeof a.data?a.data:void 0,mimeType:"mimeType"in a&&"string"==typeof a.mimeType?a.mimeType:void 0}),c=(0,T.kc)(b);c&&hI("invalid_images",c),e.images=b}if("fork"===f){b.sessionId!==d&&hI("invalid_session","Open the target session before creating a fork"),b.assertActive?.();let a=(0,S.oJ)(e.entryId)?.trim();(!a||a.length>200)&&hI("invalid_entry","fork requires a valid entryId");let f=null==e.leafId?void 0:(0,S.oJ)(e.leafId)?.trim();null!=e.leafId&&(!f||f.length>200)&&hI("invalid_leaf","leafId is invalid");let g=await (0,al.os)(d);g||hI("entry_not_found","Wait for this user message to be saved, then refresh before creating a fork"),e.entryId=(c=()=>{let b=(0,al.cr)(g);(!b.header||b.header.id!==d||b.error)&&hI("entry_not_found","The saved conversation is unavailable; refresh before creating a fork"),f&&!b.entries.some(a=>a.id===f)&&hI("unknown_leaf","Unknown conversation branch");let c=a;if(f||a.startsWith("live:")){let d=(0,al.Uv)(b.entries,f??(0,az.kT)(b.entries),{deferThinking:!1,deferToolResultImages:!1}),e=hS(a,d.entryIds,d.messages,b.entries);c=e<0?void 0:d.entryIds[e]}let e=b.entries.find(a=>a.id===c);return e&&"message"===e.type&&"user"===e.message.role||hI("entry_not_found","Select a uniquely identifiable saved user message on this branch; refresh before creating a fork"),e.id})(),delete e.leafId}if("bash"===f&&!0===e.excludeFromContext&&hI("bash_exclude_unsupported","omp cannot run a shell command with its output excluded from the model context (`!!`): the RPC bash command has no exclusion option, so the output would silently enter the context anyway. Run it with a single `!` to share the output with the model, or use a terminal outside ompgui."),"set_model"===f){let a=(0,S.oJ)(e.provider)?.trim(),b=(0,S.oJ)(e.modelId)?.trim();a&&b||hI("invalid_command","set_model requires provider and modelId")}"set_thinking_level"===f&&(((0,S.oJ)(e.level)?.trim()??(0,S.oJ)(e.thinkingLevel)?.trim())||hI("invalid_command","set_thinking_level requires level")),"set_session_name"===f&&((0,S.oJ)(e.name)?.trim()||hI("invalid_command","Session name cannot be empty")),"extension_ui_response"===f&&((0,S.oJ)(e.id)?.trim()||hI("invalid_command","extension_ui_response requires id"),b.sessionId!==d&&hI("invalid_session","Open the target session before answering its dialog")),h&&(b.sessionId!==d&&hI("invalid_session","Open the target session before sending attachments"),bA(d)?.isAlive()||await (0,al.os)(d)||hI("session_not_found","Session not found")),b.assertActive?.();let i=h?hu.claim(b.deviceId,e.attachmentIds):void 0;delete e.attachmentIds;try{let a=await bK(d,e,()=>(b.assertActive?.(),c&&(e.entryId=c()),i?{...e,images:i.materialize()}:e));if(null==a)return{result:null};if("object"==typeof a)return{result:a};return{result:{value:a}}}catch(a){if(a instanceof bG||a instanceof bl||a instanceof ax.x)throw a;hI("rpc_command_failed",a instanceof Error?a.message:String(a))}finally{i?.dispose()}hI("rpc_command_failed","unreachable")}async function h6(a){let b=(0,S.oJ)(a.cwd)?.trim(),c=(0,S.oJ)(a.path)?.trim();b||hI("cwd_required","cwd is required"),c||hI("path_required","path is required");let d=await am();an((0,P.resolve)(b),d)||hI("access_denied","Path is outside allowed workspaces");let e=!0===a.force;try{return await (0,cd.IL)(b,c,e),{path:c}}catch(b){let a=b instanceof Error?b.message:String(b);/contains modified or untracked files|is dirty/i.test(a)&&hI("worktree_dirty",a,{dirty:!0}),a.startsWith("Not a worktree of this repository")&&hI("not_a_worktree",a),a.startsWith("Cannot remove the main worktree")&&hI("cannot_remove_main_worktree",a),hI("worktree_remove_failed",a)}hI("worktree_remove_failed","unreachable")}async function h7(a,b,c){hG.has(a)||hI("unknown_action",`Unknown sessions action: ${a}`),("object"!=typeof b||null===b||Array.isArray(b))&&hI("invalid_args","args must be an object");let d={};for(let[a,c]of Object.entries(b))d[a]=c;switch(a){case"projects.remove":{let a=(0,S.oJ)(d.cwd)?.trim();return a||hI("invalid_args","cwd is required"),{...await gW(await gH(a)),projects:await gC()}}case"list":return hN(d);case"create":return hQ(d);case"delete":{let a=hJ(d.id);return{...await hv(a)}}case"archive":{let a=hJ(d.id);return{...await hw(a)}}case"rename":{let a=hJ(d.id),b=(0,S.oJ)(d.name)??"";return{...await hx(a,b)}}case"restore":{let a=(0,S.oJ)(d.key)?.trim();return a||hI("invalid_key","archive key is required"),{...await hz(a)}}case"archives":return{archives:await hy()};case"import":{let a=(0,S.oJ)(d.fileName)??"",b=(0,S.oJ)(d.content)??"";return{...await hA(a,b)}}case"branches":{let a=hJ(d.id);return{...await bN(a)}}case"leaf":{let a=hJ(d.id),b=(0,S.oJ)(d.leafId)?.trim();return b||hI("invalid_leaf","leafId is required"),{...await bO(a,b)}}case"search":return hO(d);case"searchContext":return hP(d);case"content":return hT(d);case"history":return hU(d);case"thinking":return hV(d);case"media":return hX(d);case"subagents":return hY(d);case"subagentTranscript":return h_(d);case"subagentCompletion":return h0(d);case"stats":return h1(d);case"state":return h2(d);case"systemPrompt":return h3(d);case"autoname":return h4(d);case"export":{let a=hJ(d.id);return{...await bP(a,c.deviceId)}}case"exportChunk":{let a=(0,S.oJ)(d.transferId)?.trim();return a||hI("invalid_transfer","transferId is required"),{...function(a,b,c,d){let e=bQ.get(a);if(!e||e.deviceId!==d||e.expiresAt<=Date.now())throw e?.expiresAt!==void 0&&e.expiresAt<=Date.now()&&bQ.delete(a),new bG("unknown_transfer","Unknown or expired export transfer");if(!Number.isSafeInteger(b)||b<0||b>e.size)throw new bG("invalid_offset","Invalid export offset");if(!Number.isSafeInteger(c)||c<=0||c>98304)throw new bG("invalid_length","Invalid export chunk length");let f=e.bytes.subarray(b,Math.min(e.size,b+c)),g=b+f.length;return{transferId:a,offset:b,data:Buffer.from(f).toString("base64"),bytes:f.length,nextOffset:g,complete:g>=e.size,size:e.size}}(a,hK(d.offset,0),void 0===d.length?98304:hL(d.length,98304,98304),c.deviceId)}}case"exportClose":{var e;let a,b=(0,S.oJ)(d.transferId)?.trim();return b||hI("invalid_transfer","transferId is required"),{...(e=c.deviceId,!(a=bQ.get(b))||a.deviceId!==e?{closed:!1}:{closed:bQ.delete(b)})}}case"attachments.begin":return hu.begin(c.deviceId,d.mimeType,d.size);case"attachments.chunk":return hu.chunk(c.deviceId,d.attachmentId,d.offset,d.data);case"attachments.complete":return hu.complete(c.deviceId,d.attachmentId);case"attachments.abort":return hu.abort(c.deviceId,d.attachmentId);case"command":return h5(d,c);case"worktrees.list":{let a=(0,S.oJ)(d.cwd)?.trim();return a||hI("cwd_required","cwd is required"),{...await gQ(a)}}case"worktrees.add":{let a=(0,S.oJ)(d.cwd)?.trim(),b=(0,S.oJ)(d.branch)?.trim();return a||hI("cwd_required","cwd is required"),b||hI("branch_required","branch is required"),{...await gU(a,b)}}case"worktrees.remove":return h6(d);default:hI("unknown_action",`Unknown sessions action: ${a}`)}hI("unknown_action",`Unknown sessions action: ${a}`)}let h8="models_config_invalid";class h9 extends Error{constructor(a){const b=a.length>0?a:[{path:"",message:"Invalid models configuration"}];super(b.map(a=>a.path?`${a.path} ${a.message}`:a.message).join("; ")),this.code=h8,this.name="ModelsConfigValidationError",this.issues=b}}function ia(a,b,c){a.push({path:b,message:c})}function ib(a){if("string"!=typeof a||""===a.trim())return!1;try{let b=new URL(a);return("http:"===b.protocol||"https:"===b.protocol)&&b.hostname.length>0}catch{return!1}}function ic(a,b,c){(!(0,S.u4)(a)||Object.values(a).some(a=>"string"!=typeof a))&&ia(c,b,"must map header names to strings")}function id(a){let b=[];if(!(0,S.u4)(a))throw new h9([{path:"",message:"must be an object"}]);let c=ij(a).providers,d=void 0===c?{}:c;if((0,S.u4)(d))for(let[a,c]of Object.entries(d)){let d=`providers.${a}`;if(!(0,S.u4)(c)){ia(b,d,"must be an object");continue}if(void 0===c.baseUrl||ib(c.baseUrl)||ia(b,`${d}.baseUrl`,"must be a valid HTTP(S) URL"),void 0!==c.api&&("string"!=typeof c.api||""===c.api.trim())&&ia(b,`${d}.api`,"must be a non-empty API identifier"),void 0!==c.auth&&"none"!==c.auth&&"apiKey"!==c.auth&&"oauth"!==c.auth&&ia(b,`${d}.auth`,"must be one of apiKey, none, or oauth"),void 0!==c.apiKey&&"string"!=typeof c.apiKey&&ia(b,`${d}.apiKey`,"must be a string"),void 0!==c.headers&&ic(c.headers,`${d}.headers`,b),void 0!==c.models&&!Array.isArray(c.models)){ia(b,`${d}.models`,"must be an array");continue}let e=Array.isArray(c.models)?c.models:[],f=new Map;for(let[a,g]of(e.length>0&&(("string"!=typeof c.baseUrl||""===c.baseUrl.trim())&&ia(b,`${d}.baseUrl`,"is required when defining custom models"),"apiKey"===(c.auth??"apiKey")&&("string"!=typeof c.apiKey||""===c.apiKey.trim())&&ia(b,`${d}.apiKey`,"is required when defining custom models unless auth is none or oauth")),e.entries())){let e=`${d}.models[${a}]`;if(!(0,S.u4)(g)){ia(b,e,"must be an object");continue}if("string"!=typeof g.id||""===g.id.trim())ia(b,`${e}.id`,"is required");else{let c=f.get(g.id);void 0!==c?ia(b,`${e}.id`,`duplicates the model id at index ${c}`):f.set(g.id,a)}for(let a of(void 0===g.baseUrl||ib(g.baseUrl)||ia(b,`${e}.baseUrl`,"must be a valid HTTP(S) URL"),void 0!==g.api&&("string"!=typeof g.api||""===g.api.trim())&&ia(b,`${e}.api`,"must be a non-empty API identifier"),("string"!=typeof c.api||""===c.api.trim())&&("string"!=typeof g.api||""===g.api.trim())&&ia(b,`${e}.api`,"must be specified at provider or model level"),["contextWindow","maxTokens"]))void 0!==g[a]&&("number"!=typeof g[a]||!Number.isFinite(g[a])||g[a]<=0)&&ia(b,`${e}.${a}`,"must be a positive finite number");if(void 0!==g.headers&&ic(g.headers,`${e}.headers`,b),void 0!==g.cost)if((0,S.u4)(g.cost))for(let a of["input","output","cacheRead","cacheWrite"]){let c=g.cost[a];void 0===c?ia(b,`${e}.cost.${a}`,"is required (cost needs input, output, cacheRead, and cacheWrite)"):("number"!=typeof c||!Number.isFinite(c)||c<0)&&ia(b,`${e}.cost.${a}`,"must be a finite non-negative number")}else ia(b,`${e}.cost`,"must be an object")}}else ia(b,"providers","must be an object");if(b.length>0)throw new h9(b)}function ie(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function ig(a){if(!(0,S.u4)(a))return a;let b={...a};return delete b.originalId,b}function ih(a){if(!(0,S.u4)(a))return a;let b={...a};return delete b.originalName,delete b.apiKeyConfigured,delete b.headersConfigured,Array.isArray(b.models)&&(b.models=b.models.map(ig)),b}class ii extends Error{constructor(a,b){super(`${a} is not valid YAML: ${b}`),this.name="ModelsConfigParseError",this.path=a,this.detail=b}}function ij(a){if(!(0,S.u4)(a.providers))return a;let b=Object.fromEntries(Object.entries(a.providers).map(([a,b])=>{if(!(0,S.u4)(b)||!Array.isArray(b.models))return[a,b];let c=b.models.filter(a=>!(0,S.u4)(a)||"string"!=typeof a.id||a.id.trim().length>0);return[a,{...b,models:c}]}));return{...a,providers:b}}function ik(){let a,b=(0,R.OK)();if(!(0,ao.existsSync)(b))return{path:b,exists:!1,config:{providers:{}}};try{a=(0,ao.readFileSync)(b,"utf8")}catch(a){return{path:b,exists:!0,config:{providers:{}},parseError:String(a)}}let c=(0,aG.Tp)(a);if(c.errors.length>0)return{path:b,exists:!0,source:a,config:{providers:{}},parseError:c.errors[0].message};let d=c.toJS();return null==d?{path:b,exists:!0,source:a,config:{providers:{}}}:(0,S.u4)(d)?{path:b,exists:!0,source:a,config:ij(d)}:{path:b,exists:!0,source:a,config:{providers:{}},parseError:"the top level of models.yml must be a mapping"}}function il(a){return"object"==typeof a&&null!==a&&!Array.isArray(a)}function im(a){return(0,aG.jn)(a)&&("string"==typeof a.value||"number"==typeof a.value)?String(a.value):"string"==typeof a?a:void 0}function io(a,b){if(void 0===b||""===b.trim())return(0,aG.As)(a);let c=(0,aG.Tp)(b);return c.errors.length>0?(0,aG.As)(a):((0,aG.jh)(c.contents)?!function a(b,c,d){if((0,aG.jh)(c)&&il(d)){let e=new Map(Object.entries(d).filter(([,a])=>void 0!==a));for(let[d,f]of(c.items=c.items.filter(a=>{let b=im(a.key);return void 0===b||e.has(b)}),e)){let e=c.items.find(a=>im(a.key)===d);e?e.value=a(b,e.value,f):c.set(b.createNode(d),b.createNode(f))}return c}if((0,aG.oP)(c)&&Array.isArray(d)){let e=[...c.items],f=new Map;for(let a of e){let b=function(a){if(!(0,aG.jh)(a))return;let b=a.get("id");return"string"==typeof b?b:void 0}(a);void 0===b||f.has(b)||f.set(b,a)}return c.items=d.map((c,d)=>{let g,h=il(c)&&"string"==typeof c.id?c.id:void 0;return void 0!==h?void 0!==(g=f.get(h))&&f.delete(h):g=e[d],a(b,g,c)}),c}if((0,aG.jn)(c)&&!il(d)&&!Array.isArray(d)&&typeof c.value==typeof d)return c.value=d,c;let e=b.createNode(d);return c&&e&&"object"==typeof c&&"object"==typeof e&&(null!=c.comment&&(e.comment=c.comment),null!=c.commentBefore&&(e.commentBefore=c.commentBefore),c.spaceBefore&&(e.spaceBefore=c.spaceBefore)),e}(c,c.contents,a):c.contents=c.createNode(a),c.toString())}class ip extends Error{constructor(a,b,c,d){super(b),this.code=a,this.latencyMs=c,this.issues=d,this.name="ModelVerificationError"}}function iq(a){let b="object"!=typeof a||null===a||Array.isArray(a)?{}:a,c="providerName"in b&&"string"==typeof b.providerName?b.providerName.trim():"";if(!c)throw new ip("provider_name_required","providerName is required");if(!("provider"in b)||"object"!=typeof b.provider||null===b.provider||Array.isArray(b.provider))throw new ip("provider_required","provider is required");if(!("model"in b)||"object"!=typeof b.model||null===b.model||Array.isArray(b.model))throw new ip("model_required","model is required");let d="id"in b.model&&"string"==typeof b.model.id?b.model.id.trim():"";if(!d)throw new ip("model_id_required","Model ID is required");let e={providers:{[c]:{...b.provider,models:[{...b.model,id:d}]}}};try{id(e)}catch(a){throw new ip("models_config_invalid",a instanceof h9?a.message:"Invalid models configuration",void 0,a instanceof h9?a.issues:void 0)}return{providerName:c,modelId:d,candidate:e}}async function ir(a){let b=Date.now(),{providerName:c,modelId:d}=iq(a);return{ok:!0,latencyMs:Date.now()-b,responseText:`${c}/${d} has valid configuration (configuration only; no provider connection attempted)`}}async function is(a,b={}){let c,d,e,f;try{c=new URL(a)}catch{throw Error("Invalid model probe endpoint")}if("http:"!==c.protocol&&"https:"!==c.protocol||c.hash)throw Error("Unsupported model probe endpoint");if(b.signal?.aborted)throw Error("Model probe cancelled");try{b.assertActive?.()}catch{throw Error("Model probe cancelled")}let g=`/model-probe-${(0,L.randomBytes)(24).toString("hex")}`,h=a.split("?",1)[0].endsWith("/"),i=new URLSearchParams(c.search);c.search="";let j=c.href.replace(/\/+$/,""),k=new Set,l=new Set,m=!1,n=!1,o=a=>{let b=Promise.withResolvers();k.add(a),l.add(b.promise),a.once("close",()=>{k.delete(a),l.delete(b.promise),b.resolve()}),n&&a.destroy()},p=(0,J.createServer)((a,c)=>{let f=a.url??"",h=f.indexOf("?"),k=h<0?f:f.slice(0,h),l=b.expectedPath;if(m||n||"POST"!==a.method||!(f===g||f.startsWith(`${g}/`)||f.startsWith(`${g}?`))||void 0!==l&&k!==`${g}/${l.replace(/^\/+/,"")}`){c.writeHead(403,{connection:"close"}),c.end(),a.resume();return}try{let h=new URL(j+f.slice(g.length));for(let[a,b]of i)h.searchParams.set(a,b);let k={...a.headers};for(let[a,c]of Object.entries(b.upstreamHeaders??{}))k[a.toLowerCase()]=c;if(k.host=h.host,k.connection="close",b.signal?.aborted||n||(b.authorizeDispatch?.(),b.assertActive?.(),b.signal?.aborted||n))throw Error("Model probe cancelled");m=!0,d=("https:"===h.protocol?K.request:J.request)(h,{method:a.method,headers:k,agent:!1});let l=Promise.withResolvers();e=l.promise,d.once("close",()=>l.resolve()),d.on("socket",o),d.on("error",()=>{c.headersSent?c.destroy():(c.writeHead(502,{connection:"close"}),c.end())}),d.on("response",a=>{if(a.on("error",()=>c.destroy()),a.statusCode&&a.statusCode>=300&&a.statusCode<400){c.writeHead(502,{connection:"close"}),c.end(),a.destroy();return}c.writeHead(a.statusCode??502,a.statusMessage,a.rawHeaders),a.pipe(c),c.once("close",()=>a.destroy())}),a.on("error",()=>d?.destroy()),a.once("aborted",()=>d?.destroy()),c.once("close",()=>d?.destroy()),a.pipe(d)}catch{d?.destroy(),c.writeHead(502,{connection:"close"}),c.end(),a.resume()}});p.on("connection",o),p.on("clientError",(a,b)=>b.destroy());let q=()=>{if(f)return f;n=!0,b.signal?.removeEventListener("abort",r);let a=Promise.withResolvers();for(let b of(f=a.promise,d?.destroy(),k))b.destroy();let c=Promise.withResolvers();return p.close(()=>c.resolve()),Promise.all([c.promise,e,...l]).then(()=>a.resolve()),f},r=()=>{q()},s=Promise.withResolvers();p.once("error",()=>s.reject(Error("Model probe transport unavailable"))),p.listen(0,"127.0.0.1",()=>s.resolve());try{if(await s.promise,b.signal?.addEventListener("abort",r,{once:!0}),b.signal?.aborted)throw Error("Model probe cancelled");b.assertActive?.();let a=p.address();if(!a||"string"==typeof a)throw Error("Model probe transport unavailable");return{baseUrl:`http://127.0.0.1:${a.port}${g}${h?"/":""}`,close:q}}catch{throw await q(),Error("Model probe transport unavailable")}}let it=new Set(["openai-completions","openai-responses","anthropic-messages"]),iu=["ollama","llama.cpp","lm-studio","google-vertex","zenmux","vllm"],iv=new Set(["moonshot","sakana","github-copilot","alibaba-token-plan","alibaba-coding-plan","ollama-cloud"]),iw={disabledProviders:iu,retry:{enabled:!1,maxRetries:0,modelFallback:!1,usageAwareFallback:!1,fallbackChains:{}},advisor:{enabled:!1},autolearn:{enabled:!1,autoContinue:!1},memory:{backend:"off"},memories:{enabled:!1},compaction:{enabled:!1,autoContinue:!1},ttsr:{enabled:!1},features:{unexpectedStopDetection:!1},providers:{anthropic:{serverSideFallback:!1}}};async function ix(a,b={}){var c;let d,e,f,g,h,i;if("object"!=typeof a||null===a||!("confirm"in a)||!0!==a.confirm)throw new ip("connectivity_confirmation_required","Confirm the provider and model connection test and possible charges first");b.assertActive?.();let j=iq(a),{providerName:k,modelId:l}=j,m=structuredClone(j.candidate),n=m.providers[k],o=n.models[0],p=o.api??n.api;if("string"!=typeof p||!it.has(p)||iu.includes(k)||iv.has(k))throw new ip("connectivity_unsupported","Live checks support OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages APIs with isolated endpoint routing. This API or native provider identity is not supported; configuration checks remain available.");let q=[n.apiKey,...Object.values(n.headers??{}),...Object.values(o.headers??{})].filter(a=>"string"==typeof a&&a.length>0);if("oauth"===n.auth||q.some(a=>a.startsWith("!")||/^[A-Z_][A-Z0-9_]*$/.test(a)))throw new ip("connectivity_credential_method_unsupported","Supply literal candidate credentials; saved authentication, environment references, and credential commands are not used");let r=(c=o.baseUrl??n.baseUrl,(i=new URL(c)).pathname=i.pathname.replace(/\/+$/,""),"anthropic-messages"===p&&i.pathname.endsWith("/v1")&&(i.pathname=i.pathname.slice(0,-3)),"openai-completions"===p&&i.hostname.endsWith(".openai.azure.com")&&(i.pathname.includes("/deployments/")||(i.pathname=`${i.pathname.replace(/\/+$/,"")}/deployments/${encodeURIComponent(l)}`),i.searchParams.set("api-version","2024-10-21")),i),s=r.href;for(let a of r.searchParams.values())a&&q.push(a);for(let a of[r.username,r.password])if(a){q.push(a);try{q.push(decodeURIComponent(a))}catch{}}let t={};if(n.apiKey){if("anthropic-messages"===p&&n.apiKey.includes("sk-ant-oat"))throw new ip("connectivity_credential_method_unsupported","OAuth credentials cannot be safely tested in this isolated probe");let a="anthropic-messages"===p?"x-api-key":"authorization";for(let[b,c]of(t[a]="anthropic-messages"===p?n.apiKey:`Bearer ${n.apiKey}`,Object.entries({...n.headers,...o.headers})))b.toLowerCase()===a&&(t[a]=c)}let u=Date.now(),v=new AbortController,w=Promise.withResolvers();w.promise.catch(()=>{});let x=!1,y=Math.min(Math.max(b.timeoutMs??3e4,1),3e4),z=(a,b)=>{w.reject(new ip(a,b,Date.now()-u)),v.abort()},A=()=>z("connectivity_cancelled","Model connection test cancelled");b.signal?.addEventListener("abort",A,{once:!0});let B=setTimeout(()=>z("connectivity_timeout","Model connection test timed out"),y),C=a=>{if(!x)return;if("message_end"===a.type&&"object"==typeof a.message&&null!==a.message&&"role"in a.message&&"assistant"===a.message.role&&((h=a.message).provider!==k||h.model!==l))return void z("connectivity_model_mismatch","The selected provider and model did not produce the completion");if("agent_end"!==a.type||!1===a.isTerminal)return;if(Array.isArray(a.messages)){for(let b of a.messages)if("object"==typeof b&&null!==b&&"role"in b&&"assistant"===b.role){if(b.provider!==k||b.model!==l)return void z("connectivity_model_mismatch","The selected provider and model did not produce the completion");h=b}}if(!h||h.provider!==k||h.model!==l)return void z("connectivity_model_mismatch","The selected provider and model did not produce the completion");if("stop"!==h.stopReason&&"length"!==h.stopReason)return 401===h.errorStatus||403===h.errorStatus?void z("connectivity_auth_required","The provider rejected the submitted credentials; saved authentication is not used"):void z("connectivity_failed","The provider did not complete the connection test successfully");let b="";if(Array.isArray(h.content))for(let a of h.content)"object"==typeof a&&null!==a&&"text"===a.type&&"string"==typeof a.text&&(b+=a.text);if(!b.trim())return void z("connectivity_failed","The provider returned no assistant text");for(let a of q)b=b.replaceAll(a,"[redacted]");let c={};if("object"==typeof h.usage&&null!==h.usage)for(let[a,b]of Object.entries(h.usage))("input"===a||"output"===a||"totalTokens"===a)&&"number"==typeof b&&Number.isFinite(b)&&b>=0&&(c[a]=b);w.resolve({ok:!0,latencyMs:Date.now()-u,responseText:b.slice(0,2048),...Object.keys(c).length?{usage:c}:{}})};try{b.signal?.aborted&&A(),g=(async()=>{if(v.signal.aborted||(f=await is(s,{upstreamHeaders:t,expectedPath:"openai-completions"===p?"/chat/completions":"openai-responses"===p?"/responses":"/v1/messages",assertActive:b.assertActive,authorizeDispatch:()=>{if(b.assertActive?.(),!x)throw new ip("connectivity_failed","The model probe is not ready to dispatch")},signal:v.signal}),b.assertActive?.(),v.signal.aborted))return w.promise;for(let a of(n.baseUrl=f.baseUrl,n.auth="none",delete n.apiKey,["modelOverrides","discovery","transport","remoteCompaction","contextPromotionTarget","compactionModel"]))delete n[a];for(let a of["remoteCompaction","contextPromotionTarget","compactionModel"])delete o[a];o.baseUrl=f.baseUrl,o.maxTokens=Math.max(1,Math.floor(Math.min(o.maxTokens??32,32))),o.reasoning=!1,o.omitMaxOutputTokens=!1,o.compat={...n.compat,...o.compat,alwaysSendMaxTokens:!0},delete o.compat.extraBody,delete o.compat.whenThinking,n.compat=o.compat,d=function(a){let b=(0,O.mkdtempSync)((0,P.join)((0,av.tmpdir)(),"ompgui-model-test-"));try{return(0,O.writeFileSync)((0,P.join)(b,"models.yml"),io(a),{encoding:"utf8",mode:384}),b}catch(a){throw(0,O.rmSync)(b,{recursive:!0,force:!0}),a}}(m);let a=(0,P.join)(d,"probe-settings.json");(0,O.writeFileSync)(a,JSON.stringify(iw),{mode:384});let c={};for(let a of Object.keys(process.env))c[a]="";Object.assign(c,{PATH:process.env.PATH??"",HOME:d,TMPDIR:d,PI_CODING_AGENT_DIR:d,OMP_PROFILE:"",PI_PROFILE:"",XDG_DATA_HOME:d,XDG_CONFIG_HOME:d}),e=(b.createProcess??(a=>new ax.X(a)))({cwd:d,env:c,extraArgs:["--no-session","--no-tools","--no-lsp","--no-pty","--no-extensions","--no-skills","--no-rules","--no-title","--no-prewalk","--provider",k,"--model",l,"--config",a,"--system-prompt","Reply briefly.","--thinking","off"],onFrame:C,onExit:()=>z("connectivity_failed","Model connection process exited before completion")});let g=await e.waitReady(y);if(v.signal.aborted||(await e.negotiateProtocol(g),v.signal.aborted))return w.promise;let h=await e.sendCommand({type:"set_model",provider:k,modelId:l},y);if("object"!=typeof h||null===h||!("provider"in h)||h.provider!==k||!("id"in h)||h.id!==l)throw new ip("connectivity_model_mismatch","The requested provider and model could not be selected",Date.now()-u);return await e.sendCommand({type:"set_auto_retry",enabled:!1},y),await e.sendCommand({type:"set_auto_compaction",enabled:!1},y),b.assertActive?.(),v.signal.aborted||(x=!0,await e.sendCommand({type:"prompt",message:"Reply with OK."},y)),w.promise})();let a=await Promise.race([g,w.promise]);return b.assertActive?.(),a}catch(a){if(a instanceof ip)throw a;throw new ip("connectivity_failed","Model connection test failed; check the submitted endpoint and credentials",Date.now()-u)}finally{clearTimeout(B),b.signal?.removeEventListener("abort",A),v.abort();try{try{await e?.dispose(),await g?.catch(()=>{})}finally{try{await f?.close()}finally{d&&(0,O.rmSync)(d,{recursive:!0,force:!0})}}}catch{throw new ip("connectivity_failed","Model connection cleanup failed",Date.now()-u)}}}let iy={anthropic:["api.anthropic.com"],google:["generativelanguage.googleapis.com"],openai:["api.openai.com"],openrouter:["openrouter.ai"]},iz={text:!0,image:!0};function iA(a){return"string"==typeof a&&a.trim()?a.trim():void 0}function iB(a){return"number"==typeof a&&Number.isFinite(a)&&a>=0?a:void 0}function iC(a){return a.trim().toLocaleLowerCase().replace(/[^a-z0-9]/g,"")}function iD(a){if(a)try{return new URL(a).hostname.toLocaleLowerCase().replace(/\.$/,"")}catch{return}}function iE(a){return void 0!==a.cost.input&&void 0!==a.cost.output}function iF(a,b,c){if(0===a.length||b<=0)return;let d=new Map;for(let b of a){let a=c(b),e=d.get(a);e?e.count+=1:d.set(a,{value:b,count:1})}let e=[...d.values()].sort((a,b)=>b.count-a.count),f=e[0];if(f&&!(f.count/b<.6)&&e[1]?.count!==f.count)return f.value}function iG(a){if(0===a.length)return;let b=new Map;for(let c of a)b.set(c,(b.get(c)??0)+1);let c=[...b.entries()].sort((a,b)=>b[1]-a[1]);if(c[0]&&c[1]?.[1]!==c[0][1])return c[0][0]}function iH(a,b){return{status:"reliable",method:b,cost:{input:a.cost.input,output:a.cost.output,cacheRead:a.cost.cacheRead??0,cacheWrite:a.cost.cacheWrite??0},providerId:a.providerId,providerName:a.providerName,support:1,total:1}}let iI="https://models.dev/api.json";class iJ extends Error{constructor(a,b,c){super(b),this.code=a,this.status=c,this.name="ModelCatalogError"}}async function iK(){let a=await fetch(iI,{cache:"no-store",headers:{Accept:"application/json"},signal:AbortSignal.timeout(15e3)});if(!a.ok)throw Error("Catalog request failed");let b=function(a){if(!(0,S.u4)(a))return[];let b=[];for(let[d,e]of Object.entries(a)){if(!(0,S.u4)(e)||!(0,S.u4)(e.models))continue;let a=iA(e.name)??d,f=iA(e.api);for(let[g,h]of Object.entries(e.models)){var c;if(!(0,S.u4)(h))continue;let e=iA(h.id)??g;if(!e)continue;let i=iA(h.name)??e,j={key:`${d}/${e}`,providerId:d,providerName:a,id:e,name:i,cost:(c=h.cost,(0,S.u4)(c)?{input:iB(c.input),output:iB(c.output),cacheRead:iB(c.cache_read),cacheWrite:iB(c.cache_write)}:{})};f&&(j.providerBaseUrl=f),"boolean"==typeof h.reasoning&&(j.reasoning=h.reasoning);let k=function(a){if(!(0,S.u4)(a)||!Array.isArray(a.input))return;let b=Array.from(new Set(a.input.filter(a=>"string"==typeof a).map(a=>a.trim().toLocaleLowerCase()).filter(a=>!0===iz[a])));return b.length?b:void 0}(h.modalities);if(k&&(j.input=k),(0,S.u4)(h.limit)){let a=h.limit.context,b=h.limit.output;"number"==typeof a&&Number.isFinite(a)&&a>0&&(j.contextWindow=a),"number"==typeof b&&Number.isFinite(b)&&b>0&&(j.maxTokens=b)}b.push(j)}}return b}(await a.json());if(0===b.length)throw Error("Catalog is empty");return b}async function iL(){let a=globalThis.__ompguiModelsDevCatalogCache;if(a||(a=globalThis.__ompguiModelsDevCatalogCache={entries:[],expiresAt:0}),a.entries.length>0&&a.expiresAt>Date.now())return a.entries;a.inFlight||(a.inFlight=iK().then(b=>(a.entries=b,a.expiresAt=Date.now()+36e5,b)).finally(()=>{a.inFlight=void 0}));try{return await a.inFlight}catch{if(a.entries.length>0)return a.entries;throw new iJ("catalog_unavailable","The public model catalog is unavailable. Try again later.",502)}}async function iM(a){let{query:b,provider:c="",baseUrl:d="",limit:e=50}=a;if("string"!=typeof b||b.length>120)throw new iJ("invalid_args","query must be a string of at most 120 characters",400);if("string"!=typeof c||c.length>120)throw new iJ("invalid_args","provider must be a string of at most 120 characters",400);if("string"!=typeof d||d.length>500)throw new iJ("invalid_args","baseUrl must be a string of at most 500 characters",400);if("number"!=typeof e||!Number.isInteger(e)||e<1||e>100)throw new iJ("invalid_args","limit must be an integer between 1 and 100",400);let f=await iL();return{models:function(a,b,c="",d=50){let e=b.trim().toLocaleLowerCase(),f=c.trim().toLocaleLowerCase(),g=Math.max(1,Math.min(100,Math.floor(d)||50));return a.map(a=>{let b,c,d,g,h,i;return{entry:a,rank:(b=a.id.toLocaleLowerCase(),c=a.name.toLocaleLowerCase(),d=a.providerId.toLocaleLowerCase(),g=a.providerName.toLocaleLowerCase(),h=`${d}/${b}`,i=20,e?b===e||h===e?i=0:c===e?i=1:b.startsWith(e)||c.startsWith(e)?i=2:h.startsWith(e)||d===e||g===e?i=3:b.includes(e)||c.includes(e)?i=4:(h.includes(e)||g.includes(e))&&(i=5):i=10,i<20&&f&&(d===f||g===f)&&(i-=.5),i)}}).filter(({rank:a})=>!e||a<20).sort((a,b)=>a.rank-b.rank||a.entry.providerName.localeCompare(b.entry.providerName,void 0,{sensitivity:"base"})||a.entry.name.localeCompare(b.entry.name,void 0,{numeric:!0,sensitivity:"base"})||a.entry.id.localeCompare(b.entry.id,void 0,{numeric:!0,sensitivity:"base"})).slice(0,g).map(({entry:a})=>a)}(f,b,c,e),recommendation:function(a,b,c="",d=""){let e,f=a.filter(a=>(function(a,b){let c=b.trim().toLocaleLowerCase().replace(/^models\//,"");if(!c)return!1;let d=a.id.trim().toLocaleLowerCase().replace(/^models\//,""),e=`${a.providerId.toLocaleLowerCase()}/${d}`;return d===c||e===c})(a,b));if(0===f.length)return{exactMatches:0,metadataMethod:"none",preset:{},price:{status:"unreliable",reason:"no-exact-match",support:0,total:0}};let g=f.filter(a=>{let b;return!!(b=iC(c))&&(iC(a.providerId)===b||iC(a.providerName)===b)}),h=f.filter(a=>(function(a,b){let c=iD(b);if(!c)return!1;let d=iy[iC(a.providerId)]??[],e=iD(a.providerBaseUrl);return[...d,...e?[e]:[]].some(a=>c===a||c.endsWith(`.${a}`))})(a,d)),i=g[0]??h[0],j=g.length?"provider":h.length?"base-url":"consensus",k=i?{name:i.name,reasoning:i.reasoning,input:i.input,contextWindow:i.contextWindow,maxTokens:i.maxTokens}:(e=f.length,{name:iF(f.map(a=>a.name),e,a=>a.toLocaleLowerCase()),reasoning:iF(f.flatMap(a=>void 0===a.reasoning?[]:[a.reasoning]),e,String),input:iF(f.flatMap(a=>a.input?[a.input]:[]),e,a=>[...a].sort().join(",")),contextWindow:iF(f.flatMap(a=>void 0===a.contextWindow?[]:[a.contextWindow]),e,String),maxTokens:iF(f.flatMap(a=>void 0===a.maxTokens?[]:[a.maxTokens]),e,String)}),l=g.find(iE),m=h.find(iE),n=l?iH(l,"provider"):m?iH(m,"base-url"):function(a){let b=a.filter(iE);if(0===b.length)return{status:"unreliable",reason:"no-valid-price",support:0,total:0};if(1===b.length)return{status:"unreliable",reason:"insufficient-support",support:1,total:1};let c=new Map;for(let a of b){let b=JSON.stringify([a.cost.input,a.cost.output]),d=c.get(b);d?d.push(a):c.set(b,[a])}let d=[...c.values()].sort((a,b)=>b.length-a.length),e=d[0];if(!e)return{status:"unreliable",reason:"no-valid-price",support:0,total:b.length};let f=e.length/b.length>=.6||e.length>=5;if(d[1]?.length===e.length||!f)return{status:"unreliable",reason:"conflict",support:e.length,total:b.length};let g=iG(e.map(a=>a.cost.cacheRead??0))??0,h=iG(e.map(a=>a.cost.cacheWrite??0))??0;return{status:"reliable",method:"consensus",cost:{input:e[0].cost.input,output:e[0].cost.output,cacheRead:g,cacheWrite:h},support:e.length,total:b.length}}(f);return"reliable"===n.status&&(k.cost=n.cost),{exactMatches:f.length,metadataMethod:j,matchedProviderId:i?.providerId,matchedProviderName:i?.providerName,preset:k,price:n}}(f,b,c,d),source:iI}}let iN=new Set(["off","minimal","low","medium","high","xhigh","max"]);function iO(a,b){let c=a.toLocaleLowerCase(),d=b.filter(a=>`${a.provider}/${a.id}`.toLocaleLowerCase()===c);return d.length>0?d:b.filter(a=>a.id.toLocaleLowerCase()===c)}function iP(a,b){if(Array.isArray(a))for(let d of a){var c;if("string"!=typeof d)continue;let a=d.trim();if(!a||(c=a).includes("*")||c.includes("?")||c.includes("["))continue;let e=iO(a,b),f=a.lastIndexOf(":"),g=f>=0?a.slice(f+1):"";if(0===e.length&&f>=0&&iN.has(g)&&(e=iO(a.slice(0,f),b)),e.length<=1)continue;let h=e.map(a=>`${a.provider}/${a.id}`).sort().join(", ");throw Error(`Ambiguous enabledModels entry "${a}" matches multiple models: ${h}. Use provider/modelId.`)}}function iQ(a){let b=(0,R.pA)();if(!(0,ao.existsSync)(b))return;let c=(0,aG.Tp)((0,ao.readFileSync)(b,"utf8"));if(c.errors.length>0)throw Error(`${b} is not valid YAML: ${c.errors[0].message}`);if(!(0,aG.jh)(c.contents))throw Error(`${b} must contain a YAML mapping`);let d=c.toJS(),e=(0,S.u4)(d)&&Array.isArray(d.disabledProviders)?d.disabledProviders.filter(a=>"string"==typeof a):[],f=e.filter(b=>b!==a);f.length!==e.length&&(c.set("disabledProviders",f),aF(b,c.toString()))}var iR=c(52676);let iS=["catalog.get","catalog.search","roles.get","roles.set","registry.get","registry.set","providers.enable","providers.get","providers.update","providers.validate","providers.test","providers.connectivity","fallback.get","fallback.set","auth.providers","auth.login.start","auth.login.poll","auth.login.confirm","auth.login.cancel","auth.apikey.get","auth.apikey.set","auth.apikey.remove","auth.logout"];class iT extends Error{constructor(a,b,c,d){super(b),this.name="ModelsRequestError",this.code=a,void 0!==c&&(this.details=c),void 0!==d&&(this.status=d)}}let iU=["--no-session","--no-extensions","--no-skills","--no-lsp"],iV="ompgui cannot manage stored API keys. Run `omp` in a terminal and use /login (or /logout), set the provider's environment variable (e.g. OPENAI_API_KEY), or configure an apiKey on a custom provider in ~/.omp/agent/models.yml.";function iW(a,b="provider"){let c=("string"==typeof a?a:void 0)?.trim();if(!c||c.length>128||/\s/.test(c))throw new iT("invalid_provider",`${b} must be a non-empty id without whitespace`);return c}function iX(a){let b=("string"==typeof a?a:void 0)?.trim();if(!b||b.length>320)throw new iT("login_token_required","token is required");return b}function iY(a,b){if(void 0===a)return;if(!Array.isArray(a))throw new iT("invalid_args",`${b} must contain non-empty strings`);let c=[];for(let d of a){if("string"!=typeof d||!d.trim())throw new iT("invalid_args",`${b} must contain non-empty strings`);c.push(d)}return c}function iZ(a){try{return Buffer.byteLength(JSON.stringify(a),"utf8")}catch{throw new iT("invalid_args","config must be JSON-serializable")}}function i$(a){return a instanceof h9?new iT(h8,"Invalid models configuration",{issues:a.issues}):new iT(h8,"Invalid models configuration")}let i_=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function i0(a){return a.reasoning?["off",...a.thinking?.efforts??[]]:["off"]}function i1(a){return"object"==typeof a&&null!==a&&"id"in a&&"string"==typeof a.id&&"provider"in a&&"string"==typeof a.provider}function i2(a){return"object"==typeof a&&null!==a&&"id"in a&&"string"==typeof a.id&&"name"in a&&"string"==typeof a.name&&"authenticated"in a&&"boolean"==typeof a.authenticated}function i3(a){let b="name"in a&&"string"==typeof a.name&&a.name.trim().length>0?a.name:a.id,c={id:a.id,provider:a.provider,name:b};if("reasoning"in a&&"boolean"==typeof a.reasoning&&(c.reasoning=a.reasoning),"thinking"in a){let b=a.thinking;if("object"==typeof b&&null!==b&&!Array.isArray(b)){let a="efforts"in b&&Array.isArray(b.efforts)&&b.efforts.every(a=>"string"==typeof a)?b.efforts:void 0;void 0!==a&&(c.thinking={efforts:a})}}return"contextWindow"in a&&"number"==typeof a.contextWindow&&(c.contextWindow=a.contextWindow),c}async function i4(){let a,b;try{let b=await (0,iR.runUtilityCommand)({type:"get_available_models"},12e4);a=Array.isArray(b.models)?b.models.filter(i1).map(i3):[]}catch{return{models:[],defaultModel:null,connectedProviders:[],unavailable:!0}}let c=[];try{let a=await (0,iR.runUtilityCommand)({type:"get_login_providers"},3e4);c=Array.isArray(a.providers)?a.providers.filter(i2).map(a=>({id:a.id,name:a.name,available:!("available"in a)||"boolean"!=typeof a.available||a.available,authenticated:a.authenticated})):[]}catch{c=[]}try{b=function(){let a=(0,R.pA)();if(!(0,ao.existsSync)(a))return new Set;let b=(0,aG.Tp)((0,ao.readFileSync)(a,"utf8"));if(b.errors.length>0)throw Error(`${a} is not valid YAML: ${b.errors[0].message}`);let c=b.toJS();return(0,S.u4)(c)&&Array.isArray(c.disabledProviders)?new Set(c.disabledProviders.filter(a=>"string"==typeof a)):new Set}()}catch{b=new Set}let d={};for(let b of a)d[`${b.provider}:${b.id}`]=i0(b);let e=a.map(a=>({id:a.id,name:a.name,provider:a.provider,thinkingLevels:i0(a),supportsFastMode:"anthropic"===a.provider||"openai"===a.provider||"google"===a.provider,..."number"==typeof a.contextWindow&&Number.isFinite(a.contextWindow)&&a.contextWindow>0?{contextWindow:a.contextWindow}:{}})).sort((a,b)=>i_.compare(a.name||a.id,b.name||b.id)||i_.compare(a.provider,b.provider)||i_.compare(a.id,b.id)),f=c.filter(a=>a.authenticated).map(a=>({id:a.id,name:a.name,disabled:b.has(a.id)})),g=null;try{let b=await (0,iR.runUtilityCommand)({type:"get_state"},3e4),c=b.model?.provider,d=b.model?.id;c&&d&&a.some(a=>a.provider===c&&a.id===d)&&(g={provider:c,modelId:d})}catch{}return{models:e,defaultModel:g,thinkingLevels:d,connectedProviders:f}}function i5(a){let b={};return void 0!==a.enabledModels&&(b.enabledModels=a.enabledModels),void 0!==a.disabledProviders&&(b.disabledProviders=a.disabledProviders),void 0!==a.modelProviderOrder&&(b.modelProviderOrder=a.modelProviderOrder),void 0!==a.registryHasScopedEntries&&(b.registryHasScopedEntries=a.registryHasScopedEntries),b}async function i6(a){let b={},c=iY(a.enabledModels,"enabledModels"),d=iY(a.disabledProviders,"disabledProviders"),e=iY(a.modelProviderOrder,"modelProviderOrder");if(void 0!==c&&(b.enabledModels=c),void 0!==d&&(b.disabledProviders=d),void 0!==e&&(b.modelProviderOrder=e),void 0===b.enabledModels&&void 0===b.disabledProviders&&void 0===b.modelProviderOrder)throw new iT("invalid_args","registry.set requires at least one of enabledModels, disabledProviders, modelProviderOrder");if(void 0!==c&&c.length>0)try{let a=await (0,iR.runUtilityCommand)({type:"get_available_models"},12e4);Array.isArray(a.models)&&iP(c,a.models.filter(i1))}catch(a){if(a instanceof Error&&a.message.startsWith("Ambiguous enabledModels entry"))throw a}try{let a=a_(),c=aZ(a.settings,b);a0(c)}catch(a){throw new iT("registry_write_failed",a instanceof Error?a.message:String(a))}aD(),(0,iR.j)();let f=a_();return{settings:i5(f.settings),path:f.path}}function i7(a){let b=a.config;if(!("object"==typeof b&&null!==b&&!Array.isArray(b)))throw new iT(h8,"Invalid models configuration",{issues:[{path:"",message:"must be an object"}]});return b}async function i8(a){try{return await ir(a)}catch(a){if(!(a instanceof ip))throw a;if("models_config_invalid"===a.code)throw new iT(h8,"Invalid models configuration",a.issues?{issues:a.issues}:void 0);throw new iT("invalid_args","model_id_required"===a.code?"model.id is required":a.message)}}function i9(a){let b=a.retry??{},c={chains:b.fallbackChains??{}};return void 0!==b.enabled&&(c.enabled=b.enabled),void 0!==b.maxRetries&&(c.maxRetries=b.maxRetries),void 0!==b.modelFallback&&(c.modelFallback=b.modelFallback),void 0!==b.fallbackRevertPolicy&&(c.revertPolicy=b.fallbackRevertPolicy),c}async function ja(){try{let a=await (0,iR.runUtilityCommand)({type:"get_login_providers"},3e4);return{providers:(Array.isArray(a.providers)?a.providers.filter(i2).filter(a=>!("available"in a)||!1!==a.available):[]).map(a=>({id:a.id,name:a.name,loggedIn:a.authenticated}))}}catch(a){throw new iT("auth_failed",a instanceof Error?a.message:String(a))}}async function jb(a){let b=iW(a);try{let{models:a}=await (0,iR.runUtilityCommand)({type:"get_available_models"},12e4),{providers:c}=await (0,iR.runUtilityCommand)({type:"get_login_providers"},3e4),d=c.find(a=>a.id===b),e=a.filter(a=>a.provider===b).length;return{provider:b,displayName:d?.name??b,configured:e>0||d?.authenticated===!0,models:e}}catch(a){throw new iT("auth_failed",a instanceof Error?a.message:String(a))}}let jc=new Map;function jd(){let a=Date.now();for(let[b,c]of jc)if(a-c.createdAt>9e5){try{c.proc?.dispose()}catch{}jc.delete(b)}}async function je(a){let b=a.proc;if(!b){a.phase="error",a.error="Login process is unavailable";return}try{let c=await b.waitReady(6e4);await b.negotiateProtocol(c),await b.sendCommand({type:"login",providerId:a.provider},9e5),iQ(a.provider),aD(),(0,iR.j)(),a.phase="success"}catch(b){a.phase="error",a.error=b instanceof Error?b.message:String(b)}finally{try{await b.dispose()}catch{}a.proc=null,a.pendingInputId=null}}function jf(a){let b=a?.deviceId;if("string"!=typeof b||!b)throw new iT("unauthorized","device is required");return b}function jg(a,b,c){jd();let d=jc.get(a);if(!d)throw new iT("login_no_pending","No pending login for token");if(d.provider!==b)throw new iT("login_token_mismatch","Token does not match provider");if(d.deviceId!==c)throw new iT("login_device_mismatch","Login belongs to another device");return d}async function jh(a,b){let c=iW(a.provider),d=iX(a.token),e=jg(d,c,jf(b));jc.delete(d);try{await e.proc?.dispose()}catch{}return{cancelled:!0,provider:c}}async function ji(a,b){jc.delete(b);try{await a.proc?.dispose()}catch{}}async function jj(a){let b=0;for(let[c,d]of[...jc])d.deviceId===a&&(await ji(d,c),b+=1);return b}async function jk(a,b,c){if("object"!=typeof b||null===b||Array.isArray(b))throw new iT("invalid_args","args must be an object");if("object"!=typeof c||null===c)throw new iT("unauthorized","device is required");switch(function(a){for(let b of iS)if(b===a)return b;throw new iT("unknown_action",`Unknown models action "${a}"`)}(a)){case"catalog.get":return i4();case"catalog.search":try{return{...await iM({query:b.query,provider:b.provider,baseUrl:b.baseUrl,limit:b.limit})}}catch(a){if(a instanceof iJ)throw new iT(a.code,a.message,void 0,a.status);throw new iT("catalog_unavailable","The public model catalog is unavailable. Try again later.",void 0,502)}case"roles.get":try{let a=function(){let a=(0,R.pA)();if(!(0,ao.existsSync)(a))return{path:a,roles:{}};let b=(0,aG.Tp)((0,ao.readFileSync)(a,"utf8"));if(b.errors.length>0)throw Error(`${a} is not valid YAML: ${b.errors[0].message}`);let c=b.toJS();return(0,S.u4)(c)&&(0,S.u4)(c.modelRoles)?{path:a,roles:Object.fromEntries(Object.entries(c.modelRoles).filter(a=>"string"==typeof a[1]))}:{path:a,roles:{}}}();return{path:a.path,roles:a.roles}}catch(a){throw new iT("roles_read_failed",a instanceof Error?a.message:String(a))}case"roles.set":return function(a){if("object"!=typeof a.roles||null===a.roles||Array.isArray(a.roles))throw new iT("invalid_args","roles must be an object");let b={};for(let[c,d]of Object.entries(a.roles)){if("string"!=typeof d)continue;let a=c.trim(),e=d.trim();0===a.length||a.length>128||0===e.length||e.length>512||(b[a]=e)}try{let a=(0,R.pA)(),c=(0,ao.existsSync)(a)?(0,ao.readFileSync)(a,"utf8"):"",d=(0,aG.Tp)(c);if(d.errors.length>0)throw Error(`${a} is not valid YAML: ${d.errors[0].message}`);if((0,ao.mkdirSync)((0,aq.dirname)(a),{recursive:!0}),null===d.contents)aF(a,(0,aG.As)({modelRoles:b}));else{if(!(0,aG.jh)(d.contents))throw Error(`${a} must contain a YAML mapping`);d.set("modelRoles",b),aF(a,d.toString())}}catch(a){throw new iT("roles_write_failed",a instanceof Error?a.message:String(a))}return aD(),{roles:b}}(b);case"registry.get":try{let a=a_();return{path:a.path,settings:i5(a.settings)}}catch(a){throw new iT("registry_read_failed",a instanceof Error?a.message:String(a))}case"registry.set":return i6(b);case"providers.enable":{let a=iW(b.provider);try{iQ(a)}catch(a){throw new iT("provider_enable_failed",a instanceof Error?a.message:String(a))}return aD(),(0,iR.j)(),{provider:a}}case"providers.get":let d;return(d=ik()).parseError?{providers:{},parseError:"models.yml contains invalid YAML; fix it by hand and reload",path:d.path,exists:d.exists,code:"models_config_unparseable"}:{...function(a){let b={...a,providers:{}};for(let[c,d]of Object.entries(a.providers??{})){if(!(0,S.u4)(d)){b.providers[c]=d;continue}let a={...d},e="string"==typeof d.apiKey&&d.apiKey.length>0,f=(0,S.u4)(d.headers)&&Object.keys(d.headers).length>0;delete a.apiKey,delete a.headers,a.originalName=c,Array.isArray(d.models)&&(a.models=d.models.map(a=>{if(!(0,S.u4)(a))return a;let b={...a};return delete b.headers,"string"==typeof a.id?b.originalId=a.id:delete b.originalId,b})),a.apiKeyConfigured=e,a.headersConfigured=f,b.providers[c]=a}return b}(d.config),path:d.path,exists:d.exists};case"providers.update":return function(a){let b,c=i7(a);if(iZ(c)>524288)throw new iT("config_too_large","models configuration exceeds 512KiB");let d=void 0===a.mode||"partial"===a.mode?"partial":"full"===a.mode?"full":null;if(null===d)throw new iT("invalid_args","mode must be full or partial");let e=void 0!==a.overwrite&&!0===a.overwrite;if(void 0!==a.overwrite&&"boolean"!=typeof a.overwrite)throw new iT("invalid_args","overwrite must be a boolean");let f=ik();try{b=function(a,b,c){if("full"!==c&&"partial"!==c)throw new h9([{path:"mode",message:"must be full or partial"}]);let d="full"===c?{...b,providers:{}}:{...a,...b,providers:{}},e=(0,S.u4)(a.providers)?a.providers:{},f=ie(b,"providers"),g=f?b.providers:void 0;if(f&&!(0,S.u4)(g))return d.providers=g,d;if(!f&&"partial"===c)return d.providers=Object.fromEntries(Object.entries(e).map(([a,b])=>[a,ih(b)])),(0,S.u4)(a.providers)||(d.providers=a.providers),d;let h=(0,S.u4)(g)?Object.entries(g):[],i=[],j=[],k=new Map;for(let[a,b]of h){let d,f=`providers.${a}`;if((0,S.u4)(b)&&ie(b,"originalName")){let a=b.originalName;"string"!=typeof a?ia(i,`${f}.originalName`,"must be a string identifying an existing provider"):ie(e,a)?d=a:ia(i,`${f}.originalName`,"must identify a provider in the current configuration")}else ie(e,a)&&(d=a);if(void 0!==d){let b=k.get(d);void 0!==b?ia(i,`${f}.originalName`,`duplicates the provider identity used by providers.${b}`):k.set(d,a),"partial"===c&&d!==a&&ie(e,a)&&ia(i,f,"rename conflicts with an existing provider; choose an unused name")}j.push({targetName:a,incoming:b,sourceName:d,previous:void 0!==d&&(0,S.u4)(e[d])?e[d]:void 0})}let l="partial"===c?Object.fromEntries(Object.entries(e).map(([a,b])=>[a,ih(b)])):{};for(let{targetName:a,incoming:b,sourceName:d,previous:e}of j){if(!(0,S.u4)(b)){"partial"===c&&void 0!==d&&d!==a&&delete l[d],l[a]=b;continue}"partial"===c&&void 0!==d&&d!==a&&delete l[d];let f=e?ih(e):{},g={..."partial"===c?f:{},...b};ie(b,"apiKey")&&void 0!==b.apiKey?null===b.apiKey?delete g.apiKey:g.apiKey=b.apiKey:e&&ie(e,"apiKey")?g.apiKey=e.apiKey:delete g.apiKey,ie(b,"headers")&&void 0!==b.headers?null===b.headers?delete g.headers:g.headers=b.headers:e&&ie(e,"headers")?g.headers=e.headers:delete g.headers,Array.isArray(b.models)?g.models=function(a,b,c,d,e){let f=Array.isArray(a)?a:[],g=new Map,h=new Set;for(let a of f)(0,S.u4)(a)&&"string"==typeof a.id&&(h.has(a.id)||(g.has(a.id)?(g.delete(a.id),h.add(a.id)):g.set(a.id,a)));let i=new Map,j=new Map;return b.map((a,b)=>{let f,k=`${d}[${b}]`;if(!(0,S.u4)(a))return a;if(ie(a,"originalId")){let b=a.originalId;"string"!=typeof b?ia(e,`${k}.originalId`,"must be a string identifying an existing model"):h.has(b)?ia(e,`${k}.originalId`,"must identify exactly one existing model"):g.has(b)?f=b:ia(e,`${k}.originalId`,"must identify an existing model in the current configuration")}else"string"==typeof a.id&&(h.has(a.id)?ia(e,`${k}.id`,"matches multiple existing models; supply originalId"):g.has(a.id)&&(f=a.id));let l=void 0===f?void 0:g.get(f);if(void 0!==f){let c=i.get(f);void 0!==c?ia(e,ie(a,"originalId")?`${k}.originalId`:`${k}.id`,`duplicates the existing model identified at index ${c}`):i.set(f,b)}let m={..."partial"===c&&l?ig(l):{},...a};if(delete m.originalId,ie(a,"headers")&&void 0!==a.headers?null===a.headers?delete m.headers:m.headers=a.headers:l&&ie(l,"headers")?m.headers=l.headers:void 0===m.headers&&delete m.headers,"string"==typeof m.id){let a=j.get(m.id);void 0!==a?ia(e,`${k}.id`,`duplicates the model id at index ${a}`):j.set(m.id,b)}return m})}(e?.models,b.models,c,`providers.${a}.models`,i):"full"!==c||ie(b,"models")&&void 0!==b.models?"partial"===c&&ie(b,"models")&&void 0===b.models&&(e&&ie(e,"models")?g.models=f.models:delete g.models):delete g.models,l[a]=ih(g)}if(i.length>0)throw new h9(i);return d.providers=l,d}(f.config,c,d),id(b)}catch(a){throw i$(a)}try{!function(a,b={}){let c=ik();if(c.parseError&&!b.overwriteUnparseable)throw new ii(c.path,c.parseError);let d=io(ij(a),c.parseError?void 0:c.source),e=(0,aq.dirname)(c.path);(0,ao.existsSync)(e)||(0,ao.mkdirSync)(e,{recursive:!0}),aF(c.path,d)}(b,{overwriteUnparseable:e})}catch(a){if(a instanceof ii)throw new iT("models_config_unparseable","models.yml is not valid YAML — fix it by hand; ompgui will not overwrite it");throw new iT("models_config_write_failed",a instanceof Error?a.message:String(a))}return aD(),(0,iR.j)(),{success:!0,path:f.path}}(b);case"providers.validate":let e=i7(b);if(iZ(e)>524288)throw new iT("config_too_large","models configuration exceeds 512KiB");try{id(e)}catch(a){throw i$(a)}return{ok:!0};case"providers.test":return i8(b);case"providers.connectivity":if(!0!==b.confirm)throw new iT("connectivity_confirmation_required","Explicit confirmation is required for a live connectivity check");if(iZ(b)>524288)throw new iT("config_too_large","models configuration exceeds 512KiB");if("function"!=typeof c.assertActive)throw new iT("unauthorized","Active device authorization is required");try{c.assertActive();let a=await ix(b,{assertActive:()=>{if("function"!=typeof c.assertActive)throw new ip("connectivity_cancelled","Connectivity request authorization expired");c.assertActive()},signal:c.signal});return c.assertActive(),{ok:a.ok,latencyMs:a.latencyMs,responseText:a.responseText,...a.usage?{usage:a.usage}:{}}}catch(a){if(a instanceof ip)throw new iT(a.code,"models_config_invalid"===a.code?"Invalid models configuration":a.message,void 0===a.latencyMs?void 0:{latencyMs:a.latencyMs});throw new iT("connectivity_failed","Model connectivity check failed")}case"fallback.get":try{let a=a_();return i9(a.settings)}catch(a){throw new iT("fallback_read_failed",a instanceof Error?a.message:String(a))}case"fallback.set":return function(a){let b={},c=!1;if(void 0!==a.chains){if("object"!=typeof a.chains||null===a.chains||Array.isArray(a.chains))throw new iT("invalid_args","chains must be an object");let d={};for(let[b,c]of Object.entries(a.chains)){if(!b.trim()||!Array.isArray(c)||c.some(a=>"string"!=typeof a||!a.trim()))throw new iT("invalid_args","fallback chains require non-empty role and model selectors");let a=[];for(let b of c)"string"==typeof b&&a.push(b);d[b]=a}b.fallbackChains=d,c=!0}if(void 0!==a.enabled){if("boolean"!=typeof a.enabled)throw new iT("invalid_args","enabled must be a boolean");b.enabled=a.enabled,c=!0}if(void 0!==a.maxRetries){if("number"!=typeof a.maxRetries||!Number.isInteger(a.maxRetries)||a.maxRetries<0||a.maxRetries>20)throw new iT("invalid_args","maxRetries must be an integer between 0 and 20");b.maxRetries=a.maxRetries,c=!0}if(void 0!==a.modelFallback){if("boolean"!=typeof a.modelFallback)throw new iT("invalid_args","modelFallback must be a boolean");b.modelFallback=a.modelFallback,c=!0}if(void 0!==a.revertPolicy){if("cooldown-expiry"!==a.revertPolicy&&"never"!==a.revertPolicy)throw new iT("invalid_args","revertPolicy must be cooldown-expiry or never");b.fallbackRevertPolicy=a.revertPolicy,c=!0}if(!c)throw new iT("invalid_args","fallback.set requires at least one of chains, enabled, maxRetries, modelFallback, revertPolicy");try{let a=a_(),c=aZ(a.settings,{retry:b});return a0(c),{retry:i9(c)}}catch(a){if(a instanceof iT)throw a;throw new iT("fallback_write_failed",a instanceof Error?a.message:String(a))}}(b);case"auth.providers":return ja();case"auth.login.start":return function(a,b){let c=iW(a),d=jf(b);if(jd(),jc.size>=32)throw new iT("auth_busy","Too many pending logins; cancel one and retry");let e=`${c}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,f={provider:c,deviceId:d,proc:null,createdAt:Date.now(),phase:"waiting",pendingInputId:null,bufferedValue:null};try{let a=new ax.X({cwd:(0,aC.homedir)(),extraArgs:iU,onFrame:a=>{if("extension_ui_request"!==a.type)return;let b=a.method;if("open_url"===b)f.phase="auth",f.url=String(a.url??""),f.instructions="string"==typeof a.instructions?a.instructions:null;else if("input"===b){let b=String(a.id);if(null!==f.bufferedValue){let a=f.bufferedValue;f.bufferedValue=null,f.proc?.sendFrame({type:"extension_ui_response",id:b,value:a})}else f.pendingInputId=b,f.phase="prompt",f.message="string"==typeof a.title&&a.title?a.title:"Enter the authorization code",f.placeholder="string"==typeof a.placeholder?a.placeholder:null}else"notify"===b?("string"==typeof a.message&&(f.message=a.message),"waiting"===f.phase&&(f.phase="progress")):"cancel"===b&&null!==f.pendingInputId&&a.targetId===f.pendingInputId&&(f.pendingInputId=null,"prompt"===f.phase&&(f.phase=f.url?"auth":"waiting"))}});f.proc=a}catch(a){throw new iT("auth_failed",a instanceof Error?a.message:String(a))}return jc.set(e,f),je(f),{provider:c,token:e}}(b.provider,c);case"auth.login.poll":let f,g,h,i;return f=iW(b.provider),h=jg(g=iX(b.token),f,jf(c)),i={provider:h.provider,phase:h.phase,token:g},void 0!==h.url&&(i.url=h.url),void 0!==h.instructions&&null!==h.instructions&&(i.instructions=h.instructions),void 0!==h.message&&(i.message=h.message),void 0!==h.placeholder&&null!==h.placeholder&&(i.placeholder=h.placeholder),void 0!==h.error&&(i.error=h.error),i;case"auth.login.confirm":let j=iW(b.provider),k=jg(iX(b.token),j,jf(c));if("success"===k.phase||"error"===k.phase||"cancelled"===k.phase)throw new iT("login_not_pending","Login is no longer pending");let l="string"==typeof b.code?b.code:void 0;if(!l||!l.trim()||l.length>4096)throw new iT("login_code_required","code is required");if(null!==k.pendingInputId&&k.proc){let a=k.pendingInputId;return k.pendingInputId=null,k.proc.sendFrame({type:"extension_ui_response",id:a,value:l}),{ok:!0,buffered:!1}}return k.bufferedValue=l,{ok:!0,buffered:!0};case"auth.login.cancel":return jh(b,c);case"auth.apikey.get":return jb(b.provider);case"auth.apikey.set":throw new iT("api_key_store_unsupported",`Cannot store an API key for "${iW(b.provider)}" from ompgui. ${iV}`,void 0,501);case"auth.apikey.remove":throw new iT("api_key_remove_unsupported",`Cannot remove the API key for "${iW(b.provider)}" from ompgui. ${iV}`,void 0,501);case"auth.logout":throw new iT("logout_unsupported",`ompgui cannot disconnect "${iW(b.provider)}": omp exposes no logout command outside its own UI. ompgui cannot disconnect this provider: omp exposes no logout command outside its own UI. Run \`omp\` in a terminal and use /logout to remove the credential.`,void 0,501)}}let jl=/\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*(?:\x07|\x1B\\))/g,jm=/\x1B_pi:c\x07/g;function jn(a){return a.replace(jm,"").replace(jl,"")}let jo=/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/,jp=[(0,aq.join)(".omp","mcp.json"),(0,aq.join)(".omp",".mcp.json"),"mcp.json",".mcp.json"];function jq(a){if(!(0,ao.existsSync)(a))return{path:a,servers:[],disabledServers:[]};try{if((0,ao.statSync)(a).size>5242880)throw Error("configuration is too large to inspect");let b=JSON.parse((0,ao.readFileSync)(a,"utf8"));if(!(0,S.u4)(b))throw Error("configuration must contain a JSON object");if(void 0!==b.mcpServers&&!(0,S.u4)(b.mcpServers))throw Error("mcpServers must be an object");return{path:a,servers:Object.entries(b.mcpServers??{}).sort(([a],[b])=>a.localeCompare(b)).map(([a,b])=>({name:a,config:b})),disabledServers:Array.isArray(b.disabledServers)?b.disabledServers.filter(a=>"string"==typeof a).sort((a,b)=>a.localeCompare(b)):[]}}catch(b){return{path:a,servers:[],disabledServers:[],error:b instanceof Error?b.message:String(b)}}}function jr(a){let b=new Set([(0,aq.join)(a,".claude.json"),(0,aq.join)(a,"mcp.json"),(0,aq.join)(a,".mcp.json")]);try{for(let c of(0,ao.readdirSync)(a,{withFileTypes:!0})){if(!c.isDirectory()||!c.name.startsWith("."))continue;let d=(0,aq.join)(a,c.name);b.add((0,aq.join)(d,"mcp.json")),b.add((0,aq.join)(d,"config.json")),b.add((0,aq.join)(d,"config.toml"))}}catch{}return[...b].filter(b=>{try{return(0,ao.existsSync)(b)&&(0,ak.o4)((0,ao.realpathSync)(b),new Set([(0,ao.realpathSync)(a)]))}catch{return!1}})}function js(a,b){if(!(0,S.u4)(a)||Object.values(a).some(a=>"string"!=typeof a))throw Error(`${b} must map strings to strings`)}function jt(a){let b=(0,ao.realpathSync)(function(a){try{return(0,aq.resolve)((0,bT.execFileSync)("git",["-C",a,"rev-parse","--show-toplevel"],{encoding:"utf8",windowsHide:!0,stdio:["ignore","pipe","ignore"]}).trim())}catch{return(0,aq.resolve)(a)}}(a)),c=new Set([b]);if(!(0,ak.o4)((0,ao.realpathSync)(a),c))throw Error("Project root does not contain workspace");let d=jp.map(a=>(0,aq.join)(b,a)),e=d.find(ao.existsSync)??d[0],f=(0,ak.SW)(e);if(!(0,ak.o4)(f,c))throw Error("Access denied to MCP configuration outside project root");return{root:b,path:f}}function ju(a){let b,c=jt(a);if(!(0,ao.existsSync)(c.path))return{...c,config:{mcpServers:{}},exists:!1};if((0,ao.statSync)(c.path).size>524288)throw Error("MCP configuration is too large to edit in ompgui");try{b=JSON.parse((0,ao.readFileSync)(c.path,"utf8"))}catch{throw Error(`${c.path} is not valid JSON`)}if(!(0,S.u4)(b))throw Error(`${c.path} must contain a JSON object`);if(void 0!==b.mcpServers&&!(0,S.u4)(b.mcpServers))throw Error("mcpServers must be an object");return{...c,config:b,exists:!0}}function jv(a,b){if("string"!=typeof a||!jo.test(a))throw Error("Server name may contain letters, numbers, dots, dashes, and underscores");if(!(0,S.u4)(b))throw Error("Server configuration must be an object");let c=b.type;if(void 0!==c&&"stdio"!==c&&"http"!==c&&"sse"!==c)throw Error("Server type must be stdio, http, or sse");let d="string"==typeof b.command&&b.command.trim().length>0,e="string"==typeof b.url&&b.url.trim().length>0;if(d===e)throw Error("Provide exactly one of command or url");if((void 0===c||"stdio"===c)&&!d)throw Error("A stdio server requires a command");if(("http"===c||"sse"===c)&&!e)throw Error("An HTTP or SSE server requires a URL");if(e)try{let a=new URL(b.url);if("http:"!==a.protocol&&"https:"!==a.protocol)throw Error()}catch{throw Error("Server URL must be an http or https URL")}if(void 0!==b.args&&(!Array.isArray(b.args)||b.args.some(a=>"string"!=typeof a)))throw Error("args must be an array of strings");if(void 0!==b.env&&js(b.env,"env"),void 0!==b.headers&&js(b.headers,"headers"),void 0!==b.cwd&&"string"!=typeof b.cwd)throw Error("cwd must be a string");if(void 0!==b.enabled&&"boolean"!=typeof b.enabled)throw Error("enabled must be a boolean");if(void 0!==b.timeout&&(!Number.isInteger(b.timeout)||b.timeout<0||b.timeout>6e5))throw Error("timeout must be an integer between 0 and 600000");if(void 0!==b.requestIdFormat&&"number"!==b.requestIdFormat&&"string"!==b.requestIdFormat)throw Error("requestIdFormat must be number or string")}function jw(a,b){let c=`${a}.lock`,d=Date.now()+3e3;for((0,ao.mkdirSync)((0,aq.dirname)(c),{recursive:!0});;){let a=null;try{a=(0,ao.openSync)(c,"wx")}catch(a){if("EEXIST"!==a.code)throw a;try{if(Date.now()-(0,ao.statSync)(c).mtimeMs>1e4){(0,ao.unlinkSync)(c);continue}}catch{continue}if(Date.now()>=d)throw Error(`Timed out waiting for ${c} (another process holds the MCP config lock)`);!function(){let a=new SharedArrayBuffer(4);Atomics.wait(new Int32Array(a),0,0,25)}();continue}try{try{(0,ao.writeSync)(a,String(process.pid))}finally{(0,ao.closeSync)(a)}return b()}finally{try{(0,ao.unlinkSync)(c)}catch{}}}}class jx extends Error{constructor(a){super(`MCP server "${a}" already exists`),this.name="McpServerConflictError"}}var jy=c(19771);let jz=(0,bU.promisify)(bT.execFile);async function jA(a,b={}){let c=function(){let a=(0,aq.dirname)(jy.execPath);for(let b of[(0,aq.join)(a,"node_modules","npm","bin","npx-cli.js"),(0,aq.join)(a,"..","lib","node_modules","npm","bin","npx-cli.js")])try{if((0,ao.existsSync)(b))return b}catch{}return null}(),{command:d,commandArgs:e}=c?{command:jy.execPath,commandArgs:[c,...a]}:{command:"npx",commandArgs:a};return jz(d,e,{timeout:b.timeout,cwd:b.cwd,env:b.env})}function jB(a){return"string"==typeof a&&/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a)}let jC={task:{description:"General-purpose subagent with full capabilities for delegated multi-step tasks",model:"@task",thinkingLevel:"auto",spawns:["*"],tools:["read","write","edit","bash"],systemPrompt:"General-purpose coding agent with full capabilities. Implement requested changes carefully and verify them before finishing."},scout:{description:"MUST be used for exploratory codebase research, rapid code analysis, and broad pattern searches. Fast read-only scout returning compressed context for handoff.",model:"@smol",thinkingLevel:"medium",tools:["read","grep","glob","web_search"],systemPrompt:"Explore the codebase and return concise, evidence-backed findings. Do not modify files."},reviewer:{description:"Code review specialist for quality/security analysis",model:"@slow",spawns:["scout"],tools:["read","grep","glob","bash","lsp","web_search","ast_grep"],systemPrompt:"Review code for correctness, security, maintainability, and regressions with concrete findings."},"security-reviewer":{description:"Read-only security specialist for evidence-backed repository vulnerability discovery",model:"@slow",tools:["read","grep","glob","lsp","ast_grep"],systemPrompt:"Discover potential security vulnerabilities and return concrete evidence and remediation guidance."},librarian:{description:"Researches external libraries and APIs by reading source code. Returns definitive, source-verified answers.",model:"@smol",thinkingLevel:"minimal",tools:["read","grep","glob","bash","lsp","web_search","ast_grep"],systemPrompt:"Research library APIs and source documentation; provide definitive, source-verified answers."},designer:{description:"UI/UX specialist for design implementation, review, visual refinement",model:"@designer",tools:["read","write","edit"],systemPrompt:"Design and implement polished, accessible user interfaces following project conventions."},sonic:{description:"Low-reasoning agent for strictly mechanical updates or data collection only",model:"@smol",thinkingLevel:"medium",tools:["read","write","edit"],systemPrompt:"Perform strictly mechanical updates and data collection accurately with minimal overhead."}};function jD(a,b,c){let d=a.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/),e=d?d[1]:"",f=d?a.slice(d[0].length):a,g=(0,aG.Tp)(e);if(g.errors.length>0)throw Error(`YAML parse error in ${b}: ${g.errors[0].message}`);let h=g.toJS(),i=h&&"object"==typeof h&&!Array.isArray(h)?h:{},j=String(i.name||ar().basename(b,".md"));if(!jB(j))throw Error(`Invalid agent identifier "${j}" in ${b}`);return{...i,name:j,description:String(i.description||""),tools:Array.isArray(i.tools)?i.tools.map(String):void 0,model:"string"==typeof i.model||Array.isArray(i.model)?i.model:void 0,prewalk:"boolean"==typeof i.prewalk||"string"==typeof i.prewalk?i.prewalk:void 0,advisor:"boolean"==typeof i.advisor||"string"==typeof i.advisor?i.advisor:void 0,thinkingLevel:"string"==typeof i.thinkingLevel?i.thinkingLevel:void 0,blocking:"boolean"==typeof i.blocking?i.blocking:void 0,systemPrompt:String(i.systemPrompt??f.trim()),source:c,filePath:b,isShadowed:!1}}async function jE(a,b,c){try{let d=await ao.promises.readdir(a,{withFileTypes:!0}),e=[];for(let f of d)if(f.isFile()&&f.name.endsWith(".md")){let d=ar().join(a,f.name);try{let a=await ao.promises.readFile(d,"utf8");e.push(jD(a,d,b))}catch(a){c.push({path:d,error:a instanceof Error?a.message:String(a)})}}return e}catch(b){return"ENOENT"!==(b&&"object"==typeof b&&"code"in b?b.code:void 0)&&c.push({path:a,error:b instanceof Error?b.message:String(b)}),[]}}function jF(a){let b=ar().resolve(a);for(;;){let a=ar().join(b,".omp","agents"),c=ar().join(b,".omp");if((0,ao.existsSync)(a)||(0,ao.existsSync)(c)){if(!(0,ak.o4)((0,ak.SW)(a),new Set([(0,ak.SW)(b)])))throw Error(`Access denied to project agents directory: ${a}`);return a}let d=ar().dirname(b);if(d===b)return null;b=d}}function jG(){return ar().join((0,R.$M)(),"agents")}async function jH(a=process.cwd()){let b=[],c=jF(a),d=jG(),e=[];for(let a of(c&&e.push({dir:c,source:"project"}),e.push({dir:d,source:"user"}),(process.env.OMP_EXTENSION_DIRS||"").split(ar().delimiter).filter(Boolean)))e.push({dir:ar().join(a,"agents"),source:"extension"});let f=[];for(let{dir:a,source:c}of e){let d=await jE(a,c,b);f.push(...d)}for(let[a,b]of Object.entries(jC))f.push({name:a,model:b.model,thinkingLevel:b.thinkingLevel,spawns:b.spawns,description:b.description||"",tools:b.tools,systemPrompt:b.systemPrompt||"",source:"bundled",isShadowed:!1});let g=new Set,h=[],i={};try{i=a_().settings.task||{}}catch{}let j=i.agentModelOverrides||{},k=i.agentPrewalk||{},l=i.agentAdvisor||{},m=new Set(Array.isArray(i.disabledAgents)?i.disabledAgents:[]);for(let a of f){let b=!g.has(a.name);g.add(a.name),a.isShadowed=!b,b&&(a.name in j&&(a.overrideModel=j[a.name]),a.name in k&&(a.prewalkOverride=k[a.name]),a.name in l&&(a.advisorOverride=l[a.name]),m.has(a.name)&&(a.disabled=!0),h.push(a))}return{agents:h,projectRoot:c?ar().dirname(ar().dirname(c)):void 0,...b.length>0?{diagnostics:b}:{}}}async function jI(a){let b,c;if("user"===a.scope)c=(0,ak.SW)((0,R.$M)()),b=jG();else{let d=a.cwd||process.cwd(),e=await am();if(!an(d,e))throw Error(`Access denied to project path: ${d}`);if(b=jF(d)||ar().join(ar().resolve(d),".omp","agents"),!an(c=await ao.promises.realpath(ar().dirname(ar().dirname(b))),e))throw Error(`Access denied to project root: ${c}`)}let d=(0,ak.SW)(b);if(!(0,ak.o4)(d,new Set([c])))throw Error(`Access denied to agents directory: ${b}`);return d}async function jJ(a){if(!jB(a.name))throw Error(`Invalid agent identifier: "${a.name}"`);let b=await jI(a),c=(0,ak.SW)(ar().join(b,`${a.name}.md`));if(!(0,ak.o4)(c,new Set([b])))throw Error(`Access denied to target agent file: ${c}`);return await ao.promises.mkdir(b,{recursive:!0}),c}function jK(a){let b={name:a.name,description:a.description};for(let[c,d]of(a.tools&&a.tools.length>0&&(b.tools=a.tools),void 0!==a.model&&(b.model=a.model),void 0!==a.thinkingLevel&&(b.thinkingLevel=a.thinkingLevel),void 0!==a.prewalk&&(b.prewalk=a.prewalk),void 0!==a.advisor&&(b.advisor=a.advisor),Object.entries(a)))"name"===c||"description"===c||"tools"===c||"model"===c||"thinkingLevel"===c||"prewalk"===c||"advisor"===c||"systemPrompt"===c||["scope","cwd","source","filePath","isShadowed","overrideModel","prewalkOverride","advisorOverride","disabled"].includes(c)||void 0===d||(b[c]=d);let c=(0,aG.As)(b).trim(),d=(a.systemPrompt||"").trim();return`---
68
68
  ${c}
69
69
  ---
70
70
 
71
71
  ${d}
72
- `}async function jM(a){let b=await jK(a);if((0,ao.existsSync)(b))throw Error(`Agent "${a.name}" already exists in ${a.scope} scope`);return aF(b,jL(a)),b}async function jN(a){let b=await jK(a);if(!(0,ao.existsSync)(b))throw Error(`Agent "${a.name}" not found in ${a.scope} scope`);let c=jE(await ao.promises.readFile(b,"utf8"),b,a.scope);return aF(b,jL({...c,name:a.name,description:a.description??c.description,tools:a.tools??c.tools,model:a.model??c.model,thinkingLevel:a.thinkingLevel??c.thinkingLevel,blocking:a.blocking??c.blocking,prewalk:a.prewalk??c.prewalk,advisor:a.advisor??c.advisor,systemPrompt:a.systemPrompt??c.systemPrompt})),b}async function jO(a){let b=await jK(a);if(!(0,ao.existsSync)(b))throw Error(`Agent "${a.name}" not found in ${a.scope} scope`);await ao.promises.unlink(b)}async function jP(a){let b=await jJ(a);await ao.promises.mkdir(b,{recursive:!0});let c=0;for(let[d,e]of Object.entries(jD)){let f=ar().join(b,`${d}.md`);!(!a.force&&(0,ao.existsSync)(f))&&(aF(f,jL({name:d,model:e.model,thinkingLevel:e.thinkingLevel,spawns:e.spawns,description:e.description||"",tools:e.tools,systemPrompt:e.systemPrompt||""})),c++)}return{targetDir:b,count:c}}function jQ(a){try{let b=JSON.parse((0,ao.readFileSync)(a,"utf8"));return b.skills&&"object"==typeof b.skills?b.skills:{}}catch{return{}}}function jR(a,b){let c=(0,aq.relative)((0,aq.resolve)(b),(0,aq.resolve)(a));return""!==c&&".."!==c&&!c.startsWith(`..${aq.sep}`)&&!(0,aq.isAbsolute)(c)}function jS(a,b,c){var d;let e=function(a,b){if(a[b])return a[b];let c=b.toLowerCase(),d=Object.keys(a).find(a=>a.toLowerCase()===c);return d?a[d]:void 0}(a,b);if(!e||"string"!=typeof e.source||!e.source.trim())return;let f="string"==typeof e.sourceType?e.sourceType:void 0,g=(d=e.source.trim(),"github"!==f?d.replace(/\/$/,""):d.replace(/^git\+/,"").replace(/^https?:\/\/github\.com\//,"").replace(/^git@github\.com:/,"").replace(/\.git$/,"").replace(/\/$/,""));if(!g)return;let h="string"==typeof e.skillPath?e.skillPath:void 0,i="string"==typeof e.ref?e.ref:void 0,j="global"===c?e.skillFolderHash:e.computedHash,k="string"==typeof j&&j?j:void 0,l="github"===f&&/^[\w.-]+\/[\w.-]+$/.test(g);return{package:`${g}@${b}`,scope:c,source:g,sourceType:f,skillsShUrl:"local"===f?void 0:function(a,b){if(!a||a.includes("://")||a.startsWith("git@"))return;let c=a.split("/").filter(Boolean).map(encodeURIComponent).join("/");if(c)return`https://skills.sh/${c}/${encodeURIComponent(b)}`}(g,b),...h&&{skillPath:h},...i&&{ref:i},...k&&{versionHash:k},canCheckForUpdates:!!(l&&h&&k&&("global"===c||!i))}}function jT(a){let b=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/.exec(a);if(!b)return{frontmatter:{},body:a};try{let c=(0,aG.qg)(b[1]);return{frontmatter:c&&"object"==typeof c&&!Array.isArray(c)?c:{},body:a.slice(b[0].length)}}catch{return{frontmatter:{},body:a.slice(b[0].length)}}}function jU(a){let b=(0,aC.homedir)(),c=(0,R.$M)(),d=function(a){let b=(0,aC.homedir)(),c=[],d=aq.resolve(a);for(;c.push(d),!(0,ao.existsSync)(aq.join(d,".git"))&&d!==b;){let a=aq.dirname(d);if(a===d)break;d=a}return c}(a),e=d.filter(a=>a!==b),f=[];for(let a of e)f.push({dir:aq.join(a,".omp","skills"),source:".omp",scope:"project",requireDescription:!0});f.push({dir:aq.join(c,"skills"),source:".omp",scope:"user",requireDescription:!0});let g=process.env.CLAUDE_CONFIG_DIR||aq.join(b,".claude");for(let a of(f.push({dir:aq.join(g,"skills"),source:".claude",scope:"user"}),e))f.push({dir:aq.join(a,".claude","skills"),source:".claude",scope:"project"});for(let a of e)f.push({dir:aq.join(a,".agent","skills"),source:".agents",scope:"project"}),f.push({dir:aq.join(a,".agents","skills"),source:".agents",scope:"project"});f.push({dir:aq.join(b,".agent","skills"),source:".agents",scope:"user"}),f.push({dir:aq.join(b,".agents","skills"),source:".agents",scope:"user"}),f.push({dir:aq.join(b,".codex","skills"),source:".codex",scope:"user"}),f.push({dir:aq.join(a,".codex","skills"),source:".codex",scope:"project"});let h=d[d.length-1];return f.push({dir:aq.join(h,".github","skills"),source:".github",scope:"project",requireDescription:!0}),f.push({dir:aq.join(c,"managed-skills"),source:"managed",scope:"user",requireDescription:!0}),f}function jV(a){return jU(a??(0,aC.homedir)()).map(a=>a.dir)}let jW=["disable-model-invocation","disableModelInvocation","hide"],jX=jW[0];function jY(a){return jW.some(b=>{var c;return!0===(c=a[b])||"true"===c})}let jZ=/^---\r?\n([\s\S]*?)\r?\n---(\r?\n|$)/,j$=RegExp(`^(?:${jW.join("|")})[ \\t]*:.*$`);async function j_(a,b){let c;try{let b=Reflect.get(ao.promises,"readdir");c=await b(a.dir,{withFileTypes:!0})}catch(c){return"ENOENT"!==c.code&&b.push({type:"warning",message:`Failed to read skills directory: ${String(c)}`,path:a.dir}),[]}let d=[];return await Promise.all(c.map(async c=>{let e;if(c.name.startsWith(".")||!c.isDirectory()&&!c.isSymbolicLink())return;let f=aq.join(a.dir,c.name,"SKILL.md");try{e=await ao.promises.readFile(f,"utf8")}catch(a){"ENOENT"!==a.code&&b.push({type:"warning",message:"Failed to read skill file",path:f});return}let{frontmatter:g}=jT(e);if(!1===g.enabled)return;let h="string"==typeof g.description?g.description:"";if(a.requireDescription&&!h)return;let i=g.name,j="string"==typeof i&&i.trim()?i.trim():c.name;d.push({name:j,description:h,filePath:f,baseDir:aq.join(a.dir,c.name),disableModelInvocation:jY(g),sourceInfo:{source:a.source,scope:a.scope}})})),d}async function j0(a){let b=[],c=new Map;for(let d of jU(a))for(let a of(await j_(d,b)))c.has(a.name)||c.set(a.name,a);return{skills:[...c.values()].sort((a,b)=>{let c=a.name.toLowerCase().localeCompare(b.name.toLowerCase());return 0!==c?c:a.filePath.localeCompare(b.filePath)}),diagnostics:b}}async function j1(a){let{skills:b,diagnostics:c}=await j0(a);return{skills:function(a,{cwd:b,agentDir:c,globalLockPath:d=function(a={}){let b=a.homeDir??(0,aC.homedir)(),c=a.xdgStateHome??(void 0===a.homeDir?process.env.XDG_STATE_HOME:void 0);return c?(0,aq.join)(c,"skills",".skill-lock.json"):(0,aq.join)(b,".agents",".skill-lock.json")}(),projectLockPath:e=(0,aq.join)(b,"skills-lock.json")}){let f=jQ(d),g=jQ(e),h=[(0,aq.join)(c,"skills"),(0,aq.join)((0,aC.homedir)(),".agents","skills")],i=[(0,aq.join)(b,".omp","skills"),(0,aq.join)(b,".agents","skills")];return a.map(a=>{if(!(0,ao.existsSync)(a.filePath))return a;let b=h.some(b=>jR(a.filePath,b))?jS(f,a.name,"global"):i.some(b=>jR(a.filePath,b))?jS(g,a.name,"project"):void 0;return b?{...a,install:b}:a})}(b,{cwd:a,agentDir:(0,R.$M)()}),diagnostics:c}}var j2=c(79748);let j3=process.env.SKILLS_API_URL||"https://skills.sh",j4=(0,bU.promisify)(bT.execFile);class j5 extends Error{constructor(a){super(`HTTP ${a}`),this.status=a}}function j6(a){let b=a.lastIndexOf("@");return b>=0?a.slice(b+1):a}function j7(a){let b=a.replace(/\\/g,"/");return b.toLowerCase().endsWith("/skill.md")?b=b.slice(0,-9):b.toLowerCase().endsWith("skill.md")&&(b=b.slice(0,-8)),b.replace(/\/$/,"")}function j8(a,b,c,d){return{package:a.package,scope:a.scope,state:b,currentVersion:a.versionHash,latestVersion:c,message:d}}async function j9(a,b,c){let d=await b(a,{cache:"no-store",headers:c,signal:AbortSignal.timeout(15e3)});if(!d.ok)throw new j5(d.status);return d.json()}async function ka(a){let b=`https://github.com/${a.source}.git`,c=a.ref||"HEAD",d=j7(a.skillPath),e=await (0,j2.mkdtemp)((0,aq.join)((0,aC.tmpdir)(),"omp-web-skill-check-"));try{await j4("git",["init","--bare",e],{timeout:3e4}),await j4("git",[`--git-dir=${e}`,"fetch","--depth=1","--filter=blob:none","--no-tags",b,c],{timeout:3e4});let a=d?`FETCH_HEAD:${d}`:"FETCH_HEAD^{tree}",{stdout:f}=await j4("git",[`--git-dir=${e}`,"rev-parse",a],{timeout:3e4}),g=f.trim();if(!/^[0-9a-f]{40}$/i.test(g))throw Error("Invalid Git tree hash");return g}finally{await (0,j2.rm)(e,{recursive:!0,force:!0})}}async function kb(a,b){let c,d=a.ref||"HEAD",e=`https://api.github.com/repos/${a.source}/git/trees/${encodeURIComponent(d)}?recursive=1`,f={Accept:"application/vnd.github.v3+json","User-Agent":"omp-web"};b.githubToken&&(f.Authorization=`Bearer ${b.githubToken}`);let g=j7(a.skillPath);try{let a=await j9(e,b.fetcher,f);if(c="string"!=typeof a.sha||g?void 0:a.sha,g&&Array.isArray(a.tree)){let b=a.tree.find(a=>"tree"===a.type&&a.path===g);b&&"string"==typeof b.sha&&(c=b.sha)}}catch(d){if(!(d instanceof j5)||![401,403,429].includes(d.status))throw d;c=await b.resolveGitTreeHash(a)}return c?j8(a,c===a.versionHash?"up-to-date":"update-available",c):j8(a,"error",void 0,"Remote skill path was not found.")}async function kc(a,b){let[c,d]=a.source.split("/"),e=j6(a.package).toLowerCase().replace(/[\s_]+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,""),f=`${b.skillsApiBase}/api/download/${encodeURIComponent(c)}/${encodeURIComponent(d)}/${encodeURIComponent(e)}`,g=await j9(f,b.fetcher),h="string"==typeof g.hash?g.hash:void 0;return h?j8(a,h===a.versionHash?"up-to-date":"update-available",h):j8(a,"error",void 0,"skills.sh did not return a version hash.")}async function kd(a,b={}){if(!a.canCheckForUpdates||!a.versionHash||!a.skillPath)return j8(a,"unsupported",void 0,"This lock entry cannot be checked automatically.");let c={...b,fetcher:b.fetcher??fetch,skillsApiBase:b.skillsApiBase??j3,resolveGitTreeHash:b.resolveGitTreeHash??ka};try{return"global"===a.scope?await kb(a,c):await kc(a,c)}catch(b){return j8(a,"error",void 0,b instanceof Error?b.message:String(b))}}async function ke(a,b={}){let c=b.fetcher??fetch,d=new Map,e=async(a,b)=>{let e=d.get(a);return e||(e=c(a,b),d.set(a,e)),(await e).clone()};return Promise.all(a.map(a=>kd(a,{...b,fetcher:e})))}async function kf(a){let b=a.trim();if(!an(b,await am()))throw new bG("access_denied","Path is outside allowed workspaces");return b}async function kg(a){let b=await kf(a),c=(await j1(b)).skills.map(a=>({name:a.name,description:a.description,filePath:a.filePath,disableModelInvocation:a.disableModelInvocation,...a.sourceInfo.scope?{scope:a.sourceInfo.scope}:{}}));return{cwd:b,skills:c}}async function kh(a,b,c){let d=await kf(a);if("SKILL.md"!==(0,P.basename)(b))throw new bG("not_a_skill_file","not a SKILL.md file");if(!(0,O.existsSync)(b))throw new bG("file_not_found","file not found");let e=new Set(await am());for(let a of jV(d))e.add(a);let f=(0,O.realpathSync)(b);if(!an(f,e))throw new bG("access_denied","Path is outside allowed workspaces");let g=(0,O.readFileSync)(f,"utf8"),h=function(a,b){let c,d=jZ.exec(a);if(!d)return b?`---
73
- ${jX}: true
72
+ `}async function jL(a){let b=await jJ(a);if((0,ao.existsSync)(b))throw Error(`Agent "${a.name}" already exists in ${a.scope} scope`);return aF(b,jK(a)),b}async function jM(a){let b=await jJ(a);if(!(0,ao.existsSync)(b))throw Error(`Agent "${a.name}" not found in ${a.scope} scope`);let c=jD(await ao.promises.readFile(b,"utf8"),b,a.scope);return aF(b,jK({...c,name:a.name,description:a.description??c.description,tools:a.tools??c.tools,model:a.model??c.model,thinkingLevel:a.thinkingLevel??c.thinkingLevel,blocking:a.blocking??c.blocking,prewalk:a.prewalk??c.prewalk,advisor:a.advisor??c.advisor,systemPrompt:a.systemPrompt??c.systemPrompt})),b}async function jN(a){let b=await jJ(a);if(!(0,ao.existsSync)(b))throw Error(`Agent "${a.name}" not found in ${a.scope} scope`);await ao.promises.unlink(b)}async function jO(a){let b=await jI(a);await ao.promises.mkdir(b,{recursive:!0});let c=0;for(let[d,e]of Object.entries(jC)){let f=ar().join(b,`${d}.md`);!(!a.force&&(0,ao.existsSync)(f))&&(aF(f,jK({name:d,model:e.model,thinkingLevel:e.thinkingLevel,spawns:e.spawns,description:e.description||"",tools:e.tools,systemPrompt:e.systemPrompt||""})),c++)}return{targetDir:b,count:c}}function jP(a){try{let b=JSON.parse((0,ao.readFileSync)(a,"utf8"));return b.skills&&"object"==typeof b.skills?b.skills:{}}catch{return{}}}function jQ(a,b){let c=(0,aq.relative)((0,aq.resolve)(b),(0,aq.resolve)(a));return""!==c&&".."!==c&&!c.startsWith(`..${aq.sep}`)&&!(0,aq.isAbsolute)(c)}function jR(a,b,c){var d;let e=function(a,b){if(a[b])return a[b];let c=b.toLowerCase(),d=Object.keys(a).find(a=>a.toLowerCase()===c);return d?a[d]:void 0}(a,b);if(!e||"string"!=typeof e.source||!e.source.trim())return;let f="string"==typeof e.sourceType?e.sourceType:void 0,g=(d=e.source.trim(),"github"!==f?d.replace(/\/$/,""):d.replace(/^git\+/,"").replace(/^https?:\/\/github\.com\//,"").replace(/^git@github\.com:/,"").replace(/\.git$/,"").replace(/\/$/,""));if(!g)return;let h="string"==typeof e.skillPath?e.skillPath:void 0,i="string"==typeof e.ref?e.ref:void 0,j="global"===c?e.skillFolderHash:e.computedHash,k="string"==typeof j&&j?j:void 0,l="github"===f&&/^[\w.-]+\/[\w.-]+$/.test(g);return{package:`${g}@${b}`,scope:c,source:g,sourceType:f,skillsShUrl:"local"===f?void 0:function(a,b){if(!a||a.includes("://")||a.startsWith("git@"))return;let c=a.split("/").filter(Boolean).map(encodeURIComponent).join("/");if(c)return`https://skills.sh/${c}/${encodeURIComponent(b)}`}(g,b),...h&&{skillPath:h},...i&&{ref:i},...k&&{versionHash:k},canCheckForUpdates:!!(l&&h&&k&&("global"===c||!i))}}function jS(a){let b=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/.exec(a);if(!b)return{frontmatter:{},body:a};try{let c=(0,aG.qg)(b[1]);return{frontmatter:c&&"object"==typeof c&&!Array.isArray(c)?c:{},body:a.slice(b[0].length)}}catch{return{frontmatter:{},body:a.slice(b[0].length)}}}function jT(a){let b=(0,aC.homedir)(),c=(0,R.$M)(),d=function(a){let b=(0,aC.homedir)(),c=[],d=aq.resolve(a);for(;c.push(d),!(0,ao.existsSync)(aq.join(d,".git"))&&d!==b;){let a=aq.dirname(d);if(a===d)break;d=a}return c}(a),e=d.filter(a=>a!==b),f=[];for(let a of e)f.push({dir:aq.join(a,".omp","skills"),source:".omp",scope:"project",requireDescription:!0});f.push({dir:aq.join(c,"skills"),source:".omp",scope:"user",requireDescription:!0});let g=process.env.CLAUDE_CONFIG_DIR||aq.join(b,".claude");for(let a of(f.push({dir:aq.join(g,"skills"),source:".claude",scope:"user"}),e))f.push({dir:aq.join(a,".claude","skills"),source:".claude",scope:"project"});for(let a of e)f.push({dir:aq.join(a,".agent","skills"),source:".agents",scope:"project"}),f.push({dir:aq.join(a,".agents","skills"),source:".agents",scope:"project"});f.push({dir:aq.join(b,".agent","skills"),source:".agents",scope:"user"}),f.push({dir:aq.join(b,".agents","skills"),source:".agents",scope:"user"}),f.push({dir:aq.join(b,".codex","skills"),source:".codex",scope:"user"}),f.push({dir:aq.join(a,".codex","skills"),source:".codex",scope:"project"});let h=d[d.length-1];return f.push({dir:aq.join(h,".github","skills"),source:".github",scope:"project",requireDescription:!0}),f.push({dir:aq.join(c,"managed-skills"),source:"managed",scope:"user",requireDescription:!0}),f}function jU(a){return jT(a??(0,aC.homedir)()).map(a=>a.dir)}let jV=["disable-model-invocation","disableModelInvocation","hide"],jW=jV[0];function jX(a){return jV.some(b=>{var c;return!0===(c=a[b])||"true"===c})}let jY=/^---\r?\n([\s\S]*?)\r?\n---(\r?\n|$)/,jZ=RegExp(`^(?:${jV.join("|")})[ \\t]*:.*$`);async function j$(a,b){let c;try{let b=Reflect.get(ao.promises,"readdir");c=await b(a.dir,{withFileTypes:!0})}catch(c){return"ENOENT"!==c.code&&b.push({type:"warning",message:`Failed to read skills directory: ${String(c)}`,path:a.dir}),[]}let d=[];return await Promise.all(c.map(async c=>{let e;if(c.name.startsWith(".")||!c.isDirectory()&&!c.isSymbolicLink())return;let f=aq.join(a.dir,c.name,"SKILL.md");try{e=await ao.promises.readFile(f,"utf8")}catch(a){"ENOENT"!==a.code&&b.push({type:"warning",message:"Failed to read skill file",path:f});return}let{frontmatter:g}=jS(e);if(!1===g.enabled)return;let h="string"==typeof g.description?g.description:"";if(a.requireDescription&&!h)return;let i=g.name,j="string"==typeof i&&i.trim()?i.trim():c.name;d.push({name:j,description:h,filePath:f,baseDir:aq.join(a.dir,c.name),disableModelInvocation:jX(g),sourceInfo:{source:a.source,scope:a.scope}})})),d}async function j_(a){let b=[],c=new Map;for(let d of jT(a))for(let a of(await j$(d,b)))c.has(a.name)||c.set(a.name,a);return{skills:[...c.values()].sort((a,b)=>{let c=a.name.toLowerCase().localeCompare(b.name.toLowerCase());return 0!==c?c:a.filePath.localeCompare(b.filePath)}),diagnostics:b}}async function j0(a){let{skills:b,diagnostics:c}=await j_(a);return{skills:function(a,{cwd:b,agentDir:c,globalLockPath:d=function(a={}){let b=a.homeDir??(0,aC.homedir)(),c=a.xdgStateHome??(void 0===a.homeDir?process.env.XDG_STATE_HOME:void 0);return c?(0,aq.join)(c,"skills",".skill-lock.json"):(0,aq.join)(b,".agents",".skill-lock.json")}(),projectLockPath:e=(0,aq.join)(b,"skills-lock.json")}){let f=jP(d),g=jP(e),h=[(0,aq.join)(c,"skills"),(0,aq.join)((0,aC.homedir)(),".agents","skills")],i=[(0,aq.join)(b,".omp","skills"),(0,aq.join)(b,".agents","skills")];return a.map(a=>{if(!(0,ao.existsSync)(a.filePath))return a;let b=h.some(b=>jQ(a.filePath,b))?jR(f,a.name,"global"):i.some(b=>jQ(a.filePath,b))?jR(g,a.name,"project"):void 0;return b?{...a,install:b}:a})}(b,{cwd:a,agentDir:(0,R.$M)()}),diagnostics:c}}var j1=c(79748);let j2=process.env.SKILLS_API_URL||"https://skills.sh",j3=(0,bU.promisify)(bT.execFile);class j4 extends Error{constructor(a){super(`HTTP ${a}`),this.status=a}}function j5(a){let b=a.lastIndexOf("@");return b>=0?a.slice(b+1):a}function j6(a){let b=a.replace(/\\/g,"/");return b.toLowerCase().endsWith("/skill.md")?b=b.slice(0,-9):b.toLowerCase().endsWith("skill.md")&&(b=b.slice(0,-8)),b.replace(/\/$/,"")}function j7(a,b,c,d){return{package:a.package,scope:a.scope,state:b,currentVersion:a.versionHash,latestVersion:c,message:d}}async function j8(a,b,c){let d=await b(a,{cache:"no-store",headers:c,signal:AbortSignal.timeout(15e3)});if(!d.ok)throw new j4(d.status);return d.json()}async function j9(a){let b=`https://github.com/${a.source}.git`,c=a.ref||"HEAD",d=j6(a.skillPath),e=await (0,j1.mkdtemp)((0,aq.join)((0,aC.tmpdir)(),"omp-web-skill-check-"));try{await j3("git",["init","--bare",e],{timeout:3e4}),await j3("git",[`--git-dir=${e}`,"fetch","--depth=1","--filter=blob:none","--no-tags",b,c],{timeout:3e4});let a=d?`FETCH_HEAD:${d}`:"FETCH_HEAD^{tree}",{stdout:f}=await j3("git",[`--git-dir=${e}`,"rev-parse",a],{timeout:3e4}),g=f.trim();if(!/^[0-9a-f]{40}$/i.test(g))throw Error("Invalid Git tree hash");return g}finally{await (0,j1.rm)(e,{recursive:!0,force:!0})}}async function ka(a,b){let c,d=a.ref||"HEAD",e=`https://api.github.com/repos/${a.source}/git/trees/${encodeURIComponent(d)}?recursive=1`,f={Accept:"application/vnd.github.v3+json","User-Agent":"omp-web"};b.githubToken&&(f.Authorization=`Bearer ${b.githubToken}`);let g=j6(a.skillPath);try{let a=await j8(e,b.fetcher,f);if(c="string"!=typeof a.sha||g?void 0:a.sha,g&&Array.isArray(a.tree)){let b=a.tree.find(a=>"tree"===a.type&&a.path===g);b&&"string"==typeof b.sha&&(c=b.sha)}}catch(d){if(!(d instanceof j4)||![401,403,429].includes(d.status))throw d;c=await b.resolveGitTreeHash(a)}return c?j7(a,c===a.versionHash?"up-to-date":"update-available",c):j7(a,"error",void 0,"Remote skill path was not found.")}async function kb(a,b){let[c,d]=a.source.split("/"),e=j5(a.package).toLowerCase().replace(/[\s_]+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,""),f=`${b.skillsApiBase}/api/download/${encodeURIComponent(c)}/${encodeURIComponent(d)}/${encodeURIComponent(e)}`,g=await j8(f,b.fetcher),h="string"==typeof g.hash?g.hash:void 0;return h?j7(a,h===a.versionHash?"up-to-date":"update-available",h):j7(a,"error",void 0,"skills.sh did not return a version hash.")}async function kc(a,b={}){if(!a.canCheckForUpdates||!a.versionHash||!a.skillPath)return j7(a,"unsupported",void 0,"This lock entry cannot be checked automatically.");let c={...b,fetcher:b.fetcher??fetch,skillsApiBase:b.skillsApiBase??j2,resolveGitTreeHash:b.resolveGitTreeHash??j9};try{return"global"===a.scope?await ka(a,c):await kb(a,c)}catch(b){return j7(a,"error",void 0,b instanceof Error?b.message:String(b))}}async function kd(a,b={}){let c=b.fetcher??fetch,d=new Map,e=async(a,b)=>{let e=d.get(a);return e||(e=c(a,b),d.set(a,e)),(await e).clone()};return Promise.all(a.map(a=>kc(a,{...b,fetcher:e})))}async function ke(a){let b=a.trim();if(!an(b,await am()))throw new bG("access_denied","Path is outside allowed workspaces");return b}async function kf(a){let b=await ke(a),c=(await j0(b)).skills.map(a=>({name:a.name,description:a.description,filePath:a.filePath,disableModelInvocation:a.disableModelInvocation,...a.sourceInfo.scope?{scope:a.sourceInfo.scope}:{}}));return{cwd:b,skills:c}}async function kg(a,b,c){let d=await ke(a);if("SKILL.md"!==(0,P.basename)(b))throw new bG("not_a_skill_file","not a SKILL.md file");if(!(0,O.existsSync)(b))throw new bG("file_not_found","file not found");let e=new Set(await am());for(let a of jU(d))e.add(a);let f=(0,O.realpathSync)(b);if(!an(f,e))throw new bG("access_denied","Path is outside allowed workspaces");let g=(0,O.readFileSync)(f,"utf8"),h=function(a,b){let c,d=jY.exec(a);if(!d)return b?`---
73
+ ${jW}: true
74
74
  ---
75
- ${a}`:a;let e=d[0].includes("\r\n")?"\r\n":"\n",f=d[1].split(/\r?\n/),g=f.reduce((a,b,c)=>(j$.test(b)&&a.push(c),a),[]);if(b)if(0===g.length)c=[`${jX}: true`,...f];else{let a=g[0],b=/^([\w-]+)/.exec(f[a])?.[1]??jX;c=f.map((c,d)=>d===a?`${b}: true`:c).filter((b,c)=>c===a||!g.includes(c))}else{if(0===g.length)return a;c=f.filter((a,b)=>!g.includes(b))}return`---${e}${c.join(e)}${e}---${d[2]}`+a.slice(d[0].length)}(g,c);if(h!==g){let a=`${f}.tmp-${process.pid}-${Date.now()}`;try{(0,O.mkdirSync)((0,P.dirname)(f),{recursive:!0}),(0,O.writeFileSync)(a,h,"utf8"),(0,O.renameSync)(a,f)}catch(b){try{(0,O.existsSync)(a)&&(0,O.unlinkSync)(a)}catch{}throw b}}let{frontmatter:i}=jT(h);return{filePath:f,disableModelInvocation:jY(i)}}function ki(a,b={}){return{source:a,scope:b.scope??"global",status:b.status??"installed",disabled:b.disabled??!1,...b.version?{version:b.version}:{},...b.counts?{counts:b.counts}:{}}}async function kj(a){let b=await kf(a),{stdout:c}=await (0,ay.eG)(["plugin","list","--json"],{cwd:b,timeout:6e4}),d=(0,ay.nH)(c),e=[];for(let a of d?.npm??[]){if(!a.name)continue;let b=!1!==a.enabled;e.push(ki(a.name,{scope:"global",status:b?"loaded":"disabled",disabled:!b,version:a.version}))}for(let a of d?.marketplace??[]){if(!a.id)continue;let b=a.entries?.[0],c=b??a,d=!1!==c.enabled;e.push(ki(a.id,{scope:(a.scope??b?.scope)==="project"?"project":"global",status:d?b?b.installPath&&(0,O.existsSync)(b.installPath)?"installed":"missing":"loaded":"disabled",disabled:!d,version:c.version}))}return{cwd:b,packages:e}}async function kk(a,b,c,d){let e=await kf(a),f=c?.trim(),g="project"===d?["--scope","project"]:[],h="",i=async(a,b)=>{try{let c=await (0,ay.eG)(a,{cwd:e,timeout:b});return`${c.stdout}${c.stderr}`.slice(-2e3)}catch(a){throw new bG("plugin_action_failed",(`${a.stdout??""}${a.stderr??""}`.trim()||a.message||String(a)).slice(-500))}};if("install"===b){if(!f)throw new bG("invalid_source","source is required");h=await i(["plugin","install",f,"--json",...g],3e5)}else if("remove"===b){if(!f)throw new bG("invalid_source","source is required");h=await i(["plugin","uninstall",f,"--json",...g],12e4)}else if("update"===b)h=await i(["plugin","upgrade",...f?[f,...g]:[]],3e5);else if("disable"===b||"enable"===b){if(!f)throw new bG("invalid_source","source is required");h=await i(["plugin",b,f,"--json",...g],6e4)}let j=await kj(e);return{cwd:j.cwd,packages:j.packages,output:h}}async function kl(a){let b=a?.trim()?await kf(a):null,c=b?jv(b):null,d=function(a=(0,aq.join)((0,R.$M)(),"mcp.json")){return jr(a)}(),e=[];for(let{name:a,config:b}of d.servers){let c=!1!==b.enabled;e.push({name:a,source:"User level",status:c?"configured":"disabled",type:"string"==typeof b.type?b.type:"string"==typeof b.url?"http":"stdio",enabled:c})}for(let a of d.disabledServers)e.push({name:a,source:"Disabled",status:"disabled",enabled:!1});for(let[a,b]of Object.entries(c?.config.mcpServers??{})){let c=!1!==b.enabled;e.push({name:a,source:"Project level",status:c?"configured":"disabled",type:"string"==typeof b.type?b.type:"string"==typeof b.url?"http":"stdio",enabled:c})}for(let a of function(a,b=[]){let c=new Set(b),d=new Set(js((0,aC.homedir)()));if(a)for(let b of js((0,aq.resolve)(a)))d.add(b);let e=new Set,f=(0,aq.join)((0,R.$M)(),"mcp.json");(0,ao.existsSync)(f)&&e.add((0,ao.realpathSync)(f)),a&&e.add(ju(a).path);let g=[],h=new Set;for(let a of d){try{if(e.has((0,ao.realpathSync)(a)))continue}catch{continue}let b=function(a){let b=".claude.json"===(0,aq.basename)(a)?".claude":(0,aq.basename)((0,aq.dirname)(a));return".claude"===b?"Claude Code":".codex"===b?"Codex":".cursor"===b?"Cursor":".vscode"===b?"VS Code":b.replace(/^\./,"")||"Configured"}(a);if(a.endsWith(".toml")){for(let d of function(a,b,c){try{if((0,ao.statSync)(a).size>5242880)return[];let d=(0,ao.readFileSync)(a,"utf8"),e=[...d.matchAll(/^\s*\[mcp_servers(?:\.([A-Za-z0-9_-]+)|\."([^"]+)")\]\s*$/gm)];return e.flatMap((a,f)=>{let g=a[1]??a[2];if(!g||c.has(g))return[];let h=d.slice((a.index??0)+a[0].length,e[f+1]?.index);return[{name:g,source:b,status:/^\s*enabled\s*=\s*false\s*$/m.test(h)?"disabled":"configured",type:/^\s*url\s*=/m.test(h)?"http":"stdio"}]})}catch{return[]}}(a,b,c)){let a=`${d.source}:${d.name}`;h.has(a)||(h.add(a),g.push(d))}continue}for(let d of jr(a).servers){if(c.has(d.name))continue;let a=`${b}:${d.name}`;if(h.has(a))continue;h.add(a);let e="string"==typeof d.config.type?d.config.type:"string"==typeof d.config.url?"http":"stdio";g.push({name:d.name,source:b,status:!1===d.config.enabled?"disabled":"configured",type:e})}}return g}(b??void 0,d.disabledServers))e.push({name:a.name,source:a.source,status:a.status,...a.type?{type:a.type}:{},enabled:"disabled"!==a.status});return{inventory:e}}async function km(a,b){return!function(a,b){if(!jp.test(b))throw Error("Invalid server name");jx(jv(a).path,()=>{let c=jv(a),d={...c.config.mcpServers??{}};if(!(b in d))throw Error("MCP server was not found");delete d[b];let e={...c.config,mcpServers:d};return aF(c.path,`${JSON.stringify(e,null,2)}
76
- `),{path:c.path}})}(await kf(a),b),{name:b}}async function kn(a){let b={type:a.type};return void 0!==a.command&&(b.command=a.command),void 0!==a.url&&(b.url=a.url),void 0!==a.args&&(b.args=a.args),void 0!==a.env&&(b.env=a.env??{}),void 0!==a.headers&&(b.headers=a.headers??{}),void 0!==a.serverCwd&&(b.cwd=a.serverCwd),void 0!==a.enabled&&(b.enabled=a.enabled),void 0!==a.timeout&&(b.timeout=a.timeout),void 0!==a.requestIdFormat&&(b.requestIdFormat=a.requestIdFormat),ko(a.cwd,a.name,b,a.previousName)}async function ko(a,b,c,d){let e=await kf(a);if("object"!=typeof c||null===c||Array.isArray(c))throw new bG("invalid_mcp","server must be an object");let f={...c};null===f.env&&(f.env={}),null===f.headers&&(f.headers={});try{jw(b,f)}catch(a){throw new bG("invalid_mcp",a instanceof Error?a.message:String(a))}try{var g=e,h=b,i=f,j=d;if(jw(h,i),void 0!==j&&!jp.test(j))throw Error("Invalid previous server name");jx(jv(g).path,()=>{let a=jv(g),b=a.config.mcpServers??{};if(void 0!==j&&j!==h&&Object.hasOwn(b,h))throw new jy(h);let c={...b},d=c[j??h];j&&j!==h&&delete c[j],c[h]={...i,...d?.env!==void 0&&void 0===i.env?{env:d.env}:{},...d?.headers!==void 0&&void 0===i.headers?{headers:d.headers}:{}};let e={...a.config,mcpServers:c};return(0,ao.mkdirSync)((0,aq.dirname)(a.path),{recursive:!0}),aF(a.path,`${JSON.stringify(e,null,2)}
77
- `),{path:a.path}})}catch(a){if(a instanceof jy)throw new bG("mcp_name_conflict",a.message);throw new bG("mcp_write_failed","Unable to write MCP configuration")}return{name:b}}let kp=process.env.SKILLS_API_URL||"https://skills.sh",kq=/\x1B\[[0-9;]*m/g;async function kr(a,b=10){let c=a.trim();if(!c)throw new bG("invalid_query","query is required");let d=Math.min(20,Math.max(1,Math.floor(b)||10));try{let a=await fetch(`${kp}/api/search?q=${encodeURIComponent(c)}&limit=${d}`,{cache:"no-store"});if(!a.ok)throw Error(`skills.sh search failed: HTTP ${a.status}`);let b=await a.json();if("object"!=typeof b||null===b||!("skills"in b)||!Array.isArray(b.skills))throw Error("Invalid skills search response");let e=[];for(let a of b.skills){if("object"!=typeof a||null===a||Array.isArray(a))continue;let b="name"in a&&"string"==typeof a.name?a.name.trim():void 0,c="source"in a&&"string"==typeof a.source?a.source.trim():void 0,f="id"in a&&"string"==typeof a.id?a.id.trim():void 0;if(!b||!c&&!f)continue;let g="installs"in a&&"number"==typeof a.installs?a.installs:0;if(e.push({package:`${c||f}@${b}`,...g>0?{installs:`${g} installs`}:{},...f?{url:`${kp}/${f}`}:{}}),e.length>=d)break}return{query:c,results:e}}catch{let{stdout:a,stderr:b}=await jB(["skills","find",c],{timeout:2e4,env:{...process.env,FORCE_COLOR:"0"}});return{query:c,results:(function(a){let b=a.replace(kq,""),c=[],d=b.split("\n");for(let a=0;a<d.length;a++){let b=d[a].trim().match(/^([\w.\-]+\/[\w.\-@:]+)\s+([\d.,]+[KMB]?\s+installs)$/);if(b){let e=d[a+1]?.trim().replace(/^└\s*/,"");c.push({package:b[1],installs:b[2],...e?.startsWith("https://")?{url:e}:{}})}}return c})(a+b).slice(0,d)}}}async function ks(a,b,c){let d,e=a.trim();if(!e)throw new bG("invalid_package","package is required");let f="project"!==b;if(f)c?.trim()&&(d=await kf(c));else{if(!c?.trim())throw new bG("invalid_cwd","cwd is required for project install");d=await kf(c)}let g=["skills","add",e,"-y","--agent","universal"];f&&g.push("-g");try{let{stdout:a,stderr:b}=await jB(g,{timeout:6e4,cwd:d,env:{...process.env,FORCE_COLOR:"0"}}),c=(a+b).replace(kq,"");if(!/Installation complete|Installed \d+ skill/.test(c))throw new bG("skill_install_failed",c.slice(-300)||"Install failed")}catch(a){if(a instanceof bG)throw a;throw new bG("skill_install_failed",(((a.stdout??"")+(a.stderr??"")).replace(kq,"")||a.message||String(a)).slice(-300)||"Install failed")}return{package:e,scope:f?"global":"project"}}async function kt(a){let b=a?.trim()?await kf(a):void 0,c=(await jI(b??process.cwd())).agents.map(a=>({name:a.name,description:a.description,source:a.source,...a.filePath?{filePath:a.filePath}:{},systemPrompt:a.systemPrompt,...a.disabled?{disabled:!0}:{}}));return b?{cwd:b,agents:c}:{agents:c}}async function ku(a){let b,c=a.name.trim(),d=a.description.trim();if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(c))throw new bG("invalid_name","name must be kebab-case");if(!d)throw new bG("invalid_description","description is required");let e={...void 0!==a.tools?{tools:a.tools}:{},...void 0!==a.model?{model:a.model}:{},...void 0!==a.thinkingLevel?{thinkingLevel:a.thinkingLevel}:{},...void 0!==a.prewalk?{prewalk:a.prewalk}:{},...void 0!==a.advisor?{advisor:a.advisor}:{},...void 0!==a.blocking?{blocking:a.blocking}:{},...a.cwd?.trim()?{cwd:a.cwd.trim()}:{}};try{b=await jM({scope:a.scope,name:c,description:d,systemPrompt:a.systemPrompt,...e})}catch(g){let f=g instanceof Error?g.message:String(g);if(/already exists/i.test(f))try{b=await jN({scope:a.scope,name:c,description:d,systemPrompt:a.systemPrompt,...e})}catch(a){throw new bG("agent_save_failed",a instanceof Error?a.message:String(a))}else throw new bG("agent_save_failed",f)}return{name:c,filePath:b}}async function kv(a){try{await jO({name:a.name,scope:a.scope,...a.cwd?.trim()?{cwd:a.cwd.trim()}:{}})}catch(a){throw new bG("agent_delete_failed",a instanceof Error?a.message:String(a))}return{name:a.name}}async function kw(a){let b=a.name.trim();if(!b)throw new bG("invalid_name","name is required");let c=a.cwd?.trim()?await kf(a.cwd):void 0,d=(await jI(c??process.cwd())).agents.find(c=>c.name===b&&(!a.scope||c.source===a.scope));if(!d)throw new bG("agent_not_found",`Agent "${b}" was not found`);return{name:d.name,description:d.description,source:d.source,...d.filePath?{filePath:d.filePath}:{},...d.tools?{tools:d.tools}:{},...void 0!==d.model?{model:d.model}:{},...void 0!==d.thinkingLevel?{thinkingLevel:d.thinkingLevel}:{},...void 0!==d.prewalk?{prewalk:d.prewalk}:{},...void 0!==d.advisor?{advisor:d.advisor}:{},...void 0!==d.blocking?{blocking:d.blocking}:{},systemPrompt:d.systemPrompt,...d.disabled?{disabled:!0}:{},...d.isShadowed?{isShadowed:!0}:{},...void 0!==d.overrideModel?{overrideModel:d.overrideModel}:{},...void 0!==d.prewalkOverride?{prewalkOverride:d.prewalkOverride}:{},...void 0!==d.advisorOverride?{advisorOverride:d.advisorOverride}:{}}}async function kx(a){let b=a.cwd?.trim()?await kf(a.cwd):void 0;try{return await jP({scope:a.scope,...b?{cwd:b}:{},...void 0!==a.force?{force:a.force}:{}})}catch(a){throw new bG("agent_unpack_failed",a instanceof Error?a.message:String(a))}}async function ky(a,b){let c=await kf(a),d=b.trim();if("SKILL.md"!==(0,P.basename)(d))throw new bG("not_a_skill_file","not a SKILL.md file");let e=(await j1(c)).skills.find(a=>a.filePath===d);if(!e)throw new bG("skill_not_found","skill was not found");let f=new Set(await am());for(let a of jV(c))f.add(a);let g=(0,O.realpathSync)(e.filePath);if(!an(g,f))throw new bG("access_denied","Path is outside allowed workspaces");let{frontmatter:h,body:i}=jT((0,O.readFileSync)(g,"utf8")),j=i.slice(0,8e3);return{name:e.name,description:e.description,filePath:g,disableModelInvocation:jY(h),...e.sourceInfo.scope?{scope:e.sourceInfo.scope}:{},...e.sourceInfo.source?{source:e.sourceInfo.source}:{},...e.install?{install:e.install}:{},frontmatter:h,contentPreview:j,contentTruncated:i.length>j.length}}async function kz(a,b){let c,d,e=await kf(a),f=b.trim();if(!f)throw new bG("invalid_name","name is required");try{c=jv(e)}catch(a){throw new bG("mcp_read_failed",a instanceof Error?a.message:String(a))}let g=c.config.mcpServers?.[f];if(!g)throw new bG("mcp_not_found",`MCP server "${f}" was not found`);return{name:f,source:"Project level",config:(d={...g},delete d.env,delete d.headers,d),envConfigured:void 0!==g.env,headersConfigured:void 0!==g.headers,path:c.path}}async function kA(a,b){if("object"!=typeof b||null===b||Array.isArray(b))throw new bG("invalid_mcp","server must be an object");let c={...b};null===c.env&&(c.env={}),null===c.headers&&(c.headers={});try{jw(a,c)}catch(a){throw new bG("invalid_mcp",a instanceof Error?a.message:String(a))}return{ok:!0}}async function kB(a){let b=await kf(a.cwd),{skills:c}=await j1(b),d=c.map(a=>a.install).filter(a=>!!a).filter(b=>!a.package||b.package===a.package&&b.scope===a.scope);if(a.package&&0===d.length)throw new bG("skill_not_installed","Installed skill not found");return{updates:await ke(d,{githubToken:process.env.GITHUB_TOKEN||process.env.GH_TOKEN})}}async function kC(a){let b=await kf(a.cwd),{skills:c}=await j1(b),d=c.find(b=>b.install?.package===a.package&&b.install.scope===a.scope);if(!d?.install)throw new bG("skill_not_installed","Installed skill not found");if(!d.install.canCheckForUpdates)throw new bG("skill_update_unsupported","This skill cannot be updated automatically");try{var e;let c,f,g,h,{stdout:i,stderr:j}=await jB((e=d.install,f=(c=j7(e.skillPath??""))?`${e.source}/${c}`:e.source,g=e.ref?`#${encodeURIComponent(e.ref)}`:"",h=["skills","add",`${f}${g}`,"--skill",j6(e.package),"-y","--agent","universal"],"global"===e.scope&&h.push("-g"),h),{timeout:6e4,cwd:"project"===a.scope?b:void 0,env:{...process.env,FORCE_COLOR:"0"}}),k=(await j1(b)).skills.find(b=>b.install?.package===a.package&&b.install.scope===a.scope);return{success:!0,output:`${i}${j}`.slice(-500),...k?{skill:k}:{}}}catch(c){let a="object"==typeof c&&null!==c&&"stdout"in c&&"string"==typeof c.stdout?c.stdout:"",b="object"==typeof c&&null!==c&&"stderr"in c&&"string"==typeof c.stderr?c.stderr:"";throw new bG("skill_update_failed",(`${a}${b}`.trim()||(c instanceof Error?c.message:String(c))).slice(-500))}}async function kD(){try{let a=await (0,ip.runUtilityCommand)({type:"get_login_providers"},3e4),b=[];if(Array.isArray(a.providers))for(let c of a.providers)!("object"!=typeof c||null===c||Array.isArray(c))&&"id"in c&&"string"==typeof c.id&&"name"in c&&"string"==typeof c.name&&"authenticated"in c&&"boolean"==typeof c.authenticated&&(!("available"in c)||!1!==c.available)&&b.push({id:c.id,name:c.name,loggedIn:c.authenticated});return{providers:b}}catch(a){throw new bG("auth_failed",a instanceof Error?a.message:String(a))}}let kE=["skills.list","skills.get","skills.toggle","skills.search","skills.install","skills.check","skills.update","plugins.list","plugins.action","agents.list","agents.get","agents.save","agents.delete","agents.unpack","agents.setDisabled","agents.setOverride","mcp.list","mcp.get","mcp.validate","mcp.save","mcp.delete"];function kF(a){let b=(0,S.oJ)(a)?.trim();if(!b||b.length>1024)throw new bG("invalid_cwd","cwd is required");return b}function kG(a){if(void 0===a)return;let b=(0,S.oJ)(a)?.trim();if(b){if(b.length>1024)throw new bG("invalid_cwd","cwd is too long");return b}}function kH(a,b="name"){let c=(0,S.oJ)(a)?.trim();if(!c||c.length>128)throw new bG("invalid_name",`${b} is required`);return c}function kI(a,b,c,d){let e=void 0===b?0:Number(b),f=void 0===c?d:Number(c);if(!Number.isInteger(e)||e<0||e>1e5)throw new bG("invalid_args","offset must be an integer >= 0");if(!Number.isInteger(f)||f<1||f>200)throw new bG("invalid_args","limit must be an integer 1-200");return{offset:e,limit:f}}async function kJ(a){let b=a.trim();if(!an(b,await am()))throw new bG("access_denied","Path is outside allowed workspaces");return b}function kK(a){if("user"===a||"project"===a)return a;throw new bG("invalid_scope","scope must be user or project")}function kL(a){if("global"===a||"project"===a)return a;throw new bG("invalid_scope","scope must be global or project")}async function kM(a,b,c){if("object"!=typeof b||null===b||Array.isArray(b))throw new bG("invalid_args","args must be an object");switch(function(a){if(!kE.includes(a))throw new bG("unknown_action",`Unknown extensions action "${a}"`);return a}(a)){case"skills.list":{let a=await kJ(kF(b.cwd)),c=await kg(a),{offset:d,limit:e}=kI(c.skills.length,b.offset,b.limit,50),f=c.skills.map(a=>({name:a.name,description:a.description,filePath:a.filePath,disableModelInvocation:a.disableModelInvocation,...a.scope?{scope:a.scope}:a.sourceInfo?.scope?{scope:a.sourceInfo.scope}:{},...a.sourceInfo?.source?{source:a.sourceInfo.source}:{},...a.install?{install:a.install}:{}}));return{cwd:c.cwd,skills:f.slice(d,d+e),total:f.length,offset:d,limit:e,hasMore:d+e<f.length}}case"skills.get":{let a=kF(b.cwd),c=(0,S.oJ)(b.filePath)?.trim();if(!c||c.length>1024)throw new bG("invalid_path","filePath is required");return ky(a,c)}case"skills.toggle":{let a=kF(b.cwd),c=(0,S.oJ)(b.filePath)?.trim();if(!c||c.length>1024)throw new bG("invalid_path","filePath is required");if("boolean"!=typeof b.disableModelInvocation)throw new bG("invalid_flag","disableModelInvocation must be a boolean");return kh(a,c,b.disableModelInvocation)}case"skills.search":{let a=(0,S.oJ)(b.query)?.trim();if(!a||a.length>200)throw new bG("invalid_query","query is required");let c=b.limit,d=void 0===c?10:Number(c);if(!Number.isInteger(d)||d<1||d>20)throw new bG("invalid_limit","limit must be 1-20");return kr(a,d)}case"skills.install":{let a=(0,S.oJ)(b.package)?.trim();if(!a||a.length>256)throw new bG("invalid_package","package is required");return ks(a,kL(b.scope),kG(b.cwd))}case"skills.check":{let a=kF(b.cwd),c=void 0===b.package?void 0:(0,S.oJ)(b.package)?.trim(),d=void 0===b.scope?void 0:kL(b.scope);if(c&&!d||!c&&d)throw new bG("invalid_args","package and scope must be provided together");return kB({cwd:a,...c?{package:c,scope:d}:{}})}case"skills.update":{let a=kF(b.cwd),c=(0,S.oJ)(b.package)?.trim();if(!c)throw new bG("invalid_package","package is required");return kC({cwd:a,package:c,scope:kL(b.scope)})}case"plugins.list":{let a=await kJ(kF(b.cwd)),c=await kj(a),{offset:d,limit:e}=kI(c.packages.length,b.offset,b.limit,50);return{cwd:c.cwd,packages:c.packages.slice(d,d+e),total:c.packages.length,offset:d,limit:e,hasMore:d+e<c.packages.length}}case"plugins.action":{let a=kF(b.cwd),c=(0,S.oJ)(b.action)?.trim();if("install"!==c&&"remove"!==c&&"update"!==c&&"disable"!==c&&"enable"!==c)throw new bG("invalid_action","plugin action is required");let d=(0,S.oJ)(b.source)?.trim();if("update"!==c&&(!d||d.length>512))throw new bG("invalid_source","source is required");if(d&&d.length>512)throw new bG("invalid_source","source is too long");let e=(0,S.oJ)(b.scope)?.trim(),f="project"===e?"project":"global"===e?"global":void 0;if(void 0!==b.scope&&void 0===f&&e)throw new bG("invalid_scope","scope must be global or project");return kk(a,c,d||void 0,f)}case"agents.list":{let a=kG(b.cwd),c=await kt(a),d=c.agents;if(void 0!==b.scope){let a=(0,S.oJ)(b.scope)?.trim();d=d.filter(b=>b.source===a)}let e=(0,S.oJ)(b.query)?.trim().toLowerCase();e&&(d=d.filter(a=>`${a.name} ${a.description} ${a.systemPrompt??""}`.toLowerCase().includes(e)));let{offset:f,limit:g}=kI(d.length,b.offset,b.limit,50);return{...c.cwd?{cwd:c.cwd}:{},agents:d.slice(f,f+g).map(a=>({name:a.name,description:a.description,source:a.source,...a.filePath?{filePath:a.filePath}:{},...a.disabled?{disabled:!0}:{}})),total:d.length,offset:f,limit:g,hasMore:f+g<d.length}}case"agents.get":{let a=kH(b.name),c=void 0===b.scope?void 0:kK(b.scope),d=kG(b.cwd);return kw({name:a,...c?{scope:c}:{},...d?{cwd:d}:{}})}case"agents.save":{let a=kH(b.name);if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a))throw new bG("invalid_name","name must be kebab-case");let c=(0,S.oJ)(b.description)?.trim();if(!c||c.length>500)throw new bG("invalid_description","description is required");let d=(0,S.oJ)(b.systemPrompt);if(void 0===d||Buffer.byteLength(d,"utf8")>0x1000000)throw new bG("invalid_prompt","systemPrompt is required");let e=kK(b.scope),f=kG(b.cwd),g=void 0===b.tools?void 0:function(a,b){if(!Array.isArray(a)||a.some(a=>"string"!=typeof a))throw new bG("invalid_args",`${b} must be an array of strings`);return a}(b.tools,"tools"),h=void 0===b.model?void 0:function(a){if("string"==typeof a&&a.trim())return a.trim();if(Array.isArray(a)&&a.length>0&&a.every(a=>"string"==typeof a&&a.trim()))return a;throw new bG("invalid_args","model must be a non-empty selector or list")}(b.model),i=void 0===b.thinkingLevel?void 0:function(a,b){if("string"!=typeof a||!a.trim()||a.length>64)throw new bG("invalid_args",`${b} must be a non-empty string`);return a}(b.thinkingLevel,"thinkingLevel"),j=void 0===b.prewalk?void 0:kN(b.prewalk,"prewalk"),k=void 0===b.advisor?void 0:kN(b.advisor,"advisor"),l=void 0===b.blocking?void 0:function(a,b){if("boolean"!=typeof a)throw new bG("invalid_args",`${b} must be a boolean`);return a}(b.blocking,"blocking");return ku({name:a,description:c,systemPrompt:d,scope:e,...f?{cwd:f}:{},...void 0!==g?{tools:g}:{},...void 0!==h?{model:h}:{},...void 0!==i?{thinkingLevel:i}:{},...void 0!==j?{prewalk:j}:{},...void 0!==k?{advisor:k}:{},...void 0!==l?{blocking:l}:{}})}case"agents.delete":{let a=kH(b.name),c=kK(b.scope),d=kG(b.cwd);return kv({name:a,scope:c,...d?{cwd:d}:{}})}case"agents.unpack":{let a=kK(b.scope),c=kG(b.cwd),d=void 0===b.force?void 0:!0===b.force;if(void 0!==b.force&&"boolean"!=typeof b.force)throw new bG("invalid_args","force must be a boolean");return kx({scope:a,...c?{cwd:c}:{},...void 0!==d?{force:d}:{}})}case"agents.setDisabled":{let a=kH(b.name);if("boolean"!=typeof b.disabled)throw new bG("invalid_args","disabled must be a boolean");let c=a_(),d=new Set(Array.isArray(c.settings.task?.disabledAgents)?c.settings.task.disabledAgents:[]);b.disabled?d.add(a):d.delete(a);let e=aZ(c.settings,{task:{disabledAgents:[...d]}});try{a0(e)}catch(a){throw new bG("agent_settings_failed",a instanceof Error?a.message:String(a))}return{name:a,disabled:b.disabled}}case"agents.setOverride":{let a=kH(b.name),c=(0,S.oJ)(b.kind)?.trim();if("model"!==c&&"prewalk"!==c&&"advisor"!==c)throw new bG("invalid_args","kind must be model, prewalk, or advisor");let d=a_(),e=d.settings.task??{},f={};if("model"===c){let c={...e.agentModelOverrides??{}};if(void 0===b.value||null===b.value||""===b.value)delete c[a];else if("string"==typeof b.value&&b.value.trim())c[a]=b.value.trim();else if(Array.isArray(b.value)&&b.value.every(a=>"string"==typeof a&&a.trim()))c[a]=b.value;else throw new bG("invalid_args","value must be a non-empty model selector or list");f.agentModelOverrides=c}else{let d="prewalk"===c?"agentPrewalk":"agentAdvisor",g={...e[d]??{}};if(void 0===b.value||null===b.value||""===b.value)delete g[a];else if("boolean"==typeof b.value||"string"==typeof b.value)g[a]=b.value;else throw new bG("invalid_args","value must be a boolean or string");f[d]=g}try{a0(aZ(d.settings,{task:f}))}catch(a){throw new bG("agent_settings_failed",a instanceof Error?a.message:String(a))}return{name:a,kind:c}}case"mcp.list":{let a,d,e=kG(b.cwd),f=await kl(e),{offset:g,limit:h}=kI(f.inventory.length,b.offset,b.limit,50),i=c.sessionId??null;if(i){let b=bA(i);if(b?.isAlive())try{let c=await b.getMcpList();b.isAlive()&&bA(i)===b?a=(function(a,b){let c=[...a],d=new Set(a.map(a=>`${a.source}:${a.name}`));for(let a of b){let b=`${a.source}:${a.name}`;d.has(b)||(d.add(b),c.push(a))}return c})(function(a){let b=[],c=null;for(let d of jo(a).split(/\r?\n/)){let a=d.trim();if(!a)continue;let e=a.match(/^(.+?)\s+\([^)]*\):$/);if(e){c=e[1];continue}let f=a.match(/^(.+?)\s+[●◌○]\s+(connected|connecting|not connected|inactive|disabled)(?:\s+\[([^\]]+)\])?$/);if(!f||!c)continue;let g={connected:"connected",connecting:"connecting","not connected":"not_connected",inactive:"inactive",disabled:"disabled"};b.push({name:f[1].trim(),source:c,status:g[f[2]],type:f[3]})}if(b.length>0)return b;for(let c of jo(a).split(/\r?\n/)){let a=c.trim().match(/^(.+?)\s+\|\s+([^|]+?)\s+\|\s+(enabled|disabled)\s+\|\s+.*?(?:\s+\[([^\]]+)\])?$/);if(!a)continue;let d="user"===a[4]?"User level":"project"===a[4]?"Project level":"Configured";b.push({name:a[1].trim(),source:d,status:"enabled"===a[3]?"configured":"disabled",type:a[2].trim()})}return b}(c),f.inventory.map(({name:a,source:b,status:c,type:d})=>({name:a,source:b,status:"disabled"===c?"disabled":"configured",...d?{type:d}:{}}))).map(({name:a,source:b,status:c,type:d})=>({name:a,source:b,status:c,...d?{type:d}:{}})):d="Selected session became inactive — refresh to query its current runtime."}catch{d="Live MCP query failed. Connection status is unknown; refresh to retry."}else d="Selected session is inactive — live MCP status is unavailable."}return{sessionId:i,...a?{liveServers:a}:{},...d?{liveError:d}:{},inventory:f.inventory.slice(g,g+h),total:f.inventory.length,offset:g,limit:h,hasMore:g+h<f.inventory.length}}case"mcp.get":return kz(kF(b.cwd),kH(b.name));case"mcp.validate":return kA(kH(b.name),b.server);case"mcp.save":{let a=kF(b.cwd),c=kH(b.name),d=void 0===b.previousName?void 0:kH(b.previousName,"previousName");return ko(a,c,b.server,d)}case"mcp.delete":return km(kF(b.cwd),kH(b.name))}}function kN(a,b){if("boolean"==typeof a||"string"==typeof a)return a;throw new bG("invalid_args",`${b} must be a boolean or string`)}async function kO(){var a,b;let c,d;return b=await (a=["--check"],(0,ay.eG)(["update",...a],{timeout:3e5,maxBuffer:1048576}).then(({stdout:a,stderr:b})=>`${a}
78
- ${b}`.trim())),c=b.match(/^Current version:\s*(\S+)/mi)?.[1]??null,{currentVersion:c,availableVersion:d=b.match(/^New version available:\s*(\S+)/mi)?.[1]??null,updateAvailable:null!==d,updateCommand:"omp update"}}let kP=null;function kQ(a){let b=a.match(/^v?(\d+)\.(\d+)\.(\d+)(-.+)?$/);return b?{parts:b.slice(1,4).map(Number),prerelease:!!b[4]}:null}async function kR(a=!1){if(!a&&kP&&Date.now()-kP.checkedAt<36e5)return kP.status;let b="0.7.4",c="ompgui update";try{let a=await fetch(`https://registry.npmjs.org/${encodeURIComponent("ompgui")}/latest`,{cache:"no-store",signal:AbortSignal.timeout(5e3)}),d=a.ok?await a.json():null,e="string"==typeof d?.version?d.version:null,f=!a.ok||null===e,g={currentVersion:b,availableVersion:e,updateAvailable:!!(e&&function(a,b){let c=kQ(a),d=kQ(b);if(!c||!d)return!1;for(let a=0;a<c.parts.length;a+=1)if(c.parts[a]!==d.parts[a])return c.parts[a]>d.parts[a];return!c.prerelease&&d.prerelease}(e,b)),updateCommand:c,lookupFailed:f};return f||(kP={checkedAt:Date.now(),status:g}),g}catch{return{currentVersion:b,availableVersion:null,updateAvailable:!1,updateCommand:c,lookupFailed:!0}}}let kS=new Set(["daily","30d","24h"]);function kT(a,b){let c="string"==typeof a?a.trim():"";if("5h"===c||"7d"===c||"monthly"===c||"30d"===c||"daily"===c)return"30d"===c?"monthly":"daily"===c?"5h":c;if("number"==typeof b&&Number.isFinite(b)){if(6e4>=Math.abs(b-18e6))return"5h";if(6e4>=Math.abs(b-6048e5))return"7d";if(36e5>=Math.abs(b-2592e6))return"monthly";if(6e4>=Math.abs(b-864e5))return"5h"}}function kU(a){let b=a.window,c=a.scope;if(!b&&!c?.windowId)return a;let d=kT(c?.windowId)??kT(b?.id)??kT(void 0,b?.durationMs);if(!d)return a;let e={...c};(c.windowId||b?.id)&&(e.windowId=d);let f=b;if(b){let a=b.label,c=null==a||""===a.trim()||kS.has(a)||a===b.id;f={...b,id:d,...c?{label:d}:{}}}return{...a,scope:e,...f?{window:f}:{}}}async function kV(a=!1,b){let c=(0,R.$M)(),d=globalThis.__ompgui_shared_usage;d&&d.scope===c||(d={scope:c,state:{}},globalThis.__ompgui_shared_usage=d);let e=b?void 0:{...process.env};try{return await kW(d.state,a,{...b??{fetch:()=>kX({env:e}),invalidate:()=>(0,ay.eG)(["usage","invalidate"],{timeout:15e3,env:e})},ttlMs:6e4})}catch(a){return{ok:!1,status:502,error:a instanceof Error?a.message:String(a)}}}async function kW(a,b,c){let d=c.now??Date.now;if(b){if(a.refreshFlight)return a.refreshFlight;let b=(a.refreshGeneration??0)+1;a.refreshGeneration=b,a.entry=null,a.readFlight=null;let e=(async()=>{try{await c.invalidate()}catch{}let e=await c.fetch();return e.ok&&(a.entry={at:d(),payload:e.payload}),a.latestRefresh={generation:b,result:e},e})();a.refreshFlight=e;try{return await e}finally{a.refreshFlight===e&&(a.refreshFlight=null)}}if(a.refreshFlight)return a.refreshFlight;if(a.entry&&d()-a.entry.at<c.ttlMs)return{ok:!0,payload:{...a.entry.payload,cached:!0}};let e=a.refreshGeneration??0,f=a.readFlight;f||(a.readFlight=f={generation:e,promise:c.fetch()});try{let b=await f.promise,c=a.refreshGeneration??0;if(f.generation!==c){if(a.refreshFlight)return a.refreshFlight;let d=a.latestRefresh;if(d?.generation===c)return d.result;return b}return b.ok&&(a.entry={at:d(),payload:b.payload}),b}finally{a.readFlight===f&&(a.readFlight=null)}}async function kX(a={}){let b,c=a.executor??((b,c)=>(0,ay.eG)(b,{...c,env:a.env}));if(!a.executor&&!(0,ay.resolveOmpBin)())return{ok:!1,status:503,error:"omp binary not found"};try{b=(await c(["usage","--json"],{timeout:3e4})).stdout}catch(c){let a=c instanceof Error?c.message:String(c),b=a.toLowerCase();if(b.includes("unknown command")||b.includes("unknown flag")||b.includes("unrecognized command")||b.includes("unrecognized option")||b.includes("invalid command")||/error:\s*(unknown|unrecognized)\s+(command|option|flag)/i.test(a)||/\bcommand not found\b/i.test(a))return{ok:!1,status:501,error:"usage command not supported by installed omp version"};return{ok:!1,status:502,error:a}}if(!b||!b.trim())return{ok:!1,status:501,error:"usage command not supported by installed omp version"};let d=(0,ay.nH)(b);if(!d||"object"!=typeof d)return{ok:!1,status:501,error:"usage command not supported by installed omp version"};let e=(Array.isArray(d.reports)?d.reports:[]).map(a=>Array.isArray(a.limits)?{...a,limits:a.limits.map(kU)}:a),f=Array.isArray(d.accountsWithoutUsage)?d.accountsWithoutUsage:[],g=Array.isArray(d.disabledCredentials)?d.disabledCredentials:[],h=function(a){let b={};for(let[c,d]of Object.entries(a)){if(!Array.isArray(d)){b[c]=d;continue}let a=new Map,e=[];for(let b of d){let c=kT(b.window,b.durationMs);if(!c){e.push(b);continue}let d=!function(a,b){let c="string"==typeof a?a.trim():"";return"daily"===c||"5h"!==c&&"7d"!==c&&"monthly"!==c&&"30d"!==c&&"number"==typeof b&&Number.isFinite(b)&&6e4>=Math.abs(b-864e5)}(b.window,b.durationMs)?b.durationMs:18e6,f=a.get(c);if(!f){a.set(c,{...b,window:c,...void 0!==d?{durationMs:d}:{}});continue}a.set(c,{...f,accounts:f.accounts+b.accounts,usedAccounts:f.usedAccounts+b.usedAccounts,remainingAccounts:f.remainingAccounts+b.remainingAccounts,durationMs:function(a,b,c){if("5h"===a){if(void 0!==b&&6e4>=Math.abs(b-18e6))return b;if(void 0!==c&&6e4>=Math.abs(c-18e6))return c}return b??c}(c,f.durationMs,d)})}b[c]=[...a.values(),...e]}return b}(d.capacity&&"object"==typeof d.capacity?d.capacity:{}),i="number"==typeof d.generatedAt?d.generatedAt:Date.now(),j="no-credentials"===d.emptyReason||0===e.length&&0===f.length&&0===g.length?"no-credentials":void 0;return{ok:!0,payload:{generatedAt:i,reports:e,accountsWithoutUsage:f,disabledCredentials:g,capacity:h,cached:!1,...j?{emptyReason:j}:{}}}}let kY=["usage.get","omp.check","app.check","omp.restart","devices.list","devices.revoke","systemPrompt.get","settings.get","settings.update","update"];class kZ extends Error{constructor(a,b,c,d){super(b),this.name="SystemRequestError",this.code=a,void 0!==c&&(this.details=c),void 0!==d&&(this.status=d)}}let k$=/^d_[A-Za-z0-9_-]{16,64}$/;function k_(a,b){if(void 0!==a){if("boolean"!=typeof a)throw new kZ("invalid_args",`${b} must be a boolean`);return a}}async function k0(a){let b=k_(a.refresh,"refresh")??!1,c=await kV(b);if(c.ok){var d;let a;return a={generatedAt:(d=c.payload).generatedAt,reports:d.reports,accountsWithoutUsage:d.accountsWithoutUsage,disabledCredentials:d.disabledCredentials,capacity:d.capacity,cached:d.cached},void 0!==d.emptyReason&&(a.emptyReason=d.emptyReason),a}throw new kZ(function(a){switch(a){case 503:return"omp_not_found";case 501:return"usage_not_supported";default:return"usage_fetch_failed"}}(c.status),c.error,void 0,c.status)}async function k1(){try{var a;return{currentVersion:(a=await kO()).currentVersion,availableVersion:a.availableVersion,updateAvailable:a.updateAvailable,updateCommand:a.updateCommand}}catch(a){throw new kZ("omp_check_failed",a instanceof Error?a.message:String(a))}}async function k2(a){var b;let c=k_(a.force,"force")??!1;return{currentVersion:(b=await kR(c)).currentVersion,availableVersion:b.availableVersion,updateAvailable:b.updateAvailable,updateCommand:b.updateCommand,lookupFailed:b.lookupFailed}}async function k3(a){if(!0!==a.confirm)throw new kZ("confirm_required","omp.restart requires {confirm:true}");try{(0,ay.YT)();let a=await bC();return{success:!0,sessionsRestarted:a}}catch(a){throw new kZ("restart_failed",a instanceof Error?a.message:String(a))}}async function k4(a){let b=function(a){let b="string"==typeof a?a.trim():"";if(!b||b.length>128)throw new kZ("invalid_args","sessionId is required");return b}(a.sessionId),c=bA(b);if(!c)throw new kZ("session_not_running","Session is not running");try{let a=await c.send({type:"get_state"});if("object"!=typeof a||null===a||Array.isArray(a))throw new kZ("system_prompt_failed","Session state unavailable");let d="systemPrompt"in a&&"string"==typeof a.systemPrompt?a.systemPrompt:"";return{sessionId:b,systemPrompt:d}}catch(a){if(a instanceof kZ)throw a;throw new kZ("system_prompt_failed",a instanceof Error?a.message:String(a))}}function k5(a,b){if("object"!=typeof b||null===b||Array.isArray(b))throw new kZ("settings_read_failed","Stored settings are not an object");let c={};for(let[a,d]of Object.entries(b))c[a]=d;return{path:a,settings:c}}async function k6(a){if("object"!=typeof a.settings||null===a.settings||Array.isArray(a.settings))throw new kZ("invalid_args","settings must be an object");let b=aX(a.settings),c=function(a){if(void 0===a)return;if(!Array.isArray(a))throw new kZ("invalid_args","model lists must contain non-empty strings");let b=[];for(let c of a){if("string"!=typeof c||!c.trim())throw new kZ("invalid_args","model lists must contain non-empty strings");b.push(c)}return b}(b.enabledModels);if(void 0!==c&&c.length>0)try{let a=await (0,ip.runUtilityCommand)({type:"get_available_models"},12e4);Array.isArray(a.models)&&iR(c,function(a){if(!Array.isArray(a))return[];let b=[];for(let c of a){if("object"!=typeof c||null===c||!("id"in c)||!("provider"in c))continue;let a=c.id,d=c.provider;"string"==typeof a&&"string"==typeof d&&b.push({id:a,provider:d})}return b}(a.models))}catch(a){if(a instanceof Error&&a.message.startsWith("Ambiguous enabledModels entry"))throw new kZ("invalid_args",a.message)}try{let a=a_(),c=aZ(a.settings,b);a0(c);let d=void 0!==b.enabledModels||void 0!==b.disabledProviders||void 0!==b.modelProviderOrder;d&&(aD(),(0,ip.j)());let e=a_(),f=k5(e.path,e.settings).settings;return{success:!0,settings:f,application:{mode:d?"runtime-refresh":"new-session",restartRequired:!1}}}catch(a){if(a instanceof kZ)throw a;throw new kZ("settings_write_failed",a instanceof Error?a.message:String(a))}}async function k7(a,b,c){if("object"!=typeof b||null===b||Array.isArray(b))throw new kZ("invalid_args","args must be an object");switch(function(a){if(!kY.includes(a))throw new kZ("unknown_action",`Unknown system action "${a}"`);return a}(a)){case"usage.get":return k0(b);case"omp.check":return k1();case"app.check":return k2(b);case"omp.restart":return k3(b);case"devices.list":return{devices:ag().map(a=>({id:a.id,label:a.label,createdAt:a.createdAt,lastSeenAt:a.lastSeenAt}))};case"devices.revoke":let d=function(a){let b="string"==typeof a?a.trim():"";if(!b||b.length>128||!k$.test(b))throw new kZ("invalid_args","deviceId must be a valid device id");return b}(b.deviceId);if(!ad(()=>{let a=ae(),b=a.devices.filter(a=>a.id!==d);return b.length!==a.devices.length&&(a.devices=b,af(a),!0)}))throw new kZ("device_not_found",`Unknown device "${d}"`);return{revoked:!0,deviceId:d,self:d===c.deviceId};case"systemPrompt.get":return k4(b);case"settings.get":try{let a=a_();return k5(a.path,a.settings)}catch(a){if(a instanceof kZ)throw a;throw new kZ("settings_read_failed",a instanceof Error?a.message:String(a))}case"settings.update":return k6(b);case"update":throw new kZ("update_disabled","Automatic self-updating is disabled. Run 'omp update' in your terminal.",{command:"omp update"},400)}}let k8=new Map;function k9(a){hu.cleanupDevice(a);for(let[b,c]of g0)(void 0===a||c.deviceId===a)&&g1(b);!function(a){if(void 0===a){bR.clear(),bQ.clear();return}for(let[b,c]of(bR.delete(a),bQ))c.deviceId===a&&bQ.delete(b)}(a),jk(a).catch(()=>{})}let la={authenticate:function(a,b=Date.now()){if(a.pairingSecret){if(N()&&!function(a,b=process.env.OMPGUI_PASSWORD??process.env.OMP_WEB_PASSWORD){return N(b)&&(0,L.timingSafeEqual)(M(a),M(b))}(a.password??""))return{ok:!1,code:"password_required",message:"Workspace password is required to pair"};let c=function(a,b,c=Date.now()){return ad(()=>{let d=ae(),e=d.pairing;if(!e)return{error:"invalid"};if(e.expiresAt<=c)return d.pairing=null,af(d),{error:"expired"};if(!$(e.secretHash,Z(a)))return{error:"invalid"};if(d.devices.length>=16)return{error:"device_limit"};let f=(0,L.randomBytes)(32).toString("base64url"),g={id:_("d_"),label:aa(b)||"Phone",tokenHash:Z(f),createdAt:new Date(c).toISOString(),lastSeenAt:new Date(c).toISOString()};return d.devices=[...d.devices,g],d.pairing=null,af(d),{serverId:d.serverId,deviceId:g.id,token:f}})}(a.pairingSecret,a.label,b);return"error"in c?"expired"===c.error?{ok:!1,code:"pairing_expired",message:"Pairing link expired"}:"device_limit"===c.error?{ok:!1,code:"device_limit",message:"Too many paired devices"}:{ok:!1,code:"unauthorized",message:"Invalid pairing secret"}:{ok:!0,serverId:c.serverId,deviceId:c.deviceId,token:c.token}}if(!a.deviceId||!a.token)return{ok:!1,code:"unauthorized",message:"Device token is required"};let c=function(a,b,c=Date.now()){return ad(()=>{let d=ae(),e=d.devices.find(b=>b.id===a);return e&&$(e.tokenHash,Z(b))?(e.lastSeenAt=new Date(c).toISOString(),af(d),{serverId:d.serverId,deviceId:e.id}):null})}(a.deviceId,a.token,b);return c?{ok:!0,serverId:c.serverId,deviceId:c.deviceId}:{ok:!1,code:"unauthorized",message:"Unknown device"}},listSessions:bI,listModels:async()=>Y((await i5()).models).models,fetchUsage:kV,openSession:bJ,sendCommand:bK,createSession:gF,listProjects:gC,listFiles:gD,readFile:gP,listSlash:gE,deleteSession:hv,archiveSession:hw,renameSession:hx,listArchives:hy,restoreArchive:hz,listWorktrees:gQ,addWorktree:gU,writeFile:gR,gitStatus:gS,gitDiff:gT,listBranches:bN,snapshotLeaf:bO,exportSession:bP,listSkills:kg,toggleSkill:kh,searchSkills:kr,installSkill:ks,listAgents:kt,saveAgent:ku,deleteAgent:kv,listAuthProviders:kD,listPlugins:kj,pluginAction:kk,listMcp:kl,deleteMcp:km,upsertMcp:kn,importSession:hA,addProject:gV,removeProject:gW,searchFiles:g$};function lb(a,b,c,d){let e=b instanceof Error?b.message:String(b),f=b&&"object"==typeof b&&"code"in b&&"string"==typeof b.code?b.code:c;a(d?{op:"session.err",id:d,code:f,message:e}:{op:"error",code:f,message:e})}function lc(a){return!!a&&"/relay"===a.split("?")[0]}function ld(a,b){let c,d=b.length;return d<126?((c=Buffer.alloc(2))[0]=128|a,c[1]=d):d<=65535?((c=Buffer.alloc(4))[0]=128|a,c[1]=126,c.writeUInt16BE(d,2)):((c=Buffer.alloc(10))[0]=128|a,c[1]=127,c.writeUInt32BE(0,2),c.writeUInt32BE(d,6)),Buffer.concat([c,b])}class le{get bufferedAmount(){return this.socket.writableLength}constructor(a,b,c=262144){this.socket=a,this.handlers=b,this.maxPayload=c,this.buffer=Buffer.alloc(0),this.closed=!1,this.sentClose=!1,this.socket.on("data",a=>this.onData(a)),this.socket.on("end",()=>this.handlePeerClose()),this.socket.on("close",()=>this.handlePeerClose()),this.socket.on("error",()=>this.handlePeerClose())}feed(a){this.onData(a)}sendText(a){if(this.closed||!this.socket.writable)return!1;let b=Buffer.from(a,"utf8");return!(b.length>this.maxPayload)&&this.writeFrame(ld(1,b))}ping(){!this.closed&&this.socket.writable&&this.writeFrame(ld(9,Buffer.alloc(0)))}close(a=1e3,b=""){if(this.sentClose)return;this.sentClose=!0;let c=Buffer.from(b.slice(0,120),"utf8"),d=Buffer.alloc(2+c.length);d.writeUInt16BE(a,0),c.copy(d,2);try{this.socket.write(ld(8,d))}catch{}this.closed=!0;try{this.socket.end()}catch{}this.handlers.onClose()}writeFrame(a){try{if(this.bufferedAmount+a.length>1e6)return!1;return this.socket.write(a),!0}catch{return this.handlePeerClose(),!1}}onData(a){if(!this.closed)for(this.buffer=0===this.buffer.length?Buffer.from(a):Buffer.concat([this.buffer,a]);;){let a=function(a,b=262144){if(a.length<2)return{status:"need_more"};let c=a[0],d=a[1],e=(128&c)!=0,f=15&c,g=127&d;if(0!=(112&c))return{status:"error",code:1002,reason:"RSV bits must be 0"};if((128&d)==0)return{status:"error",code:1002,reason:"Client frames must be masked"};if(!e)return{status:"error",code:1003,reason:"Fragmented frames are not supported"};if(1!==f&&8!==f&&9!==f&&10!==f)return{status:"error",code:1003,reason:"Unsupported opcode"};let h=2;if(126===g){if(a.length<4)return{status:"need_more"};g=a.readUInt16BE(2),h=4}else if(127===g){if(a.length<10)return{status:"need_more"};let c=a.readUInt32BE(2),d=a.readUInt32BE(6);if(0!==c||d>b)return{status:"error",code:1009,reason:"Frame is too large"};g=d,h=10}if(g>b)return{status:"error",code:1009,reason:"Frame is too large"};if((8===f||9===f||10===f)&&g>125)return{status:"error",code:1002,reason:"Control frame is too large"};let i=h+4+g;if(a.length<i)return{status:"need_more"};let j=a.subarray(h,h+4),k=Buffer.from(a.subarray(h+4,i));for(let a=0;a<k.length;a+=1)k[a]^=j[3&a];return{status:"ok",frame:{fin:e,opcode:f,payload:k},rest:a.subarray(i)}}(this.buffer,this.maxPayload);if("need_more"===a.status){this.buffer.length>this.maxPayload+14&&this.close(1009,"Frame is too large");return}if("error"===a.status)return void this.close(a.code,a.reason);if(this.buffer=a.rest,this.dispatch(a.frame),this.closed)return}}dispatch(a){switch(a.opcode){case 1:{let b=a.payload.toString("utf8");if(Buffer.byteLength(b,"utf8")!==a.payload.length)return void this.close(1007,"Text frame is not valid UTF-8");this.handlers.onText(b);return}case 8:this.close(1e3,"");return;case 9:this.writeFrame(ld(10,a.payload));return;case 10:return;default:this.close(1003,"Unsupported opcode")}}handlePeerClose(){this.closed||(this.closed=!0,this.sentClose=!0,this.handlers.onClose())}}function lf(){return globalThis.__ompguiRelayConnectionCount??0}function lg(a){globalThis.__ompguiRelayConnectionCount=a}function lh(a){let b=a.prototype.emit;function c(a,...d){if("upgrade"===a){let a=d[0];if(lc(a.url))return!function(a,b,c){let d;if(!lc(a.url))return b.destroy();if(!function(a){if("cross-site"===a.headers["sec-fetch-site"])return!1;let b=a.headers.origin;if(!b)return!0;let c=a.headers.host;if(!c)return!1;try{return new URL(b).host===c}catch{return!1}}(a)){b.write("HTTP/1.1 403 Forbidden\r\nConnection: close\r\n\r\n"),b.destroy();return}if(lf()>=8){b.write("HTTP/1.1 503 Service Unavailable\r\nConnection: close\r\n\r\n"),b.destroy();return}let e=!1,f=null,g=function(a,b,c){let d=function(a){if("websocket"!==String(a.headers.upgrade??"").toLowerCase())return null;let b=String(a.headers.connection??"");if(!/\bupgrade\b/i.test(b)||"13"!==String(a.headers["sec-websocket-version"]??""))return null;let c=a.headers["sec-websocket-key"];return"string"!=typeof c||c.length<16||c.length>128?null:c}(a);if(!d)return b.write("HTTP/1.1 400 Bad Request\r\nConnection: close\r\n\r\n"),b.destroy(),null;let e=(0,L.createHash)("sha1").update(d+"258EAFA5-E914-47DA-95CA-C5AB0DC85B11").digest("base64");return b.write(`HTTP/1.1 101 Switching Protocols\r
75
+ ${a}`:a;let e=d[0].includes("\r\n")?"\r\n":"\n",f=d[1].split(/\r?\n/),g=f.reduce((a,b,c)=>(jZ.test(b)&&a.push(c),a),[]);if(b)if(0===g.length)c=[`${jW}: true`,...f];else{let a=g[0],b=/^([\w-]+)/.exec(f[a])?.[1]??jW;c=f.map((c,d)=>d===a?`${b}: true`:c).filter((b,c)=>c===a||!g.includes(c))}else{if(0===g.length)return a;c=f.filter((a,b)=>!g.includes(b))}return`---${e}${c.join(e)}${e}---${d[2]}`+a.slice(d[0].length)}(g,c);if(h!==g){let a=`${f}.tmp-${process.pid}-${Date.now()}`;try{(0,O.mkdirSync)((0,P.dirname)(f),{recursive:!0}),(0,O.writeFileSync)(a,h,"utf8"),(0,O.renameSync)(a,f)}catch(b){try{(0,O.existsSync)(a)&&(0,O.unlinkSync)(a)}catch{}throw b}}let{frontmatter:i}=jS(h);return{filePath:f,disableModelInvocation:jX(i)}}function kh(a,b={}){return{source:a,scope:b.scope??"global",status:b.status??"installed",disabled:b.disabled??!1,...b.version?{version:b.version}:{},...b.counts?{counts:b.counts}:{}}}async function ki(a){let b=await ke(a),{stdout:c}=await (0,ay.eG)(["plugin","list","--json"],{cwd:b,timeout:6e4}),d=(0,ay.nH)(c),e=[];for(let a of d?.npm??[]){if(!a.name)continue;let b=!1!==a.enabled;e.push(kh(a.name,{scope:"global",status:b?"loaded":"disabled",disabled:!b,version:a.version}))}for(let a of d?.marketplace??[]){if(!a.id)continue;let b=a.entries?.[0],c=b??a,d=!1!==c.enabled;e.push(kh(a.id,{scope:(a.scope??b?.scope)==="project"?"project":"global",status:d?b?b.installPath&&(0,O.existsSync)(b.installPath)?"installed":"missing":"loaded":"disabled",disabled:!d,version:c.version}))}return{cwd:b,packages:e}}async function kj(a,b,c,d){let e=await ke(a),f=c?.trim(),g="project"===d?["--scope","project"]:[],h="",i=async(a,b)=>{try{let c=await (0,ay.eG)(a,{cwd:e,timeout:b});return`${c.stdout}${c.stderr}`.slice(-2e3)}catch(a){throw new bG("plugin_action_failed",(`${a.stdout??""}${a.stderr??""}`.trim()||a.message||String(a)).slice(-500))}};if("install"===b){if(!f)throw new bG("invalid_source","source is required");h=await i(["plugin","install",f,"--json",...g],3e5)}else if("remove"===b){if(!f)throw new bG("invalid_source","source is required");h=await i(["plugin","uninstall",f,"--json",...g],12e4)}else if("update"===b)h=await i(["plugin","upgrade",...f?[f,...g]:[]],3e5);else if("disable"===b||"enable"===b){if(!f)throw new bG("invalid_source","source is required");h=await i(["plugin",b,f,"--json",...g],6e4)}let j=await ki(e);return{cwd:j.cwd,packages:j.packages,output:h}}async function kk(a){let b=a?.trim()?await ke(a):null,c=b?ju(b):null,d=function(a=(0,aq.join)((0,R.$M)(),"mcp.json")){return jq(a)}(),e=[];for(let{name:a,config:b}of d.servers){let c=!1!==b.enabled;e.push({name:a,source:"User level",status:c?"configured":"disabled",type:"string"==typeof b.type?b.type:"string"==typeof b.url?"http":"stdio",enabled:c})}for(let a of d.disabledServers)e.push({name:a,source:"Disabled",status:"disabled",enabled:!1});for(let[a,b]of Object.entries(c?.config.mcpServers??{})){let c=!1!==b.enabled;e.push({name:a,source:"Project level",status:c?"configured":"disabled",type:"string"==typeof b.type?b.type:"string"==typeof b.url?"http":"stdio",enabled:c})}for(let a of function(a,b=[]){let c=new Set(b),d=new Set(jr((0,aC.homedir)()));if(a)for(let b of jr((0,aq.resolve)(a)))d.add(b);let e=new Set,f=(0,aq.join)((0,R.$M)(),"mcp.json");(0,ao.existsSync)(f)&&e.add((0,ao.realpathSync)(f)),a&&e.add(jt(a).path);let g=[],h=new Set;for(let a of d){try{if(e.has((0,ao.realpathSync)(a)))continue}catch{continue}let b=function(a){let b=".claude.json"===(0,aq.basename)(a)?".claude":(0,aq.basename)((0,aq.dirname)(a));return".claude"===b?"Claude Code":".codex"===b?"Codex":".cursor"===b?"Cursor":".vscode"===b?"VS Code":b.replace(/^\./,"")||"Configured"}(a);if(a.endsWith(".toml")){for(let d of function(a,b,c){try{if((0,ao.statSync)(a).size>5242880)return[];let d=(0,ao.readFileSync)(a,"utf8"),e=[...d.matchAll(/^\s*\[mcp_servers(?:\.([A-Za-z0-9_-]+)|\."([^"]+)")\]\s*$/gm)];return e.flatMap((a,f)=>{let g=a[1]??a[2];if(!g||c.has(g))return[];let h=d.slice((a.index??0)+a[0].length,e[f+1]?.index);return[{name:g,source:b,status:/^\s*enabled\s*=\s*false\s*$/m.test(h)?"disabled":"configured",type:/^\s*url\s*=/m.test(h)?"http":"stdio"}]})}catch{return[]}}(a,b,c)){let a=`${d.source}:${d.name}`;h.has(a)||(h.add(a),g.push(d))}continue}for(let d of jq(a).servers){if(c.has(d.name))continue;let a=`${b}:${d.name}`;if(h.has(a))continue;h.add(a);let e="string"==typeof d.config.type?d.config.type:"string"==typeof d.config.url?"http":"stdio";g.push({name:d.name,source:b,status:!1===d.config.enabled?"disabled":"configured",type:e})}}return g}(b??void 0,d.disabledServers))e.push({name:a.name,source:a.source,status:a.status,...a.type?{type:a.type}:{},enabled:"disabled"!==a.status});return{inventory:e}}async function kl(a,b){return!function(a,b){if(!jo.test(b))throw Error("Invalid server name");jw(ju(a).path,()=>{let c=ju(a),d={...c.config.mcpServers??{}};if(!(b in d))throw Error("MCP server was not found");delete d[b];let e={...c.config,mcpServers:d};return aF(c.path,`${JSON.stringify(e,null,2)}
76
+ `),{path:c.path}})}(await ke(a),b),{name:b}}async function km(a){let b={type:a.type};return void 0!==a.command&&(b.command=a.command),void 0!==a.url&&(b.url=a.url),void 0!==a.args&&(b.args=a.args),void 0!==a.env&&(b.env=a.env??{}),void 0!==a.headers&&(b.headers=a.headers??{}),void 0!==a.serverCwd&&(b.cwd=a.serverCwd),void 0!==a.enabled&&(b.enabled=a.enabled),void 0!==a.timeout&&(b.timeout=a.timeout),void 0!==a.requestIdFormat&&(b.requestIdFormat=a.requestIdFormat),kn(a.cwd,a.name,b,a.previousName)}async function kn(a,b,c,d){let e=await ke(a);if("object"!=typeof c||null===c||Array.isArray(c))throw new bG("invalid_mcp","server must be an object");let f={...c};null===f.env&&(f.env={}),null===f.headers&&(f.headers={});try{jv(b,f)}catch(a){throw new bG("invalid_mcp",a instanceof Error?a.message:String(a))}try{var g=e,h=b,i=f,j=d;if(jv(h,i),void 0!==j&&!jo.test(j))throw Error("Invalid previous server name");jw(ju(g).path,()=>{let a=ju(g),b=a.config.mcpServers??{};if(void 0!==j&&j!==h&&Object.hasOwn(b,h))throw new jx(h);let c={...b},d=c[j??h];j&&j!==h&&delete c[j],c[h]={...i,...d?.env!==void 0&&void 0===i.env?{env:d.env}:{},...d?.headers!==void 0&&void 0===i.headers?{headers:d.headers}:{}};let e={...a.config,mcpServers:c};return(0,ao.mkdirSync)((0,aq.dirname)(a.path),{recursive:!0}),aF(a.path,`${JSON.stringify(e,null,2)}
77
+ `),{path:a.path}})}catch(a){if(a instanceof jx)throw new bG("mcp_name_conflict",a.message);throw new bG("mcp_write_failed","Unable to write MCP configuration")}return{name:b}}let ko=process.env.SKILLS_API_URL||"https://skills.sh",kp=/\x1B\[[0-9;]*m/g;async function kq(a,b=10){let c=a.trim();if(!c)throw new bG("invalid_query","query is required");let d=Math.min(20,Math.max(1,Math.floor(b)||10));try{let a=await fetch(`${ko}/api/search?q=${encodeURIComponent(c)}&limit=${d}`,{cache:"no-store"});if(!a.ok)throw Error(`skills.sh search failed: HTTP ${a.status}`);let b=await a.json();if("object"!=typeof b||null===b||!("skills"in b)||!Array.isArray(b.skills))throw Error("Invalid skills search response");let e=[];for(let a of b.skills){if("object"!=typeof a||null===a||Array.isArray(a))continue;let b="name"in a&&"string"==typeof a.name?a.name.trim():void 0,c="source"in a&&"string"==typeof a.source?a.source.trim():void 0,f="id"in a&&"string"==typeof a.id?a.id.trim():void 0;if(!b||!c&&!f)continue;let g="installs"in a&&"number"==typeof a.installs?a.installs:0;if(e.push({package:`${c||f}@${b}`,...g>0?{installs:`${g} installs`}:{},...f?{url:`${ko}/${f}`}:{}}),e.length>=d)break}return{query:c,results:e}}catch{let{stdout:a,stderr:b}=await jA(["skills","find",c],{timeout:2e4,env:{...process.env,FORCE_COLOR:"0"}});return{query:c,results:(function(a){let b=a.replace(kp,""),c=[],d=b.split("\n");for(let a=0;a<d.length;a++){let b=d[a].trim().match(/^([\w.\-]+\/[\w.\-@:]+)\s+([\d.,]+[KMB]?\s+installs)$/);if(b){let e=d[a+1]?.trim().replace(/^└\s*/,"");c.push({package:b[1],installs:b[2],...e?.startsWith("https://")?{url:e}:{}})}}return c})(a+b).slice(0,d)}}}async function kr(a,b,c){let d,e=a.trim();if(!e)throw new bG("invalid_package","package is required");let f="project"!==b;if(f)c?.trim()&&(d=await ke(c));else{if(!c?.trim())throw new bG("invalid_cwd","cwd is required for project install");d=await ke(c)}let g=["skills","add",e,"-y","--agent","universal"];f&&g.push("-g");try{let{stdout:a,stderr:b}=await jA(g,{timeout:6e4,cwd:d,env:{...process.env,FORCE_COLOR:"0"}}),c=(a+b).replace(kp,"");if(!/Installation complete|Installed \d+ skill/.test(c))throw new bG("skill_install_failed",c.slice(-300)||"Install failed")}catch(a){if(a instanceof bG)throw a;throw new bG("skill_install_failed",(((a.stdout??"")+(a.stderr??"")).replace(kp,"")||a.message||String(a)).slice(-300)||"Install failed")}return{package:e,scope:f?"global":"project"}}async function ks(a){let b=a?.trim()?await ke(a):void 0,c=(await jH(b??process.cwd())).agents.map(a=>({name:a.name,description:a.description,source:a.source,...a.filePath?{filePath:a.filePath}:{},systemPrompt:a.systemPrompt,...a.disabled?{disabled:!0}:{}}));return b?{cwd:b,agents:c}:{agents:c}}async function kt(a){let b,c=a.name.trim(),d=a.description.trim();if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(c))throw new bG("invalid_name","name must be kebab-case");if(!d)throw new bG("invalid_description","description is required");let e={...void 0!==a.tools?{tools:a.tools}:{},...void 0!==a.model?{model:a.model}:{},...void 0!==a.thinkingLevel?{thinkingLevel:a.thinkingLevel}:{},...void 0!==a.prewalk?{prewalk:a.prewalk}:{},...void 0!==a.advisor?{advisor:a.advisor}:{},...void 0!==a.blocking?{blocking:a.blocking}:{},...a.cwd?.trim()?{cwd:a.cwd.trim()}:{}};try{b=await jL({scope:a.scope,name:c,description:d,systemPrompt:a.systemPrompt,...e})}catch(g){let f=g instanceof Error?g.message:String(g);if(/already exists/i.test(f))try{b=await jM({scope:a.scope,name:c,description:d,systemPrompt:a.systemPrompt,...e})}catch(a){throw new bG("agent_save_failed",a instanceof Error?a.message:String(a))}else throw new bG("agent_save_failed",f)}return{name:c,filePath:b}}async function ku(a){try{await jN({name:a.name,scope:a.scope,...a.cwd?.trim()?{cwd:a.cwd.trim()}:{}})}catch(a){throw new bG("agent_delete_failed",a instanceof Error?a.message:String(a))}return{name:a.name}}async function kv(a){let b=a.name.trim();if(!b)throw new bG("invalid_name","name is required");let c=a.cwd?.trim()?await ke(a.cwd):void 0,d=(await jH(c??process.cwd())).agents.find(c=>c.name===b&&(!a.scope||c.source===a.scope));if(!d)throw new bG("agent_not_found",`Agent "${b}" was not found`);return{name:d.name,description:d.description,source:d.source,...d.filePath?{filePath:d.filePath}:{},...d.tools?{tools:d.tools}:{},...void 0!==d.model?{model:d.model}:{},...void 0!==d.thinkingLevel?{thinkingLevel:d.thinkingLevel}:{},...void 0!==d.prewalk?{prewalk:d.prewalk}:{},...void 0!==d.advisor?{advisor:d.advisor}:{},...void 0!==d.blocking?{blocking:d.blocking}:{},systemPrompt:d.systemPrompt,...d.disabled?{disabled:!0}:{},...d.isShadowed?{isShadowed:!0}:{},...void 0!==d.overrideModel?{overrideModel:d.overrideModel}:{},...void 0!==d.prewalkOverride?{prewalkOverride:d.prewalkOverride}:{},...void 0!==d.advisorOverride?{advisorOverride:d.advisorOverride}:{}}}async function kw(a){let b=a.cwd?.trim()?await ke(a.cwd):void 0;try{return await jO({scope:a.scope,...b?{cwd:b}:{},...void 0!==a.force?{force:a.force}:{}})}catch(a){throw new bG("agent_unpack_failed",a instanceof Error?a.message:String(a))}}async function kx(a,b){let c=await ke(a),d=b.trim();if("SKILL.md"!==(0,P.basename)(d))throw new bG("not_a_skill_file","not a SKILL.md file");let e=(await j0(c)).skills.find(a=>a.filePath===d);if(!e)throw new bG("skill_not_found","skill was not found");let f=new Set(await am());for(let a of jU(c))f.add(a);let g=(0,O.realpathSync)(e.filePath);if(!an(g,f))throw new bG("access_denied","Path is outside allowed workspaces");let{frontmatter:h,body:i}=jS((0,O.readFileSync)(g,"utf8")),j=i.slice(0,8e3);return{name:e.name,description:e.description,filePath:g,disableModelInvocation:jX(h),...e.sourceInfo.scope?{scope:e.sourceInfo.scope}:{},...e.sourceInfo.source?{source:e.sourceInfo.source}:{},...e.install?{install:e.install}:{},frontmatter:h,contentPreview:j,contentTruncated:i.length>j.length}}async function ky(a,b){let c,d,e=await ke(a),f=b.trim();if(!f)throw new bG("invalid_name","name is required");try{c=ju(e)}catch(a){throw new bG("mcp_read_failed",a instanceof Error?a.message:String(a))}let g=c.config.mcpServers?.[f];if(!g)throw new bG("mcp_not_found",`MCP server "${f}" was not found`);return{name:f,source:"Project level",config:(d={...g},delete d.env,delete d.headers,d),envConfigured:void 0!==g.env,headersConfigured:void 0!==g.headers,path:c.path}}async function kz(a,b){if("object"!=typeof b||null===b||Array.isArray(b))throw new bG("invalid_mcp","server must be an object");let c={...b};null===c.env&&(c.env={}),null===c.headers&&(c.headers={});try{jv(a,c)}catch(a){throw new bG("invalid_mcp",a instanceof Error?a.message:String(a))}return{ok:!0}}async function kA(a){let b=await ke(a.cwd),{skills:c}=await j0(b),d=c.map(a=>a.install).filter(a=>!!a).filter(b=>!a.package||b.package===a.package&&b.scope===a.scope);if(a.package&&0===d.length)throw new bG("skill_not_installed","Installed skill not found");return{updates:await kd(d,{githubToken:process.env.GITHUB_TOKEN||process.env.GH_TOKEN})}}async function kB(a){let b=await ke(a.cwd),{skills:c}=await j0(b),d=c.find(b=>b.install?.package===a.package&&b.install.scope===a.scope);if(!d?.install)throw new bG("skill_not_installed","Installed skill not found");if(!d.install.canCheckForUpdates)throw new bG("skill_update_unsupported","This skill cannot be updated automatically");try{var e;let c,f,g,h,{stdout:i,stderr:j}=await jA((e=d.install,f=(c=j6(e.skillPath??""))?`${e.source}/${c}`:e.source,g=e.ref?`#${encodeURIComponent(e.ref)}`:"",h=["skills","add",`${f}${g}`,"--skill",j5(e.package),"-y","--agent","universal"],"global"===e.scope&&h.push("-g"),h),{timeout:6e4,cwd:"project"===a.scope?b:void 0,env:{...process.env,FORCE_COLOR:"0"}}),k=(await j0(b)).skills.find(b=>b.install?.package===a.package&&b.install.scope===a.scope);return{success:!0,output:`${i}${j}`.slice(-500),...k?{skill:k}:{}}}catch(c){let a="object"==typeof c&&null!==c&&"stdout"in c&&"string"==typeof c.stdout?c.stdout:"",b="object"==typeof c&&null!==c&&"stderr"in c&&"string"==typeof c.stderr?c.stderr:"";throw new bG("skill_update_failed",(`${a}${b}`.trim()||(c instanceof Error?c.message:String(c))).slice(-500))}}async function kC(){try{let a=await (0,iR.runUtilityCommand)({type:"get_login_providers"},3e4),b=[];if(Array.isArray(a.providers))for(let c of a.providers)!("object"!=typeof c||null===c||Array.isArray(c))&&"id"in c&&"string"==typeof c.id&&"name"in c&&"string"==typeof c.name&&"authenticated"in c&&"boolean"==typeof c.authenticated&&(!("available"in c)||!1!==c.available)&&b.push({id:c.id,name:c.name,loggedIn:c.authenticated});return{providers:b}}catch(a){throw new bG("auth_failed",a instanceof Error?a.message:String(a))}}let kD=["skills.list","skills.get","skills.toggle","skills.search","skills.install","skills.check","skills.update","plugins.list","plugins.action","agents.list","agents.get","agents.save","agents.delete","agents.unpack","agents.setDisabled","agents.setOverride","mcp.list","mcp.get","mcp.validate","mcp.save","mcp.delete"];function kE(a){let b=(0,S.oJ)(a)?.trim();if(!b||b.length>1024)throw new bG("invalid_cwd","cwd is required");return b}function kF(a){if(void 0===a)return;let b=(0,S.oJ)(a)?.trim();if(b){if(b.length>1024)throw new bG("invalid_cwd","cwd is too long");return b}}function kG(a,b="name"){let c=(0,S.oJ)(a)?.trim();if(!c||c.length>128)throw new bG("invalid_name",`${b} is required`);return c}function kH(a,b,c,d){let e=void 0===b?0:Number(b),f=void 0===c?d:Number(c);if(!Number.isInteger(e)||e<0||e>1e5)throw new bG("invalid_args","offset must be an integer >= 0");if(!Number.isInteger(f)||f<1||f>200)throw new bG("invalid_args","limit must be an integer 1-200");return{offset:e,limit:f}}async function kI(a){let b=a.trim();if(!an(b,await am()))throw new bG("access_denied","Path is outside allowed workspaces");return b}function kJ(a){if("user"===a||"project"===a)return a;throw new bG("invalid_scope","scope must be user or project")}function kK(a){if("global"===a||"project"===a)return a;throw new bG("invalid_scope","scope must be global or project")}async function kL(a,b,c){if("object"!=typeof b||null===b||Array.isArray(b))throw new bG("invalid_args","args must be an object");switch(function(a){if(!kD.includes(a))throw new bG("unknown_action",`Unknown extensions action "${a}"`);return a}(a)){case"skills.list":{let a=await kI(kE(b.cwd)),c=await kf(a),{offset:d,limit:e}=kH(c.skills.length,b.offset,b.limit,50),f=c.skills.map(a=>({name:a.name,description:a.description,filePath:a.filePath,disableModelInvocation:a.disableModelInvocation,...a.scope?{scope:a.scope}:a.sourceInfo?.scope?{scope:a.sourceInfo.scope}:{},...a.sourceInfo?.source?{source:a.sourceInfo.source}:{},...a.install?{install:a.install}:{}}));return{cwd:c.cwd,skills:f.slice(d,d+e),total:f.length,offset:d,limit:e,hasMore:d+e<f.length}}case"skills.get":{let a=kE(b.cwd),c=(0,S.oJ)(b.filePath)?.trim();if(!c||c.length>1024)throw new bG("invalid_path","filePath is required");return kx(a,c)}case"skills.toggle":{let a=kE(b.cwd),c=(0,S.oJ)(b.filePath)?.trim();if(!c||c.length>1024)throw new bG("invalid_path","filePath is required");if("boolean"!=typeof b.disableModelInvocation)throw new bG("invalid_flag","disableModelInvocation must be a boolean");return kg(a,c,b.disableModelInvocation)}case"skills.search":{let a=(0,S.oJ)(b.query)?.trim();if(!a||a.length>200)throw new bG("invalid_query","query is required");let c=b.limit,d=void 0===c?10:Number(c);if(!Number.isInteger(d)||d<1||d>20)throw new bG("invalid_limit","limit must be 1-20");return kq(a,d)}case"skills.install":{let a=(0,S.oJ)(b.package)?.trim();if(!a||a.length>256)throw new bG("invalid_package","package is required");return kr(a,kK(b.scope),kF(b.cwd))}case"skills.check":{let a=kE(b.cwd),c=void 0===b.package?void 0:(0,S.oJ)(b.package)?.trim(),d=void 0===b.scope?void 0:kK(b.scope);if(c&&!d||!c&&d)throw new bG("invalid_args","package and scope must be provided together");return kA({cwd:a,...c?{package:c,scope:d}:{}})}case"skills.update":{let a=kE(b.cwd),c=(0,S.oJ)(b.package)?.trim();if(!c)throw new bG("invalid_package","package is required");return kB({cwd:a,package:c,scope:kK(b.scope)})}case"plugins.list":{let a=await kI(kE(b.cwd)),c=await ki(a),{offset:d,limit:e}=kH(c.packages.length,b.offset,b.limit,50);return{cwd:c.cwd,packages:c.packages.slice(d,d+e),total:c.packages.length,offset:d,limit:e,hasMore:d+e<c.packages.length}}case"plugins.action":{let a=kE(b.cwd),c=(0,S.oJ)(b.action)?.trim();if("install"!==c&&"remove"!==c&&"update"!==c&&"disable"!==c&&"enable"!==c)throw new bG("invalid_action","plugin action is required");let d=(0,S.oJ)(b.source)?.trim();if("update"!==c&&(!d||d.length>512))throw new bG("invalid_source","source is required");if(d&&d.length>512)throw new bG("invalid_source","source is too long");let e=(0,S.oJ)(b.scope)?.trim(),f="project"===e?"project":"global"===e?"global":void 0;if(void 0!==b.scope&&void 0===f&&e)throw new bG("invalid_scope","scope must be global or project");return kj(a,c,d||void 0,f)}case"agents.list":{let a=kF(b.cwd),c=await ks(a),d=c.agents;if(void 0!==b.scope){let a=(0,S.oJ)(b.scope)?.trim();d=d.filter(b=>b.source===a)}let e=(0,S.oJ)(b.query)?.trim().toLowerCase();e&&(d=d.filter(a=>`${a.name} ${a.description} ${a.systemPrompt??""}`.toLowerCase().includes(e)));let{offset:f,limit:g}=kH(d.length,b.offset,b.limit,50);return{...c.cwd?{cwd:c.cwd}:{},agents:d.slice(f,f+g).map(a=>({name:a.name,description:a.description,source:a.source,...a.filePath?{filePath:a.filePath}:{},...a.disabled?{disabled:!0}:{}})),total:d.length,offset:f,limit:g,hasMore:f+g<d.length}}case"agents.get":{let a=kG(b.name),c=void 0===b.scope?void 0:kJ(b.scope),d=kF(b.cwd);return kv({name:a,...c?{scope:c}:{},...d?{cwd:d}:{}})}case"agents.save":{let a=kG(b.name);if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a))throw new bG("invalid_name","name must be kebab-case");let c=(0,S.oJ)(b.description)?.trim();if(!c||c.length>500)throw new bG("invalid_description","description is required");let d=(0,S.oJ)(b.systemPrompt);if(void 0===d||Buffer.byteLength(d,"utf8")>0x1000000)throw new bG("invalid_prompt","systemPrompt is required");let e=kJ(b.scope),f=kF(b.cwd),g=void 0===b.tools?void 0:function(a,b){if(!Array.isArray(a)||a.some(a=>"string"!=typeof a))throw new bG("invalid_args",`${b} must be an array of strings`);return a}(b.tools,"tools"),h=void 0===b.model?void 0:function(a){if("string"==typeof a&&a.trim())return a.trim();if(Array.isArray(a)&&a.length>0&&a.every(a=>"string"==typeof a&&a.trim()))return a;throw new bG("invalid_args","model must be a non-empty selector or list")}(b.model),i=void 0===b.thinkingLevel?void 0:function(a,b){if("string"!=typeof a||!a.trim()||a.length>64)throw new bG("invalid_args",`${b} must be a non-empty string`);return a}(b.thinkingLevel,"thinkingLevel"),j=void 0===b.prewalk?void 0:kM(b.prewalk,"prewalk"),k=void 0===b.advisor?void 0:kM(b.advisor,"advisor"),l=void 0===b.blocking?void 0:function(a,b){if("boolean"!=typeof a)throw new bG("invalid_args",`${b} must be a boolean`);return a}(b.blocking,"blocking");return kt({name:a,description:c,systemPrompt:d,scope:e,...f?{cwd:f}:{},...void 0!==g?{tools:g}:{},...void 0!==h?{model:h}:{},...void 0!==i?{thinkingLevel:i}:{},...void 0!==j?{prewalk:j}:{},...void 0!==k?{advisor:k}:{},...void 0!==l?{blocking:l}:{}})}case"agents.delete":{let a=kG(b.name),c=kJ(b.scope),d=kF(b.cwd);return ku({name:a,scope:c,...d?{cwd:d}:{}})}case"agents.unpack":{let a=kJ(b.scope),c=kF(b.cwd),d=void 0===b.force?void 0:!0===b.force;if(void 0!==b.force&&"boolean"!=typeof b.force)throw new bG("invalid_args","force must be a boolean");return kw({scope:a,...c?{cwd:c}:{},...void 0!==d?{force:d}:{}})}case"agents.setDisabled":{let a=kG(b.name);if("boolean"!=typeof b.disabled)throw new bG("invalid_args","disabled must be a boolean");let c=a_(),d=new Set(Array.isArray(c.settings.task?.disabledAgents)?c.settings.task.disabledAgents:[]);b.disabled?d.add(a):d.delete(a);let e=aZ(c.settings,{task:{disabledAgents:[...d]}});try{a0(e)}catch(a){throw new bG("agent_settings_failed",a instanceof Error?a.message:String(a))}return{name:a,disabled:b.disabled}}case"agents.setOverride":{let a=kG(b.name),c=(0,S.oJ)(b.kind)?.trim();if("model"!==c&&"prewalk"!==c&&"advisor"!==c)throw new bG("invalid_args","kind must be model, prewalk, or advisor");let d=a_(),e=d.settings.task??{},f={};if("model"===c){let c={...e.agentModelOverrides??{}};if(void 0===b.value||null===b.value||""===b.value)delete c[a];else if("string"==typeof b.value&&b.value.trim())c[a]=b.value.trim();else if(Array.isArray(b.value)&&b.value.every(a=>"string"==typeof a&&a.trim()))c[a]=b.value;else throw new bG("invalid_args","value must be a non-empty model selector or list");f.agentModelOverrides=c}else{let d="prewalk"===c?"agentPrewalk":"agentAdvisor",g={...e[d]??{}};if(void 0===b.value||null===b.value||""===b.value)delete g[a];else if("boolean"==typeof b.value||"string"==typeof b.value)g[a]=b.value;else throw new bG("invalid_args","value must be a boolean or string");f[d]=g}try{a0(aZ(d.settings,{task:f}))}catch(a){throw new bG("agent_settings_failed",a instanceof Error?a.message:String(a))}return{name:a,kind:c}}case"mcp.list":{let a,d,e=kF(b.cwd),f=await kk(e),{offset:g,limit:h}=kH(f.inventory.length,b.offset,b.limit,50),i=c.sessionId??null;if(i){let b=bA(i);if(b?.isAlive())try{let c=await b.getMcpList();b.isAlive()&&bA(i)===b?a=(function(a,b){let c=[...a],d=new Set(a.map(a=>`${a.source}:${a.name}`));for(let a of b){let b=`${a.source}:${a.name}`;d.has(b)||(d.add(b),c.push(a))}return c})(function(a){let b=[],c=null;for(let d of jn(a).split(/\r?\n/)){let a=d.trim();if(!a)continue;let e=a.match(/^(.+?)\s+\([^)]*\):$/);if(e){c=e[1];continue}let f=a.match(/^(.+?)\s+[●◌○]\s+(connected|connecting|not connected|inactive|disabled)(?:\s+\[([^\]]+)\])?$/);if(!f||!c)continue;let g={connected:"connected",connecting:"connecting","not connected":"not_connected",inactive:"inactive",disabled:"disabled"};b.push({name:f[1].trim(),source:c,status:g[f[2]],type:f[3]})}if(b.length>0)return b;for(let c of jn(a).split(/\r?\n/)){let a=c.trim().match(/^(.+?)\s+\|\s+([^|]+?)\s+\|\s+(enabled|disabled)\s+\|\s+.*?(?:\s+\[([^\]]+)\])?$/);if(!a)continue;let d="user"===a[4]?"User level":"project"===a[4]?"Project level":"Configured";b.push({name:a[1].trim(),source:d,status:"enabled"===a[3]?"configured":"disabled",type:a[2].trim()})}return b}(c),f.inventory.map(({name:a,source:b,status:c,type:d})=>({name:a,source:b,status:"disabled"===c?"disabled":"configured",...d?{type:d}:{}}))).map(({name:a,source:b,status:c,type:d})=>({name:a,source:b,status:c,...d?{type:d}:{}})):d="Selected session became inactive — refresh to query its current runtime."}catch{d="Live MCP query failed. Connection status is unknown; refresh to retry."}else d="Selected session is inactive — live MCP status is unavailable."}return{sessionId:i,...a?{liveServers:a}:{},...d?{liveError:d}:{},inventory:f.inventory.slice(g,g+h),total:f.inventory.length,offset:g,limit:h,hasMore:g+h<f.inventory.length}}case"mcp.get":return ky(kE(b.cwd),kG(b.name));case"mcp.validate":return kz(kG(b.name),b.server);case"mcp.save":{let a=kE(b.cwd),c=kG(b.name),d=void 0===b.previousName?void 0:kG(b.previousName,"previousName");return kn(a,c,b.server,d)}case"mcp.delete":return kl(kE(b.cwd),kG(b.name))}}function kM(a,b){if("boolean"==typeof a||"string"==typeof a)return a;throw new bG("invalid_args",`${b} must be a boolean or string`)}async function kN(){var a,b;let c,d;return b=await (a=["--check"],(0,ay.eG)(["update",...a],{timeout:3e5,maxBuffer:1048576}).then(({stdout:a,stderr:b})=>`${a}
78
+ ${b}`.trim())),c=b.match(/^Current version:\s*(\S+)/mi)?.[1]??null,{currentVersion:c,availableVersion:d=b.match(/^New version available:\s*(\S+)/mi)?.[1]??null,updateAvailable:null!==d,updateCommand:"omp update"}}let kO=null;function kP(a){let b=a.match(/^v?(\d+)\.(\d+)\.(\d+)(-.+)?$/);return b?{parts:b.slice(1,4).map(Number),prerelease:!!b[4]}:null}async function kQ(a=!1){if(!a&&kO&&Date.now()-kO.checkedAt<36e5)return kO.status;let b="0.7.6",c="ompgui update";try{let a=await fetch(`https://registry.npmjs.org/${encodeURIComponent("ompgui")}/latest`,{cache:"no-store",signal:AbortSignal.timeout(5e3)}),d=a.ok?await a.json():null,e="string"==typeof d?.version?d.version:null,f=!a.ok||null===e,g={currentVersion:b,availableVersion:e,updateAvailable:!!(e&&function(a,b){let c=kP(a),d=kP(b);if(!c||!d)return!1;for(let a=0;a<c.parts.length;a+=1)if(c.parts[a]!==d.parts[a])return c.parts[a]>d.parts[a];return!c.prerelease&&d.prerelease}(e,b)),updateCommand:c,lookupFailed:f};return f||(kO={checkedAt:Date.now(),status:g}),g}catch{return{currentVersion:b,availableVersion:null,updateAvailable:!1,updateCommand:c,lookupFailed:!0}}}let kR=new Set(["daily","30d","24h"]);function kS(a,b){let c="string"==typeof a?a.trim():"";if("5h"===c||"7d"===c||"monthly"===c||"30d"===c||"daily"===c)return"30d"===c?"monthly":"daily"===c?"5h":c;if("number"==typeof b&&Number.isFinite(b)){if(6e4>=Math.abs(b-18e6))return"5h";if(6e4>=Math.abs(b-6048e5))return"7d";if(36e5>=Math.abs(b-2592e6))return"monthly";if(6e4>=Math.abs(b-864e5))return"5h"}}function kT(a){let b=a.window,c=a.scope;if(!b&&!c?.windowId)return a;let d=kS(c?.windowId)??kS(b?.id)??kS(void 0,b?.durationMs);if(!d)return a;let e={...c};(c.windowId||b?.id)&&(e.windowId=d);let f=b;if(b){let a=b.label,c=null==a||""===a.trim()||kR.has(a)||a===b.id;f={...b,id:d,...c?{label:d}:{}}}return{...a,scope:e,...f?{window:f}:{}}}async function kU(a=!1,b){let c=(0,R.$M)(),d=globalThis.__ompgui_shared_usage;d&&d.scope===c||(d={scope:c,state:{}},globalThis.__ompgui_shared_usage=d);let e=b?void 0:{...process.env};try{return await kV(d.state,a,{...b??{fetch:()=>kW({env:e}),invalidate:()=>(0,ay.eG)(["usage","invalidate"],{timeout:15e3,env:e})},ttlMs:6e4})}catch(a){return{ok:!1,status:502,error:a instanceof Error?a.message:String(a)}}}async function kV(a,b,c){let d=c.now??Date.now;if(b){if(a.refreshFlight)return a.refreshFlight;let b=(a.refreshGeneration??0)+1;a.refreshGeneration=b,a.entry=null,a.readFlight=null;let e=(async()=>{try{await c.invalidate()}catch{}let e=await c.fetch();return e.ok&&(a.entry={at:d(),payload:e.payload}),a.latestRefresh={generation:b,result:e},e})();a.refreshFlight=e;try{return await e}finally{a.refreshFlight===e&&(a.refreshFlight=null)}}if(a.refreshFlight)return a.refreshFlight;if(a.entry&&d()-a.entry.at<c.ttlMs)return{ok:!0,payload:{...a.entry.payload,cached:!0}};let e=a.refreshGeneration??0,f=a.readFlight;f||(a.readFlight=f={generation:e,promise:c.fetch()});try{let b=await f.promise,c=a.refreshGeneration??0;if(f.generation!==c){if(a.refreshFlight)return a.refreshFlight;let d=a.latestRefresh;if(d?.generation===c)return d.result;return b}return b.ok&&(a.entry={at:d(),payload:b.payload}),b}finally{a.readFlight===f&&(a.readFlight=null)}}async function kW(a={}){let b,c=a.executor??((b,c)=>(0,ay.eG)(b,{...c,env:a.env}));if(!a.executor&&!(0,ay.resolveOmpBin)())return{ok:!1,status:503,error:"omp binary not found"};try{b=(await c(["usage","--json"],{timeout:3e4})).stdout}catch(c){let a=c instanceof Error?c.message:String(c),b=a.toLowerCase();if(b.includes("unknown command")||b.includes("unknown flag")||b.includes("unrecognized command")||b.includes("unrecognized option")||b.includes("invalid command")||/error:\s*(unknown|unrecognized)\s+(command|option|flag)/i.test(a)||/\bcommand not found\b/i.test(a))return{ok:!1,status:501,error:"usage command not supported by installed omp version"};return{ok:!1,status:502,error:a}}if(!b||!b.trim())return{ok:!1,status:501,error:"usage command not supported by installed omp version"};let d=(0,ay.nH)(b);if(!d||"object"!=typeof d)return{ok:!1,status:501,error:"usage command not supported by installed omp version"};let e=(Array.isArray(d.reports)?d.reports:[]).map(a=>Array.isArray(a.limits)?{...a,limits:a.limits.map(kT)}:a),f=Array.isArray(d.accountsWithoutUsage)?d.accountsWithoutUsage:[],g=Array.isArray(d.disabledCredentials)?d.disabledCredentials:[],h=function(a){let b={};for(let[c,d]of Object.entries(a)){if(!Array.isArray(d)){b[c]=d;continue}let a=new Map,e=[];for(let b of d){let c=kS(b.window,b.durationMs);if(!c){e.push(b);continue}let d=!function(a,b){let c="string"==typeof a?a.trim():"";return"daily"===c||"5h"!==c&&"7d"!==c&&"monthly"!==c&&"30d"!==c&&"number"==typeof b&&Number.isFinite(b)&&6e4>=Math.abs(b-864e5)}(b.window,b.durationMs)?b.durationMs:18e6,f=a.get(c);if(!f){a.set(c,{...b,window:c,...void 0!==d?{durationMs:d}:{}});continue}a.set(c,{...f,accounts:f.accounts+b.accounts,usedAccounts:f.usedAccounts+b.usedAccounts,remainingAccounts:f.remainingAccounts+b.remainingAccounts,durationMs:function(a,b,c){if("5h"===a){if(void 0!==b&&6e4>=Math.abs(b-18e6))return b;if(void 0!==c&&6e4>=Math.abs(c-18e6))return c}return b??c}(c,f.durationMs,d)})}b[c]=[...a.values(),...e]}return b}(d.capacity&&"object"==typeof d.capacity?d.capacity:{}),i="number"==typeof d.generatedAt?d.generatedAt:Date.now(),j="no-credentials"===d.emptyReason||0===e.length&&0===f.length&&0===g.length?"no-credentials":void 0;return{ok:!0,payload:{generatedAt:i,reports:e,accountsWithoutUsage:f,disabledCredentials:g,capacity:h,cached:!1,...j?{emptyReason:j}:{}}}}let kX=["usage.get","omp.check","app.check","omp.restart","devices.list","devices.revoke","systemPrompt.get","settings.get","settings.update","update"];class kY extends Error{constructor(a,b,c,d){super(b),this.name="SystemRequestError",this.code=a,void 0!==c&&(this.details=c),void 0!==d&&(this.status=d)}}let kZ=/^d_[A-Za-z0-9_-]{16,64}$/;function k$(a,b){if(void 0!==a){if("boolean"!=typeof a)throw new kY("invalid_args",`${b} must be a boolean`);return a}}async function k_(a){let b=k$(a.refresh,"refresh")??!1,c=await kU(b);if(c.ok){var d;let a;return a={generatedAt:(d=c.payload).generatedAt,reports:d.reports,accountsWithoutUsage:d.accountsWithoutUsage,disabledCredentials:d.disabledCredentials,capacity:d.capacity,cached:d.cached},void 0!==d.emptyReason&&(a.emptyReason=d.emptyReason),a}throw new kY(function(a){switch(a){case 503:return"omp_not_found";case 501:return"usage_not_supported";default:return"usage_fetch_failed"}}(c.status),c.error,void 0,c.status)}async function k0(){try{var a;return{currentVersion:(a=await kN()).currentVersion,availableVersion:a.availableVersion,updateAvailable:a.updateAvailable,updateCommand:a.updateCommand}}catch(a){throw new kY("omp_check_failed",a instanceof Error?a.message:String(a))}}async function k1(a){var b;let c=k$(a.force,"force")??!1;return{currentVersion:(b=await kQ(c)).currentVersion,availableVersion:b.availableVersion,updateAvailable:b.updateAvailable,updateCommand:b.updateCommand,lookupFailed:b.lookupFailed}}async function k2(a){if(!0!==a.confirm)throw new kY("confirm_required","omp.restart requires {confirm:true}");try{(0,ay.YT)();let a=await bC();return{success:!0,sessionsRestarted:a}}catch(a){throw new kY("restart_failed",a instanceof Error?a.message:String(a))}}async function k3(a){let b=function(a){let b="string"==typeof a?a.trim():"";if(!b||b.length>128)throw new kY("invalid_args","sessionId is required");return b}(a.sessionId),c=bA(b);if(!c)throw new kY("session_not_running","Session is not running");try{let a=await c.send({type:"get_state"});if("object"!=typeof a||null===a||Array.isArray(a))throw new kY("system_prompt_failed","Session state unavailable");let d="systemPrompt"in a&&"string"==typeof a.systemPrompt?a.systemPrompt:"";return{sessionId:b,systemPrompt:d}}catch(a){if(a instanceof kY)throw a;throw new kY("system_prompt_failed",a instanceof Error?a.message:String(a))}}function k4(a,b){if("object"!=typeof b||null===b||Array.isArray(b))throw new kY("settings_read_failed","Stored settings are not an object");let c={};for(let[a,d]of Object.entries(b))c[a]=d;return{path:a,settings:c}}async function k5(a){if("object"!=typeof a.settings||null===a.settings||Array.isArray(a.settings))throw new kY("invalid_args","settings must be an object");let b=aX(a.settings),c=function(a){if(void 0===a)return;if(!Array.isArray(a))throw new kY("invalid_args","model lists must contain non-empty strings");let b=[];for(let c of a){if("string"!=typeof c||!c.trim())throw new kY("invalid_args","model lists must contain non-empty strings");b.push(c)}return b}(b.enabledModels);if(void 0!==c&&c.length>0)try{let a=await (0,iR.runUtilityCommand)({type:"get_available_models"},12e4);Array.isArray(a.models)&&iP(c,function(a){if(!Array.isArray(a))return[];let b=[];for(let c of a){if("object"!=typeof c||null===c||!("id"in c)||!("provider"in c))continue;let a=c.id,d=c.provider;"string"==typeof a&&"string"==typeof d&&b.push({id:a,provider:d})}return b}(a.models))}catch(a){if(a instanceof Error&&a.message.startsWith("Ambiguous enabledModels entry"))throw new kY("invalid_args",a.message)}try{let a=a_(),c=aZ(a.settings,b);a0(c);let d=void 0!==b.enabledModels||void 0!==b.disabledProviders||void 0!==b.modelProviderOrder;d&&(aD(),(0,iR.j)());let e=a_(),f=k4(e.path,e.settings).settings;return{success:!0,settings:f,application:{mode:d?"runtime-refresh":"new-session",restartRequired:!1}}}catch(a){if(a instanceof kY)throw a;throw new kY("settings_write_failed",a instanceof Error?a.message:String(a))}}async function k6(a,b,c){if("object"!=typeof b||null===b||Array.isArray(b))throw new kY("invalid_args","args must be an object");switch(function(a){if(!kX.includes(a))throw new kY("unknown_action",`Unknown system action "${a}"`);return a}(a)){case"usage.get":return k_(b);case"omp.check":return k0();case"app.check":return k1(b);case"omp.restart":return k2(b);case"devices.list":return{devices:ag().map(a=>({id:a.id,label:a.label,createdAt:a.createdAt,lastSeenAt:a.lastSeenAt}))};case"devices.revoke":let d=function(a){let b="string"==typeof a?a.trim():"";if(!b||b.length>128||!kZ.test(b))throw new kY("invalid_args","deviceId must be a valid device id");return b}(b.deviceId);if(!ad(()=>{let a=ae(),b=a.devices.filter(a=>a.id!==d);return b.length!==a.devices.length&&(a.devices=b,af(a),!0)}))throw new kY("device_not_found",`Unknown device "${d}"`);return{revoked:!0,deviceId:d,self:d===c.deviceId};case"systemPrompt.get":return k3(b);case"settings.get":try{let a=a_();return k4(a.path,a.settings)}catch(a){if(a instanceof kY)throw a;throw new kY("settings_read_failed",a instanceof Error?a.message:String(a))}case"settings.update":return k5(b);case"update":throw new kY("update_disabled","Automatic self-updating is disabled. Run 'omp update' in your terminal.",{command:"omp update"},400)}}let k7=new Map;function k8(a){hu.cleanupDevice(a);for(let[b,c]of g0)(void 0===a||c.deviceId===a)&&g1(b);!function(a){if(void 0===a){bR.clear(),bQ.clear();return}for(let[b,c]of(bR.delete(a),bQ))c.deviceId===a&&bQ.delete(b)}(a),jj(a).catch(()=>{})}let k9={authenticate:function(a,b=Date.now()){if(a.pairingSecret){if(N()&&!function(a,b=process.env.OMPGUI_PASSWORD??process.env.OMP_WEB_PASSWORD){return N(b)&&(0,L.timingSafeEqual)(M(a),M(b))}(a.password??""))return{ok:!1,code:"password_required",message:"Workspace password is required to pair"};let c=function(a,b,c=Date.now()){return ad(()=>{let d=ae(),e=d.pairing;if(!e)return{error:"invalid"};if(e.expiresAt<=c)return d.pairing=null,af(d),{error:"expired"};if(!$(e.secretHash,Z(a)))return{error:"invalid"};if(d.devices.length>=16)return{error:"device_limit"};let f=(0,L.randomBytes)(32).toString("base64url"),g={id:_("d_"),label:aa(b)||"Phone",tokenHash:Z(f),createdAt:new Date(c).toISOString(),lastSeenAt:new Date(c).toISOString()};return d.devices=[...d.devices,g],d.pairing=null,af(d),{serverId:d.serverId,deviceId:g.id,token:f}})}(a.pairingSecret,a.label,b);return"error"in c?"expired"===c.error?{ok:!1,code:"pairing_expired",message:"Pairing link expired"}:"device_limit"===c.error?{ok:!1,code:"device_limit",message:"Too many paired devices"}:{ok:!1,code:"unauthorized",message:"Invalid pairing secret"}:{ok:!0,serverId:c.serverId,deviceId:c.deviceId,token:c.token}}if(!a.deviceId||!a.token)return{ok:!1,code:"unauthorized",message:"Device token is required"};let c=function(a,b,c=Date.now()){return ad(()=>{let d=ae(),e=d.devices.find(b=>b.id===a);return e&&$(e.tokenHash,Z(b))?(e.lastSeenAt=new Date(c).toISOString(),af(d),{serverId:d.serverId,deviceId:e.id}):null})}(a.deviceId,a.token,b);return c?{ok:!0,serverId:c.serverId,deviceId:c.deviceId}:{ok:!1,code:"unauthorized",message:"Unknown device"}},listSessions:bI,listModels:async()=>Y((await i4()).models).models,fetchUsage:kU,openSession:bJ,sendCommand:bK,createSession:gF,listProjects:gC,listFiles:gD,readFile:gP,listSlash:gE,deleteSession:hv,archiveSession:hw,renameSession:hx,listArchives:hy,restoreArchive:hz,listWorktrees:gQ,addWorktree:gU,writeFile:gR,gitStatus:gS,gitDiff:gT,listBranches:bN,snapshotLeaf:bO,exportSession:bP,listSkills:kf,toggleSkill:kg,searchSkills:kq,installSkill:kr,listAgents:ks,saveAgent:kt,deleteAgent:ku,listAuthProviders:kC,listPlugins:ki,pluginAction:kj,listMcp:kk,deleteMcp:kl,upsertMcp:km,importSession:hA,addProject:gV,removeProject:gW,searchFiles:g$};function la(a,b,c,d){let e=b instanceof Error?b.message:String(b),f=b&&"object"==typeof b&&"code"in b&&"string"==typeof b.code?b.code:c;a(d?{op:"session.err",id:d,code:f,message:e}:{op:"error",code:f,message:e})}function lb(a){return!!a&&"/relay"===a.split("?")[0]}function lc(a,b){let c,d=b.length;return d<126?((c=Buffer.alloc(2))[0]=128|a,c[1]=d):d<=65535?((c=Buffer.alloc(4))[0]=128|a,c[1]=126,c.writeUInt16BE(d,2)):((c=Buffer.alloc(10))[0]=128|a,c[1]=127,c.writeUInt32BE(0,2),c.writeUInt32BE(d,6)),Buffer.concat([c,b])}class ld{get bufferedAmount(){return this.socket.writableLength}constructor(a,b,c=262144){this.socket=a,this.handlers=b,this.maxPayload=c,this.buffer=Buffer.alloc(0),this.closed=!1,this.sentClose=!1,this.socket.on("data",a=>this.onData(a)),this.socket.on("end",()=>this.handlePeerClose()),this.socket.on("close",()=>this.handlePeerClose()),this.socket.on("error",()=>this.handlePeerClose())}feed(a){this.onData(a)}sendText(a){if(this.closed||!this.socket.writable)return!1;let b=Buffer.from(a,"utf8");return!(b.length>this.maxPayload)&&this.writeFrame(lc(1,b))}ping(){!this.closed&&this.socket.writable&&this.writeFrame(lc(9,Buffer.alloc(0)))}close(a=1e3,b=""){if(this.sentClose)return;this.sentClose=!0;let c=Buffer.from(b.slice(0,120),"utf8"),d=Buffer.alloc(2+c.length);d.writeUInt16BE(a,0),c.copy(d,2);try{this.socket.write(lc(8,d))}catch{}this.closed=!0;try{this.socket.end()}catch{}this.handlers.onClose()}writeFrame(a){try{if(this.bufferedAmount+a.length>1e6)return!1;return this.socket.write(a),!0}catch{return this.handlePeerClose(),!1}}onData(a){if(!this.closed)for(this.buffer=0===this.buffer.length?Buffer.from(a):Buffer.concat([this.buffer,a]);;){let a=function(a,b=262144){if(a.length<2)return{status:"need_more"};let c=a[0],d=a[1],e=(128&c)!=0,f=15&c,g=127&d;if(0!=(112&c))return{status:"error",code:1002,reason:"RSV bits must be 0"};if((128&d)==0)return{status:"error",code:1002,reason:"Client frames must be masked"};if(!e)return{status:"error",code:1003,reason:"Fragmented frames are not supported"};if(1!==f&&8!==f&&9!==f&&10!==f)return{status:"error",code:1003,reason:"Unsupported opcode"};let h=2;if(126===g){if(a.length<4)return{status:"need_more"};g=a.readUInt16BE(2),h=4}else if(127===g){if(a.length<10)return{status:"need_more"};let c=a.readUInt32BE(2),d=a.readUInt32BE(6);if(0!==c||d>b)return{status:"error",code:1009,reason:"Frame is too large"};g=d,h=10}if(g>b)return{status:"error",code:1009,reason:"Frame is too large"};if((8===f||9===f||10===f)&&g>125)return{status:"error",code:1002,reason:"Control frame is too large"};let i=h+4+g;if(a.length<i)return{status:"need_more"};let j=a.subarray(h,h+4),k=Buffer.from(a.subarray(h+4,i));for(let a=0;a<k.length;a+=1)k[a]^=j[3&a];return{status:"ok",frame:{fin:e,opcode:f,payload:k},rest:a.subarray(i)}}(this.buffer,this.maxPayload);if("need_more"===a.status){this.buffer.length>this.maxPayload+14&&this.close(1009,"Frame is too large");return}if("error"===a.status)return void this.close(a.code,a.reason);if(this.buffer=a.rest,this.dispatch(a.frame),this.closed)return}}dispatch(a){switch(a.opcode){case 1:{let b=a.payload.toString("utf8");if(Buffer.byteLength(b,"utf8")!==a.payload.length)return void this.close(1007,"Text frame is not valid UTF-8");this.handlers.onText(b);return}case 8:this.close(1e3,"");return;case 9:this.writeFrame(lc(10,a.payload));return;case 10:return;default:this.close(1003,"Unsupported opcode")}}handlePeerClose(){this.closed||(this.closed=!0,this.sentClose=!0,this.handlers.onClose())}}function le(){return globalThis.__ompguiRelayConnectionCount??0}function lf(a){globalThis.__ompguiRelayConnectionCount=a}function lg(a){let b=a.prototype.emit;function c(a,...d){if("upgrade"===a){let a=d[0];if(lb(a.url))return!function(a,b,c){let d;if(!lb(a.url))return b.destroy();if(!function(a){if("cross-site"===a.headers["sec-fetch-site"])return!1;let b=a.headers.origin;if(!b)return!0;let c=a.headers.host;if(!c)return!1;try{return new URL(b).host===c}catch{return!1}}(a)){b.write("HTTP/1.1 403 Forbidden\r\nConnection: close\r\n\r\n"),b.destroy();return}if(le()>=8){b.write("HTTP/1.1 503 Service Unavailable\r\nConnection: close\r\n\r\n"),b.destroy();return}let e=!1,f=null,g=function(a,b,c){let d=function(a){if("websocket"!==String(a.headers.upgrade??"").toLowerCase())return null;let b=String(a.headers.connection??"");if(!/\bupgrade\b/i.test(b)||"13"!==String(a.headers["sec-websocket-version"]??""))return null;let c=a.headers["sec-websocket-key"];return"string"!=typeof c||c.length<16||c.length>128?null:c}(a);if(!d)return b.write("HTTP/1.1 400 Bad Request\r\nConnection: close\r\n\r\n"),b.destroy(),null;let e=(0,L.createHash)("sha1").update(d+"258EAFA5-E914-47DA-95CA-C5AB0DC85B11").digest("base64");return b.write(`HTTP/1.1 101 Switching Protocols\r
79
79
  Upgrade: websocket\r
80
80
  Connection: Upgrade\r
81
81
  Sec-WebSocket-Accept: ${e}\r
82
82
  \r
83
- `),new le(b,c)}(a,b,{onText:a=>f?.onText(a),onClose:()=>{clearInterval(d),d=void 0,e&&(e=!1,lg(Math.max(0,lf()-1))),f?.onClose()}});g&&(e=!0,lg(lf()+1),d=setInterval(()=>g.ping(),3e4),d.unref?.(),f=function(a,b={}){let c,d={...la,...b},e=d.now??Date.now,f=d.setTimeout??setTimeout,g=d.clearTimeout??clearTimeout,h={files:g6,sessions:h7,models:jl,extensions:kM,system:k7,...d.requestHandlers},i=new ai(e),j=d.isDeviceAuthorized??(b.authenticate?()=>!0:a=>ag().some(b=>b.id===a)),k=null,l=0,m=!1,n=0,o=0,p=Promise.resolve(),q=!1,r=!1,s=null,t=null,u=Promise.resolve(),v=new AbortController,w=()=>{l++;let a=v;return r||(v=new AbortController),a.abort(),l},x=(b,c=!1)=>{if(r)return!1;if(!c&&k&&!j(k))return C(),!1;try{for(let c of("error"===b.op||"session.err"===b.op||"cmd_err"===b.op?b={...b,code:/^[A-Za-z0-9_-]{1,64}$/.test(b.code)?b.code:"operation_failed",message:"Relay operation failed"}:"settings_updated"!==b.op||b.success||(b={op:"settings_updated",success:!1,error:"Settings update failed"}),function(a){let b;try{b=JSON.stringify(a)}catch{throw new ah("relay_chunk_invalid")}if(void 0===b)throw new ah("relay_chunk_invalid");let c=Buffer.byteLength(b,"utf8");if(c>0x1000000)throw new ah("relay_frame_too_large");if(c<=262144)return[b];let d=Buffer.from(b,"utf8"),e=Math.ceil(c/49152),f=(0,L.randomUUID)(),g=[];for(let a=0;a<e;a++)g.push(JSON.stringify({op:"chunk",transfer:f,index:a,count:e,data:d.subarray(49152*a,(a+1)*49152).toString("base64")}));return g}(b)))if(!a.sendText(c))return B(),a.close(1013,"Relay backpressure"),!1;return!0}catch{return a.sendText(JSON.stringify({op:"error",code:"frame_too_large",message:"Relay frame exceeds transport limits"})),B(),a.close(1009,"Relay frame too large"),!1}},y=(b,c)=>{g(z),x({op:"hello_err",code:b,message:c}),B(),a.close(1008,c)},z=f(()=>{q||r||y("hello_timeout","hello was not received in time")},1e4),A=function({emit:a,isBackpressured:b,schedule:c=function(a,b){let c=setTimeout(a,b);return()=>clearTimeout(c)},windowMs:d=33}){let e=null,f=null,g=()=>{f?.(),f=null},h=c=>{if(null===e)return!0;if(!c&&b())return!1;let d=e;return e=null,a(d)},i=()=>{f=null,h(!1)};return{push(b){let j=function(a){if(null!==a&&"object"==typeof a&&"type"in a)return a.type}(b);if("message_update"===j){e=b,f||(f=c(i,d));return}if("message_end"===j){e=null,g(),a(b);return}g(),h(!0)&&a(b)},pull:()=>!(null===e||b())&&(g(),h(!1)),reset(){e=null,g()}}}({emit:a=>!!(!s||m||"object"!=typeof a||null===a||Array.isArray(a))||x({op:"event",id:s,payload:a}),isBackpressured:()=>a.bufferedAmount>256e3}),B=()=>{if(!r){if(r=!0,g(z),g(c),i.clear(),w(),k){let a=k8.get(k);a?.delete(C),a?.size===0&&(k8.delete(k),k9(k))}A.reset(),t?.(),t=null,s=null}},C=()=>{B(),a.close(1008,"Device revoked")},D=()=>{if(!r&&k){if(!j(k))return void C();c=f(D,1e3)}},E=async a=>{if(!r){if(!q){if("hello"!==a.op)return void y("unauthorized","hello is required");let b=d.authenticate(a,e());if(!b.ok)return void y(b.code,b.message);k=b.deviceId;let h=k8.get(k);return h||(h=new Set,k8.set(k,h)),h.add(C),q=!0,c=f(D,1e3),g(z),void x({op:"hello_ok",protocol:1,serverId:b.serverId,deviceId:b.deviceId,...b.token?{token:b.token}:{}})}if(!k||!j(k))return void C();switch(a.op){case"request":try{let b="sessions"===a.domain,c=a.args.command,d="object"==typeof c&&null!==c&&"type"in c?c.type:null;b&&("leaf"===a.action||"command"===a.action&&"fork"===d||("delete"===a.action||"archive"===a.action)&&a.args.id===s)&&(w(),m="leaf"===a.action,t?.(),t=null,A.reset(),"delete"===a.action||"archive"===a.action?s=null:"string"==typeof a.args.id&&(s=a.args.id));let e=l,f=k,g=await h[a.domain](a.action,a.args,{deviceId:k,sessionId:s,signal:v.signal,assertActive:()=>{if(!j(f))throw C(),Object.assign(Error("Device authorization expired"),{code:"unauthorized"});if(r||l!==e||k!==f)throw Object.assign(Error("Session changed during request"),{code:"request_cancelled"})}}),i="system"===a.domain&&"devices.revoke"===a.action&&"string"==typeof g.deviceId?g.deviceId:null;x({op:"result",req:a.req,success:!0,data:g},i===k),i&&function(a){let b=k8.get(a);for(let c of(k8.delete(a),b??[]))c();k9(a)}(i),b&&"command"===a.action&&"object"==typeof g.result&&null!==g.result&&"newSessionId"in g.result&&"string"==typeof g.result.newSessionId&&await E({op:"session.open",id:g.result.newSessionId})}catch(c){let b="object"==typeof c&&null!==c&&"code"in c&&"string"==typeof c.code&&/^[A-Za-z0-9_-]{1,64}$/.test(c.code)?c.code:"request_failed";x({op:"result",req:a.req,success:!1,error:{code:b,message:"Relay request failed ("+b+")"}})}return;case"hello":x({op:"error",code:"already_authed",message:"Already authenticated"});return;case"sessions.list":{let a=await d.listSessions();x({op:"sessions",sessions:a.sessions,runningIds:a.runningIds});return}case"models.list":return void x(Y(await d.listModels()));case"usage":{let a=await d.fetchUsage();if(a.ok)return void x({op:"usage",data:a.payload});x({op:"usage",data:{error:a.error,status:a.status}});return}case"session.close":w(),m=!1,t?.(),t=null,s=null,A.reset();return;case"projects.list":try{let a=await (d.listProjects??gC)();x({op:"projects",projects:a})}catch(a){x({op:"error",code:"projects_failed",message:a instanceof Error?a.message:String(a)})}return;case"files.list":try{let b=await (d.listFiles??gD)(a.path);x({op:"files",path:b.path,entries:b.entries})}catch(a){x({op:"error",code:a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:"files_failed",message:a instanceof Error?a.message:String(a)})}return;case"slash.list":return void x({op:"slash",commands:(d.listSlash??gE)()});case"files.read":try{let b=await (d.readFile??gP)(a.path);x({op:"file",path:b.path,name:b.name,...b.language?{language:b.language}:{},...void 0!==b.text?{text:b.text}:{},...b.truncated?{truncated:!0}:{},...void 0!==b.bytes?{bytes:b.bytes}:{},...b.encoding?{encoding:b.encoding}:{}})}catch(a){lb(x,a,"files_failed")}return;case"session.delete":try{s===a.id&&(t?.(),t=null,s=null,A.reset());let b=await (d.deleteSession??hv)(a.id);x({op:"session.deleted",id:b.id});let c=await d.listSessions();x({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(b){lb(x,b,"session_delete_failed",a.id)}return;case"session.archive":try{s===a.id&&(t?.(),t=null,s=null,A.reset());let b=await (d.archiveSession??hw)(a.id);x({op:"session.archived",id:b.id});let c=await d.listSessions();x({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(b){lb(x,b,"session_archive_failed",a.id)}return;case"session.rename":try{let b=await (d.renameSession??hx)(a.id,a.name);x({op:"session.renamed",id:b.id,name:b.name});let c=await d.listSessions();x({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(b){lb(x,b,"session_rename_failed",a.id)}return;case"sessions.archives":try{let a=await (d.listArchives??hy)();x({op:"archives",archives:a})}catch(a){lb(x,a,"archives_failed")}return;case"session.restore":try{let b=await (d.restoreArchive??hz)(a.key);x({op:"session.restored",id:b.id});let c=await d.listSessions();x({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(a){lb(x,a,"session_restore_failed")}return;case"worktrees.list":try{let b=await (d.listWorktrees??gQ)(a.cwd);x({op:"worktrees",cwd:b.cwd,projectRoot:b.projectRoot,isGit:b.isGit,currentWorktreePath:b.currentWorktreePath,worktrees:b.worktrees})}catch(a){lb(x,a,"worktrees_failed")}return;case"worktrees.add":try{let b=await (d.addWorktree??gU)(a.cwd,a.branch);x({op:"worktree.added",path:b.path,branch:b.branch});let c=await (d.listWorktrees??gQ)(a.cwd);x({op:"worktrees",cwd:c.cwd,projectRoot:c.projectRoot,isGit:c.isGit,currentWorktreePath:c.currentWorktreePath,worktrees:c.worktrees})}catch(a){lb(x,a,"worktree_add_failed")}return;case"files.write":try{let b=await (d.writeFile??gR)(a.path,a.text,a.revision,a.baseContentHash,a.createIfMissing);x({op:"file.written",path:b.path,bytes:b.bytes})}catch(a){lb(x,a,"files_failed")}return;case"git.status":try{let b=await (d.gitStatus??gS)(a.cwd);x({op:"git.status",cwd:b.cwd,isGitRepository:b.isGitRepository,repositoryRoot:b.repositoryRoot,files:b.files})}catch(a){lb(x,a,"git_failed")}return;case"git.diff":try{let b=await (d.gitDiff??gT)(a.cwd,a.path);x({op:"git.diff",path:b.path,supported:b.supported,...b.status?{status:b.status}:{},...b.patch?{patch:b.patch}:{},...b.truncated?{truncated:!0}:{}})}catch(a){lb(x,a,"git_failed")}return;case"session.branches":try{let b=await (d.listBranches??bN)(a.id);x({op:"branches",id:b.id,leafId:b.leafId,branches:b.branches})}catch(b){lb(x,b,"branches_failed",a.id)}return;case"session.leaf":try{let b=w();m=!0,A.reset(),t?.(),t=null,s=a.id;let c=await (d.snapshotLeaf??bO)(a.id,a.leafId);if(r||l!==b)return;x({op:"session.snapshot",id:a.id,...c.title?{title:c.title}:{},...c.cwd?{cwd:c.cwd}:{},leafId:c.leafId,messages:c.messages,agent:c.agent});try{let b=await (d.listBranches??bN)(a.id);x({op:"branches",id:b.id,leafId:b.leafId,branches:b.branches})}catch{}}catch(b){lb(x,b,"leaf_failed",a.id)}return;case"session.export":try{let b=await (d.exportSession??bP)(a.id,k);x({op:"session.exported",id:b.id,fileName:b.fileName,bytes:b.bytes,...b.transferId?{transferId:b.transferId}:{},...void 0!==b.size?{size:b.size}:{},...b.html?{html:b.html}:{}})}catch(b){lb(x,b,"export_failed",a.id)}return;case"skills.list":try{let b=await (d.listSkills??kg)(a.cwd);x({op:"skills",cwd:b.cwd,skills:b.skills})}catch(a){lb(x,a,"skills_failed")}return;case"skills.toggle":try{let b=await (d.toggleSkill??kh)(a.cwd,a.filePath,a.disableModelInvocation);x({op:"skill.updated",filePath:b.filePath,disableModelInvocation:b.disableModelInvocation});let c=await (d.listSkills??kg)(a.cwd);x({op:"skills",cwd:c.cwd,skills:c.skills})}catch(a){lb(x,a,"skills_failed")}return;case"plugins.list":try{let b=await (d.listPlugins??kj)(a.cwd);x({op:"plugins",cwd:b.cwd,packages:b.packages})}catch(a){lb(x,a,"plugins_failed")}return;case"plugins.action":try{let b=await (d.pluginAction??kk)(a.cwd,a.action,a.source,a.scope);x({op:"plugins",cwd:b.cwd,packages:b.packages})}catch(a){lb(x,a,"plugins_failed")}return;case"mcp.list":try{let b=await (d.listMcp??kl)(a.cwd);x({op:"mcp",inventory:b.inventory})}catch(a){lb(x,a,"mcp_failed")}return;case"mcp.delete":try{let b=await (d.deleteMcp??km)(a.cwd,a.name);x({op:"mcp.deleted",name:b.name});let c=await (d.listMcp??kl)(a.cwd);x({op:"mcp",inventory:c.inventory})}catch(a){lb(x,a,"mcp_failed")}return;case"mcp.upsert":try{let b=await (d.upsertMcp??kn)(a);x({op:"mcp.upserted",name:b.name});let c=await (d.listMcp??kl)(a.cwd);x({op:"mcp",inventory:c.inventory})}catch(a){lb(x,a,"mcp_failed")}return;case"session.create":try{let b=await (d.createSession??gF)({cwd:a.cwd,message:a.message,provider:a.provider,modelId:a.modelId,thinkingLevel:a.thinkingLevel});x({op:"session.created",id:b.sessionId,cwd:a.cwd}),t?.(),t=null,A.reset(),s=b.sessionId;let c=w();m=!1;let e=await d.openSession(b.sessionId,a=>{r||l!==c||m||A.push(a)});if(r||l!==c||s!==b.sessionId)return void e.dispose();t=e.dispose,A.reset(),x({op:"session.snapshot",id:b.sessionId,...e.snapshot.title?{title:e.snapshot.title}:{},...e.snapshot.cwd?{cwd:e.snapshot.cwd}:{},leafId:e.snapshot.leafId,messages:e.snapshot.messages,agent:e.snapshot.agent})}catch(b){s=null,w(),A.reset();let a=b instanceof Error?b.message:String(b);x({op:"session.err",code:b&&"object"==typeof b&&"code"in b&&"string"==typeof b.code?b.code:"session_create_failed",message:a})}return;case"session.import":try{let b=await (d.importSession??hA)(a.fileName,a.content);x({op:"session.imported",id:b.id,cwd:b.cwd});let c=await d.listSessions();x({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(a){lb(x,a,"session_import_failed")}return;case"skills.search":try{let b=await (d.searchSkills??kr)(a.query,a.limit??10);x({op:"skill.results",query:b.query,results:b.results})}catch(a){lb(x,a,"skills_failed")}return;case"skills.install":try{let b=await (d.installSkill??ks)(a.package,a.scope,a.cwd);if(x({op:"skill.installed",package:b.package,scope:b.scope}),a.cwd){let b=await (d.listSkills??kg)(a.cwd);x({op:"skills",cwd:b.cwd,skills:b.skills})}}catch(a){lb(x,a,"skills_failed")}return;case"agents.list":try{let b=await (d.listAgents??kt)(a.cwd);x({op:"agents",...b.cwd?{cwd:b.cwd}:{},agents:b.agents})}catch(a){lb(x,a,"agents_failed")}return;case"agents.save":try{let b=await (d.saveAgent??ku)({name:a.name,description:a.description,systemPrompt:a.systemPrompt,scope:a.scope,...a.cwd?{cwd:a.cwd}:{}});x({op:"agent.saved",name:b.name,...b.filePath?{filePath:b.filePath}:{}});let c=await (d.listAgents??kt)(a.cwd);x({op:"agents",...c.cwd?{cwd:c.cwd}:{},agents:c.agents})}catch(a){lb(x,a,"agents_failed")}return;case"agents.delete":try{let b=await (d.deleteAgent??kv)({name:a.name,scope:a.scope,...a.cwd?{cwd:a.cwd}:{}});x({op:"agent.deleted",name:b.name});let c=await (d.listAgents??kt)(a.cwd);x({op:"agents",...c.cwd?{cwd:c.cwd}:{},agents:c.agents})}catch(a){lb(x,a,"agents_failed")}return;case"auth.providers":try{let a=await (d.listAuthProviders??kD)();x({op:"auth.providers",providers:a.providers})}catch(a){lb(x,a,"auth_failed")}return;case"files.index":try{let b=await (d.searchFiles??g$)(a.cwd,a.query);x({op:"files.index",cwd:b.cwd,query:b.query,matches:b.matches})}catch(a){lb(x,a,"files_failed")}return;case"projects.add":try{let b=await (d.addProject??gV)(a.cwd);x({op:"project.added",path:b.path,...b.name?{name:b.name}:{}});let c=await (d.listProjects??gC)();x({op:"projects",projects:c})}catch(a){lb(x,a,"projects_failed")}return;case"projects.remove":try{let b=await (d.removeProject??gW)(a.cwd);x({op:"project.removed",path:b.path});let c=await (d.listProjects??gC)();x({op:"projects",projects:c})}catch(a){lb(x,a,"projects_failed")}return;case"settings.get":try{let a=a_();x({op:"settings",settings:a.settings})}catch(a){x({op:"error",code:"settings_read_failed",message:String(a)})}return;case"settings.update":try{let b=a_(),c=aZ(b.settings,a.settings);a0(c);let d=a.settings;(void 0!==d.enabledModels||void 0!==d.disabledProviders||void 0!==d.modelProviderOrder)&&(aD(),(0,ip.j)());let e=a_();x({op:"settings_updated",success:!0,settings:e.settings})}catch(a){x({op:"settings_updated",success:!1,error:String(a)})}return;case"session.open":{let b=w();m=!1,t?.(),t=null,A.reset(),s=a.id;try{let c=await d.openSession(a.id,a=>{r||l!==b||m||A.push(a)});if(r||l!==b||s!==a.id)return void c.dispose();t=c.dispose,A.reset(),x({op:"session.snapshot",id:a.id,...c.snapshot.title?{title:c.snapshot.title}:{},...c.snapshot.cwd?{cwd:c.snapshot.cwd}:{},leafId:c.snapshot.leafId,messages:c.snapshot.messages,agent:c.snapshot.agent})||x({op:"session.err",id:a.id,code:"snapshot_too_large",message:"Session snapshot exceeded maximum frame size"});try{let b=await (d.listBranches??bN)(a.id);x({op:"branches",id:b.id,leafId:b.leafId,branches:b.branches})}catch{}}catch(d){s=null,w(),A.reset();let b=d instanceof Error?d.message:String(d),c=d&&"object"==typeof d&&"code"in d&&"string"==typeof d.code?d.code:"session_open_failed";x({op:"session.err",id:a.id,code:c,message:b})}return}case"cmd":if(!s)return void x({op:"cmd_err",req:a.req,code:"session_not_open",message:"Open a session first"});try{let b=l,c=s,e=await d.sendCommand(c,function(a){switch(a.type){case"prompt":return{type:"prompt",message:a.message??"",...a.images?{images:a.images}:{}};case"abort":return{type:"abort"};case"get_state":return{type:"get_state"};case"set_model":return{type:"set_model",provider:a.provider,modelId:a.modelId};case"set_thinking_level":return{type:"set_thinking_level",level:a.level};case"compact":return{type:"compact"};case"get_subagents":return{type:"get_subagents"};case"get_available_commands":return{type:"get_available_commands"}}}(a));if(r||l!==b||s!==c)return;x({op:"cmd_ok",req:a.req,data:e??null})}catch(d){let b=d instanceof Error?d.message:String(d),c=d&&"object"==typeof d&&"code"in d&&"string"==typeof d.code?d.code:"rpc_command_failed";x({op:"cmd_err",req:a.req,code:c,message:b})}}}};return{onText(a){if(r)return;let b=a,c=!1;try{if(Buffer.byteLength(a,"utf8")>262144)throw Error("Frame exceeds transport limit");let d=JSON.parse(a);if("object"==typeof d&&null!==d&&"op"in d&&"chunk"===d.op){if(!q)return void y("unauthorized","hello is required before chunks");let a=i.accept(d);if(null===a)return;b=a,c=!0}}catch{i.clear(),q?x({op:"error",code:"invalid_frame",message:"Invalid relay frame"}):y("invalid_frame","Invalid relay frame");return}let d=function(a,b=!1){let c;if("string"!=typeof a||0===a.length)return{error:!0,code:"invalid_json",message:"Empty frame"};if(Buffer.byteLength(a,"utf8")>(b?0x1000000:262144))return{error:!0,code:"frame_too_large",message:"Frame is too large"};try{c=JSON.parse(a)}catch{return{error:!0,code:"invalid_json",message:"Frame is not JSON"}}if(!(0,S.u4)(c))return{error:!0,code:"invalid_frame",message:"Frame must be a JSON object"};let d=(0,S.oJ)(c.op);if(!d)return{error:!0,code:"invalid_frame",message:"op is required"};switch(d){case"request":{let{req:a,domain:b,action:d,args:e}=c;if("number"!=typeof a||!Number.isSafeInteger(a)||a<=0||"files"!==b&&"sessions"!==b&&"models"!==b&&"extensions"!==b&&"system"!==b||"string"!=typeof d||!/^[A-Za-z][A-Za-z0-9._-]{0,127}$/.test(d)||"object"!=typeof e||null===e||Array.isArray(e))return{error:!0,code:"invalid_request",message:"Invalid request envelope"};return{op:"request",req:a,domain:b,action:d,args:e}}case"hello":return function(a){if(1!==(0,S.i)(a.protocol))return{error:!0,code:"protocol",message:"Unsupported relay protocol"};let b={op:"hello",protocol:1},c=(0,S.oJ)(a.pairingSecret)?.trim(),d=(0,S.oJ)(a.deviceId)?.trim(),e=(0,S.oJ)(a.token)?.trim(),f=(0,S.oJ)(a.password),g=(0,S.oJ)(a.label)?.trim();if(c){if(!W.test(c))return{error:!0,code:"unauthorized",message:"Invalid pairing secret"};b.pairingSecret=c}else{if(!d||!e)return{error:!0,code:"unauthorized",message:"Pairing secret or device token is required"};if(!V.test(d)||!W.test(e))return{error:!0,code:"unauthorized",message:"Invalid device credentials"};b.deviceId=d,b.token=e}return void 0!==f&&(b.password=f),g&&(b.label=g.slice(0,64)),b}(c);case"sessions.list":return{op:"sessions.list"};case"models.list":return{op:"models.list"};case"usage":return{op:"usage"};case"session.open":{let a=(0,S.oJ)(c.id)?.trim();if(!a||!X.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};return{op:"session.open",id:a}}case"session.close":return{op:"session.close"};case"session.create":{let a=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};let b={op:"session.create",cwd:a},d=(0,S.oJ)(c.message);if(void 0!==d){if(d.length>3145728)return{error:!0,code:"invalid_command",message:"prompt message is too long"};b.message=d}let e=(0,S.oJ)(c.provider)?.trim(),f=(0,S.oJ)(c.modelId)?.trim();e&&(b.provider=e.slice(0,512)),f&&(b.modelId=f.slice(0,512));let g=(0,S.oJ)(c.thinkingLevel)?.trim();return g&&(b.thinkingLevel=g.slice(0,32)),b}case"projects.list":return{op:"projects.list"};case"files.list":{let a=(0,S.oJ)(c.path)?.trim();if(a&&a.length>1024)return{error:!0,code:"invalid_path",message:"path is too long"};return a?{op:"files.list",path:a}:{op:"files.list"}}case"slash.list":return{op:"slash.list"};case"files.read":{let a=(0,S.oJ)(c.path)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_path",message:"path is required"};return{op:"files.read",path:a}}case"session.delete":case"session.archive":{let a=(0,S.oJ)(c.id)?.trim();if(!a||!X.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};return"session.delete"===d?{op:"session.delete",id:a}:{op:"session.archive",id:a}}case"session.rename":{let a=(0,S.oJ)(c.id)?.trim(),b=(0,S.oJ)(c.name)?.trim();if(!a||!X.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};if(!b||b.length>200)return{error:!0,code:"invalid_name",message:"name is required"};return{op:"session.rename",id:a,name:b}}case"sessions.archives":return{op:"sessions.archives"};case"session.restore":{let a=(0,S.oJ)(c.key)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_key",message:"archive key is required"};return{op:"session.restore",key:a}}case"worktrees.list":{let a=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};return{op:"worktrees.list",cwd:a}}case"worktrees.add":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.branch)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>128)return{error:!0,code:"invalid_branch",message:"branch is required"};return{op:"worktrees.add",cwd:a,branch:b}}case"files.write":{let a=(0,S.oJ)(c.path)?.trim(),b=(0,S.oJ)(c.text);if(!a||a.length>1024)return{error:!0,code:"invalid_path",message:"path is required"};if(void 0===b)return{error:!0,code:"invalid_text",message:"text is required"};if(b.length>8e4)return{error:!0,code:"invalid_text",message:"text is too long"};return{op:"files.write",path:a,text:b,..."string"==typeof c.revision?{revision:c.revision}:{},..."string"==typeof c.baseContentHash?{baseContentHash:c.baseContentHash}:{},...!0===c.createIfMissing?{createIfMissing:!0}:{}}}case"git.status":{let a=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};return{op:"git.status",cwd:a}}case"git.diff":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.path)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>1024)return{error:!0,code:"invalid_path",message:"path is required"};return{op:"git.diff",cwd:a,path:b}}case"session.branches":case"session.export":{let a=(0,S.oJ)(c.id)?.trim();if(!a||!X.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};return"session.branches"===d?{op:"session.branches",id:a}:{op:"session.export",id:a}}case"session.leaf":{let a=(0,S.oJ)(c.id)?.trim(),b=(0,S.oJ)(c.leafId)?.trim();if(!a||!X.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};if(!b||b.length>200)return{error:!0,code:"invalid_leaf",message:"leafId is required"};return{op:"session.leaf",id:a,leafId:b}}case"skills.list":case"plugins.list":{let a=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};return"skills.list"===d?{op:"skills.list",cwd:a}:{op:"plugins.list",cwd:a}}case"skills.toggle":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.filePath)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>1024)return{error:!0,code:"invalid_path",message:"filePath is required"};if("boolean"!=typeof c.disableModelInvocation)return{error:!0,code:"invalid_flag",message:"disableModelInvocation must be a boolean"};return{op:"skills.toggle",cwd:a,filePath:b,disableModelInvocation:c.disableModelInvocation}}case"plugins.action":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.action)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if("install"!==b&&"remove"!==b&&"update"!==b&&"disable"!==b&&"enable"!==b)return{error:!0,code:"invalid_action",message:"plugin action is required"};let d=(0,S.oJ)(c.source)?.trim();if("update"!==b&&(!d||d.length>512))return{error:!0,code:"invalid_source",message:"source is required"};if(d&&d.length>512)return{error:!0,code:"invalid_source",message:"source is too long"};let e=(0,S.oJ)(c.scope)?.trim(),f="project"===e?"project":"global"===e?"global":void 0;return{op:"plugins.action",cwd:a,action:b,...d?{source:d}:{},...f?{scope:f}:{}}}case"mcp.list":{let a=(0,S.oJ)(c.cwd)?.trim();if(a&&a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return a?{op:"mcp.list",cwd:a}:{op:"mcp.list"}}case"mcp.delete":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.name)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>128)return{error:!0,code:"invalid_name",message:"name is required"};return{op:"mcp.delete",cwd:a,name:b}}case"mcp.upsert":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.name)?.trim(),d=(0,S.oJ)(c.type)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>128)return{error:!0,code:"invalid_name",message:"name is required"};if("stdio"!==d&&"http"!==d&&"sse"!==d)return{error:!0,code:"invalid_type",message:"type must be stdio, http, or sse"};let e=(0,S.oJ)(c.command)?.trim(),f=(0,S.oJ)(c.url)?.trim();if(e&&e.length>1024)return{error:!0,code:"invalid_command",message:"command is too long"};if(f&&f.length>1024)return{error:!0,code:"invalid_url",message:"url is too long"};let g={op:"mcp.upsert",cwd:a,name:b,type:d};if(e&&(g.command=e),f&&(g.url=f),Array.isArray(c.args)){let a=[];for(let b of c.args){if("string"!=typeof b)return{error:!0,code:"invalid_args",message:"args must be strings"};if(b.length>256)return{error:!0,code:"invalid_args",message:"arg is too long"};if(a.push(b),a.length>16)return{error:!0,code:"invalid_args",message:"too many args"}}a.length>0&&(g.args=a)}else if(null!=c.args)return{error:!0,code:"invalid_args",message:"args must be an array"};return g}case"session.import":{let a=(0,S.oJ)(c.fileName)?.trim(),b=(0,S.oJ)(c.content);if(!a||a.length>200||a.includes("/")||a.includes("\\"))return{error:!0,code:"invalid_file_name",message:"fileName is required"};if(void 0===b||!b.trim())return{error:!0,code:"invalid_content",message:"content is required"};if(b.length>18e4)return{error:!0,code:"invalid_content",message:"content is too long"};return{op:"session.import",fileName:a,content:b}}case"skills.search":{let a=(0,S.oJ)(c.query)?.trim();if(!a||a.length>200)return{error:!0,code:"invalid_query",message:"query is required"};let b=c.limit;if(void 0===b)return{op:"skills.search",query:a};let d=(0,S.i)(b);if(void 0===d||!Number.isInteger(d)||d<1||d>20)return{error:!0,code:"invalid_limit",message:"limit must be 1-20"};return{op:"skills.search",query:a,limit:d}}case"skills.install":{let a=(0,S.oJ)(c.package)?.trim(),b=(0,S.oJ)(c.scope)?.trim(),d=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>256)return{error:!0,code:"invalid_package",message:"package is required"};if("global"!==b&&"project"!==b)return{error:!0,code:"invalid_scope",message:"scope must be global or project"};if(d&&d.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return{op:"skills.install",package:a,scope:b,...d?{cwd:d}:{}}}case"agents.list":{let a=(0,S.oJ)(c.cwd)?.trim();if(a&&a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return a?{op:"agents.list",cwd:a}:{op:"agents.list"}}case"agents.save":{let a=(0,S.oJ)(c.name)?.trim(),b=(0,S.oJ)(c.description)?.trim(),d=(0,S.oJ)(c.systemPrompt),e=(0,S.oJ)(c.scope)?.trim(),f=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>64||!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a))return{error:!0,code:"invalid_name",message:"name must be kebab-case"};if(void 0===b||!b||b.length>500)return{error:!0,code:"invalid_description",message:"description is required"};if(void 0===d||d.length>2e4)return{error:!0,code:"invalid_prompt",message:"systemPrompt is required"};if("user"!==e&&"project"!==e)return{error:!0,code:"invalid_scope",message:"scope must be user or project"};if(f&&f.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return{op:"agents.save",name:a,description:b,systemPrompt:d,scope:e,...f?{cwd:f}:{}}}case"agents.delete":{let a=(0,S.oJ)(c.name)?.trim(),b=(0,S.oJ)(c.scope)?.trim(),d=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>64)return{error:!0,code:"invalid_name",message:"name is required"};if("user"!==b&&"project"!==b)return{error:!0,code:"invalid_scope",message:"scope must be user or project"};if(d&&d.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return{op:"agents.delete",name:a,scope:b,...d?{cwd:d}:{}}}case"auth.providers":return{op:"auth.providers"};case"files.index":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.query);if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(void 0===b||b.length>100)return{error:!0,code:"invalid_query",message:"query is required"};return{op:"files.index",cwd:a,query:b}}case"projects.add":case"projects.remove":{let a=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};return"projects.add"===d?{op:"projects.add",cwd:a}:{op:"projects.remove",cwd:a}}case"settings.get":return{op:"settings.get"};case"settings.update":if(!(0,S.u4)(c.settings))return{error:!0,code:"invalid_settings",message:"settings must be an object"};return{op:"settings.update",settings:c.settings};case"cmd":return function(a){let b=(0,S.i)(a.req);if(void 0===b||!Number.isInteger(b)||b<1||b>0x7fffffff)return{error:!0,code:"invalid_req",message:"cmd.req must be a positive integer"};let c=(0,S.oJ)(a.type)?.trim();if(!c||!U.has(c))return{error:!0,code:"unsupported_command",message:"Command is not allowed on the relay"};let d={op:"cmd",req:b,type:c};if("prompt"===c){let b=(0,S.oJ)(a.message);if(void 0===b)return{error:!0,code:"invalid_command",message:"prompt message is required"};if(b.length>3145728)return{error:!0,code:"invalid_command",message:"prompt message is too long"};if("images"in a&&null!=a.images){let b=a.images;if(!Array.isArray(b))return{error:!0,code:"invalid_command",message:"images must be an array"};let c=[];for(let a of b){if(!(0,S.u4)(a))return{error:!0,code:"invalid_command",message:"Each image must have data and mimeType"};let b=(0,S.oJ)(a.data),d=(0,S.oJ)(a.mimeType)?.trim();if(!b||!d)return{error:!0,code:"invalid_command",message:"Each image must have data and mimeType"};c.push({data:b,mimeType:d})}let e=(0,T.kc)(c.map(a=>({type:"image",...a})));if(e)return{error:!0,code:"invalid_command",message:e};c.length>0&&(d.images=c)}d.message=b}if("set_model"===c){let b=(0,S.oJ)(a.provider)?.trim(),c=(0,S.oJ)(a.modelId)?.trim();if(!b||!c)return{error:!0,code:"invalid_command",message:"set_model requires provider and modelId"};d.provider=b,d.modelId=c}if("set_thinking_level"===c){let b=(0,S.oJ)(a.level)?.trim();if(!b)return{error:!0,code:"invalid_command",message:"set_thinking_level requires level"};d.level=b.slice(0,32)}return d}(c);default:return{error:!0,code:"unknown_op",message:`Unknown op: ${d}`}}}(b,c);if((0,S.u4)(d)&&!0===d.error&&"string"==typeof d.code)return q?void x({op:"error",code:d.code,message:d.message}):void y(d.code,d.message);let e=q&&("cmd"===d.op&&"abort"===d.type||"request"===d.op&&"sessions"===d.domain&&"command"===d.action&&"object"==typeof d.args.command&&null!==d.args.command&&"type"in d.args.command&&("abort"===d.args.command.type||"extension_ui_response"===d.args.command.type));if((e?o:n)>=(e?16:64))return void("request"===d.op?x({op:"result",req:d.req,success:!1,error:{code:"busy",message:"Too many pending relay operations"}}):"cmd"===d.op?x({op:"cmd_err",req:d.req,code:"busy",message:"Too many pending relay operations"}):x({op:"error",code:"busy",message:"Too many pending relay operations"}));e?o++:n++;let f=()=>E(d).catch(()=>{x({op:"error",code:"internal_error",message:"Relay operation failed"})}).finally(()=>{e?o--:n--});e?p=p.then(f):u=u.then(f)},onClose(){B()}}}(g),c.length>0&&g.feed(c))}(a,d[1],d[2]??Buffer.alloc(0)),!0}return b.call(this,a,...d)}b.__ompguiRelay||(c.__ompguiRelay=!0,a.prototype.emit=c)}function li(){globalThis.__ompguiRelayGatewayAttached||(globalThis.__ompguiRelayGatewayAttached=!0,lh(J.Server),lh(K.Server))}},7306:(a,b,c)=>{"use strict";var d=c(18092).Readable;function e(a,b,c){d.call(this,b),this._helper=a;var e=this;a.on("data",function(a,b){e.push(a)||e._helper.pause(),c&&c(b)}).on("error",function(a){e.emit("error",a)}).on("end",function(){e.push(null)})}c(58952).inherits(e,d),e.prototype._read=function(){this._helper.resume()},a.exports=e},8142:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q={}.hasOwnProperty;o=(p=c(54117)).isObject,n=p.isFunction,m=p.isEmpty,l=p.getValue,h=null,b=null,d=null,e=null,f=null,j=null,k=null,i=null,g=null,a.exports=function(){function a(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],h||(h=c(16426),b=c(92293),d=c(96321),e=c(2286),f=c(72240),j=c(77632),k=c(46107),i=c(11781),g=c(16646))}return a.prototype.element=function(a,b,c){var d,e,f,g,h,i,j,k,p,r,s;if(i=null,null===b&&null==c&&(b=(p=[{},null])[0],c=p[1]),null==b&&(b={}),o(b=l(b))||(c=(r=[b,c])[0],b=r[1]),null!=a&&(a=l(a)),Array.isArray(a))for(f=0,j=a.length;f<j;f++)e=a[f],i=this.element(e);else if(n(a))i=this.element(a.apply());else if(o(a)){for(h in a)if(q.call(a,h))if(n(s=a[h])&&(s=s.apply()),o(s)&&m(s)&&(s=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===h.indexOf(this.stringify.convertAttKey))i=this.attribute(h.substr(this.stringify.convertAttKey.length),s);else if(!this.options.separateArrayItems&&Array.isArray(s))for(g=0,k=s.length;g<k;g++)e=s[g],(d={})[h]=e,i=this.element(d);else o(s)?(i=this.element(h)).element(s):i=this.element(h,s)}else i=this.options.skipNullNodes&&null===c?this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?this.text(c):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===a.indexOf(this.stringify.convertCDataKey)?this.cdata(c):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===a.indexOf(this.stringify.convertCommentKey)?this.comment(c):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===a.indexOf(this.stringify.convertRawKey)?this.raw(c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===a.indexOf(this.stringify.convertPIKey)?this.instruction(a.substr(this.stringify.convertPIKey.length),c):this.node(a,b,c);if(null==i)throw Error("Could not create any elements with: "+a+". "+this.debugInfo());return i},a.prototype.insertBefore=function(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.insertAfter=function(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e+1),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.remove=function(){var a;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[a,a-a+1].concat([])),this.parent},a.prototype.node=function(a,b,c){var d,e;return null!=a&&(a=l(a)),b||(b={}),o(b=l(b))||(c=(e=[b,c])[0],b=e[1]),d=new h(this,a,b),null!=c&&d.text(c),this.children.push(d),d},a.prototype.text=function(a){var b;return b=new k(this,a),this.children.push(b),this},a.prototype.cdata=function(a){var c;return c=new b(this,a),this.children.push(c),this},a.prototype.comment=function(a){var b;return b=new d(this,a),this.children.push(b),this},a.prototype.commentBefore=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.commentAfter=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b+1),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.raw=function(a){var b;return b=new j(this,a),this.children.push(b),this},a.prototype.dummy=function(){var a;return a=new g(this),this.children.push(a),a},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(null!=a&&(a=l(a)),null!=b&&(b=l(b)),Array.isArray(a))for(f=0,g=a.length;f<g;f++)c=a[f],this.instruction(c);else if(o(a))for(c in a)q.call(a,c)&&(d=a[c],this.instruction(c,d));else n(b)&&(b=b.apply()),e=new i(this,a,b),this.children.push(e);return this},a.prototype.instructionBefore=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.instructionAfter=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c+1),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.declaration=function(a,b,c){var d,f;return d=this.document(),f=new e(d,a,b,c),d.children[0]instanceof e?d.children[0]=f:d.children.unshift(f),d.root()||d},a.prototype.doctype=function(a,b){var c,d,e,g,h,i,j,k,l;for(c=this.document(),d=new f(c,a,b),k=c.children,e=g=0,i=k.length;g<i;e=++g)if(k[e]instanceof f)return c.children[e]=d,d;for(l=c.children,e=h=0,j=l.length;h<j;e=++h)if(l[e].isRoot)return c.children.splice(e,0,d),d;return c.children.push(d),d},a.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},a.prototype.root=function(){var a;for(a=this;a;)if(a.isDocument)return a.rootObject;else{if(a.isRoot)return a;a=a.parent}},a.prototype.document=function(){var a;for(a=this;a;)if(a.isDocument)return a;else a=a.parent},a.prototype.end=function(a){return this.document().end(a)},a.prototype.prev=function(){var a;for(a=this.parent.children.indexOf(this);a>0&&this.parent.children[a-1].isDummy;)a-=1;if(a<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]},a.prototype.next=function(){var a;for(a=this.parent.children.indexOf(this);a<this.parent.children.length-1&&this.parent.children[a+1].isDummy;)a+=1;if(-1===a||a===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]},a.prototype.importDocument=function(a){var b;return(b=a.root().clone()).parent=this,b.isRoot=!1,this.children.push(b),this},a.prototype.debugInfo=function(a){var b,c;return null!=(a=a||this.name)||(null!=(b=this.parent)?b.name:void 0)?null==a?"parent: <"+this.parent.name+">":(null!=(c=this.parent)?c.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">":""},a.prototype.ele=function(a,b,c){return this.element(a,b,c)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.doc=function(){return this.document()},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.dtd=function(a,b){return this.doctype(a,b)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.u=function(){return this.up()},a.prototype.importXMLBuilder=function(a){return this.importDocument(a)},a}()}).call(this)},8216:a=>{"use strict";a.exports=function(a){var b=a._SomePromiseArray;function c(a){var c=new b(a),d=c.promise();return c.setHowMany(1),c.setUnwrap(),c.init(),d}a.any=function(a){return c(a)},a.prototype.any=function(){return c(this)}}},8878:(a,b,c)=>{"use strict";var d=c(79571),e=c(16892),f=c(77936),g=c(73315),h=c(49443);b.addPairToJSMap=function(a,b,{key:c,value:i}){if(g.isNode(c)&&c.addToJSMap)c.addToJSMap(a,b,i);else if(e.isMergeKey(a,c))e.addMergeToJSMap(a,b,i);else{let e=h.toJS(c,"",a);if(b instanceof Map)b.set(e,h.toJS(i,e,a));else if(b instanceof Set)b.add(e);else{let j=function(a,b,c){if(null===b)return"";if("object"!=typeof b)return String(b);if(g.isNode(a)&&c?.doc){let b=f.createStringifyContext(c.doc,{});for(let a of(b.anchors=new Set,c.anchors.keys()))b.anchors.add(a.anchor);b.inFlow=!0,b.inStringifyKey=!0;let e=a.toString(b);if(!c.mapKeyWarned){let a=JSON.stringify(e);a.length>40&&(a=a.substring(0,36)+'..."'),d.warn(c.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),c.mapKeyWarned=!0}return e}return JSON.stringify(b)}(c,e,a),k=h.toJS(i,j,a);j in b?Object.defineProperty(b,j,{value:k,writable:!0,enumerable:!0,configurable:!0}):b[j]=k}}return b}},9774:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a,b,d){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing DTD element name. "+this.debugInfo());d||(d="(#PCDATA)"),Array.isArray(d)&&(d="("+d.join(",")+")"),this.name=this.stringify.eleName(b),this.value=this.stringify.dtdElementValue(d)}return b(c,a),c.prototype.toString=function(a){return this.options.writer.set(a).dtdElement(this)},c}(c(8142))}).call(this)},9920:(a,b,c)=>{var d=c(84906),e=c(77313)();b.defer=function(){var a,b,c=new e.Promise(function(c,d){a=c,b=d});return{resolve:a,reject:b,promise:c}},b.when=e.resolve,b.resolve=e.resolve,b.all=e.all,b.props=e.props,b.reject=e.reject,b.promisify=e.promisify,b.mapSeries=e.mapSeries,b.attempt=e.attempt,b.nfcall=function(a){var b=Array.prototype.slice.call(arguments,1);return e.promisify(a).apply(null,b)},e.prototype.fail=e.prototype.caught,e.prototype.also=function(a){return this.then(function(b){var c=d.extend({},b,a(b));return e.props(c)})}},9972:(a,b,c)=>{"use strict";var d=c(65695);function e(a,b){let c=a[0],d="-"===c||"+"===c?a.substring(1):a,e=a=>b?BigInt(a):Number(a),f=d.replace(/_/g,"").split(":").reduce((a,b)=>a*e(60)+e(b),e(0));return"-"===c?e(-1)*f:f}function f(a){let{value:b}=a,c=a=>a;if("bigint"==typeof b)c=a=>BigInt(a);else if(isNaN(b)||!isFinite(b))return d.stringifyNumber(a);let e="";b<0&&(e="-",b*=c(-1));let f=c(60),g=[b%f];return b<60?g.unshift(0):(b=(b-g[0])/f,g.unshift(b%f),b>=60&&(b=(b-g[0])/f,g.unshift(b))),e+g.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let g={identify:a=>a instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(a){let b=a.match(g.test);if(!b)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,c,d,f,h,i,j]=b.map(Number),k=Date.UTC(c,d-1,f,h||0,i||0,j||0,b[7]?Number((b[7]+"00").substr(1,3)):0),l=b[8];if(l&&"Z"!==l){let a=e(l,!1);30>Math.abs(a)&&(a*=60),k-=6e4*a}return new Date(k)},stringify:({value:a})=>a?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};b.floatTime={identify:a=>"number"==typeof a,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:a=>e(a,!1),stringify:f},b.intTime={identify:a=>"bigint"==typeof a||Number.isInteger(a),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(a,b,{intAsBigInt:c})=>e(a,c),stringify:f},b.timestamp=g},10128:a=>{a.exports=function(a,c){return{asString:function(){return a},range:function(d,e){return new b(a,c,d,e)}}};var b=function(a,b,c,d){this._string=a,this._description=b,this._startIndex=c,this._endIndex=d};b.prototype.to=function(a){return new b(this._string,this._description,this._startIndex,a._endIndex)},b.prototype.describe=function(){var a=this._position();return(this._description?this._description+"\n":"")+"Line number: "+a.lineNumber+"\nCharacter number: "+a.characterNumber},b.prototype.lineNumber=function(){return this._position().lineNumber},b.prototype.characterNumber=function(){return this._position().characterNumber},b.prototype._position=function(){for(var a=this,b=0,c=function(){return a._string.indexOf("\n",b)},d=1;-1!==c()&&c()<this._startIndex;)b=c()+1,d+=1;return{lineNumber:d,characterNumber:this._startIndex-b+1}}},10140:(a,b,c)=>{"use strict";var d=c(73315),e=c(3404);function f(a){let b=new Set;return e.visit(a,{Value(a,c){c.anchor&&b.add(c.anchor)}}),b}function g(a,b){for(let c=1;;++c){let d=`${a}${c}`;if(!b.has(d))return d}}b.anchorIsValid=function(a){if(/[\x00-\x19\s,[\]{}]/.test(a)){let b=JSON.stringify(a);throw Error(`Anchor must not contain whitespace or control characters: ${b}`)}return!0},b.anchorNames=f,b.createNodeAnchors=function(a,b){let c=[],e=new Map,h=null;return{onAnchor:d=>{c.push(d),h??(h=f(a));let e=g(b,h);return h.add(e),e},setAnchors:()=>{for(let a of c){let b=e.get(a);if("object"==typeof b&&b.anchor&&(d.isScalar(b.node)||d.isCollection(b.node)))b.node.anchor=b.anchor;else{let b=Error("Failed to resolve repeated object (this should not happen)");throw b.source=a,b}}},sourceObjects:e}},b.findNewAnchor=g},10558:(a,b,c)=>{"use strict";var d=c(58952);function e(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}e.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var b,c=0;for(this.checkOffset(a),b=this.index+a-1;b>=this.index;b--)c=(c<<8)+this.byteAt(b);return this.index+=a,c},readString:function(a){return d.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC((a>>25&127)+1980,(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},a.exports=e},10878:(a,b,c)=>{"use strict";var d=c(3327),e=c(73315),f=c(26701);b.createNode=function(a,b,c){let g;if(e.isDocument(a)&&(a=a.contents),e.isNode(a))return a;if(e.isPair(a)){let b=c.schema[e.MAP].createNode?.(c.schema,null,c);return b.items.push(a),b}(a instanceof String||a instanceof Number||a instanceof Boolean||"u">typeof BigInt&&a instanceof BigInt)&&(a=a.valueOf());let{aliasDuplicateObjects:h,onAnchor:i,onTagObj:j,schema:k,sourceObjects:l}=c;if(h&&a&&"object"==typeof a){if(g=l.get(a))return g.anchor??(g.anchor=i(a)),new d.Alias(g.anchor);g={anchor:null,node:null},l.set(a,g)}b?.startsWith("!!")&&(b="tag:yaml.org,2002:"+b.slice(2));let m=function(a,b,c){if(b){let a=c.filter(a=>a.tag===b),d=a.find(a=>!a.format)??a[0];if(!d)throw Error(`Tag ${b} not found`);return d}return c.find(b=>b.identify?.(a)&&!b.format)}(a,b,k.tags);if(!m){if(a&&"function"==typeof a.toJSON&&(a=a.toJSON()),!a||"object"!=typeof a){let b=new f.Scalar(a);return g&&(g.node=b),b}m=a instanceof Map?k[e.MAP]:Symbol.iterator in Object(a)?k[e.SEQ]:k[e.MAP]}j&&(j(m),delete c.onTagObj);let n=m?.createNode?m.createNode(c.schema,a,c):"function"==typeof m?.nodeClass?.from?m.nodeClass.from(c.schema,a,c):new f.Scalar(a);return b?n.tag=b:m.default||(n.tag=m.tag),g&&(g.node=n),n}},11457:(a,b,c)=>{var d=c(9920),e=c(84906),f=c(14089),g=c(18403),h=g.Element;b.readString=function(a,b){b=b||{};try{var c=f.parseFromString(a,"text/xml")}catch(a){return d.reject(a)}if("parsererror"===c.documentElement.tagName)return d.resolve(Error(c.documentElement.textContent));function j(a){if(!a.namespaceURI)return a.localName;var c=b[a.namespaceURI];return(c?c+":":"{"+a.namespaceURI+"}")+a.localName}return d.resolve(function a(b){switch(b.nodeType){case i.ELEMENT_NODE:var c,d,f,k;return d=j(c=b),f=[],e.forEach(c.childNodes,function(b){var c=a(b);c&&f.push(c)}),k={},e.forEach(c.attributes,function(a){k[j(a)]=a.value}),new h(d,k,f);case i.TEXT_NODE:return g.text(b.nodeValue)}}(c.documentElement))};var i=f.Node},11781:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a,b,d){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(b),d&&(this.value=this.stringify.insValue(d))}return b(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.set(a).processingInstruction(this)},c}(c(8142))}).call(this)},12093:(a,b)=>{"use strict";b.containsNewline=function a(b){if(!b)return null;switch(b.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(b.source.includes("\n"))return!0;if(b.end){for(let a of b.end)if("newline"===a.type)return!0}return!1;case"flow-collection":for(let c of b.items){for(let a of c.start)if("newline"===a.type)return!0;if(c.sep){for(let a of c.sep)if("newline"===a.type)return!0}if(a(c.key)||a(c.value))return!0}return!1;default:return!0}}},12244:(a,b)=>{"use strict";b.resolveEnd=function(a,b,c,d){let e="";if(a){let f=!1,g="";for(let h of a){let{source:a,type:i}=h;switch(i){case"space":f=!0;break;case"comment":{c&&!f&&d(h,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let b=a.substring(1)||" ";e?e+=g+b:e=b,g="";break}case"newline":e&&(g+=a),f=!0;break;default:d(h,"UNEXPECTED_TOKEN",`Unexpected ${i} at node end`)}b+=a.length}}return{comment:e,offset:b}}},12367:(a,b,c)=>{"use strict";var d=c(73315),e=c(77936),f=c(72687);b.stringifyDocument=function(a,b){let c=[],g=!0===b.directives;if(!1!==b.directives&&a.directives){let b=a.directives.toString(a);b?(c.push(b),g=!0):a.directives.docStart&&(g=!0)}g&&c.push("---");let h=e.createStringifyContext(a,b),{commentString:i}=h.options;if(a.commentBefore){1!==c.length&&c.unshift("");let b=i(a.commentBefore);c.unshift(f.indentComment(b,""))}let j=!1,k=null;if(a.contents){if(d.isNode(a.contents)){if(a.contents.spaceBefore&&g&&c.push(""),a.contents.commentBefore){let b=i(a.contents.commentBefore);c.push(f.indentComment(b,""))}h.forceBlockIndent=!!a.comment,k=a.contents.comment}let b=k?void 0:()=>j=!0,l=e.stringify(a.contents,h,()=>k=null,b);k&&(l+=f.lineComment(l,"",i(k))),("|"===l[0]||">"===l[0])&&"---"===c[c.length-1]?c[c.length-1]=`--- ${l}`:c.push(l)}else c.push(e.stringify(a.contents,h));if(a.directives?.docEnd)if(a.comment){let b=i(a.comment);b.includes("\n")?(c.push("..."),c.push(f.indentComment(b,""))):c.push(`... ${b}`)}else c.push("...");else{let b=a.comment;b&&j&&(b=b.replace(/^\n+/,"")),b&&((!j||k)&&""!==c[c.length-1]&&c.push(""),c.push(f.indentComment(i(b),"")))}return c.join("\n")+"\n"}},12868:(a,b,c)=>{var d=c(60828).NAMESPACE,e=c(60828).tagNamePattern;function f(a,b){this.message=a,this.locator=b,Error.captureStackTrace&&Error.captureStackTrace(this,f)}function g(){}function h(a,b){return b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber,b}function i(a,b,c){for(var e=a.tagName,f=null,g=a.length;g--;){var h=a[g],i=h.qName,j=h.value,k=i.indexOf(":");if(k>0)var l=h.prefix=i.slice(0,k),m=i.slice(k+1),n="xmlns"===l&&m;else m=i,l=null,n="xmlns"===i&&"";h.localName=m,!1!==n&&(null==f&&(f={},c=Object.create(c)),c[n]=f[n]=j,h.uri=d.XMLNS,b.startPrefixMapping(n,j))}for(var g=a.length;g--;){var l=(h=a[g]).prefix;l&&("xml"===l&&(h.uri=d.XML),"xmlns"!==l&&(h.uri=c[l||""]))}var k=e.indexOf(":");k>0?(l=a.prefix=e.slice(0,k),m=a.localName=e.slice(k+1)):(l=null,m=a.localName=e);var o=a.uri=c[l||""];if(b.startElement(o,m,e,a),!a.closed)return a.currentNSMap=c,a.localNSMap=f,!0;if(b.endElement(o,m,e),f)for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&b.endPrefixMapping(l)}function j(){this.attributeNames={}}f.prototype=Error(),f.prototype.name=f.name,g.prototype={parse:function(a,b,c){var g=this.domBuilder;g.startDocument(),function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}(b,b={}),function(a,b,c,g,k){function l(a){var b,d=a.slice(1,-1);return Object.hasOwnProperty.call(c,d)?c[d]:"#"===d.charAt(0)?(b=parseInt(d.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((b-=65536)>>10),56320+(1023&b)):String.fromCharCode(b):(k.error("entity not found:"+a),a)}function m(b){if(b>u){var c=a.substring(u,b).replace(/&#?\w+;/g,l);r&&n(u),g.characters(c,0,b-u),u=b}}function n(b,c){for(;b>=p&&(c=q.exec(a));)p=(o=c.index)+c[0].length,r.lineNumber++;r.columnNumber=b-o+1}for(var o=0,p=0,q=/.*(?:\r\n?|\n)|.*$/g,r=g.locator,s=[{currentNSMap:b}],t={},u=0;;){try{var v=a.indexOf("<",u);if(v<0){if(!a.substr(u).match(/^\s*$/)){var w=g.doc,x=w.createTextNode(a.substr(u));w.appendChild(x),g.currentElement=x}return}switch(v>u&&m(v),a.charAt(v+1)){case"/":var y=a.indexOf(">",v+3),z=a.substring(v+2,y).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),A=s.pop();y<0?(z=a.substring(v+2).replace(/[\s<].*/,""),k.error("end tag name: "+z+" is not complete:"+A.tagName),y=v+1+z.length):z.match(/\s</)?(z=z.replace(/[\s<].*/,""),k.error("end tag name: "+z+" maybe not complete"),y=v+1+z.length):/[ \t\n\r]/.test(z)&&e.test(z.split(/[ \t\n\r]/)[0])&&k.error('end tag name is followed by whitespace and trailing content: "'+z+'"');var B=A.localNSMap,C=A.tagName==z;if(C||A.tagName&&A.tagName.toLowerCase()==z.toLowerCase()){if(g.endElement(A.uri,A.localName,z),B)for(var D in B)Object.prototype.hasOwnProperty.call(B,D)&&g.endPrefixMapping(D);C||k.fatalError("end tag name: "+z+" is not match the current start tagName:"+A.tagName)}else s.push(A);y++;break;case"?":r&&n(v),y=function(a,b,c){var d=a.indexOf("?>",b);if(d){var e=a.substring(b,d).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(e)return e[0].length,c.processingInstruction(e[1],e[2]),d+2}return -1}(a,v,g);break;case"!":r&&n(v),y=function(a,b,c,d){if("-"===a.charAt(b+2)){if("-"===a.charAt(b+3)){var e=a.indexOf("--\x3e",b+4);if(e>b)return c.comment(a,b+4,e-b-4),e+3;d.error("Unclosed comment")}}else{if("CDATA["==a.substr(b+3,6)){var e=a.indexOf("]]>",b+9);return c.startCDATA(),c.characters(a,b+9,e-b-9),c.endCDATA(),e+3}var f=function(a,b){var c,d=[],e=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(e.lastIndex=b,e.exec(a);c=e.exec(a);)if(d.push(c),c[1])return d}(a,b),g=f.length;if(g>1&&/!doctype/i.test(f[0][0])){var h=f[1][0],i=!1,j=!1;g>3&&(/^public$/i.test(f[2][0])?(i=f[3][0],j=g>4&&f[4][0]):/^system$/i.test(f[2][0])&&(j=f[3][0]));var k=f[g-1];return c.startDTD(h,i,j),c.endDTD(),k.index+k[0].length}}return -1}(a,v,g,k);break;default:r&&n(v);var E=new j,F=s[s.length-1].currentNSMap,y=function(a,b,c,e,f,g){function h(a,b,d){c.attributeNames.hasOwnProperty(a)&&g.fatalError("Attribute "+a+" redefined"),c.addValue(a,b.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,f),d)}for(var i,j,k=++b,l=0;;){var m=a.charAt(k);if(0===l&&"<"===m)throw Error("unexpected < in tag name: "+a.slice(b,k));switch(m){case"=":if(1===l)i=a.slice(b,k),l=3;else if(2===l)l=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===l||1===l)if(1===l&&(g.warning('attribute value must after "="'),i=a.slice(b,k)),b=k+1,(k=a.indexOf(m,b))>0)h(i,j=a.slice(b,k),b-1),l=5;else throw Error("attribute value no end '"+m+"' match");else if(4==l)h(i,j=a.slice(b,k),b),g.warning('attribute "'+i+'" missed start quot('+m+")!!"),b=k+1,l=5;else throw Error('attribute value must after "="');break;case"/":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:l=7,c.closed=!0;case 4:case 1:break;case 2:c.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return g.error("unexpected end of input"),0==l&&c.setTagName(a.slice(b,k)),k;case">":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:break;case 4:case 1:"/"===(j=a.slice(b,k)).slice(-1)&&(c.closed=!0,j=j.slice(0,-1));case 2:2===l&&(j=i),4==l?(g.warning('attribute "'+j+'" missed quot(")!'),h(i,j,b)):(d.isHTML(e[""])&&j.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+j+'" missed value!! "'+j+'" instead!!'),h(j,j,b));break;case 3:throw Error("attribute value missed!!")}return k;case"\x80":m=" ";default:if(m<=" ")switch(l){case 0:c.setTagName(a.slice(b,k)),l=6;break;case 1:i=a.slice(b,k),l=2;break;case 4:var j=a.slice(b,k);g.warning('attribute "'+j+'" missed quot(")!!'),h(i,j,b);case 5:l=6}else switch(l){case 2:c.tagName,d.isHTML(e[""])&&i.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+i+'" missed value!! "'+i+'" instead2!!'),h(i,i,b),b=k,l=1;break;case 5:g.warning('attribute space is required"'+i+'"!!');case 6:l=1,b=k;break;case 3:l=4,b=k;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}k++}}(a,v,E,F,l,k),G=E.length;if(!E.closed&&function(a,b,c,d){var e=d[c];return null==e&&((e=a.lastIndexOf("</"+c+">"))<b&&(e=a.lastIndexOf("</"+c)),d[c]=e),e<b}(a,y,E.tagName,t)&&(E.closed=!0,c.nbsp||k.warning("unclosed xml attribute")),r&&G){for(var H=h(r,{}),I=0;I<G;I++){var J=E[I];n(J.offset),J.locator=h(r,{})}g.locator=H,i(E,g,F)&&s.push(E),g.locator=r}else i(E,g,F)&&s.push(E);d.isHTML(E.uri)&&!E.closed?y=function(a,b,c,d,e){if(/^(?:script|textarea)$/i.test(c)){var f=a.indexOf("</"+c+">",b),g=a.substring(b+1,f);if(/[&<]/.test(g))return/^script$/i.test(c)||(g=g.replace(/&#?\w+;/g,d)),e.characters(g,0,g.length),f}return b+1}(a,y,E.tagName,l,g):y++}}catch(a){if(a instanceof f)throw a;k.error("element parse error: "+a),y=-1}y>u?u=y:m(Math.max(v,u)+1)}}(a,b,c,g,this.errorHandler),g.endDocument()}},j.prototype={setTagName:function(a){if(!e.test(a))throw Error("invalid tagName:"+a);this.tagName=a},addValue:function(a,b,c){if(!e.test(a))throw Error("invalid attribute:"+a);this.attributeNames[a]=this.length,this[this.length++]={qName:a,value:b,offset:c}},length:0,getLocalName:function(a){return this[a].localName},getLocator:function(a){return this[a].locator},getQName:function(a){return this[a].qName},getURI:function(a){return this[a].uri},getValue:function(a){return this[a].value}},b.XMLReader=g,b.ParseError=f},12965:function(a,b,c){(function(){var b,d,e,f,g=function(a,b){for(var c in b)h.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},h={}.hasOwnProperty;f=c(54117).isPlainObject,b=c(8142),e=c(83172),d=c(80224),a.exports=function(a){function b(a){b.__super__.constructor.call(this,null),this.name="?xml",a||(a={}),a.writer||(a.writer=new d),this.options=a,this.stringify=new e(a),this.isDocument=!0}return g(b,a),b.prototype.end=function(a){var b;return a?f(a)&&(b=a,a=this.options.writer.set(b)):a=this.options.writer,a.document(this)},b.prototype.toString=function(a){return this.options.writer.set(a).document(this)},b}(b)}).call(this)},13420:(a,b,c)=>{"use strict";a.exports={Promise:"u">typeof Promise?Promise:c(6163)}},14089:(a,b,c)=>{var d=c(86936),e=c(49472);b.parseFromString=function(a){var b=null,c=new d.DOMParser({errorHandler:function(a,c){b={level:a,message:c}}}).parseFromString(a);if(null===b)return c;throw Error(b.level+": "+b.message)},b.Node=e.Node},14233:(a,b,c)=>{a.exports=c(28354).deprecate},14610:(a,b,c)=>{"use strict";a.exports=g;var d=c(71848),e=Object.create(c(22362));function f(a,b){var c=this._transformState;c.transforming=!1;var d=c.writecb;if(!d)return this.emit("error",Error("write callback called multiple times"));c.writechunk=null,c.writecb=null,null!=b&&this.push(b),d(a);var e=this._readableState;e.reading=!1,(e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}function g(a){if(!(this instanceof g))return new g(a);d.call(this,a),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&("function"==typeof a.transform&&(this._transform=a.transform),"function"==typeof a.flush&&(this._flush=a.flush)),this.on("prefinish",h)}function h(){var a=this;"function"==typeof this._flush?this._flush(function(b,c){i(a,b,c)}):i(this,null,null)}function i(a,b,c){if(b)return a.emit("error",b);if(null!=c&&a.push(c),a._writableState.length)throw Error("Calling transform done when ws.length != 0");if(a._transformState.transforming)throw Error("Calling transform done when still transforming");return a.push(null)}e.inherits=c(50843),e.inherits(g,d),g.prototype.push=function(a,b){return this._transformState.needTransform=!1,d.prototype.push.call(this,a,b)},g.prototype._transform=function(a,b,c){throw Error("_transform() is not implemented")},g.prototype._write=function(a,b,c){var d=this._transformState;if(d.writecb=c,d.writechunk=a,d.writeencoding=b,!d.transforming){var e=this._readableState;(d.needTransform||e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}},g.prototype._read=function(a){var b=this._transformState;null!==b.writechunk&&b.writecb&&!b.transforming?(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform)):b.needTransform=!0},g.prototype._destroy=function(a,b){var c=this;d.prototype._destroy.call(this,a,function(a){b(a),c.emit("close")})}},14732:(a,b,c)=>{"use strict";var d=c(58952),e=c(41067),f=c(76281),g=c(45644),h=c(49642),i=c(13420),j=null;if(h.nodestream)try{j=c(7306)}catch(a){}function k(a,b,c){var g=b;switch(b){case"blob":case"arraybuffer":g="uint8array";break;case"base64":g="string"}try{this._internalType=g,this._outputType=b,this._mimeType=c,d.checkSupport(g),this._worker=a.pipe(new e(g)),a.lock()}catch(a){this._worker=new f("error"),this._worker.error(a)}}k.prototype={accumulate:function(a){var b;return b=this,new i.Promise(function(c,e){var f=[],h=b._internalType,i=b._outputType,j=b._mimeType;b.on("data",function(b,c){f.push(b),a&&a(c)}).on("error",function(a){f=[],e(a)}).on("end",function(){try{var a=function(a,b,c){switch(a){case"blob":return d.newBlob(d.transformTo("arraybuffer",b),c);case"base64":return g.encode(b);default:return d.transformTo(a,b)}}(i,function(a,b){var c,d=0,e=null,f=0;for(c=0;c<b.length;c++)f+=b[c].length;switch(a){case"string":return b.join("");case"array":return Array.prototype.concat.apply([],b);case"uint8array":for(e=new Uint8Array(f),c=0;c<b.length;c++)e.set(b[c],d),d+=b[c].length;return e;case"nodebuffer":return Buffer.concat(b);default:throw Error("concat : unsupported type '"+a+"'")}}(h,f),j);c(a)}catch(a){e(a)}f=[]}).resume()})},on:function(a,b){var c=this;return"data"===a?this._worker.on(a,function(a){b.call(c,a.data,a.meta)}):this._worker.on(a,function(){d.delay(b,arguments,c)}),this},resume:function(){return d.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(a){if(d.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw Error(this._outputType+" is not supported by this method");return new j(this,{objectMode:"nodebuffer"!==this._outputType},a)}},a.exports=k},14835:(a,b,c)=>{"use strict";var d,e,f,g=c(69167);function h(a){for(var b=a.length;--b>=0;)a[b]=0}var i=573,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],m=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],n=Array(576);h(n);var o=Array(60);h(o);var p=Array(512);h(p);var q=Array(256);h(q);var r=Array(29);h(r);var s=Array(30);function t(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length}function u(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b}function v(a){return a<256?p[a]:p[256+(a>>>7)]}function w(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function x(a,b,c){a.bi_valid>16-c?(a.bi_buf|=b<<a.bi_valid&65535,w(a,a.bi_buf),a.bi_buf=b>>16-a.bi_valid,a.bi_valid+=c-16):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)}function y(a,b,c){x(a,c[2*b],c[2*b+1])}function z(a,b){var c=0;do c|=1&a,a>>>=1,c<<=1;while(--b>0);return c>>>1}function A(a,b,c){var d,e,f=Array(16),g=0;for(d=1;d<=15;d++)f[d]=g=g+c[d-1]<<1;for(e=0;e<=b;e++){var h=a[2*e+1];0!==h&&(a[2*e]=z(f[h]++,h))}}function B(a){var b;for(b=0;b<286;b++)a.dyn_ltree[2*b]=0;for(b=0;b<30;b++)a.dyn_dtree[2*b]=0;for(b=0;b<19;b++)a.bl_tree[2*b]=0;a.dyn_ltree[512]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function C(a){a.bi_valid>8?w(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function D(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]}function E(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_len&&D(b,a.heap[e+1],a.heap[e],a.depth)&&e++,!D(b,d,a.heap[e],a.depth));)a.heap[c]=a.heap[e],c=e,e<<=1;a.heap[c]=d}function F(a,b,c){var d,e,f,g,h=0;if(0!==a.last_lit)do d=a.pending_buf[a.d_buf+2*h]<<8|a.pending_buf[a.d_buf+2*h+1],e=a.pending_buf[a.l_buf+h],h++,0===d?y(a,e,b):(y(a,(f=q[e])+256+1,b),0!==(g=j[f])&&x(a,e-=r[f],g),y(a,f=v(--d),c),0!==(g=k[f])&&x(a,d-=s[f],g));while(h<a.last_lit);y(a,256,b)}function G(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.stat_desc.has_stree,j=b.stat_desc.elems,k=-1;for(a.heap_len=0,a.heap_max=i,c=0;c<j;c++)0!==f[2*c]?(a.heap[++a.heap_len]=k=c,a.depth[c]=0):f[2*c+1]=0;for(;a.heap_len<2;)f[2*(e=a.heap[++a.heap_len]=k<2?++k:0)]=1,a.depth[e]=0,a.opt_len--,h&&(a.static_len-=g[2*e+1]);for(b.max_code=k,c=a.heap_len>>1;c>=1;c--)E(a,f,c);e=j;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],E(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,E(a,f,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],function(a,b){var c,d,e,f,g,h,j=b.dyn_tree,k=b.max_code,l=b.stat_desc.static_tree,m=b.stat_desc.has_stree,n=b.stat_desc.extra_bits,o=b.stat_desc.extra_base,p=b.stat_desc.max_length,q=0;for(f=0;f<=15;f++)a.bl_count[f]=0;for(j[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;c<i;c++)(f=j[2*j[2*(d=a.heap[c])+1]+1]+1)>p&&(f=p,q++),j[2*d+1]=f,!(d>k)&&(a.bl_count[f]++,g=0,d>=o&&(g=n[d-o]),h=j[2*d],a.opt_len+=h*(f+g),m&&(a.static_len+=h*(l[2*d+1]+g)));if(0!==q){do{for(f=p-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[p]--,q-=2}while(q>0);for(f=p;0!==f;f--)for(d=a.bl_count[f];0!==d;)!((e=a.heap[--c])>k)&&(j[2*e+1]!==f&&(a.opt_len+=(f-j[2*e+1])*j[2*e],j[2*e+1]=f),d--)}}(a,b),A(f,k,a.bl_count)}function H(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[(c+1)*2+1]=65535,d=0;d<=c;d++)e=g,g=b[(d+1)*2+1],++h<i&&e===g||(h<j?a.bl_tree[2*e]+=h:0!==e?(e!==f&&a.bl_tree[2*e]++,a.bl_tree[32]++):h<=10?a.bl_tree[34]++:a.bl_tree[36]++,h=0,f=e,0===g?(i=138,j=3):e===g?(i=6,j=3):(i=7,j=4))}function I(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),d=0;d<=c;d++)if(e=g,g=b[(d+1)*2+1],!(++h<i)||e!==g){if(h<j)do y(a,e,a.bl_tree);while(0!=--h);else 0!==e?(e!==f&&(y(a,e,a.bl_tree),h--),y(a,16,a.bl_tree),x(a,h-3,2)):h<=10?(y(a,17,a.bl_tree),x(a,h-3,3)):(y(a,18,a.bl_tree),x(a,h-11,7));h=0,f=e,0===g?(i=138,j=3):e===g?(i=6,j=3):(i=7,j=4)}}h(s);var J=!1;function K(a,b,c,d){x(a,0+ +!!d,3),C(a),w(a,c),w(a,~c),g.arraySet(a.pending_buf,a.window,b,c,a.pending),a.pending+=c}b._tr_init=function(a){J||(!function(){var a,b,c,g,h,i=Array(16);for(g=0,c=0;g<28;g++)for(r[g]=c,a=0;a<1<<j[g];a++)q[c++]=g;for(q[c-1]=g,h=0,g=0;g<16;g++)for(s[g]=h,a=0;a<1<<k[g];a++)p[h++]=g;for(h>>=7;g<30;g++)for(s[g]=h<<7,a=0;a<1<<k[g]-7;a++)p[256+h++]=g;for(b=0;b<=15;b++)i[b]=0;for(a=0;a<=143;)n[2*a+1]=8,a++,i[8]++;for(;a<=255;)n[2*a+1]=9,a++,i[9]++;for(;a<=279;)n[2*a+1]=7,a++,i[7]++;for(;a<=287;)n[2*a+1]=8,a++,i[8]++;for(A(n,287,i),a=0;a<30;a++)o[2*a+1]=5,o[2*a]=z(a,5);d=new t(n,j,257,286,15),e=new t(o,k,0,30,15),f=new t([],l,0,19,7)}(),J=!0),a.l_desc=new u(a.dyn_ltree,d),a.d_desc=new u(a.dyn_dtree,e),a.bl_desc=new u(a.bl_tree,f),a.bi_buf=0,a.bi_valid=0,B(a)},b._tr_stored_block=K,b._tr_flush_block=function(a,b,c,d){var e,f,g=0;a.level>0?(2===a.strm.data_type&&(a.strm.data_type=function(a){var b,c=0xf3ffc07f;for(b=0;b<=31;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return 0;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return 1;for(b=32;b<256;b++)if(0!==a.dyn_ltree[2*b])return 1;return 0}(a)),G(a,a.l_desc),G(a,a.d_desc),g=function(a){var b;for(H(a,a.dyn_ltree,a.l_desc.max_code),H(a,a.dyn_dtree,a.d_desc.max_code),G(a,a.bl_desc),b=18;b>=3&&0===a.bl_tree[2*m[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}(a),e=a.opt_len+3+7>>>3,(f=a.static_len+3+7>>>3)<=e&&(e=f)):e=f=c+5,c+4<=e&&-1!==b?K(a,b,c,d):4===a.strategy||f===e?(x(a,2+ +!!d,3),F(a,n,o)):(x(a,4+ +!!d,3),function(a,b,c,d){var e;for(x(a,b-257,5),x(a,c-1,5),x(a,d-4,4),e=0;e<d;e++)x(a,a.bl_tree[2*m[e]+1],3);I(a,a.dyn_ltree,b-1),I(a,a.dyn_dtree,c-1)}(a,a.l_desc.max_code+1,a.d_desc.max_code+1,g+1),F(a,a.dyn_ltree,a.dyn_dtree)),B(a),d&&C(a)},b._tr_tally=function(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[(q[c]+256+1)*2]++,a.dyn_dtree[2*v(b)]++),a.last_lit===a.lit_bufsize-1},b._tr_align=function(a){x(a,2,3),y(a,256,n),16===a.bi_valid?(w(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}},15325:(a,b,c)=>{"use strict";var d=c(73315),e=c(26701),f=c(30598),g=c(71397),h=c(86677),i=c(37054),j=c(69374);function k(a,b,c,d,e,f){let g="block-map"===c.type?h.resolveBlockMap(a,b,c,d,f):"block-seq"===c.type?i.resolveBlockSeq(a,b,c,d,f):j.resolveFlowCollection(a,b,c,d,f),k=g.constructor;return"!"===e||e===k.tagName?g.tag=k.tagName:e&&(g.tag=e),g}b.composeCollection=function(a,b,c,h,i){let j=h.tag,l=j?b.directives.tagName(j.source,a=>i(j,"TAG_RESOLVE_FAILED",a)):null;if("block-seq"===c.type){let{anchor:a,newlineAfterProp:b}=h,c=a&&j?a.offset>j.offset?a:j:a??j;c&&(!b||b.offset<c.offset)&&i(c,"MISSING_CHAR","Missing newline after block sequence props")}let m="block-map"===c.type?"map":"block-seq"===c.type?"seq":"{"===c.start.source?"map":"seq";if(!j||!l||"!"===l||l===f.YAMLMap.tagName&&"map"===m||l===g.YAMLSeq.tagName&&"seq"===m)return k(a,b,c,i,l);let n=b.schema.tags.find(a=>a.tag===l&&a.collection===m);if(!n){let d=b.schema.knownTags[l];if(d?.collection!==m)return d?i(j,"BAD_COLLECTION_TYPE",`${d.tag} used for ${m} collection, but expects ${d.collection??"scalar"}`,!0):i(j,"TAG_RESOLVE_FAILED",`Unresolved tag: ${l}`,!0),k(a,b,c,i,l);b.schema.tags.push(Object.assign({},d,{default:!1})),n=d}let o=k(a,b,c,i,l,n),p=n.resolve?.(o,a=>i(j,"TAG_RESOLVE_FAILED",a),b.options)??o,q=d.isNode(p)?p:new e.Scalar(p);return q.range=o.range,q.tag=l,n?.format&&(q.format=n.format),q}},15434:(a,b,c)=>{"use strict";var d=c(20577);function e(a,b){a.emit("error",b)}a.exports={destroy:function(a,b){var c=this,f=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return f||g?b?b(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,d.nextTick(e,this,a)):d.nextTick(e,this,a)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(a){!b&&a?c._writableState?c._writableState.errorEmitted||(c._writableState.errorEmitted=!0,d.nextTick(e,c,a)):d.nextTick(e,c,a):b&&b(a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},16312:(a,b,c)=>{"use strict";var d=c(58952),e=c(76281),f=c(30212),g=c(56222),h=c(49505),i=function(a,b){var c,d="";for(c=0;c<b;c++)d+=String.fromCharCode(255&a),a>>>=8;return d},j=function(a,b){var c=a;return a||(c=b?16893:33204),(65535&c)<<16},k=function(a,b,c,e,k,l){var m,n,o=a.file,p=a.compression,q=l!==f.utf8encode,r=d.transformTo("string",l(o.name)),s=d.transformTo("string",f.utf8encode(o.name)),t=o.comment,u=d.transformTo("string",l(t)),v=d.transformTo("string",f.utf8encode(t)),w=s.length!==o.name.length,x=v.length!==t.length,y="",z="",A="",B=o.dir,C=o.date,D={crc32:0,compressedSize:0,uncompressedSize:0};(!b||c)&&(D.crc32=a.crc32,D.compressedSize=a.compressedSize,D.uncompressedSize=a.uncompressedSize);var E=0;b&&(E|=8),!q&&(w||x)&&(E|=2048);var F=0,G=0;(B&&(F|=16),"UNIX"===k)?(G=798,F|=j(o.unixPermissions,B)):(G=20,F|=63&(o.dosPermissions||0)),m=(C.getUTCHours()<<6|C.getUTCMinutes())<<5|C.getUTCSeconds()/2,n=(C.getUTCFullYear()-1980<<4|C.getUTCMonth()+1)<<5|C.getUTCDate(),w&&(z=i(1,1)+i(g(r),4)+s,y+="up"+i(z.length,2)+z),x&&(A=i(1,1)+i(g(u),4)+v,y+="uc"+i(A.length,2)+A);var H="";return H+="\n\0",H+=i(E,2),H+=p.magic,H+=i(m,2),H+=i(n,2),H+=i(D.crc32,4),H+=i(D.compressedSize,4),H+=i(D.uncompressedSize,4),H+=i(r.length,2),H+=i(y.length,2),{fileRecord:h.LOCAL_FILE_HEADER+H+r+y,dirRecord:h.CENTRAL_FILE_HEADER+i(G,2)+H+i(u.length,2)+"\0\0\0\0"+i(F,4)+i(e,4)+r+y+u}},l=function(a,b,c,e,f){var g=d.transformTo("string",f(e));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(a,2)+i(a,2)+i(b,4)+i(c,4)+i(g.length,2)+g},m=function(a){return h.DATA_DESCRIPTOR+i(a.crc32,4)+i(a.compressedSize,4)+i(a.uncompressedSize,4)};function n(a,b,c,d){e.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=c,this.encodeFileName=d,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}d.inherits(n,e),n.prototype.push=function(a){var b=a.meta.percent||0,c=this.entriesCount,d=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,e.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:c?(b+100*(c-d-1))/c:100}}))},n.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var b=this.streamFiles&&!a.file.dir;if(b){var c=k(a,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:c.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(a){this.accumulate=!1;var b=this.streamFiles&&!a.file.dir,c=k(a,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(c.dirRecord),b)this.push({data:m(a),meta:{percent:100}});else for(this.push({data:c.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var a=this.bytesWritten,b=0;b<this.dirRecords.length;b++)this.push({data:this.dirRecords[b],meta:{percent:100}});var c=this.bytesWritten-a,d=l(this.dirRecords.length,c,a,this.zipComment,this.encodeFileName);this.push({data:d,meta:{percent:100}})},n.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},n.prototype.registerPrevious=function(a){this._sources.push(a);var b=this;return a.on("data",function(a){b.processChunk(a)}),a.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),a.on("error",function(a){b.error(a)}),this},n.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},n.prototype.error=function(a){var b=this._sources;if(!e.prototype.error.call(this,a))return!1;for(var c=0;c<b.length;c++)try{b[c].error(a)}catch(a){}return!0},n.prototype.lock=function(){e.prototype.lock.call(this);for(var a=this._sources,b=0;b<a.length;b++)a[b].lock()},a.exports=n},16426:function(a,b,c){(function(){var b,d,e,f,g,h,i=function(a,b){for(var c in b)j.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},j={}.hasOwnProperty;g=(h=c(54117)).isObject,f=h.isFunction,e=h.getValue,d=c(8142),b=c(48514),a.exports=function(a){function c(a,b,d){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(b),this.attributes={},null!=d&&this.attribute(d),a.isDocument&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this)}return i(c,a),c.prototype.clone=function(){var a,b,c,d;for(b in(c=Object.create(this)).isRoot&&(c.documentObject=null),c.attributes={},d=this.attributes)j.call(d,b)&&(a=d[b],c.attributes[b]=a.clone());return c.children=[],this.children.forEach(function(a){var b;return(b=a.clone()).parent=c,c.children.push(b)}),c},c.prototype.attribute=function(a,c){var d,h;if(null!=a&&(a=e(a)),g(a))for(d in a)j.call(a,d)&&(h=a[d],this.attribute(d,h));else f(c)&&(c=c.apply()),this.options.skipNullAttributes&&null==c||(this.attributes[a]=new b(this,a,c));return this},c.prototype.removeAttribute=function(a){var b,c,d;if(null==a)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(a=e(a)))for(c=0,d=a.length;c<d;c++)b=a[c],delete this.attributes[b];else delete this.attributes[a];return this},c.prototype.toString=function(a){return this.options.writer.set(a).element(this)},c.prototype.att=function(a,b){return this.attribute(a,b)},c.prototype.a=function(a,b){return this.attribute(a,b)},c}(d)}).call(this)},16646:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a){c.__super__.constructor.call(this,a),this.isDummy=!0}return b(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return""},c}(c(8142))}).call(this)},16734:(a,b,c)=>{var d=c(84906);b.writer=function(a){return(a=a||{}).prettyPrint?function(){var a=0,b=[],c=!0,g=!1,h=f();function i(){if(g=!1,!c&&(0===b.length||e[b[b.length-1]])&&!j()){h._append("\n");for(var d=0;d<a;d++)h._append(" ")}}function j(){return d.some(b,function(a){return"pre"===a})}return{asString:h.asString,open:function(d,f){e[d]&&i(),b.push(d),h.open(d,f),e[d]&&a++,c=!1},close:function(c){e[c]&&(a--,i()),b.pop(),h.close(c)},text:function(a){g||(i(),g=!0);var b=j()?a:a.replace("\n","\n ");h.text(b)},selfClosing:function(a,b){i(),h.selfClosing(a,b)}}}():f()};var e={div:!0,p:!0,ul:!0,li:!0};function f(){var a=[];function b(a){return d.map(a,function(a,b){return" "+b+'="'+a.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+'"'}).join("")}return{asString:function(){return a.join("")},open:function(c,d){var e=b(d);a.push("<"+c+e+">")},close:function(b){a.push("</"+b+">")},text:function(b){a.push(b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))},selfClosing:function(c,d){var e=b(d);a.push("<"+c+e+" />")},_append:function(b){a.push(b)}}}},16892:(a,b,c)=>{"use strict";var d=c(73315),e=c(26701);let f={identify:a=>"<<"===a||"symbol"==typeof a&&"<<"===a.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new e.Scalar(Symbol("<<")),{addToJSMap:g}),stringify:()=>"<<"};function g(a,b,c){let e=i(a,c);if(d.isSeq(e))for(let c of e.items)h(a,b,c);else if(Array.isArray(e))for(let c of e)h(a,b,c);else h(a,b,e)}function h(a,b,c){let e=i(a,c);if(!d.isMap(e))throw Error("Merge sources must be maps or map aliases");for(let[c,d]of e.toJSON(null,a,Map))b instanceof Map?b.has(c)||b.set(c,d):b instanceof Set?b.add(c):Object.prototype.hasOwnProperty.call(b,c)||Object.defineProperty(b,c,{value:d,writable:!0,enumerable:!0,configurable:!0});return b}function i(a,b){return a&&d.isAlias(b)?b.resolve(a.doc,a):b}b.addMergeToJSMap=g,b.isMergeKey=(a,b)=>(f.identify(b)||d.isScalar(b)&&(!b.type||b.type===e.Scalar.PLAIN)&&f.identify(b.value))&&a?.doc.schema.tags.some(a=>a.tag===f.tag&&a.default),b.merge=f},17390:(a,b,c)=>{"use strict";var d=c(40831),e=c(58952),f=c(49505),g=c(21906),h=c(49642);function i(a){this.files=[],this.loadOptions=a}i.prototype={checkSignature:function(a){if(!this.reader.readAndCheckSignature(a)){this.reader.index-=4;var b=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+e.pretty(b)+", expected "+e.pretty(a)+")")}},isSignature:function(a,b){var c=this.reader.index;this.reader.setIndex(a);var d=this.reader.readString(4);return this.reader.setIndex(c),d===b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var a=this.reader.readData(this.zipCommentLength),b=h.uint8array?"uint8array":"array",c=e.transformTo(b,a);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var a,b,c,d=this.zip64EndOfCentralSize-44;0<d;)a=this.reader.readInt(2),b=this.reader.readInt(4),c=this.reader.readData(b),this.zip64ExtensibleData[a]={id:a,length:b,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var a,b;for(a=0;a<this.files.length;a++)b=this.files[a],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(f.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var a;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(f.CENTRAL_FILE_HEADER);)(a=new g({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(a);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var a=this.reader.lastIndexOfSignature(f.CENTRAL_DIRECTORY_END);if(a<0){if(!this.isSignature(0,f.LOCAL_FILE_HEADER))throw Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");throw Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(a);var b=a;if(this.checkSignature(f.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===e.MAX_VALUE_16BITS||this.diskWithCentralDirStart===e.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===e.MAX_VALUE_16BITS||this.centralDirRecords===e.MAX_VALUE_16BITS||this.centralDirSize===e.MAX_VALUE_32BITS||this.centralDirOffset===e.MAX_VALUE_32BITS){if(this.zip64=!0,(a=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(a),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,f.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var d=b-c;if(d>0)this.isSignature(b,f.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(a){this.reader=d(a)},load:function(a){this.prepareReader(a),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},a.exports=i},17518:(a,b)=>{"use strict";class c{constructor(){this.lineStarts=[],this.addNewLine=a=>this.lineStarts.push(a),this.linePos=a=>{let b=0,c=this.lineStarts.length;for(;b<c;){let d=b+c>>1;this.lineStarts[d]<a?b=d+1:c=d}if(this.lineStarts[b]===a)return{line:b+1,col:1};if(0===b)return{line:0,col:a};let d=this.lineStarts[b-1];return{line:b,col:a-d+1}}}}b.LineCounter=c},18092:(a,b,c)=>{var d=c(27910);"disable"===process.env.READABLE_STREAM&&d?(a.exports=d,(b=a.exports=d.Readable).Readable=d.Readable,b.Writable=d.Writable,b.Duplex=d.Duplex,b.Transform=d.Transform,b.PassThrough=d.PassThrough,b.Stream=d):((b=a.exports=c(38418)).Stream=d||b,b.Readable=b,b.Writable=c(49358),b.Duplex=c(71848),b.Transform=c(14610),b.PassThrough=c(80052))},18143:(a,b,c)=>{"use strict";var d=c(65695);let e=a=>"bigint"==typeof a||Number.isInteger(a);function f(a,b,c,{intAsBigInt:d}){let e=a[0];if(("-"===e||"+"===e)&&(b+=1),a=a.substring(b).replace(/_/g,""),d){switch(c){case 2:a=`0b${a}`;break;case 8:a=`0o${a}`;break;case 16:a=`0x${a}`}let b=BigInt(a);return"-"===e?BigInt(-1)*b:b}let g=parseInt(a,c);return"-"===e?-1*g:g}function g(a,b,c){let{value:f}=a;if(e(f)){let a=f.toString(b);return f<0?"-"+c+a.substr(1):c+a}return d.stringifyNumber(a)}b.int={identify:e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(a,b,c)=>f(a,0,10,c),stringify:d.stringifyNumber},b.intBin={identify:e,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(a,b,c)=>f(a,2,2,c),stringify:a=>g(a,2,"0b")},b.intHex={identify:e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(a,b,c)=>f(a,2,16,c),stringify:a=>g(a,16,"0x")},b.intOct={identify:e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(a,b,c)=>f(a,1,8,c),stringify:a=>g(a,8,"0")}},18187:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e){var f=c(22418),g=f.tryCatch,h=f.errorObj,i=a._async;a.prototype.break=a.prototype.cancel=function(){if(!e.cancellation())return this._warn("cancellation is disabled");for(var a=this,b=a;a._isCancellable();){if(!a._cancelBy(b)){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}var c=a._cancellationParent;if(null!=c&&c._isCancellable())a._isFollowing()&&a._followee().cancel(),a._setWillBeCancelled(),b=a,a=c;else{a._isFollowing()?a._followee().cancel():a._cancelBranched();break}}},a.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},a.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},a.prototype._cancelBy=function(a){return a===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},a.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},a.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),i.invoke(this._cancelPromises,this,void 0))},a.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},a.prototype._unsetOnCancel=function(){this._onCancelField=void 0},a.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},a.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},a.prototype._doInvokeOnCancel=function(a,b){if(f.isArray(a))for(var c=0;c<a.length;++c)this._doInvokeOnCancel(a[c],b);else if(void 0!==a)if("function"==typeof a){if(!b){var d=g(a).call(this._boundValue());d===h&&(this._attachExtraTrace(d.e),i.throwLater(d.e))}}else a._resultCancelled(this)},a.prototype._invokeOnCancel=function(){var a=this._onCancel();this._unsetOnCancel(),i.invoke(this._doInvokeOnCancel,this,a)},a.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},a.prototype._resultCancelled=function(){this.cancel()}}},18403:(a,b,c)=>{var d=c(84906);b.Element=f,b.element=function(a,b,c){return new f(a,b,c)},b.text=function(a){return{type:"text",value:a}};var e=b.emptyElement={first:function(){return null},firstOrEmpty:function(){return e},attributes:{},children:[]};function f(a,b,c){this.type="element",this.name=a,this.attributes=b||{},this.children=c||[]}f.prototype.first=function(a){return d.find(this.children,function(b){return b.name===a})},f.prototype.firstOrEmpty=function(a){return this.first(a)||e},f.prototype.getElementsByTagName=function(a){return h(d.filter(this.children,function(b){return b.name===a}))},f.prototype.text=function(){if(0===this.children.length)return"";if(1!==this.children.length||"text"!==this.children[0].type)throw Error("Not implemented");return this.children[0].value};var g={getElementsByTagName:function(a){return h(d.flatten(this.map(function(b){return b.getElementsByTagName(a)},!0)))}};function h(a){return d.extend(a,g)}},19173:(a,b,c)=>{"use strict";var d=c(58952),e=c(13420),f=c(30212),g=c(17390),h=c(53933),i=c(39531);a.exports=function(a,b){var c=this;return(b=d.extend(b||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),i.isNode&&i.isStream(a))?e.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):d.prepareContent("the loaded zip file",a,!0,b.optimizedBinaryString,b.base64).then(function(a){var c=new g(b);return c.load(a),c}).then(function(a){var c=[e.Promise.resolve(a)],d=a.files;if(b.checkCRC32)for(var f=0;f<d.length;f++)c.push(function(a){return new e.Promise(function(b,c){var d=a.decompressed.getContentWorker().pipe(new h);d.on("error",function(a){c(a)}).on("end",function(){d.streamInfo.crc32!==a.decompressed.crc32?c(Error("Corrupted zip : CRC32 mismatch")):b()}).resume()})}(d[f]));return e.Promise.all(c)}).then(function(a){for(var e=a.shift(),f=e.files,g=0;g<f.length;g++){var h=f[g],i=h.fileNameStr,j=d.resolve(h.fileNameStr);c.file(j,h.decompressed,{binary:!0,optimizedBinaryString:!0,date:h.date,dir:h.dir,comment:h.fileCommentStr.length?h.fileCommentStr:null,unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions,createFolders:b.createFolders}),h.dir||(c.file(j).unsafeOriginalName=i)}return e.zipComment.length&&(c.comment=e.zipComment),c})}},19272:a=>{"use strict";a.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},19435:(a,b,c)=>{var d=c(84906),e=c(26932);function f(a){return new g(a.map(function(a){return d.isString(a)?h(a):a}))}function g(a){this._elements=a}function h(a,b,c){return new i(a,b,c=c||{})}function i(a,b,c){var e={};d.isArray(a)?(a.forEach(function(a){e[a]=!0}),a=a[0]):e[a]=!0,this.tagName=a,this.tagNames=e,this.attributes=b||{},this.fresh=c.fresh,this.separator=c.separator}b.topLevelElement=function(a,b){return f([h(a,b,{fresh:!0})])},b.elements=f,b.element=h,g.prototype.wrap=function(a){for(var b=a(),c=this._elements.length-1;c>=0;c--)b=this._elements[c].wrapNodes(b);return b},i.prototype.matchesElement=function(a){return this.tagNames[a.tagName]&&d.isEqual(this.attributes||{},a.attributes||{})},i.prototype.wrap=function(a){return this.wrapNodes(a())},i.prototype.wrapNodes=function(a){return[e.elementWithTag(this,a)]},b.empty=f([]),b.ignore={wrap:function(){return[]}}},19572:(a,b,c)=>{b.O=function(a){var b=a.bodyReader;return{convertXmlToDocument:function(c){var f=c.first("w:body");if(null==f)throw Error("Could not find the body element: are you sure this is a docx file?");var g=b.readXmlElements(f.children).map(function(b){return new d.Document(b,{notes:a.notes,comments:a.comments})});return new e(g.value,g.messages)}}};var d=c(77880),e=c(6560).Result},20577:a=>{"use strict";"u"<typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?a.exports={nextTick:function(a,b,c,d){if("function"!=typeof a)throw TypeError('"callback" argument must be a function');var e,f,g=arguments.length;switch(g){case 0:case 1:return process.nextTick(a);case 2:return process.nextTick(function(){a.call(null,b)});case 3:return process.nextTick(function(){a.call(null,b,c)});case 4:return process.nextTick(function(){a.call(null,b,c,d)});default:for(e=Array(g-1),f=0;f<e.length;)e[f++]=arguments[f];return process.nextTick(function(){a.apply(null,e)})}}}:a.exports=process},20710:(a,b,c)=>{"use strict";var d=c(65695);let e=a=>"bigint"==typeof a||Number.isInteger(a),f=(a,b,c,{intAsBigInt:d})=>d?BigInt(a):parseInt(a.substring(b),c);function g(a,b,c){let{value:f}=a;return e(f)&&f>=0?c+f.toString(b):d.stringifyNumber(a)}b.int={identify:e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(a,b,c)=>f(a,0,10,c),stringify:d.stringifyNumber},b.intHex={identify:a=>e(a)&&a>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(a,b,c)=>f(a,2,16,c),stringify:a=>g(a,16,"0x")},b.intOct={identify:a=>e(a)&&a>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(a,b,c)=>f(a,2,8,c),stringify:a=>g(a,8,"0o")}},20795:(a,b,c)=>{"use strict";var d=c(26701),e=c(69273),f=c(51490);function g(a){return"bigint"==typeof a||Number.isInteger(a)}let h=({value:a})=>JSON.stringify(a),i=[{identify:a=>"string"==typeof a,default:!0,tag:"tag:yaml.org,2002:str",resolve:a=>a,stringify:h},{identify:a=>null==a,createNode:()=>new d.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:h},{identify:a=>"boolean"==typeof a,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:a=>"true"===a,stringify:h},{identify:g,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(a,b,{intAsBigInt:c})=>c?BigInt(a):parseInt(a,10),stringify:({value:a})=>g(a)?a.toString():JSON.stringify(a)},{identify:a=>"number"==typeof a,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:a=>parseFloat(a),stringify:h}];b.schema=[e.map,f.seq].concat(i,{default:!0,tag:"",test:/^/,resolve:(a,b)=>(b(`Unresolved plain scalar ${JSON.stringify(a)}`),a)})},21476:(a,b,c)=>{"use strict";var d=c(76281);b.STORE={magic:"\0\0",compressWorker:function(){return new d("STORE compression")},uncompressWorker:function(){return new d("STORE decompression")}},b.DEFLATE=c(30137)},21609:a=>{"use strict";function b(a){return"/"===a.charAt(0)}function c(a){var b=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(a),c=b[1]||"",d=!!(c&&":"!==c.charAt(1));return!!(b[2]||d)}a.exports="win32"===process.platform?c:b,a.exports.posix=b,a.exports.win32=c},21667:a=>{"use strict";a.exports=function(a){var b=!1,c=[];function d(){this._trace=new d.CapturedTrace(e())}function e(){var a=c.length-1;if(a>=0)return c[a]}return a.prototype._promiseCreated=function(){},a.prototype._pushContext=function(){},a.prototype._popContext=function(){return null},a._peekContext=a.prototype._peekContext=function(){},d.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,c.push(this._trace))},d.prototype._popContext=function(){if(void 0!==this._trace){var a=c.pop(),b=a._promiseCreated;return a._promiseCreated=null,b}return null},d.CapturedTrace=null,d.create=function(){if(b)return new d},d.deactivateLongStackTraces=function(){},d.activateLongStackTraces=function(){var c=a.prototype._pushContext,f=a.prototype._popContext,g=a._peekContext,h=a.prototype._peekContext,i=a.prototype._promiseCreated;d.deactivateLongStackTraces=function(){a.prototype._pushContext=c,a.prototype._popContext=f,a._peekContext=g,a.prototype._peekContext=h,a.prototype._promiseCreated=i,b=!1},b=!0,a.prototype._pushContext=d.prototype._pushContext,a.prototype._popContext=d.prototype._popContext,a._peekContext=a.prototype._peekContext=e,a.prototype._promiseCreated=function(){var a=this._peekContext();a&&null==a._promiseCreated&&(a._promiseCreated=this)}},d}},21906:(a,b,c)=>{"use strict";var d=c(40831),e=c(58952),f=c(84127),g=c(56222),h=c(30212),i=c(21476),j=c(49642),k=function(a){for(var b in i)if(Object.prototype.hasOwnProperty.call(i,b)&&i[b].magic===a)return i[b];return null};function l(a,b){this.options=a,this.loadOptions=b}l.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(a){var b,c;if(a.skip(22),this.fileNameLength=a.readInt(2),c=a.readInt(2),this.fileName=a.readData(this.fileNameLength),a.skip(c),-1===this.compressedSize||-1===this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(b=k(this.compressionMethod)))throw Error("Corrupted zip : compression "+e.pretty(this.compressionMethod)+" unknown (inner file : "+e.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,b,a.readData(this.compressedSize))},readCentralPart:function(a){this.versionMadeBy=a.readInt(2),a.skip(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4);var b=a.readInt(2);if(this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");a.skip(b),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var a=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===a&&(this.dosPermissions=63&this.externalFileAttributes),3===a&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var a=d(this.extraFields[1].value);this.uncompressedSize===e.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===e.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===e.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===e.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4))}},readExtraFields:function(a){var b,c,d,e=a.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});a.index+4<e;)b=a.readInt(2),c=a.readInt(2),d=a.readData(c),this.extraFields[b]={id:b,length:c,value:d};a.setIndex(e)},handleUTF8:function(){var a=j.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(null!==b)this.fileNameStr=b;else{var c=e.transformTo(a,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(c)}var d=this.findExtraFieldUnicodeComment();if(null!==d)this.fileCommentStr=d;else{var f=e.transformTo(a,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(f)}}},findExtraFieldUnicodePath:function(){var a=this.extraFields[28789];if(a){var b=d(a.value);return 1!==b.readInt(1)||g(this.fileName)!==b.readInt(4)?null:h.utf8decode(b.readData(a.length-5))}return null},findExtraFieldUnicodeComment:function(){var a=this.extraFields[25461];if(a){var b=d(a.value);return 1!==b.readInt(1)||g(this.fileComment)!==b.readInt(4)?null:h.utf8decode(b.readData(a.length-5))}return null}},a.exports=l},22362:(a,b,c)=>{function d(a){return Object.prototype.toString.call(a)}b.isArray=function(a){return Array.isArray?Array.isArray(a):"[object Array]"===d(a)},b.isBoolean=function(a){return"boolean"==typeof a},b.isNull=function(a){return null===a},b.isNullOrUndefined=function(a){return null==a},b.isNumber=function(a){return"number"==typeof a},b.isString=function(a){return"string"==typeof a},b.isSymbol=function(a){return"symbol"==typeof a},b.isUndefined=function(a){return void 0===a},b.isRegExp=function(a){return"[object RegExp]"===d(a)},b.isObject=function(a){return"object"==typeof a&&null!==a},b.isDate=function(a){return"[object Date]"===d(a)},b.isError=function(a){return"[object Error]"===d(a)||a instanceof Error},b.isFunction=function(a){return"function"==typeof a},b.isPrimitive=function(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||void 0===a},b.isBuffer=c(79428).Buffer.isBuffer},22418:function(a,b,c){"use strict";var d,e,f=c(3987),g="u"<typeof navigator,h={e:{}},i="u">typeof self?self:"u">typeof window?window:"u">typeof global?global:void 0!==this?this:null;function j(){try{var a=e;return e=null,a.apply(this,arguments)}catch(a){return h.e=a,h}}function k(a){return null==a||!0===a||!1===a||"string"==typeof a||"number"==typeof a}function l(a,b,c){return k(a)||f.defineProperty(a,b,{value:c,configurable:!0,enumerable:!1,writable:!0}),a}var m=function(){var a=[Array.prototype,Object.prototype,Function.prototype],b=function(b){for(var c=0;c<a.length;++c)if(a[c]===b)return!0;return!1};if(f.isES5){var c=Object.getOwnPropertyNames;return function(a){for(var d,e=[],g=Object.create(null);null!=a&&!b(a);){try{d=c(a)}catch(a){break}for(var h=0;h<d.length;++h){var i=d[h];if(!g[i]){g[i]=!0;var j=Object.getOwnPropertyDescriptor(a,i);null!=j&&null==j.get&&null==j.set&&e.push(i)}}a=f.getPrototypeOf(a)}return e}}var d={}.hasOwnProperty;return function(c){if(b(c))return[];var e=[];a:for(var f in c)if(d.call(c,f))e.push(f);else{for(var g=0;g<a.length;++g)if(d.call(a[g],f))continue a;e.push(f)}return e}}(),n=/this\s*\.\s*\S+\s*=/,o=/^[a-z$_][a-z$_0-9]*$/i;function p(a){try{return a+""}catch(a){return"[no string representation]"}}function q(a){return null!==a&&"object"==typeof a&&"string"==typeof a.message&&"string"==typeof a.name}function r(a){return q(a)&&f.propertyIsWritable(a,"stack")}var s="stack"in Error()?function(a){return r(a)?a:Error(p(a))}:function(a){if(r(a))return a;try{throw Error(p(a))}catch(a){return a}};function t(a){return({}).toString.call(a)}var u=function(a){return f.isArray(a)?a:null};if("u">typeof Symbol&&Symbol.iterator){var v="function"==typeof Array.from?function(a){return Array.from(a)}:function(a){for(var b,c=[],d=a[Symbol.iterator]();!(b=d.next()).done;)c.push(b.value);return c};u=function(a){return f.isArray(a)?a:null!=a&&"function"==typeof a[Symbol.iterator]?v(a):null}}var w="u">typeof process&&"[object process]"===t(process).toLowerCase(),x="u">typeof process&&void 0!==process.env,y={isClass:function(a){try{if("function"==typeof a){var b=f.names(a.prototype),c=f.isES5&&b.length>1,d=b.length>0&&(1!==b.length||"constructor"!==b[0]),e=n.test(a+"")&&f.names(a).length>0;if(c||d||e)return!0}return!1}catch(a){return!1}},isIdentifier:function(a){return o.test(a)},inheritedDataKeys:m,getDataPropertyOrDefault:function(a,b,c){if(!f.isES5)return({}).hasOwnProperty.call(a,b)?a[b]:void 0;var d=Object.getOwnPropertyDescriptor(a,b);if(null!=d)return null==d.get&&null==d.set?d.value:c},thrower:function(a){throw a},isArray:f.isArray,asArray:u,notEnumerableProp:l,isPrimitive:k,isObject:function(a){return"function"==typeof a||"object"==typeof a&&null!==a},isError:q,canEvaluate:g,errorObj:h,tryCatch:function(a){return e=a,j},inherits:function(a,b){var c={}.hasOwnProperty;function d(){for(var d in this.constructor=a,this.constructor$=b,b.prototype)c.call(b.prototype,d)&&"$"!==d.charAt(d.length-1)&&(this[d+"$"]=b.prototype[d])}return d.prototype=b.prototype,a.prototype=new d,a.prototype},withAppended:function(a,b){var c,d=a.length,e=Array(d+1);for(c=0;c<d;++c)e[c]=a[c];return e[c]=b,e},maybeWrapAsError:function(a){return k(a)?Error(p(a)):a},toFastProperties:function(a){function b(){}b.prototype=a;for(var c=8;c--;)new b;return a},filledRange:function(a,b,c){for(var d=Array(a),e=0;e<a;++e)d[e]=b+e+c;return d},toString:p,canAttachTrace:r,ensureErrorObject:s,originatesFromRejection:function(a){return null!=a&&(a instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===a.isOperational)},markAsOriginatingFromRejection:function(a){try{l(a,"isOperational",!0)}catch(a){}},classString:t,copyDescriptors:function(a,b,c){for(var d=f.names(a),e=0;e<d.length;++e){var g=d[e];if(c(g))try{f.defineProperty(b,g,f.getDescriptor(a,g))}catch(a){}}},hasDevTools:"u">typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:w,hasEnvVariables:x,env:function(a){return x?process.env[a]:void 0},global:i,getNativePromise:function(){if("function"==typeof Promise)try{var a=new Promise(function(){});if("[object Promise]"===({}).toString.call(a))return Promise}catch(a){}},domainBind:function(a,b){return a.bind(b)}};y.isRecentNode=y.isNode&&(0===(d=process.versions.node.split(".").map(Number))[0]&&d[1]>10||d[0]>0),y.isNode&&y.toFastProperties(process);try{throw Error()}catch(a){y.lastLineError=a}a.exports=y},22899:(a,b,c)=>{"use strict";var d=c(56073),e=c(69167),f=c(75034),g=c(19272),h=c(32010),i=Object.prototype.toString;function j(a){if(!(this instanceof j))return new j(a);this.options=e.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},a||{});var b,c=this.options;c.raw&&c.windowBits>0?c.windowBits=-c.windowBits:c.gzip&&c.windowBits>0&&c.windowBits<16&&(c.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var k=d.deflateInit2(this.strm,c.level,c.method,c.windowBits,c.memLevel,c.strategy);if(0!==k)throw Error(g[k]);if(c.header&&d.deflateSetHeader(this.strm,c.header),c.dictionary){if(b="string"==typeof c.dictionary?f.string2buf(c.dictionary):"[object ArrayBuffer]"===i.call(c.dictionary)?new Uint8Array(c.dictionary):c.dictionary,0!==(k=d.deflateSetDictionary(this.strm,b)))throw Error(g[k]);this._dict_set=!0}}function k(a,b){var c=new j(b);if(c.push(a,!0),c.err)throw c.msg||g[c.err];return c.result}j.prototype.push=function(a,b){var c,g,h=this.strm,j=this.options.chunkSize;if(this.ended)return!1;g=b===~~b?b:4*(!0===b),"string"==typeof a?h.input=f.string2buf(a):"[object ArrayBuffer]"===i.call(a)?h.input=new Uint8Array(a):h.input=a,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new e.Buf8(j),h.next_out=0,h.avail_out=j),1!==(c=d.deflate(h,g))&&0!==c)return this.onEnd(c),this.ended=!0,!1;(0===h.avail_out||0===h.avail_in&&(4===g||2===g))&&("string"===this.options.to?this.onData(f.buf2binstring(e.shrinkBuf(h.output,h.next_out))):this.onData(e.shrinkBuf(h.output,h.next_out)))}while((h.avail_in>0||0===h.avail_out)&&1!==c);return 4===g?(c=d.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,0===c):(2===g&&(this.onEnd(0),h.avail_out=0),!0)},j.prototype.onData=function(a){this.chunks.push(a)},j.prototype.onEnd=function(a){0===a&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},b.Deflate=j,b.deflate=k,b.deflateRaw=function(a,b){return(b=b||{}).raw=!0,k(a,b)},b.gzip=function(a,b){return(b=b||{}).gzip=!0,k(a,b)}},23342:(a,b,c)=>{"use strict";var d=c(58952),e=c(76281);function f(a){e.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}d.inherits(f,e),f.prototype.processChunk=function(a){if(a){var b=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=b+a.data.length}e.prototype.processChunk.call(this,a)},a.exports=f},23435:(a,b,c)=>{var d=c(16734),e=c(90050);b.writer=function(a){return"markdown"===(a=a||{}).outputFormat?e.writer():d.writer(a)}},23896:(a,b,c)=>{"use strict";a.exports=function(a){var b=c(22418),d=c(3987).keys,e=b.tryCatch,f=b.errorObj;return function(c,g,h){return function(i){var j=h._boundValue();b:for(var k=0;k<c.length;++k){var l=c[k];if(l===Error||null!=l&&l.prototype instanceof Error){if(i instanceof l)return e(g).call(j,i)}else if("function"==typeof l){var m=e(l).call(j,i);if(m===f)return m;if(m)return e(g).call(j,i)}else if(b.isObject(i)){for(var n=d(l),o=0;o<n.length;++o){var p=n[o];if(l[p]!=i[p])continue b}return e(g).call(j,i)}}return a}}}},24083:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p=function(a,b){for(var c in b)q.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},q={}.hasOwnProperty;i=c(2286),j=c(72240),b=c(92293),d=c(96321),l=c(16426),n=c(77632),o=c(46107),m=c(11781),k=c(16646),e=c(54107),f=c(9774),g=c(4907),h=c(54968),a.exports=function(a){function c(a,b){c.__super__.constructor.call(this,b),this.stream=a}return p(c,a),c.prototype.document=function(a){var b,c,e,f,g,h,l,n;for(c=0,f=(h=a.children).length;c<f;c++)(b=h[c]).isLastRootNode=!1;for(a.children[a.children.length-1].isLastRootNode=!0,l=a.children,n=[],e=0,g=l.length;e<g;e++)if(!((b=l[e])instanceof k))switch(!1){case!(b instanceof i):n.push(this.declaration(b));break;case!(b instanceof j):n.push(this.docType(b));break;case!(b instanceof d):n.push(this.comment(b));break;case!(b instanceof m):n.push(this.processingInstruction(b));break;default:n.push(this.element(b))}return n},c.prototype.attribute=function(a){return this.stream.write(" "+a.name+'="'+a.value+'"')},c.prototype.cdata=function(a,b){return this.stream.write(this.space(b)+"<![CDATA["+a.text+"]]>"+this.endline(a))},c.prototype.comment=function(a,b){return this.stream.write(this.space(b)+"\x3c!-- "+a.text+" --\x3e"+this.endline(a))},c.prototype.declaration=function(a,b){return this.stream.write(this.space(b)),this.stream.write('<?xml version="'+a.version+'"'),null!=a.encoding&&this.stream.write(' encoding="'+a.encoding+'"'),null!=a.standalone&&this.stream.write(' standalone="'+a.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(a))},c.prototype.docType=function(a,c){var i,j,k,l;if(c||(c=0),this.stream.write(this.space(c)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a)),j=0,k=(l=a.children).length;j<k;j++)switch(i=l[j],!1){case!(i instanceof e):this.dtdAttList(i,c+1);break;case!(i instanceof f):this.dtdElement(i,c+1);break;case!(i instanceof g):this.dtdEntity(i,c+1);break;case!(i instanceof h):this.dtdNotation(i,c+1);break;case!(i instanceof b):this.cdata(i,c+1);break;case!(i instanceof d):this.comment(i,c+1);break;case!(i instanceof m):this.processingInstruction(i,c+1);break;default:throw Error("Unknown DTD node type: "+i.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(a))},c.prototype.element=function(a,c){var e,f,g,h,i,j,p,r;for(i in c||(c=0),r=this.space(c),this.stream.write(r+"<"+a.name),j=a.attributes)q.call(j,i)&&(e=j[i],this.attribute(e));if(0===a.children.length||a.children.every(function(a){return""===a.value}))this.allowEmpty?this.stream.write("></"+a.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===a.children.length&&null!=a.children[0].value)this.stream.write(">"),this.stream.write(a.children[0].value),this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.newline),g=0,h=(p=a.children).length;g<h;g++)switch(f=p[g],!1){case!(f instanceof b):this.cdata(f,c+1);break;case!(f instanceof d):this.comment(f,c+1);break;case!(f instanceof l):this.element(f,c+1);break;case!(f instanceof n):this.raw(f,c+1);break;case!(f instanceof o):this.text(f,c+1);break;case!(f instanceof m):this.processingInstruction(f,c+1);break;case!(f instanceof k):break;default:throw Error("Unknown XML node type: "+f.constructor.name)}this.stream.write(r+"</"+a.name+">")}return this.stream.write(this.endline(a))},c.prototype.processingInstruction=function(a,b){return this.stream.write(this.space(b)+"<?"+a.target),a.value&&this.stream.write(" "+a.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(a))},c.prototype.raw=function(a,b){return this.stream.write(this.space(b)+a.value+this.endline(a))},c.prototype.text=function(a,b){return this.stream.write(this.space(b)+a.value+this.endline(a))},c.prototype.dtdAttList=function(a,b){return this.stream.write(this.space(b)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType),"#DEFAULT"!==a.defaultValueType&&this.stream.write(" "+a.defaultValueType),a.defaultValue&&this.stream.write(' "'+a.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},c.prototype.dtdElement=function(a,b){return this.stream.write(this.space(b)+"<!ELEMENT "+a.name+" "+a.value),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},c.prototype.dtdEntity=function(a,b){return this.stream.write(this.space(b)+"<!ENTITY"),a.pe&&this.stream.write(" %"),this.stream.write(" "+a.name),a.value?this.stream.write(' "'+a.value+'"'):(a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.nData&&this.stream.write(" NDATA "+a.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},c.prototype.dtdNotation=function(a,b){return this.stream.write(this.space(b)+"<!NOTATION "+a.name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.pubID?this.stream.write(' PUBLIC "'+a.pubID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},c.prototype.endline=function(a){return a.isLastRootNode?"":this.newline},c}(c(72884))}).call(this)},25105:(a,b,c)=>{var d=c(84906),e=c(1906),f=c(65869),g=c(89281),h=c(59076);b.token=function(a,b){var c=void 0!==b;return function(d){var e=d.head();return e&&e.name===a&&(!c||e.value===b)?f.success(e.value,d.tail(),e.source):n(d,m({name:a,value:b}))}},b.tokenOfType=function(a){return b.token(a)},b.firstOf=function(a,b){return d.isArray(b)||(b=Array.prototype.slice.call(arguments,1)),function(c){return h.fromArray(b).map(function(a){return a(c)}).filter(function(a){return a.isSuccess()||a.isError()}).first()||n(c,a)}},b.then=function(a,b){return function(c){var d=a(c);return d.map||console.log(d),d.map(b)}},b.sequence=function(){var a=Array.prototype.slice.call(arguments,0),c=function(c){var e=d.foldl(a,function(a,b){var d=a.result,e=a.hasCut;if(!d.isSuccess())return{result:d,hasCut:e};var g=b(d.remaining());if(g.isCut())return{result:d,hasCut:!0};if(g.isSuccess()){var h=b.isCaptured?d.value().withValue(b,g.value()):d.value(),i=g.remaining(),j=c.to(i);return{result:f.success(h,i,j),hasCut:e}}return e?{result:f.error(g.errors(),g.remaining()),hasCut:e}:{result:g,hasCut:e}},{result:f.success(new i,c),hasCut:!1}).result,g=c.to(e.remaining());return e.map(function(a){return a.withValue(b.sequence.source,g)})};function e(a){return a.isCaptured}return c.head=function(){var f=d.find(a,e);return b.then(c,b.sequence.extract(f))},c.map=function(a){return b.then(c,function(b){return a.apply(this,b.toArray())})},c};var i=function(a,b){this._values=a||{},this._valuesArray=b||[]};i.prototype.withValue=function(a,b){if(a.captureName&&a.captureName in this._values)throw Error('Cannot add second value for capture "'+a.captureName+'"');var c=d.clone(this._values);return c[a.captureName]=b,new i(c,this._valuesArray.concat([b]))},i.prototype.get=function(a){if(a.captureName in this._values)return this._values[a.captureName];throw Error('No value for capture "'+a.captureName+'"')},i.prototype.toArray=function(){return this._valuesArray},b.sequence.capture=function(a,b){var c=function(){return a.apply(this,arguments)};return c.captureName=b,c.isCaptured=!0,c},b.sequence.extract=function(a){return function(b){return b.get(a)}},b.sequence.applyValues=function(a){var b=Array.prototype.slice.call(arguments,1);return function(c){var d=b.map(function(a){return c.get(a)});return a.apply(this,d)}},b.sequence.source={captureName:"☃source☃"},b.sequence.cut=function(){return function(a){return f.cut(a)}},b.optional=function(a){return function(b){var c=a(b);return c.isSuccess()?c.map(e.some):c.isFailure()?f.success(e.none,b):c}},b.zeroOrMoreWithSeparator=function(a,b){return l(a,b,!1)},b.oneOrMoreWithSeparator=function(a,b){return l(a,b,!0)};var j=b.zeroOrMore=function(a){return function(b){for(var c,d=[];(c=a(b))&&c.isSuccess();)b=c.remaining(),d.push(c.value());return c.isError()?c:f.success(d,b)}};function k(a){return f.success(null,a)}b.oneOrMore=function(a){return b.oneOrMoreWithSeparator(a,k)};var l=function(a,c,d){return function(e){var g=a(e);if(g.isSuccess()){var h=b.sequence.capture(a,"main"),i=j(b.then(b.sequence(c,h),b.sequence.extract(h)))(g.remaining());return f.success([g.value()].concat(i.value()),i.remaining())}return d||g.isError()?g:f.success([],e)}};b.leftAssociative=function(a,c,d){var e=(e=d?[{func:d,rule:c}]:c).map(function(a){return b.then(a.rule,function(b){return function(c,d){return a.func(c,b,d)}})}),g=b.firstOf.apply(null,["rules"].concat(e));return function(b){var c=a(b);if(!c.isSuccess())return c;for(var d=g(c.remaining());d.isSuccess();){var e=d.remaining(),h=b.to(d.remaining()),i=d.value();d=g((c=f.success(i(c.value(),h),e,h)).remaining())}return d.isError()?d:c}},b.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},b.nonConsuming=function(a){return function(b){return a(b).changeRemaining(b)}};var m=function(a){return a.value?a.name+' "'+a.value+'"':a.name};function n(a,b){var c,d=a.head();return c=d?g.error({expected:b,actual:m(d),location:d.source}):g.error({expected:b,actual:"end of tokens"}),f.failure([c],a)}},26092:(a,b,c)=>{b.Tt=function(a){return a=a||{},d.extend({},f,a,{customStyleMap:g(a.styleMap),readStyleMap:function(){var a=this.customStyleMap;return this.includeEmbeddedStyleMap&&(a=a.concat(g(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(a=a.concat(e)),a}})};var d=c(84906),e=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],f={externalFileAccess:!1,transformDocument:function(a){return a},includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function g(a){return a?d.isString(a)?a.split("\n").map(function(a){return a.trim()}).filter(function(a){return""!==a&&"#"!==a.charAt(0)}):a:[]}},26701:(a,b,c)=>{"use strict";var d=c(73315),e=c(26957),f=c(49443);class g extends e.NodeBase{constructor(a){super(d.SCALAR),this.value=a}toJSON(a,b){return b?.keep?this.value:f.toJS(this.value,a,b)}toString(){return String(this.value)}}g.BLOCK_FOLDED="BLOCK_FOLDED",g.BLOCK_LITERAL="BLOCK_LITERAL",g.PLAIN="PLAIN",g.QUOTE_DOUBLE="QUOTE_DOUBLE",g.QUOTE_SINGLE="QUOTE_SINGLE",b.Scalar=g,b.isScalarValue=a=>!a||"function"!=typeof a&&"object"!=typeof a},26720:(a,b,c)=>{"use strict";var d=c(26701);function e({value:a,source:b},c){let d=a?f:g;return b&&d.test.test(b)?b:a?c.options.trueStr:c.options.falseStr}let f={identify:a=>!0===a,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new d.Scalar(!0),stringify:e},g={identify:a=>!1===a,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new d.Scalar(!1),stringify:e};b.falseTag=g,b.trueTag=f},26932:(a,b,c)=>{var d=c(67708);function e(a,b){b.forEach(function(b){var c,d;c=a,f[(d=b).type](c,d)})}b.freshElement=d.freshElement,b.nonFreshElement=d.nonFreshElement,b.elementWithTag=d.elementWithTag,b.text=d.text,b.forceWrite=d.forceWrite,b.simplify=c(62117);var f={element:function(a,b){d.isVoidElement(b)?a.selfClosing(b.tag.tagName,b.tag.attributes):(a.open(b.tag.tagName,b.tag.attributes),e(a,b.children),a.close(b.tag.tagName))},text:function(a,b){a.text(b.value)},forceWrite:function(){}};b.write=e},26957:(a,b,c)=>{"use strict";var d=c(83989),e=c(73315),f=c(49443);class g{constructor(a){Object.defineProperty(this,e.NODE_TYPE,{value:a})}clone(){let a=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(a.range=this.range.slice()),a}toJS(a,{mapAsMap:b,maxAliasCount:c,onAnchor:g,reviver:h}={}){if(!e.isDocument(a))throw TypeError("A document argument is required");let i={anchors:new Map,doc:a,keep:!0,mapAsMap:!0===b,mapKeyWarned:!1,maxAliasCount:"number"==typeof c?c:100},j=f.toJS(this,"",i);if("function"==typeof g)for(let{count:a,res:b}of i.anchors.values())g(b,a);return"function"==typeof h?d.applyReviver(h,{"":j},"",j):j}}b.NodeBase=g},27387:(a,b,c)=>{"use strict";var d=c(26701);let e={identify:a=>"boolean"==typeof a,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:a=>new d.Scalar("t"===a[0]||"T"===a[0]),stringify:({source:a,value:b},c)=>a&&e.test.test(a)&&b===("t"===a[0]||"T"===a[0])?a:b?c.options.trueStr:c.options.falseStr};b.boolTag=e},30137:(a,b,c)=>{"use strict";var d="u">typeof Uint8Array&&"u">typeof Uint16Array&&"u">typeof Uint32Array,e=c(32778),f=c(58952),g=c(76281),h=d?"uint8array":"array";function i(a,b){g.call(this,"FlateWorker/"+a),this._pako=null,this._pakoAction=a,this._pakoOptions=b,this.meta={}}b.magic="\b\0",f.inherits(i,g),i.prototype.processChunk=function(a){this.meta=a.meta,null===this._pako&&this._createPako(),this._pako.push(f.transformTo(h,a.data),!1)},i.prototype.flush=function(){g.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},i.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this._pako=null},i.prototype._createPako=function(){this._pako=new e[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var a=this;this._pako.onData=function(b){a.push({data:b,meta:a.meta})}},b.compressWorker=function(a){return new i("Deflate",a)},b.uncompressWorker=function(){return new i("Inflate",{})}},30212:(a,b,c)=>{"use strict";for(var d=c(58952),e=c(49642),f=c(39531),g=c(76281),h=Array(256),i=0;i<256;i++)h[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;h[254]=h[254]=1;var j=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;f<h;f++)(64512&(c=a.charCodeAt(f)))==55296&&f+1<h&&(64512&(d=a.charCodeAt(f+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),f++),i+=c<128?1:c<2048?2:c<65536?3:4;for(b=e.uint8array?new Uint8Array(i):Array(i),g=0,f=0;g<i;f++)(64512&(c=a.charCodeAt(f)))==55296&&f+1<h&&(64512&(d=a.charCodeAt(f+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),f++),c<128?b[g++]=c:(c<2048?b[g++]=192|c>>>6:(c<65536?b[g++]=224|c>>>12:(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63),b[g++]=128|c>>>6&63),b[g++]=128|63&c);return b},k=function(a,b){var c;for((b=b||a.length)>a.length&&(b=a.length),c=b-1;c>=0&&(192&a[c])==128;)c--;return c<0||0===c?b:c+h[a[c]]>b?c:b},l=function(a){var b,c,e,f,g=a.length,i=Array(2*g);for(c=0,b=0;b<g;){if((e=a[b++])<128){i[c++]=e;continue}if((f=h[e])>4){i[c++]=65533,b+=f-1;continue}for(e&=2===f?31:3===f?15:7;f>1&&b<g;)e=e<<6|63&a[b++],f--;if(f>1){i[c++]=65533;continue}e<65536?i[c++]=e:(e-=65536,i[c++]=55296|e>>10&1023,i[c++]=56320|1023&e)}return i.length!==c&&(i.subarray?i=i.subarray(0,c):i.length=c),d.applyFromCharCode(i)};function m(){g.call(this,"utf-8 decode"),this.leftOver=null}function n(){g.call(this,"utf-8 encode")}b.utf8encode=function(a){return e.nodebuffer?f.newBufferFrom(a,"utf-8"):j(a)},b.utf8decode=function(a){return e.nodebuffer?d.transformTo("nodebuffer",a).toString("utf-8"):l(a=d.transformTo(e.uint8array?"uint8array":"array",a))},d.inherits(m,g),m.prototype.processChunk=function(a){var c=d.transformTo(e.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(e.uint8array){var f=c;(c=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),c.set(f,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var g=k(c),h=c;g!==c.length&&(e.uint8array?(h=c.subarray(0,g),this.leftOver=c.subarray(g,c.length)):(h=c.slice(0,g),this.leftOver=c.slice(g,c.length))),this.push({data:b.utf8decode(h),meta:a.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:b.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},b.Utf8DecodeWorker=m,d.inherits(n,g),n.prototype.processChunk=function(a){this.push({data:b.utf8encode(a.data),meta:a.meta})},b.Utf8EncodeWorker=n},30444:(a,b,c)=>{var d=c(79428),e=d.Buffer;function f(a,b){for(var c in a)b[c]=a[c]}function g(a,b,c){return e(a,b,c)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?a.exports=d:(f(d,b),b.Buffer=g),f(e,g),g.from=function(a,b,c){if("number"==typeof a)throw TypeError("Argument must not be a number");return e(a,b,c)},g.alloc=function(a,b,c){if("number"!=typeof a)throw TypeError("Argument must be a number");var d=e(a);return void 0!==b?"string"==typeof c?d.fill(b,c):d.fill(b):d.fill(0),d},g.allocUnsafe=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return e(a)},g.allocUnsafeSlow=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return d.SlowBuffer(a)}},30598:(a,b,c)=>{"use strict";var d=c(70752),e=c(8878),f=c(66273),g=c(73315),h=c(37521),i=c(26701);function j(a,b){let c=g.isScalar(b)?b.value:b;for(let d of a)if(g.isPair(d)&&(d.key===b||d.key===c||g.isScalar(d.key)&&d.key.value===c))return d}class k extends f.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(a){super(g.MAP,a),this.items=[]}static from(a,b,c){let{keepUndefined:d,replacer:e}=c,f=new this(a),g=(a,g)=>{if("function"==typeof e)g=e.call(b,a,g);else if(Array.isArray(e)&&!e.includes(a))return;(void 0!==g||d)&&f.items.push(h.createPair(a,g,c))};if(b instanceof Map)for(let[a,c]of b)g(a,c);else if(b&&"object"==typeof b)for(let a of Object.keys(b))g(a,b[a]);return"function"==typeof a.sortMapEntries&&f.items.sort(a.sortMapEntries),f}add(a,b){let c;c=g.isPair(a)?a:a&&"object"==typeof a&&"key"in a?new h.Pair(a.key,a.value):new h.Pair(a,a?.value);let d=j(this.items,c.key),e=this.schema?.sortMapEntries;if(d){if(!b)throw Error(`Key ${c.key} already set`);g.isScalar(d.value)&&i.isScalarValue(c.value)?d.value.value=c.value:d.value=c.value}else if(e){let a=this.items.findIndex(a=>0>e(c,a));-1===a?this.items.push(c):this.items.splice(a,0,c)}else this.items.push(c)}delete(a){let b=j(this.items,a);return!!b&&this.items.splice(this.items.indexOf(b),1).length>0}get(a,b){let c=j(this.items,a),d=c?.value;return(!b&&g.isScalar(d)?d.value:d)??void 0}has(a){return!!j(this.items,a)}set(a,b){this.add(new h.Pair(a,b),!0)}toJSON(a,b,c){let d=c?new c:b?.mapAsMap?new Map:{};for(let a of(b?.onCreate&&b.onCreate(d),this.items))e.addPairToJSMap(b,d,a);return d}toString(a,b,c){if(!a)return JSON.stringify(this);for(let a of this.items)if(!g.isPair(a))throw Error(`Map items must all be pairs; found ${JSON.stringify(a)} instead`);return!a.allNullValues&&this.hasAllNullValues(!1)&&(a=Object.assign({},a,{allNullValues:!0})),d.stringifyCollection(this,a,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:a.indent||"",onChompKeep:c,onComment:b})}}b.YAMLMap=k,b.findPair=j},30666:(a,b,c)=>{"use strict";var d=c(26701);let e={identify:a=>null==a,createNode:()=>new d.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new d.Scalar(null),stringify:({source:a},b)=>"string"==typeof a&&e.test.test(a)?a:b.options.nullStr};b.nullTag=e},31991:(a,b)=>{"use strict";function c(a){switch(a.type){case"block-scalar":{let b="";for(let d of a.props)b+=c(d);return b+a.source}case"block-map":case"block-seq":{let b="";for(let c of a.items)b+=d(c);return b}case"flow-collection":{let b=a.start.source;for(let c of a.items)b+=d(c);for(let c of a.end)b+=c.source;return b}case"document":{let b=d(a);if(a.end)for(let c of a.end)b+=c.source;return b}default:{let b=a.source;if("end"in a&&a.end)for(let c of a.end)b+=c.source;return b}}}function d({start:a,key:b,sep:e,value:f}){let g="";for(let b of a)g+=b.source;if(b&&(g+=c(b)),e)for(let a of e)g+=a.source;return f&&(g+=c(f)),g}b.stringify=a=>"type"in a?c(a):d(a)},32010:a=>{"use strict";a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},32232:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e,f,g){var h=c(43823).TypeError,i=c(22418),j=i.errorObj,k=i.tryCatch,l=[];function m(b,c,e,f){if(g.cancellation()){var h=new a(d),i=this._finallyPromise=new a(d);this._promise=h.lastly(function(){return i}),h._captureStackTrace(),h._setOnCancel(this)}else(this._promise=new a(d))._captureStackTrace();this._stack=f,this._generatorFunction=b,this._receiver=c,this._generator=void 0,this._yieldHandlers="function"==typeof e?[e].concat(l):l,this._yieldedPromise=null,this._cancellationPhase=!1}i.inherits(m,f),m.prototype._isResolved=function(){return null===this._promise},m.prototype._cleanup=function(){this._promise=this._generator=null,g.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},m.prototype._promiseCancelled=function(){if(!this._isResolved()){var b;if(void 0!==this._generator.return)this._promise._pushContext(),b=k(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var c=new a.CancellationError("generator .return() sentinel");a.coroutine.returnSentinel=c,this._promise._attachExtraTrace(c),this._promise._pushContext(),b=k(this._generator.throw).call(this._generator,c),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(b)}},m.prototype._promiseFulfilled=function(a){this._yieldedPromise=null,this._promise._pushContext();var b=k(this._generator.next).call(this._generator,a);this._promise._popContext(),this._continue(b)},m.prototype._promiseRejected=function(a){this._yieldedPromise=null,this._promise._attachExtraTrace(a),this._promise._pushContext();var b=k(this._generator.throw).call(this._generator,a);this._promise._popContext(),this._continue(b)},m.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof a){var b=this._yieldedPromise;this._yieldedPromise=null,b.cancel()}},m.prototype.promise=function(){return this._promise},m.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},m.prototype._continue=function(b){var c=this._promise;if(b===j)return(this._cleanup(),this._cancellationPhase)?c.cancel():c._rejectCallback(b.e,!1);var d=b.value;if(!0===b.done)return(this._cleanup(),this._cancellationPhase)?c.cancel():c._resolveCallback(d);var f=e(d,this._promise);if(!(f instanceof a)&&null===(f=function(b,c,d){for(var f=0;f<c.length;++f){d._pushContext();var g=k(c[f])(b);if(d._popContext(),g===j){d._pushContext();var h=a.reject(j.e);return d._popContext(),h}var i=e(g,d);if(i instanceof a)return i}return null}(f,this._yieldHandlers,this._promise)))return void this._promiseRejected(new h("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",d)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));var g=(f=f._target())._bitField;(0x3010000&g)==0?(this._yieldedPromise=f,f._proxy(this,null)):(0x2000000&g)!=0?a._async.invoke(this._promiseFulfilled,this,f._value()):(0x1000000&g)!=0?a._async.invoke(this._promiseRejected,this,f._reason()):this._promiseCancelled()},a.coroutine=function(a,b){if("function"!=typeof a)throw new h("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var c=Object(b).yieldHandler,d=Error().stack;return function(){var b=a.apply(this,arguments),e=new m(void 0,void 0,c,d),f=e.promise();return e._generator=b,e._promiseFulfilled(void 0),f}},a.coroutine.addYieldHandler=function(a){if("function"!=typeof a)throw new h("expecting a function but got "+i.classString(a));l.push(a)},a.spawn=function(c){if(g.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof c)return b("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var d=new m(c,this),e=d.promise();return d._run(a.spawn),e}}},32778:(a,b,c)=>{"use strict";var d=c(69167).assign,e=c(22899),f=c(43631),g=c(53308),h={};d(h,e,f,g),a.exports=h},33824:(a,b,c)=>{"use strict";var d=c(73315),e=c(69273),f=c(51490),g=c(57422),h=c(45538);let i=(a,b)=>a.key<b.key?-1:+(a.key>b.key);class j{constructor({compat:a,customTags:b,merge:c,resolveKnownTags:j,schema:k,sortMapEntries:l,toStringDefaults:m}){this.compat=Array.isArray(a)?h.getTags(a,"compat"):a?h.getTags(null,a):null,this.name="string"==typeof k&&k||"core",this.knownTags=j?h.coreKnownTags:{},this.tags=h.getTags(b,this.name,c),this.toStringOptions=m??null,Object.defineProperty(this,d.MAP,{value:e.map}),Object.defineProperty(this,d.SCALAR,{value:g.string}),Object.defineProperty(this,d.SEQ,{value:f.seq}),this.sortMapEntries="function"==typeof l?l:!0===l?i:null}clone(){let a=Object.create(j.prototype,Object.getOwnPropertyDescriptors(this));return a.tags=this.tags.slice(),a}}b.Schema=j},33840:(a,b,c)=>{var d=c(60828),e=c(49472),f=c(57009),g=c(12868),h=e.DOMImplementation,i=d.NAMESPACE,j=g.ParseError,k=g.XMLReader;function l(a){return a.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function m(a){this.options=a||{locator:{}}}function n(){this.cdata=!1}function o(a,b){b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber}function p(a){if(a)return"\n@"+(a.systemId||"")+"#[line:"+a.lineNumber+",col:"+a.columnNumber+"]"}function q(a,b,c){return"string"==typeof a?a.substr(b,c):a.length>=b+c||b?new java.lang.String(a,b,c)+"":a}function r(a,b){a.currentElement?a.currentElement.appendChild(b):a.doc.appendChild(b)}m.prototype.parseFromString=function(a,b){var c=this.options,d=new k,e=c.domBuilder||new n,g=c.errorHandler,h=c.locator,j=c.xmlns||{},m=/\/x?html?$/.test(b),o=m?f.HTML_ENTITIES:f.XML_ENTITIES;h&&e.setDocumentLocator(h),d.errorHandler=function(a,b,c){if(!a){if(b instanceof n)return b;a=b}var d={},e=a instanceof Function;function f(b){var f=a[b];!f&&e&&(f=2==a.length?function(c){a(b,c)}:a),d[b]=f&&function(a){f("[xmldom "+b+"] "+a+p(c))}||function(){}}return c=c||{},f("warning"),f("error"),f("fatalError"),d}(g,e,h),d.domBuilder=c.domBuilder||e,m&&(j[""]=i.HTML),j.xml=j.xml||i.XML;var q=c.normalizeLineEndings||l;return a&&"string"==typeof a?d.parse(q(a),j,o):d.errorHandler.error("invalid doc source"),e.doc},n.prototype={startDocument:function(){this.doc=new h().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(a,b,c,d){var e=this.doc,f=e.createElementNS(a,c||b),g=d.length;r(this,f),this.currentElement=f,this.locator&&o(this.locator,f);for(var h=0;h<g;h++){var a=d.getURI(h),i=d.getValue(h),c=d.getQName(h),j=e.createAttributeNS(a,c);this.locator&&o(d.getLocator(h),j),j.value=j.nodeValue=i,f.setAttributeNode(j)}},endElement:function(a,b,c){var d=this.currentElement;d.tagName,this.currentElement=d.parentNode},startPrefixMapping:function(a,b){},endPrefixMapping:function(a){},processingInstruction:function(a,b){var c=this.doc.createProcessingInstruction(a,b);this.locator&&o(this.locator,c),r(this,c)},ignorableWhitespace:function(a,b,c){},characters:function(a,b,c){if(a=q.apply(this,arguments)){if(this.cdata)var d=this.doc.createCDATASection(a);else var d=this.doc.createTextNode(a);this.currentElement?this.currentElement.appendChild(d):/^\s*$/.test(a)&&this.doc.appendChild(d),this.locator&&o(this.locator,d)}},skippedEntity:function(a){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(a){(this.locator=a)&&(a.lineNumber=0)},comment:function(a,b,c){a=q.apply(this,arguments);var d=this.doc.createComment(a);this.locator&&o(this.locator,d),r(this,d)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(a,b,c){var d=this.doc.implementation;if(d&&d.createDocumentType){var e=d.createDocumentType(a,b,c);this.locator&&o(this.locator,e),r(this,e),this.doc.doctype=e}},warning:function(a){console.warn("[xmldom warning] "+a,p(this.locator))},error:function(a){console.error("[xmldom error] "+a,p(this.locator))},fatalError:function(a){throw new j(a,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(a){n.prototype[a]=function(){return null}}),b.DOMParser=m},35504:(a,b,c)=>{"use strict";var d=c(69167),e=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],g=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];a.exports=function(a,b,c,i,j,k,l,m){var n,o,p,q,r,s,t,u,v,w=m.bits,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=null,I=0,J=new d.Buf16(16),K=new d.Buf16(16),L=null,M=0;for(x=0;x<=15;x++)J[x]=0;for(y=0;y<i;y++)J[b[c+y]]++;for(B=w,A=15;A>=1&&0===J[A];A--);if(B>A&&(B=A),0===A)return j[k++]=0x1400000,j[k++]=0x1400000,m.bits=1,0;for(z=1;z<A&&0===J[z];z++);for(B<z&&(B=z),E=1,x=1;x<=15;x++)if(E<<=1,(E-=J[x])<0)return -1;if(E>0&&(0===a||1!==A))return -1;for(K[1]=0,x=1;x<15;x++)K[x+1]=K[x]+J[x];for(y=0;y<i;y++)0!==b[c+y]&&(l[K[b[c+y]]++]=y);if(0===a?(H=L=l,s=19):1===a?(H=e,I-=257,L=f,M-=257,s=256):(H=g,L=h,s=-1),G=0,y=0,x=z,r=k,C=B,D=0,p=-1,q=(F=1<<B)-1,1===a&&F>852||2===a&&F>592)return 1;for(;;){t=x-D,l[y]<s?(u=0,v=l[y]):l[y]>s?(u=L[M+l[y]],v=H[I+l[y]]):(u=96,v=0),n=1<<x-D,z=o=1<<C;do j[r+(G>>D)+(o-=n)]=t<<24|u<<16|v;while(0!==o);for(n=1<<x-1;G&n;)n>>=1;if(0!==n?(G&=n-1,G+=n):G=0,y++,0==--J[x]){if(x===A)break;x=b[c+l[y]]}if(x>B&&(G&q)!==p){for(0===D&&(D=B),r+=z,E=1<<(C=x-D);C+D<A&&!((E-=J[C+D])<=0);)C++,E<<=1;if(F+=1<<C,1===a&&F>852||2===a&&F>592)return 1;j[p=G&q]=B<<24|C<<16|r-k}}return 0!==G&&(j[r+G]=x-D<<24|4194304),m.bits=B,0}},35527:(a,b,c)=>{"use strict";var d=c(22418),e=d.maybeWrapAsError,f=c(43823).OperationalError,g=c(3987),h=/^(?:name|message|stack|cause)$/;a.exports=function(a,b){return function(c,i){if(null!==a){if(c){var j=function(a){if(a instanceof Error&&g.getPrototypeOf(a)===Error.prototype){(b=new f(a)).name=a.name,b.message=a.message,b.stack=a.stack;for(var b,c=g.keys(a),e=0;e<c.length;++e){var i=c[e];h.test(i)||(b[i]=a[i])}return b}return d.markAsOriginatingFromRejection(a),a}(e(c));a._attachExtraTrace(j),a._reject(j)}else if(b){for(var k=arguments.length,l=Array(Math.max(k-1,0)),m=1;m<k;++m)l[m-1]=arguments[m];a._fulfill(l)}else a._fulfill(i);a=null}}}},35976:(a,b,c)=>{var d=c(18403);b.Element=d.Element,b.element=d.element,b.emptyElement=d.emptyElement,b.text=d.text,b.readString=c(11457).readString,b.writeString=c(93134).writeString},36911:a=>{"use strict";function b(a){this._capacity=a,this._length=0,this._front=0}b.prototype._willBeOverCapacity=function(a){return this._capacity<a},b.prototype._pushOne=function(a){var b=this.length();this._checkCapacity(b+1),this[this._front+b&this._capacity-1]=a,this._length=b+1},b.prototype.push=function(a,b,c){var d=this.length()+3;if(this._willBeOverCapacity(d)){this._pushOne(a),this._pushOne(b),this._pushOne(c);return}var e=this._front+d-3;this._checkCapacity(d);var f=this._capacity-1;this[e+0&f]=a,this[e+1&f]=b,this[e+2&f]=c,this._length=d},b.prototype.shift=function(){var a=this._front,b=this[a];return this[a]=void 0,this._front=a+1&this._capacity-1,this._length--,b},b.prototype.length=function(){return this._length},b.prototype._checkCapacity=function(a){this._capacity<a&&this._resizeTo(this._capacity<<1)},b.prototype._resizeTo=function(a){var b=this._capacity;this._capacity=a,!function(a,b,c,d){for(var e=0;e<d;++e)b[e+c]=a[e+0],a[e+0]=void 0}(this,this,b,this._front+this._length&b-1)},a.exports=b},37012:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e){var f,g=c(22418),h=g.isObject,i=c(3987);"function"==typeof Map&&(f=Map);var j=function(){var a=0,b=0;function c(c,d){this[a]=c,this[a+b]=d,a++}return function(d){b=d.size,a=0;var e=Array(2*d.size);return d.forEach(c,e),e}}(),k=function(a){for(var b=new f,c=a.length/2|0,d=0;d<c;++d){var e=a[c+d],g=a[d];b.set(e,g)}return b};function l(a){var b,c=!1;if(void 0!==f&&a instanceof f)b=j(a),c=!0;else{var d=i.keys(a),e=d.length;b=Array(2*e);for(var g=0;g<e;++g){var h=d[g];b[g]=a[h],b[g+e]=h}}this.constructor$(b),this._isMap=c,this._init$(void 0,-3)}function m(b){var c,f=d(b);return h(f)?(c=f instanceof a?f._then(a.props,void 0,void 0,void 0,void 0):new l(f).promise(),f instanceof a&&c._propagateFrom(f,2),c):e("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}g.inherits(l,b),l.prototype._init=function(){},l.prototype._promiseFulfilled=function(a,b){var c;if(this._values[b]=a,++this._totalResolved>=this._length){if(this._isMap)c=k(this._values);else{c={};for(var d=this.length(),e=0,f=this.length();e<f;++e)c[this._values[e+d]]=this._values[e]}return this._resolve(c),!0}return!1},l.prototype.shouldCopyValues=function(){return!1},l.prototype.getActualLength=function(a){return a>>1},a.prototype.props=function(){return m(this)},a.props=function(a){return m(a)}}},37054:(a,b,c)=>{"use strict";var d=c(71397),e=c(62325),f=c(50099);b.resolveBlockSeq=function({composeNode:a,composeEmptyNode:b},c,g,h,i){let j=new(i?.nodeClass??d.YAMLSeq)(c.schema);c.atRoot&&(c.atRoot=!1),c.atKey&&(c.atKey=!1);let k=g.offset,l=null;for(let{start:d,value:i}of g.items){let m=e.resolveProps(d,{indicator:"seq-item-ind",next:i,offset:k,onError:h,parentIndent:g.indent,startOnNewline:!0});if(!m.found)if(m.anchor||m.tag||i)i?.type==="block-seq"?h(m.end,"BAD_INDENT","All sequence items must start at the same column"):h(k,"MISSING_CHAR","Sequence item without - indicator");else{l=m.end,m.comment&&(j.comment=m.comment);continue}let n=i?a(c,i,m,h):b(c,m.end,d,null,m,h);c.schema.compat&&f.flowIndentCheck(g.indent,i,h),k=n.range[2],j.items.push(n)}return j.range=[g.offset,k,l??k],j}},37278:(a,b)=>{b.readContentTypesFromXml=function(a){var b={},c={};return a.children.forEach(function(a){if("content-types:Default"===a.name&&(b[a.attributes.Extension]=a.attributes.ContentType),"content-types:Override"===a.name){var d=a.attributes.PartName;"/"===d.charAt(0)&&(d=d.substring(1)),c[d]=a.attributes.ContentType}}),d(c,b)};var c={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};function d(a,b){return{findContentType:function(d){var e=a[d];if(e)return e;var f=d.split("."),g=f[f.length-1];if(b.hasOwnProperty(g))return b[g];var h=c[g.toLowerCase()];return h?"image/"+h:null}}}b.defaultContentTypes=d({},{})},37369:(a,b,c)=>{"use strict";var d,e,f=c(69167),g=c(62231),h=c(59757),i=c(86159),j=c(35504);function k(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function l(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=1,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new f.Buf32(852),b.distcode=b.distdyn=new f.Buf32(592),b.sane=1,b.back=-1,0):-2}function n(a){var b;return a&&a.state?((b=a.state).wsize=0,b.whave=0,b.wnext=0,m(a)):-2}function o(a,b){var c,d;return a&&a.state?(d=a.state,b<0?(c=0,b=-b):(c=(b>>4)+1,b<48&&(b&=15)),b&&(b<8||b>15))?-2:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,n(a)):-2}function p(a,b){var c,d;return a?(a.state=d=new l,d.window=null,0!==(c=o(a,b))&&(a.state=null),c):-2}var q=!0;function r(a,b,c,d){var e,g=a.state;return null===g.window&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new f.Buf8(g.wsize)),d>=g.wsize?(f.arraySet(g.window,b,c-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):((e=g.wsize-g.wnext)>d&&(e=d),f.arraySet(g.window,b,c-d,e,g.wnext),(d-=e)?(f.arraySet(g.window,b,c-d,d,0),g.wnext=d,g.whave=g.wsize):(g.wnext+=e,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=e))),0}b.inflateReset=n,b.inflateReset2=o,b.inflateResetKeep=m,b.inflateInit=function(a){return p(a,15)},b.inflateInit2=p,b.inflate=function(a,b){var c,l,m,n,o,p,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K=0,L=new f.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!a||!a.state||!a.output||!a.input&&0!==a.avail_in)return -2;12===(c=a.state).mode&&(c.mode=13),o=a.next_out,m=a.output,s=a.avail_out,n=a.next_in,l=a.input,p=a.avail_in,t=c.hold,u=c.bits,v=p,w=s,H=0;c:for(;;)switch(c.mode){case 1:if(0===c.wrap){c.mode=13;break}for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(2&c.wrap&&35615===t){c.check=0,L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0),t=0,u=0,c.mode=2;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&t)<<8)+(t>>8))%31){a.msg="incorrect header check",c.mode=30;break}if((15&t)!=8){a.msg="unknown compression method",c.mode=30;break}if(t>>>=4,u-=4,G=(15&t)+8,0===c.wbits)c.wbits=G;else if(G>c.wbits){a.msg="invalid window size",c.mode=30;break}c.dmax=1<<G,a.adler=c.check=1,c.mode=512&t?10:12,t=0,u=0;break;case 2:for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(c.flags=t,(255&c.flags)!=8){a.msg="unknown compression method",c.mode=30;break}if(57344&c.flags){a.msg="unknown header flags set",c.mode=30;break}c.head&&(c.head.text=t>>8&1),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0,c.mode=3;case 3:for(;u<32;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.head&&(c.head.time=t),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,L[2]=t>>>16&255,L[3]=t>>>24&255,c.check=h(c.check,L,4,0)),t=0,u=0,c.mode=4;case 4:for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.head&&(c.head.xflags=255&t,c.head.os=t>>8),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0,c.mode=5;case 5:if(1024&c.flags){for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.length=t,c.head&&(c.head.extra_len=t),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(1024&c.flags&&((x=c.length)>p&&(x=p),x&&(c.head&&(G=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),f.arraySet(c.head.extra,l,n,x,G)),512&c.flags&&(c.check=h(c.check,l,x,n)),p-=x,n+=x,c.length-=x),c.length))break c;c.length=0,c.mode=7;case 7:if(2048&c.flags){if(0===p)break c;x=0;do G=l[n+x++],c.head&&G&&c.length<65536&&(c.head.name+=String.fromCharCode(G));while(G&&x<p);if(512&c.flags&&(c.check=h(c.check,l,x,n)),p-=x,n+=x,G)break c}else c.head&&(c.head.name=null);c.length=0,c.mode=8;case 8:if(4096&c.flags){if(0===p)break c;x=0;do G=l[n+x++],c.head&&G&&c.length<65536&&(c.head.comment+=String.fromCharCode(G));while(G&&x<p);if(512&c.flags&&(c.check=h(c.check,l,x,n)),p-=x,n+=x,G)break c}else c.head&&(c.head.comment=null);c.mode=9;case 9:if(512&c.flags){for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(t!==(65535&c.check)){a.msg="header crc mismatch",c.mode=30;break}t=0,u=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=12;break;case 10:for(;u<32;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}a.adler=c.check=k(t),t=0,u=0,c.mode=11;case 11:if(0===c.havedict)return a.next_out=o,a.avail_out=s,a.next_in=n,a.avail_in=p,c.hold=t,c.bits=u,2;a.adler=c.check=1,c.mode=12;case 12:if(5===b||6===b)break c;case 13:if(c.last){t>>>=7&u,u-=7&u,c.mode=27;break}for(;u<3;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}switch(c.last=1&t,u-=1,3&(t>>>=1)){case 0:c.mode=14;break;case 1:if(!function(a){if(q){var b;for(d=new f.Buf32(512),e=new f.Buf32(32),b=0;b<144;)a.lens[b++]=8;for(;b<256;)a.lens[b++]=9;for(;b<280;)a.lens[b++]=7;for(;b<288;)a.lens[b++]=8;for(j(1,a.lens,0,288,d,0,a.work,{bits:9}),b=0;b<32;)a.lens[b++]=5;j(2,a.lens,0,32,e,0,a.work,{bits:5}),q=!1}a.lencode=d,a.lenbits=9,a.distcode=e,a.distbits=5}(c),c.mode=20,6===b){t>>>=2,u-=2;break c}break;case 2:c.mode=17;break;case 3:a.msg="invalid block type",c.mode=30}t>>>=2,u-=2;break;case 14:for(t>>>=7&u,u-=7&u;u<32;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if((65535&t)!=(t>>>16^65535)){a.msg="invalid stored block lengths",c.mode=30;break}if(c.length=65535&t,t=0,u=0,c.mode=15,6===b)break c;case 15:c.mode=16;case 16:if(x=c.length){if(x>p&&(x=p),x>s&&(x=s),0===x)break c;f.arraySet(m,l,n,x,o),p-=x,n+=x,s-=x,o+=x,c.length-=x;break}c.mode=12;break;case 17:for(;u<14;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(c.nlen=(31&t)+257,u-=5,c.ndist=(31&(t>>>=5))+1,u-=5,c.ncode=(15&(t>>>=5))+4,t>>>=4,u-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=30;break}c.have=0,c.mode=18;case 18:for(;c.have<c.ncode;){for(;u<3;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.lens[M[c.have++]]=7&t,t>>>=3,u-=3}for(;c.have<19;)c.lens[M[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,I={bits:c.lenbits},H=j(0,c.lens,0,19,c.lencode,0,c.work,I),c.lenbits=I.bits,H){a.msg="invalid code lengths set",c.mode=30;break}c.have=0,c.mode=19;case 19:for(;c.have<c.nlen+c.ndist;){for(;A=(K=c.lencode[t&(1<<c.lenbits)-1])>>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(C<16)t>>>=A,u-=A,c.lens[c.have++]=C;else{if(16===C){for(J=A+2;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(t>>>=A,u-=A,0===c.have){a.msg="invalid bit length repeat",c.mode=30;break}G=c.lens[c.have-1],x=3+(3&t),t>>>=2,u-=2}else if(17===C){for(J=A+3;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}t>>>=A,u-=A,G=0,x=3+(7&t),t>>>=3,u-=3}else{for(J=A+7;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}t>>>=A,u-=A,G=0,x=11+(127&t),t>>>=7,u-=7}if(c.have+x>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=30;break}for(;x--;)c.lens[c.have++]=G}}if(30===c.mode)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=30;break}if(c.lenbits=9,I={bits:c.lenbits},H=j(1,c.lens,0,c.nlen,c.lencode,0,c.work,I),c.lenbits=I.bits,H){a.msg="invalid literal/lengths set",c.mode=30;break}if(c.distbits=6,c.distcode=c.distdyn,I={bits:c.distbits},H=j(2,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,I),c.distbits=I.bits,H){a.msg="invalid distances set",c.mode=30;break}if(c.mode=20,6===b)break c;case 20:c.mode=21;case 21:if(p>=6&&s>=258){a.next_out=o,a.avail_out=s,a.next_in=n,a.avail_in=p,c.hold=t,c.bits=u,i(a,w),o=a.next_out,m=a.output,s=a.avail_out,n=a.next_in,l=a.input,p=a.avail_in,t=c.hold,u=c.bits,12===c.mode&&(c.back=-1);break}for(c.back=0;A=(K=c.lencode[t&(1<<c.lenbits)-1])>>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(B&&(240&B)==0){for(D=A,E=B,F=C;A=(K=c.lencode[F+((t&(1<<D+E)-1)>>D)])>>>24,B=K>>>16&255,C=65535&K,!(D+A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}t>>>=D,u-=D,c.back+=D}if(t>>>=A,u-=A,c.back+=A,c.length=C,0===B){c.mode=26;break}if(32&B){c.back=-1,c.mode=12;break}if(64&B){a.msg="invalid literal/length code",c.mode=30;break}c.extra=15&B,c.mode=22;case 22:if(c.extra){for(J=c.extra;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.length+=t&(1<<c.extra)-1,t>>>=c.extra,u-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=23;case 23:for(;A=(K=c.distcode[t&(1<<c.distbits)-1])>>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if((240&B)==0){for(D=A,E=B,F=C;A=(K=c.distcode[F+((t&(1<<D+E)-1)>>D)])>>>24,B=K>>>16&255,C=65535&K,!(D+A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}t>>>=D,u-=D,c.back+=D}if(t>>>=A,u-=A,c.back+=A,64&B){a.msg="invalid distance code",c.mode=30;break}c.offset=C,c.extra=15&B,c.mode=24;case 24:if(c.extra){for(J=c.extra;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.offset+=t&(1<<c.extra)-1,t>>>=c.extra,u-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=30;break}c.mode=25;case 25:if(0===s)break c;if(x=w-s,c.offset>x){if((x=c.offset-x)>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=30;break}x>c.wnext?(x-=c.wnext,y=c.wsize-x):y=c.wnext-x,x>c.length&&(x=c.length),z=c.window}else z=m,y=o-c.offset,x=c.length;x>s&&(x=s),s-=x,c.length-=x;do m[o++]=z[y++];while(--x);0===c.length&&(c.mode=21);break;case 26:if(0===s)break c;m[o++]=c.length,s--,c.mode=21;break;case 27:if(c.wrap){for(;u<32;){if(0===p)break c;p--,t|=l[n++]<<u,u+=8}if(w-=s,a.total_out+=w,c.total+=w,w&&(a.adler=c.check=c.flags?h(c.check,m,w,o-w):g(c.check,m,w,o-w)),w=s,(c.flags?t:k(t))!==c.check){a.msg="incorrect data check",c.mode=30;break}t=0,u=0}c.mode=28;case 28:if(c.wrap&&c.flags){for(;u<32;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(t!==(0|c.total)){a.msg="incorrect length check",c.mode=30;break}t=0,u=0}c.mode=29;case 29:H=1;break c;case 30:H=-3;break c;case 31:return -4;default:return -2}return(a.next_out=o,a.avail_out=s,a.next_in=n,a.avail_in=p,c.hold=t,c.bits=u,(c.wsize||w!==a.avail_out&&c.mode<30&&(c.mode<27||4!==b))&&r(a,a.output,a.next_out,w-a.avail_out))?(c.mode=31,-4):(v-=a.avail_in,w-=a.avail_out,a.total_in+=v,a.total_out+=w,c.total+=w,c.wrap&&w&&(a.adler=c.check=c.flags?h(c.check,m,w,a.next_out-w):g(c.check,m,w,a.next_out-w)),a.data_type=c.bits+64*!!c.last+128*(12===c.mode)+256*(20===c.mode||15===c.mode),(0===v&&0===w||4===b)&&0===H&&(H=-5),H)},b.inflateEnd=function(a){if(!a||!a.state)return -2;var b=a.state;return b.window&&(b.window=null),a.state=null,0},b.inflateGetHeader=function(a,b){var c;return a&&a.state&&(2&(c=a.state).wrap)!=0?(c.head=b,b.done=!1,0):-2},b.inflateSetDictionary=function(a,b){var c,d=b.length;return a&&a.state&&(0===(c=a.state).wrap||11===c.mode)?11===c.mode&&g(1,b,d,0)!==c.check?-3:r(a,b,d,d)?(c.mode=31,-4):(c.havedict=1,0):-2},b.inflateInfo="pako inflate (from Nodeca project)"},37492:(a,b,c)=>{var d=c(77880);b.w=function a(b){if("text"===b.type)return b.value;if(b.type===d.types.tab)return" ";var c="paragraph"===b.type?"\n\n":"";return(b.children||[]).map(a).join("")+c}},37521:(a,b,c)=>{"use strict";var d=c(10878),e=c(66560),f=c(8878),g=c(73315);class h{constructor(a,b=null){Object.defineProperty(this,g.NODE_TYPE,{value:g.PAIR}),this.key=a,this.value=b}clone(a){let{key:b,value:c}=this;return g.isNode(b)&&(b=b.clone(a)),g.isNode(c)&&(c=c.clone(a)),new h(b,c)}toJSON(a,b){let c=b?.mapAsMap?new Map:{};return f.addPairToJSMap(b,c,this)}toString(a,b,c){return a?.doc?e.stringifyPair(this,a,b,c):JSON.stringify(this)}}b.Pair=h,b.createPair=function(a,b,c){return new h(d.createNode(a,void 0,c),d.createNode(b,void 0,c))}},37857:a=>{"use strict";a.exports=function(a,b){var c=a.reduce,d=a.all;function e(){return d(this)}a.prototype.each=function(a){return c(this,a,b,0)._then(e,void 0,void 0,this,void 0)},a.prototype.mapSeries=function(a){return c(this,a,b,b)},a.each=function(a,d){return c(a,d,b,0)._then(e,void 0,void 0,a,void 0)},a.mapSeries=function(a,d){return c(a,d,b,b)}}},38141:(a,b)=>{"use strict";let c=Symbol("break visit"),d=Symbol("skip children"),e=Symbol("remove item");function f(a,b){"type"in a&&"document"===a.type&&(a={start:a.start,value:a.value}),function a(b,d,f){let g=f(d,b);if("symbol"==typeof g)return g;for(let h of["key","value"]){let i=d[h];if(i&&"items"in i){for(let d=0;d<i.items.length;++d){let g=a(Object.freeze(b.concat([[h,d]])),i.items[d],f);if("number"==typeof g)d=g-1;else{if(g===c)return c;g===e&&(i.items.splice(d,1),d-=1)}}"function"==typeof g&&"key"===h&&(g=g(d,b))}}return"function"==typeof g?g(d,b):g}(Object.freeze([]),a,b)}f.BREAK=c,f.SKIP=d,f.REMOVE=e,f.itemAtPath=(a,b)=>{let c=a;for(let[a,d]of b){let b=c?.[a];if(!b||!("items"in b))return;c=b.items[d]}return c},f.parentCollection=(a,b)=>{let c=f.itemAtPath(a,b.slice(0,-1)),d=b[b.length-1][0],e=c?.[d];if(e&&"items"in e)return e;throw Error("Parent collection not found")},b.visit=f},38418:(a,b,c)=>{"use strict";var d,e,f=c(20577);a.exports=s;var g=c(39629);s.ReadableState=r,c(94735).EventEmitter;var h=function(a,b){return a.listeners(b).length},i=c(47040),j=c(30444).Buffer,k=("u">typeof global?global:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){},l=Object.create(c(22362));l.inherits=c(50843);var m=c(28354),n=void 0;n=m&&m.debuglog?m.debuglog("stream"):function(){};var o=c(51394),p=c(15434);l.inherits(s,i);var q=["error","close","destroy","pause","resume"];function r(a,b){d=d||c(71848),a=a||{};var f=b instanceof d;this.objectMode=!!a.objectMode,f&&(this.objectMode=this.objectMode||!!a.readableObjectMode);var g=a.highWaterMark,h=a.readableHighWaterMark,i=this.objectMode?16:16384;g||0===g?this.highWaterMark=g:f&&(h||0===h)?this.highWaterMark=h:this.highWaterMark=i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new o,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=a.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,a.encoding&&(e||(e=c(47399).I),this.decoder=new e(a.encoding),this.encoding=a.encoding)}function s(a){if(d=d||c(71848),!(this instanceof s))return new s(a);this._readableState=new r(a,this),this.readable=!0,a&&("function"==typeof a.read&&(this._read=a.read),"function"==typeof a.destroy&&(this._destroy=a.destroy)),i.call(this)}function t(a,b,c,d,e){var f,g,h,i=a._readableState;return null===b?(i.reading=!1,function(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,w(a)}}(a,i)):(e||(h=function(a,b){var c;return j.isBuffer(b)||b instanceof k||"string"==typeof b||void 0===b||a.objectMode||(c=TypeError("Invalid non-string/buffer chunk")),c}(i,b)),h)?a.emit("error",h):i.objectMode||b&&b.length>0?("string"==typeof b||i.objectMode||Object.getPrototypeOf(b)===j.prototype||(g=b,b=j.from(g)),d?i.endEmitted?a.emit("error",Error("stream.unshift() after end event")):u(a,i,b,!0):i.ended?a.emit("error",Error("stream.push() after EOF")):(i.reading=!1,i.decoder&&!c?(b=i.decoder.write(b),i.objectMode||0!==b.length?u(a,i,b,!1):y(a,i)):u(a,i,b,!1))):d||(i.reading=!1),!(f=i).ended&&(f.needReadable||f.length<f.highWaterMark||0===f.length)}function u(a,b,c,d){b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,d?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&w(a)),y(a,b)}function v(a,b){var c;if(a<=0||0===b.length&&b.ended)return 0;if(b.objectMode)return 1;if(a!=a)if(b.flowing&&b.length)return b.buffer.head.data.length;else return b.length;return(a>b.highWaterMark&&((c=a)>=8388608?c=8388608:(c--,c|=c>>>1,c|=c>>>2,c|=c>>>4,c|=c>>>8,c|=c>>>16,c++),b.highWaterMark=c),a<=b.length)?a:b.ended?b.length:(b.needReadable=!0,0)}function w(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(n("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?f.nextTick(x,a):x(a))}function x(a){n("emit readable"),a.emit("readable"),C(a)}function y(a,b){b.readingMore||(b.readingMore=!0,f.nextTick(z,a,b))}function z(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length<b.highWaterMark&&(n("maybeReadMore read 0"),a.read(0),c!==b.length);)c=b.length;b.readingMore=!1}function A(a){n("readable nexttick read 0"),a.read(0)}function B(a,b){b.reading||(n("resume read 0"),a.read(0)),b.resumeScheduled=!1,b.awaitDrain=0,a.emit("resume"),C(a),b.flowing&&!b.reading&&a.read(0)}function C(a){var b=a._readableState;for(n("flow",b.flowing);b.flowing&&null!==a.read(););}function D(a,b){var c,d,e,f,g;return 0===b.length?null:(b.objectMode?c=b.buffer.shift():!a||a>=b.length?(c=b.decoder?b.buffer.join(""):1===b.buffer.length?b.buffer.head.data:b.buffer.concat(b.length),b.buffer.clear()):(d=a,e=b.buffer,f=b.decoder,d<e.head.data.length?(g=e.head.data.slice(0,d),e.head.data=e.head.data.slice(d)):g=d===e.head.data.length?e.shift():f?function(a,b){var c=b.head,d=1,e=c.data;for(a-=e.length;c=c.next;){var f=c.data,g=a>f.length?f.length:a;if(g===f.length?e+=f:e+=f.slice(0,a),0==(a-=g)){g===f.length?(++d,c.next?b.head=c.next:b.head=b.tail=null):(b.head=c,c.data=f.slice(g));break}++d}return b.length-=d,e}(d,e):function(a,b){var c=j.allocUnsafe(a),d=b.head,e=1;for(d.data.copy(c),a-=d.data.length;d=d.next;){var f=d.data,g=a>f.length?f.length:a;if(f.copy(c,c.length-a,0,g),0==(a-=g)){g===f.length?(++e,d.next?b.head=d.next:b.head=b.tail=null):(b.head=d,d.data=f.slice(g));break}++e}return b.length-=e,c}(d,e),c=g),c)}function E(a){var b=a._readableState;if(b.length>0)throw Error('"endReadable()" called on non-empty stream');b.endEmitted||(b.ended=!0,f.nextTick(F,b,a))}function F(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function G(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return -1}Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(a){this._readableState&&(this._readableState.destroyed=a)}}),s.prototype.destroy=p.destroy,s.prototype._undestroy=p.undestroy,s.prototype._destroy=function(a,b){this.push(null),b(a)},s.prototype.push=function(a,b){var c,d=this._readableState;return d.objectMode?c=!0:"string"==typeof a&&((b=b||d.defaultEncoding)!==d.encoding&&(a=j.from(a,b),b=""),c=!0),t(this,a,b,!1,c)},s.prototype.unshift=function(a){return t(this,a,null,!0,!1)},s.prototype.isPaused=function(){return!1===this._readableState.flowing},s.prototype.setEncoding=function(a){return e||(e=c(47399).I),this._readableState.decoder=new e(a),this._readableState.encoding=a,this},s.prototype.read=function(a){n("read",a),a=parseInt(a,10);var b,c=this._readableState,d=a;if(0!==a&&(c.emittedReadable=!1),0===a&&c.needReadable&&(c.length>=c.highWaterMark||c.ended))return n("read: emitReadable",c.length,c.ended),0===c.length&&c.ended?E(this):w(this),null;if(0===(a=v(a,c))&&c.ended)return 0===c.length&&E(this),null;var e=c.needReadable;return n("need readable",e),(0===c.length||c.length-a<c.highWaterMark)&&n("length less than watermark",e=!0),c.ended||c.reading?n("reading or ended",e=!1):e&&(n("do read"),c.reading=!0,c.sync=!0,0===c.length&&(c.needReadable=!0),this._read(c.highWaterMark),c.sync=!1,c.reading||(a=v(d,c))),null===(b=a>0?D(a,c):null)?(c.needReadable=!0,a=0):c.length-=a,0===c.length&&(c.ended||(c.needReadable=!0),d!==a&&c.ended&&E(this)),null!==b&&this.emit("data",b),b},s.prototype._read=function(a){this.emit("error",Error("_read() is not implemented"))},s.prototype.pipe=function(a,b){var c,d=this,e=this._readableState;switch(e.pipesCount){case 0:e.pipes=a;break;case 1:e.pipes=[e.pipes,a];break;default:e.pipes.push(a)}e.pipesCount+=1,n("pipe count=%d opts=%j",e.pipesCount,b);var i=b&&!1===b.end||a===process.stdout||a===process.stderr?s:j;function j(){n("onend"),a.end()}e.endEmitted?f.nextTick(i):d.once("end",i),a.on("unpipe",function b(c,f){n("onunpipe"),c===d&&f&&!1===f.hasUnpiped&&(f.hasUnpiped=!0,n("cleanup"),a.removeListener("close",q),a.removeListener("finish",r),a.removeListener("drain",k),a.removeListener("error",p),a.removeListener("unpipe",b),d.removeListener("end",j),d.removeListener("end",s),d.removeListener("data",o),l=!0,e.awaitDrain&&(!a._writableState||a._writableState.needDrain)&&k())});var k=(c=d,function(){var a=c._readableState;n("pipeOnDrain",a.awaitDrain),a.awaitDrain&&a.awaitDrain--,0===a.awaitDrain&&h(c,"data")&&(a.flowing=!0,C(c))});a.on("drain",k);var l=!1,m=!1;function o(b){n("ondata"),m=!1,!1!==a.write(b)||m||((1===e.pipesCount&&e.pipes===a||e.pipesCount>1&&-1!==G(e.pipes,a))&&!l&&(n("false write response, pause",e.awaitDrain),e.awaitDrain++,m=!0),d.pause())}function p(b){n("onerror",b),s(),a.removeListener("error",p),0===h(a,"error")&&a.emit("error",b)}function q(){a.removeListener("finish",r),s()}function r(){n("onfinish"),a.removeListener("close",q),s()}function s(){n("unpipe"),d.unpipe(a)}return d.on("data",o),!function(a,b,c){if("function"==typeof a.prependListener)return a.prependListener(b,c);a._events&&a._events[b]?g(a._events[b])?a._events[b].unshift(c):a._events[b]=[c,a._events[b]]:a.on(b,c)}(a,"error",p),a.once("close",q),a.once("finish",r),a.emit("pipe",d),e.flowing||(n("pipe resume"),d.resume()),a},s.prototype.unpipe=function(a){var b=this._readableState,c={hasUnpiped:!1};if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes||(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this,c)),this;if(!a){var d=b.pipes,e=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var f=0;f<e;f++)d[f].emit("unpipe",this,{hasUnpiped:!1});return this}var g=G(b.pipes,a);return -1===g||(b.pipes.splice(g,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this,c)),this},s.prototype.on=function(a,b){var c=i.prototype.on.call(this,a,b);if("data"===a)!1!==this._readableState.flowing&&this.resume();else if("readable"===a){var d=this._readableState;d.endEmitted||d.readableListening||(d.readableListening=d.needReadable=!0,d.emittedReadable=!1,d.reading?d.length&&w(this):f.nextTick(A,this))}return c},s.prototype.addListener=s.prototype.on,s.prototype.resume=function(){var a,b,c=this._readableState;return c.flowing||(n("resume"),c.flowing=!0,a=this,(b=c).resumeScheduled||(b.resumeScheduled=!0,f.nextTick(B,a,b))),this},s.prototype.pause=function(){return n("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(n("pause"),this._readableState.flowing=!1,this.emit("pause")),this},s.prototype.wrap=function(a){var b=this,c=this._readableState,d=!1;for(var e in a.on("end",function(){if(n("wrapped end"),c.decoder&&!c.ended){var a=c.decoder.end();a&&a.length&&b.push(a)}b.push(null)}),a.on("data",function(e){n("wrapped data"),c.decoder&&(e=c.decoder.write(e)),c.objectMode&&null==e||(c.objectMode||e&&e.length)&&(b.push(e)||(d=!0,a.pause()))}),a)void 0===this[e]&&"function"==typeof a[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));for(var f=0;f<q.length;f++)a.on(q[f],this.emit.bind(this,q[f]));return this._read=function(b){n("wrapped _read",b),d&&(d=!1,a.resume())},this},Object.defineProperty(s.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),s._fromList=D},38721:(a,b,c)=>{"use strict";var d=c(95241),e=c(67681),f=c(12244),g=c(62325);b.composeDoc=function(a,b,{offset:c,start:h,value:i,end:j},k){let l=Object.assign({_directives:b},a),m=new d.Document(void 0,l),n={atKey:!1,atRoot:!0,directives:m.directives,options:m.options,schema:m.schema},o=g.resolveProps(h,{indicator:"doc-start",next:i??j?.[0],offset:c,onError:k,parentIndent:0,startOnNewline:!0});o.found&&(m.directives.docStart=!0,i&&("block-map"===i.type||"block-seq"===i.type)&&!o.hasNewline&&k(o.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),m.contents=i?e.composeNode(n,i,o,k):e.composeEmptyNode(n,o.end,h,null,o,k);let p=m.contents.range[2],q=f.resolveEnd(j,p,!1,k);return q.comment&&(m.comment=q.comment),m.range=[c,p,q.offset],m}},38843:(a,b,c)=>{var d=c(84906),e=c(9920),f=c(35976);b.writeStyleMap=function(a,b){var c,d,e,j;return a.write(g,b),(c=a,d="word/_rels/document.xml.rels",j="{"+(e="http://schemas.openxmlformats.org/package/2006/relationships")+"}Relationship",c.read(d,"utf8").then(f.readString).then(function(a){return i(a.children,j,"Id",{Id:"rMammothStyleMap",Type:"http://schemas.zwobble.org/mammoth/style-map",Target:h}),c.write(d,f.writeString(a,{"":e}))})).then(function(){var b,c,d,e;return b=a,c="[Content_Types].xml",e="{"+(d="http://schemas.openxmlformats.org/package/2006/content-types")+"}Override",b.read(c,"utf8").then(f.readString).then(function(a){return i(a.children,e,"PartName",{PartName:h,ContentType:"text/prs.mammoth.style-map"}),b.write(c,f.writeString(a,{"":d}))})})},b.readStyleMap=function(a){return a.exists(g)?a.read(g,"utf8"):e.resolve(null)};var g="mammoth/style-map",h="/"+g;function i(a,b,c,e){var g=d.find(a,function(a){return a.name===b&&a.attributes[c]===e[c]});g?g.attributes=e:a.push(f.element(b,e))}},39531:a=>{"use strict";a.exports={isNode:"u">typeof Buffer,newBufferFrom:function(a,b){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,b);if("number"==typeof a)throw Error('The "data" argument must not be a number');return new Buffer(a,b)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var b=new Buffer(a);return b.fill(0),b},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&"function"==typeof a.on&&"function"==typeof a.pause&&"function"==typeof a.resume}}},39629:a=>{var b={}.toString;a.exports=Array.isArray||function(a){return"[object Array]"==b.call(a)}},40542:(a,b,c)=>{"use strict";var d=c(26701),e=c(12244);function f(a){let b,c;try{b=RegExp("(.*?)(?<![ ])[ ]*\r?\n","sy"),c=RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n","sy")}catch{b=/(.*?)[ \t]*\r?\n/sy,c=/[ \t]*(.*?)[ \t]*\r?\n/sy}let d=b.exec(a);if(!d)return a;let e=d[1],f=" ",g=b.lastIndex;for(c.lastIndex=g;d=c.exec(a);)""===d[1]?"\n"===f?e+=f:f="\n":(e+=f+d[1],f=" "),g=c.lastIndex;let h=/[ \t]*(.*)/sy;return h.lastIndex=g,d=h.exec(a),e+f+(d?.[1]??"")}let g={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"\x85",_:"\xa0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};b.resolveFlowScalar=function(a,b,c){let h,i,{offset:j,type:k,source:l,end:m}=a,n=(a,b,d)=>c(j+a,b,d);switch(k){case"scalar":h=d.Scalar.PLAIN,i=function(a,b){let c="";switch(a[0]){case" ":c="a tab character";break;case",":c="flow indicator character ,";break;case"%":c="directive indicator character %";break;case"|":case">":c=`block scalar indicator ${a[0]}`;break;case"@":case"`":c=`reserved character ${a[0]}`}return c&&b(0,"BAD_SCALAR_START",`Plain value cannot start with ${c}`),f(a)}(l,n);break;case"single-quoted-scalar":var o,p;h=d.Scalar.QUOTE_SINGLE,o=l,p=n,("'"!==o[o.length-1]||1===o.length)&&p(o.length,"MISSING_CHAR","Missing closing 'quote"),i=f(o.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":h=d.Scalar.QUOTE_DOUBLE,i=function(a,b){let c="";for(let d=1;d<a.length-1;++d){let e=a[d];if("\r"!==e||"\n"!==a[d+1])if("\n"===e){let{fold:b,offset:e}=function(a,b){let c="",d=a[b+1];for(;(" "===d||" "===d||"\n"===d||"\r"===d)&&("\r"!==d||"\n"===a[b+2]);)"\n"===d&&(c+="\n"),b+=1,d=a[b+1];return c||(c=" "),{fold:c,offset:b}}(a,d);c+=b,d=e}else if("\\"===e){let e=a[++d],f=g[e];if(f)c+=f;else if("\n"===e)for(e=a[d+1];" "===e||" "===e;)e=a[++d+1];else if("\r"===e&&"\n"===a[d+1])for(e=a[++d+1];" "===e||" "===e;)e=a[++d+1];else if("x"===e||"u"===e||"U"===e){let f="x"===e?2:"u"===e?4:8;c+=function(a,b,c,d){let e=a.substr(b,c),f=e.length===c&&/^[0-9a-fA-F]+$/.test(e)?parseInt(e,16):NaN;try{return String.fromCodePoint(f)}catch{let e=a.substr(b-2,c+2);return d(b-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${e}`),e}}(a,d+1,f,b),d+=f}else{let e=a.substr(d-1,2);b(d-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${e}`),c+=e}}else if(" "===e||" "===e){let b=d,f=a[d+1];for(;" "===f||" "===f;)f=a[++d+1];"\n"!==f&&("\r"!==f||"\n"!==a[d+2])&&(c+=d>b?a.slice(b,d+1):e)}else c+=e}return('"'!==a[a.length-1]||1===a.length)&&b(a.length,"MISSING_CHAR",'Missing closing "quote'),c}(l,n);break;default:return c(a,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${k}`),{value:"",type:null,comment:"",range:[j,j+l.length,j+l.length]}}let q=j+l.length,r=e.resolveEnd(m,q,b,c);return{value:i,type:h,comment:r.comment,range:[j,q,r.offset]}}},40686:(a,b)=>{"use strict";class c extends Error{constructor(a,b,c,d){super(),this.name=a,this.code=c,this.message=d,this.pos=b}}class d extends c{constructor(a,b,c){super("YAMLParseError",a,b,c)}}class e extends c{constructor(a,b,c){super("YAMLWarning",a,b,c)}}b.YAMLError=c,b.YAMLParseError=d,b.YAMLWarning=e,b.prettifyError=(a,b)=>c=>{if(-1===c.pos[0])return;c.linePos=c.pos.map(a=>b.linePos(a));let{line:d,col:e}=c.linePos[0];c.message+=` at line ${d}, column ${e}`;let f=e-1,g=a.substring(b.lineStarts[d-1],b.lineStarts[d]).replace(/[\n\r]+$/,"");if(f>=60&&g.length>80){let a=Math.min(f-39,g.length-79);g="…"+g.substring(a),f-=a-1}if(g.length>80&&(g=g.substring(0,79)+"…"),d>1&&/^ *$/.test(g.substring(0,f))){let c=a.substring(b.lineStarts[d-2],b.lineStarts[d-1]);c.length>80&&(c=c.substring(0,79)+"…\n"),g=c+g}if(/[^ ]/.test(g)){let a=1,b=c.linePos[1];b?.line===d&&b.col>e&&(a=Math.max(1,Math.min(b.col-e,80-f)));let h=" ".repeat(f)+"^".repeat(a);c.message+=`:
83
+ `),new ld(b,c)}(a,b,{onText:a=>f?.onText(a),onClose:()=>{clearInterval(d),d=void 0,e&&(e=!1,lf(Math.max(0,le()-1))),f?.onClose()}});g&&(e=!0,lf(le()+1),d=setInterval(()=>g.ping(),3e4),d.unref?.(),f=function(a,b={}){let c,d={...k9,...b},e=d.now??Date.now,f=d.setTimeout??setTimeout,g=d.clearTimeout??clearTimeout,h={files:g6,sessions:h7,models:jk,extensions:kL,system:k6,...d.requestHandlers},i=new ai(e),j=d.isDeviceAuthorized??(b.authenticate?()=>!0:a=>ag().some(b=>b.id===a)),k=null,l=0,m=!1,n=0,o=0,p=Promise.resolve(),q=!1,r=!1,s=null,t=null,u=Promise.resolve(),v=new AbortController,w=()=>{l++;let a=v;return r||(v=new AbortController),a.abort(),l},x=(b,c=!1)=>{if(r)return!1;if(!c&&k&&!j(k))return C(),!1;try{for(let c of("error"===b.op||"session.err"===b.op||"cmd_err"===b.op?b={...b,code:/^[A-Za-z0-9_-]{1,64}$/.test(b.code)?b.code:"operation_failed",message:"Relay operation failed"}:"settings_updated"!==b.op||b.success||(b={op:"settings_updated",success:!1,error:"Settings update failed"}),function(a){let b;try{b=JSON.stringify(a)}catch{throw new ah("relay_chunk_invalid")}if(void 0===b)throw new ah("relay_chunk_invalid");let c=Buffer.byteLength(b,"utf8");if(c>0x1000000)throw new ah("relay_frame_too_large");if(c<=262144)return[b];let d=Buffer.from(b,"utf8"),e=Math.ceil(c/49152),f=(0,L.randomUUID)(),g=[];for(let a=0;a<e;a++)g.push(JSON.stringify({op:"chunk",transfer:f,index:a,count:e,data:d.subarray(49152*a,(a+1)*49152).toString("base64")}));return g}(b)))if(!a.sendText(c))return B(),a.close(1013,"Relay backpressure"),!1;return!0}catch{return a.sendText(JSON.stringify({op:"error",code:"frame_too_large",message:"Relay frame exceeds transport limits"})),B(),a.close(1009,"Relay frame too large"),!1}},y=(b,c)=>{g(z),x({op:"hello_err",code:b,message:c}),B(),a.close(1008,c)},z=f(()=>{q||r||y("hello_timeout","hello was not received in time")},1e4),A=function({emit:a,isBackpressured:b,schedule:c=function(a,b){let c=setTimeout(a,b);return()=>clearTimeout(c)},windowMs:d=33}){let e=null,f=null,g=()=>{f?.(),f=null},h=c=>{if(null===e)return!0;if(!c&&b())return!1;let d=e;return e=null,a(d)},i=()=>{f=null,h(!1)};return{push(b){let j=function(a){if(null!==a&&"object"==typeof a&&"type"in a)return a.type}(b);if("message_update"===j){e=b,f||(f=c(i,d));return}if("message_end"===j){e=null,g(),a(b);return}g(),h(!0)&&a(b)},pull:()=>!(null===e||b())&&(g(),h(!1)),reset(){e=null,g()}}}({emit:a=>!!(!s||m||"object"!=typeof a||null===a||Array.isArray(a))||x({op:"event",id:s,payload:a}),isBackpressured:()=>a.bufferedAmount>256e3}),B=()=>{if(!r){if(r=!0,g(z),g(c),i.clear(),w(),k){let a=k7.get(k);a?.delete(C),a?.size===0&&(k7.delete(k),k8(k))}A.reset(),t?.(),t=null,s=null}},C=()=>{B(),a.close(1008,"Device revoked")},D=()=>{if(!r&&k){if(!j(k))return void C();c=f(D,1e3)}},E=async a=>{if(!r){if(!q){if("hello"!==a.op)return void y("unauthorized","hello is required");let b=d.authenticate(a,e());if(!b.ok)return void y(b.code,b.message);k=b.deviceId;let h=k7.get(k);return h||(h=new Set,k7.set(k,h)),h.add(C),q=!0,c=f(D,1e3),g(z),void x({op:"hello_ok",protocol:1,serverId:b.serverId,deviceId:b.deviceId,...b.token?{token:b.token}:{}})}if(!k||!j(k))return void C();switch(a.op){case"request":try{let b="sessions"===a.domain,c=a.args.command,d="object"==typeof c&&null!==c&&"type"in c?c.type:null;b&&("leaf"===a.action||"command"===a.action&&"fork"===d||("delete"===a.action||"archive"===a.action)&&a.args.id===s)&&(w(),m="leaf"===a.action,t?.(),t=null,A.reset(),"delete"===a.action||"archive"===a.action?s=null:"string"==typeof a.args.id&&(s=a.args.id));let e=l,f=k,g=await h[a.domain](a.action,a.args,{deviceId:k,sessionId:s,signal:v.signal,assertActive:()=>{if(!j(f))throw C(),Object.assign(Error("Device authorization expired"),{code:"unauthorized"});if(r||l!==e||k!==f)throw Object.assign(Error("Session changed during request"),{code:"request_cancelled"})}}),i="system"===a.domain&&"devices.revoke"===a.action&&"string"==typeof g.deviceId?g.deviceId:null;x({op:"result",req:a.req,success:!0,data:g},i===k),i&&function(a){let b=k7.get(a);for(let c of(k7.delete(a),b??[]))c();k8(a)}(i),b&&"command"===a.action&&"object"==typeof g.result&&null!==g.result&&"newSessionId"in g.result&&"string"==typeof g.result.newSessionId&&await E({op:"session.open",id:g.result.newSessionId})}catch(c){let b="object"==typeof c&&null!==c&&"code"in c&&"string"==typeof c.code&&/^[A-Za-z0-9_-]{1,64}$/.test(c.code)?c.code:"request_failed";x({op:"result",req:a.req,success:!1,error:{code:b,message:"Relay request failed ("+b+")"}})}return;case"hello":x({op:"error",code:"already_authed",message:"Already authenticated"});return;case"sessions.list":{let a=await d.listSessions();x({op:"sessions",sessions:a.sessions,runningIds:a.runningIds});return}case"models.list":return void x(Y(await d.listModels()));case"usage":{let a=await d.fetchUsage();if(a.ok)return void x({op:"usage",data:a.payload});x({op:"usage",data:{error:a.error,status:a.status}});return}case"session.close":w(),m=!1,t?.(),t=null,s=null,A.reset();return;case"projects.list":try{let a=await (d.listProjects??gC)();x({op:"projects",projects:a})}catch(a){x({op:"error",code:"projects_failed",message:a instanceof Error?a.message:String(a)})}return;case"files.list":try{let b=await (d.listFiles??gD)(a.path);x({op:"files",path:b.path,entries:b.entries})}catch(a){x({op:"error",code:a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:"files_failed",message:a instanceof Error?a.message:String(a)})}return;case"slash.list":return void x({op:"slash",commands:(d.listSlash??gE)()});case"files.read":try{let b=await (d.readFile??gP)(a.path);x({op:"file",path:b.path,name:b.name,...b.language?{language:b.language}:{},...void 0!==b.text?{text:b.text}:{},...b.truncated?{truncated:!0}:{},...void 0!==b.bytes?{bytes:b.bytes}:{},...b.encoding?{encoding:b.encoding}:{}})}catch(a){la(x,a,"files_failed")}return;case"session.delete":try{s===a.id&&(t?.(),t=null,s=null,A.reset());let b=await (d.deleteSession??hv)(a.id);x({op:"session.deleted",id:b.id});let c=await d.listSessions();x({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(b){la(x,b,"session_delete_failed",a.id)}return;case"session.archive":try{s===a.id&&(t?.(),t=null,s=null,A.reset());let b=await (d.archiveSession??hw)(a.id);x({op:"session.archived",id:b.id});let c=await d.listSessions();x({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(b){la(x,b,"session_archive_failed",a.id)}return;case"session.rename":try{let b=await (d.renameSession??hx)(a.id,a.name);x({op:"session.renamed",id:b.id,name:b.name});let c=await d.listSessions();x({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(b){la(x,b,"session_rename_failed",a.id)}return;case"sessions.archives":try{let a=await (d.listArchives??hy)();x({op:"archives",archives:a})}catch(a){la(x,a,"archives_failed")}return;case"session.restore":try{let b=await (d.restoreArchive??hz)(a.key);x({op:"session.restored",id:b.id});let c=await d.listSessions();x({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(a){la(x,a,"session_restore_failed")}return;case"worktrees.list":try{let b=await (d.listWorktrees??gQ)(a.cwd);x({op:"worktrees",cwd:b.cwd,projectRoot:b.projectRoot,isGit:b.isGit,currentWorktreePath:b.currentWorktreePath,worktrees:b.worktrees})}catch(a){la(x,a,"worktrees_failed")}return;case"worktrees.add":try{let b=await (d.addWorktree??gU)(a.cwd,a.branch);x({op:"worktree.added",path:b.path,branch:b.branch});let c=await (d.listWorktrees??gQ)(a.cwd);x({op:"worktrees",cwd:c.cwd,projectRoot:c.projectRoot,isGit:c.isGit,currentWorktreePath:c.currentWorktreePath,worktrees:c.worktrees})}catch(a){la(x,a,"worktree_add_failed")}return;case"files.write":try{let b=await (d.writeFile??gR)(a.path,a.text,a.revision,a.baseContentHash,a.createIfMissing);x({op:"file.written",path:b.path,bytes:b.bytes})}catch(a){la(x,a,"files_failed")}return;case"git.status":try{let b=await (d.gitStatus??gS)(a.cwd);x({op:"git.status",cwd:b.cwd,isGitRepository:b.isGitRepository,repositoryRoot:b.repositoryRoot,files:b.files})}catch(a){la(x,a,"git_failed")}return;case"git.diff":try{let b=await (d.gitDiff??gT)(a.cwd,a.path);x({op:"git.diff",path:b.path,supported:b.supported,...b.status?{status:b.status}:{},...b.patch?{patch:b.patch}:{},...b.truncated?{truncated:!0}:{}})}catch(a){la(x,a,"git_failed")}return;case"session.branches":try{let b=await (d.listBranches??bN)(a.id);x({op:"branches",id:b.id,leafId:b.leafId,branches:b.branches})}catch(b){la(x,b,"branches_failed",a.id)}return;case"session.leaf":try{let b=w();m=!0,A.reset(),t?.(),t=null,s=a.id;let c=await (d.snapshotLeaf??bO)(a.id,a.leafId);if(r||l!==b)return;x({op:"session.snapshot",id:a.id,...c.title?{title:c.title}:{},...c.cwd?{cwd:c.cwd}:{},leafId:c.leafId,messages:c.messages,agent:c.agent});try{let b=await (d.listBranches??bN)(a.id);x({op:"branches",id:b.id,leafId:b.leafId,branches:b.branches})}catch{}}catch(b){la(x,b,"leaf_failed",a.id)}return;case"session.export":try{let b=await (d.exportSession??bP)(a.id,k);x({op:"session.exported",id:b.id,fileName:b.fileName,bytes:b.bytes,...b.transferId?{transferId:b.transferId}:{},...void 0!==b.size?{size:b.size}:{},...b.html?{html:b.html}:{}})}catch(b){la(x,b,"export_failed",a.id)}return;case"skills.list":try{let b=await (d.listSkills??kf)(a.cwd);x({op:"skills",cwd:b.cwd,skills:b.skills})}catch(a){la(x,a,"skills_failed")}return;case"skills.toggle":try{let b=await (d.toggleSkill??kg)(a.cwd,a.filePath,a.disableModelInvocation);x({op:"skill.updated",filePath:b.filePath,disableModelInvocation:b.disableModelInvocation});let c=await (d.listSkills??kf)(a.cwd);x({op:"skills",cwd:c.cwd,skills:c.skills})}catch(a){la(x,a,"skills_failed")}return;case"plugins.list":try{let b=await (d.listPlugins??ki)(a.cwd);x({op:"plugins",cwd:b.cwd,packages:b.packages})}catch(a){la(x,a,"plugins_failed")}return;case"plugins.action":try{let b=await (d.pluginAction??kj)(a.cwd,a.action,a.source,a.scope);x({op:"plugins",cwd:b.cwd,packages:b.packages})}catch(a){la(x,a,"plugins_failed")}return;case"mcp.list":try{let b=await (d.listMcp??kk)(a.cwd);x({op:"mcp",inventory:b.inventory})}catch(a){la(x,a,"mcp_failed")}return;case"mcp.delete":try{let b=await (d.deleteMcp??kl)(a.cwd,a.name);x({op:"mcp.deleted",name:b.name});let c=await (d.listMcp??kk)(a.cwd);x({op:"mcp",inventory:c.inventory})}catch(a){la(x,a,"mcp_failed")}return;case"mcp.upsert":try{let b=await (d.upsertMcp??km)(a);x({op:"mcp.upserted",name:b.name});let c=await (d.listMcp??kk)(a.cwd);x({op:"mcp",inventory:c.inventory})}catch(a){la(x,a,"mcp_failed")}return;case"session.create":try{let b=await (d.createSession??gF)({cwd:a.cwd,message:a.message,provider:a.provider,modelId:a.modelId,thinkingLevel:a.thinkingLevel});x({op:"session.created",id:b.sessionId,cwd:a.cwd}),t?.(),t=null,A.reset(),s=b.sessionId;let c=w();m=!1;let e=await d.openSession(b.sessionId,a=>{r||l!==c||m||A.push(a)});if(r||l!==c||s!==b.sessionId)return void e.dispose();t=e.dispose,A.reset(),x({op:"session.snapshot",id:b.sessionId,...e.snapshot.title?{title:e.snapshot.title}:{},...e.snapshot.cwd?{cwd:e.snapshot.cwd}:{},leafId:e.snapshot.leafId,messages:e.snapshot.messages,agent:e.snapshot.agent})}catch(b){s=null,w(),A.reset();let a=b instanceof Error?b.message:String(b);x({op:"session.err",code:b&&"object"==typeof b&&"code"in b&&"string"==typeof b.code?b.code:"session_create_failed",message:a})}return;case"session.import":try{let b=await (d.importSession??hA)(a.fileName,a.content);x({op:"session.imported",id:b.id,cwd:b.cwd});let c=await d.listSessions();x({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(a){la(x,a,"session_import_failed")}return;case"skills.search":try{let b=await (d.searchSkills??kq)(a.query,a.limit??10);x({op:"skill.results",query:b.query,results:b.results})}catch(a){la(x,a,"skills_failed")}return;case"skills.install":try{let b=await (d.installSkill??kr)(a.package,a.scope,a.cwd);if(x({op:"skill.installed",package:b.package,scope:b.scope}),a.cwd){let b=await (d.listSkills??kf)(a.cwd);x({op:"skills",cwd:b.cwd,skills:b.skills})}}catch(a){la(x,a,"skills_failed")}return;case"agents.list":try{let b=await (d.listAgents??ks)(a.cwd);x({op:"agents",...b.cwd?{cwd:b.cwd}:{},agents:b.agents})}catch(a){la(x,a,"agents_failed")}return;case"agents.save":try{let b=await (d.saveAgent??kt)({name:a.name,description:a.description,systemPrompt:a.systemPrompt,scope:a.scope,...a.cwd?{cwd:a.cwd}:{}});x({op:"agent.saved",name:b.name,...b.filePath?{filePath:b.filePath}:{}});let c=await (d.listAgents??ks)(a.cwd);x({op:"agents",...c.cwd?{cwd:c.cwd}:{},agents:c.agents})}catch(a){la(x,a,"agents_failed")}return;case"agents.delete":try{let b=await (d.deleteAgent??ku)({name:a.name,scope:a.scope,...a.cwd?{cwd:a.cwd}:{}});x({op:"agent.deleted",name:b.name});let c=await (d.listAgents??ks)(a.cwd);x({op:"agents",...c.cwd?{cwd:c.cwd}:{},agents:c.agents})}catch(a){la(x,a,"agents_failed")}return;case"auth.providers":try{let a=await (d.listAuthProviders??kC)();x({op:"auth.providers",providers:a.providers})}catch(a){la(x,a,"auth_failed")}return;case"files.index":try{let b=await (d.searchFiles??g$)(a.cwd,a.query);x({op:"files.index",cwd:b.cwd,query:b.query,matches:b.matches})}catch(a){la(x,a,"files_failed")}return;case"projects.add":try{let b=await (d.addProject??gV)(a.cwd);x({op:"project.added",path:b.path,...b.name?{name:b.name}:{}});let c=await (d.listProjects??gC)();x({op:"projects",projects:c})}catch(a){la(x,a,"projects_failed")}return;case"projects.remove":try{let b=await (d.removeProject??gW)(a.cwd);x({op:"project.removed",path:b.path});let c=await (d.listProjects??gC)();x({op:"projects",projects:c})}catch(a){la(x,a,"projects_failed")}return;case"settings.get":try{let a=a_();x({op:"settings",settings:a.settings})}catch(a){x({op:"error",code:"settings_read_failed",message:String(a)})}return;case"settings.update":try{let b=a_(),c=aZ(b.settings,a.settings);a0(c);let d=a.settings;(void 0!==d.enabledModels||void 0!==d.disabledProviders||void 0!==d.modelProviderOrder)&&(aD(),(0,iR.j)());let e=a_();x({op:"settings_updated",success:!0,settings:e.settings})}catch(a){x({op:"settings_updated",success:!1,error:String(a)})}return;case"session.open":{let b=w();m=!1,t?.(),t=null,A.reset(),s=a.id;try{let c=await d.openSession(a.id,a=>{r||l!==b||m||A.push(a)});if(r||l!==b||s!==a.id)return void c.dispose();t=c.dispose,A.reset(),x({op:"session.snapshot",id:a.id,...c.snapshot.title?{title:c.snapshot.title}:{},...c.snapshot.cwd?{cwd:c.snapshot.cwd}:{},leafId:c.snapshot.leafId,messages:c.snapshot.messages,agent:c.snapshot.agent})||x({op:"session.err",id:a.id,code:"snapshot_too_large",message:"Session snapshot exceeded maximum frame size"});try{let b=await (d.listBranches??bN)(a.id);x({op:"branches",id:b.id,leafId:b.leafId,branches:b.branches})}catch{}}catch(d){s=null,w(),A.reset();let b=d instanceof Error?d.message:String(d),c=d&&"object"==typeof d&&"code"in d&&"string"==typeof d.code?d.code:"session_open_failed";x({op:"session.err",id:a.id,code:c,message:b})}return}case"cmd":if(!s)return void x({op:"cmd_err",req:a.req,code:"session_not_open",message:"Open a session first"});try{let b=l,c=s,e=await d.sendCommand(c,function(a){switch(a.type){case"prompt":return{type:"prompt",message:a.message??"",...a.images?{images:a.images}:{}};case"abort":return{type:"abort"};case"get_state":return{type:"get_state"};case"set_model":return{type:"set_model",provider:a.provider,modelId:a.modelId};case"set_thinking_level":return{type:"set_thinking_level",level:a.level};case"compact":return{type:"compact"};case"get_subagents":return{type:"get_subagents"};case"get_available_commands":return{type:"get_available_commands"}}}(a));if(r||l!==b||s!==c)return;x({op:"cmd_ok",req:a.req,data:e??null})}catch(d){let b=d instanceof Error?d.message:String(d),c=d&&"object"==typeof d&&"code"in d&&"string"==typeof d.code?d.code:"rpc_command_failed";x({op:"cmd_err",req:a.req,code:c,message:b})}}}};return{onText(a){if(r)return;let b=a,c=!1;try{if(Buffer.byteLength(a,"utf8")>262144)throw Error("Frame exceeds transport limit");let d=JSON.parse(a);if("object"==typeof d&&null!==d&&"op"in d&&"chunk"===d.op){if(!q)return void y("unauthorized","hello is required before chunks");let a=i.accept(d);if(null===a)return;b=a,c=!0}}catch{i.clear(),q?x({op:"error",code:"invalid_frame",message:"Invalid relay frame"}):y("invalid_frame","Invalid relay frame");return}let d=function(a,b=!1){let c;if("string"!=typeof a||0===a.length)return{error:!0,code:"invalid_json",message:"Empty frame"};if(Buffer.byteLength(a,"utf8")>(b?0x1000000:262144))return{error:!0,code:"frame_too_large",message:"Frame is too large"};try{c=JSON.parse(a)}catch{return{error:!0,code:"invalid_json",message:"Frame is not JSON"}}if(!(0,S.u4)(c))return{error:!0,code:"invalid_frame",message:"Frame must be a JSON object"};let d=(0,S.oJ)(c.op);if(!d)return{error:!0,code:"invalid_frame",message:"op is required"};switch(d){case"request":{let{req:a,domain:b,action:d,args:e}=c;if("number"!=typeof a||!Number.isSafeInteger(a)||a<=0||"files"!==b&&"sessions"!==b&&"models"!==b&&"extensions"!==b&&"system"!==b||"string"!=typeof d||!/^[A-Za-z][A-Za-z0-9._-]{0,127}$/.test(d)||"object"!=typeof e||null===e||Array.isArray(e))return{error:!0,code:"invalid_request",message:"Invalid request envelope"};return{op:"request",req:a,domain:b,action:d,args:e}}case"hello":return function(a){if(1!==(0,S.i)(a.protocol))return{error:!0,code:"protocol",message:"Unsupported relay protocol"};let b={op:"hello",protocol:1},c=(0,S.oJ)(a.pairingSecret)?.trim(),d=(0,S.oJ)(a.deviceId)?.trim(),e=(0,S.oJ)(a.token)?.trim(),f=(0,S.oJ)(a.password),g=(0,S.oJ)(a.label)?.trim();if(c){if(!W.test(c))return{error:!0,code:"unauthorized",message:"Invalid pairing secret"};b.pairingSecret=c}else{if(!d||!e)return{error:!0,code:"unauthorized",message:"Pairing secret or device token is required"};if(!V.test(d)||!W.test(e))return{error:!0,code:"unauthorized",message:"Invalid device credentials"};b.deviceId=d,b.token=e}return void 0!==f&&(b.password=f),g&&(b.label=g.slice(0,64)),b}(c);case"sessions.list":return{op:"sessions.list"};case"models.list":return{op:"models.list"};case"usage":return{op:"usage"};case"session.open":{let a=(0,S.oJ)(c.id)?.trim();if(!a||!X.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};return{op:"session.open",id:a}}case"session.close":return{op:"session.close"};case"session.create":{let a=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};let b={op:"session.create",cwd:a},d=(0,S.oJ)(c.message);if(void 0!==d){if(d.length>3145728)return{error:!0,code:"invalid_command",message:"prompt message is too long"};b.message=d}let e=(0,S.oJ)(c.provider)?.trim(),f=(0,S.oJ)(c.modelId)?.trim();e&&(b.provider=e.slice(0,512)),f&&(b.modelId=f.slice(0,512));let g=(0,S.oJ)(c.thinkingLevel)?.trim();return g&&(b.thinkingLevel=g.slice(0,32)),b}case"projects.list":return{op:"projects.list"};case"files.list":{let a=(0,S.oJ)(c.path)?.trim();if(a&&a.length>1024)return{error:!0,code:"invalid_path",message:"path is too long"};return a?{op:"files.list",path:a}:{op:"files.list"}}case"slash.list":return{op:"slash.list"};case"files.read":{let a=(0,S.oJ)(c.path)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_path",message:"path is required"};return{op:"files.read",path:a}}case"session.delete":case"session.archive":{let a=(0,S.oJ)(c.id)?.trim();if(!a||!X.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};return"session.delete"===d?{op:"session.delete",id:a}:{op:"session.archive",id:a}}case"session.rename":{let a=(0,S.oJ)(c.id)?.trim(),b=(0,S.oJ)(c.name)?.trim();if(!a||!X.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};if(!b||b.length>200)return{error:!0,code:"invalid_name",message:"name is required"};return{op:"session.rename",id:a,name:b}}case"sessions.archives":return{op:"sessions.archives"};case"session.restore":{let a=(0,S.oJ)(c.key)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_key",message:"archive key is required"};return{op:"session.restore",key:a}}case"worktrees.list":{let a=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};return{op:"worktrees.list",cwd:a}}case"worktrees.add":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.branch)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>128)return{error:!0,code:"invalid_branch",message:"branch is required"};return{op:"worktrees.add",cwd:a,branch:b}}case"files.write":{let a=(0,S.oJ)(c.path)?.trim(),b=(0,S.oJ)(c.text);if(!a||a.length>1024)return{error:!0,code:"invalid_path",message:"path is required"};if(void 0===b)return{error:!0,code:"invalid_text",message:"text is required"};if(b.length>8e4)return{error:!0,code:"invalid_text",message:"text is too long"};return{op:"files.write",path:a,text:b,..."string"==typeof c.revision?{revision:c.revision}:{},..."string"==typeof c.baseContentHash?{baseContentHash:c.baseContentHash}:{},...!0===c.createIfMissing?{createIfMissing:!0}:{}}}case"git.status":{let a=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};return{op:"git.status",cwd:a}}case"git.diff":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.path)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>1024)return{error:!0,code:"invalid_path",message:"path is required"};return{op:"git.diff",cwd:a,path:b}}case"session.branches":case"session.export":{let a=(0,S.oJ)(c.id)?.trim();if(!a||!X.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};return"session.branches"===d?{op:"session.branches",id:a}:{op:"session.export",id:a}}case"session.leaf":{let a=(0,S.oJ)(c.id)?.trim(),b=(0,S.oJ)(c.leafId)?.trim();if(!a||!X.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};if(!b||b.length>200)return{error:!0,code:"invalid_leaf",message:"leafId is required"};return{op:"session.leaf",id:a,leafId:b}}case"skills.list":case"plugins.list":{let a=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};return"skills.list"===d?{op:"skills.list",cwd:a}:{op:"plugins.list",cwd:a}}case"skills.toggle":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.filePath)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>1024)return{error:!0,code:"invalid_path",message:"filePath is required"};if("boolean"!=typeof c.disableModelInvocation)return{error:!0,code:"invalid_flag",message:"disableModelInvocation must be a boolean"};return{op:"skills.toggle",cwd:a,filePath:b,disableModelInvocation:c.disableModelInvocation}}case"plugins.action":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.action)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if("install"!==b&&"remove"!==b&&"update"!==b&&"disable"!==b&&"enable"!==b)return{error:!0,code:"invalid_action",message:"plugin action is required"};let d=(0,S.oJ)(c.source)?.trim();if("update"!==b&&(!d||d.length>512))return{error:!0,code:"invalid_source",message:"source is required"};if(d&&d.length>512)return{error:!0,code:"invalid_source",message:"source is too long"};let e=(0,S.oJ)(c.scope)?.trim(),f="project"===e?"project":"global"===e?"global":void 0;return{op:"plugins.action",cwd:a,action:b,...d?{source:d}:{},...f?{scope:f}:{}}}case"mcp.list":{let a=(0,S.oJ)(c.cwd)?.trim();if(a&&a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return a?{op:"mcp.list",cwd:a}:{op:"mcp.list"}}case"mcp.delete":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.name)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>128)return{error:!0,code:"invalid_name",message:"name is required"};return{op:"mcp.delete",cwd:a,name:b}}case"mcp.upsert":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.name)?.trim(),d=(0,S.oJ)(c.type)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>128)return{error:!0,code:"invalid_name",message:"name is required"};if("stdio"!==d&&"http"!==d&&"sse"!==d)return{error:!0,code:"invalid_type",message:"type must be stdio, http, or sse"};let e=(0,S.oJ)(c.command)?.trim(),f=(0,S.oJ)(c.url)?.trim();if(e&&e.length>1024)return{error:!0,code:"invalid_command",message:"command is too long"};if(f&&f.length>1024)return{error:!0,code:"invalid_url",message:"url is too long"};let g={op:"mcp.upsert",cwd:a,name:b,type:d};if(e&&(g.command=e),f&&(g.url=f),Array.isArray(c.args)){let a=[];for(let b of c.args){if("string"!=typeof b)return{error:!0,code:"invalid_args",message:"args must be strings"};if(b.length>256)return{error:!0,code:"invalid_args",message:"arg is too long"};if(a.push(b),a.length>16)return{error:!0,code:"invalid_args",message:"too many args"}}a.length>0&&(g.args=a)}else if(null!=c.args)return{error:!0,code:"invalid_args",message:"args must be an array"};return g}case"session.import":{let a=(0,S.oJ)(c.fileName)?.trim(),b=(0,S.oJ)(c.content);if(!a||a.length>200||a.includes("/")||a.includes("\\"))return{error:!0,code:"invalid_file_name",message:"fileName is required"};if(void 0===b||!b.trim())return{error:!0,code:"invalid_content",message:"content is required"};if(b.length>18e4)return{error:!0,code:"invalid_content",message:"content is too long"};return{op:"session.import",fileName:a,content:b}}case"skills.search":{let a=(0,S.oJ)(c.query)?.trim();if(!a||a.length>200)return{error:!0,code:"invalid_query",message:"query is required"};let b=c.limit;if(void 0===b)return{op:"skills.search",query:a};let d=(0,S.i)(b);if(void 0===d||!Number.isInteger(d)||d<1||d>20)return{error:!0,code:"invalid_limit",message:"limit must be 1-20"};return{op:"skills.search",query:a,limit:d}}case"skills.install":{let a=(0,S.oJ)(c.package)?.trim(),b=(0,S.oJ)(c.scope)?.trim(),d=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>256)return{error:!0,code:"invalid_package",message:"package is required"};if("global"!==b&&"project"!==b)return{error:!0,code:"invalid_scope",message:"scope must be global or project"};if(d&&d.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return{op:"skills.install",package:a,scope:b,...d?{cwd:d}:{}}}case"agents.list":{let a=(0,S.oJ)(c.cwd)?.trim();if(a&&a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return a?{op:"agents.list",cwd:a}:{op:"agents.list"}}case"agents.save":{let a=(0,S.oJ)(c.name)?.trim(),b=(0,S.oJ)(c.description)?.trim(),d=(0,S.oJ)(c.systemPrompt),e=(0,S.oJ)(c.scope)?.trim(),f=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>64||!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a))return{error:!0,code:"invalid_name",message:"name must be kebab-case"};if(void 0===b||!b||b.length>500)return{error:!0,code:"invalid_description",message:"description is required"};if(void 0===d||d.length>2e4)return{error:!0,code:"invalid_prompt",message:"systemPrompt is required"};if("user"!==e&&"project"!==e)return{error:!0,code:"invalid_scope",message:"scope must be user or project"};if(f&&f.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return{op:"agents.save",name:a,description:b,systemPrompt:d,scope:e,...f?{cwd:f}:{}}}case"agents.delete":{let a=(0,S.oJ)(c.name)?.trim(),b=(0,S.oJ)(c.scope)?.trim(),d=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>64)return{error:!0,code:"invalid_name",message:"name is required"};if("user"!==b&&"project"!==b)return{error:!0,code:"invalid_scope",message:"scope must be user or project"};if(d&&d.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return{op:"agents.delete",name:a,scope:b,...d?{cwd:d}:{}}}case"auth.providers":return{op:"auth.providers"};case"files.index":{let a=(0,S.oJ)(c.cwd)?.trim(),b=(0,S.oJ)(c.query);if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(void 0===b||b.length>100)return{error:!0,code:"invalid_query",message:"query is required"};return{op:"files.index",cwd:a,query:b}}case"projects.add":case"projects.remove":{let a=(0,S.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};return"projects.add"===d?{op:"projects.add",cwd:a}:{op:"projects.remove",cwd:a}}case"settings.get":return{op:"settings.get"};case"settings.update":if(!(0,S.u4)(c.settings))return{error:!0,code:"invalid_settings",message:"settings must be an object"};return{op:"settings.update",settings:c.settings};case"cmd":return function(a){let b=(0,S.i)(a.req);if(void 0===b||!Number.isInteger(b)||b<1||b>0x7fffffff)return{error:!0,code:"invalid_req",message:"cmd.req must be a positive integer"};let c=(0,S.oJ)(a.type)?.trim();if(!c||!U.has(c))return{error:!0,code:"unsupported_command",message:"Command is not allowed on the relay"};let d={op:"cmd",req:b,type:c};if("prompt"===c){let b=(0,S.oJ)(a.message);if(void 0===b)return{error:!0,code:"invalid_command",message:"prompt message is required"};if(b.length>3145728)return{error:!0,code:"invalid_command",message:"prompt message is too long"};if("images"in a&&null!=a.images){let b=a.images;if(!Array.isArray(b))return{error:!0,code:"invalid_command",message:"images must be an array"};let c=[];for(let a of b){if(!(0,S.u4)(a))return{error:!0,code:"invalid_command",message:"Each image must have data and mimeType"};let b=(0,S.oJ)(a.data),d=(0,S.oJ)(a.mimeType)?.trim();if(!b||!d)return{error:!0,code:"invalid_command",message:"Each image must have data and mimeType"};c.push({data:b,mimeType:d})}let e=(0,T.kc)(c.map(a=>({type:"image",...a})));if(e)return{error:!0,code:"invalid_command",message:e};c.length>0&&(d.images=c)}d.message=b}if("set_model"===c){let b=(0,S.oJ)(a.provider)?.trim(),c=(0,S.oJ)(a.modelId)?.trim();if(!b||!c)return{error:!0,code:"invalid_command",message:"set_model requires provider and modelId"};d.provider=b,d.modelId=c}if("set_thinking_level"===c){let b=(0,S.oJ)(a.level)?.trim();if(!b)return{error:!0,code:"invalid_command",message:"set_thinking_level requires level"};d.level=b.slice(0,32)}return d}(c);default:return{error:!0,code:"unknown_op",message:`Unknown op: ${d}`}}}(b,c);if((0,S.u4)(d)&&!0===d.error&&"string"==typeof d.code)return q?void x({op:"error",code:d.code,message:d.message}):void y(d.code,d.message);let e=q&&("cmd"===d.op&&"abort"===d.type||"request"===d.op&&"sessions"===d.domain&&"command"===d.action&&"object"==typeof d.args.command&&null!==d.args.command&&"type"in d.args.command&&("abort"===d.args.command.type||"extension_ui_response"===d.args.command.type));if((e?o:n)>=(e?16:64))return void("request"===d.op?x({op:"result",req:d.req,success:!1,error:{code:"busy",message:"Too many pending relay operations"}}):"cmd"===d.op?x({op:"cmd_err",req:d.req,code:"busy",message:"Too many pending relay operations"}):x({op:"error",code:"busy",message:"Too many pending relay operations"}));e?o++:n++;let f=()=>E(d).catch(()=>{x({op:"error",code:"internal_error",message:"Relay operation failed"})}).finally(()=>{e?o--:n--});e?p=p.then(f):u=u.then(f)},onClose(){B()}}}(g),c.length>0&&g.feed(c))}(a,d[1],d[2]??Buffer.alloc(0)),!0}return b.call(this,a,...d)}b.__ompguiRelay||(c.__ompguiRelay=!0,a.prototype.emit=c)}function lh(){globalThis.__ompguiRelayGatewayAttached||(globalThis.__ompguiRelayGatewayAttached=!0,lg(J.Server),lg(K.Server))}},7306:(a,b,c)=>{"use strict";var d=c(18092).Readable;function e(a,b,c){d.call(this,b),this._helper=a;var e=this;a.on("data",function(a,b){e.push(a)||e._helper.pause(),c&&c(b)}).on("error",function(a){e.emit("error",a)}).on("end",function(){e.push(null)})}c(58952).inherits(e,d),e.prototype._read=function(){this._helper.resume()},a.exports=e},8142:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q={}.hasOwnProperty;o=(p=c(54117)).isObject,n=p.isFunction,m=p.isEmpty,l=p.getValue,h=null,b=null,d=null,e=null,f=null,j=null,k=null,i=null,g=null,a.exports=function(){function a(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],h||(h=c(16426),b=c(92293),d=c(96321),e=c(2286),f=c(72240),j=c(77632),k=c(46107),i=c(11781),g=c(16646))}return a.prototype.element=function(a,b,c){var d,e,f,g,h,i,j,k,p,r,s;if(i=null,null===b&&null==c&&(b=(p=[{},null])[0],c=p[1]),null==b&&(b={}),o(b=l(b))||(c=(r=[b,c])[0],b=r[1]),null!=a&&(a=l(a)),Array.isArray(a))for(f=0,j=a.length;f<j;f++)e=a[f],i=this.element(e);else if(n(a))i=this.element(a.apply());else if(o(a)){for(h in a)if(q.call(a,h))if(n(s=a[h])&&(s=s.apply()),o(s)&&m(s)&&(s=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===h.indexOf(this.stringify.convertAttKey))i=this.attribute(h.substr(this.stringify.convertAttKey.length),s);else if(!this.options.separateArrayItems&&Array.isArray(s))for(g=0,k=s.length;g<k;g++)e=s[g],(d={})[h]=e,i=this.element(d);else o(s)?(i=this.element(h)).element(s):i=this.element(h,s)}else i=this.options.skipNullNodes&&null===c?this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?this.text(c):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===a.indexOf(this.stringify.convertCDataKey)?this.cdata(c):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===a.indexOf(this.stringify.convertCommentKey)?this.comment(c):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===a.indexOf(this.stringify.convertRawKey)?this.raw(c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===a.indexOf(this.stringify.convertPIKey)?this.instruction(a.substr(this.stringify.convertPIKey.length),c):this.node(a,b,c);if(null==i)throw Error("Could not create any elements with: "+a+". "+this.debugInfo());return i},a.prototype.insertBefore=function(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.insertAfter=function(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e+1),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.remove=function(){var a;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[a,a-a+1].concat([])),this.parent},a.prototype.node=function(a,b,c){var d,e;return null!=a&&(a=l(a)),b||(b={}),o(b=l(b))||(c=(e=[b,c])[0],b=e[1]),d=new h(this,a,b),null!=c&&d.text(c),this.children.push(d),d},a.prototype.text=function(a){var b;return b=new k(this,a),this.children.push(b),this},a.prototype.cdata=function(a){var c;return c=new b(this,a),this.children.push(c),this},a.prototype.comment=function(a){var b;return b=new d(this,a),this.children.push(b),this},a.prototype.commentBefore=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.commentAfter=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b+1),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.raw=function(a){var b;return b=new j(this,a),this.children.push(b),this},a.prototype.dummy=function(){var a;return a=new g(this),this.children.push(a),a},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(null!=a&&(a=l(a)),null!=b&&(b=l(b)),Array.isArray(a))for(f=0,g=a.length;f<g;f++)c=a[f],this.instruction(c);else if(o(a))for(c in a)q.call(a,c)&&(d=a[c],this.instruction(c,d));else n(b)&&(b=b.apply()),e=new i(this,a,b),this.children.push(e);return this},a.prototype.instructionBefore=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.instructionAfter=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c+1),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.declaration=function(a,b,c){var d,f;return d=this.document(),f=new e(d,a,b,c),d.children[0]instanceof e?d.children[0]=f:d.children.unshift(f),d.root()||d},a.prototype.doctype=function(a,b){var c,d,e,g,h,i,j,k,l;for(c=this.document(),d=new f(c,a,b),k=c.children,e=g=0,i=k.length;g<i;e=++g)if(k[e]instanceof f)return c.children[e]=d,d;for(l=c.children,e=h=0,j=l.length;h<j;e=++h)if(l[e].isRoot)return c.children.splice(e,0,d),d;return c.children.push(d),d},a.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},a.prototype.root=function(){var a;for(a=this;a;)if(a.isDocument)return a.rootObject;else{if(a.isRoot)return a;a=a.parent}},a.prototype.document=function(){var a;for(a=this;a;)if(a.isDocument)return a;else a=a.parent},a.prototype.end=function(a){return this.document().end(a)},a.prototype.prev=function(){var a;for(a=this.parent.children.indexOf(this);a>0&&this.parent.children[a-1].isDummy;)a-=1;if(a<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]},a.prototype.next=function(){var a;for(a=this.parent.children.indexOf(this);a<this.parent.children.length-1&&this.parent.children[a+1].isDummy;)a+=1;if(-1===a||a===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]},a.prototype.importDocument=function(a){var b;return(b=a.root().clone()).parent=this,b.isRoot=!1,this.children.push(b),this},a.prototype.debugInfo=function(a){var b,c;return null!=(a=a||this.name)||(null!=(b=this.parent)?b.name:void 0)?null==a?"parent: <"+this.parent.name+">":(null!=(c=this.parent)?c.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">":""},a.prototype.ele=function(a,b,c){return this.element(a,b,c)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.doc=function(){return this.document()},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.dtd=function(a,b){return this.doctype(a,b)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.u=function(){return this.up()},a.prototype.importXMLBuilder=function(a){return this.importDocument(a)},a}()}).call(this)},8216:a=>{"use strict";a.exports=function(a){var b=a._SomePromiseArray;function c(a){var c=new b(a),d=c.promise();return c.setHowMany(1),c.setUnwrap(),c.init(),d}a.any=function(a){return c(a)},a.prototype.any=function(){return c(this)}}},8878:(a,b,c)=>{"use strict";var d=c(79571),e=c(16892),f=c(77936),g=c(73315),h=c(49443);b.addPairToJSMap=function(a,b,{key:c,value:i}){if(g.isNode(c)&&c.addToJSMap)c.addToJSMap(a,b,i);else if(e.isMergeKey(a,c))e.addMergeToJSMap(a,b,i);else{let e=h.toJS(c,"",a);if(b instanceof Map)b.set(e,h.toJS(i,e,a));else if(b instanceof Set)b.add(e);else{let j=function(a,b,c){if(null===b)return"";if("object"!=typeof b)return String(b);if(g.isNode(a)&&c?.doc){let b=f.createStringifyContext(c.doc,{});for(let a of(b.anchors=new Set,c.anchors.keys()))b.anchors.add(a.anchor);b.inFlow=!0,b.inStringifyKey=!0;let e=a.toString(b);if(!c.mapKeyWarned){let a=JSON.stringify(e);a.length>40&&(a=a.substring(0,36)+'..."'),d.warn(c.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),c.mapKeyWarned=!0}return e}return JSON.stringify(b)}(c,e,a),k=h.toJS(i,j,a);j in b?Object.defineProperty(b,j,{value:k,writable:!0,enumerable:!0,configurable:!0}):b[j]=k}}return b}},9774:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a,b,d){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing DTD element name. "+this.debugInfo());d||(d="(#PCDATA)"),Array.isArray(d)&&(d="("+d.join(",")+")"),this.name=this.stringify.eleName(b),this.value=this.stringify.dtdElementValue(d)}return b(c,a),c.prototype.toString=function(a){return this.options.writer.set(a).dtdElement(this)},c}(c(8142))}).call(this)},9920:(a,b,c)=>{var d=c(84906),e=c(77313)();b.defer=function(){var a,b,c=new e.Promise(function(c,d){a=c,b=d});return{resolve:a,reject:b,promise:c}},b.when=e.resolve,b.resolve=e.resolve,b.all=e.all,b.props=e.props,b.reject=e.reject,b.promisify=e.promisify,b.mapSeries=e.mapSeries,b.attempt=e.attempt,b.nfcall=function(a){var b=Array.prototype.slice.call(arguments,1);return e.promisify(a).apply(null,b)},e.prototype.fail=e.prototype.caught,e.prototype.also=function(a){return this.then(function(b){var c=d.extend({},b,a(b));return e.props(c)})}},9972:(a,b,c)=>{"use strict";var d=c(65695);function e(a,b){let c=a[0],d="-"===c||"+"===c?a.substring(1):a,e=a=>b?BigInt(a):Number(a),f=d.replace(/_/g,"").split(":").reduce((a,b)=>a*e(60)+e(b),e(0));return"-"===c?e(-1)*f:f}function f(a){let{value:b}=a,c=a=>a;if("bigint"==typeof b)c=a=>BigInt(a);else if(isNaN(b)||!isFinite(b))return d.stringifyNumber(a);let e="";b<0&&(e="-",b*=c(-1));let f=c(60),g=[b%f];return b<60?g.unshift(0):(b=(b-g[0])/f,g.unshift(b%f),b>=60&&(b=(b-g[0])/f,g.unshift(b))),e+g.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let g={identify:a=>a instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(a){let b=a.match(g.test);if(!b)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,c,d,f,h,i,j]=b.map(Number),k=Date.UTC(c,d-1,f,h||0,i||0,j||0,b[7]?Number((b[7]+"00").substr(1,3)):0),l=b[8];if(l&&"Z"!==l){let a=e(l,!1);30>Math.abs(a)&&(a*=60),k-=6e4*a}return new Date(k)},stringify:({value:a})=>a?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};b.floatTime={identify:a=>"number"==typeof a,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:a=>e(a,!1),stringify:f},b.intTime={identify:a=>"bigint"==typeof a||Number.isInteger(a),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(a,b,{intAsBigInt:c})=>e(a,c),stringify:f},b.timestamp=g},10128:a=>{a.exports=function(a,c){return{asString:function(){return a},range:function(d,e){return new b(a,c,d,e)}}};var b=function(a,b,c,d){this._string=a,this._description=b,this._startIndex=c,this._endIndex=d};b.prototype.to=function(a){return new b(this._string,this._description,this._startIndex,a._endIndex)},b.prototype.describe=function(){var a=this._position();return(this._description?this._description+"\n":"")+"Line number: "+a.lineNumber+"\nCharacter number: "+a.characterNumber},b.prototype.lineNumber=function(){return this._position().lineNumber},b.prototype.characterNumber=function(){return this._position().characterNumber},b.prototype._position=function(){for(var a=this,b=0,c=function(){return a._string.indexOf("\n",b)},d=1;-1!==c()&&c()<this._startIndex;)b=c()+1,d+=1;return{lineNumber:d,characterNumber:this._startIndex-b+1}}},10140:(a,b,c)=>{"use strict";var d=c(73315),e=c(3404);function f(a){let b=new Set;return e.visit(a,{Value(a,c){c.anchor&&b.add(c.anchor)}}),b}function g(a,b){for(let c=1;;++c){let d=`${a}${c}`;if(!b.has(d))return d}}b.anchorIsValid=function(a){if(/[\x00-\x19\s,[\]{}]/.test(a)){let b=JSON.stringify(a);throw Error(`Anchor must not contain whitespace or control characters: ${b}`)}return!0},b.anchorNames=f,b.createNodeAnchors=function(a,b){let c=[],e=new Map,h=null;return{onAnchor:d=>{c.push(d),h??(h=f(a));let e=g(b,h);return h.add(e),e},setAnchors:()=>{for(let a of c){let b=e.get(a);if("object"==typeof b&&b.anchor&&(d.isScalar(b.node)||d.isCollection(b.node)))b.node.anchor=b.anchor;else{let b=Error("Failed to resolve repeated object (this should not happen)");throw b.source=a,b}}},sourceObjects:e}},b.findNewAnchor=g},10558:(a,b,c)=>{"use strict";var d=c(58952);function e(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}e.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var b,c=0;for(this.checkOffset(a),b=this.index+a-1;b>=this.index;b--)c=(c<<8)+this.byteAt(b);return this.index+=a,c},readString:function(a){return d.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC((a>>25&127)+1980,(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},a.exports=e},10878:(a,b,c)=>{"use strict";var d=c(3327),e=c(73315),f=c(26701);b.createNode=function(a,b,c){let g;if(e.isDocument(a)&&(a=a.contents),e.isNode(a))return a;if(e.isPair(a)){let b=c.schema[e.MAP].createNode?.(c.schema,null,c);return b.items.push(a),b}(a instanceof String||a instanceof Number||a instanceof Boolean||"u">typeof BigInt&&a instanceof BigInt)&&(a=a.valueOf());let{aliasDuplicateObjects:h,onAnchor:i,onTagObj:j,schema:k,sourceObjects:l}=c;if(h&&a&&"object"==typeof a){if(g=l.get(a))return g.anchor??(g.anchor=i(a)),new d.Alias(g.anchor);g={anchor:null,node:null},l.set(a,g)}b?.startsWith("!!")&&(b="tag:yaml.org,2002:"+b.slice(2));let m=function(a,b,c){if(b){let a=c.filter(a=>a.tag===b),d=a.find(a=>!a.format)??a[0];if(!d)throw Error(`Tag ${b} not found`);return d}return c.find(b=>b.identify?.(a)&&!b.format)}(a,b,k.tags);if(!m){if(a&&"function"==typeof a.toJSON&&(a=a.toJSON()),!a||"object"!=typeof a){let b=new f.Scalar(a);return g&&(g.node=b),b}m=a instanceof Map?k[e.MAP]:Symbol.iterator in Object(a)?k[e.SEQ]:k[e.MAP]}j&&(j(m),delete c.onTagObj);let n=m?.createNode?m.createNode(c.schema,a,c):"function"==typeof m?.nodeClass?.from?m.nodeClass.from(c.schema,a,c):new f.Scalar(a);return b?n.tag=b:m.default||(n.tag=m.tag),g&&(g.node=n),n}},11457:(a,b,c)=>{var d=c(9920),e=c(84906),f=c(14089),g=c(18403),h=g.Element;b.readString=function(a,b){b=b||{};try{var c=f.parseFromString(a,"text/xml")}catch(a){return d.reject(a)}if("parsererror"===c.documentElement.tagName)return d.resolve(Error(c.documentElement.textContent));function j(a){if(!a.namespaceURI)return a.localName;var c=b[a.namespaceURI];return(c?c+":":"{"+a.namespaceURI+"}")+a.localName}return d.resolve(function a(b){switch(b.nodeType){case i.ELEMENT_NODE:var c,d,f,k;return d=j(c=b),f=[],e.forEach(c.childNodes,function(b){var c=a(b);c&&f.push(c)}),k={},e.forEach(c.attributes,function(a){k[j(a)]=a.value}),new h(d,k,f);case i.TEXT_NODE:return g.text(b.nodeValue)}}(c.documentElement))};var i=f.Node},11781:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a,b,d){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(b),d&&(this.value=this.stringify.insValue(d))}return b(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.set(a).processingInstruction(this)},c}(c(8142))}).call(this)},12093:(a,b)=>{"use strict";b.containsNewline=function a(b){if(!b)return null;switch(b.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(b.source.includes("\n"))return!0;if(b.end){for(let a of b.end)if("newline"===a.type)return!0}return!1;case"flow-collection":for(let c of b.items){for(let a of c.start)if("newline"===a.type)return!0;if(c.sep){for(let a of c.sep)if("newline"===a.type)return!0}if(a(c.key)||a(c.value))return!0}return!1;default:return!0}}},12244:(a,b)=>{"use strict";b.resolveEnd=function(a,b,c,d){let e="";if(a){let f=!1,g="";for(let h of a){let{source:a,type:i}=h;switch(i){case"space":f=!0;break;case"comment":{c&&!f&&d(h,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let b=a.substring(1)||" ";e?e+=g+b:e=b,g="";break}case"newline":e&&(g+=a),f=!0;break;default:d(h,"UNEXPECTED_TOKEN",`Unexpected ${i} at node end`)}b+=a.length}}return{comment:e,offset:b}}},12367:(a,b,c)=>{"use strict";var d=c(73315),e=c(77936),f=c(72687);b.stringifyDocument=function(a,b){let c=[],g=!0===b.directives;if(!1!==b.directives&&a.directives){let b=a.directives.toString(a);b?(c.push(b),g=!0):a.directives.docStart&&(g=!0)}g&&c.push("---");let h=e.createStringifyContext(a,b),{commentString:i}=h.options;if(a.commentBefore){1!==c.length&&c.unshift("");let b=i(a.commentBefore);c.unshift(f.indentComment(b,""))}let j=!1,k=null;if(a.contents){if(d.isNode(a.contents)){if(a.contents.spaceBefore&&g&&c.push(""),a.contents.commentBefore){let b=i(a.contents.commentBefore);c.push(f.indentComment(b,""))}h.forceBlockIndent=!!a.comment,k=a.contents.comment}let b=k?void 0:()=>j=!0,l=e.stringify(a.contents,h,()=>k=null,b);k&&(l+=f.lineComment(l,"",i(k))),("|"===l[0]||">"===l[0])&&"---"===c[c.length-1]?c[c.length-1]=`--- ${l}`:c.push(l)}else c.push(e.stringify(a.contents,h));if(a.directives?.docEnd)if(a.comment){let b=i(a.comment);b.includes("\n")?(c.push("..."),c.push(f.indentComment(b,""))):c.push(`... ${b}`)}else c.push("...");else{let b=a.comment;b&&j&&(b=b.replace(/^\n+/,"")),b&&((!j||k)&&""!==c[c.length-1]&&c.push(""),c.push(f.indentComment(i(b),"")))}return c.join("\n")+"\n"}},12868:(a,b,c)=>{var d=c(60828).NAMESPACE,e=c(60828).tagNamePattern;function f(a,b){this.message=a,this.locator=b,Error.captureStackTrace&&Error.captureStackTrace(this,f)}function g(){}function h(a,b){return b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber,b}function i(a,b,c){for(var e=a.tagName,f=null,g=a.length;g--;){var h=a[g],i=h.qName,j=h.value,k=i.indexOf(":");if(k>0)var l=h.prefix=i.slice(0,k),m=i.slice(k+1),n="xmlns"===l&&m;else m=i,l=null,n="xmlns"===i&&"";h.localName=m,!1!==n&&(null==f&&(f={},c=Object.create(c)),c[n]=f[n]=j,h.uri=d.XMLNS,b.startPrefixMapping(n,j))}for(var g=a.length;g--;){var l=(h=a[g]).prefix;l&&("xml"===l&&(h.uri=d.XML),"xmlns"!==l&&(h.uri=c[l||""]))}var k=e.indexOf(":");k>0?(l=a.prefix=e.slice(0,k),m=a.localName=e.slice(k+1)):(l=null,m=a.localName=e);var o=a.uri=c[l||""];if(b.startElement(o,m,e,a),!a.closed)return a.currentNSMap=c,a.localNSMap=f,!0;if(b.endElement(o,m,e),f)for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&b.endPrefixMapping(l)}function j(){this.attributeNames={}}f.prototype=Error(),f.prototype.name=f.name,g.prototype={parse:function(a,b,c){var g=this.domBuilder;g.startDocument(),function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}(b,b={}),function(a,b,c,g,k){function l(a){var b,d=a.slice(1,-1);return Object.hasOwnProperty.call(c,d)?c[d]:"#"===d.charAt(0)?(b=parseInt(d.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((b-=65536)>>10),56320+(1023&b)):String.fromCharCode(b):(k.error("entity not found:"+a),a)}function m(b){if(b>u){var c=a.substring(u,b).replace(/&#?\w+;/g,l);r&&n(u),g.characters(c,0,b-u),u=b}}function n(b,c){for(;b>=p&&(c=q.exec(a));)p=(o=c.index)+c[0].length,r.lineNumber++;r.columnNumber=b-o+1}for(var o=0,p=0,q=/.*(?:\r\n?|\n)|.*$/g,r=g.locator,s=[{currentNSMap:b}],t={},u=0;;){try{var v=a.indexOf("<",u);if(v<0){if(!a.substr(u).match(/^\s*$/)){var w=g.doc,x=w.createTextNode(a.substr(u));w.appendChild(x),g.currentElement=x}return}switch(v>u&&m(v),a.charAt(v+1)){case"/":var y=a.indexOf(">",v+3),z=a.substring(v+2,y).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),A=s.pop();y<0?(z=a.substring(v+2).replace(/[\s<].*/,""),k.error("end tag name: "+z+" is not complete:"+A.tagName),y=v+1+z.length):z.match(/\s</)?(z=z.replace(/[\s<].*/,""),k.error("end tag name: "+z+" maybe not complete"),y=v+1+z.length):/[ \t\n\r]/.test(z)&&e.test(z.split(/[ \t\n\r]/)[0])&&k.error('end tag name is followed by whitespace and trailing content: "'+z+'"');var B=A.localNSMap,C=A.tagName==z;if(C||A.tagName&&A.tagName.toLowerCase()==z.toLowerCase()){if(g.endElement(A.uri,A.localName,z),B)for(var D in B)Object.prototype.hasOwnProperty.call(B,D)&&g.endPrefixMapping(D);C||k.fatalError("end tag name: "+z+" is not match the current start tagName:"+A.tagName)}else s.push(A);y++;break;case"?":r&&n(v),y=function(a,b,c){var d=a.indexOf("?>",b);if(d){var e=a.substring(b,d).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(e)return e[0].length,c.processingInstruction(e[1],e[2]),d+2}return -1}(a,v,g);break;case"!":r&&n(v),y=function(a,b,c,d){if("-"===a.charAt(b+2)){if("-"===a.charAt(b+3)){var e=a.indexOf("--\x3e",b+4);if(e>b)return c.comment(a,b+4,e-b-4),e+3;d.error("Unclosed comment")}}else{if("CDATA["==a.substr(b+3,6)){var e=a.indexOf("]]>",b+9);return c.startCDATA(),c.characters(a,b+9,e-b-9),c.endCDATA(),e+3}var f=function(a,b){var c,d=[],e=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(e.lastIndex=b,e.exec(a);c=e.exec(a);)if(d.push(c),c[1])return d}(a,b),g=f.length;if(g>1&&/!doctype/i.test(f[0][0])){var h=f[1][0],i=!1,j=!1;g>3&&(/^public$/i.test(f[2][0])?(i=f[3][0],j=g>4&&f[4][0]):/^system$/i.test(f[2][0])&&(j=f[3][0]));var k=f[g-1];return c.startDTD(h,i,j),c.endDTD(),k.index+k[0].length}}return -1}(a,v,g,k);break;default:r&&n(v);var E=new j,F=s[s.length-1].currentNSMap,y=function(a,b,c,e,f,g){function h(a,b,d){c.attributeNames.hasOwnProperty(a)&&g.fatalError("Attribute "+a+" redefined"),c.addValue(a,b.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,f),d)}for(var i,j,k=++b,l=0;;){var m=a.charAt(k);if(0===l&&"<"===m)throw Error("unexpected < in tag name: "+a.slice(b,k));switch(m){case"=":if(1===l)i=a.slice(b,k),l=3;else if(2===l)l=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===l||1===l)if(1===l&&(g.warning('attribute value must after "="'),i=a.slice(b,k)),b=k+1,(k=a.indexOf(m,b))>0)h(i,j=a.slice(b,k),b-1),l=5;else throw Error("attribute value no end '"+m+"' match");else if(4==l)h(i,j=a.slice(b,k),b),g.warning('attribute "'+i+'" missed start quot('+m+")!!"),b=k+1,l=5;else throw Error('attribute value must after "="');break;case"/":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:l=7,c.closed=!0;case 4:case 1:break;case 2:c.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return g.error("unexpected end of input"),0==l&&c.setTagName(a.slice(b,k)),k;case">":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:break;case 4:case 1:"/"===(j=a.slice(b,k)).slice(-1)&&(c.closed=!0,j=j.slice(0,-1));case 2:2===l&&(j=i),4==l?(g.warning('attribute "'+j+'" missed quot(")!'),h(i,j,b)):(d.isHTML(e[""])&&j.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+j+'" missed value!! "'+j+'" instead!!'),h(j,j,b));break;case 3:throw Error("attribute value missed!!")}return k;case"\x80":m=" ";default:if(m<=" ")switch(l){case 0:c.setTagName(a.slice(b,k)),l=6;break;case 1:i=a.slice(b,k),l=2;break;case 4:var j=a.slice(b,k);g.warning('attribute "'+j+'" missed quot(")!!'),h(i,j,b);case 5:l=6}else switch(l){case 2:c.tagName,d.isHTML(e[""])&&i.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+i+'" missed value!! "'+i+'" instead2!!'),h(i,i,b),b=k,l=1;break;case 5:g.warning('attribute space is required"'+i+'"!!');case 6:l=1,b=k;break;case 3:l=4,b=k;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}k++}}(a,v,E,F,l,k),G=E.length;if(!E.closed&&function(a,b,c,d){var e=d[c];return null==e&&((e=a.lastIndexOf("</"+c+">"))<b&&(e=a.lastIndexOf("</"+c)),d[c]=e),e<b}(a,y,E.tagName,t)&&(E.closed=!0,c.nbsp||k.warning("unclosed xml attribute")),r&&G){for(var H=h(r,{}),I=0;I<G;I++){var J=E[I];n(J.offset),J.locator=h(r,{})}g.locator=H,i(E,g,F)&&s.push(E),g.locator=r}else i(E,g,F)&&s.push(E);d.isHTML(E.uri)&&!E.closed?y=function(a,b,c,d,e){if(/^(?:script|textarea)$/i.test(c)){var f=a.indexOf("</"+c+">",b),g=a.substring(b+1,f);if(/[&<]/.test(g))return/^script$/i.test(c)||(g=g.replace(/&#?\w+;/g,d)),e.characters(g,0,g.length),f}return b+1}(a,y,E.tagName,l,g):y++}}catch(a){if(a instanceof f)throw a;k.error("element parse error: "+a),y=-1}y>u?u=y:m(Math.max(v,u)+1)}}(a,b,c,g,this.errorHandler),g.endDocument()}},j.prototype={setTagName:function(a){if(!e.test(a))throw Error("invalid tagName:"+a);this.tagName=a},addValue:function(a,b,c){if(!e.test(a))throw Error("invalid attribute:"+a);this.attributeNames[a]=this.length,this[this.length++]={qName:a,value:b,offset:c}},length:0,getLocalName:function(a){return this[a].localName},getLocator:function(a){return this[a].locator},getQName:function(a){return this[a].qName},getURI:function(a){return this[a].uri},getValue:function(a){return this[a].value}},b.XMLReader=g,b.ParseError=f},12965:function(a,b,c){(function(){var b,d,e,f,g=function(a,b){for(var c in b)h.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},h={}.hasOwnProperty;f=c(54117).isPlainObject,b=c(8142),e=c(83172),d=c(80224),a.exports=function(a){function b(a){b.__super__.constructor.call(this,null),this.name="?xml",a||(a={}),a.writer||(a.writer=new d),this.options=a,this.stringify=new e(a),this.isDocument=!0}return g(b,a),b.prototype.end=function(a){var b;return a?f(a)&&(b=a,a=this.options.writer.set(b)):a=this.options.writer,a.document(this)},b.prototype.toString=function(a){return this.options.writer.set(a).document(this)},b}(b)}).call(this)},13420:(a,b,c)=>{"use strict";a.exports={Promise:"u">typeof Promise?Promise:c(6163)}},14089:(a,b,c)=>{var d=c(86936),e=c(49472);b.parseFromString=function(a){var b=null,c=new d.DOMParser({errorHandler:function(a,c){b={level:a,message:c}}}).parseFromString(a);if(null===b)return c;throw Error(b.level+": "+b.message)},b.Node=e.Node},14233:(a,b,c)=>{a.exports=c(28354).deprecate},14610:(a,b,c)=>{"use strict";a.exports=g;var d=c(71848),e=Object.create(c(22362));function f(a,b){var c=this._transformState;c.transforming=!1;var d=c.writecb;if(!d)return this.emit("error",Error("write callback called multiple times"));c.writechunk=null,c.writecb=null,null!=b&&this.push(b),d(a);var e=this._readableState;e.reading=!1,(e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}function g(a){if(!(this instanceof g))return new g(a);d.call(this,a),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&("function"==typeof a.transform&&(this._transform=a.transform),"function"==typeof a.flush&&(this._flush=a.flush)),this.on("prefinish",h)}function h(){var a=this;"function"==typeof this._flush?this._flush(function(b,c){i(a,b,c)}):i(this,null,null)}function i(a,b,c){if(b)return a.emit("error",b);if(null!=c&&a.push(c),a._writableState.length)throw Error("Calling transform done when ws.length != 0");if(a._transformState.transforming)throw Error("Calling transform done when still transforming");return a.push(null)}e.inherits=c(50843),e.inherits(g,d),g.prototype.push=function(a,b){return this._transformState.needTransform=!1,d.prototype.push.call(this,a,b)},g.prototype._transform=function(a,b,c){throw Error("_transform() is not implemented")},g.prototype._write=function(a,b,c){var d=this._transformState;if(d.writecb=c,d.writechunk=a,d.writeencoding=b,!d.transforming){var e=this._readableState;(d.needTransform||e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}},g.prototype._read=function(a){var b=this._transformState;null!==b.writechunk&&b.writecb&&!b.transforming?(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform)):b.needTransform=!0},g.prototype._destroy=function(a,b){var c=this;d.prototype._destroy.call(this,a,function(a){b(a),c.emit("close")})}},14732:(a,b,c)=>{"use strict";var d=c(58952),e=c(41067),f=c(76281),g=c(45644),h=c(49642),i=c(13420),j=null;if(h.nodestream)try{j=c(7306)}catch(a){}function k(a,b,c){var g=b;switch(b){case"blob":case"arraybuffer":g="uint8array";break;case"base64":g="string"}try{this._internalType=g,this._outputType=b,this._mimeType=c,d.checkSupport(g),this._worker=a.pipe(new e(g)),a.lock()}catch(a){this._worker=new f("error"),this._worker.error(a)}}k.prototype={accumulate:function(a){var b;return b=this,new i.Promise(function(c,e){var f=[],h=b._internalType,i=b._outputType,j=b._mimeType;b.on("data",function(b,c){f.push(b),a&&a(c)}).on("error",function(a){f=[],e(a)}).on("end",function(){try{var a=function(a,b,c){switch(a){case"blob":return d.newBlob(d.transformTo("arraybuffer",b),c);case"base64":return g.encode(b);default:return d.transformTo(a,b)}}(i,function(a,b){var c,d=0,e=null,f=0;for(c=0;c<b.length;c++)f+=b[c].length;switch(a){case"string":return b.join("");case"array":return Array.prototype.concat.apply([],b);case"uint8array":for(e=new Uint8Array(f),c=0;c<b.length;c++)e.set(b[c],d),d+=b[c].length;return e;case"nodebuffer":return Buffer.concat(b);default:throw Error("concat : unsupported type '"+a+"'")}}(h,f),j);c(a)}catch(a){e(a)}f=[]}).resume()})},on:function(a,b){var c=this;return"data"===a?this._worker.on(a,function(a){b.call(c,a.data,a.meta)}):this._worker.on(a,function(){d.delay(b,arguments,c)}),this},resume:function(){return d.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(a){if(d.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw Error(this._outputType+" is not supported by this method");return new j(this,{objectMode:"nodebuffer"!==this._outputType},a)}},a.exports=k},14835:(a,b,c)=>{"use strict";var d,e,f,g=c(69167);function h(a){for(var b=a.length;--b>=0;)a[b]=0}var i=573,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],m=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],n=Array(576);h(n);var o=Array(60);h(o);var p=Array(512);h(p);var q=Array(256);h(q);var r=Array(29);h(r);var s=Array(30);function t(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length}function u(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b}function v(a){return a<256?p[a]:p[256+(a>>>7)]}function w(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function x(a,b,c){a.bi_valid>16-c?(a.bi_buf|=b<<a.bi_valid&65535,w(a,a.bi_buf),a.bi_buf=b>>16-a.bi_valid,a.bi_valid+=c-16):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)}function y(a,b,c){x(a,c[2*b],c[2*b+1])}function z(a,b){var c=0;do c|=1&a,a>>>=1,c<<=1;while(--b>0);return c>>>1}function A(a,b,c){var d,e,f=Array(16),g=0;for(d=1;d<=15;d++)f[d]=g=g+c[d-1]<<1;for(e=0;e<=b;e++){var h=a[2*e+1];0!==h&&(a[2*e]=z(f[h]++,h))}}function B(a){var b;for(b=0;b<286;b++)a.dyn_ltree[2*b]=0;for(b=0;b<30;b++)a.dyn_dtree[2*b]=0;for(b=0;b<19;b++)a.bl_tree[2*b]=0;a.dyn_ltree[512]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function C(a){a.bi_valid>8?w(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function D(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]}function E(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_len&&D(b,a.heap[e+1],a.heap[e],a.depth)&&e++,!D(b,d,a.heap[e],a.depth));)a.heap[c]=a.heap[e],c=e,e<<=1;a.heap[c]=d}function F(a,b,c){var d,e,f,g,h=0;if(0!==a.last_lit)do d=a.pending_buf[a.d_buf+2*h]<<8|a.pending_buf[a.d_buf+2*h+1],e=a.pending_buf[a.l_buf+h],h++,0===d?y(a,e,b):(y(a,(f=q[e])+256+1,b),0!==(g=j[f])&&x(a,e-=r[f],g),y(a,f=v(--d),c),0!==(g=k[f])&&x(a,d-=s[f],g));while(h<a.last_lit);y(a,256,b)}function G(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.stat_desc.has_stree,j=b.stat_desc.elems,k=-1;for(a.heap_len=0,a.heap_max=i,c=0;c<j;c++)0!==f[2*c]?(a.heap[++a.heap_len]=k=c,a.depth[c]=0):f[2*c+1]=0;for(;a.heap_len<2;)f[2*(e=a.heap[++a.heap_len]=k<2?++k:0)]=1,a.depth[e]=0,a.opt_len--,h&&(a.static_len-=g[2*e+1]);for(b.max_code=k,c=a.heap_len>>1;c>=1;c--)E(a,f,c);e=j;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],E(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,E(a,f,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],function(a,b){var c,d,e,f,g,h,j=b.dyn_tree,k=b.max_code,l=b.stat_desc.static_tree,m=b.stat_desc.has_stree,n=b.stat_desc.extra_bits,o=b.stat_desc.extra_base,p=b.stat_desc.max_length,q=0;for(f=0;f<=15;f++)a.bl_count[f]=0;for(j[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;c<i;c++)(f=j[2*j[2*(d=a.heap[c])+1]+1]+1)>p&&(f=p,q++),j[2*d+1]=f,!(d>k)&&(a.bl_count[f]++,g=0,d>=o&&(g=n[d-o]),h=j[2*d],a.opt_len+=h*(f+g),m&&(a.static_len+=h*(l[2*d+1]+g)));if(0!==q){do{for(f=p-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[p]--,q-=2}while(q>0);for(f=p;0!==f;f--)for(d=a.bl_count[f];0!==d;)!((e=a.heap[--c])>k)&&(j[2*e+1]!==f&&(a.opt_len+=(f-j[2*e+1])*j[2*e],j[2*e+1]=f),d--)}}(a,b),A(f,k,a.bl_count)}function H(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[(c+1)*2+1]=65535,d=0;d<=c;d++)e=g,g=b[(d+1)*2+1],++h<i&&e===g||(h<j?a.bl_tree[2*e]+=h:0!==e?(e!==f&&a.bl_tree[2*e]++,a.bl_tree[32]++):h<=10?a.bl_tree[34]++:a.bl_tree[36]++,h=0,f=e,0===g?(i=138,j=3):e===g?(i=6,j=3):(i=7,j=4))}function I(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),d=0;d<=c;d++)if(e=g,g=b[(d+1)*2+1],!(++h<i)||e!==g){if(h<j)do y(a,e,a.bl_tree);while(0!=--h);else 0!==e?(e!==f&&(y(a,e,a.bl_tree),h--),y(a,16,a.bl_tree),x(a,h-3,2)):h<=10?(y(a,17,a.bl_tree),x(a,h-3,3)):(y(a,18,a.bl_tree),x(a,h-11,7));h=0,f=e,0===g?(i=138,j=3):e===g?(i=6,j=3):(i=7,j=4)}}h(s);var J=!1;function K(a,b,c,d){x(a,0+ +!!d,3),C(a),w(a,c),w(a,~c),g.arraySet(a.pending_buf,a.window,b,c,a.pending),a.pending+=c}b._tr_init=function(a){J||(!function(){var a,b,c,g,h,i=Array(16);for(g=0,c=0;g<28;g++)for(r[g]=c,a=0;a<1<<j[g];a++)q[c++]=g;for(q[c-1]=g,h=0,g=0;g<16;g++)for(s[g]=h,a=0;a<1<<k[g];a++)p[h++]=g;for(h>>=7;g<30;g++)for(s[g]=h<<7,a=0;a<1<<k[g]-7;a++)p[256+h++]=g;for(b=0;b<=15;b++)i[b]=0;for(a=0;a<=143;)n[2*a+1]=8,a++,i[8]++;for(;a<=255;)n[2*a+1]=9,a++,i[9]++;for(;a<=279;)n[2*a+1]=7,a++,i[7]++;for(;a<=287;)n[2*a+1]=8,a++,i[8]++;for(A(n,287,i),a=0;a<30;a++)o[2*a+1]=5,o[2*a]=z(a,5);d=new t(n,j,257,286,15),e=new t(o,k,0,30,15),f=new t([],l,0,19,7)}(),J=!0),a.l_desc=new u(a.dyn_ltree,d),a.d_desc=new u(a.dyn_dtree,e),a.bl_desc=new u(a.bl_tree,f),a.bi_buf=0,a.bi_valid=0,B(a)},b._tr_stored_block=K,b._tr_flush_block=function(a,b,c,d){var e,f,g=0;a.level>0?(2===a.strm.data_type&&(a.strm.data_type=function(a){var b,c=0xf3ffc07f;for(b=0;b<=31;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return 0;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return 1;for(b=32;b<256;b++)if(0!==a.dyn_ltree[2*b])return 1;return 0}(a)),G(a,a.l_desc),G(a,a.d_desc),g=function(a){var b;for(H(a,a.dyn_ltree,a.l_desc.max_code),H(a,a.dyn_dtree,a.d_desc.max_code),G(a,a.bl_desc),b=18;b>=3&&0===a.bl_tree[2*m[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}(a),e=a.opt_len+3+7>>>3,(f=a.static_len+3+7>>>3)<=e&&(e=f)):e=f=c+5,c+4<=e&&-1!==b?K(a,b,c,d):4===a.strategy||f===e?(x(a,2+ +!!d,3),F(a,n,o)):(x(a,4+ +!!d,3),function(a,b,c,d){var e;for(x(a,b-257,5),x(a,c-1,5),x(a,d-4,4),e=0;e<d;e++)x(a,a.bl_tree[2*m[e]+1],3);I(a,a.dyn_ltree,b-1),I(a,a.dyn_dtree,c-1)}(a,a.l_desc.max_code+1,a.d_desc.max_code+1,g+1),F(a,a.dyn_ltree,a.dyn_dtree)),B(a),d&&C(a)},b._tr_tally=function(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[(q[c]+256+1)*2]++,a.dyn_dtree[2*v(b)]++),a.last_lit===a.lit_bufsize-1},b._tr_align=function(a){x(a,2,3),y(a,256,n),16===a.bi_valid?(w(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}},15325:(a,b,c)=>{"use strict";var d=c(73315),e=c(26701),f=c(30598),g=c(71397),h=c(86677),i=c(37054),j=c(69374);function k(a,b,c,d,e,f){let g="block-map"===c.type?h.resolveBlockMap(a,b,c,d,f):"block-seq"===c.type?i.resolveBlockSeq(a,b,c,d,f):j.resolveFlowCollection(a,b,c,d,f),k=g.constructor;return"!"===e||e===k.tagName?g.tag=k.tagName:e&&(g.tag=e),g}b.composeCollection=function(a,b,c,h,i){let j=h.tag,l=j?b.directives.tagName(j.source,a=>i(j,"TAG_RESOLVE_FAILED",a)):null;if("block-seq"===c.type){let{anchor:a,newlineAfterProp:b}=h,c=a&&j?a.offset>j.offset?a:j:a??j;c&&(!b||b.offset<c.offset)&&i(c,"MISSING_CHAR","Missing newline after block sequence props")}let m="block-map"===c.type?"map":"block-seq"===c.type?"seq":"{"===c.start.source?"map":"seq";if(!j||!l||"!"===l||l===f.YAMLMap.tagName&&"map"===m||l===g.YAMLSeq.tagName&&"seq"===m)return k(a,b,c,i,l);let n=b.schema.tags.find(a=>a.tag===l&&a.collection===m);if(!n){let d=b.schema.knownTags[l];if(d?.collection!==m)return d?i(j,"BAD_COLLECTION_TYPE",`${d.tag} used for ${m} collection, but expects ${d.collection??"scalar"}`,!0):i(j,"TAG_RESOLVE_FAILED",`Unresolved tag: ${l}`,!0),k(a,b,c,i,l);b.schema.tags.push(Object.assign({},d,{default:!1})),n=d}let o=k(a,b,c,i,l,n),p=n.resolve?.(o,a=>i(j,"TAG_RESOLVE_FAILED",a),b.options)??o,q=d.isNode(p)?p:new e.Scalar(p);return q.range=o.range,q.tag=l,n?.format&&(q.format=n.format),q}},15434:(a,b,c)=>{"use strict";var d=c(20577);function e(a,b){a.emit("error",b)}a.exports={destroy:function(a,b){var c=this,f=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return f||g?b?b(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,d.nextTick(e,this,a)):d.nextTick(e,this,a)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(a){!b&&a?c._writableState?c._writableState.errorEmitted||(c._writableState.errorEmitted=!0,d.nextTick(e,c,a)):d.nextTick(e,c,a):b&&b(a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},16312:(a,b,c)=>{"use strict";var d=c(58952),e=c(76281),f=c(30212),g=c(56222),h=c(49505),i=function(a,b){var c,d="";for(c=0;c<b;c++)d+=String.fromCharCode(255&a),a>>>=8;return d},j=function(a,b){var c=a;return a||(c=b?16893:33204),(65535&c)<<16},k=function(a,b,c,e,k,l){var m,n,o=a.file,p=a.compression,q=l!==f.utf8encode,r=d.transformTo("string",l(o.name)),s=d.transformTo("string",f.utf8encode(o.name)),t=o.comment,u=d.transformTo("string",l(t)),v=d.transformTo("string",f.utf8encode(t)),w=s.length!==o.name.length,x=v.length!==t.length,y="",z="",A="",B=o.dir,C=o.date,D={crc32:0,compressedSize:0,uncompressedSize:0};(!b||c)&&(D.crc32=a.crc32,D.compressedSize=a.compressedSize,D.uncompressedSize=a.uncompressedSize);var E=0;b&&(E|=8),!q&&(w||x)&&(E|=2048);var F=0,G=0;(B&&(F|=16),"UNIX"===k)?(G=798,F|=j(o.unixPermissions,B)):(G=20,F|=63&(o.dosPermissions||0)),m=(C.getUTCHours()<<6|C.getUTCMinutes())<<5|C.getUTCSeconds()/2,n=(C.getUTCFullYear()-1980<<4|C.getUTCMonth()+1)<<5|C.getUTCDate(),w&&(z=i(1,1)+i(g(r),4)+s,y+="up"+i(z.length,2)+z),x&&(A=i(1,1)+i(g(u),4)+v,y+="uc"+i(A.length,2)+A);var H="";return H+="\n\0",H+=i(E,2),H+=p.magic,H+=i(m,2),H+=i(n,2),H+=i(D.crc32,4),H+=i(D.compressedSize,4),H+=i(D.uncompressedSize,4),H+=i(r.length,2),H+=i(y.length,2),{fileRecord:h.LOCAL_FILE_HEADER+H+r+y,dirRecord:h.CENTRAL_FILE_HEADER+i(G,2)+H+i(u.length,2)+"\0\0\0\0"+i(F,4)+i(e,4)+r+y+u}},l=function(a,b,c,e,f){var g=d.transformTo("string",f(e));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(a,2)+i(a,2)+i(b,4)+i(c,4)+i(g.length,2)+g},m=function(a){return h.DATA_DESCRIPTOR+i(a.crc32,4)+i(a.compressedSize,4)+i(a.uncompressedSize,4)};function n(a,b,c,d){e.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=c,this.encodeFileName=d,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}d.inherits(n,e),n.prototype.push=function(a){var b=a.meta.percent||0,c=this.entriesCount,d=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,e.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:c?(b+100*(c-d-1))/c:100}}))},n.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var b=this.streamFiles&&!a.file.dir;if(b){var c=k(a,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:c.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(a){this.accumulate=!1;var b=this.streamFiles&&!a.file.dir,c=k(a,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(c.dirRecord),b)this.push({data:m(a),meta:{percent:100}});else for(this.push({data:c.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var a=this.bytesWritten,b=0;b<this.dirRecords.length;b++)this.push({data:this.dirRecords[b],meta:{percent:100}});var c=this.bytesWritten-a,d=l(this.dirRecords.length,c,a,this.zipComment,this.encodeFileName);this.push({data:d,meta:{percent:100}})},n.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},n.prototype.registerPrevious=function(a){this._sources.push(a);var b=this;return a.on("data",function(a){b.processChunk(a)}),a.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),a.on("error",function(a){b.error(a)}),this},n.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},n.prototype.error=function(a){var b=this._sources;if(!e.prototype.error.call(this,a))return!1;for(var c=0;c<b.length;c++)try{b[c].error(a)}catch(a){}return!0},n.prototype.lock=function(){e.prototype.lock.call(this);for(var a=this._sources,b=0;b<a.length;b++)a[b].lock()},a.exports=n},16426:function(a,b,c){(function(){var b,d,e,f,g,h,i=function(a,b){for(var c in b)j.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},j={}.hasOwnProperty;g=(h=c(54117)).isObject,f=h.isFunction,e=h.getValue,d=c(8142),b=c(48514),a.exports=function(a){function c(a,b,d){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(b),this.attributes={},null!=d&&this.attribute(d),a.isDocument&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this)}return i(c,a),c.prototype.clone=function(){var a,b,c,d;for(b in(c=Object.create(this)).isRoot&&(c.documentObject=null),c.attributes={},d=this.attributes)j.call(d,b)&&(a=d[b],c.attributes[b]=a.clone());return c.children=[],this.children.forEach(function(a){var b;return(b=a.clone()).parent=c,c.children.push(b)}),c},c.prototype.attribute=function(a,c){var d,h;if(null!=a&&(a=e(a)),g(a))for(d in a)j.call(a,d)&&(h=a[d],this.attribute(d,h));else f(c)&&(c=c.apply()),this.options.skipNullAttributes&&null==c||(this.attributes[a]=new b(this,a,c));return this},c.prototype.removeAttribute=function(a){var b,c,d;if(null==a)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(a=e(a)))for(c=0,d=a.length;c<d;c++)b=a[c],delete this.attributes[b];else delete this.attributes[a];return this},c.prototype.toString=function(a){return this.options.writer.set(a).element(this)},c.prototype.att=function(a,b){return this.attribute(a,b)},c.prototype.a=function(a,b){return this.attribute(a,b)},c}(d)}).call(this)},16646:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a){c.__super__.constructor.call(this,a),this.isDummy=!0}return b(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return""},c}(c(8142))}).call(this)},16734:(a,b,c)=>{var d=c(84906);b.writer=function(a){return(a=a||{}).prettyPrint?function(){var a=0,b=[],c=!0,g=!1,h=f();function i(){if(g=!1,!c&&(0===b.length||e[b[b.length-1]])&&!j()){h._append("\n");for(var d=0;d<a;d++)h._append(" ")}}function j(){return d.some(b,function(a){return"pre"===a})}return{asString:h.asString,open:function(d,f){e[d]&&i(),b.push(d),h.open(d,f),e[d]&&a++,c=!1},close:function(c){e[c]&&(a--,i()),b.pop(),h.close(c)},text:function(a){g||(i(),g=!0);var b=j()?a:a.replace("\n","\n ");h.text(b)},selfClosing:function(a,b){i(),h.selfClosing(a,b)}}}():f()};var e={div:!0,p:!0,ul:!0,li:!0};function f(){var a=[];function b(a){return d.map(a,function(a,b){return" "+b+'="'+a.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+'"'}).join("")}return{asString:function(){return a.join("")},open:function(c,d){var e=b(d);a.push("<"+c+e+">")},close:function(b){a.push("</"+b+">")},text:function(b){a.push(b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))},selfClosing:function(c,d){var e=b(d);a.push("<"+c+e+" />")},_append:function(b){a.push(b)}}}},16892:(a,b,c)=>{"use strict";var d=c(73315),e=c(26701);let f={identify:a=>"<<"===a||"symbol"==typeof a&&"<<"===a.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new e.Scalar(Symbol("<<")),{addToJSMap:g}),stringify:()=>"<<"};function g(a,b,c){let e=i(a,c);if(d.isSeq(e))for(let c of e.items)h(a,b,c);else if(Array.isArray(e))for(let c of e)h(a,b,c);else h(a,b,e)}function h(a,b,c){let e=i(a,c);if(!d.isMap(e))throw Error("Merge sources must be maps or map aliases");for(let[c,d]of e.toJSON(null,a,Map))b instanceof Map?b.has(c)||b.set(c,d):b instanceof Set?b.add(c):Object.prototype.hasOwnProperty.call(b,c)||Object.defineProperty(b,c,{value:d,writable:!0,enumerable:!0,configurable:!0});return b}function i(a,b){return a&&d.isAlias(b)?b.resolve(a.doc,a):b}b.addMergeToJSMap=g,b.isMergeKey=(a,b)=>(f.identify(b)||d.isScalar(b)&&(!b.type||b.type===e.Scalar.PLAIN)&&f.identify(b.value))&&a?.doc.schema.tags.some(a=>a.tag===f.tag&&a.default),b.merge=f},17390:(a,b,c)=>{"use strict";var d=c(40831),e=c(58952),f=c(49505),g=c(21906),h=c(49642);function i(a){this.files=[],this.loadOptions=a}i.prototype={checkSignature:function(a){if(!this.reader.readAndCheckSignature(a)){this.reader.index-=4;var b=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+e.pretty(b)+", expected "+e.pretty(a)+")")}},isSignature:function(a,b){var c=this.reader.index;this.reader.setIndex(a);var d=this.reader.readString(4);return this.reader.setIndex(c),d===b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var a=this.reader.readData(this.zipCommentLength),b=h.uint8array?"uint8array":"array",c=e.transformTo(b,a);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var a,b,c,d=this.zip64EndOfCentralSize-44;0<d;)a=this.reader.readInt(2),b=this.reader.readInt(4),c=this.reader.readData(b),this.zip64ExtensibleData[a]={id:a,length:b,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var a,b;for(a=0;a<this.files.length;a++)b=this.files[a],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(f.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var a;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(f.CENTRAL_FILE_HEADER);)(a=new g({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(a);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var a=this.reader.lastIndexOfSignature(f.CENTRAL_DIRECTORY_END);if(a<0){if(!this.isSignature(0,f.LOCAL_FILE_HEADER))throw Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");throw Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(a);var b=a;if(this.checkSignature(f.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===e.MAX_VALUE_16BITS||this.diskWithCentralDirStart===e.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===e.MAX_VALUE_16BITS||this.centralDirRecords===e.MAX_VALUE_16BITS||this.centralDirSize===e.MAX_VALUE_32BITS||this.centralDirOffset===e.MAX_VALUE_32BITS){if(this.zip64=!0,(a=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(a),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,f.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var d=b-c;if(d>0)this.isSignature(b,f.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(a){this.reader=d(a)},load:function(a){this.prepareReader(a),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},a.exports=i},17518:(a,b)=>{"use strict";class c{constructor(){this.lineStarts=[],this.addNewLine=a=>this.lineStarts.push(a),this.linePos=a=>{let b=0,c=this.lineStarts.length;for(;b<c;){let d=b+c>>1;this.lineStarts[d]<a?b=d+1:c=d}if(this.lineStarts[b]===a)return{line:b+1,col:1};if(0===b)return{line:0,col:a};let d=this.lineStarts[b-1];return{line:b,col:a-d+1}}}}b.LineCounter=c},18092:(a,b,c)=>{var d=c(27910);"disable"===process.env.READABLE_STREAM&&d?(a.exports=d,(b=a.exports=d.Readable).Readable=d.Readable,b.Writable=d.Writable,b.Duplex=d.Duplex,b.Transform=d.Transform,b.PassThrough=d.PassThrough,b.Stream=d):((b=a.exports=c(38418)).Stream=d||b,b.Readable=b,b.Writable=c(49358),b.Duplex=c(71848),b.Transform=c(14610),b.PassThrough=c(80052))},18143:(a,b,c)=>{"use strict";var d=c(65695);let e=a=>"bigint"==typeof a||Number.isInteger(a);function f(a,b,c,{intAsBigInt:d}){let e=a[0];if(("-"===e||"+"===e)&&(b+=1),a=a.substring(b).replace(/_/g,""),d){switch(c){case 2:a=`0b${a}`;break;case 8:a=`0o${a}`;break;case 16:a=`0x${a}`}let b=BigInt(a);return"-"===e?BigInt(-1)*b:b}let g=parseInt(a,c);return"-"===e?-1*g:g}function g(a,b,c){let{value:f}=a;if(e(f)){let a=f.toString(b);return f<0?"-"+c+a.substr(1):c+a}return d.stringifyNumber(a)}b.int={identify:e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(a,b,c)=>f(a,0,10,c),stringify:d.stringifyNumber},b.intBin={identify:e,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(a,b,c)=>f(a,2,2,c),stringify:a=>g(a,2,"0b")},b.intHex={identify:e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(a,b,c)=>f(a,2,16,c),stringify:a=>g(a,16,"0x")},b.intOct={identify:e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(a,b,c)=>f(a,1,8,c),stringify:a=>g(a,8,"0")}},18187:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e){var f=c(22418),g=f.tryCatch,h=f.errorObj,i=a._async;a.prototype.break=a.prototype.cancel=function(){if(!e.cancellation())return this._warn("cancellation is disabled");for(var a=this,b=a;a._isCancellable();){if(!a._cancelBy(b)){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}var c=a._cancellationParent;if(null!=c&&c._isCancellable())a._isFollowing()&&a._followee().cancel(),a._setWillBeCancelled(),b=a,a=c;else{a._isFollowing()?a._followee().cancel():a._cancelBranched();break}}},a.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},a.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},a.prototype._cancelBy=function(a){return a===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},a.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},a.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),i.invoke(this._cancelPromises,this,void 0))},a.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},a.prototype._unsetOnCancel=function(){this._onCancelField=void 0},a.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},a.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},a.prototype._doInvokeOnCancel=function(a,b){if(f.isArray(a))for(var c=0;c<a.length;++c)this._doInvokeOnCancel(a[c],b);else if(void 0!==a)if("function"==typeof a){if(!b){var d=g(a).call(this._boundValue());d===h&&(this._attachExtraTrace(d.e),i.throwLater(d.e))}}else a._resultCancelled(this)},a.prototype._invokeOnCancel=function(){var a=this._onCancel();this._unsetOnCancel(),i.invoke(this._doInvokeOnCancel,this,a)},a.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},a.prototype._resultCancelled=function(){this.cancel()}}},18403:(a,b,c)=>{var d=c(84906);b.Element=f,b.element=function(a,b,c){return new f(a,b,c)},b.text=function(a){return{type:"text",value:a}};var e=b.emptyElement={first:function(){return null},firstOrEmpty:function(){return e},attributes:{},children:[]};function f(a,b,c){this.type="element",this.name=a,this.attributes=b||{},this.children=c||[]}f.prototype.first=function(a){return d.find(this.children,function(b){return b.name===a})},f.prototype.firstOrEmpty=function(a){return this.first(a)||e},f.prototype.getElementsByTagName=function(a){return h(d.filter(this.children,function(b){return b.name===a}))},f.prototype.text=function(){if(0===this.children.length)return"";if(1!==this.children.length||"text"!==this.children[0].type)throw Error("Not implemented");return this.children[0].value};var g={getElementsByTagName:function(a){return h(d.flatten(this.map(function(b){return b.getElementsByTagName(a)},!0)))}};function h(a){return d.extend(a,g)}},19173:(a,b,c)=>{"use strict";var d=c(58952),e=c(13420),f=c(30212),g=c(17390),h=c(53933),i=c(39531);a.exports=function(a,b){var c=this;return(b=d.extend(b||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),i.isNode&&i.isStream(a))?e.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):d.prepareContent("the loaded zip file",a,!0,b.optimizedBinaryString,b.base64).then(function(a){var c=new g(b);return c.load(a),c}).then(function(a){var c=[e.Promise.resolve(a)],d=a.files;if(b.checkCRC32)for(var f=0;f<d.length;f++)c.push(function(a){return new e.Promise(function(b,c){var d=a.decompressed.getContentWorker().pipe(new h);d.on("error",function(a){c(a)}).on("end",function(){d.streamInfo.crc32!==a.decompressed.crc32?c(Error("Corrupted zip : CRC32 mismatch")):b()}).resume()})}(d[f]));return e.Promise.all(c)}).then(function(a){for(var e=a.shift(),f=e.files,g=0;g<f.length;g++){var h=f[g],i=h.fileNameStr,j=d.resolve(h.fileNameStr);c.file(j,h.decompressed,{binary:!0,optimizedBinaryString:!0,date:h.date,dir:h.dir,comment:h.fileCommentStr.length?h.fileCommentStr:null,unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions,createFolders:b.createFolders}),h.dir||(c.file(j).unsafeOriginalName=i)}return e.zipComment.length&&(c.comment=e.zipComment),c})}},19272:a=>{"use strict";a.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},19435:(a,b,c)=>{var d=c(84906),e=c(26932);function f(a){return new g(a.map(function(a){return d.isString(a)?h(a):a}))}function g(a){this._elements=a}function h(a,b,c){return new i(a,b,c=c||{})}function i(a,b,c){var e={};d.isArray(a)?(a.forEach(function(a){e[a]=!0}),a=a[0]):e[a]=!0,this.tagName=a,this.tagNames=e,this.attributes=b||{},this.fresh=c.fresh,this.separator=c.separator}b.topLevelElement=function(a,b){return f([h(a,b,{fresh:!0})])},b.elements=f,b.element=h,g.prototype.wrap=function(a){for(var b=a(),c=this._elements.length-1;c>=0;c--)b=this._elements[c].wrapNodes(b);return b},i.prototype.matchesElement=function(a){return this.tagNames[a.tagName]&&d.isEqual(this.attributes||{},a.attributes||{})},i.prototype.wrap=function(a){return this.wrapNodes(a())},i.prototype.wrapNodes=function(a){return[e.elementWithTag(this,a)]},b.empty=f([]),b.ignore={wrap:function(){return[]}}},19572:(a,b,c)=>{b.O=function(a){var b=a.bodyReader;return{convertXmlToDocument:function(c){var f=c.first("w:body");if(null==f)throw Error("Could not find the body element: are you sure this is a docx file?");var g=b.readXmlElements(f.children).map(function(b){return new d.Document(b,{notes:a.notes,comments:a.comments})});return new e(g.value,g.messages)}}};var d=c(77880),e=c(6560).Result},20577:a=>{"use strict";"u"<typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?a.exports={nextTick:function(a,b,c,d){if("function"!=typeof a)throw TypeError('"callback" argument must be a function');var e,f,g=arguments.length;switch(g){case 0:case 1:return process.nextTick(a);case 2:return process.nextTick(function(){a.call(null,b)});case 3:return process.nextTick(function(){a.call(null,b,c)});case 4:return process.nextTick(function(){a.call(null,b,c,d)});default:for(e=Array(g-1),f=0;f<e.length;)e[f++]=arguments[f];return process.nextTick(function(){a.apply(null,e)})}}}:a.exports=process},20710:(a,b,c)=>{"use strict";var d=c(65695);let e=a=>"bigint"==typeof a||Number.isInteger(a),f=(a,b,c,{intAsBigInt:d})=>d?BigInt(a):parseInt(a.substring(b),c);function g(a,b,c){let{value:f}=a;return e(f)&&f>=0?c+f.toString(b):d.stringifyNumber(a)}b.int={identify:e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(a,b,c)=>f(a,0,10,c),stringify:d.stringifyNumber},b.intHex={identify:a=>e(a)&&a>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(a,b,c)=>f(a,2,16,c),stringify:a=>g(a,16,"0x")},b.intOct={identify:a=>e(a)&&a>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(a,b,c)=>f(a,2,8,c),stringify:a=>g(a,8,"0o")}},20795:(a,b,c)=>{"use strict";var d=c(26701),e=c(69273),f=c(51490);function g(a){return"bigint"==typeof a||Number.isInteger(a)}let h=({value:a})=>JSON.stringify(a),i=[{identify:a=>"string"==typeof a,default:!0,tag:"tag:yaml.org,2002:str",resolve:a=>a,stringify:h},{identify:a=>null==a,createNode:()=>new d.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:h},{identify:a=>"boolean"==typeof a,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:a=>"true"===a,stringify:h},{identify:g,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(a,b,{intAsBigInt:c})=>c?BigInt(a):parseInt(a,10),stringify:({value:a})=>g(a)?a.toString():JSON.stringify(a)},{identify:a=>"number"==typeof a,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:a=>parseFloat(a),stringify:h}];b.schema=[e.map,f.seq].concat(i,{default:!0,tag:"",test:/^/,resolve:(a,b)=>(b(`Unresolved plain scalar ${JSON.stringify(a)}`),a)})},21476:(a,b,c)=>{"use strict";var d=c(76281);b.STORE={magic:"\0\0",compressWorker:function(){return new d("STORE compression")},uncompressWorker:function(){return new d("STORE decompression")}},b.DEFLATE=c(30137)},21609:a=>{"use strict";function b(a){return"/"===a.charAt(0)}function c(a){var b=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(a),c=b[1]||"",d=!!(c&&":"!==c.charAt(1));return!!(b[2]||d)}a.exports="win32"===process.platform?c:b,a.exports.posix=b,a.exports.win32=c},21667:a=>{"use strict";a.exports=function(a){var b=!1,c=[];function d(){this._trace=new d.CapturedTrace(e())}function e(){var a=c.length-1;if(a>=0)return c[a]}return a.prototype._promiseCreated=function(){},a.prototype._pushContext=function(){},a.prototype._popContext=function(){return null},a._peekContext=a.prototype._peekContext=function(){},d.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,c.push(this._trace))},d.prototype._popContext=function(){if(void 0!==this._trace){var a=c.pop(),b=a._promiseCreated;return a._promiseCreated=null,b}return null},d.CapturedTrace=null,d.create=function(){if(b)return new d},d.deactivateLongStackTraces=function(){},d.activateLongStackTraces=function(){var c=a.prototype._pushContext,f=a.prototype._popContext,g=a._peekContext,h=a.prototype._peekContext,i=a.prototype._promiseCreated;d.deactivateLongStackTraces=function(){a.prototype._pushContext=c,a.prototype._popContext=f,a._peekContext=g,a.prototype._peekContext=h,a.prototype._promiseCreated=i,b=!1},b=!0,a.prototype._pushContext=d.prototype._pushContext,a.prototype._popContext=d.prototype._popContext,a._peekContext=a.prototype._peekContext=e,a.prototype._promiseCreated=function(){var a=this._peekContext();a&&null==a._promiseCreated&&(a._promiseCreated=this)}},d}},21906:(a,b,c)=>{"use strict";var d=c(40831),e=c(58952),f=c(84127),g=c(56222),h=c(30212),i=c(21476),j=c(49642),k=function(a){for(var b in i)if(Object.prototype.hasOwnProperty.call(i,b)&&i[b].magic===a)return i[b];return null};function l(a,b){this.options=a,this.loadOptions=b}l.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(a){var b,c;if(a.skip(22),this.fileNameLength=a.readInt(2),c=a.readInt(2),this.fileName=a.readData(this.fileNameLength),a.skip(c),-1===this.compressedSize||-1===this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(b=k(this.compressionMethod)))throw Error("Corrupted zip : compression "+e.pretty(this.compressionMethod)+" unknown (inner file : "+e.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,b,a.readData(this.compressedSize))},readCentralPart:function(a){this.versionMadeBy=a.readInt(2),a.skip(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4);var b=a.readInt(2);if(this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");a.skip(b),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var a=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===a&&(this.dosPermissions=63&this.externalFileAttributes),3===a&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var a=d(this.extraFields[1].value);this.uncompressedSize===e.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===e.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===e.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===e.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4))}},readExtraFields:function(a){var b,c,d,e=a.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});a.index+4<e;)b=a.readInt(2),c=a.readInt(2),d=a.readData(c),this.extraFields[b]={id:b,length:c,value:d};a.setIndex(e)},handleUTF8:function(){var a=j.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(null!==b)this.fileNameStr=b;else{var c=e.transformTo(a,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(c)}var d=this.findExtraFieldUnicodeComment();if(null!==d)this.fileCommentStr=d;else{var f=e.transformTo(a,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(f)}}},findExtraFieldUnicodePath:function(){var a=this.extraFields[28789];if(a){var b=d(a.value);return 1!==b.readInt(1)||g(this.fileName)!==b.readInt(4)?null:h.utf8decode(b.readData(a.length-5))}return null},findExtraFieldUnicodeComment:function(){var a=this.extraFields[25461];if(a){var b=d(a.value);return 1!==b.readInt(1)||g(this.fileComment)!==b.readInt(4)?null:h.utf8decode(b.readData(a.length-5))}return null}},a.exports=l},22362:(a,b,c)=>{function d(a){return Object.prototype.toString.call(a)}b.isArray=function(a){return Array.isArray?Array.isArray(a):"[object Array]"===d(a)},b.isBoolean=function(a){return"boolean"==typeof a},b.isNull=function(a){return null===a},b.isNullOrUndefined=function(a){return null==a},b.isNumber=function(a){return"number"==typeof a},b.isString=function(a){return"string"==typeof a},b.isSymbol=function(a){return"symbol"==typeof a},b.isUndefined=function(a){return void 0===a},b.isRegExp=function(a){return"[object RegExp]"===d(a)},b.isObject=function(a){return"object"==typeof a&&null!==a},b.isDate=function(a){return"[object Date]"===d(a)},b.isError=function(a){return"[object Error]"===d(a)||a instanceof Error},b.isFunction=function(a){return"function"==typeof a},b.isPrimitive=function(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||void 0===a},b.isBuffer=c(79428).Buffer.isBuffer},22418:function(a,b,c){"use strict";var d,e,f=c(3987),g="u"<typeof navigator,h={e:{}},i="u">typeof self?self:"u">typeof window?window:"u">typeof global?global:void 0!==this?this:null;function j(){try{var a=e;return e=null,a.apply(this,arguments)}catch(a){return h.e=a,h}}function k(a){return null==a||!0===a||!1===a||"string"==typeof a||"number"==typeof a}function l(a,b,c){return k(a)||f.defineProperty(a,b,{value:c,configurable:!0,enumerable:!1,writable:!0}),a}var m=function(){var a=[Array.prototype,Object.prototype,Function.prototype],b=function(b){for(var c=0;c<a.length;++c)if(a[c]===b)return!0;return!1};if(f.isES5){var c=Object.getOwnPropertyNames;return function(a){for(var d,e=[],g=Object.create(null);null!=a&&!b(a);){try{d=c(a)}catch(a){break}for(var h=0;h<d.length;++h){var i=d[h];if(!g[i]){g[i]=!0;var j=Object.getOwnPropertyDescriptor(a,i);null!=j&&null==j.get&&null==j.set&&e.push(i)}}a=f.getPrototypeOf(a)}return e}}var d={}.hasOwnProperty;return function(c){if(b(c))return[];var e=[];a:for(var f in c)if(d.call(c,f))e.push(f);else{for(var g=0;g<a.length;++g)if(d.call(a[g],f))continue a;e.push(f)}return e}}(),n=/this\s*\.\s*\S+\s*=/,o=/^[a-z$_][a-z$_0-9]*$/i;function p(a){try{return a+""}catch(a){return"[no string representation]"}}function q(a){return null!==a&&"object"==typeof a&&"string"==typeof a.message&&"string"==typeof a.name}function r(a){return q(a)&&f.propertyIsWritable(a,"stack")}var s="stack"in Error()?function(a){return r(a)?a:Error(p(a))}:function(a){if(r(a))return a;try{throw Error(p(a))}catch(a){return a}};function t(a){return({}).toString.call(a)}var u=function(a){return f.isArray(a)?a:null};if("u">typeof Symbol&&Symbol.iterator){var v="function"==typeof Array.from?function(a){return Array.from(a)}:function(a){for(var b,c=[],d=a[Symbol.iterator]();!(b=d.next()).done;)c.push(b.value);return c};u=function(a){return f.isArray(a)?a:null!=a&&"function"==typeof a[Symbol.iterator]?v(a):null}}var w="u">typeof process&&"[object process]"===t(process).toLowerCase(),x="u">typeof process&&void 0!==process.env,y={isClass:function(a){try{if("function"==typeof a){var b=f.names(a.prototype),c=f.isES5&&b.length>1,d=b.length>0&&(1!==b.length||"constructor"!==b[0]),e=n.test(a+"")&&f.names(a).length>0;if(c||d||e)return!0}return!1}catch(a){return!1}},isIdentifier:function(a){return o.test(a)},inheritedDataKeys:m,getDataPropertyOrDefault:function(a,b,c){if(!f.isES5)return({}).hasOwnProperty.call(a,b)?a[b]:void 0;var d=Object.getOwnPropertyDescriptor(a,b);if(null!=d)return null==d.get&&null==d.set?d.value:c},thrower:function(a){throw a},isArray:f.isArray,asArray:u,notEnumerableProp:l,isPrimitive:k,isObject:function(a){return"function"==typeof a||"object"==typeof a&&null!==a},isError:q,canEvaluate:g,errorObj:h,tryCatch:function(a){return e=a,j},inherits:function(a,b){var c={}.hasOwnProperty;function d(){for(var d in this.constructor=a,this.constructor$=b,b.prototype)c.call(b.prototype,d)&&"$"!==d.charAt(d.length-1)&&(this[d+"$"]=b.prototype[d])}return d.prototype=b.prototype,a.prototype=new d,a.prototype},withAppended:function(a,b){var c,d=a.length,e=Array(d+1);for(c=0;c<d;++c)e[c]=a[c];return e[c]=b,e},maybeWrapAsError:function(a){return k(a)?Error(p(a)):a},toFastProperties:function(a){function b(){}b.prototype=a;for(var c=8;c--;)new b;return a},filledRange:function(a,b,c){for(var d=Array(a),e=0;e<a;++e)d[e]=b+e+c;return d},toString:p,canAttachTrace:r,ensureErrorObject:s,originatesFromRejection:function(a){return null!=a&&(a instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===a.isOperational)},markAsOriginatingFromRejection:function(a){try{l(a,"isOperational",!0)}catch(a){}},classString:t,copyDescriptors:function(a,b,c){for(var d=f.names(a),e=0;e<d.length;++e){var g=d[e];if(c(g))try{f.defineProperty(b,g,f.getDescriptor(a,g))}catch(a){}}},hasDevTools:"u">typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:w,hasEnvVariables:x,env:function(a){return x?process.env[a]:void 0},global:i,getNativePromise:function(){if("function"==typeof Promise)try{var a=new Promise(function(){});if("[object Promise]"===({}).toString.call(a))return Promise}catch(a){}},domainBind:function(a,b){return a.bind(b)}};y.isRecentNode=y.isNode&&(0===(d=process.versions.node.split(".").map(Number))[0]&&d[1]>10||d[0]>0),y.isNode&&y.toFastProperties(process);try{throw Error()}catch(a){y.lastLineError=a}a.exports=y},22899:(a,b,c)=>{"use strict";var d=c(56073),e=c(69167),f=c(75034),g=c(19272),h=c(32010),i=Object.prototype.toString;function j(a){if(!(this instanceof j))return new j(a);this.options=e.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},a||{});var b,c=this.options;c.raw&&c.windowBits>0?c.windowBits=-c.windowBits:c.gzip&&c.windowBits>0&&c.windowBits<16&&(c.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var k=d.deflateInit2(this.strm,c.level,c.method,c.windowBits,c.memLevel,c.strategy);if(0!==k)throw Error(g[k]);if(c.header&&d.deflateSetHeader(this.strm,c.header),c.dictionary){if(b="string"==typeof c.dictionary?f.string2buf(c.dictionary):"[object ArrayBuffer]"===i.call(c.dictionary)?new Uint8Array(c.dictionary):c.dictionary,0!==(k=d.deflateSetDictionary(this.strm,b)))throw Error(g[k]);this._dict_set=!0}}function k(a,b){var c=new j(b);if(c.push(a,!0),c.err)throw c.msg||g[c.err];return c.result}j.prototype.push=function(a,b){var c,g,h=this.strm,j=this.options.chunkSize;if(this.ended)return!1;g=b===~~b?b:4*(!0===b),"string"==typeof a?h.input=f.string2buf(a):"[object ArrayBuffer]"===i.call(a)?h.input=new Uint8Array(a):h.input=a,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new e.Buf8(j),h.next_out=0,h.avail_out=j),1!==(c=d.deflate(h,g))&&0!==c)return this.onEnd(c),this.ended=!0,!1;(0===h.avail_out||0===h.avail_in&&(4===g||2===g))&&("string"===this.options.to?this.onData(f.buf2binstring(e.shrinkBuf(h.output,h.next_out))):this.onData(e.shrinkBuf(h.output,h.next_out)))}while((h.avail_in>0||0===h.avail_out)&&1!==c);return 4===g?(c=d.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,0===c):(2===g&&(this.onEnd(0),h.avail_out=0),!0)},j.prototype.onData=function(a){this.chunks.push(a)},j.prototype.onEnd=function(a){0===a&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},b.Deflate=j,b.deflate=k,b.deflateRaw=function(a,b){return(b=b||{}).raw=!0,k(a,b)},b.gzip=function(a,b){return(b=b||{}).gzip=!0,k(a,b)}},23342:(a,b,c)=>{"use strict";var d=c(58952),e=c(76281);function f(a){e.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}d.inherits(f,e),f.prototype.processChunk=function(a){if(a){var b=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=b+a.data.length}e.prototype.processChunk.call(this,a)},a.exports=f},23435:(a,b,c)=>{var d=c(16734),e=c(90050);b.writer=function(a){return"markdown"===(a=a||{}).outputFormat?e.writer():d.writer(a)}},23896:(a,b,c)=>{"use strict";a.exports=function(a){var b=c(22418),d=c(3987).keys,e=b.tryCatch,f=b.errorObj;return function(c,g,h){return function(i){var j=h._boundValue();b:for(var k=0;k<c.length;++k){var l=c[k];if(l===Error||null!=l&&l.prototype instanceof Error){if(i instanceof l)return e(g).call(j,i)}else if("function"==typeof l){var m=e(l).call(j,i);if(m===f)return m;if(m)return e(g).call(j,i)}else if(b.isObject(i)){for(var n=d(l),o=0;o<n.length;++o){var p=n[o];if(l[p]!=i[p])continue b}return e(g).call(j,i)}}return a}}}},24083:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p=function(a,b){for(var c in b)q.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},q={}.hasOwnProperty;i=c(2286),j=c(72240),b=c(92293),d=c(96321),l=c(16426),n=c(77632),o=c(46107),m=c(11781),k=c(16646),e=c(54107),f=c(9774),g=c(4907),h=c(54968),a.exports=function(a){function c(a,b){c.__super__.constructor.call(this,b),this.stream=a}return p(c,a),c.prototype.document=function(a){var b,c,e,f,g,h,l,n;for(c=0,f=(h=a.children).length;c<f;c++)(b=h[c]).isLastRootNode=!1;for(a.children[a.children.length-1].isLastRootNode=!0,l=a.children,n=[],e=0,g=l.length;e<g;e++)if(!((b=l[e])instanceof k))switch(!1){case!(b instanceof i):n.push(this.declaration(b));break;case!(b instanceof j):n.push(this.docType(b));break;case!(b instanceof d):n.push(this.comment(b));break;case!(b instanceof m):n.push(this.processingInstruction(b));break;default:n.push(this.element(b))}return n},c.prototype.attribute=function(a){return this.stream.write(" "+a.name+'="'+a.value+'"')},c.prototype.cdata=function(a,b){return this.stream.write(this.space(b)+"<![CDATA["+a.text+"]]>"+this.endline(a))},c.prototype.comment=function(a,b){return this.stream.write(this.space(b)+"\x3c!-- "+a.text+" --\x3e"+this.endline(a))},c.prototype.declaration=function(a,b){return this.stream.write(this.space(b)),this.stream.write('<?xml version="'+a.version+'"'),null!=a.encoding&&this.stream.write(' encoding="'+a.encoding+'"'),null!=a.standalone&&this.stream.write(' standalone="'+a.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(a))},c.prototype.docType=function(a,c){var i,j,k,l;if(c||(c=0),this.stream.write(this.space(c)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a)),j=0,k=(l=a.children).length;j<k;j++)switch(i=l[j],!1){case!(i instanceof e):this.dtdAttList(i,c+1);break;case!(i instanceof f):this.dtdElement(i,c+1);break;case!(i instanceof g):this.dtdEntity(i,c+1);break;case!(i instanceof h):this.dtdNotation(i,c+1);break;case!(i instanceof b):this.cdata(i,c+1);break;case!(i instanceof d):this.comment(i,c+1);break;case!(i instanceof m):this.processingInstruction(i,c+1);break;default:throw Error("Unknown DTD node type: "+i.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(a))},c.prototype.element=function(a,c){var e,f,g,h,i,j,p,r;for(i in c||(c=0),r=this.space(c),this.stream.write(r+"<"+a.name),j=a.attributes)q.call(j,i)&&(e=j[i],this.attribute(e));if(0===a.children.length||a.children.every(function(a){return""===a.value}))this.allowEmpty?this.stream.write("></"+a.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===a.children.length&&null!=a.children[0].value)this.stream.write(">"),this.stream.write(a.children[0].value),this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.newline),g=0,h=(p=a.children).length;g<h;g++)switch(f=p[g],!1){case!(f instanceof b):this.cdata(f,c+1);break;case!(f instanceof d):this.comment(f,c+1);break;case!(f instanceof l):this.element(f,c+1);break;case!(f instanceof n):this.raw(f,c+1);break;case!(f instanceof o):this.text(f,c+1);break;case!(f instanceof m):this.processingInstruction(f,c+1);break;case!(f instanceof k):break;default:throw Error("Unknown XML node type: "+f.constructor.name)}this.stream.write(r+"</"+a.name+">")}return this.stream.write(this.endline(a))},c.prototype.processingInstruction=function(a,b){return this.stream.write(this.space(b)+"<?"+a.target),a.value&&this.stream.write(" "+a.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(a))},c.prototype.raw=function(a,b){return this.stream.write(this.space(b)+a.value+this.endline(a))},c.prototype.text=function(a,b){return this.stream.write(this.space(b)+a.value+this.endline(a))},c.prototype.dtdAttList=function(a,b){return this.stream.write(this.space(b)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType),"#DEFAULT"!==a.defaultValueType&&this.stream.write(" "+a.defaultValueType),a.defaultValue&&this.stream.write(' "'+a.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},c.prototype.dtdElement=function(a,b){return this.stream.write(this.space(b)+"<!ELEMENT "+a.name+" "+a.value),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},c.prototype.dtdEntity=function(a,b){return this.stream.write(this.space(b)+"<!ENTITY"),a.pe&&this.stream.write(" %"),this.stream.write(" "+a.name),a.value?this.stream.write(' "'+a.value+'"'):(a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.nData&&this.stream.write(" NDATA "+a.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},c.prototype.dtdNotation=function(a,b){return this.stream.write(this.space(b)+"<!NOTATION "+a.name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.pubID?this.stream.write(' PUBLIC "'+a.pubID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},c.prototype.endline=function(a){return a.isLastRootNode?"":this.newline},c}(c(72884))}).call(this)},25105:(a,b,c)=>{var d=c(84906),e=c(1906),f=c(65869),g=c(89281),h=c(59076);b.token=function(a,b){var c=void 0!==b;return function(d){var e=d.head();return e&&e.name===a&&(!c||e.value===b)?f.success(e.value,d.tail(),e.source):n(d,m({name:a,value:b}))}},b.tokenOfType=function(a){return b.token(a)},b.firstOf=function(a,b){return d.isArray(b)||(b=Array.prototype.slice.call(arguments,1)),function(c){return h.fromArray(b).map(function(a){return a(c)}).filter(function(a){return a.isSuccess()||a.isError()}).first()||n(c,a)}},b.then=function(a,b){return function(c){var d=a(c);return d.map||console.log(d),d.map(b)}},b.sequence=function(){var a=Array.prototype.slice.call(arguments,0),c=function(c){var e=d.foldl(a,function(a,b){var d=a.result,e=a.hasCut;if(!d.isSuccess())return{result:d,hasCut:e};var g=b(d.remaining());if(g.isCut())return{result:d,hasCut:!0};if(g.isSuccess()){var h=b.isCaptured?d.value().withValue(b,g.value()):d.value(),i=g.remaining(),j=c.to(i);return{result:f.success(h,i,j),hasCut:e}}return e?{result:f.error(g.errors(),g.remaining()),hasCut:e}:{result:g,hasCut:e}},{result:f.success(new i,c),hasCut:!1}).result,g=c.to(e.remaining());return e.map(function(a){return a.withValue(b.sequence.source,g)})};function e(a){return a.isCaptured}return c.head=function(){var f=d.find(a,e);return b.then(c,b.sequence.extract(f))},c.map=function(a){return b.then(c,function(b){return a.apply(this,b.toArray())})},c};var i=function(a,b){this._values=a||{},this._valuesArray=b||[]};i.prototype.withValue=function(a,b){if(a.captureName&&a.captureName in this._values)throw Error('Cannot add second value for capture "'+a.captureName+'"');var c=d.clone(this._values);return c[a.captureName]=b,new i(c,this._valuesArray.concat([b]))},i.prototype.get=function(a){if(a.captureName in this._values)return this._values[a.captureName];throw Error('No value for capture "'+a.captureName+'"')},i.prototype.toArray=function(){return this._valuesArray},b.sequence.capture=function(a,b){var c=function(){return a.apply(this,arguments)};return c.captureName=b,c.isCaptured=!0,c},b.sequence.extract=function(a){return function(b){return b.get(a)}},b.sequence.applyValues=function(a){var b=Array.prototype.slice.call(arguments,1);return function(c){var d=b.map(function(a){return c.get(a)});return a.apply(this,d)}},b.sequence.source={captureName:"☃source☃"},b.sequence.cut=function(){return function(a){return f.cut(a)}},b.optional=function(a){return function(b){var c=a(b);return c.isSuccess()?c.map(e.some):c.isFailure()?f.success(e.none,b):c}},b.zeroOrMoreWithSeparator=function(a,b){return l(a,b,!1)},b.oneOrMoreWithSeparator=function(a,b){return l(a,b,!0)};var j=b.zeroOrMore=function(a){return function(b){for(var c,d=[];(c=a(b))&&c.isSuccess();)b=c.remaining(),d.push(c.value());return c.isError()?c:f.success(d,b)}};function k(a){return f.success(null,a)}b.oneOrMore=function(a){return b.oneOrMoreWithSeparator(a,k)};var l=function(a,c,d){return function(e){var g=a(e);if(g.isSuccess()){var h=b.sequence.capture(a,"main"),i=j(b.then(b.sequence(c,h),b.sequence.extract(h)))(g.remaining());return f.success([g.value()].concat(i.value()),i.remaining())}return d||g.isError()?g:f.success([],e)}};b.leftAssociative=function(a,c,d){var e=(e=d?[{func:d,rule:c}]:c).map(function(a){return b.then(a.rule,function(b){return function(c,d){return a.func(c,b,d)}})}),g=b.firstOf.apply(null,["rules"].concat(e));return function(b){var c=a(b);if(!c.isSuccess())return c;for(var d=g(c.remaining());d.isSuccess();){var e=d.remaining(),h=b.to(d.remaining()),i=d.value();d=g((c=f.success(i(c.value(),h),e,h)).remaining())}return d.isError()?d:c}},b.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},b.nonConsuming=function(a){return function(b){return a(b).changeRemaining(b)}};var m=function(a){return a.value?a.name+' "'+a.value+'"':a.name};function n(a,b){var c,d=a.head();return c=d?g.error({expected:b,actual:m(d),location:d.source}):g.error({expected:b,actual:"end of tokens"}),f.failure([c],a)}},26092:(a,b,c)=>{b.Tt=function(a){return a=a||{},d.extend({},f,a,{customStyleMap:g(a.styleMap),readStyleMap:function(){var a=this.customStyleMap;return this.includeEmbeddedStyleMap&&(a=a.concat(g(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(a=a.concat(e)),a}})};var d=c(84906),e=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],f={externalFileAccess:!1,transformDocument:function(a){return a},includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function g(a){return a?d.isString(a)?a.split("\n").map(function(a){return a.trim()}).filter(function(a){return""!==a&&"#"!==a.charAt(0)}):a:[]}},26701:(a,b,c)=>{"use strict";var d=c(73315),e=c(26957),f=c(49443);class g extends e.NodeBase{constructor(a){super(d.SCALAR),this.value=a}toJSON(a,b){return b?.keep?this.value:f.toJS(this.value,a,b)}toString(){return String(this.value)}}g.BLOCK_FOLDED="BLOCK_FOLDED",g.BLOCK_LITERAL="BLOCK_LITERAL",g.PLAIN="PLAIN",g.QUOTE_DOUBLE="QUOTE_DOUBLE",g.QUOTE_SINGLE="QUOTE_SINGLE",b.Scalar=g,b.isScalarValue=a=>!a||"function"!=typeof a&&"object"!=typeof a},26720:(a,b,c)=>{"use strict";var d=c(26701);function e({value:a,source:b},c){let d=a?f:g;return b&&d.test.test(b)?b:a?c.options.trueStr:c.options.falseStr}let f={identify:a=>!0===a,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new d.Scalar(!0),stringify:e},g={identify:a=>!1===a,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new d.Scalar(!1),stringify:e};b.falseTag=g,b.trueTag=f},26932:(a,b,c)=>{var d=c(67708);function e(a,b){b.forEach(function(b){var c,d;c=a,f[(d=b).type](c,d)})}b.freshElement=d.freshElement,b.nonFreshElement=d.nonFreshElement,b.elementWithTag=d.elementWithTag,b.text=d.text,b.forceWrite=d.forceWrite,b.simplify=c(62117);var f={element:function(a,b){d.isVoidElement(b)?a.selfClosing(b.tag.tagName,b.tag.attributes):(a.open(b.tag.tagName,b.tag.attributes),e(a,b.children),a.close(b.tag.tagName))},text:function(a,b){a.text(b.value)},forceWrite:function(){}};b.write=e},26957:(a,b,c)=>{"use strict";var d=c(83989),e=c(73315),f=c(49443);class g{constructor(a){Object.defineProperty(this,e.NODE_TYPE,{value:a})}clone(){let a=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(a.range=this.range.slice()),a}toJS(a,{mapAsMap:b,maxAliasCount:c,onAnchor:g,reviver:h}={}){if(!e.isDocument(a))throw TypeError("A document argument is required");let i={anchors:new Map,doc:a,keep:!0,mapAsMap:!0===b,mapKeyWarned:!1,maxAliasCount:"number"==typeof c?c:100},j=f.toJS(this,"",i);if("function"==typeof g)for(let{count:a,res:b}of i.anchors.values())g(b,a);return"function"==typeof h?d.applyReviver(h,{"":j},"",j):j}}b.NodeBase=g},27387:(a,b,c)=>{"use strict";var d=c(26701);let e={identify:a=>"boolean"==typeof a,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:a=>new d.Scalar("t"===a[0]||"T"===a[0]),stringify:({source:a,value:b},c)=>a&&e.test.test(a)&&b===("t"===a[0]||"T"===a[0])?a:b?c.options.trueStr:c.options.falseStr};b.boolTag=e},30137:(a,b,c)=>{"use strict";var d="u">typeof Uint8Array&&"u">typeof Uint16Array&&"u">typeof Uint32Array,e=c(32778),f=c(58952),g=c(76281),h=d?"uint8array":"array";function i(a,b){g.call(this,"FlateWorker/"+a),this._pako=null,this._pakoAction=a,this._pakoOptions=b,this.meta={}}b.magic="\b\0",f.inherits(i,g),i.prototype.processChunk=function(a){this.meta=a.meta,null===this._pako&&this._createPako(),this._pako.push(f.transformTo(h,a.data),!1)},i.prototype.flush=function(){g.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},i.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this._pako=null},i.prototype._createPako=function(){this._pako=new e[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var a=this;this._pako.onData=function(b){a.push({data:b,meta:a.meta})}},b.compressWorker=function(a){return new i("Deflate",a)},b.uncompressWorker=function(){return new i("Inflate",{})}},30212:(a,b,c)=>{"use strict";for(var d=c(58952),e=c(49642),f=c(39531),g=c(76281),h=Array(256),i=0;i<256;i++)h[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;h[254]=h[254]=1;var j=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;f<h;f++)(64512&(c=a.charCodeAt(f)))==55296&&f+1<h&&(64512&(d=a.charCodeAt(f+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),f++),i+=c<128?1:c<2048?2:c<65536?3:4;for(b=e.uint8array?new Uint8Array(i):Array(i),g=0,f=0;g<i;f++)(64512&(c=a.charCodeAt(f)))==55296&&f+1<h&&(64512&(d=a.charCodeAt(f+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),f++),c<128?b[g++]=c:(c<2048?b[g++]=192|c>>>6:(c<65536?b[g++]=224|c>>>12:(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63),b[g++]=128|c>>>6&63),b[g++]=128|63&c);return b},k=function(a,b){var c;for((b=b||a.length)>a.length&&(b=a.length),c=b-1;c>=0&&(192&a[c])==128;)c--;return c<0||0===c?b:c+h[a[c]]>b?c:b},l=function(a){var b,c,e,f,g=a.length,i=Array(2*g);for(c=0,b=0;b<g;){if((e=a[b++])<128){i[c++]=e;continue}if((f=h[e])>4){i[c++]=65533,b+=f-1;continue}for(e&=2===f?31:3===f?15:7;f>1&&b<g;)e=e<<6|63&a[b++],f--;if(f>1){i[c++]=65533;continue}e<65536?i[c++]=e:(e-=65536,i[c++]=55296|e>>10&1023,i[c++]=56320|1023&e)}return i.length!==c&&(i.subarray?i=i.subarray(0,c):i.length=c),d.applyFromCharCode(i)};function m(){g.call(this,"utf-8 decode"),this.leftOver=null}function n(){g.call(this,"utf-8 encode")}b.utf8encode=function(a){return e.nodebuffer?f.newBufferFrom(a,"utf-8"):j(a)},b.utf8decode=function(a){return e.nodebuffer?d.transformTo("nodebuffer",a).toString("utf-8"):l(a=d.transformTo(e.uint8array?"uint8array":"array",a))},d.inherits(m,g),m.prototype.processChunk=function(a){var c=d.transformTo(e.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(e.uint8array){var f=c;(c=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),c.set(f,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var g=k(c),h=c;g!==c.length&&(e.uint8array?(h=c.subarray(0,g),this.leftOver=c.subarray(g,c.length)):(h=c.slice(0,g),this.leftOver=c.slice(g,c.length))),this.push({data:b.utf8decode(h),meta:a.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:b.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},b.Utf8DecodeWorker=m,d.inherits(n,g),n.prototype.processChunk=function(a){this.push({data:b.utf8encode(a.data),meta:a.meta})},b.Utf8EncodeWorker=n},30444:(a,b,c)=>{var d=c(79428),e=d.Buffer;function f(a,b){for(var c in a)b[c]=a[c]}function g(a,b,c){return e(a,b,c)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?a.exports=d:(f(d,b),b.Buffer=g),f(e,g),g.from=function(a,b,c){if("number"==typeof a)throw TypeError("Argument must not be a number");return e(a,b,c)},g.alloc=function(a,b,c){if("number"!=typeof a)throw TypeError("Argument must be a number");var d=e(a);return void 0!==b?"string"==typeof c?d.fill(b,c):d.fill(b):d.fill(0),d},g.allocUnsafe=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return e(a)},g.allocUnsafeSlow=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return d.SlowBuffer(a)}},30598:(a,b,c)=>{"use strict";var d=c(70752),e=c(8878),f=c(66273),g=c(73315),h=c(37521),i=c(26701);function j(a,b){let c=g.isScalar(b)?b.value:b;for(let d of a)if(g.isPair(d)&&(d.key===b||d.key===c||g.isScalar(d.key)&&d.key.value===c))return d}class k extends f.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(a){super(g.MAP,a),this.items=[]}static from(a,b,c){let{keepUndefined:d,replacer:e}=c,f=new this(a),g=(a,g)=>{if("function"==typeof e)g=e.call(b,a,g);else if(Array.isArray(e)&&!e.includes(a))return;(void 0!==g||d)&&f.items.push(h.createPair(a,g,c))};if(b instanceof Map)for(let[a,c]of b)g(a,c);else if(b&&"object"==typeof b)for(let a of Object.keys(b))g(a,b[a]);return"function"==typeof a.sortMapEntries&&f.items.sort(a.sortMapEntries),f}add(a,b){let c;c=g.isPair(a)?a:a&&"object"==typeof a&&"key"in a?new h.Pair(a.key,a.value):new h.Pair(a,a?.value);let d=j(this.items,c.key),e=this.schema?.sortMapEntries;if(d){if(!b)throw Error(`Key ${c.key} already set`);g.isScalar(d.value)&&i.isScalarValue(c.value)?d.value.value=c.value:d.value=c.value}else if(e){let a=this.items.findIndex(a=>0>e(c,a));-1===a?this.items.push(c):this.items.splice(a,0,c)}else this.items.push(c)}delete(a){let b=j(this.items,a);return!!b&&this.items.splice(this.items.indexOf(b),1).length>0}get(a,b){let c=j(this.items,a),d=c?.value;return(!b&&g.isScalar(d)?d.value:d)??void 0}has(a){return!!j(this.items,a)}set(a,b){this.add(new h.Pair(a,b),!0)}toJSON(a,b,c){let d=c?new c:b?.mapAsMap?new Map:{};for(let a of(b?.onCreate&&b.onCreate(d),this.items))e.addPairToJSMap(b,d,a);return d}toString(a,b,c){if(!a)return JSON.stringify(this);for(let a of this.items)if(!g.isPair(a))throw Error(`Map items must all be pairs; found ${JSON.stringify(a)} instead`);return!a.allNullValues&&this.hasAllNullValues(!1)&&(a=Object.assign({},a,{allNullValues:!0})),d.stringifyCollection(this,a,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:a.indent||"",onChompKeep:c,onComment:b})}}b.YAMLMap=k,b.findPair=j},30666:(a,b,c)=>{"use strict";var d=c(26701);let e={identify:a=>null==a,createNode:()=>new d.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new d.Scalar(null),stringify:({source:a},b)=>"string"==typeof a&&e.test.test(a)?a:b.options.nullStr};b.nullTag=e},31991:(a,b)=>{"use strict";function c(a){switch(a.type){case"block-scalar":{let b="";for(let d of a.props)b+=c(d);return b+a.source}case"block-map":case"block-seq":{let b="";for(let c of a.items)b+=d(c);return b}case"flow-collection":{let b=a.start.source;for(let c of a.items)b+=d(c);for(let c of a.end)b+=c.source;return b}case"document":{let b=d(a);if(a.end)for(let c of a.end)b+=c.source;return b}default:{let b=a.source;if("end"in a&&a.end)for(let c of a.end)b+=c.source;return b}}}function d({start:a,key:b,sep:e,value:f}){let g="";for(let b of a)g+=b.source;if(b&&(g+=c(b)),e)for(let a of e)g+=a.source;return f&&(g+=c(f)),g}b.stringify=a=>"type"in a?c(a):d(a)},32010:a=>{"use strict";a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},32232:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e,f,g){var h=c(43823).TypeError,i=c(22418),j=i.errorObj,k=i.tryCatch,l=[];function m(b,c,e,f){if(g.cancellation()){var h=new a(d),i=this._finallyPromise=new a(d);this._promise=h.lastly(function(){return i}),h._captureStackTrace(),h._setOnCancel(this)}else(this._promise=new a(d))._captureStackTrace();this._stack=f,this._generatorFunction=b,this._receiver=c,this._generator=void 0,this._yieldHandlers="function"==typeof e?[e].concat(l):l,this._yieldedPromise=null,this._cancellationPhase=!1}i.inherits(m,f),m.prototype._isResolved=function(){return null===this._promise},m.prototype._cleanup=function(){this._promise=this._generator=null,g.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},m.prototype._promiseCancelled=function(){if(!this._isResolved()){var b;if(void 0!==this._generator.return)this._promise._pushContext(),b=k(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var c=new a.CancellationError("generator .return() sentinel");a.coroutine.returnSentinel=c,this._promise._attachExtraTrace(c),this._promise._pushContext(),b=k(this._generator.throw).call(this._generator,c),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(b)}},m.prototype._promiseFulfilled=function(a){this._yieldedPromise=null,this._promise._pushContext();var b=k(this._generator.next).call(this._generator,a);this._promise._popContext(),this._continue(b)},m.prototype._promiseRejected=function(a){this._yieldedPromise=null,this._promise._attachExtraTrace(a),this._promise._pushContext();var b=k(this._generator.throw).call(this._generator,a);this._promise._popContext(),this._continue(b)},m.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof a){var b=this._yieldedPromise;this._yieldedPromise=null,b.cancel()}},m.prototype.promise=function(){return this._promise},m.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},m.prototype._continue=function(b){var c=this._promise;if(b===j)return(this._cleanup(),this._cancellationPhase)?c.cancel():c._rejectCallback(b.e,!1);var d=b.value;if(!0===b.done)return(this._cleanup(),this._cancellationPhase)?c.cancel():c._resolveCallback(d);var f=e(d,this._promise);if(!(f instanceof a)&&null===(f=function(b,c,d){for(var f=0;f<c.length;++f){d._pushContext();var g=k(c[f])(b);if(d._popContext(),g===j){d._pushContext();var h=a.reject(j.e);return d._popContext(),h}var i=e(g,d);if(i instanceof a)return i}return null}(f,this._yieldHandlers,this._promise)))return void this._promiseRejected(new h("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",d)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));var g=(f=f._target())._bitField;(0x3010000&g)==0?(this._yieldedPromise=f,f._proxy(this,null)):(0x2000000&g)!=0?a._async.invoke(this._promiseFulfilled,this,f._value()):(0x1000000&g)!=0?a._async.invoke(this._promiseRejected,this,f._reason()):this._promiseCancelled()},a.coroutine=function(a,b){if("function"!=typeof a)throw new h("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var c=Object(b).yieldHandler,d=Error().stack;return function(){var b=a.apply(this,arguments),e=new m(void 0,void 0,c,d),f=e.promise();return e._generator=b,e._promiseFulfilled(void 0),f}},a.coroutine.addYieldHandler=function(a){if("function"!=typeof a)throw new h("expecting a function but got "+i.classString(a));l.push(a)},a.spawn=function(c){if(g.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof c)return b("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var d=new m(c,this),e=d.promise();return d._run(a.spawn),e}}},32778:(a,b,c)=>{"use strict";var d=c(69167).assign,e=c(22899),f=c(43631),g=c(53308),h={};d(h,e,f,g),a.exports=h},33824:(a,b,c)=>{"use strict";var d=c(73315),e=c(69273),f=c(51490),g=c(57422),h=c(45538);let i=(a,b)=>a.key<b.key?-1:+(a.key>b.key);class j{constructor({compat:a,customTags:b,merge:c,resolveKnownTags:j,schema:k,sortMapEntries:l,toStringDefaults:m}){this.compat=Array.isArray(a)?h.getTags(a,"compat"):a?h.getTags(null,a):null,this.name="string"==typeof k&&k||"core",this.knownTags=j?h.coreKnownTags:{},this.tags=h.getTags(b,this.name,c),this.toStringOptions=m??null,Object.defineProperty(this,d.MAP,{value:e.map}),Object.defineProperty(this,d.SCALAR,{value:g.string}),Object.defineProperty(this,d.SEQ,{value:f.seq}),this.sortMapEntries="function"==typeof l?l:!0===l?i:null}clone(){let a=Object.create(j.prototype,Object.getOwnPropertyDescriptors(this));return a.tags=this.tags.slice(),a}}b.Schema=j},33840:(a,b,c)=>{var d=c(60828),e=c(49472),f=c(57009),g=c(12868),h=e.DOMImplementation,i=d.NAMESPACE,j=g.ParseError,k=g.XMLReader;function l(a){return a.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function m(a){this.options=a||{locator:{}}}function n(){this.cdata=!1}function o(a,b){b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber}function p(a){if(a)return"\n@"+(a.systemId||"")+"#[line:"+a.lineNumber+",col:"+a.columnNumber+"]"}function q(a,b,c){return"string"==typeof a?a.substr(b,c):a.length>=b+c||b?new java.lang.String(a,b,c)+"":a}function r(a,b){a.currentElement?a.currentElement.appendChild(b):a.doc.appendChild(b)}m.prototype.parseFromString=function(a,b){var c=this.options,d=new k,e=c.domBuilder||new n,g=c.errorHandler,h=c.locator,j=c.xmlns||{},m=/\/x?html?$/.test(b),o=m?f.HTML_ENTITIES:f.XML_ENTITIES;h&&e.setDocumentLocator(h),d.errorHandler=function(a,b,c){if(!a){if(b instanceof n)return b;a=b}var d={},e=a instanceof Function;function f(b){var f=a[b];!f&&e&&(f=2==a.length?function(c){a(b,c)}:a),d[b]=f&&function(a){f("[xmldom "+b+"] "+a+p(c))}||function(){}}return c=c||{},f("warning"),f("error"),f("fatalError"),d}(g,e,h),d.domBuilder=c.domBuilder||e,m&&(j[""]=i.HTML),j.xml=j.xml||i.XML;var q=c.normalizeLineEndings||l;return a&&"string"==typeof a?d.parse(q(a),j,o):d.errorHandler.error("invalid doc source"),e.doc},n.prototype={startDocument:function(){this.doc=new h().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(a,b,c,d){var e=this.doc,f=e.createElementNS(a,c||b),g=d.length;r(this,f),this.currentElement=f,this.locator&&o(this.locator,f);for(var h=0;h<g;h++){var a=d.getURI(h),i=d.getValue(h),c=d.getQName(h),j=e.createAttributeNS(a,c);this.locator&&o(d.getLocator(h),j),j.value=j.nodeValue=i,f.setAttributeNode(j)}},endElement:function(a,b,c){var d=this.currentElement;d.tagName,this.currentElement=d.parentNode},startPrefixMapping:function(a,b){},endPrefixMapping:function(a){},processingInstruction:function(a,b){var c=this.doc.createProcessingInstruction(a,b);this.locator&&o(this.locator,c),r(this,c)},ignorableWhitespace:function(a,b,c){},characters:function(a,b,c){if(a=q.apply(this,arguments)){if(this.cdata)var d=this.doc.createCDATASection(a);else var d=this.doc.createTextNode(a);this.currentElement?this.currentElement.appendChild(d):/^\s*$/.test(a)&&this.doc.appendChild(d),this.locator&&o(this.locator,d)}},skippedEntity:function(a){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(a){(this.locator=a)&&(a.lineNumber=0)},comment:function(a,b,c){a=q.apply(this,arguments);var d=this.doc.createComment(a);this.locator&&o(this.locator,d),r(this,d)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(a,b,c){var d=this.doc.implementation;if(d&&d.createDocumentType){var e=d.createDocumentType(a,b,c);this.locator&&o(this.locator,e),r(this,e),this.doc.doctype=e}},warning:function(a){console.warn("[xmldom warning] "+a,p(this.locator))},error:function(a){console.error("[xmldom error] "+a,p(this.locator))},fatalError:function(a){throw new j(a,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(a){n.prototype[a]=function(){return null}}),b.DOMParser=m},35504:(a,b,c)=>{"use strict";var d=c(69167),e=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],g=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];a.exports=function(a,b,c,i,j,k,l,m){var n,o,p,q,r,s,t,u,v,w=m.bits,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=null,I=0,J=new d.Buf16(16),K=new d.Buf16(16),L=null,M=0;for(x=0;x<=15;x++)J[x]=0;for(y=0;y<i;y++)J[b[c+y]]++;for(B=w,A=15;A>=1&&0===J[A];A--);if(B>A&&(B=A),0===A)return j[k++]=0x1400000,j[k++]=0x1400000,m.bits=1,0;for(z=1;z<A&&0===J[z];z++);for(B<z&&(B=z),E=1,x=1;x<=15;x++)if(E<<=1,(E-=J[x])<0)return -1;if(E>0&&(0===a||1!==A))return -1;for(K[1]=0,x=1;x<15;x++)K[x+1]=K[x]+J[x];for(y=0;y<i;y++)0!==b[c+y]&&(l[K[b[c+y]]++]=y);if(0===a?(H=L=l,s=19):1===a?(H=e,I-=257,L=f,M-=257,s=256):(H=g,L=h,s=-1),G=0,y=0,x=z,r=k,C=B,D=0,p=-1,q=(F=1<<B)-1,1===a&&F>852||2===a&&F>592)return 1;for(;;){t=x-D,l[y]<s?(u=0,v=l[y]):l[y]>s?(u=L[M+l[y]],v=H[I+l[y]]):(u=96,v=0),n=1<<x-D,z=o=1<<C;do j[r+(G>>D)+(o-=n)]=t<<24|u<<16|v;while(0!==o);for(n=1<<x-1;G&n;)n>>=1;if(0!==n?(G&=n-1,G+=n):G=0,y++,0==--J[x]){if(x===A)break;x=b[c+l[y]]}if(x>B&&(G&q)!==p){for(0===D&&(D=B),r+=z,E=1<<(C=x-D);C+D<A&&!((E-=J[C+D])<=0);)C++,E<<=1;if(F+=1<<C,1===a&&F>852||2===a&&F>592)return 1;j[p=G&q]=B<<24|C<<16|r-k}}return 0!==G&&(j[r+G]=x-D<<24|4194304),m.bits=B,0}},35527:(a,b,c)=>{"use strict";var d=c(22418),e=d.maybeWrapAsError,f=c(43823).OperationalError,g=c(3987),h=/^(?:name|message|stack|cause)$/;a.exports=function(a,b){return function(c,i){if(null!==a){if(c){var j=function(a){if(a instanceof Error&&g.getPrototypeOf(a)===Error.prototype){(b=new f(a)).name=a.name,b.message=a.message,b.stack=a.stack;for(var b,c=g.keys(a),e=0;e<c.length;++e){var i=c[e];h.test(i)||(b[i]=a[i])}return b}return d.markAsOriginatingFromRejection(a),a}(e(c));a._attachExtraTrace(j),a._reject(j)}else if(b){for(var k=arguments.length,l=Array(Math.max(k-1,0)),m=1;m<k;++m)l[m-1]=arguments[m];a._fulfill(l)}else a._fulfill(i);a=null}}}},35976:(a,b,c)=>{var d=c(18403);b.Element=d.Element,b.element=d.element,b.emptyElement=d.emptyElement,b.text=d.text,b.readString=c(11457).readString,b.writeString=c(93134).writeString},36911:a=>{"use strict";function b(a){this._capacity=a,this._length=0,this._front=0}b.prototype._willBeOverCapacity=function(a){return this._capacity<a},b.prototype._pushOne=function(a){var b=this.length();this._checkCapacity(b+1),this[this._front+b&this._capacity-1]=a,this._length=b+1},b.prototype.push=function(a,b,c){var d=this.length()+3;if(this._willBeOverCapacity(d)){this._pushOne(a),this._pushOne(b),this._pushOne(c);return}var e=this._front+d-3;this._checkCapacity(d);var f=this._capacity-1;this[e+0&f]=a,this[e+1&f]=b,this[e+2&f]=c,this._length=d},b.prototype.shift=function(){var a=this._front,b=this[a];return this[a]=void 0,this._front=a+1&this._capacity-1,this._length--,b},b.prototype.length=function(){return this._length},b.prototype._checkCapacity=function(a){this._capacity<a&&this._resizeTo(this._capacity<<1)},b.prototype._resizeTo=function(a){var b=this._capacity;this._capacity=a,!function(a,b,c,d){for(var e=0;e<d;++e)b[e+c]=a[e+0],a[e+0]=void 0}(this,this,b,this._front+this._length&b-1)},a.exports=b},37012:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e){var f,g=c(22418),h=g.isObject,i=c(3987);"function"==typeof Map&&(f=Map);var j=function(){var a=0,b=0;function c(c,d){this[a]=c,this[a+b]=d,a++}return function(d){b=d.size,a=0;var e=Array(2*d.size);return d.forEach(c,e),e}}(),k=function(a){for(var b=new f,c=a.length/2|0,d=0;d<c;++d){var e=a[c+d],g=a[d];b.set(e,g)}return b};function l(a){var b,c=!1;if(void 0!==f&&a instanceof f)b=j(a),c=!0;else{var d=i.keys(a),e=d.length;b=Array(2*e);for(var g=0;g<e;++g){var h=d[g];b[g]=a[h],b[g+e]=h}}this.constructor$(b),this._isMap=c,this._init$(void 0,-3)}function m(b){var c,f=d(b);return h(f)?(c=f instanceof a?f._then(a.props,void 0,void 0,void 0,void 0):new l(f).promise(),f instanceof a&&c._propagateFrom(f,2),c):e("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}g.inherits(l,b),l.prototype._init=function(){},l.prototype._promiseFulfilled=function(a,b){var c;if(this._values[b]=a,++this._totalResolved>=this._length){if(this._isMap)c=k(this._values);else{c={};for(var d=this.length(),e=0,f=this.length();e<f;++e)c[this._values[e+d]]=this._values[e]}return this._resolve(c),!0}return!1},l.prototype.shouldCopyValues=function(){return!1},l.prototype.getActualLength=function(a){return a>>1},a.prototype.props=function(){return m(this)},a.props=function(a){return m(a)}}},37054:(a,b,c)=>{"use strict";var d=c(71397),e=c(62325),f=c(50099);b.resolveBlockSeq=function({composeNode:a,composeEmptyNode:b},c,g,h,i){let j=new(i?.nodeClass??d.YAMLSeq)(c.schema);c.atRoot&&(c.atRoot=!1),c.atKey&&(c.atKey=!1);let k=g.offset,l=null;for(let{start:d,value:i}of g.items){let m=e.resolveProps(d,{indicator:"seq-item-ind",next:i,offset:k,onError:h,parentIndent:g.indent,startOnNewline:!0});if(!m.found)if(m.anchor||m.tag||i)i?.type==="block-seq"?h(m.end,"BAD_INDENT","All sequence items must start at the same column"):h(k,"MISSING_CHAR","Sequence item without - indicator");else{l=m.end,m.comment&&(j.comment=m.comment);continue}let n=i?a(c,i,m,h):b(c,m.end,d,null,m,h);c.schema.compat&&f.flowIndentCheck(g.indent,i,h),k=n.range[2],j.items.push(n)}return j.range=[g.offset,k,l??k],j}},37278:(a,b)=>{b.readContentTypesFromXml=function(a){var b={},c={};return a.children.forEach(function(a){if("content-types:Default"===a.name&&(b[a.attributes.Extension]=a.attributes.ContentType),"content-types:Override"===a.name){var d=a.attributes.PartName;"/"===d.charAt(0)&&(d=d.substring(1)),c[d]=a.attributes.ContentType}}),d(c,b)};var c={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};function d(a,b){return{findContentType:function(d){var e=a[d];if(e)return e;var f=d.split("."),g=f[f.length-1];if(b.hasOwnProperty(g))return b[g];var h=c[g.toLowerCase()];return h?"image/"+h:null}}}b.defaultContentTypes=d({},{})},37369:(a,b,c)=>{"use strict";var d,e,f=c(69167),g=c(62231),h=c(59757),i=c(86159),j=c(35504);function k(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function l(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=1,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new f.Buf32(852),b.distcode=b.distdyn=new f.Buf32(592),b.sane=1,b.back=-1,0):-2}function n(a){var b;return a&&a.state?((b=a.state).wsize=0,b.whave=0,b.wnext=0,m(a)):-2}function o(a,b){var c,d;return a&&a.state?(d=a.state,b<0?(c=0,b=-b):(c=(b>>4)+1,b<48&&(b&=15)),b&&(b<8||b>15))?-2:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,n(a)):-2}function p(a,b){var c,d;return a?(a.state=d=new l,d.window=null,0!==(c=o(a,b))&&(a.state=null),c):-2}var q=!0;function r(a,b,c,d){var e,g=a.state;return null===g.window&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new f.Buf8(g.wsize)),d>=g.wsize?(f.arraySet(g.window,b,c-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):((e=g.wsize-g.wnext)>d&&(e=d),f.arraySet(g.window,b,c-d,e,g.wnext),(d-=e)?(f.arraySet(g.window,b,c-d,d,0),g.wnext=d,g.whave=g.wsize):(g.wnext+=e,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=e))),0}b.inflateReset=n,b.inflateReset2=o,b.inflateResetKeep=m,b.inflateInit=function(a){return p(a,15)},b.inflateInit2=p,b.inflate=function(a,b){var c,l,m,n,o,p,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K=0,L=new f.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!a||!a.state||!a.output||!a.input&&0!==a.avail_in)return -2;12===(c=a.state).mode&&(c.mode=13),o=a.next_out,m=a.output,s=a.avail_out,n=a.next_in,l=a.input,p=a.avail_in,t=c.hold,u=c.bits,v=p,w=s,H=0;c:for(;;)switch(c.mode){case 1:if(0===c.wrap){c.mode=13;break}for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(2&c.wrap&&35615===t){c.check=0,L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0),t=0,u=0,c.mode=2;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&t)<<8)+(t>>8))%31){a.msg="incorrect header check",c.mode=30;break}if((15&t)!=8){a.msg="unknown compression method",c.mode=30;break}if(t>>>=4,u-=4,G=(15&t)+8,0===c.wbits)c.wbits=G;else if(G>c.wbits){a.msg="invalid window size",c.mode=30;break}c.dmax=1<<G,a.adler=c.check=1,c.mode=512&t?10:12,t=0,u=0;break;case 2:for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(c.flags=t,(255&c.flags)!=8){a.msg="unknown compression method",c.mode=30;break}if(57344&c.flags){a.msg="unknown header flags set",c.mode=30;break}c.head&&(c.head.text=t>>8&1),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0,c.mode=3;case 3:for(;u<32;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.head&&(c.head.time=t),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,L[2]=t>>>16&255,L[3]=t>>>24&255,c.check=h(c.check,L,4,0)),t=0,u=0,c.mode=4;case 4:for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.head&&(c.head.xflags=255&t,c.head.os=t>>8),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0,c.mode=5;case 5:if(1024&c.flags){for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.length=t,c.head&&(c.head.extra_len=t),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(1024&c.flags&&((x=c.length)>p&&(x=p),x&&(c.head&&(G=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),f.arraySet(c.head.extra,l,n,x,G)),512&c.flags&&(c.check=h(c.check,l,x,n)),p-=x,n+=x,c.length-=x),c.length))break c;c.length=0,c.mode=7;case 7:if(2048&c.flags){if(0===p)break c;x=0;do G=l[n+x++],c.head&&G&&c.length<65536&&(c.head.name+=String.fromCharCode(G));while(G&&x<p);if(512&c.flags&&(c.check=h(c.check,l,x,n)),p-=x,n+=x,G)break c}else c.head&&(c.head.name=null);c.length=0,c.mode=8;case 8:if(4096&c.flags){if(0===p)break c;x=0;do G=l[n+x++],c.head&&G&&c.length<65536&&(c.head.comment+=String.fromCharCode(G));while(G&&x<p);if(512&c.flags&&(c.check=h(c.check,l,x,n)),p-=x,n+=x,G)break c}else c.head&&(c.head.comment=null);c.mode=9;case 9:if(512&c.flags){for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(t!==(65535&c.check)){a.msg="header crc mismatch",c.mode=30;break}t=0,u=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=12;break;case 10:for(;u<32;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}a.adler=c.check=k(t),t=0,u=0,c.mode=11;case 11:if(0===c.havedict)return a.next_out=o,a.avail_out=s,a.next_in=n,a.avail_in=p,c.hold=t,c.bits=u,2;a.adler=c.check=1,c.mode=12;case 12:if(5===b||6===b)break c;case 13:if(c.last){t>>>=7&u,u-=7&u,c.mode=27;break}for(;u<3;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}switch(c.last=1&t,u-=1,3&(t>>>=1)){case 0:c.mode=14;break;case 1:if(!function(a){if(q){var b;for(d=new f.Buf32(512),e=new f.Buf32(32),b=0;b<144;)a.lens[b++]=8;for(;b<256;)a.lens[b++]=9;for(;b<280;)a.lens[b++]=7;for(;b<288;)a.lens[b++]=8;for(j(1,a.lens,0,288,d,0,a.work,{bits:9}),b=0;b<32;)a.lens[b++]=5;j(2,a.lens,0,32,e,0,a.work,{bits:5}),q=!1}a.lencode=d,a.lenbits=9,a.distcode=e,a.distbits=5}(c),c.mode=20,6===b){t>>>=2,u-=2;break c}break;case 2:c.mode=17;break;case 3:a.msg="invalid block type",c.mode=30}t>>>=2,u-=2;break;case 14:for(t>>>=7&u,u-=7&u;u<32;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if((65535&t)!=(t>>>16^65535)){a.msg="invalid stored block lengths",c.mode=30;break}if(c.length=65535&t,t=0,u=0,c.mode=15,6===b)break c;case 15:c.mode=16;case 16:if(x=c.length){if(x>p&&(x=p),x>s&&(x=s),0===x)break c;f.arraySet(m,l,n,x,o),p-=x,n+=x,s-=x,o+=x,c.length-=x;break}c.mode=12;break;case 17:for(;u<14;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(c.nlen=(31&t)+257,u-=5,c.ndist=(31&(t>>>=5))+1,u-=5,c.ncode=(15&(t>>>=5))+4,t>>>=4,u-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=30;break}c.have=0,c.mode=18;case 18:for(;c.have<c.ncode;){for(;u<3;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.lens[M[c.have++]]=7&t,t>>>=3,u-=3}for(;c.have<19;)c.lens[M[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,I={bits:c.lenbits},H=j(0,c.lens,0,19,c.lencode,0,c.work,I),c.lenbits=I.bits,H){a.msg="invalid code lengths set",c.mode=30;break}c.have=0,c.mode=19;case 19:for(;c.have<c.nlen+c.ndist;){for(;A=(K=c.lencode[t&(1<<c.lenbits)-1])>>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(C<16)t>>>=A,u-=A,c.lens[c.have++]=C;else{if(16===C){for(J=A+2;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(t>>>=A,u-=A,0===c.have){a.msg="invalid bit length repeat",c.mode=30;break}G=c.lens[c.have-1],x=3+(3&t),t>>>=2,u-=2}else if(17===C){for(J=A+3;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}t>>>=A,u-=A,G=0,x=3+(7&t),t>>>=3,u-=3}else{for(J=A+7;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}t>>>=A,u-=A,G=0,x=11+(127&t),t>>>=7,u-=7}if(c.have+x>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=30;break}for(;x--;)c.lens[c.have++]=G}}if(30===c.mode)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=30;break}if(c.lenbits=9,I={bits:c.lenbits},H=j(1,c.lens,0,c.nlen,c.lencode,0,c.work,I),c.lenbits=I.bits,H){a.msg="invalid literal/lengths set",c.mode=30;break}if(c.distbits=6,c.distcode=c.distdyn,I={bits:c.distbits},H=j(2,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,I),c.distbits=I.bits,H){a.msg="invalid distances set",c.mode=30;break}if(c.mode=20,6===b)break c;case 20:c.mode=21;case 21:if(p>=6&&s>=258){a.next_out=o,a.avail_out=s,a.next_in=n,a.avail_in=p,c.hold=t,c.bits=u,i(a,w),o=a.next_out,m=a.output,s=a.avail_out,n=a.next_in,l=a.input,p=a.avail_in,t=c.hold,u=c.bits,12===c.mode&&(c.back=-1);break}for(c.back=0;A=(K=c.lencode[t&(1<<c.lenbits)-1])>>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(B&&(240&B)==0){for(D=A,E=B,F=C;A=(K=c.lencode[F+((t&(1<<D+E)-1)>>D)])>>>24,B=K>>>16&255,C=65535&K,!(D+A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}t>>>=D,u-=D,c.back+=D}if(t>>>=A,u-=A,c.back+=A,c.length=C,0===B){c.mode=26;break}if(32&B){c.back=-1,c.mode=12;break}if(64&B){a.msg="invalid literal/length code",c.mode=30;break}c.extra=15&B,c.mode=22;case 22:if(c.extra){for(J=c.extra;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.length+=t&(1<<c.extra)-1,t>>>=c.extra,u-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=23;case 23:for(;A=(K=c.distcode[t&(1<<c.distbits)-1])>>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if((240&B)==0){for(D=A,E=B,F=C;A=(K=c.distcode[F+((t&(1<<D+E)-1)>>D)])>>>24,B=K>>>16&255,C=65535&K,!(D+A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}t>>>=D,u-=D,c.back+=D}if(t>>>=A,u-=A,c.back+=A,64&B){a.msg="invalid distance code",c.mode=30;break}c.offset=C,c.extra=15&B,c.mode=24;case 24:if(c.extra){for(J=c.extra;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.offset+=t&(1<<c.extra)-1,t>>>=c.extra,u-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=30;break}c.mode=25;case 25:if(0===s)break c;if(x=w-s,c.offset>x){if((x=c.offset-x)>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=30;break}x>c.wnext?(x-=c.wnext,y=c.wsize-x):y=c.wnext-x,x>c.length&&(x=c.length),z=c.window}else z=m,y=o-c.offset,x=c.length;x>s&&(x=s),s-=x,c.length-=x;do m[o++]=z[y++];while(--x);0===c.length&&(c.mode=21);break;case 26:if(0===s)break c;m[o++]=c.length,s--,c.mode=21;break;case 27:if(c.wrap){for(;u<32;){if(0===p)break c;p--,t|=l[n++]<<u,u+=8}if(w-=s,a.total_out+=w,c.total+=w,w&&(a.adler=c.check=c.flags?h(c.check,m,w,o-w):g(c.check,m,w,o-w)),w=s,(c.flags?t:k(t))!==c.check){a.msg="incorrect data check",c.mode=30;break}t=0,u=0}c.mode=28;case 28:if(c.wrap&&c.flags){for(;u<32;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(t!==(0|c.total)){a.msg="incorrect length check",c.mode=30;break}t=0,u=0}c.mode=29;case 29:H=1;break c;case 30:H=-3;break c;case 31:return -4;default:return -2}return(a.next_out=o,a.avail_out=s,a.next_in=n,a.avail_in=p,c.hold=t,c.bits=u,(c.wsize||w!==a.avail_out&&c.mode<30&&(c.mode<27||4!==b))&&r(a,a.output,a.next_out,w-a.avail_out))?(c.mode=31,-4):(v-=a.avail_in,w-=a.avail_out,a.total_in+=v,a.total_out+=w,c.total+=w,c.wrap&&w&&(a.adler=c.check=c.flags?h(c.check,m,w,a.next_out-w):g(c.check,m,w,a.next_out-w)),a.data_type=c.bits+64*!!c.last+128*(12===c.mode)+256*(20===c.mode||15===c.mode),(0===v&&0===w||4===b)&&0===H&&(H=-5),H)},b.inflateEnd=function(a){if(!a||!a.state)return -2;var b=a.state;return b.window&&(b.window=null),a.state=null,0},b.inflateGetHeader=function(a,b){var c;return a&&a.state&&(2&(c=a.state).wrap)!=0?(c.head=b,b.done=!1,0):-2},b.inflateSetDictionary=function(a,b){var c,d=b.length;return a&&a.state&&(0===(c=a.state).wrap||11===c.mode)?11===c.mode&&g(1,b,d,0)!==c.check?-3:r(a,b,d,d)?(c.mode=31,-4):(c.havedict=1,0):-2},b.inflateInfo="pako inflate (from Nodeca project)"},37492:(a,b,c)=>{var d=c(77880);b.w=function a(b){if("text"===b.type)return b.value;if(b.type===d.types.tab)return" ";var c="paragraph"===b.type?"\n\n":"";return(b.children||[]).map(a).join("")+c}},37521:(a,b,c)=>{"use strict";var d=c(10878),e=c(66560),f=c(8878),g=c(73315);class h{constructor(a,b=null){Object.defineProperty(this,g.NODE_TYPE,{value:g.PAIR}),this.key=a,this.value=b}clone(a){let{key:b,value:c}=this;return g.isNode(b)&&(b=b.clone(a)),g.isNode(c)&&(c=c.clone(a)),new h(b,c)}toJSON(a,b){let c=b?.mapAsMap?new Map:{};return f.addPairToJSMap(b,c,this)}toString(a,b,c){return a?.doc?e.stringifyPair(this,a,b,c):JSON.stringify(this)}}b.Pair=h,b.createPair=function(a,b,c){return new h(d.createNode(a,void 0,c),d.createNode(b,void 0,c))}},37857:a=>{"use strict";a.exports=function(a,b){var c=a.reduce,d=a.all;function e(){return d(this)}a.prototype.each=function(a){return c(this,a,b,0)._then(e,void 0,void 0,this,void 0)},a.prototype.mapSeries=function(a){return c(this,a,b,b)},a.each=function(a,d){return c(a,d,b,0)._then(e,void 0,void 0,a,void 0)},a.mapSeries=function(a,d){return c(a,d,b,b)}}},38141:(a,b)=>{"use strict";let c=Symbol("break visit"),d=Symbol("skip children"),e=Symbol("remove item");function f(a,b){"type"in a&&"document"===a.type&&(a={start:a.start,value:a.value}),function a(b,d,f){let g=f(d,b);if("symbol"==typeof g)return g;for(let h of["key","value"]){let i=d[h];if(i&&"items"in i){for(let d=0;d<i.items.length;++d){let g=a(Object.freeze(b.concat([[h,d]])),i.items[d],f);if("number"==typeof g)d=g-1;else{if(g===c)return c;g===e&&(i.items.splice(d,1),d-=1)}}"function"==typeof g&&"key"===h&&(g=g(d,b))}}return"function"==typeof g?g(d,b):g}(Object.freeze([]),a,b)}f.BREAK=c,f.SKIP=d,f.REMOVE=e,f.itemAtPath=(a,b)=>{let c=a;for(let[a,d]of b){let b=c?.[a];if(!b||!("items"in b))return;c=b.items[d]}return c},f.parentCollection=(a,b)=>{let c=f.itemAtPath(a,b.slice(0,-1)),d=b[b.length-1][0],e=c?.[d];if(e&&"items"in e)return e;throw Error("Parent collection not found")},b.visit=f},38418:(a,b,c)=>{"use strict";var d,e,f=c(20577);a.exports=s;var g=c(39629);s.ReadableState=r,c(94735).EventEmitter;var h=function(a,b){return a.listeners(b).length},i=c(47040),j=c(30444).Buffer,k=("u">typeof global?global:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){},l=Object.create(c(22362));l.inherits=c(50843);var m=c(28354),n=void 0;n=m&&m.debuglog?m.debuglog("stream"):function(){};var o=c(51394),p=c(15434);l.inherits(s,i);var q=["error","close","destroy","pause","resume"];function r(a,b){d=d||c(71848),a=a||{};var f=b instanceof d;this.objectMode=!!a.objectMode,f&&(this.objectMode=this.objectMode||!!a.readableObjectMode);var g=a.highWaterMark,h=a.readableHighWaterMark,i=this.objectMode?16:16384;g||0===g?this.highWaterMark=g:f&&(h||0===h)?this.highWaterMark=h:this.highWaterMark=i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new o,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=a.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,a.encoding&&(e||(e=c(47399).I),this.decoder=new e(a.encoding),this.encoding=a.encoding)}function s(a){if(d=d||c(71848),!(this instanceof s))return new s(a);this._readableState=new r(a,this),this.readable=!0,a&&("function"==typeof a.read&&(this._read=a.read),"function"==typeof a.destroy&&(this._destroy=a.destroy)),i.call(this)}function t(a,b,c,d,e){var f,g,h,i=a._readableState;return null===b?(i.reading=!1,function(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,w(a)}}(a,i)):(e||(h=function(a,b){var c;return j.isBuffer(b)||b instanceof k||"string"==typeof b||void 0===b||a.objectMode||(c=TypeError("Invalid non-string/buffer chunk")),c}(i,b)),h)?a.emit("error",h):i.objectMode||b&&b.length>0?("string"==typeof b||i.objectMode||Object.getPrototypeOf(b)===j.prototype||(g=b,b=j.from(g)),d?i.endEmitted?a.emit("error",Error("stream.unshift() after end event")):u(a,i,b,!0):i.ended?a.emit("error",Error("stream.push() after EOF")):(i.reading=!1,i.decoder&&!c?(b=i.decoder.write(b),i.objectMode||0!==b.length?u(a,i,b,!1):y(a,i)):u(a,i,b,!1))):d||(i.reading=!1),!(f=i).ended&&(f.needReadable||f.length<f.highWaterMark||0===f.length)}function u(a,b,c,d){b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,d?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&w(a)),y(a,b)}function v(a,b){var c;if(a<=0||0===b.length&&b.ended)return 0;if(b.objectMode)return 1;if(a!=a)if(b.flowing&&b.length)return b.buffer.head.data.length;else return b.length;return(a>b.highWaterMark&&((c=a)>=8388608?c=8388608:(c--,c|=c>>>1,c|=c>>>2,c|=c>>>4,c|=c>>>8,c|=c>>>16,c++),b.highWaterMark=c),a<=b.length)?a:b.ended?b.length:(b.needReadable=!0,0)}function w(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(n("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?f.nextTick(x,a):x(a))}function x(a){n("emit readable"),a.emit("readable"),C(a)}function y(a,b){b.readingMore||(b.readingMore=!0,f.nextTick(z,a,b))}function z(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length<b.highWaterMark&&(n("maybeReadMore read 0"),a.read(0),c!==b.length);)c=b.length;b.readingMore=!1}function A(a){n("readable nexttick read 0"),a.read(0)}function B(a,b){b.reading||(n("resume read 0"),a.read(0)),b.resumeScheduled=!1,b.awaitDrain=0,a.emit("resume"),C(a),b.flowing&&!b.reading&&a.read(0)}function C(a){var b=a._readableState;for(n("flow",b.flowing);b.flowing&&null!==a.read(););}function D(a,b){var c,d,e,f,g;return 0===b.length?null:(b.objectMode?c=b.buffer.shift():!a||a>=b.length?(c=b.decoder?b.buffer.join(""):1===b.buffer.length?b.buffer.head.data:b.buffer.concat(b.length),b.buffer.clear()):(d=a,e=b.buffer,f=b.decoder,d<e.head.data.length?(g=e.head.data.slice(0,d),e.head.data=e.head.data.slice(d)):g=d===e.head.data.length?e.shift():f?function(a,b){var c=b.head,d=1,e=c.data;for(a-=e.length;c=c.next;){var f=c.data,g=a>f.length?f.length:a;if(g===f.length?e+=f:e+=f.slice(0,a),0==(a-=g)){g===f.length?(++d,c.next?b.head=c.next:b.head=b.tail=null):(b.head=c,c.data=f.slice(g));break}++d}return b.length-=d,e}(d,e):function(a,b){var c=j.allocUnsafe(a),d=b.head,e=1;for(d.data.copy(c),a-=d.data.length;d=d.next;){var f=d.data,g=a>f.length?f.length:a;if(f.copy(c,c.length-a,0,g),0==(a-=g)){g===f.length?(++e,d.next?b.head=d.next:b.head=b.tail=null):(b.head=d,d.data=f.slice(g));break}++e}return b.length-=e,c}(d,e),c=g),c)}function E(a){var b=a._readableState;if(b.length>0)throw Error('"endReadable()" called on non-empty stream');b.endEmitted||(b.ended=!0,f.nextTick(F,b,a))}function F(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function G(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return -1}Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(a){this._readableState&&(this._readableState.destroyed=a)}}),s.prototype.destroy=p.destroy,s.prototype._undestroy=p.undestroy,s.prototype._destroy=function(a,b){this.push(null),b(a)},s.prototype.push=function(a,b){var c,d=this._readableState;return d.objectMode?c=!0:"string"==typeof a&&((b=b||d.defaultEncoding)!==d.encoding&&(a=j.from(a,b),b=""),c=!0),t(this,a,b,!1,c)},s.prototype.unshift=function(a){return t(this,a,null,!0,!1)},s.prototype.isPaused=function(){return!1===this._readableState.flowing},s.prototype.setEncoding=function(a){return e||(e=c(47399).I),this._readableState.decoder=new e(a),this._readableState.encoding=a,this},s.prototype.read=function(a){n("read",a),a=parseInt(a,10);var b,c=this._readableState,d=a;if(0!==a&&(c.emittedReadable=!1),0===a&&c.needReadable&&(c.length>=c.highWaterMark||c.ended))return n("read: emitReadable",c.length,c.ended),0===c.length&&c.ended?E(this):w(this),null;if(0===(a=v(a,c))&&c.ended)return 0===c.length&&E(this),null;var e=c.needReadable;return n("need readable",e),(0===c.length||c.length-a<c.highWaterMark)&&n("length less than watermark",e=!0),c.ended||c.reading?n("reading or ended",e=!1):e&&(n("do read"),c.reading=!0,c.sync=!0,0===c.length&&(c.needReadable=!0),this._read(c.highWaterMark),c.sync=!1,c.reading||(a=v(d,c))),null===(b=a>0?D(a,c):null)?(c.needReadable=!0,a=0):c.length-=a,0===c.length&&(c.ended||(c.needReadable=!0),d!==a&&c.ended&&E(this)),null!==b&&this.emit("data",b),b},s.prototype._read=function(a){this.emit("error",Error("_read() is not implemented"))},s.prototype.pipe=function(a,b){var c,d=this,e=this._readableState;switch(e.pipesCount){case 0:e.pipes=a;break;case 1:e.pipes=[e.pipes,a];break;default:e.pipes.push(a)}e.pipesCount+=1,n("pipe count=%d opts=%j",e.pipesCount,b);var i=b&&!1===b.end||a===process.stdout||a===process.stderr?s:j;function j(){n("onend"),a.end()}e.endEmitted?f.nextTick(i):d.once("end",i),a.on("unpipe",function b(c,f){n("onunpipe"),c===d&&f&&!1===f.hasUnpiped&&(f.hasUnpiped=!0,n("cleanup"),a.removeListener("close",q),a.removeListener("finish",r),a.removeListener("drain",k),a.removeListener("error",p),a.removeListener("unpipe",b),d.removeListener("end",j),d.removeListener("end",s),d.removeListener("data",o),l=!0,e.awaitDrain&&(!a._writableState||a._writableState.needDrain)&&k())});var k=(c=d,function(){var a=c._readableState;n("pipeOnDrain",a.awaitDrain),a.awaitDrain&&a.awaitDrain--,0===a.awaitDrain&&h(c,"data")&&(a.flowing=!0,C(c))});a.on("drain",k);var l=!1,m=!1;function o(b){n("ondata"),m=!1,!1!==a.write(b)||m||((1===e.pipesCount&&e.pipes===a||e.pipesCount>1&&-1!==G(e.pipes,a))&&!l&&(n("false write response, pause",e.awaitDrain),e.awaitDrain++,m=!0),d.pause())}function p(b){n("onerror",b),s(),a.removeListener("error",p),0===h(a,"error")&&a.emit("error",b)}function q(){a.removeListener("finish",r),s()}function r(){n("onfinish"),a.removeListener("close",q),s()}function s(){n("unpipe"),d.unpipe(a)}return d.on("data",o),!function(a,b,c){if("function"==typeof a.prependListener)return a.prependListener(b,c);a._events&&a._events[b]?g(a._events[b])?a._events[b].unshift(c):a._events[b]=[c,a._events[b]]:a.on(b,c)}(a,"error",p),a.once("close",q),a.once("finish",r),a.emit("pipe",d),e.flowing||(n("pipe resume"),d.resume()),a},s.prototype.unpipe=function(a){var b=this._readableState,c={hasUnpiped:!1};if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes||(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this,c)),this;if(!a){var d=b.pipes,e=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var f=0;f<e;f++)d[f].emit("unpipe",this,{hasUnpiped:!1});return this}var g=G(b.pipes,a);return -1===g||(b.pipes.splice(g,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this,c)),this},s.prototype.on=function(a,b){var c=i.prototype.on.call(this,a,b);if("data"===a)!1!==this._readableState.flowing&&this.resume();else if("readable"===a){var d=this._readableState;d.endEmitted||d.readableListening||(d.readableListening=d.needReadable=!0,d.emittedReadable=!1,d.reading?d.length&&w(this):f.nextTick(A,this))}return c},s.prototype.addListener=s.prototype.on,s.prototype.resume=function(){var a,b,c=this._readableState;return c.flowing||(n("resume"),c.flowing=!0,a=this,(b=c).resumeScheduled||(b.resumeScheduled=!0,f.nextTick(B,a,b))),this},s.prototype.pause=function(){return n("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(n("pause"),this._readableState.flowing=!1,this.emit("pause")),this},s.prototype.wrap=function(a){var b=this,c=this._readableState,d=!1;for(var e in a.on("end",function(){if(n("wrapped end"),c.decoder&&!c.ended){var a=c.decoder.end();a&&a.length&&b.push(a)}b.push(null)}),a.on("data",function(e){n("wrapped data"),c.decoder&&(e=c.decoder.write(e)),c.objectMode&&null==e||(c.objectMode||e&&e.length)&&(b.push(e)||(d=!0,a.pause()))}),a)void 0===this[e]&&"function"==typeof a[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));for(var f=0;f<q.length;f++)a.on(q[f],this.emit.bind(this,q[f]));return this._read=function(b){n("wrapped _read",b),d&&(d=!1,a.resume())},this},Object.defineProperty(s.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),s._fromList=D},38721:(a,b,c)=>{"use strict";var d=c(95241),e=c(67681),f=c(12244),g=c(62325);b.composeDoc=function(a,b,{offset:c,start:h,value:i,end:j},k){let l=Object.assign({_directives:b},a),m=new d.Document(void 0,l),n={atKey:!1,atRoot:!0,directives:m.directives,options:m.options,schema:m.schema},o=g.resolveProps(h,{indicator:"doc-start",next:i??j?.[0],offset:c,onError:k,parentIndent:0,startOnNewline:!0});o.found&&(m.directives.docStart=!0,i&&("block-map"===i.type||"block-seq"===i.type)&&!o.hasNewline&&k(o.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),m.contents=i?e.composeNode(n,i,o,k):e.composeEmptyNode(n,o.end,h,null,o,k);let p=m.contents.range[2],q=f.resolveEnd(j,p,!1,k);return q.comment&&(m.comment=q.comment),m.range=[c,p,q.offset],m}},38843:(a,b,c)=>{var d=c(84906),e=c(9920),f=c(35976);b.writeStyleMap=function(a,b){var c,d,e,j;return a.write(g,b),(c=a,d="word/_rels/document.xml.rels",j="{"+(e="http://schemas.openxmlformats.org/package/2006/relationships")+"}Relationship",c.read(d,"utf8").then(f.readString).then(function(a){return i(a.children,j,"Id",{Id:"rMammothStyleMap",Type:"http://schemas.zwobble.org/mammoth/style-map",Target:h}),c.write(d,f.writeString(a,{"":e}))})).then(function(){var b,c,d,e;return b=a,c="[Content_Types].xml",e="{"+(d="http://schemas.openxmlformats.org/package/2006/content-types")+"}Override",b.read(c,"utf8").then(f.readString).then(function(a){return i(a.children,e,"PartName",{PartName:h,ContentType:"text/prs.mammoth.style-map"}),b.write(c,f.writeString(a,{"":d}))})})},b.readStyleMap=function(a){return a.exists(g)?a.read(g,"utf8"):e.resolve(null)};var g="mammoth/style-map",h="/"+g;function i(a,b,c,e){var g=d.find(a,function(a){return a.name===b&&a.attributes[c]===e[c]});g?g.attributes=e:a.push(f.element(b,e))}},39531:a=>{"use strict";a.exports={isNode:"u">typeof Buffer,newBufferFrom:function(a,b){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,b);if("number"==typeof a)throw Error('The "data" argument must not be a number');return new Buffer(a,b)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var b=new Buffer(a);return b.fill(0),b},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&"function"==typeof a.on&&"function"==typeof a.pause&&"function"==typeof a.resume}}},39629:a=>{var b={}.toString;a.exports=Array.isArray||function(a){return"[object Array]"==b.call(a)}},40542:(a,b,c)=>{"use strict";var d=c(26701),e=c(12244);function f(a){let b,c;try{b=RegExp("(.*?)(?<![ ])[ ]*\r?\n","sy"),c=RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n","sy")}catch{b=/(.*?)[ \t]*\r?\n/sy,c=/[ \t]*(.*?)[ \t]*\r?\n/sy}let d=b.exec(a);if(!d)return a;let e=d[1],f=" ",g=b.lastIndex;for(c.lastIndex=g;d=c.exec(a);)""===d[1]?"\n"===f?e+=f:f="\n":(e+=f+d[1],f=" "),g=c.lastIndex;let h=/[ \t]*(.*)/sy;return h.lastIndex=g,d=h.exec(a),e+f+(d?.[1]??"")}let g={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"\x85",_:"\xa0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};b.resolveFlowScalar=function(a,b,c){let h,i,{offset:j,type:k,source:l,end:m}=a,n=(a,b,d)=>c(j+a,b,d);switch(k){case"scalar":h=d.Scalar.PLAIN,i=function(a,b){let c="";switch(a[0]){case" ":c="a tab character";break;case",":c="flow indicator character ,";break;case"%":c="directive indicator character %";break;case"|":case">":c=`block scalar indicator ${a[0]}`;break;case"@":case"`":c=`reserved character ${a[0]}`}return c&&b(0,"BAD_SCALAR_START",`Plain value cannot start with ${c}`),f(a)}(l,n);break;case"single-quoted-scalar":var o,p;h=d.Scalar.QUOTE_SINGLE,o=l,p=n,("'"!==o[o.length-1]||1===o.length)&&p(o.length,"MISSING_CHAR","Missing closing 'quote"),i=f(o.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":h=d.Scalar.QUOTE_DOUBLE,i=function(a,b){let c="";for(let d=1;d<a.length-1;++d){let e=a[d];if("\r"!==e||"\n"!==a[d+1])if("\n"===e){let{fold:b,offset:e}=function(a,b){let c="",d=a[b+1];for(;(" "===d||" "===d||"\n"===d||"\r"===d)&&("\r"!==d||"\n"===a[b+2]);)"\n"===d&&(c+="\n"),b+=1,d=a[b+1];return c||(c=" "),{fold:c,offset:b}}(a,d);c+=b,d=e}else if("\\"===e){let e=a[++d],f=g[e];if(f)c+=f;else if("\n"===e)for(e=a[d+1];" "===e||" "===e;)e=a[++d+1];else if("\r"===e&&"\n"===a[d+1])for(e=a[++d+1];" "===e||" "===e;)e=a[++d+1];else if("x"===e||"u"===e||"U"===e){let f="x"===e?2:"u"===e?4:8;c+=function(a,b,c,d){let e=a.substr(b,c),f=e.length===c&&/^[0-9a-fA-F]+$/.test(e)?parseInt(e,16):NaN;try{return String.fromCodePoint(f)}catch{let e=a.substr(b-2,c+2);return d(b-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${e}`),e}}(a,d+1,f,b),d+=f}else{let e=a.substr(d-1,2);b(d-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${e}`),c+=e}}else if(" "===e||" "===e){let b=d,f=a[d+1];for(;" "===f||" "===f;)f=a[++d+1];"\n"!==f&&("\r"!==f||"\n"!==a[d+2])&&(c+=d>b?a.slice(b,d+1):e)}else c+=e}return('"'!==a[a.length-1]||1===a.length)&&b(a.length,"MISSING_CHAR",'Missing closing "quote'),c}(l,n);break;default:return c(a,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${k}`),{value:"",type:null,comment:"",range:[j,j+l.length,j+l.length]}}let q=j+l.length,r=e.resolveEnd(m,q,b,c);return{value:i,type:h,comment:r.comment,range:[j,q,r.offset]}}},40686:(a,b)=>{"use strict";class c extends Error{constructor(a,b,c,d){super(),this.name=a,this.code=c,this.message=d,this.pos=b}}class d extends c{constructor(a,b,c){super("YAMLParseError",a,b,c)}}class e extends c{constructor(a,b,c){super("YAMLWarning",a,b,c)}}b.YAMLError=c,b.YAMLParseError=d,b.YAMLWarning=e,b.prettifyError=(a,b)=>c=>{if(-1===c.pos[0])return;c.linePos=c.pos.map(a=>b.linePos(a));let{line:d,col:e}=c.linePos[0];c.message+=` at line ${d}, column ${e}`;let f=e-1,g=a.substring(b.lineStarts[d-1],b.lineStarts[d]).replace(/[\n\r]+$/,"");if(f>=60&&g.length>80){let a=Math.min(f-39,g.length-79);g="…"+g.substring(a),f-=a-1}if(g.length>80&&(g=g.substring(0,79)+"…"),d>1&&/^ *$/.test(g.substring(0,f))){let c=a.substring(b.lineStarts[d-2],b.lineStarts[d-1]);c.length>80&&(c=c.substring(0,79)+"…\n"),g=c+g}if(/[^ ]/.test(g)){let a=1,b=c.linePos[1];b?.line===d&&b.col>e&&(a=Math.max(1,Math.min(b.col-e,80-f)));let h=" ".repeat(f)+"^".repeat(a);c.message+=`:
84
84
 
85
85
  ${g}
86
86
  ${h}