@umijs/bundler-webpack 4.0.0-rc.8 → 4.0.1

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 (84) hide show
  1. package/client/client/client.js +65 -37
  2. package/client/constants.js +9 -0
  3. package/compiled/babel-loader/index.js +2 -2
  4. package/compiled/copy-webpack-plugin/{576.index.js → 939.index.js} +11 -11
  5. package/compiled/copy-webpack-plugin/index.js +12 -12
  6. package/compiled/css-minimizer-webpack-plugin/index.js +7 -7
  7. package/compiled/cssnano/index.js +6 -6
  8. package/compiled/fork-ts-checker-webpack-plugin/index.js +7 -13
  9. package/compiled/{tapable → react-refresh}/LICENSE +6 -6
  10. package/compiled/react-refresh/index.js +9 -7
  11. package/compiled/react-refresh/package.json +1 -0
  12. package/compiled/webpack/BasicEffectRulePlugin.js +1 -0
  13. package/compiled/webpack/BasicMatcherRulePlugin.js +1 -0
  14. package/compiled/webpack/HotModuleReplacement.runtime.js +29 -14
  15. package/compiled/webpack/JavascriptHotModuleReplacement.runtime.js +4 -3
  16. package/compiled/webpack/ObjectMatcherRulePlugin.js +1 -0
  17. package/compiled/webpack/RuleSetCompiler.js +1 -0
  18. package/compiled/webpack/UseEffectRulePlugin.js +1 -0
  19. package/compiled/webpack/deepImports.json +6 -1
  20. package/compiled/webpack/index.js +3978 -3167
  21. package/compiled/webpack/types.d.ts +606 -171
  22. package/compiled/webpack-dev-middleware/index.js +8 -7
  23. package/compiled/webpack-manifest-plugin/index.js +1 -1
  24. package/dist/build.d.ts +1 -0
  25. package/dist/build.js +49 -56
  26. package/dist/cli.js +6 -15
  27. package/dist/client/client.js +52 -50
  28. package/dist/config/_sampleFeature.js +6 -17
  29. package/dist/config/assetRules.js +44 -55
  30. package/dist/config/bundleAnalyzerPlugin.js +12 -23
  31. package/dist/config/compressPlugin.js +89 -70
  32. package/dist/config/config.d.ts +2 -0
  33. package/dist/config/config.js +181 -179
  34. package/dist/config/copyPlugin.js +29 -40
  35. package/dist/config/cssRules.js +114 -83
  36. package/dist/config/definePlugin.js +11 -19
  37. package/dist/config/detectDeadCodePlugin.js +16 -21
  38. package/dist/config/fastRefreshPlugin.js +11 -22
  39. package/dist/config/forkTSCheckerPlugin.js +11 -22
  40. package/dist/config/harmonyLinkingErrorPlugin.js +3 -14
  41. package/dist/config/ignorePlugin.js +10 -21
  42. package/dist/config/javaScriptRules.d.ts +1 -0
  43. package/dist/config/javaScriptRules.js +152 -135
  44. package/dist/config/manifestPlugin.d.ts +1 -1
  45. package/dist/config/manifestPlugin.js +10 -18
  46. package/dist/config/miniCSSExtractPlugin.js +15 -23
  47. package/dist/config/nodePolyfill.js +14 -20
  48. package/dist/config/nodePrefixPlugin.d.ts +11 -0
  49. package/dist/config/nodePrefixPlugin.js +14 -0
  50. package/dist/config/progressPlugin.js +7 -18
  51. package/dist/config/purgecssWebpackPlugin.js +15 -26
  52. package/dist/config/speedMeasureWebpackPlugin.js +12 -23
  53. package/dist/config/ssrPlugin.d.ts +11 -0
  54. package/dist/config/ssrPlugin.js +66 -0
  55. package/dist/config/svgRules.js +44 -47
  56. package/dist/constants.d.ts +1 -0
  57. package/dist/constants.js +7 -1
  58. package/dist/dev.d.ts +4 -0
  59. package/dist/dev.js +115 -94
  60. package/dist/index.d.ts +3 -0
  61. package/dist/index.js +16 -0
  62. package/dist/loader/svgr.js +4 -13
  63. package/dist/loader/swc.js +9 -14
  64. package/dist/plugins/ProgressPlugin.js +3 -3
  65. package/dist/plugins/RuntimePublicPathPlugin.js +4 -1
  66. package/dist/schema.js +24 -8
  67. package/dist/server/server.d.ts +3 -1
  68. package/dist/server/server.js +165 -150
  69. package/dist/server/ws.d.ts +7 -2
  70. package/dist/swcPlugins/autoCSSModules.js +3 -1
  71. package/dist/swcPlugins/changeImportFromString.d.ts +2 -0
  72. package/dist/swcPlugins/changeImportFromString.js +10 -0
  73. package/dist/swcPlugins/lockCoreJS.js +3 -2
  74. package/dist/types.d.ts +3 -0
  75. package/dist/utils/getEsBuildTarget.d.ts +5 -0
  76. package/dist/utils/getEsBuildTarget.js +12 -0
  77. package/package.json +23 -21
  78. package/compiled/tapable/index.js +0 -1
  79. package/compiled/tapable/package.json +0 -1
  80. package/compiled/tapable/tapable.d.ts +0 -116
  81. package/dist/plugins/ESBuildCSSMinifyPlugin.d.ts +0 -11
  82. package/dist/plugins/ESBuildCSSMinifyPlugin.js +0 -63
  83. package/dist/plugins/ParcelCSSMinifyPlugin.d.ts +0 -10
  84. package/dist/plugins/ParcelCSSMinifyPlugin.js +0 -75
@@ -1,52 +1,52 @@
1
- (function(){var e={5108:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const n=r(7147);t.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync};function createFileSystemAdapter(e){if(e===undefined){return t.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}t.createFileSystemAdapter=createFileSystemAdapter},4512:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const r=process.versions.node.split(".");if(r[0]===undefined||r[1]===undefined){throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`)}const n=Number.parseInt(r[0],10);const s=Number.parseInt(r[1],10);const a=10;const o=10;const i=n>a;const c=n===a&&s>=o;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=i||c},2886:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Settings=t.scandirSync=t.scandir=void 0;const n=r(7729);const s=r(3487);const a=r(162);t.Settings=a.default;function scandir(e,t,r){if(typeof t==="function"){n.read(e,getSettings(),t);return}n.read(e,getSettings(t),r)}t.scandir=scandir;function scandirSync(e,t){const r=getSettings(t);return s.read(e,r)}t.scandirSync=scandirSync;function getSettings(e={}){if(e instanceof a.default){return e}return new a.default(e)}},7729:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readdir=t.readdirWithFileTypes=t.read=void 0;const n=r(8857);const s=r(8179);const a=r(4512);const o=r(3718);const i=r(7188);function read(e,t,r){if(!t.stats&&a.IS_SUPPORT_READDIR_WITH_FILE_TYPES){readdirWithFileTypes(e,t,r);return}readdir(e,t,r)}t.read=read;function readdirWithFileTypes(e,t,r){t.fs.readdir(e,{withFileTypes:true},((n,a)=>{if(n!==null){callFailureCallback(r,n);return}const o=a.map((r=>({dirent:r,name:r.name,path:i.joinPathSegments(e,r.name,t.pathSegmentSeparator)})));if(!t.followSymbolicLinks){callSuccessCallback(r,o);return}const c=o.map((e=>makeRplTaskEntry(e,t)));s(c,((e,t)=>{if(e!==null){callFailureCallback(r,e);return}callSuccessCallback(r,t)}))}))}t.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,((n,s)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=o.fs.createDirentFromStats(e.name,s);r(null,e)}))}}function readdir(e,t,r){t.fs.readdir(e,((a,c)=>{if(a!==null){callFailureCallback(r,a);return}const u=c.map((r=>{const s=i.joinPathSegments(e,r,t.pathSegmentSeparator);return e=>{n.stat(s,t.fsStatSettings,((n,a)=>{if(n!==null){e(n);return}const i={name:r,path:s,dirent:o.fs.createDirentFromStats(r,a)};if(t.stats){i.stats=a}e(null,i)}))}}));s(u,((e,t)=>{if(e!==null){callFailureCallback(r,e);return}callSuccessCallback(r,t)}))}))}t.readdir=readdir;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},7188:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=void 0;function joinPathSegments(e,t,r){if(e.endsWith(r)){return e+t}return e+r+t}t.joinPathSegments=joinPathSegments},3487:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readdir=t.readdirWithFileTypes=t.read=void 0;const n=r(8857);const s=r(4512);const a=r(3718);const o=r(7188);function read(e,t){if(!t.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(e,t)}return readdir(e,t)}t.read=read;function readdirWithFileTypes(e,t){const r=t.fs.readdirSync(e,{withFileTypes:true});return r.map((r=>{const n={dirent:r,name:r.name,path:o.joinPathSegments(e,r.name,t.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&t.followSymbolicLinks){try{const e=t.fs.statSync(n.path);n.dirent=a.fs.createDirentFromStats(n.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink){throw e}}}return n}))}t.readdirWithFileTypes=readdirWithFileTypes;function readdir(e,t){const r=t.fs.readdirSync(e);return r.map((r=>{const s=o.joinPathSegments(e,r,t.pathSegmentSeparator);const i=n.statSync(s,t.fsStatSettings);const c={name:r,path:s,dirent:a.fs.createDirentFromStats(r,i)};if(t.stats){c.stats=i}return c}))}t.readdir=readdir},162:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1017);const s=r(8857);const a=r(5108);class Settings{constructor(e={}){this._options=e;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=a.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,n.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new s.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t["default"]=Settings},1781:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDirentFromStats=void 0;class DirentFromStats{constructor(e,t){this.name=e;this.isBlockDevice=t.isBlockDevice.bind(t);this.isCharacterDevice=t.isCharacterDevice.bind(t);this.isDirectory=t.isDirectory.bind(t);this.isFIFO=t.isFIFO.bind(t);this.isFile=t.isFile.bind(t);this.isSocket=t.isSocket.bind(t);this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function createDirentFromStats(e,t){return new DirentFromStats(e,t)}t.createDirentFromStats=createDirentFromStats},3718:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fs=void 0;const n=r(1781);t.fs=n},814:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const n=r(7147);t.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync};function createFileSystemAdapter(e){if(e===undefined){return t.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}t.createFileSystemAdapter=createFileSystemAdapter},8857:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statSync=t.stat=t.Settings=void 0;const n=r(8562);const s=r(1612);const a=r(2905);t.Settings=a.default;function stat(e,t,r){if(typeof t==="function"){n.read(e,getSettings(),t);return}n.read(e,getSettings(t),r)}t.stat=stat;function statSync(e,t){const r=getSettings(t);return s.read(e,r)}t.statSync=statSync;function getSettings(e={}){if(e instanceof a.default){return e}return new a.default(e)}},8562:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t,r){t.fs.lstat(e,((n,s)=>{if(n!==null){callFailureCallback(r,n);return}if(!s.isSymbolicLink()||!t.followSymbolicLink){callSuccessCallback(r,s);return}t.fs.stat(e,((e,n)=>{if(e!==null){if(t.throwErrorOnBrokenSymbolicLink){callFailureCallback(r,e);return}callSuccessCallback(r,s);return}if(t.markSymbolicLink){n.isSymbolicLink=()=>true}callSuccessCallback(r,n)}))}))}t.read=read;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},1612:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t){const r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink){return r}try{const r=t.fs.statSync(e);if(t.markSymbolicLink){r.isSymbolicLink=()=>true}return r}catch(e){if(!t.throwErrorOnBrokenSymbolicLink){return r}throw e}}t.read=read},2905:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(814);class Settings{constructor(e={}){this._options=e;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=n.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t["default"]=Settings},4826:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Settings=t.walkStream=t.walkSync=t.walk=void 0;const n=r(6786);const s=r(7868);const a=r(1816);const o=r(9901);t.Settings=o.default;function walk(e,t,r){if(typeof t==="function"){new n.default(e,getSettings()).read(t);return}new n.default(e,getSettings(t)).read(r)}t.walk=walk;function walkSync(e,t){const r=getSettings(t);const n=new a.default(e,r);return n.read()}t.walkSync=walkSync;function walkStream(e,t){const r=getSettings(t);const n=new s.default(e,r);return n.read()}t.walkStream=walkStream;function getSettings(e={}){if(e instanceof o.default){return e}return new o.default(e)}},6786:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3540);class AsyncProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new n.default(this._root,this._settings);this._storage=[]}read(e){this._reader.onError((t=>{callFailureCallback(e,t)}));this._reader.onEntry((e=>{this._storage.push(e)}));this._reader.onEnd((()=>{callSuccessCallback(e,this._storage)}));this._reader.read()}}t["default"]=AsyncProvider;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},7868:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2781);const s=r(3540);class StreamProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new s.default(this._root,this._settings);this._stream=new n.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError((e=>{this._stream.emit("error",e)}));this._reader.onEntry((e=>{this._stream.push(e)}));this._reader.onEnd((()=>{this._stream.push(null)}));this._reader.read();return this._stream}}t["default"]=StreamProvider},1816:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(9458);class SyncProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new n.default(this._root,this._settings)}read(){return this._reader.read()}}t["default"]=SyncProvider},3540:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2361);const s=r(2886);const a=r(8495);const o=r(7485);const i=r(6762);class AsyncReader extends i.default{constructor(e,t){super(e,t);this._settings=t;this._scandir=s.scandir;this._emitter=new n.EventEmitter;this._queue=a(this._worker.bind(this),this._settings.concurrency);this._isFatalError=false;this._isDestroyed=false;this._queue.drain=()=>{if(!this._isFatalError){this._emitter.emit("end")}}}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)}));return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){const r={directory:e,base:t};this._queue.push(r,(e=>{if(e!==null){this._handleError(e)}}))}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,((r,n)=>{if(r!==null){t(r,undefined);return}for(const t of n){this._handleEntry(t,e.base)}t(null,undefined)}))}_handleError(e){if(this._isDestroyed||!o.isFatalError(this._settings,e)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",e)}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError){return}const r=e.path;if(t!==undefined){e.path=o.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)}if(o.isAppliedFilter(this._settings.entryFilter,e)){this._emitEntry(e)}if(e.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,e)){this._pushToQueue(r,t===undefined?undefined:e.path)}}_emitEntry(e){this._emitter.emit("entry",e)}}t["default"]=AsyncReader},7485:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function isFatalError(e,t){if(e.errorFilter===null){return true}return!e.errorFilter(t)}t.isFatalError=isFatalError;function isAppliedFilter(e,t){return e===null||e(t)}t.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(e,t){return e.split(/[/\\]/).join(t)}t.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(e,t,r){if(e===""){return t}if(e.endsWith(r)){return e+t}return e+r+t}t.joinPathSegments=joinPathSegments},6762:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7485);class Reader{constructor(e,t){this._root=e;this._settings=t;this._root=n.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}}t["default"]=Reader},9458:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2886);const s=r(7485);const a=r(6762);class SyncReader extends a.default{constructor(){super(...arguments);this._scandir=n.scandirSync;this._storage=[];this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(const e of this._queue.values()){this._handleDirectory(e.directory,e.base)}}_handleDirectory(e,t){try{const r=this._scandir(e,this._settings.fsScandirSettings);for(const e of r){this._handleEntry(e,t)}}catch(e){this._handleError(e)}}_handleError(e){if(!s.isFatalError(this._settings,e)){return}throw e}_handleEntry(e,t){const r=e.path;if(t!==undefined){e.path=s.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)}if(s.isAppliedFilter(this._settings.entryFilter,e)){this._pushToStorage(e)}if(e.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,e)){this._pushToQueue(r,t===undefined?undefined:e.path)}}_pushToStorage(e){this._storage.push(e)}}t["default"]=SyncReader},9901:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1017);const s=r(2886);class Settings{constructor(e={}){this._options=e;this.basePath=this._getValue(this._options.basePath,undefined);this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY);this.deepFilter=this._getValue(this._options.deepFilter,null);this.entryFilter=this._getValue(this._options.entryFilter,null);this.errorFilter=this._getValue(this._options.errorFilter,null);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,n.sep);this.fsScandirSettings=new s.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t["default"]=Settings},690:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formatNames=t.fastFormats=t.fullFormats=void 0;function fmtDef(e,t){return{validate:e,compare:t}}t.fullFormats={date:fmtDef(date,compareDate),time:fmtDef(time,compareTime),"date-time":fmtDef(date_time,compareDateTime),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:uri,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:regex,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:byte,int32:{type:"number",validate:validateInt32},int64:{type:"number",validate:validateInt64},float:{type:"number",validate:validateNumber},double:{type:"number",validate:validateNumber},password:true,binary:true};t.fastFormats={...t.fullFormats,date:fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,compareDate),time:fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareTime),"date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareDateTime),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};t.formatNames=Object.keys(t.fullFormats);function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;const n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function date(e){const t=r.exec(e);if(!t)return false;const s=+t[1];const a=+t[2];const o=+t[3];return a>=1&&a<=12&&o>=1&&o<=(a===2&&isLeapYear(s)?29:n[a])}function compareDate(e,t){if(!(e&&t))return undefined;if(e>t)return 1;if(e<t)return-1;return 0}const s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function time(e,t){const r=s.exec(e);if(!r)return false;const n=+r[1];const a=+r[2];const o=+r[3];const i=r[5];return(n<=23&&a<=59&&o<=59||n===23&&a===59&&o===60)&&(!t||i!=="")}function compareTime(e,t){if(!(e&&t))return undefined;const r=s.exec(e);const n=s.exec(t);if(!(r&&n))return undefined;e=r[1]+r[2]+r[3]+(r[4]||"");t=n[1]+n[2]+n[3]+(n[4]||"");if(e>t)return 1;if(e<t)return-1;return 0}const a=/t|\s/i;function date_time(e){const t=e.split(a);return t.length===2&&date(t[0])&&time(t[1],true)}function compareDateTime(e,t){if(!(e&&t))return undefined;const[r,n]=e.split(a);const[s,o]=t.split(a);const i=compareDate(r,s);if(i===undefined)return undefined;return i||compareTime(n,o)}const o=/\/|:/;const i=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function uri(e){return o.test(e)&&i.test(e)}const c=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function byte(e){c.lastIndex=0;return c.test(e)}const u=-(2**31);const l=2**31-1;function validateInt32(e){return Number.isInteger(e)&&e<=l&&e>=u}function validateInt64(e){return Number.isInteger(e)}function validateNumber(){return true}const f=/[^\\]\\Z/;function regex(e){if(f.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},1878:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(690);const s=r(3787);const a=r(3567);const o=new a.Name("fullFormats");const i=new a.Name("fastFormats");const formatsPlugin=(e,t={keywords:true})=>{if(Array.isArray(t)){addFormats(e,t,n.fullFormats,o);return e}const[r,a]=t.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,o];const c=t.formats||n.formatNames;addFormats(e,c,r,a);if(t.keywords)s.default(e);return e};formatsPlugin.get=(e,t="full")=>{const r=t==="fast"?n.fastFormats:n.fullFormats;const s=r[e];if(!s)throw new Error(`Unknown format "${e}"`);return s};function addFormats(e,t,r,n){var s;var o;(s=(o=e.opts.code).formats)!==null&&s!==void 0?s:o.formats=a._`require("ajv-formats/dist/formats").${n}`;for(const n of t)e.addFormat(n,r[n])}e.exports=t=formatsPlugin;Object.defineProperty(t,"__esModule",{value:true});t["default"]=formatsPlugin},3787:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formatLimitDefinition=void 0;const n=r(7100);const s=r(3567);const a=s.operators;const o={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}};const i={message:({keyword:e,schemaCode:t})=>s.str`should be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>s._`{comparison: ${o[e].okStr}, limit: ${t}}`};t.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:true,error:i,code(e){const{gen:t,data:r,schemaCode:a,keyword:i,it:c}=e;const{opts:u,self:l}=c;if(!u.validateFormats)return;const f=new n.KeywordCxt(c,l.RULES.all.format.definition,"format");if(f.$data)validate$DataFormat();else validateFormat();function validate$DataFormat(){const r=t.scopeValue("formats",{ref:l.formats,code:u.code.formats});const n=t.const("fmt",s._`${r}[${f.schemaCode}]`);e.fail$data(s.or(s._`typeof ${n} != "object"`,s._`${n} instanceof RegExp`,s._`typeof ${n}.compare != "function"`,compareCode(n)))}function validateFormat(){const r=f.schema;const n=l.formats[r];if(!n||n===true)return;if(typeof n!="object"||n instanceof RegExp||typeof n.compare!="function"){throw new Error(`"${i}": format "${r}" does not define "compare" function`)}const a=t.scopeValue("formats",{key:r,ref:n,code:u.code.formats?s._`${u.code.formats}${s.getProperty(r)}`:undefined});e.fail$data(compareCode(a))}function compareCode(e){return s._`${e}.compare(${r}, ${a}) ${o[i].fail} 0`}},dependencies:["format"]};const formatLimitPlugin=e=>{e.addKeyword(t.formatLimitDefinition);return e};t["default"]=formatLimitPlugin},3232:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getRangeDef(e){return()=>({keyword:e,type:"number",schemaType:"array",macro:function([t,r]){validateRangeSchema(t,r);return e==="range"?{minimum:t,maximum:r}:{exclusiveMinimum:t,exclusiveMaximum:r}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}});function validateRangeSchema(t,r){if(t>r||e==="exclusiveRange"&&t===r){throw new Error("There are no numbers in range")}}}t["default"]=getRangeDef},5733:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getRequiredDef(e){return()=>({keyword:e,type:"object",schemaType:"array",macro(t){if(t.length===0)return true;if(t.length===1)return{required:t};const r=e==="anyRequired"?"anyOf":"oneOf";return{[r]:t.map((e=>({required:[e]})))}},metaSchema:{type:"array",items:{type:"string"}}})}t["default"]=getRequiredDef},7651:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.usePattern=t.metaSchemaRef=void 0;const n=r(3567);const s="http://json-schema.org/schema";function metaSchemaRef({defaultMeta:e}={}){return e===false?{}:{$ref:e||s}}t.metaSchemaRef=metaSchemaRef;function usePattern({gen:e,it:{opts:t}},r,s=(t.unicodeRegExp?"u":"")){const a=new RegExp(r,s);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,n._)`new RegExp(${r}, ${s})`})}t.usePattern=usePattern},8072:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getDef(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(e,t){if(!e)return true;const r=Object.keys(t.properties);if(r.length===0)return true;return{required:r}},dependencies:["properties"]}}t["default"]=getDef;e.exports=getDef},5049:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(5733));const a=(0,s.default)("anyRequired");t["default"]=a;e.exports=a},710:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7651);function getDef(e){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(e){const t=[];for(const r in e)t.push(getSchema(r,e[r]));return{allOf:t}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,n.metaSchemaRef)(e)}}}t["default"]=getDef;function getSchema(e,t){const r=e.split("/");const n={};let s=n;for(let e=1;e<r.length;e++){let n=r[e];const a=e===r.length-1;n=unescapeJsonPointer(n);const o=s.properties={};let i;if(/[0-9]+/.test(n)){let e=+n;i=s.items=[];s.type=["object","array"];while(e--)i.push({})}else{s.type="object"}s=a?t:{};o[n]=s;if(i)i.push(s)}return n}function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}e.exports=getDef},3585:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);function getDef(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(e){const{schema:t,data:r}=e;const s=t.map((e=>(0,n._)`(${getData(e)}) === undefined`));e.fail((0,n.or)(...s));function getData(e){if(e==="")throw new Error("empty JSON pointer not allowed");const t=e.split("/");let s=r;const a=t.map(((e,t)=>t?s=(0,n._)`${s}${(0,n.getProperty)(unescapeJPSegment(e))}`:s));return(0,n.and)(...a)}},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}t["default"]=getDef;function unescapeJPSegment(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}e.exports=getDef},5362:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={};const n={timestamp:()=>()=>Date.now(),datetime:()=>()=>(new Date).toISOString(),date:()=>()=>(new Date).toISOString().slice(0,10),time:()=>()=>(new Date).toISOString().slice(11),random:()=>()=>Math.random(),randomint:e=>{var t;const r=(t=e===null||e===void 0?void 0:e.max)!==null&&t!==void 0?t:2;return()=>Math.floor(Math.random()*r)},seq:e=>{var t;const n=(t=e===null||e===void 0?void 0:e.name)!==null&&t!==void 0?t:"";r[n]||(r[n]=0);return()=>r[n]++}};const s=Object.assign(_getDef,{DEFAULTS:n});function _getDef(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:true,valid:true,compile(e,t,r){if(!r.opts.useDefaults||r.compositeRule)return()=>true;const n={};for(const t in e)n[t]=getDefault(e[t]);const s=r.opts.useDefaults==="empty";return t=>{for(const r in e){if(t[r]===undefined||s&&(t[r]===null||t[r]==="")){t[r]=n[r]()}}return true}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:false,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function getDefault(e){return typeof e=="object"?getObjDefault(e):getStrDefault(e)}function getObjDefault({func:e,args:t}){const r=n[e];assertDefined(e,r);return r(t)}function getStrDefault(e=""){const t=n[e];assertDefined(e,t);return t()}function assertDefined(e,t){if(!t)throw new Error(`invalid "dynamicDefaults" keyword property value: ${e}`)}t["default"]=s;e.exports=s},1508:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(3232));const a=(0,s.default)("exclusiveRange");t["default"]=a;e.exports=a},8683:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={Object:Object,Array:Array,Function:Function,Number:Number,String:String,Date:Date,RegExp:RegExp};if(typeof Buffer!="undefined")r.Buffer=Buffer;if(typeof Promise!="undefined")r.Promise=Promise;const n=Object.assign(_getDef,{CONSTRUCTORS:r});function _getDef(){return{keyword:"instanceof",schemaType:["string","array"],compile(e){if(typeof e=="string"){const t=getConstructor(e);return e=>e instanceof t}if(Array.isArray(e)){const t=e.map(getConstructor);return e=>{for(const r of t){if(e instanceof r)return true}return false}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}function getConstructor(e){const t=r[e];if(t)return t;throw new Error(`invalid "instanceof" keyword value ${e}`)}t["default"]=n;e.exports=n},4098:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(5733));const a=(0,s.default)("oneRequired");t["default"]=a;e.exports=a},2506:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(7651);const a={message:({params:{missingPattern:e}})=>(0,n.str)`should have property matching pattern '${e}'`,params:({params:{missingPattern:e}})=>(0,n._)`{missingPattern: ${e}}`};function getDef(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:a,code(e){const{gen:t,schema:r,data:a}=e;if(r.length===0)return;const o=t.let("valid",true);for(const e of r)validateProperties(e);function validateProperties(r){const i=t.let("matched",false);t.forIn("key",a,(a=>{t.assign(i,(0,n._)`${(0,s.usePattern)(e,r)}.test(${a})`);t.if(i,(()=>t.break()))}));e.setParams({missingPattern:r});t.assign(o,(0,n.and)(o,i));e.pass(o)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:true}}}t["default"]=getDef;e.exports=getDef},2466:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getDef(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(e){if(e.length===0)return true;if(e.length===1)return{not:{required:e}};return{not:{anyOf:e.map((e=>({required:[e]})))}}},metaSchema:{type:"array",items:{type:"string"}}}}t["default"]=getDef;e.exports=getDef},3389:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(3232));const a=(0,s.default)("range");t["default"]=a;e.exports=a},2870:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(7651);const a={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:true}},required:["pattern"],additionalProperties:false};const o=/^\/(.*)\/([gimuy]*)$/;function getDef(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(e){const{data:t,schema:r}=e;const a=getRegExp(r);e.pass((0,n._)`${a}.test(${t})`);function getRegExp(t){if(typeof t=="object")return(0,s.usePattern)(e,t.pattern,t.flags);const r=o.exec(t);if(r)return(0,s.usePattern)(e,r[1],r[2]);throw new Error("cannot parse string into RegExp")}},metaSchema:{anyOf:[{type:"string"},a]}}}t["default"]=getDef;e.exports=getDef},8491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(7651);const a={message:({params:{schemaProp:e}})=>e?(0,n.str)`should match case "${e}" schema`:(0,n.str)`should match default case schema`,params:({params:{schemaProp:e}})=>e?(0,n._)`{failingCase: ${e}}`:(0,n._)`{failingDefault: true}`};function getDef(e){const t=(0,s.metaSchemaRef)(e);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:true,error:a,dependencies:["selectCases"],code(e){const{gen:t,schemaCode:r,parentSchema:s}=e;e.block$data(n.nil,(()=>{const a=t.let("valid",true);const o=t.name("_valid");const i=t.const("value",(0,n._)`${r} === null ? "null" : ${r}`);t.if(false);for(const r in s.selectCases){e.setParams({schemaProp:r});t.elseIf((0,n._)`"" + ${i} == ${r}`);const s=e.subschema({keyword:"selectCases",schemaProp:r},o);e.mergeEvaluated(s,n.Name);t.assign(a,o)}t.else();if(s.selectDefault!==undefined){e.setParams({schemaProp:undefined});const r=e.subschema({keyword:"selectDefault"},o);e.mergeEvaluated(r,n.Name);t.assign(a,o)}t.endIf();e.pass(a)}))}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:t}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:t}]}t["default"]=getDef;e.exports=getDef},4436:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s={trimStart:e=>e.trimStart(),trimEnd:e=>e.trimEnd(),trimLeft:e=>e.trimStart(),trimRight:e=>e.trimEnd(),trim:e=>e.trim(),toLowerCase:e=>e.toLowerCase(),toUpperCase:e=>e.toUpperCase(),toEnumCase:(e,t)=>(t===null||t===void 0?void 0:t.hash[configKey(e)])||e};const a=Object.assign(_getDef,{transform:s});function _getDef(){return{keyword:"transform",schemaType:"array",before:"enum",code(e){const{gen:t,data:r,schema:a,parentSchema:o,it:i}=e;const{parentData:c,parentDataProperty:u}=i;const l=a;if(!l.length)return;let f;if(l.includes("toEnumCase")){const e=getEnumCaseCfg(o);f=t.scopeValue("obj",{ref:e,code:(0,n.stringify)(e)})}t.if((0,n._)`typeof ${r} == "string" && ${c} !== undefined`,(()=>{t.assign(r,transformExpr(l.slice()));t.assign((0,n._)`${c}[${u}]`,r)}));function transformExpr(e){if(!e.length)return r;const a=e.pop();if(!(a in s))throw new Error(`transform: unknown transformation ${a}`);const o=t.scopeValue("func",{ref:s[a],code:(0,n._)`require("ajv-keywords/dist/definitions/transform").transform${(0,n.getProperty)(a)}`});const i=transformExpr(e);return f&&a==="toEnumCase"?(0,n._)`${o}(${i}, ${f})`:(0,n._)`${o}(${i})`}},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(s)}}}}function getEnumCaseCfg(e){const t={hash:{}};if(!e.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const r of e.enum){if(typeof r!=="string")continue;const e=configKey(r);if(t.hash[e]){throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique')}t.hash[e]=r}return t}function configKey(e){return e.toLowerCase()}t["default"]=a;e.exports=a},9215:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=["undefined","string","number","object","function","boolean","symbol"];function getDef(){return{keyword:"typeof",schemaType:["string","array"],code(e){const{data:t,schema:r,schemaValue:s}=e;e.fail(typeof r=="string"?(0,n._)`typeof ${t} != ${r}`:(0,n._)`${s}.indexOf(typeof ${t}) < 0`)},metaSchema:{anyOf:[{type:"string",enum:s},{type:"array",items:{type:"string",enum:s}}]}}}t["default"]=getDef;e.exports=getDef},7659:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1424);const s=["number","integer","string","boolean","null"];function getDef(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(e,t){const r=getScalarKeys(e,t);return t=>{if(t.length<=1)return true;for(let s=0;s<e.length;s++){const a=e[s];if(r[s]){const e={};for(const r of t){if(!r||typeof r!="object")continue;let t=r[a];if(t&&typeof t=="object")continue;if(typeof t=="string")t='"'+t;if(e[t])return false;e[t]=true}}else{for(let e=t.length;e--;){const r=t[e];if(!r||typeof r!="object")continue;for(let s=e;s--;){const e=t[s];if(e&&typeof e=="object"&&n(r[a],e[a]))return false}}}}return true}},metaSchema:{type:"array",items:{type:"string"}}}}t["default"]=getDef;function getScalarKeys(e,t){return e.map((e=>{var r,n,a;const o=(a=(n=(r=t.items)===null||r===void 0?void 0:r.properties)===null||n===void 0?void 0:n[e])===null||a===void 0?void 0:a.type;return Array.isArray(o)?!o.includes("object")&&!o.includes("array"):s.includes(o)}))}e.exports=getDef},7320:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(7007));const ajvKeywords=(e,t)=>{if(Array.isArray(t)){for(const r of t)get(r)(e);return e}if(t){get(t)(e);return e}for(t in s.default)get(t)(e);return e};ajvKeywords.get=get;function get(e){const t=s.default[e];if(!t)throw new Error("Unknown keyword "+e);return t}t["default"]=ajvKeywords;e.exports=ajvKeywords;e.exports["default"]=ajvKeywords},4141:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(8072));const allRequired=e=>e.addKeyword((0,s.default)());t["default"]=allRequired;e.exports=allRequired},1924:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(5049));const anyRequired=e=>e.addKeyword((0,s.default)());t["default"]=anyRequired;e.exports=anyRequired},3831:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(710));const deepProperties=(e,t)=>e.addKeyword((0,s.default)(t));t["default"]=deepProperties;e.exports=deepProperties},8966:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(3585));const deepRequired=e=>e.addKeyword((0,s.default)());t["default"]=deepRequired;e.exports=deepRequired},2389:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(5362));const dynamicDefaults=e=>e.addKeyword((0,s.default)());t["default"]=dynamicDefaults;e.exports=dynamicDefaults},1244:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(1508));const exclusiveRange=e=>e.addKeyword((0,s.default)());t["default"]=exclusiveRange;e.exports=exclusiveRange},7007:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(9517));const a=n(r(1155));const o=n(r(7482));const i=n(r(1244));const c=n(r(7927));const u=n(r(8189));const l=n(r(9580));const f=n(r(4141));const d=n(r(1924));const p=n(r(949));const h=n(r(5525));const m=n(r(5921));const y=n(r(3831));const g=n(r(8966));const v=n(r(2389));const b=n(r(5641));const $={typeof:s.default,instanceof:a.default,range:o.default,exclusiveRange:i.default,regexp:c.default,transform:u.default,uniqueItemProperties:l.default,allRequired:f.default,anyRequired:d.default,oneRequired:p.default,patternRequired:h.default,prohibited:m.default,deepProperties:y.default,deepRequired:g.default,dynamicDefaults:v.default,select:b.default};t["default"]=$;e.exports=$},1155:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(8683));const instanceofPlugin=e=>e.addKeyword((0,s.default)());t["default"]=instanceofPlugin;e.exports=instanceofPlugin},949:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(4098));const oneRequired=e=>e.addKeyword((0,s.default)());t["default"]=oneRequired;e.exports=oneRequired},5525:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(2506));const patternRequired=e=>e.addKeyword((0,s.default)());t["default"]=patternRequired;e.exports=patternRequired},5921:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(2466));const prohibited=e=>e.addKeyword((0,s.default)());t["default"]=prohibited;e.exports=prohibited},7482:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(3389));const range=e=>e.addKeyword((0,s.default)());t["default"]=range;e.exports=range},7927:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(2870));const regexp=e=>e.addKeyword((0,s.default)());t["default"]=regexp;e.exports=regexp},5641:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(8491));const select=(e,t)=>{(0,s.default)(t).forEach((t=>e.addKeyword(t)));return e};t["default"]=select;e.exports=select},8189:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(4436));const transform=e=>e.addKeyword((0,s.default)());t["default"]=transform;e.exports=transform},9517:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(9215));const typeofPlugin=e=>e.addKeyword((0,s.default)());t["default"]=typeofPlugin;e.exports=typeofPlugin},9580:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(7659));const uniqueItemProperties=e=>e.addKeyword((0,s.default)());t["default"]=uniqueItemProperties;e.exports=uniqueItemProperties},7100:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(9632);const s=r(7522);const a=r(7939);const o=r(1062);const i=["/properties"];const c="http://json-schema.org/draft-07/schema";class Ajv extends n.default{_addVocabularies(){super._addVocabularies();s.default.forEach((e=>this.addVocabulary(e)));if(this.opts.discriminator)this.addKeyword(a.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();if(!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(o,i):o;this.addMetaSchema(e,c,false);this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:undefined)}}e.exports=t=Ajv;Object.defineProperty(t,"__esModule",{value:true});t["default"]=Ajv;var u=r(6513);Object.defineProperty(t,"KeywordCxt",{enumerable:true,get:function(){return u.KeywordCxt}});var l=r(3567);Object.defineProperty(t,"_",{enumerable:true,get:function(){return l._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return l.str}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return l.stringify}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return l.nil}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return l.Name}});Object.defineProperty(t,"CodeGen",{enumerable:true,get:function(){return l.CodeGen}})},7588:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.regexpCode=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class _CodeOrName{}t._CodeOrName=_CodeOrName;t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Name extends _CodeOrName{constructor(e){super();if(!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}}t.Name=Name;class _Code extends _CodeOrName{constructor(e){super();this._items=typeof e==="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce(((e,t)=>{if(t instanceof Name)e[t.str]=(e[t.str]||0)+1;return e}),{})}}t._Code=_Code;t.nil=new _Code("");function _(e,...t){const r=[e[0]];let n=0;while(n<t.length){addCodeArg(r,t[n]);r.push(e[++n])}return new _Code(r)}t._=_;const r=new _Code("+");function str(e,...t){const n=[safeStringify(e[0])];let s=0;while(s<t.length){n.push(r);addCodeArg(n,t[s]);n.push(r,safeStringify(e[++s]))}optimize(n);return new _Code(n)}t.str=str;function addCodeArg(e,t){if(t instanceof _Code)e.push(...t._items);else if(t instanceof Name)e.push(t);else e.push(interpolate(t))}t.addCodeArg=addCodeArg;function optimize(e){let t=1;while(t<e.length-1){if(e[t]===r){const r=mergeExprItems(e[t-1],e[t+1]);if(r!==undefined){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function mergeExprItems(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string"){if(t instanceof Name||e[e.length-1]!=='"')return;if(typeof t!="string")return`${e.slice(0,-1)}${t}"`;if(t[0]==='"')return e.slice(0,-1)+t.slice(1);return}if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Name))return`"${e}${t.slice(1)}`;return}function strConcat(e,t){return t.emptyStr()?e:e.emptyStr()?t:str`${e}${t}`}t.strConcat=strConcat;function interpolate(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:safeStringify(Array.isArray(e)?e.join(","):e)}function stringify(e){return new _Code(safeStringify(e))}t.stringify=stringify;function safeStringify(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=safeStringify;function getProperty(e){return typeof e=="string"&&t.IDENTIFIER.test(e)?new _Code(`.${e}`):_`[${e}]`}t.getProperty=getProperty;function regexpCode(e){return new _Code(e.toString())}t.regexpCode=regexpCode},3567:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=r(7588);const s=r(504);var a=r(7588);Object.defineProperty(t,"_",{enumerable:true,get:function(){return a._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return a.str}});Object.defineProperty(t,"strConcat",{enumerable:true,get:function(){return a.strConcat}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return a.nil}});Object.defineProperty(t,"getProperty",{enumerable:true,get:function(){return a.getProperty}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return a.stringify}});Object.defineProperty(t,"regexpCode",{enumerable:true,get:function(){return a.regexpCode}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return a.Name}});var o=r(504);Object.defineProperty(t,"Scope",{enumerable:true,get:function(){return o.Scope}});Object.defineProperty(t,"ValueScope",{enumerable:true,get:function(){return o.ValueScope}});Object.defineProperty(t,"ValueScopeName",{enumerable:true,get:function(){return o.ValueScopeName}});Object.defineProperty(t,"varKinds",{enumerable:true,get:function(){return o.varKinds}});t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class Node{optimizeNodes(){return this}optimizeNames(e,t){return this}}class Def extends Node{constructor(e,t,r){super();this.varKind=e;this.name=t;this.rhs=r}render({es5:e,_n:t}){const r=e?s.varKinds.var:this.varKind;const n=this.rhs===undefined?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(!e[this.name.str])return;if(this.rhs)this.rhs=optimizeExpr(this.rhs,e,t);return this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class Assign extends Node{constructor(e,t,r){super();this.lhs=e;this.rhs=t;this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(this.lhs instanceof n.Name&&!e[this.lhs.str]&&!this.sideEffects)return;this.rhs=optimizeExpr(this.rhs,e,t);return this}get names(){const e=this.lhs instanceof n.Name?{}:{...this.lhs.names};return addExprNames(e,this.rhs)}}class AssignOp extends Assign{constructor(e,t,r,n){super(e,r,n);this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class Label extends Node{constructor(e){super();this.label=e;this.names={}}render({_n:e}){return`${this.label}:`+e}}class Break extends Node{constructor(e){super();this.label=e;this.names={}}render({_n:e}){const t=this.label?` ${this.label}`:"";return`break${t};`+e}}class Throw extends Node{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class AnyCode extends Node{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:undefined}optimizeNames(e,t){this.code=optimizeExpr(this.code,e,t);return this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class ParentNode extends Node{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;while(t--){const r=e[t].optimizeNodes();if(Array.isArray(r))e.splice(t,1,...r);else if(r)e[t]=r;else e.splice(t,1)}return e.length>0?this:undefined}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;while(n--){const s=r[n];if(s.optimizeNames(e,t))continue;subtractNames(e,s.names);r.splice(n,1)}return r.length>0?this:undefined}get names(){return this.nodes.reduce(((e,t)=>addNames(e,t.names)),{})}}class BlockNode extends ParentNode{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class Root extends ParentNode{}class Else extends BlockNode{}Else.kind="else";class If extends BlockNode{constructor(e,t){super(t);this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);if(this.else)t+="else "+this.else.render(e);return t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(e===true)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new Else(e):e}if(t){if(e===false)return t instanceof If?t:t.nodes;if(this.nodes.length)return this;return new If(not(e),t instanceof If?[t]:t.nodes)}if(e===false||!this.nodes.length)return undefined;return this}optimizeNames(e,t){var r;this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(e,t);if(!(super.optimizeNames(e,t)||this.else))return;this.condition=optimizeExpr(this.condition,e,t);return this}get names(){const e=super.names;addExprNames(e,this.condition);if(this.else)addNames(e,this.else.names);return e}}If.kind="if";class For extends BlockNode{}For.kind="for";class ForLoop extends For{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;this.iteration=optimizeExpr(this.iteration,e,t);return this}get names(){return addNames(super.names,this.iteration.names)}}class ForRange extends For{constructor(e,t,r,n){super();this.varKind=e;this.name=t;this.from=r;this.to=n}render(e){const t=e.es5?s.varKinds.var:this.varKind;const{name:r,from:n,to:a}=this;return`for(${t} ${r}=${n}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){const e=addExprNames(super.names,this.from);return addExprNames(e,this.to)}}class ForIter extends For{constructor(e,t,r,n){super();this.loop=e;this.varKind=t;this.name=r;this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;this.iterable=optimizeExpr(this.iterable,e,t);return this}get names(){return addNames(super.names,this.iterable.names)}}class Func extends BlockNode{constructor(e,t,r){super();this.name=e;this.args=t;this.async=r}render(e){const t=this.async?"async ":"";return`${t}function ${this.name}(${this.args})`+super.render(e)}}Func.kind="func";class Return extends ParentNode{render(e){return"return "+super.render(e)}}Return.kind="return";class Try extends BlockNode{render(e){let t="try"+super.render(e);if(this.catch)t+=this.catch.render(e);if(this.finally)t+=this.finally.render(e);return t}optimizeNodes(){var e,t;super.optimizeNodes();(e=this.catch)===null||e===void 0?void 0:e.optimizeNodes();(t=this.finally)===null||t===void 0?void 0:t.optimizeNodes();return this}optimizeNames(e,t){var r,n;super.optimizeNames(e,t);(r=this.catch)===null||r===void 0?void 0:r.optimizeNames(e,t);(n=this.finally)===null||n===void 0?void 0:n.optimizeNames(e,t);return this}get names(){const e=super.names;if(this.catch)addNames(e,this.catch.names);if(this.finally)addNames(e,this.finally.names);return e}}class Catch extends BlockNode{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}Catch.kind="catch";class Finally extends BlockNode{render(e){return"finally"+super.render(e)}}Finally.kind="finally";class CodeGen{constructor(e,t={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...t,_n:t.lines?"\n":""};this._extScope=e;this._scope=new s.Scope({parent:e});this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);const n=this._values[r.prefix]||(this._values[r.prefix]=new Set);n.add(r);return r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const s=this._scope.toName(t);if(r!==undefined&&n)this._constants[s.str]=r;this._leafNode(new Def(e,s,r));return s}const(e,t,r){return this._def(s.varKinds.const,e,t,r)}let(e,t,r){return this._def(s.varKinds.let,e,t,r)}var(e,t,r){return this._def(s.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new Assign(e,t,r))}add(e,r){return this._leafNode(new AssignOp(e,t.operators.ADD,r))}code(e){if(typeof e=="function")e();else if(e!==n.nil)this._leafNode(new AnyCode(e));return this}object(...e){const t=["{"];for(const[r,s]of e){if(t.length>1)t.push(",");t.push(r);if(r!==s||this.opts.es5){t.push(":");(0,n.addCodeArg)(t,s)}}t.push("}");return new n._Code(t)}if(e,t,r){this._blockNode(new If(e));if(t&&r){this.code(t).else().code(r).endIf()}else if(t){this.code(t).endIf()}else if(r){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(e){return this._elseNode(new If(e))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(e,t){this._blockNode(e);if(t)this.code(t).endFor();return this}for(e,t){return this._for(new ForLoop(e),t)}forRange(e,t,r,n,a=(this.opts.es5?s.varKinds.var:s.varKinds.let)){const o=this._scope.toName(e);return this._for(new ForRange(a,o,t,r),(()=>n(o)))}forOf(e,t,r,a=s.varKinds.const){const o=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,n._)`${e}.length`,(t=>{this.var(o,(0,n._)`${e}[${t}]`);r(o)}))}return this._for(new ForIter("of",a,o,t),(()=>r(o)))}forIn(e,t,r,a=(this.opts.es5?s.varKinds.var:s.varKinds.const)){if(this.opts.ownProperties){return this.forOf(e,(0,n._)`Object.keys(${t})`,r)}const o=this._scope.toName(e);return this._for(new ForIter("in",a,o,t),(()=>r(o)))}endFor(){return this._endBlockNode(For)}label(e){return this._leafNode(new Label(e))}break(e){return this._leafNode(new Break(e))}return(e){const t=new Return;this._blockNode(t);this.code(e);if(t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new Try;this._blockNode(n);this.code(e);if(t){const e=this.name("e");this._currNode=n.catch=new Catch(e);t(e)}if(r){this._currNode=n.finally=new Finally;this.code(r)}return this._endBlockNode(Catch,Finally)}throw(e){return this._leafNode(new Throw(e))}block(e,t){this._blockStarts.push(this._nodes.length);if(e)this.code(e).endBlock(t);return this}endBlock(e){const t=this._blockStarts.pop();if(t===undefined)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||e!==undefined&&r!==e){throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`)}this._nodes.length=t;return this}func(e,t=n.nil,r,s){this._blockNode(new Func(e,t,r));if(s)this.code(s).endFunc();return this}endFunc(){return this._endBlockNode(Func)}optimize(e=1){while(e-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(e){this._currNode.nodes.push(e);return this}_blockNode(e){this._currNode.nodes.push(e);this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof If)){throw new Error('CodeGen: "else" without "if"')}this._currNode=t.else=e;return this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}}t.CodeGen=CodeGen;function addNames(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function addExprNames(e,t){return t instanceof n._CodeOrName?addNames(e,t.names):e}function optimizeExpr(e,t,r){if(e instanceof n.Name)return replaceName(e);if(!canOptimize(e))return e;return new n._Code(e._items.reduce(((e,t)=>{if(t instanceof n.Name)t=replaceName(t);if(t instanceof n._Code)e.push(...t._items);else e.push(t);return e}),[]));function replaceName(e){const n=r[e.str];if(n===undefined||t[e.str]!==1)return e;delete t[e.str];return n}function canOptimize(e){return e instanceof n._Code&&e._items.some((e=>e instanceof n.Name&&t[e.str]===1&&r[e.str]!==undefined))}}function subtractNames(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function not(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,n._)`!${par(e)}`}t.not=not;const i=mappend(t.operators.AND);function and(...e){return e.reduce(i)}t.and=and;const c=mappend(t.operators.OR);function or(...e){return e.reduce(c)}t.or=or;function mappend(e){return(t,r)=>t===n.nil?r:r===n.nil?t:(0,n._)`${par(t)} ${e} ${par(r)}`}function par(e){return e instanceof n.Name?e:(0,n._)`(${e})`}},504:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=r(7588);class ValueError extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}}var s;(function(e){e[e["Started"]=0]="Started";e[e["Completed"]=1]="Completed"})(s=t.UsedValueState||(t.UsedValueState={}));t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class Scope{constructor({prefixes:e,parent:t}={}){this._names={};this._prefixes=e;this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){const t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,r;if(((r=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||r===void 0?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e)){throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`)}return this._names[e]={prefix:e,index:0}}}t.Scope=Scope;class ValueScopeName extends n.Name{constructor(e,t){super(t);this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e;this.scopePath=(0,n._)`.${new n.Name(t)}[${r}]`}}t.ValueScopeName=ValueScopeName;const a=(0,n._)`\n`;class ValueScope extends Scope{constructor(e){super(e);this._values={};this._scope=e.scope;this.opts={...e,_n:e.lines?a:n.nil}}get(){return this._scope}name(e){return new ValueScopeName(e,this._newName(e))}value(e,t){var r;if(t.ref===undefined)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e);const{prefix:s}=n;const a=(r=t.key)!==null&&r!==void 0?r:t.ref;let o=this._values[s];if(o){const e=o.get(a);if(e)return e}else{o=this._values[s]=new Map}o.set(a,n);const i=this._scope[s]||(this._scope[s]=[]);const c=i.length;i[c]=t.ref;n.setValue(t,{property:s,itemIndex:c});return n}getValue(e,t){const r=this._values[e];if(!r)return;return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(t.scopePath===undefined)throw new Error(`CodeGen: name "${t}" has no value`);return(0,n._)`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(e.value===undefined)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,a={},o){let i=n.nil;for(const c in e){const u=e[c];if(!u)continue;const l=a[c]=a[c]||new Map;u.forEach((e=>{if(l.has(e))return;l.set(e,s.Started);let a=r(e);if(a){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;i=(0,n._)`${i}${r} ${e} = ${a};${this.opts._n}`}else if(a=o===null||o===void 0?void 0:o(e)){i=(0,n._)`${i}${a}${this.opts._n}`}else{throw new ValueError(e)}l.set(e,s.Completed)}))}return i}}t.ValueScope=ValueScope},2967:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=r(3567);const s=r(8637);const a=r(8736);t.keywordError={message:({keyword:e})=>(0,n.str)`must pass "${e}" keyword validation`};t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,n.str)`"${e}" keyword must be ${t} ($data)`:(0,n.str)`"${e}" keyword is invalid ($data)`};function reportError(e,r=t.keywordError,s,a){const{it:o}=e;const{gen:i,compositeRule:c,allErrors:u}=o;const l=errorObjectCode(e,r,s);if(a!==null&&a!==void 0?a:c||u){addError(i,l)}else{returnErrors(o,(0,n._)`[${l}]`)}}t.reportError=reportError;function reportExtraError(e,r=t.keywordError,n){const{it:s}=e;const{gen:o,compositeRule:i,allErrors:c}=s;const u=errorObjectCode(e,r,n);addError(o,u);if(!(i||c)){returnErrors(s,a.default.vErrors)}}t.reportExtraError=reportExtraError;function resetErrorsCount(e,t){e.assign(a.default.errors,t);e.if((0,n._)`${a.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign((0,n._)`${a.default.vErrors}.length`,t)),(()=>e.assign(a.default.vErrors,null)))))}t.resetErrorsCount=resetErrorsCount;function extendErrors({gen:e,keyword:t,schemaValue:r,data:s,errsCount:o,it:i}){if(o===undefined)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",o,a.default.errors,(o=>{e.const(c,(0,n._)`${a.default.vErrors}[${o}]`);e.if((0,n._)`${c}.instancePath === undefined`,(()=>e.assign((0,n._)`${c}.instancePath`,(0,n.strConcat)(a.default.instancePath,i.errorPath))));e.assign((0,n._)`${c}.schemaPath`,(0,n.str)`${i.errSchemaPath}/${t}`);if(i.opts.verbose){e.assign((0,n._)`${c}.schema`,r);e.assign((0,n._)`${c}.data`,s)}}))}t.extendErrors=extendErrors;function addError(e,t){const r=e.const("err",t);e.if((0,n._)`${a.default.vErrors} === null`,(()=>e.assign(a.default.vErrors,(0,n._)`[${r}]`)),(0,n._)`${a.default.vErrors}.push(${r})`);e.code((0,n._)`${a.default.errors}++`)}function returnErrors(e,t){const{gen:r,validateName:s,schemaEnv:a}=e;if(a.$async){r.throw((0,n._)`new ${e.ValidationError}(${t})`)}else{r.assign((0,n._)`${s}.errors`,t);r.return(false)}}const o={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function errorObjectCode(e,t,r){const{createErrors:s}=e.it;if(s===false)return(0,n._)`{}`;return errorObject(e,t,r)}function errorObject(e,t,r={}){const{gen:n,it:s}=e;const a=[errorInstancePath(s,r),errorSchemaPath(e,r)];extraErrorProps(e,t,a);return n.object(...a)}function errorInstancePath({errorPath:e},{instancePath:t}){const r=t?(0,n.str)`${e}${(0,s.getErrorPath)(t,s.Type.Str)}`:e;return[a.default.instancePath,(0,n.strConcat)(a.default.instancePath,r)]}function errorSchemaPath({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:a}){let i=a?t:(0,n.str)`${t}/${e}`;if(r){i=(0,n.str)`${i}${(0,s.getErrorPath)(r,s.Type.Str)}`}return[o.schemaPath,i]}function extraErrorProps(e,{params:t,message:r},s){const{keyword:i,data:c,schemaValue:u,it:l}=e;const{opts:f,propertyName:d,topSchemaRef:p,schemaPath:h}=l;s.push([o.keyword,i],[o.params,typeof t=="function"?t(e):t||(0,n._)`{}`]);if(f.messages){s.push([o.message,typeof r=="function"?r(e):r])}if(f.verbose){s.push([o.schema,u],[o.parentSchema,(0,n._)`${p}${h}`],[a.default.data,c])}if(d)s.push([o.propertyName,d])}},7945:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=r(3567);const s=r(9123);const a=r(8736);const o=r(6022);const i=r(8637);const c=r(6513);const u=r(6890);class SchemaEnv{constructor(e){var t;this.refs={};this.dynamicAnchors={};let r;if(typeof e.schema=="object")r=e.schema;this.schema=e.schema;this.schemaId=e.schemaId;this.root=e.root||this;this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,o.normalizeId)(r===null||r===void 0?void 0:r[e.schemaId||"$id"]);this.schemaPath=e.schemaPath;this.localRefs=e.localRefs;this.meta=e.meta;this.$async=r===null||r===void 0?void 0:r.$async;this.refs={}}}t.SchemaEnv=SchemaEnv;function compileSchema(e){const t=getCompilingSchema.call(this,e);if(t)return t;const r=(0,o.getFullPath)(e.root.baseId);const{es5:i,lines:u}=this.opts.code;const{ownProperties:l}=this.opts;const f=new n.CodeGen(this.scope,{es5:i,lines:u,ownProperties:l});let d;if(e.$async){d=f.scopeValue("Error",{ref:s.default,code:(0,n._)`require("ajv/dist/runtime/validation_error").default`})}const p=f.scopeName("validate");e.validateName=p;const h={gen:f,allErrors:this.opts.allErrors,data:a.default.data,parentData:a.default.parentData,parentDataProperty:a.default.parentDataProperty,dataNames:[a.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:f.scopeValue("schema",this.opts.code.source===true?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:p,ValidationError:d,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,n._)`""`,opts:this.opts,self:this};let m;try{this._compilations.add(e);(0,c.validateFunctionCode)(h);f.optimize(this.opts.code.optimize);const t=f.toString();m=`${f.scopeRefs(a.default.scope)}return ${t}`;if(this.opts.code.process)m=this.opts.code.process(m,e);const r=new Function(`${a.default.self}`,`${a.default.scope}`,m);const s=r(this,this.scope.get());this.scope.value(p,{ref:s});s.errors=null;s.schema=e.schema;s.schemaEnv=e;if(e.$async)s.$async=true;if(this.opts.code.source===true){s.source={validateName:p,validateCode:t,scopeValues:f._values}}if(this.opts.unevaluated){const{props:e,items:t}=h;s.evaluated={props:e instanceof n.Name?undefined:e,items:t instanceof n.Name?undefined:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name};if(s.source)s.source.evaluated=(0,n.stringify)(s.evaluated)}e.validate=s;return e}catch(t){delete e.validate;delete e.validateName;if(m)this.logger.error("Error compiling schema, function code:",m);throw t}finally{this._compilations.delete(e)}}t.compileSchema=compileSchema;function resolveRef(e,t,r){var n;r=(0,o.resolveUrl)(t,r);const s=e.refs[r];if(s)return s;let a=resolve.call(this,e,r);if(a===undefined){const s=(n=e.localRefs)===null||n===void 0?void 0:n[r];const{schemaId:o}=this.opts;if(s)a=new SchemaEnv({schema:s,schemaId:o,root:e,baseId:t})}if(a===undefined)return;return e.refs[r]=inlineOrCompile.call(this,a)}t.resolveRef=resolveRef;function inlineOrCompile(e){if((0,o.inlineRef)(e.schema,this.opts.inlineRefs))return e.schema;return e.validate?e:compileSchema.call(this,e)}function getCompilingSchema(e){for(const t of this._compilations){if(sameSchemaEnv(t,e))return t}}t.getCompilingSchema=getCompilingSchema;function sameSchemaEnv(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function resolve(e,t){let r;while(typeof(r=this.refs[t])=="string")t=r;return r||this.schemas[t]||resolveSchema.call(this,e,t)}function resolveSchema(e,t){const r=u.parse(t);const n=(0,o._getFullPath)(r);let s=(0,o.getFullPath)(e.baseId);if(Object.keys(e.schema).length>0&&n===s){return getJsonPointer.call(this,r,e)}const a=(0,o.normalizeId)(n);const i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const t=resolveSchema.call(this,e,i);if(typeof(t===null||t===void 0?void 0:t.schema)!=="object")return;return getJsonPointer.call(this,r,t)}if(typeof(i===null||i===void 0?void 0:i.schema)!=="object")return;if(!i.validate)compileSchema.call(this,i);if(a===(0,o.normalizeId)(t)){const{schema:t}=i;const{schemaId:r}=this.opts;const n=t[r];if(n)s=(0,o.resolveUrl)(s,n);return new SchemaEnv({schema:t,schemaId:r,root:e,baseId:s})}return getJsonPointer.call(this,r,i)}t.resolveSchema=resolveSchema;const l=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,{baseId:t,schema:r,root:n}){var s;if(((s=e.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(const n of e.fragment.slice(1).split("/")){if(typeof r==="boolean")return;const e=r[(0,i.unescapeFragment)(n)];if(e===undefined)return;r=e;const s=typeof r==="object"&&r[this.opts.schemaId];if(!l.has(n)&&s){t=(0,o.resolveUrl)(t,s)}}let a;if(typeof r!="boolean"&&r.$ref&&!(0,i.schemaHasRulesButRef)(r,this.RULES)){const e=(0,o.resolveUrl)(t,r.$ref);a=resolveSchema.call(this,n,e)}const{schemaId:c}=this.opts;a=a||new SchemaEnv({schema:r,schemaId:c,root:n,baseId:t});if(a.schema!==a.root.schema)return a;return undefined}},8736:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t["default"]=s},6138:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6022);class MissingRefError extends Error{constructor(e,t,r){super(r||`can't resolve reference ${t} from id ${e}`);this.missingRef=(0,n.resolveUrl)(e,t);this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(this.missingRef))}}t["default"]=MissingRefError},6022:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=r(8637);const s=r(1424);const a=r(8117);const o=r(6890);const i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function inlineRef(e,t=true){if(typeof e=="boolean")return true;if(t===true)return!hasRef(e);if(!t)return false;return countKeys(e)<=t}t.inlineRef=inlineRef;const c=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(e){for(const t in e){if(c.has(t))return true;const r=e[t];if(Array.isArray(r)&&r.some(hasRef))return true;if(typeof r=="object"&&hasRef(r))return true}return false}function countKeys(e){let t=0;for(const r in e){if(r==="$ref")return Infinity;t++;if(i.has(r))continue;if(typeof e[r]=="object"){(0,n.eachItem)(e[r],(e=>t+=countKeys(e)))}if(t===Infinity)return Infinity}return t}function getFullPath(e="",t){if(t!==false)e=normalizeId(e);const r=o.parse(e);return _getFullPath(r)}t.getFullPath=getFullPath;function _getFullPath(e){return o.serialize(e).split("#")[0]+"#"}t._getFullPath=_getFullPath;const u=/#\/?$/;function normalizeId(e){return e?e.replace(u,""):""}t.normalizeId=normalizeId;function resolveUrl(e,t){t=normalizeId(t);return o.resolve(e,t)}t.resolveUrl=resolveUrl;const l=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(e,t){if(typeof e=="boolean")return{};const{schemaId:r}=this.opts;const n=normalizeId(e[r]||t);const i={"":n};const c=getFullPath(n,false);const u={};const f=new Set;a(e,{allKeys:true},((e,t,n,s)=>{if(s===undefined)return;const a=c+t;let d=i[s];if(typeof e[r]=="string")d=addRef.call(this,e[r]);addAnchor.call(this,e.$anchor);addAnchor.call(this,e.$dynamicAnchor);i[t]=d;function addRef(t){t=normalizeId(d?o.resolve(d,t):t);if(f.has(t))throw ambiguos(t);f.add(t);let r=this.refs[t];if(typeof r=="string")r=this.refs[r];if(typeof r=="object"){checkAmbiguosRef(e,r.schema,t)}else if(t!==normalizeId(a)){if(t[0]==="#"){checkAmbiguosRef(e,u[t],t);u[t]=e}else{this.refs[t]=a}}return t}function addAnchor(e){if(typeof e=="string"){if(!l.test(e))throw new Error(`invalid anchor "${e}"`);addRef.call(this,`#${e}`)}}}));return u;function checkAmbiguosRef(e,t,r){if(t!==undefined&&!s(e,t))throw ambiguos(r)}function ambiguos(e){return new Error(`reference "${e}" resolves to more than one schema`)}}t.getSchemaRefs=getSchemaRefs},6636:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRules=t.isJSONType=void 0;const r=["string","number","integer","boolean","null","object","array"];const n=new Set(r);function isJSONType(e){return typeof e=="string"&&n.has(e)}t.isJSONType=isJSONType;function getRules(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:true,boolean:true,null:true},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}t.getRules=getRules},8637:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=r(3567);const s=r(7588);function toHash(e){const t={};for(const r of e)t[r]=true;return t}t.toHash=toHash;function alwaysValidSchema(e,t){if(typeof t=="boolean")return t;if(Object.keys(t).length===0)return true;checkUnknownRules(e,t);return!schemaHasRules(t,e.self.RULES.all)}t.alwaysValidSchema=alwaysValidSchema;function checkUnknownRules(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if(typeof t==="boolean")return;const s=n.RULES.keywords;for(const r in t){if(!s[r])checkStrictMode(e,`unknown keyword: "${r}"`)}}t.checkUnknownRules=checkUnknownRules;function schemaHasRules(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(t[r])return true;return false}t.schemaHasRules=schemaHasRules;function schemaHasRulesButRef(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(r!=="$ref"&&t.all[r])return true;return false}t.schemaHasRulesButRef=schemaHasRulesButRef;function schemaRefOrVal({topSchemaRef:e,schemaPath:t},r,s,a){if(!a){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,n._)`${r}`}return(0,n._)`${e}${t}${(0,n.getProperty)(s)}`}t.schemaRefOrVal=schemaRefOrVal;function unescapeFragment(e){return unescapeJsonPointer(decodeURIComponent(e))}t.unescapeFragment=unescapeFragment;function escapeFragment(e){return encodeURIComponent(escapeJsonPointer(e))}t.escapeFragment=escapeFragment;function escapeJsonPointer(e){if(typeof e=="number")return`${e}`;return e.replace(/~/g,"~0").replace(/\//g,"~1")}t.escapeJsonPointer=escapeJsonPointer;function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}t.unescapeJsonPointer=unescapeJsonPointer;function eachItem(e,t){if(Array.isArray(e)){for(const r of e)t(r)}else{t(e)}}t.eachItem=eachItem;function makeMergeEvaluated({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:s}){return(a,o,i,c)=>{const u=i===undefined?o:i instanceof n.Name?(o instanceof n.Name?e(a,o,i):t(a,o,i),i):o instanceof n.Name?(t(a,i,o),o):r(o,i);return c===n.Name&&!(u instanceof n.Name)?s(a,u):u}}t.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(e,t,r)=>e.if((0,n._)`${r} !== true && ${t} !== undefined`,(()=>{e.if((0,n._)`${t} === true`,(()=>e.assign(r,true)),(()=>e.assign(r,(0,n._)`${r} || {}`).code((0,n._)`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if((0,n._)`${r} !== true`,(()=>{if(t===true){e.assign(r,true)}else{e.assign(r,(0,n._)`${r} || {}`);setEvaluated(e,r,t)}})),mergeValues:(e,t)=>e===true?true:{...e,...t},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(e,t,r)=>e.if((0,n._)`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,(0,n._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if((0,n._)`${r} !== true`,(()=>e.assign(r,t===true?true:(0,n._)`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>e===true?true:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function evaluatedPropsToName(e,t){if(t===true)return e.var("props",true);const r=e.var("props",(0,n._)`{}`);if(t!==undefined)setEvaluated(e,r,t);return r}t.evaluatedPropsToName=evaluatedPropsToName;function setEvaluated(e,t,r){Object.keys(r).forEach((r=>e.assign((0,n._)`${t}${(0,n.getProperty)(r)}`,true)))}t.setEvaluated=setEvaluated;const a={};function useFunc(e,t){return e.scopeValue("func",{ref:t,code:a[t.code]||(a[t.code]=new s._Code(t.code))})}t.useFunc=useFunc;var o;(function(e){e[e["Num"]=0]="Num";e[e["Str"]=1]="Str"})(o=t.Type||(t.Type={}));function getErrorPath(e,t,r){if(e instanceof n.Name){const s=t===o.Num;return r?s?(0,n._)`"[" + ${e} + "]"`:(0,n._)`"['" + ${e} + "']"`:s?(0,n._)`"/" + ${e}`:(0,n._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,n.getProperty)(e).toString():"/"+escapeJsonPointer(e)}t.getErrorPath=getErrorPath;function checkStrictMode(e,t,r=e.opts.strictSchema){if(!r)return;t=`strict mode: ${t}`;if(r===true)throw new Error(t);e.self.logger.warn(t)}t.checkStrictMode=checkStrictMode},9301:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0;function schemaHasRulesForType({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==true&&shouldUseGroup(e,n)}t.schemaHasRulesForType=schemaHasRulesForType;function shouldUseGroup(e,t){return t.rules.some((t=>shouldUseRule(e,t)))}t.shouldUseGroup=shouldUseGroup;function shouldUseRule(e,t){var r;return e[t.keyword]!==undefined||((r=t.definition.implements)===null||r===void 0?void 0:r.some((t=>e[t]!==undefined)))}t.shouldUseRule=shouldUseRule},8824:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=r(2967);const s=r(3567);const a=r(8736);const o={message:"boolean schema is false"};function topBoolOrEmptySchema(e){const{gen:t,schema:r,validateName:n}=e;if(r===false){falseSchemaError(e,false)}else if(typeof r=="object"&&r.$async===true){t.return(a.default.data)}else{t.assign((0,s._)`${n}.errors`,null);t.return(true)}}t.topBoolOrEmptySchema=topBoolOrEmptySchema;function boolOrEmptySchema(e,t){const{gen:r,schema:n}=e;if(n===false){r.var(t,false);falseSchemaError(e)}else{r.var(t,true)}}t.boolOrEmptySchema=boolOrEmptySchema;function falseSchemaError(e,t){const{gen:r,data:s}=e;const a={gen:r,keyword:"false schema",data:s,schema:false,schemaCode:false,schemaValue:false,params:{},it:e};(0,n.reportError)(a,o,undefined,t)}},4554:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=r(6636);const s=r(9301);const a=r(2967);const o=r(3567);const i=r(8637);var c;(function(e){e[e["Correct"]=0]="Correct";e[e["Wrong"]=1]="Wrong"})(c=t.DataType||(t.DataType={}));function getSchemaTypes(e){const t=getJSONTypes(e.type);const r=t.includes("null");if(r){if(e.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==undefined){throw new Error('"nullable" cannot be used without "type"')}if(e.nullable===true)t.push("null")}return t}t.getSchemaTypes=getSchemaTypes;function getJSONTypes(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}t.getJSONTypes=getJSONTypes;function coerceAndCheckDataType(e,t){const{gen:r,data:n,opts:a}=e;const o=coerceToTypes(t,a.coerceTypes);const i=t.length>0&&!(o.length===0&&t.length===1&&(0,s.schemaHasRulesForType)(e,t[0]));if(i){const s=checkDataTypes(t,n,a.strictNumbers,c.Wrong);r.if(s,(()=>{if(o.length)coerceData(e,t,o);else reportTypeError(e)}))}return i}t.coerceAndCheckDataType=coerceAndCheckDataType;const u=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(e,t){return t?e.filter((e=>u.has(e)||t==="array"&&e==="array")):[]}function coerceData(e,t,r){const{gen:n,data:s,opts:a}=e;const i=n.let("dataType",(0,o._)`typeof ${s}`);const c=n.let("coerced",(0,o._)`undefined`);if(a.coerceTypes==="array"){n.if((0,o._)`${i} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,(()=>n.assign(s,(0,o._)`${s}[0]`).assign(i,(0,o._)`typeof ${s}`).if(checkDataTypes(t,s,a.strictNumbers),(()=>n.assign(c,s)))))}n.if((0,o._)`${c} !== undefined`);for(const e of r){if(u.has(e)||e==="array"&&a.coerceTypes==="array"){coerceSpecificType(e)}}n.else();reportTypeError(e);n.endIf();n.if((0,o._)`${c} !== undefined`,(()=>{n.assign(s,c);assignParentData(e,c)}));function coerceSpecificType(e){switch(e){case"string":n.elseIf((0,o._)`${i} == "number" || ${i} == "boolean"`).assign(c,(0,o._)`"" + ${s}`).elseIf((0,o._)`${s} === null`).assign(c,(0,o._)`""`);return;case"number":n.elseIf((0,o._)`${i} == "boolean" || ${s} === null
1
+ (function(){var e={6491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const n=r(7147);t.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync};function createFileSystemAdapter(e){if(e===undefined){return t.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}t.createFileSystemAdapter=createFileSystemAdapter},6325:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const r=process.versions.node.split(".");if(r[0]===undefined||r[1]===undefined){throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`)}const n=Number.parseInt(r[0],10);const s=Number.parseInt(r[1],10);const a=10;const o=10;const i=n>a;const c=n===a&&s>=o;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=i||c},1659:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Settings=t.scandirSync=t.scandir=void 0;const n=r(4715);const s=r(8907);const a=r(3486);t.Settings=a.default;function scandir(e,t,r){if(typeof t==="function"){n.read(e,getSettings(),t);return}n.read(e,getSettings(t),r)}t.scandir=scandir;function scandirSync(e,t){const r=getSettings(t);return s.read(e,r)}t.scandirSync=scandirSync;function getSettings(e={}){if(e instanceof a.default){return e}return new a.default(e)}},4715:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readdir=t.readdirWithFileTypes=t.read=void 0;const n=r(3645);const s=r(5341);const a=r(6325);const o=r(946);const i=r(3253);function read(e,t,r){if(!t.stats&&a.IS_SUPPORT_READDIR_WITH_FILE_TYPES){readdirWithFileTypes(e,t,r);return}readdir(e,t,r)}t.read=read;function readdirWithFileTypes(e,t,r){t.fs.readdir(e,{withFileTypes:true},((n,a)=>{if(n!==null){callFailureCallback(r,n);return}const o=a.map((r=>({dirent:r,name:r.name,path:i.joinPathSegments(e,r.name,t.pathSegmentSeparator)})));if(!t.followSymbolicLinks){callSuccessCallback(r,o);return}const c=o.map((e=>makeRplTaskEntry(e,t)));s(c,((e,t)=>{if(e!==null){callFailureCallback(r,e);return}callSuccessCallback(r,t)}))}))}t.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,((n,s)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=o.fs.createDirentFromStats(e.name,s);r(null,e)}))}}function readdir(e,t,r){t.fs.readdir(e,((a,c)=>{if(a!==null){callFailureCallback(r,a);return}const u=c.map((r=>{const s=i.joinPathSegments(e,r,t.pathSegmentSeparator);return e=>{n.stat(s,t.fsStatSettings,((n,a)=>{if(n!==null){e(n);return}const i={name:r,path:s,dirent:o.fs.createDirentFromStats(r,a)};if(t.stats){i.stats=a}e(null,i)}))}}));s(u,((e,t)=>{if(e!==null){callFailureCallback(r,e);return}callSuccessCallback(r,t)}))}))}t.readdir=readdir;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},3253:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=void 0;function joinPathSegments(e,t,r){if(e.endsWith(r)){return e+t}return e+r+t}t.joinPathSegments=joinPathSegments},8907:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readdir=t.readdirWithFileTypes=t.read=void 0;const n=r(3645);const s=r(6325);const a=r(946);const o=r(3253);function read(e,t){if(!t.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(e,t)}return readdir(e,t)}t.read=read;function readdirWithFileTypes(e,t){const r=t.fs.readdirSync(e,{withFileTypes:true});return r.map((r=>{const n={dirent:r,name:r.name,path:o.joinPathSegments(e,r.name,t.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&t.followSymbolicLinks){try{const e=t.fs.statSync(n.path);n.dirent=a.fs.createDirentFromStats(n.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink){throw e}}}return n}))}t.readdirWithFileTypes=readdirWithFileTypes;function readdir(e,t){const r=t.fs.readdirSync(e);return r.map((r=>{const s=o.joinPathSegments(e,r,t.pathSegmentSeparator);const i=n.statSync(s,t.fsStatSettings);const c={name:r,path:s,dirent:a.fs.createDirentFromStats(r,i)};if(t.stats){c.stats=i}return c}))}t.readdir=readdir},3486:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1017);const s=r(3645);const a=r(6491);class Settings{constructor(e={}){this._options=e;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=a.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,n.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new s.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t["default"]=Settings},2926:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDirentFromStats=void 0;class DirentFromStats{constructor(e,t){this.name=e;this.isBlockDevice=t.isBlockDevice.bind(t);this.isCharacterDevice=t.isCharacterDevice.bind(t);this.isDirectory=t.isDirectory.bind(t);this.isFIFO=t.isFIFO.bind(t);this.isFile=t.isFile.bind(t);this.isSocket=t.isSocket.bind(t);this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function createDirentFromStats(e,t){return new DirentFromStats(e,t)}t.createDirentFromStats=createDirentFromStats},946:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fs=void 0;const n=r(2926);t.fs=n},2243:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const n=r(7147);t.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync};function createFileSystemAdapter(e){if(e===undefined){return t.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}t.createFileSystemAdapter=createFileSystemAdapter},3645:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statSync=t.stat=t.Settings=void 0;const n=r(6948);const s=r(6750);const a=r(1917);t.Settings=a.default;function stat(e,t,r){if(typeof t==="function"){n.read(e,getSettings(),t);return}n.read(e,getSettings(t),r)}t.stat=stat;function statSync(e,t){const r=getSettings(t);return s.read(e,r)}t.statSync=statSync;function getSettings(e={}){if(e instanceof a.default){return e}return new a.default(e)}},6948:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t,r){t.fs.lstat(e,((n,s)=>{if(n!==null){callFailureCallback(r,n);return}if(!s.isSymbolicLink()||!t.followSymbolicLink){callSuccessCallback(r,s);return}t.fs.stat(e,((e,n)=>{if(e!==null){if(t.throwErrorOnBrokenSymbolicLink){callFailureCallback(r,e);return}callSuccessCallback(r,s);return}if(t.markSymbolicLink){n.isSymbolicLink=()=>true}callSuccessCallback(r,n)}))}))}t.read=read;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},6750:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t){const r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink){return r}try{const r=t.fs.statSync(e);if(t.markSymbolicLink){r.isSymbolicLink=()=>true}return r}catch(e){if(!t.throwErrorOnBrokenSymbolicLink){return r}throw e}}t.read=read},1917:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2243);class Settings{constructor(e={}){this._options=e;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=n.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t["default"]=Settings},4328:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Settings=t.walkStream=t.walkSync=t.walk=void 0;const n=r(4306);const s=r(2686);const a=r(8918);const o=r(8831);t.Settings=o.default;function walk(e,t,r){if(typeof t==="function"){new n.default(e,getSettings()).read(t);return}new n.default(e,getSettings(t)).read(r)}t.walk=walk;function walkSync(e,t){const r=getSettings(t);const n=new a.default(e,r);return n.read()}t.walkSync=walkSync;function walkStream(e,t){const r=getSettings(t);const n=new s.default(e,r);return n.read()}t.walkStream=walkStream;function getSettings(e={}){if(e instanceof o.default){return e}return new o.default(e)}},4306:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1293);class AsyncProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new n.default(this._root,this._settings);this._storage=[]}read(e){this._reader.onError((t=>{callFailureCallback(e,t)}));this._reader.onEntry((e=>{this._storage.push(e)}));this._reader.onEnd((()=>{callSuccessCallback(e,this._storage)}));this._reader.read()}}t["default"]=AsyncProvider;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},2686:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2781);const s=r(1293);class StreamProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new s.default(this._root,this._settings);this._stream=new n.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError((e=>{this._stream.emit("error",e)}));this._reader.onEntry((e=>{this._stream.push(e)}));this._reader.onEnd((()=>{this._stream.push(null)}));this._reader.read();return this._stream}}t["default"]=StreamProvider},8918:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(9476);class SyncProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new n.default(this._root,this._settings)}read(){return this._reader.read()}}t["default"]=SyncProvider},1293:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2361);const s=r(1659);const a=r(4241);const o=r(1652);const i=r(8376);class AsyncReader extends i.default{constructor(e,t){super(e,t);this._settings=t;this._scandir=s.scandir;this._emitter=new n.EventEmitter;this._queue=a(this._worker.bind(this),this._settings.concurrency);this._isFatalError=false;this._isDestroyed=false;this._queue.drain=()=>{if(!this._isFatalError){this._emitter.emit("end")}}}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)}));return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){const r={directory:e,base:t};this._queue.push(r,(e=>{if(e!==null){this._handleError(e)}}))}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,((r,n)=>{if(r!==null){t(r,undefined);return}for(const t of n){this._handleEntry(t,e.base)}t(null,undefined)}))}_handleError(e){if(this._isDestroyed||!o.isFatalError(this._settings,e)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",e)}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError){return}const r=e.path;if(t!==undefined){e.path=o.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)}if(o.isAppliedFilter(this._settings.entryFilter,e)){this._emitEntry(e)}if(e.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,e)){this._pushToQueue(r,t===undefined?undefined:e.path)}}_emitEntry(e){this._emitter.emit("entry",e)}}t["default"]=AsyncReader},1652:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function isFatalError(e,t){if(e.errorFilter===null){return true}return!e.errorFilter(t)}t.isFatalError=isFatalError;function isAppliedFilter(e,t){return e===null||e(t)}t.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(e,t){return e.split(/[/\\]/).join(t)}t.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(e,t,r){if(e===""){return t}if(e.endsWith(r)){return e+t}return e+r+t}t.joinPathSegments=joinPathSegments},8376:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1652);class Reader{constructor(e,t){this._root=e;this._settings=t;this._root=n.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}}t["default"]=Reader},9476:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1659);const s=r(1652);const a=r(8376);class SyncReader extends a.default{constructor(){super(...arguments);this._scandir=n.scandirSync;this._storage=[];this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(const e of this._queue.values()){this._handleDirectory(e.directory,e.base)}}_handleDirectory(e,t){try{const r=this._scandir(e,this._settings.fsScandirSettings);for(const e of r){this._handleEntry(e,t)}}catch(e){this._handleError(e)}}_handleError(e){if(!s.isFatalError(this._settings,e)){return}throw e}_handleEntry(e,t){const r=e.path;if(t!==undefined){e.path=s.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)}if(s.isAppliedFilter(this._settings.entryFilter,e)){this._pushToStorage(e)}if(e.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,e)){this._pushToQueue(r,t===undefined?undefined:e.path)}}_pushToStorage(e){this._storage.push(e)}}t["default"]=SyncReader},8831:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1017);const s=r(1659);class Settings{constructor(e={}){this._options=e;this.basePath=this._getValue(this._options.basePath,undefined);this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY);this.deepFilter=this._getValue(this._options.deepFilter,null);this.entryFilter=this._getValue(this._options.entryFilter,null);this.errorFilter=this._getValue(this._options.errorFilter,null);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,n.sep);this.fsScandirSettings=new s.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t["default"]=Settings},3471:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formatNames=t.fastFormats=t.fullFormats=void 0;function fmtDef(e,t){return{validate:e,compare:t}}t.fullFormats={date:fmtDef(date,compareDate),time:fmtDef(time,compareTime),"date-time":fmtDef(date_time,compareDateTime),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:uri,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:regex,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:byte,int32:{type:"number",validate:validateInt32},int64:{type:"number",validate:validateInt64},float:{type:"number",validate:validateNumber},double:{type:"number",validate:validateNumber},password:true,binary:true};t.fastFormats={...t.fullFormats,date:fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,compareDate),time:fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareTime),"date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareDateTime),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};t.formatNames=Object.keys(t.fullFormats);function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;const n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function date(e){const t=r.exec(e);if(!t)return false;const s=+t[1];const a=+t[2];const o=+t[3];return a>=1&&a<=12&&o>=1&&o<=(a===2&&isLeapYear(s)?29:n[a])}function compareDate(e,t){if(!(e&&t))return undefined;if(e>t)return 1;if(e<t)return-1;return 0}const s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function time(e,t){const r=s.exec(e);if(!r)return false;const n=+r[1];const a=+r[2];const o=+r[3];const i=r[5];return(n<=23&&a<=59&&o<=59||n===23&&a===59&&o===60)&&(!t||i!=="")}function compareTime(e,t){if(!(e&&t))return undefined;const r=s.exec(e);const n=s.exec(t);if(!(r&&n))return undefined;e=r[1]+r[2]+r[3]+(r[4]||"");t=n[1]+n[2]+n[3]+(n[4]||"");if(e>t)return 1;if(e<t)return-1;return 0}const a=/t|\s/i;function date_time(e){const t=e.split(a);return t.length===2&&date(t[0])&&time(t[1],true)}function compareDateTime(e,t){if(!(e&&t))return undefined;const[r,n]=e.split(a);const[s,o]=t.split(a);const i=compareDate(r,s);if(i===undefined)return undefined;return i||compareTime(n,o)}const o=/\/|:/;const i=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function uri(e){return o.test(e)&&i.test(e)}const c=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function byte(e){c.lastIndex=0;return c.test(e)}const u=-(2**31);const l=2**31-1;function validateInt32(e){return Number.isInteger(e)&&e<=l&&e>=u}function validateInt64(e){return Number.isInteger(e)}function validateNumber(){return true}const f=/[^\\]\\Z/;function regex(e){if(f.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},5679:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3471);const s=r(6541);const a=r(3123);const o=new a.Name("fullFormats");const i=new a.Name("fastFormats");const formatsPlugin=(e,t={keywords:true})=>{if(Array.isArray(t)){addFormats(e,t,n.fullFormats,o);return e}const[r,a]=t.mode==="fast"?[n.fastFormats,i]:[n.fullFormats,o];const c=t.formats||n.formatNames;addFormats(e,c,r,a);if(t.keywords)s.default(e);return e};formatsPlugin.get=(e,t="full")=>{const r=t==="fast"?n.fastFormats:n.fullFormats;const s=r[e];if(!s)throw new Error(`Unknown format "${e}"`);return s};function addFormats(e,t,r,n){var s;var o;(s=(o=e.opts.code).formats)!==null&&s!==void 0?s:o.formats=a._`require("ajv-formats/dist/formats").${n}`;for(const n of t)e.addFormat(n,r[n])}e.exports=t=formatsPlugin;Object.defineProperty(t,"__esModule",{value:true});t["default"]=formatsPlugin},6541:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formatLimitDefinition=void 0;const n=r(309);const s=r(3123);const a=s.operators;const o={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}};const i={message:({keyword:e,schemaCode:t})=>s.str`should be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>s._`{comparison: ${o[e].okStr}, limit: ${t}}`};t.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:true,error:i,code(e){const{gen:t,data:r,schemaCode:a,keyword:i,it:c}=e;const{opts:u,self:l}=c;if(!u.validateFormats)return;const f=new n.KeywordCxt(c,l.RULES.all.format.definition,"format");if(f.$data)validate$DataFormat();else validateFormat();function validate$DataFormat(){const r=t.scopeValue("formats",{ref:l.formats,code:u.code.formats});const n=t.const("fmt",s._`${r}[${f.schemaCode}]`);e.fail$data(s.or(s._`typeof ${n} != "object"`,s._`${n} instanceof RegExp`,s._`typeof ${n}.compare != "function"`,compareCode(n)))}function validateFormat(){const r=f.schema;const n=l.formats[r];if(!n||n===true)return;if(typeof n!="object"||n instanceof RegExp||typeof n.compare!="function"){throw new Error(`"${i}": format "${r}" does not define "compare" function`)}const a=t.scopeValue("formats",{key:r,ref:n,code:u.code.formats?s._`${u.code.formats}${s.getProperty(r)}`:undefined});e.fail$data(compareCode(a))}function compareCode(e){return s._`${e}.compare(${r}, ${a}) ${o[i].fail} 0`}},dependencies:["format"]};const formatLimitPlugin=e=>{e.addKeyword(t.formatLimitDefinition);return e};t["default"]=formatLimitPlugin},1699:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getRangeDef(e){return()=>({keyword:e,type:"number",schemaType:"array",macro:function([t,r]){validateRangeSchema(t,r);return e==="range"?{minimum:t,maximum:r}:{exclusiveMinimum:t,exclusiveMaximum:r}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}});function validateRangeSchema(t,r){if(t>r||e==="exclusiveRange"&&t===r){throw new Error("There are no numbers in range")}}}t["default"]=getRangeDef},9773:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getRequiredDef(e){return()=>({keyword:e,type:"object",schemaType:"array",macro(t){if(t.length===0)return true;if(t.length===1)return{required:t};const r=e==="anyRequired"?"anyOf":"oneOf";return{[r]:t.map((e=>({required:[e]})))}},metaSchema:{type:"array",items:{type:"string"}}})}t["default"]=getRequiredDef},5805:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.usePattern=t.metaSchemaRef=void 0;const n=r(3123);const s="http://json-schema.org/schema";function metaSchemaRef({defaultMeta:e}={}){return e===false?{}:{$ref:e||s}}t.metaSchemaRef=metaSchemaRef;function usePattern({gen:e,it:{opts:t}},r,s=(t.unicodeRegExp?"u":"")){const a=new RegExp(r,s);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,n._)`new RegExp(${r}, ${s})`})}t.usePattern=usePattern},3473:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getDef(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(e,t){if(!e)return true;const r=Object.keys(t.properties);if(r.length===0)return true;return{required:r}},dependencies:["properties"]}}t["default"]=getDef;e.exports=getDef},1623:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(9773));const a=(0,s.default)("anyRequired");t["default"]=a;e.exports=a},7683:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5805);function getDef(e){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(e){const t=[];for(const r in e)t.push(getSchema(r,e[r]));return{allOf:t}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,n.metaSchemaRef)(e)}}}t["default"]=getDef;function getSchema(e,t){const r=e.split("/");const n={};let s=n;for(let e=1;e<r.length;e++){let n=r[e];const a=e===r.length-1;n=unescapeJsonPointer(n);const o=s.properties={};let i;if(/[0-9]+/.test(n)){let e=+n;i=s.items=[];s.type=["object","array"];while(e--)i.push({})}else{s.type="object"}s=a?t:{};o[n]=s;if(i)i.push(s)}return n}function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}e.exports=getDef},787:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);function getDef(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(e){const{schema:t,data:r}=e;const s=t.map((e=>(0,n._)`(${getData(e)}) === undefined`));e.fail((0,n.or)(...s));function getData(e){if(e==="")throw new Error("empty JSON pointer not allowed");const t=e.split("/");let s=r;const a=t.map(((e,t)=>t?s=(0,n._)`${s}${(0,n.getProperty)(unescapeJPSegment(e))}`:s));return(0,n.and)(...a)}},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}t["default"]=getDef;function unescapeJPSegment(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}e.exports=getDef},3333:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={};const n={timestamp:()=>()=>Date.now(),datetime:()=>()=>(new Date).toISOString(),date:()=>()=>(new Date).toISOString().slice(0,10),time:()=>()=>(new Date).toISOString().slice(11),random:()=>()=>Math.random(),randomint:e=>{var t;const r=(t=e===null||e===void 0?void 0:e.max)!==null&&t!==void 0?t:2;return()=>Math.floor(Math.random()*r)},seq:e=>{var t;const n=(t=e===null||e===void 0?void 0:e.name)!==null&&t!==void 0?t:"";r[n]||(r[n]=0);return()=>r[n]++}};const s=Object.assign(_getDef,{DEFAULTS:n});function _getDef(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:true,valid:true,compile(e,t,r){if(!r.opts.useDefaults||r.compositeRule)return()=>true;const n={};for(const t in e)n[t]=getDefault(e[t]);const s=r.opts.useDefaults==="empty";return t=>{for(const r in e){if(t[r]===undefined||s&&(t[r]===null||t[r]==="")){t[r]=n[r]()}}return true}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:false,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function getDefault(e){return typeof e=="object"?getObjDefault(e):getStrDefault(e)}function getObjDefault({func:e,args:t}){const r=n[e];assertDefined(e,r);return r(t)}function getStrDefault(e=""){const t=n[e];assertDefined(e,t);return t()}function assertDefined(e,t){if(!t)throw new Error(`invalid "dynamicDefaults" keyword property value: ${e}`)}t["default"]=s;e.exports=s},327:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(1699));const a=(0,s.default)("exclusiveRange");t["default"]=a;e.exports=a},687:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={Object:Object,Array:Array,Function:Function,Number:Number,String:String,Date:Date,RegExp:RegExp};if(typeof Buffer!="undefined")r.Buffer=Buffer;if(typeof Promise!="undefined")r.Promise=Promise;const n=Object.assign(_getDef,{CONSTRUCTORS:r});function _getDef(){return{keyword:"instanceof",schemaType:["string","array"],compile(e){if(typeof e=="string"){const t=getConstructor(e);return e=>e instanceof t}if(Array.isArray(e)){const t=e.map(getConstructor);return e=>{for(const r of t){if(e instanceof r)return true}return false}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}function getConstructor(e){const t=r[e];if(t)return t;throw new Error(`invalid "instanceof" keyword value ${e}`)}t["default"]=n;e.exports=n},4810:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(9773));const a=(0,s.default)("oneRequired");t["default"]=a;e.exports=a},2638:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=r(5805);const a={message:({params:{missingPattern:e}})=>(0,n.str)`should have property matching pattern '${e}'`,params:({params:{missingPattern:e}})=>(0,n._)`{missingPattern: ${e}}`};function getDef(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:a,code(e){const{gen:t,schema:r,data:a}=e;if(r.length===0)return;const o=t.let("valid",true);for(const e of r)validateProperties(e);function validateProperties(r){const i=t.let("matched",false);t.forIn("key",a,(a=>{t.assign(i,(0,n._)`${(0,s.usePattern)(e,r)}.test(${a})`);t.if(i,(()=>t.break()))}));e.setParams({missingPattern:r});t.assign(o,(0,n.and)(o,i));e.pass(o)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:true}}}t["default"]=getDef;e.exports=getDef},174:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function getDef(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(e){if(e.length===0)return true;if(e.length===1)return{not:{required:e}};return{not:{anyOf:e.map((e=>({required:[e]})))}}},metaSchema:{type:"array",items:{type:"string"}}}}t["default"]=getDef;e.exports=getDef},5108:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(1699));const a=(0,s.default)("range");t["default"]=a;e.exports=a},2833:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=r(5805);const a={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:true}},required:["pattern"],additionalProperties:false};const o=/^\/(.*)\/([gimuy]*)$/;function getDef(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(e){const{data:t,schema:r}=e;const a=getRegExp(r);e.pass((0,n._)`${a}.test(${t})`);function getRegExp(t){if(typeof t=="object")return(0,s.usePattern)(e,t.pattern,t.flags);const r=o.exec(t);if(r)return(0,s.usePattern)(e,r[1],r[2]);throw new Error("cannot parse string into RegExp")}},metaSchema:{anyOf:[{type:"string"},a]}}}t["default"]=getDef;e.exports=getDef},8096:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=r(5805);const a={message:({params:{schemaProp:e}})=>e?(0,n.str)`should match case "${e}" schema`:(0,n.str)`should match default case schema`,params:({params:{schemaProp:e}})=>e?(0,n._)`{failingCase: ${e}}`:(0,n._)`{failingDefault: true}`};function getDef(e){const t=(0,s.metaSchemaRef)(e);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:true,error:a,dependencies:["selectCases"],code(e){const{gen:t,schemaCode:r,parentSchema:s}=e;e.block$data(n.nil,(()=>{const a=t.let("valid",true);const o=t.name("_valid");const i=t.const("value",(0,n._)`${r} === null ? "null" : ${r}`);t.if(false);for(const r in s.selectCases){e.setParams({schemaProp:r});t.elseIf((0,n._)`"" + ${i} == ${r}`);const s=e.subschema({keyword:"selectCases",schemaProp:r},o);e.mergeEvaluated(s,n.Name);t.assign(a,o)}t.else();if(s.selectDefault!==undefined){e.setParams({schemaProp:undefined});const r=e.subschema({keyword:"selectDefault"},o);e.mergeEvaluated(r,n.Name);t.assign(a,o)}t.endIf();e.pass(a)}))}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:t}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:t}]}t["default"]=getDef;e.exports=getDef},6705:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s={trimStart:e=>e.trimStart(),trimEnd:e=>e.trimEnd(),trimLeft:e=>e.trimStart(),trimRight:e=>e.trimEnd(),trim:e=>e.trim(),toLowerCase:e=>e.toLowerCase(),toUpperCase:e=>e.toUpperCase(),toEnumCase:(e,t)=>(t===null||t===void 0?void 0:t.hash[configKey(e)])||e};const a=Object.assign(_getDef,{transform:s});function _getDef(){return{keyword:"transform",schemaType:"array",before:"enum",code(e){const{gen:t,data:r,schema:a,parentSchema:o,it:i}=e;const{parentData:c,parentDataProperty:u}=i;const l=a;if(!l.length)return;let f;if(l.includes("toEnumCase")){const e=getEnumCaseCfg(o);f=t.scopeValue("obj",{ref:e,code:(0,n.stringify)(e)})}t.if((0,n._)`typeof ${r} == "string" && ${c} !== undefined`,(()=>{t.assign(r,transformExpr(l.slice()));t.assign((0,n._)`${c}[${u}]`,r)}));function transformExpr(e){if(!e.length)return r;const a=e.pop();if(!(a in s))throw new Error(`transform: unknown transformation ${a}`);const o=t.scopeValue("func",{ref:s[a],code:(0,n._)`require("ajv-keywords/dist/definitions/transform").transform${(0,n.getProperty)(a)}`});const i=transformExpr(e);return f&&a==="toEnumCase"?(0,n._)`${o}(${i}, ${f})`:(0,n._)`${o}(${i})`}},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(s)}}}}function getEnumCaseCfg(e){const t={hash:{}};if(!e.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const r of e.enum){if(typeof r!=="string")continue;const e=configKey(r);if(t.hash[e]){throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique')}t.hash[e]=r}return t}function configKey(e){return e.toLowerCase()}t["default"]=a;e.exports=a},6040:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=["undefined","string","number","object","function","boolean","symbol"];function getDef(){return{keyword:"typeof",schemaType:["string","array"],code(e){const{data:t,schema:r,schemaValue:s}=e;e.fail(typeof r=="string"?(0,n._)`typeof ${t} != ${r}`:(0,n._)`${s}.indexOf(typeof ${t}) < 0`)},metaSchema:{anyOf:[{type:"string",enum:s},{type:"array",items:{type:"string",enum:s}}]}}}t["default"]=getDef;e.exports=getDef},8475:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7447);const s=["number","integer","string","boolean","null"];function getDef(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(e,t){const r=getScalarKeys(e,t);return t=>{if(t.length<=1)return true;for(let s=0;s<e.length;s++){const a=e[s];if(r[s]){const e={};for(const r of t){if(!r||typeof r!="object")continue;let t=r[a];if(t&&typeof t=="object")continue;if(typeof t=="string")t='"'+t;if(e[t])return false;e[t]=true}}else{for(let e=t.length;e--;){const r=t[e];if(!r||typeof r!="object")continue;for(let s=e;s--;){const e=t[s];if(e&&typeof e=="object"&&n(r[a],e[a]))return false}}}}return true}},metaSchema:{type:"array",items:{type:"string"}}}}t["default"]=getDef;function getScalarKeys(e,t){return e.map((e=>{var r,n,a;const o=(a=(n=(r=t.items)===null||r===void 0?void 0:r.properties)===null||n===void 0?void 0:n[e])===null||a===void 0?void 0:a.type;return Array.isArray(o)?!o.includes("object")&&!o.includes("array"):s.includes(o)}))}e.exports=getDef},6809:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(1663));const ajvKeywords=(e,t)=>{if(Array.isArray(t)){for(const r of t)get(r)(e);return e}if(t){get(t)(e);return e}for(t in s.default)get(t)(e);return e};ajvKeywords.get=get;function get(e){const t=s.default[e];if(!t)throw new Error("Unknown keyword "+e);return t}t["default"]=ajvKeywords;e.exports=ajvKeywords;e.exports["default"]=ajvKeywords},8921:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(3473));const allRequired=e=>e.addKeyword((0,s.default)());t["default"]=allRequired;e.exports=allRequired},8865:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(1623));const anyRequired=e=>e.addKeyword((0,s.default)());t["default"]=anyRequired;e.exports=anyRequired},2409:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(7683));const deepProperties=(e,t)=>e.addKeyword((0,s.default)(t));t["default"]=deepProperties;e.exports=deepProperties},1819:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(787));const deepRequired=e=>e.addKeyword((0,s.default)());t["default"]=deepRequired;e.exports=deepRequired},9598:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(3333));const dynamicDefaults=e=>e.addKeyword((0,s.default)());t["default"]=dynamicDefaults;e.exports=dynamicDefaults},5319:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(327));const exclusiveRange=e=>e.addKeyword((0,s.default)());t["default"]=exclusiveRange;e.exports=exclusiveRange},1663:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(7650));const a=n(r(7422));const o=n(r(6916));const i=n(r(5319));const c=n(r(1491));const u=n(r(9));const l=n(r(9899));const f=n(r(8921));const d=n(r(8865));const p=n(r(4178));const h=n(r(4234));const m=n(r(4348));const y=n(r(2409));const g=n(r(1819));const v=n(r(9598));const b=n(r(3994));const $={typeof:s.default,instanceof:a.default,range:o.default,exclusiveRange:i.default,regexp:c.default,transform:u.default,uniqueItemProperties:l.default,allRequired:f.default,anyRequired:d.default,oneRequired:p.default,patternRequired:h.default,prohibited:m.default,deepProperties:y.default,deepRequired:g.default,dynamicDefaults:v.default,select:b.default};t["default"]=$;e.exports=$},7422:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(687));const instanceofPlugin=e=>e.addKeyword((0,s.default)());t["default"]=instanceofPlugin;e.exports=instanceofPlugin},4178:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(4810));const oneRequired=e=>e.addKeyword((0,s.default)());t["default"]=oneRequired;e.exports=oneRequired},4234:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(2638));const patternRequired=e=>e.addKeyword((0,s.default)());t["default"]=patternRequired;e.exports=patternRequired},4348:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(174));const prohibited=e=>e.addKeyword((0,s.default)());t["default"]=prohibited;e.exports=prohibited},6916:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(5108));const range=e=>e.addKeyword((0,s.default)());t["default"]=range;e.exports=range},1491:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(2833));const regexp=e=>e.addKeyword((0,s.default)());t["default"]=regexp;e.exports=regexp},3994:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(8096));const select=(e,t)=>{(0,s.default)(t).forEach((t=>e.addKeyword(t)));return e};t["default"]=select;e.exports=select},9:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(6705));const transform=e=>e.addKeyword((0,s.default)());t["default"]=transform;e.exports=transform},7650:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(6040));const typeofPlugin=e=>e.addKeyword((0,s.default)());t["default"]=typeofPlugin;e.exports=typeofPlugin},9899:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(8475));const uniqueItemProperties=e=>e.addKeyword((0,s.default)());t["default"]=uniqueItemProperties;e.exports=uniqueItemProperties},309:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(3710);const s=r(6218);const a=r(3626);const o=r(6828);const i=["/properties"];const c="http://json-schema.org/draft-07/schema";class Ajv extends n.default{_addVocabularies(){super._addVocabularies();s.default.forEach((e=>this.addVocabulary(e)));if(this.opts.discriminator)this.addKeyword(a.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();if(!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(o,i):o;this.addMetaSchema(e,c,false);this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:undefined)}}e.exports=t=Ajv;Object.defineProperty(t,"__esModule",{value:true});t["default"]=Ajv;var u=r(9850);Object.defineProperty(t,"KeywordCxt",{enumerable:true,get:function(){return u.KeywordCxt}});var l=r(3123);Object.defineProperty(t,"_",{enumerable:true,get:function(){return l._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return l.str}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return l.stringify}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return l.nil}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return l.Name}});Object.defineProperty(t,"CodeGen",{enumerable:true,get:function(){return l.CodeGen}})},5618:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class _CodeOrName{}t._CodeOrName=_CodeOrName;t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Name extends _CodeOrName{constructor(e){super();if(!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}}t.Name=Name;class _Code extends _CodeOrName{constructor(e){super();this._items=typeof e==="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce(((e,t)=>{if(t instanceof Name)e[t.str]=(e[t.str]||0)+1;return e}),{})}}t._Code=_Code;t.nil=new _Code("");function _(e,...t){const r=[e[0]];let n=0;while(n<t.length){addCodeArg(r,t[n]);r.push(e[++n])}return new _Code(r)}t._=_;const r=new _Code("+");function str(e,...t){const n=[safeStringify(e[0])];let s=0;while(s<t.length){n.push(r);addCodeArg(n,t[s]);n.push(r,safeStringify(e[++s]))}optimize(n);return new _Code(n)}t.str=str;function addCodeArg(e,t){if(t instanceof _Code)e.push(...t._items);else if(t instanceof Name)e.push(t);else e.push(interpolate(t))}t.addCodeArg=addCodeArg;function optimize(e){let t=1;while(t<e.length-1){if(e[t]===r){const r=mergeExprItems(e[t-1],e[t+1]);if(r!==undefined){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function mergeExprItems(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string"){if(t instanceof Name||e[e.length-1]!=='"')return;if(typeof t!="string")return`${e.slice(0,-1)}${t}"`;if(t[0]==='"')return e.slice(0,-1)+t.slice(1);return}if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Name))return`"${e}${t.slice(1)}`;return}function strConcat(e,t){return t.emptyStr()?e:e.emptyStr()?t:str`${e}${t}`}t.strConcat=strConcat;function interpolate(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:safeStringify(Array.isArray(e)?e.join(","):e)}function stringify(e){return new _Code(safeStringify(e))}t.stringify=stringify;function safeStringify(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.safeStringify=safeStringify;function getProperty(e){return typeof e=="string"&&t.IDENTIFIER.test(e)?new _Code(`.${e}`):_`[${e}]`}t.getProperty=getProperty;function getEsmExportName(e){if(typeof e=="string"&&t.IDENTIFIER.test(e)){return new _Code(`${e}`)}throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}t.getEsmExportName=getEsmExportName;function regexpCode(e){return new _Code(e.toString())}t.regexpCode=regexpCode},3123:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=r(5618);const s=r(4159);var a=r(5618);Object.defineProperty(t,"_",{enumerable:true,get:function(){return a._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return a.str}});Object.defineProperty(t,"strConcat",{enumerable:true,get:function(){return a.strConcat}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return a.nil}});Object.defineProperty(t,"getProperty",{enumerable:true,get:function(){return a.getProperty}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return a.stringify}});Object.defineProperty(t,"regexpCode",{enumerable:true,get:function(){return a.regexpCode}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return a.Name}});var o=r(4159);Object.defineProperty(t,"Scope",{enumerable:true,get:function(){return o.Scope}});Object.defineProperty(t,"ValueScope",{enumerable:true,get:function(){return o.ValueScope}});Object.defineProperty(t,"ValueScopeName",{enumerable:true,get:function(){return o.ValueScopeName}});Object.defineProperty(t,"varKinds",{enumerable:true,get:function(){return o.varKinds}});t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class Node{optimizeNodes(){return this}optimizeNames(e,t){return this}}class Def extends Node{constructor(e,t,r){super();this.varKind=e;this.name=t;this.rhs=r}render({es5:e,_n:t}){const r=e?s.varKinds.var:this.varKind;const n=this.rhs===undefined?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(!e[this.name.str])return;if(this.rhs)this.rhs=optimizeExpr(this.rhs,e,t);return this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class Assign extends Node{constructor(e,t,r){super();this.lhs=e;this.rhs=t;this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(this.lhs instanceof n.Name&&!e[this.lhs.str]&&!this.sideEffects)return;this.rhs=optimizeExpr(this.rhs,e,t);return this}get names(){const e=this.lhs instanceof n.Name?{}:{...this.lhs.names};return addExprNames(e,this.rhs)}}class AssignOp extends Assign{constructor(e,t,r,n){super(e,r,n);this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class Label extends Node{constructor(e){super();this.label=e;this.names={}}render({_n:e}){return`${this.label}:`+e}}class Break extends Node{constructor(e){super();this.label=e;this.names={}}render({_n:e}){const t=this.label?` ${this.label}`:"";return`break${t};`+e}}class Throw extends Node{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class AnyCode extends Node{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:undefined}optimizeNames(e,t){this.code=optimizeExpr(this.code,e,t);return this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class ParentNode extends Node{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;while(t--){const r=e[t].optimizeNodes();if(Array.isArray(r))e.splice(t,1,...r);else if(r)e[t]=r;else e.splice(t,1)}return e.length>0?this:undefined}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;while(n--){const s=r[n];if(s.optimizeNames(e,t))continue;subtractNames(e,s.names);r.splice(n,1)}return r.length>0?this:undefined}get names(){return this.nodes.reduce(((e,t)=>addNames(e,t.names)),{})}}class BlockNode extends ParentNode{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class Root extends ParentNode{}class Else extends BlockNode{}Else.kind="else";class If extends BlockNode{constructor(e,t){super(t);this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);if(this.else)t+="else "+this.else.render(e);return t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(e===true)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new Else(e):e}if(t){if(e===false)return t instanceof If?t:t.nodes;if(this.nodes.length)return this;return new If(not(e),t instanceof If?[t]:t.nodes)}if(e===false||!this.nodes.length)return undefined;return this}optimizeNames(e,t){var r;this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(e,t);if(!(super.optimizeNames(e,t)||this.else))return;this.condition=optimizeExpr(this.condition,e,t);return this}get names(){const e=super.names;addExprNames(e,this.condition);if(this.else)addNames(e,this.else.names);return e}}If.kind="if";class For extends BlockNode{}For.kind="for";class ForLoop extends For{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;this.iteration=optimizeExpr(this.iteration,e,t);return this}get names(){return addNames(super.names,this.iteration.names)}}class ForRange extends For{constructor(e,t,r,n){super();this.varKind=e;this.name=t;this.from=r;this.to=n}render(e){const t=e.es5?s.varKinds.var:this.varKind;const{name:r,from:n,to:a}=this;return`for(${t} ${r}=${n}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){const e=addExprNames(super.names,this.from);return addExprNames(e,this.to)}}class ForIter extends For{constructor(e,t,r,n){super();this.loop=e;this.varKind=t;this.name=r;this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;this.iterable=optimizeExpr(this.iterable,e,t);return this}get names(){return addNames(super.names,this.iterable.names)}}class Func extends BlockNode{constructor(e,t,r){super();this.name=e;this.args=t;this.async=r}render(e){const t=this.async?"async ":"";return`${t}function ${this.name}(${this.args})`+super.render(e)}}Func.kind="func";class Return extends ParentNode{render(e){return"return "+super.render(e)}}Return.kind="return";class Try extends BlockNode{render(e){let t="try"+super.render(e);if(this.catch)t+=this.catch.render(e);if(this.finally)t+=this.finally.render(e);return t}optimizeNodes(){var e,t;super.optimizeNodes();(e=this.catch)===null||e===void 0?void 0:e.optimizeNodes();(t=this.finally)===null||t===void 0?void 0:t.optimizeNodes();return this}optimizeNames(e,t){var r,n;super.optimizeNames(e,t);(r=this.catch)===null||r===void 0?void 0:r.optimizeNames(e,t);(n=this.finally)===null||n===void 0?void 0:n.optimizeNames(e,t);return this}get names(){const e=super.names;if(this.catch)addNames(e,this.catch.names);if(this.finally)addNames(e,this.finally.names);return e}}class Catch extends BlockNode{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}Catch.kind="catch";class Finally extends BlockNode{render(e){return"finally"+super.render(e)}}Finally.kind="finally";class CodeGen{constructor(e,t={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...t,_n:t.lines?"\n":""};this._extScope=e;this._scope=new s.Scope({parent:e});this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);const n=this._values[r.prefix]||(this._values[r.prefix]=new Set);n.add(r);return r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const s=this._scope.toName(t);if(r!==undefined&&n)this._constants[s.str]=r;this._leafNode(new Def(e,s,r));return s}const(e,t,r){return this._def(s.varKinds.const,e,t,r)}let(e,t,r){return this._def(s.varKinds.let,e,t,r)}var(e,t,r){return this._def(s.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new Assign(e,t,r))}add(e,r){return this._leafNode(new AssignOp(e,t.operators.ADD,r))}code(e){if(typeof e=="function")e();else if(e!==n.nil)this._leafNode(new AnyCode(e));return this}object(...e){const t=["{"];for(const[r,s]of e){if(t.length>1)t.push(",");t.push(r);if(r!==s||this.opts.es5){t.push(":");(0,n.addCodeArg)(t,s)}}t.push("}");return new n._Code(t)}if(e,t,r){this._blockNode(new If(e));if(t&&r){this.code(t).else().code(r).endIf()}else if(t){this.code(t).endIf()}else if(r){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(e){return this._elseNode(new If(e))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(e,t){this._blockNode(e);if(t)this.code(t).endFor();return this}for(e,t){return this._for(new ForLoop(e),t)}forRange(e,t,r,n,a=(this.opts.es5?s.varKinds.var:s.varKinds.let)){const o=this._scope.toName(e);return this._for(new ForRange(a,o,t,r),(()=>n(o)))}forOf(e,t,r,a=s.varKinds.const){const o=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,n._)`${e}.length`,(t=>{this.var(o,(0,n._)`${e}[${t}]`);r(o)}))}return this._for(new ForIter("of",a,o,t),(()=>r(o)))}forIn(e,t,r,a=(this.opts.es5?s.varKinds.var:s.varKinds.const)){if(this.opts.ownProperties){return this.forOf(e,(0,n._)`Object.keys(${t})`,r)}const o=this._scope.toName(e);return this._for(new ForIter("in",a,o,t),(()=>r(o)))}endFor(){return this._endBlockNode(For)}label(e){return this._leafNode(new Label(e))}break(e){return this._leafNode(new Break(e))}return(e){const t=new Return;this._blockNode(t);this.code(e);if(t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new Try;this._blockNode(n);this.code(e);if(t){const e=this.name("e");this._currNode=n.catch=new Catch(e);t(e)}if(r){this._currNode=n.finally=new Finally;this.code(r)}return this._endBlockNode(Catch,Finally)}throw(e){return this._leafNode(new Throw(e))}block(e,t){this._blockStarts.push(this._nodes.length);if(e)this.code(e).endBlock(t);return this}endBlock(e){const t=this._blockStarts.pop();if(t===undefined)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||e!==undefined&&r!==e){throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`)}this._nodes.length=t;return this}func(e,t=n.nil,r,s){this._blockNode(new Func(e,t,r));if(s)this.code(s).endFunc();return this}endFunc(){return this._endBlockNode(Func)}optimize(e=1){while(e-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(e){this._currNode.nodes.push(e);return this}_blockNode(e){this._currNode.nodes.push(e);this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof If)){throw new Error('CodeGen: "else" without "if"')}this._currNode=t.else=e;return this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}}t.CodeGen=CodeGen;function addNames(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function addExprNames(e,t){return t instanceof n._CodeOrName?addNames(e,t.names):e}function optimizeExpr(e,t,r){if(e instanceof n.Name)return replaceName(e);if(!canOptimize(e))return e;return new n._Code(e._items.reduce(((e,t)=>{if(t instanceof n.Name)t=replaceName(t);if(t instanceof n._Code)e.push(...t._items);else e.push(t);return e}),[]));function replaceName(e){const n=r[e.str];if(n===undefined||t[e.str]!==1)return e;delete t[e.str];return n}function canOptimize(e){return e instanceof n._Code&&e._items.some((e=>e instanceof n.Name&&t[e.str]===1&&r[e.str]!==undefined))}}function subtractNames(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function not(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,n._)`!${par(e)}`}t.not=not;const i=mappend(t.operators.AND);function and(...e){return e.reduce(i)}t.and=and;const c=mappend(t.operators.OR);function or(...e){return e.reduce(c)}t.or=or;function mappend(e){return(t,r)=>t===n.nil?r:r===n.nil?t:(0,n._)`${par(t)} ${e} ${par(r)}`}function par(e){return e instanceof n.Name?e:(0,n._)`(${e})`}},4159:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=r(5618);class ValueError extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}}var s;(function(e){e[e["Started"]=0]="Started";e[e["Completed"]=1]="Completed"})(s=t.UsedValueState||(t.UsedValueState={}));t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class Scope{constructor({prefixes:e,parent:t}={}){this._names={};this._prefixes=e;this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){const t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,r;if(((r=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||r===void 0?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e)){throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`)}return this._names[e]={prefix:e,index:0}}}t.Scope=Scope;class ValueScopeName extends n.Name{constructor(e,t){super(t);this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e;this.scopePath=(0,n._)`.${new n.Name(t)}[${r}]`}}t.ValueScopeName=ValueScopeName;const a=(0,n._)`\n`;class ValueScope extends Scope{constructor(e){super(e);this._values={};this._scope=e.scope;this.opts={...e,_n:e.lines?a:n.nil}}get(){return this._scope}name(e){return new ValueScopeName(e,this._newName(e))}value(e,t){var r;if(t.ref===undefined)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e);const{prefix:s}=n;const a=(r=t.key)!==null&&r!==void 0?r:t.ref;let o=this._values[s];if(o){const e=o.get(a);if(e)return e}else{o=this._values[s]=new Map}o.set(a,n);const i=this._scope[s]||(this._scope[s]=[]);const c=i.length;i[c]=t.ref;n.setValue(t,{property:s,itemIndex:c});return n}getValue(e,t){const r=this._values[e];if(!r)return;return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(t.scopePath===undefined)throw new Error(`CodeGen: name "${t}" has no value`);return(0,n._)`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(e.value===undefined)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,a={},o){let i=n.nil;for(const c in e){const u=e[c];if(!u)continue;const l=a[c]=a[c]||new Map;u.forEach((e=>{if(l.has(e))return;l.set(e,s.Started);let a=r(e);if(a){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;i=(0,n._)`${i}${r} ${e} = ${a};${this.opts._n}`}else if(a=o===null||o===void 0?void 0:o(e)){i=(0,n._)`${i}${a}${this.opts._n}`}else{throw new ValueError(e)}l.set(e,s.Completed)}))}return i}}t.ValueScope=ValueScope},5560:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=r(3123);const s=r(4802);const a=r(2491);t.keywordError={message:({keyword:e})=>(0,n.str)`must pass "${e}" keyword validation`};t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,n.str)`"${e}" keyword must be ${t} ($data)`:(0,n.str)`"${e}" keyword is invalid ($data)`};function reportError(e,r=t.keywordError,s,a){const{it:o}=e;const{gen:i,compositeRule:c,allErrors:u}=o;const l=errorObjectCode(e,r,s);if(a!==null&&a!==void 0?a:c||u){addError(i,l)}else{returnErrors(o,(0,n._)`[${l}]`)}}t.reportError=reportError;function reportExtraError(e,r=t.keywordError,n){const{it:s}=e;const{gen:o,compositeRule:i,allErrors:c}=s;const u=errorObjectCode(e,r,n);addError(o,u);if(!(i||c)){returnErrors(s,a.default.vErrors)}}t.reportExtraError=reportExtraError;function resetErrorsCount(e,t){e.assign(a.default.errors,t);e.if((0,n._)`${a.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign((0,n._)`${a.default.vErrors}.length`,t)),(()=>e.assign(a.default.vErrors,null)))))}t.resetErrorsCount=resetErrorsCount;function extendErrors({gen:e,keyword:t,schemaValue:r,data:s,errsCount:o,it:i}){if(o===undefined)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",o,a.default.errors,(o=>{e.const(c,(0,n._)`${a.default.vErrors}[${o}]`);e.if((0,n._)`${c}.instancePath === undefined`,(()=>e.assign((0,n._)`${c}.instancePath`,(0,n.strConcat)(a.default.instancePath,i.errorPath))));e.assign((0,n._)`${c}.schemaPath`,(0,n.str)`${i.errSchemaPath}/${t}`);if(i.opts.verbose){e.assign((0,n._)`${c}.schema`,r);e.assign((0,n._)`${c}.data`,s)}}))}t.extendErrors=extendErrors;function addError(e,t){const r=e.const("err",t);e.if((0,n._)`${a.default.vErrors} === null`,(()=>e.assign(a.default.vErrors,(0,n._)`[${r}]`)),(0,n._)`${a.default.vErrors}.push(${r})`);e.code((0,n._)`${a.default.errors}++`)}function returnErrors(e,t){const{gen:r,validateName:s,schemaEnv:a}=e;if(a.$async){r.throw((0,n._)`new ${e.ValidationError}(${t})`)}else{r.assign((0,n._)`${s}.errors`,t);r.return(false)}}const o={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function errorObjectCode(e,t,r){const{createErrors:s}=e.it;if(s===false)return(0,n._)`{}`;return errorObject(e,t,r)}function errorObject(e,t,r={}){const{gen:n,it:s}=e;const a=[errorInstancePath(s,r),errorSchemaPath(e,r)];extraErrorProps(e,t,a);return n.object(...a)}function errorInstancePath({errorPath:e},{instancePath:t}){const r=t?(0,n.str)`${e}${(0,s.getErrorPath)(t,s.Type.Str)}`:e;return[a.default.instancePath,(0,n.strConcat)(a.default.instancePath,r)]}function errorSchemaPath({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:a}){let i=a?t:(0,n.str)`${t}/${e}`;if(r){i=(0,n.str)`${i}${(0,s.getErrorPath)(r,s.Type.Str)}`}return[o.schemaPath,i]}function extraErrorProps(e,{params:t,message:r},s){const{keyword:i,data:c,schemaValue:u,it:l}=e;const{opts:f,propertyName:d,topSchemaRef:p,schemaPath:h}=l;s.push([o.keyword,i],[o.params,typeof t=="function"?t(e):t||(0,n._)`{}`]);if(f.messages){s.push([o.message,typeof r=="function"?r(e):r])}if(f.verbose){s.push([o.schema,u],[o.parentSchema,(0,n._)`${p}${h}`],[a.default.data,c])}if(d)s.push([o.propertyName,d])}},4852:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=r(3123);const s=r(5911);const a=r(2491);const o=r(1034);const i=r(4802);const c=r(9850);class SchemaEnv{constructor(e){var t;this.refs={};this.dynamicAnchors={};let r;if(typeof e.schema=="object")r=e.schema;this.schema=e.schema;this.schemaId=e.schemaId;this.root=e.root||this;this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,o.normalizeId)(r===null||r===void 0?void 0:r[e.schemaId||"$id"]);this.schemaPath=e.schemaPath;this.localRefs=e.localRefs;this.meta=e.meta;this.$async=r===null||r===void 0?void 0:r.$async;this.refs={}}}t.SchemaEnv=SchemaEnv;function compileSchema(e){const t=getCompilingSchema.call(this,e);if(t)return t;const r=(0,o.getFullPath)(this.opts.uriResolver,e.root.baseId);const{es5:i,lines:u}=this.opts.code;const{ownProperties:l}=this.opts;const f=new n.CodeGen(this.scope,{es5:i,lines:u,ownProperties:l});let d;if(e.$async){d=f.scopeValue("Error",{ref:s.default,code:(0,n._)`require("ajv/dist/runtime/validation_error").default`})}const p=f.scopeName("validate");e.validateName=p;const h={gen:f,allErrors:this.opts.allErrors,data:a.default.data,parentData:a.default.parentData,parentDataProperty:a.default.parentDataProperty,dataNames:[a.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:f.scopeValue("schema",this.opts.code.source===true?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:p,ValidationError:d,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,n._)`""`,opts:this.opts,self:this};let m;try{this._compilations.add(e);(0,c.validateFunctionCode)(h);f.optimize(this.opts.code.optimize);const t=f.toString();m=`${f.scopeRefs(a.default.scope)}return ${t}`;if(this.opts.code.process)m=this.opts.code.process(m,e);const r=new Function(`${a.default.self}`,`${a.default.scope}`,m);const s=r(this,this.scope.get());this.scope.value(p,{ref:s});s.errors=null;s.schema=e.schema;s.schemaEnv=e;if(e.$async)s.$async=true;if(this.opts.code.source===true){s.source={validateName:p,validateCode:t,scopeValues:f._values}}if(this.opts.unevaluated){const{props:e,items:t}=h;s.evaluated={props:e instanceof n.Name?undefined:e,items:t instanceof n.Name?undefined:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name};if(s.source)s.source.evaluated=(0,n.stringify)(s.evaluated)}e.validate=s;return e}catch(t){delete e.validate;delete e.validateName;if(m)this.logger.error("Error compiling schema, function code:",m);throw t}finally{this._compilations.delete(e)}}t.compileSchema=compileSchema;function resolveRef(e,t,r){var n;r=(0,o.resolveUrl)(this.opts.uriResolver,t,r);const s=e.refs[r];if(s)return s;let a=resolve.call(this,e,r);if(a===undefined){const s=(n=e.localRefs)===null||n===void 0?void 0:n[r];const{schemaId:o}=this.opts;if(s)a=new SchemaEnv({schema:s,schemaId:o,root:e,baseId:t})}if(a===undefined)return;return e.refs[r]=inlineOrCompile.call(this,a)}t.resolveRef=resolveRef;function inlineOrCompile(e){if((0,o.inlineRef)(e.schema,this.opts.inlineRefs))return e.schema;return e.validate?e:compileSchema.call(this,e)}function getCompilingSchema(e){for(const t of this._compilations){if(sameSchemaEnv(t,e))return t}}t.getCompilingSchema=getCompilingSchema;function sameSchemaEnv(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function resolve(e,t){let r;while(typeof(r=this.refs[t])=="string")t=r;return r||this.schemas[t]||resolveSchema.call(this,e,t)}function resolveSchema(e,t){const r=this.opts.uriResolver.parse(t);const n=(0,o._getFullPath)(this.opts.uriResolver,r);let s=(0,o.getFullPath)(this.opts.uriResolver,e.baseId,undefined);if(Object.keys(e.schema).length>0&&n===s){return getJsonPointer.call(this,r,e)}const a=(0,o.normalizeId)(n);const i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const t=resolveSchema.call(this,e,i);if(typeof(t===null||t===void 0?void 0:t.schema)!=="object")return;return getJsonPointer.call(this,r,t)}if(typeof(i===null||i===void 0?void 0:i.schema)!=="object")return;if(!i.validate)compileSchema.call(this,i);if(a===(0,o.normalizeId)(t)){const{schema:t}=i;const{schemaId:r}=this.opts;const n=t[r];if(n)s=(0,o.resolveUrl)(this.opts.uriResolver,s,n);return new SchemaEnv({schema:t,schemaId:r,root:e,baseId:s})}return getJsonPointer.call(this,r,i)}t.resolveSchema=resolveSchema;const u=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,{baseId:t,schema:r,root:n}){var s;if(((s=e.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(const n of e.fragment.slice(1).split("/")){if(typeof r==="boolean")return;const e=r[(0,i.unescapeFragment)(n)];if(e===undefined)return;r=e;const s=typeof r==="object"&&r[this.opts.schemaId];if(!u.has(n)&&s){t=(0,o.resolveUrl)(this.opts.uriResolver,t,s)}}let a;if(typeof r!="boolean"&&r.$ref&&!(0,i.schemaHasRulesButRef)(r,this.RULES)){const e=(0,o.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=resolveSchema.call(this,n,e)}const{schemaId:c}=this.opts;a=a||new SchemaEnv({schema:r,schemaId:c,root:n,baseId:t});if(a.schema!==a.root.schema)return a;return undefined}},2491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t["default"]=s},5477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1034);class MissingRefError extends Error{constructor(e,t,r,s){super(s||`can't resolve reference ${r} from id ${t}`);this.missingRef=(0,n.resolveUrl)(e,t,r);this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t["default"]=MissingRefError},1034:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=r(4802);const s=r(7447);const a=r(7243);const o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function inlineRef(e,t=true){if(typeof e=="boolean")return true;if(t===true)return!hasRef(e);if(!t)return false;return countKeys(e)<=t}t.inlineRef=inlineRef;const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(e){for(const t in e){if(i.has(t))return true;const r=e[t];if(Array.isArray(r)&&r.some(hasRef))return true;if(typeof r=="object"&&hasRef(r))return true}return false}function countKeys(e){let t=0;for(const r in e){if(r==="$ref")return Infinity;t++;if(o.has(r))continue;if(typeof e[r]=="object"){(0,n.eachItem)(e[r],(e=>t+=countKeys(e)))}if(t===Infinity)return Infinity}return t}function getFullPath(e,t="",r){if(r!==false)t=normalizeId(t);const n=e.parse(t);return _getFullPath(e,n)}t.getFullPath=getFullPath;function _getFullPath(e,t){const r=e.serialize(t);return r.split("#")[0]+"#"}t._getFullPath=_getFullPath;const c=/#\/?$/;function normalizeId(e){return e?e.replace(c,""):""}t.normalizeId=normalizeId;function resolveUrl(e,t,r){r=normalizeId(r);return e.resolve(t,r)}t.resolveUrl=resolveUrl;const u=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts;const o=normalizeId(e[r]||t);const i={"":o};const c=getFullPath(n,o,false);const l={};const f=new Set;a(e,{allKeys:true},((e,t,n,s)=>{if(s===undefined)return;const a=c+t;let o=i[s];if(typeof e[r]=="string")o=addRef.call(this,e[r]);addAnchor.call(this,e.$anchor);addAnchor.call(this,e.$dynamicAnchor);i[t]=o;function addRef(t){const r=this.opts.uriResolver.resolve;t=normalizeId(o?r(o,t):t);if(f.has(t))throw ambiguos(t);f.add(t);let n=this.refs[t];if(typeof n=="string")n=this.refs[n];if(typeof n=="object"){checkAmbiguosRef(e,n.schema,t)}else if(t!==normalizeId(a)){if(t[0]==="#"){checkAmbiguosRef(e,l[t],t);l[t]=e}else{this.refs[t]=a}}return t}function addAnchor(e){if(typeof e=="string"){if(!u.test(e))throw new Error(`invalid anchor "${e}"`);addRef.call(this,`#${e}`)}}}));return l;function checkAmbiguosRef(e,t,r){if(t!==undefined&&!s(e,t))throw ambiguos(r)}function ambiguos(e){return new Error(`reference "${e}" resolves to more than one schema`)}}t.getSchemaRefs=getSchemaRefs},2199:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRules=t.isJSONType=void 0;const r=["string","number","integer","boolean","null","object","array"];const n=new Set(r);function isJSONType(e){return typeof e=="string"&&n.has(e)}t.isJSONType=isJSONType;function getRules(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:true,boolean:true,null:true},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}t.getRules=getRules},4802:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=r(3123);const s=r(5618);function toHash(e){const t={};for(const r of e)t[r]=true;return t}t.toHash=toHash;function alwaysValidSchema(e,t){if(typeof t=="boolean")return t;if(Object.keys(t).length===0)return true;checkUnknownRules(e,t);return!schemaHasRules(t,e.self.RULES.all)}t.alwaysValidSchema=alwaysValidSchema;function checkUnknownRules(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if(typeof t==="boolean")return;const s=n.RULES.keywords;for(const r in t){if(!s[r])checkStrictMode(e,`unknown keyword: "${r}"`)}}t.checkUnknownRules=checkUnknownRules;function schemaHasRules(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(t[r])return true;return false}t.schemaHasRules=schemaHasRules;function schemaHasRulesButRef(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(r!=="$ref"&&t.all[r])return true;return false}t.schemaHasRulesButRef=schemaHasRulesButRef;function schemaRefOrVal({topSchemaRef:e,schemaPath:t},r,s,a){if(!a){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,n._)`${r}`}return(0,n._)`${e}${t}${(0,n.getProperty)(s)}`}t.schemaRefOrVal=schemaRefOrVal;function unescapeFragment(e){return unescapeJsonPointer(decodeURIComponent(e))}t.unescapeFragment=unescapeFragment;function escapeFragment(e){return encodeURIComponent(escapeJsonPointer(e))}t.escapeFragment=escapeFragment;function escapeJsonPointer(e){if(typeof e=="number")return`${e}`;return e.replace(/~/g,"~0").replace(/\//g,"~1")}t.escapeJsonPointer=escapeJsonPointer;function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}t.unescapeJsonPointer=unescapeJsonPointer;function eachItem(e,t){if(Array.isArray(e)){for(const r of e)t(r)}else{t(e)}}t.eachItem=eachItem;function makeMergeEvaluated({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:s}){return(a,o,i,c)=>{const u=i===undefined?o:i instanceof n.Name?(o instanceof n.Name?e(a,o,i):t(a,o,i),i):o instanceof n.Name?(t(a,i,o),o):r(o,i);return c===n.Name&&!(u instanceof n.Name)?s(a,u):u}}t.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(e,t,r)=>e.if((0,n._)`${r} !== true && ${t} !== undefined`,(()=>{e.if((0,n._)`${t} === true`,(()=>e.assign(r,true)),(()=>e.assign(r,(0,n._)`${r} || {}`).code((0,n._)`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if((0,n._)`${r} !== true`,(()=>{if(t===true){e.assign(r,true)}else{e.assign(r,(0,n._)`${r} || {}`);setEvaluated(e,r,t)}})),mergeValues:(e,t)=>e===true?true:{...e,...t},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(e,t,r)=>e.if((0,n._)`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,(0,n._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if((0,n._)`${r} !== true`,(()=>e.assign(r,t===true?true:(0,n._)`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>e===true?true:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function evaluatedPropsToName(e,t){if(t===true)return e.var("props",true);const r=e.var("props",(0,n._)`{}`);if(t!==undefined)setEvaluated(e,r,t);return r}t.evaluatedPropsToName=evaluatedPropsToName;function setEvaluated(e,t,r){Object.keys(r).forEach((r=>e.assign((0,n._)`${t}${(0,n.getProperty)(r)}`,true)))}t.setEvaluated=setEvaluated;const a={};function useFunc(e,t){return e.scopeValue("func",{ref:t,code:a[t.code]||(a[t.code]=new s._Code(t.code))})}t.useFunc=useFunc;var o;(function(e){e[e["Num"]=0]="Num";e[e["Str"]=1]="Str"})(o=t.Type||(t.Type={}));function getErrorPath(e,t,r){if(e instanceof n.Name){const s=t===o.Num;return r?s?(0,n._)`"[" + ${e} + "]"`:(0,n._)`"['" + ${e} + "']"`:s?(0,n._)`"/" + ${e}`:(0,n._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,n.getProperty)(e).toString():"/"+escapeJsonPointer(e)}t.getErrorPath=getErrorPath;function checkStrictMode(e,t,r=e.opts.strictSchema){if(!r)return;t=`strict mode: ${t}`;if(r===true)throw new Error(t);e.self.logger.warn(t)}t.checkStrictMode=checkStrictMode},7278:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0;function schemaHasRulesForType({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==true&&shouldUseGroup(e,n)}t.schemaHasRulesForType=schemaHasRulesForType;function shouldUseGroup(e,t){return t.rules.some((t=>shouldUseRule(e,t)))}t.shouldUseGroup=shouldUseGroup;function shouldUseRule(e,t){var r;return e[t.keyword]!==undefined||((r=t.definition.implements)===null||r===void 0?void 0:r.some((t=>e[t]!==undefined)))}t.shouldUseRule=shouldUseRule},8586:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=r(5560);const s=r(3123);const a=r(2491);const o={message:"boolean schema is false"};function topBoolOrEmptySchema(e){const{gen:t,schema:r,validateName:n}=e;if(r===false){falseSchemaError(e,false)}else if(typeof r=="object"&&r.$async===true){t.return(a.default.data)}else{t.assign((0,s._)`${n}.errors`,null);t.return(true)}}t.topBoolOrEmptySchema=topBoolOrEmptySchema;function boolOrEmptySchema(e,t){const{gen:r,schema:n}=e;if(n===false){r.var(t,false);falseSchemaError(e)}else{r.var(t,true)}}t.boolOrEmptySchema=boolOrEmptySchema;function falseSchemaError(e,t){const{gen:r,data:s}=e;const a={gen:r,keyword:"false schema",data:s,schema:false,schemaCode:false,schemaValue:false,params:{},it:e};(0,n.reportError)(a,o,undefined,t)}},2404:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=r(2199);const s=r(7278);const a=r(5560);const o=r(3123);const i=r(4802);var c;(function(e){e[e["Correct"]=0]="Correct";e[e["Wrong"]=1]="Wrong"})(c=t.DataType||(t.DataType={}));function getSchemaTypes(e){const t=getJSONTypes(e.type);const r=t.includes("null");if(r){if(e.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==undefined){throw new Error('"nullable" cannot be used without "type"')}if(e.nullable===true)t.push("null")}return t}t.getSchemaTypes=getSchemaTypes;function getJSONTypes(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}t.getJSONTypes=getJSONTypes;function coerceAndCheckDataType(e,t){const{gen:r,data:n,opts:a}=e;const o=coerceToTypes(t,a.coerceTypes);const i=t.length>0&&!(o.length===0&&t.length===1&&(0,s.schemaHasRulesForType)(e,t[0]));if(i){const s=checkDataTypes(t,n,a.strictNumbers,c.Wrong);r.if(s,(()=>{if(o.length)coerceData(e,t,o);else reportTypeError(e)}))}return i}t.coerceAndCheckDataType=coerceAndCheckDataType;const u=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(e,t){return t?e.filter((e=>u.has(e)||t==="array"&&e==="array")):[]}function coerceData(e,t,r){const{gen:n,data:s,opts:a}=e;const i=n.let("dataType",(0,o._)`typeof ${s}`);const c=n.let("coerced",(0,o._)`undefined`);if(a.coerceTypes==="array"){n.if((0,o._)`${i} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,(()=>n.assign(s,(0,o._)`${s}[0]`).assign(i,(0,o._)`typeof ${s}`).if(checkDataTypes(t,s,a.strictNumbers),(()=>n.assign(c,s)))))}n.if((0,o._)`${c} !== undefined`);for(const e of r){if(u.has(e)||e==="array"&&a.coerceTypes==="array"){coerceSpecificType(e)}}n.else();reportTypeError(e);n.endIf();n.if((0,o._)`${c} !== undefined`,(()=>{n.assign(s,c);assignParentData(e,c)}));function coerceSpecificType(e){switch(e){case"string":n.elseIf((0,o._)`${i} == "number" || ${i} == "boolean"`).assign(c,(0,o._)`"" + ${s}`).elseIf((0,o._)`${s} === null`).assign(c,(0,o._)`""`);return;case"number":n.elseIf((0,o._)`${i} == "boolean" || ${s} === null
2
2
  || (${i} == "string" && ${s} && ${s} == +${s})`).assign(c,(0,o._)`+${s}`);return;case"integer":n.elseIf((0,o._)`${i} === "boolean" || ${s} === null
3
3
  || (${i} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(c,(0,o._)`+${s}`);return;case"boolean":n.elseIf((0,o._)`${s} === "false" || ${s} === 0 || ${s} === null`).assign(c,false).elseIf((0,o._)`${s} === "true" || ${s} === 1`).assign(c,true);return;case"null":n.elseIf((0,o._)`${s} === "" || ${s} === 0 || ${s} === false`);n.assign(c,null);return;case"array":n.elseIf((0,o._)`${i} === "string" || ${i} === "number"
4
- || ${i} === "boolean" || ${s} === null`).assign(c,(0,o._)`[${s}]`)}}}function assignParentData({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,o._)`${t} !== undefined`,(()=>e.assign((0,o._)`${t}[${r}]`,n)))}function checkDataType(e,t,r,n=c.Correct){const s=n===c.Correct?o.operators.EQ:o.operators.NEQ;let a;switch(e){case"null":return(0,o._)`${t} ${s} null`;case"array":a=(0,o._)`Array.isArray(${t})`;break;case"object":a=(0,o._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=numCond((0,o._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=numCond();break;default:return(0,o._)`typeof ${t} ${s} ${e}`}return n===c.Correct?a:(0,o.not)(a);function numCond(e=o.nil){return(0,o.and)((0,o._)`typeof ${t} == "number"`,e,r?(0,o._)`isFinite(${t})`:o.nil)}}t.checkDataType=checkDataType;function checkDataTypes(e,t,r,n){if(e.length===1){return checkDataType(e[0],t,r,n)}let s;const a=(0,i.toHash)(e);if(a.array&&a.object){const e=(0,o._)`typeof ${t} != "object"`;s=a.null?e:(0,o._)`!${t} || ${e}`;delete a.null;delete a.array;delete a.object}else{s=o.nil}if(a.number)delete a.integer;for(const e in a)s=(0,o.and)(s,checkDataType(e,t,r,n));return s}t.checkDataTypes=checkDataTypes;const l={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,o._)`{type: ${e}}`:(0,o._)`{type: ${t}}`};function reportTypeError(e){const t=getTypeErrorContext(e);(0,a.reportError)(t,l)}t.reportTypeError=reportTypeError;function getTypeErrorContext(e){const{gen:t,data:r,schema:n}=e;const s=(0,i.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:e}}},1647:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assignDefaults=void 0;const n=r(3567);const s=r(8637);function assignDefaults(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r){for(const t in r){assignDefault(e,t,r[t].default)}}else if(t==="array"&&Array.isArray(n)){n.forEach(((t,r)=>assignDefault(e,r,t.default)))}}t.assignDefaults=assignDefaults;function assignDefault(e,t,r){const{gen:a,compositeRule:o,data:i,opts:c}=e;if(r===undefined)return;const u=(0,n._)`${i}${(0,n.getProperty)(t)}`;if(o){(0,s.checkStrictMode)(e,`default is ignored for: ${u}`);return}let l=(0,n._)`${u} === undefined`;if(c.useDefaults==="empty"){l=(0,n._)`${l} || ${u} === null || ${u} === ""`}a.if(l,(0,n._)`${u} = ${(0,n.stringify)(r)}`)}},6513:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=r(8824);const s=r(4554);const a=r(9301);const o=r(4554);const i=r(1647);const c=r(4866);const u=r(5461);const l=r(3567);const f=r(8736);const d=r(6022);const p=r(8637);const h=r(2967);function validateFunctionCode(e){if(isSchemaObj(e)){checkKeywords(e);if(schemaCxtHasRules(e)){topSchemaObjCode(e);return}}validateFunction(e,(()=>(0,n.topBoolOrEmptySchema)(e)))}t.validateFunctionCode=validateFunctionCode;function validateFunction({gen:e,validateName:t,schema:r,schemaEnv:n,opts:s},a){if(s.code.es5){e.func(t,(0,l._)`${f.default.data}, ${f.default.valCxt}`,n.$async,(()=>{e.code((0,l._)`"use strict"; ${funcSourceUrl(r,s)}`);destructureValCxtES5(e,s);e.code(a)}))}else{e.func(t,(0,l._)`${f.default.data}, ${destructureValCxt(s)}`,n.$async,(()=>e.code(funcSourceUrl(r,s)).code(a)))}}function destructureValCxt(e){return(0,l._)`{${f.default.instancePath}="", ${f.default.parentData}, ${f.default.parentDataProperty}, ${f.default.rootData}=${f.default.data}${e.dynamicRef?(0,l._)`, ${f.default.dynamicAnchors}={}`:l.nil}}={}`}function destructureValCxtES5(e,t){e.if(f.default.valCxt,(()=>{e.var(f.default.instancePath,(0,l._)`${f.default.valCxt}.${f.default.instancePath}`);e.var(f.default.parentData,(0,l._)`${f.default.valCxt}.${f.default.parentData}`);e.var(f.default.parentDataProperty,(0,l._)`${f.default.valCxt}.${f.default.parentDataProperty}`);e.var(f.default.rootData,(0,l._)`${f.default.valCxt}.${f.default.rootData}`);if(t.dynamicRef)e.var(f.default.dynamicAnchors,(0,l._)`${f.default.valCxt}.${f.default.dynamicAnchors}`)}),(()=>{e.var(f.default.instancePath,(0,l._)`""`);e.var(f.default.parentData,(0,l._)`undefined`);e.var(f.default.parentDataProperty,(0,l._)`undefined`);e.var(f.default.rootData,f.default.data);if(t.dynamicRef)e.var(f.default.dynamicAnchors,(0,l._)`{}`)}))}function topSchemaObjCode(e){const{schema:t,opts:r,gen:n}=e;validateFunction(e,(()=>{if(r.$comment&&t.$comment)commentKeyword(e);checkNoDefault(e);n.let(f.default.vErrors,null);n.let(f.default.errors,0);if(r.unevaluated)resetEvaluated(e);typeAndKeywords(e);returnResults(e)}));return}function resetEvaluated(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,l._)`${r}.evaluated`);t.if((0,l._)`${e.evaluated}.dynamicProps`,(()=>t.assign((0,l._)`${e.evaluated}.props`,(0,l._)`undefined`)));t.if((0,l._)`${e.evaluated}.dynamicItems`,(()=>t.assign((0,l._)`${e.evaluated}.items`,(0,l._)`undefined`)))}function funcSourceUrl(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,l._)`/*# sourceURL=${r} */`:l.nil}function subschemaCode(e,t){if(isSchemaObj(e)){checkKeywords(e);if(schemaCxtHasRules(e)){subSchemaObjCode(e,t);return}}(0,n.boolOrEmptySchema)(e,t)}function schemaCxtHasRules({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return true;return false}function isSchemaObj(e){return typeof e.schema!="boolean"}function subSchemaObjCode(e,t){const{schema:r,gen:n,opts:s}=e;if(s.$comment&&r.$comment)commentKeyword(e);updateContext(e);checkAsyncSchema(e);const a=n.const("_errs",f.default.errors);typeAndKeywords(e,a);n.var(t,(0,l._)`${a} === ${f.default.errors}`)}function checkKeywords(e){(0,p.checkUnknownRules)(e);checkRefsAndKeywords(e)}function typeAndKeywords(e,t){if(e.opts.jtd)return schemaKeywords(e,[],false,t);const r=(0,s.getSchemaTypes)(e.schema);const n=(0,s.coerceAndCheckDataType)(e,r);schemaKeywords(e,r,!n,t)}function checkRefsAndKeywords(e){const{schema:t,errSchemaPath:r,opts:n,self:s}=e;if(t.$ref&&n.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(t,s.RULES)){s.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}}function checkNoDefault(e){const{schema:t,opts:r}=e;if(t.default!==undefined&&r.useDefaults&&r.strictSchema){(0,p.checkStrictMode)(e,"default is ignored in the schema root")}}function updateContext(e){const t=e.schema[e.opts.schemaId];if(t)e.baseId=(0,d.resolveUrl)(e.baseId,t)}function checkAsyncSchema(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:s}){const a=r.$comment;if(s.$comment===true){e.code((0,l._)`${f.default.self}.logger.log(${a})`)}else if(typeof s.$comment=="function"){const r=(0,l.str)`${n}/$comment`;const s=e.scopeValue("root",{ref:t.root});e.code((0,l._)`${f.default.self}.opts.$comment(${a}, ${r}, ${s}.schema)`)}}function returnResults(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:s,opts:a}=e;if(r.$async){t.if((0,l._)`${f.default.errors} === 0`,(()=>t.return(f.default.data)),(()=>t.throw((0,l._)`new ${s}(${f.default.vErrors})`)))}else{t.assign((0,l._)`${n}.errors`,f.default.vErrors);if(a.unevaluated)assignEvaluated(e);t.return((0,l._)`${f.default.errors} === 0`)}}function assignEvaluated({gen:e,evaluated:t,props:r,items:n}){if(r instanceof l.Name)e.assign((0,l._)`${t}.props`,r);if(n instanceof l.Name)e.assign((0,l._)`${t}.items`,n)}function schemaKeywords(e,t,r,n){const{gen:s,schema:i,data:c,allErrors:u,opts:d,self:h}=e;const{RULES:m}=h;if(i.$ref&&(d.ignoreKeywordsWithRef||!(0,p.schemaHasRulesButRef)(i,m))){s.block((()=>keywordCode(e,"$ref",m.all.$ref.definition)));return}if(!d.jtd)checkStrictTypes(e,t);s.block((()=>{for(const e of m.rules)groupKeywords(e);groupKeywords(m.post)}));function groupKeywords(p){if(!(0,a.shouldUseGroup)(i,p))return;if(p.type){s.if((0,o.checkDataType)(p.type,c,d.strictNumbers));iterateKeywords(e,p);if(t.length===1&&t[0]===p.type&&r){s.else();(0,o.reportTypeError)(e)}s.endIf()}else{iterateKeywords(e,p)}if(!u)s.if((0,l._)`${f.default.errors} === ${n||0}`)}}function iterateKeywords(e,t){const{gen:r,schema:n,opts:{useDefaults:s}}=e;if(s)(0,i.assignDefaults)(e,t.type);r.block((()=>{for(const r of t.rules){if((0,a.shouldUseRule)(n,r)){keywordCode(e,r.keyword,r.definition,t.type)}}}))}function checkStrictTypes(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;checkContextTypes(e,t);if(!e.opts.allowUnionTypes)checkMultipleTypes(e,t);checkKeywordTypes(e,e.dataTypes)}function checkContextTypes(e,t){if(!t.length)return;if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach((t=>{if(!includesType(e.dataTypes,t)){strictTypesError(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}}));e.dataTypes=e.dataTypes.filter((e=>includesType(t,e)))}function checkMultipleTypes(e,t){if(t.length>1&&!(t.length===2&&t.includes("null"))){strictTypesError(e,"use allowUnionTypes to allow union type keyword")}}function checkKeywordTypes(e,t){const r=e.self.RULES.all;for(const n in r){const s=r[n];if(typeof s=="object"&&(0,a.shouldUseRule)(e.schema,s)){const{type:r}=s.definition;if(r.length&&!r.some((e=>hasApplicableType(t,e)))){strictTypesError(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}}function hasApplicableType(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function includesType(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function strictTypesError(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`;(0,p.checkStrictMode)(e,t,e.opts.strictTypes)}class KeywordCxt{constructor(e,t,r){(0,c.validateKeywordUsage)(e,t,r);this.gen=e.gen;this.allErrors=e.allErrors;this.keyword=r;this.data=e.data;this.schema=e.schema[r];this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,p.schemaRefOrVal)(e,this.schema,r,this.$data);this.schemaType=t.schemaType;this.parentSchema=e.schema;this.params={};this.it=e;this.def=t;if(this.$data){this.schemaCode=e.gen.const("vSchema",getData(this.$data,e))}else{this.schemaCode=this.schemaValue;if(!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined)){throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`)}}if("code"in t?t.trackErrors:t.errors!==false){this.errsCount=e.gen.const("_errs",f.default.errors)}}result(e,t,r){this.failResult((0,l.not)(e),t,r)}failResult(e,t,r){this.gen.if(e);if(r)r();else this.error();if(t){this.gen.else();t();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(e,t){this.failResult((0,l.not)(e),undefined,t)}fail(e){if(e===undefined){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(e);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,l._)`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t);this._error(e,r);this.setParams({});return}this._error(e,r)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===undefined)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){if(!this.allErrors)this.gen.if(e)}setParams(e,t){if(t)Object.assign(this.params,e);else this.params=e}block$data(e,t,r=l.nil){this.gen.block((()=>{this.check$data(e,r);t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:s,def:a}=this;r.if((0,l.or)((0,l._)`${n} === undefined`,t));if(e!==l.nil)r.assign(e,true);if(s.length||a.validateSchema){r.elseIf(this.invalid$data());this.$dataError();if(e!==l.nil)r.assign(e,false)}r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:s}=this;return(0,l.or)(wrong$DataType(),invalid$DataSchema());function wrong$DataType(){if(r.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return(0,l._)`${(0,o.checkDataTypes)(e,t,s.opts.strictNumbers,o.DataType.Wrong)}`}return l.nil}function invalid$DataSchema(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,l._)`!${r}(${t})`}return l.nil}}subschema(e,t){const r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e);(0,u.extendSubschemaMode)(r,e);const n={...this.it,...r,items:undefined,props:undefined};subschemaCode(n,t);return n}mergeEvaluated(e,t){const{it:r,gen:n}=this;if(!r.opts.unevaluated)return;if(r.props!==true&&e.props!==undefined){r.props=p.mergeEvaluated.props(n,e.props,r.props,t)}if(r.items!==true&&e.items!==undefined){r.items=p.mergeEvaluated.items(n,e.items,r.items,t)}}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(r.props!==true||r.items!==true)){n.if(t,(()=>this.mergeEvaluated(e,l.Name)));return true}}}t.KeywordCxt=KeywordCxt;function keywordCode(e,t,r,n){const s=new KeywordCxt(e,r,t);if("code"in r){r.code(s,n)}else if(s.$data&&r.validate){(0,c.funcKeywordCode)(s,r)}else if("macro"in r){(0,c.macroKeywordCode)(s,r)}else if(r.compile||r.validate){(0,c.funcKeywordCode)(s,r)}}const m=/^\/(?:[^~]|~0|~1)*$/;const y=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let s;let a;if(e==="")return f.default.rootData;if(e[0]==="/"){if(!m.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);s=e;a=f.default.rootData}else{const o=y.exec(e);if(!o)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+o[1];s=o[2];if(s==="#"){if(i>=t)throw new Error(errorMsg("property/index",i));return n[t-i]}if(i>t)throw new Error(errorMsg("data",i));a=r[t-i];if(!s)return a}let o=a;const i=s.split("/");for(const e of i){if(e){a=(0,l._)`${a}${(0,l.getProperty)((0,p.unescapeJsonPointer)(e))}`;o=(0,l._)`${o} && ${a}`}}return o;function errorMsg(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=getData},4866:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=r(3567);const s=r(8736);const a=r(6771);const o=r(2967);function macroKeywordCode(e,t){const{gen:r,keyword:s,schema:a,parentSchema:o,it:i}=e;const c=t.macro.call(i.self,a,o,i);const u=useKeyword(r,s,c);if(i.opts.validateSchema!==false)i.self.validateSchema(c,true);const l=r.name("valid");e.subschema({schema:c,schemaPath:n.nil,errSchemaPath:`${i.errSchemaPath}/${s}`,topSchemaRef:u,compositeRule:true},l);e.pass(l,(()=>e.error(true)))}t.macroKeywordCode=macroKeywordCode;function funcKeywordCode(e,t){var r;const{gen:o,keyword:i,schema:c,parentSchema:u,$data:l,it:f}=e;checkAsyncKeyword(f,t);const d=!l&&t.compile?t.compile.call(f.self,c,u,f):t.validate;const p=useKeyword(o,i,d);const h=o.let("valid");e.block$data(h,validateKeyword);e.ok((r=t.valid)!==null&&r!==void 0?r:h);function validateKeyword(){if(t.errors===false){assignValid();if(t.modifying)modifyData(e);reportErrs((()=>e.error()))}else{const r=t.async?validateAsync():validateSync();if(t.modifying)modifyData(e);reportErrs((()=>addErrs(e,r)))}}function validateAsync(){const e=o.let("ruleErrs",null);o.try((()=>assignValid((0,n._)`await `)),(t=>o.assign(h,false).if((0,n._)`${t} instanceof ${f.ValidationError}`,(()=>o.assign(e,(0,n._)`${t}.errors`)),(()=>o.throw(t)))));return e}function validateSync(){const e=(0,n._)`${p}.errors`;o.assign(e,null);assignValid(n.nil);return e}function assignValid(r=(t.async?(0,n._)`await `:n.nil)){const i=f.opts.passContext?s.default.this:s.default.self;const c=!("compile"in t&&!l||t.schema===false);o.assign(h,(0,n._)`${r}${(0,a.callValidateCode)(e,p,i,c)}`,t.modifying)}function reportErrs(e){var r;o.if((0,n.not)((r=t.valid)!==null&&r!==void 0?r:h),e)}}t.funcKeywordCode=funcKeywordCode;function modifyData(e){const{gen:t,data:r,it:s}=e;t.if(s.parentData,(()=>t.assign(r,(0,n._)`${s.parentData}[${s.parentDataProperty}]`)))}function addErrs(e,t){const{gen:r}=e;r.if((0,n._)`Array.isArray(${t})`,(()=>{r.assign(s.default.vErrors,(0,n._)`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`).assign(s.default.errors,(0,n._)`${s.default.vErrors}.length`);(0,o.extendErrors)(e)}),(()=>e.error()))}function checkAsyncKeyword({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function useKeyword(e,t,r){if(r===undefined)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}function validSchemaType(e,t,r=false){return!t.length||t.some((t=>t==="array"?Array.isArray(e):t==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==t||r&&typeof e=="undefined"))}t.validSchemaType=validSchemaType;function validateKeywordUsage({schema:e,opts:t,self:r,errSchemaPath:n},s,a){if(Array.isArray(s.keyword)?!s.keyword.includes(a):s.keyword!==a){throw new Error("ajv implementation error")}const o=s.dependencies;if(o===null||o===void 0?void 0:o.some((t=>!Object.prototype.hasOwnProperty.call(e,t)))){throw new Error(`parent schema must have dependencies of ${a}: ${o.join(",")}`)}if(s.validateSchema){const o=s.validateSchema(e[a]);if(!o){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(s.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(e);else throw new Error(e)}}}t.validateKeywordUsage=validateKeywordUsage},5461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=r(3567);const s=r(8637);function getSubschema(e,{keyword:t,schemaProp:r,schema:a,schemaPath:o,errSchemaPath:i,topSchemaRef:c}){if(t!==undefined&&a!==undefined){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(t!==undefined){const a=e.schema[t];return r===undefined?{schema:a,schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,s.escapeFragment)(r)}`}}if(a!==undefined){if(o===undefined||i===undefined||c===undefined){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema:a,schemaPath:o,topSchemaRef:c,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}t.getSubschema=getSubschema;function extendSubschemaData(e,t,{dataProp:r,dataPropType:a,data:o,dataTypes:i,propertyName:c}){if(o!==undefined&&r!==undefined){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen:u}=t;if(r!==undefined){const{errorPath:o,dataPathArr:i,opts:c}=t;const l=u.let("data",(0,n._)`${t.data}${(0,n.getProperty)(r)}`,true);dataContextProps(l);e.errorPath=(0,n.str)`${o}${(0,s.getErrorPath)(r,a,c.jsPropertySyntax)}`;e.parentDataProperty=(0,n._)`${r}`;e.dataPathArr=[...i,e.parentDataProperty]}if(o!==undefined){const t=o instanceof n.Name?o:u.let("data",o,true);dataContextProps(t);if(c!==undefined)e.propertyName=c}if(i)e.dataTypes=i;function dataContextProps(r){e.data=r;e.dataLevel=t.dataLevel+1;e.dataTypes=[];t.definedProperties=new Set;e.parentData=t.data;e.dataNames=[...t.dataNames,r]}}t.extendSubschemaData=extendSubschemaData;function extendSubschemaMode(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:s,allErrors:a}){if(n!==undefined)e.compositeRule=n;if(s!==undefined)e.createErrors=s;if(a!==undefined)e.allErrors=a;e.jtdDiscriminator=t;e.jtdMetadata=r}t.extendSubschemaMode=extendSubschemaMode},9632:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(6513);Object.defineProperty(t,"KeywordCxt",{enumerable:true,get:function(){return n.KeywordCxt}});var s=r(3567);Object.defineProperty(t,"_",{enumerable:true,get:function(){return s._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return s.str}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return s.stringify}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return s.nil}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return s.Name}});Object.defineProperty(t,"CodeGen",{enumerable:true,get:function(){return s.CodeGen}});const a=r(9123);const o=r(6138);const i=r(6636);const c=r(7945);const u=r(3567);const l=r(6022);const f=r(4554);const d=r(8637);const p=r(1147);const defaultRegExp=(e,t)=>new RegExp(e,t);defaultRegExp.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"];const m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);const y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};const g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};const v=200;function requiredOptions(e){var t,r,n,s,a,o,i,c,u,l,f,d,p,h,m,y,g,b,$,S,w,E,P,x;const k=e.strict;const C=(t=e.code)===null||t===void 0?void 0:t.optimize;const A=C===true||C===undefined?1:C||0;const R=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:defaultRegExp;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:k)!==null&&a!==void 0?a:true,strictNumbers:(i=(o=e.strictNumbers)!==null&&o!==void 0?o:k)!==null&&i!==void 0?i:true,strictTypes:(u=(c=e.strictTypes)!==null&&c!==void 0?c:k)!==null&&u!==void 0?u:"log",strictTuples:(f=(l=e.strictTuples)!==null&&l!==void 0?l:k)!==null&&f!==void 0?f:"log",strictRequired:(p=(d=e.strictRequired)!==null&&d!==void 0?d:k)!==null&&p!==void 0?p:false,code:e.code?{...e.code,optimize:A,regExp:R}:{optimize:A,regExp:R},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:v,loopEnum:(m=e.loopEnum)!==null&&m!==void 0?m:v,meta:(y=e.meta)!==null&&y!==void 0?y:true,messages:(g=e.messages)!==null&&g!==void 0?g:true,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:true,schemaId:($=e.schemaId)!==null&&$!==void 0?$:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:true,validateSchema:(w=e.validateSchema)!==null&&w!==void 0?w:true,validateFormats:(E=e.validateFormats)!==null&&E!==void 0?E:true,unicodeRegExp:(P=e.unicodeRegExp)!==null&&P!==void 0?P:true,int32range:(x=e.int32range)!==null&&x!==void 0?x:true}}class Ajv{constructor(e={}){this.schemas={};this.refs={};this.formats={};this._compilations=new Set;this._loading={};this._cache=new Map;e=this.opts={...e,...requiredOptions(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:m,es5:t,lines:r});this.logger=getLogger(e.logger);const n=e.validateFormats;e.validateFormats=false;this.RULES=(0,i.getRules)();checkOptions.call(this,y,e,"NOT SUPPORTED");checkOptions.call(this,g,e,"DEPRECATED","warn");this._metaOpts=getMetaSchemaOptions.call(this);if(e.formats)addInitialFormats.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(e.keywords)addInitialKeywords.call(this,e.keywords);if(typeof e.meta=="object")this.addMetaSchema(e.meta);addInitialSchemas.call(this);e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=p;if(r==="id"){n={...p};n.id=n.$id;delete n.$id}if(t&&e)this.addMetaSchema(n,n[r],false)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[t]||e:undefined}validate(e,t){let r;if(typeof e=="string"){r=this.getSchema(e);if(!r)throw new Error(`no schema with key or ref "${e}"`)}else{r=this.compile(e)}const n=r(t);if(!("$async"in r))this.errors=r.errors;return n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema:r}=this.opts;return runCompileAsync.call(this,e,t);async function runCompileAsync(e,t){await loadMetaSchema.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||_compileAsync.call(this,r)}async function loadMetaSchema(e){if(e&&!this.getSchema(e)){await runCompileAsync.call(this,{$ref:e},true)}}async function _compileAsync(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;checkLoaded.call(this,t);await loadMissingSchema.call(this,t.missingSchema);return _compileAsync.call(this,e)}}function checkLoaded({missingSchema:e,missingRef:t}){if(this.refs[e]){throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}}async function loadMissingSchema(e){const r=await _loadSchema.call(this,e);if(!this.refs[e])await loadMetaSchema.call(this,r.$schema);if(!this.refs[e])this.addSchema(r,e,t)}async function _loadSchema(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,undefined,r,n);return this}let s;if(typeof e==="object"){const{schemaId:t}=this.opts;s=e[t];if(s!==undefined&&typeof s!="string"){throw new Error(`schema ${t} must be string`)}}t=(0,l.normalizeId)(t||s);this._checkUnique(t);this.schemas[t]=this._addSchema(e,r,t,n,true);return this}addMetaSchema(e,t,r=this.opts.validateSchema){this.addSchema(e,t,true,r);return this}validateSchema(e,t){if(typeof e=="boolean")return true;let r;r=e.$schema;if(r!==undefined&&typeof r!="string"){throw new Error("$schema must be a string")}r=r||this.opts.defaultMeta||this.defaultMeta();if(!r){this.logger.warn("meta-schema not available");this.errors=null;return true}const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(e);else throw new Error(e)}return n}getSchema(e){let t;while(typeof(t=getSchEnv.call(this,e))=="string")e=t;if(t===undefined){const{schemaId:r}=this.opts;const n=new c.SchemaEnv({schema:{},schemaId:r});t=c.resolveSchema.call(this,n,e);if(!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp){this._removeAllSchemas(this.schemas,e);this._removeAllSchemas(this.refs,e);return this}switch(typeof e){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const t=getSchEnv.call(this,e);if(typeof t=="object")this._cache.delete(t.schema);delete this.schemas[e];delete this.refs[e];return this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];if(r){r=(0,l.normalizeId)(r);delete this.schemas[r];delete this.refs[r]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if(typeof e=="string"){r=e;if(typeof t=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");t.keyword=r}}else if(typeof e=="object"&&t===undefined){t=e;r=t.keyword;if(Array.isArray(r)&&!r.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}checkKeyword.call(this,r,t);if(!t){(0,d.eachItem)(r,(e=>addRule.call(this,e)));return this}keywordMetaschema.call(this,t);const n={...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)};(0,d.eachItem)(r,n.type.length===0?e=>addRule.call(this,e,n):e=>n.type.forEach((t=>addRule.call(this,e,n,t))));return this}getKeyword(e){const t=this.RULES.all[e];return typeof t=="object"?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e];delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));if(t>=0)r.rules.splice(t,1)}return this}addFormat(e,t){if(typeof t=="string")t=new RegExp(t);this.formats[e]=t;return this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){if(!e||e.length===0)return"No errors";return e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r))}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let s=e;for(const e of t)s=s[e];for(const e in r){const t=r[e];if(typeof t!="object")continue;const{$data:n}=t.definition;const a=s[e];if(n&&a)s[e]=schemaOrData(a)}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];if(!t||t.test(r)){if(typeof n=="string"){delete e[r]}else if(n&&!n.meta){this._cache.delete(n.schema);delete e[r]}}}}_addSchema(e,t,r,n=this.opts.validateSchema,s=this.opts.addUsedSchema){let a;const{schemaId:o}=this.opts;if(typeof e=="object"){a=e[o]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let i=this._cache.get(e);if(i!==undefined)return i;r=(0,l.normalizeId)(a||r);const u=l.getSchemaRefs.call(this,e,r);i=new c.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:r,localRefs:u});this._cache.set(i.schema,i);if(s&&!r.startsWith("#")){if(r)this._checkUnique(r);this.refs[r]=i}if(n)this.validateSchema(e,true);return i}_checkUnique(e){if(this.schemas[e]||this.refs[e]){throw new Error(`schema with key or id "${e}" already exists`)}}_compileSchemaEnv(e){if(e.meta)this._compileMetaSchema(e);else c.compileSchema.call(this,e);if(!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}t["default"]=Ajv;Ajv.ValidationError=a.default;Ajv.MissingRefError=o.default;function checkOptions(e,t,r,n="error"){for(const s in e){const a=s;if(a in t)this.logger[n](`${r}: option ${s}. ${e[a]}`)}}function getSchEnv(e){e=(0,l.normalizeId)(e);return this.schemas[e]||this.refs[e]}function addInitialSchemas(){const e=this.opts.schemas;if(!e)return;if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function addInitialFormats(){for(const e in this.opts.formats){const t=this.opts.formats[e];if(t)this.addFormat(e,t)}}function addInitialKeywords(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];if(!r.keyword)r.keyword=t;this.addKeyword(r)}}function getMetaSchemaOptions(){const e={...this.opts};for(const t of h)delete e[t];return e}const b={log(){},warn(){},error(){}};function getLogger(e){if(e===false)return b;if(e===undefined)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}const $=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(e,t){const{RULES:r}=this;(0,d.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!$.test(e))throw new Error(`Keyword ${e} has invalid name`)}));if(!t)return;if(t.$data&&!("code"in t||"validate"in t)){throw new Error('$data keyword must have "code" or "validate" function')}}function addRule(e,t,r){var n;const s=t===null||t===void 0?void 0:t.post;if(r&&s)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let o=s?a.post:a.rules.find((({type:e})=>e===r));if(!o){o={type:r,rules:[]};a.rules.push(o)}a.keywords[e]=true;if(!t)return;const i={keyword:e,definition:{...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)}};if(t.before)addBeforeRule.call(this,o,i,t.before);else o.rules.push(i);a.all[e]=i;(n=t.implements)===null||n===void 0?void 0:n.forEach((e=>this.addKeyword(e)))}function addBeforeRule(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));if(n>=0){e.rules.splice(n,0,t)}else{e.rules.push(t);this.logger.warn(`rule ${r} is not defined`)}}function keywordMetaschema(e){let{metaSchema:t}=e;if(t===undefined)return;if(e.$data&&this.opts.$data)t=schemaOrData(t);e.validateSchema=this.compile(t,true)}const S={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(e){return{anyOf:[e,S]}}},4982:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1424);n.code='require("ajv/dist/runtime/equal").default';t["default"]=n},6683:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function ucs2length(e){const t=e.length;let r=0;let n=0;let s;while(n<t){r++;s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<t){s=e.charCodeAt(n);if((s&64512)===56320)n++}}return r}t["default"]=ucs2length;ucs2length.code='require("ajv/dist/runtime/ucs2length").default'},9123:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class ValidationError extends Error{constructor(e){super("validation failed");this.errors=e;this.ajv=this.validation=true}}t["default"]=ValidationError},6284:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateAdditionalItems=void 0;const n=r(3567);const s=r(8637);const a={message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`};const o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:a,code(e){const{parentSchema:t,it:r}=e;const{items:n}=t;if(!Array.isArray(n)){(0,s.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}validateAdditionalItems(e,n)}};function validateAdditionalItems(e,t){const{gen:r,schema:a,data:o,keyword:i,it:c}=e;c.items=true;const u=r.const("len",(0,n._)`${o}.length`);if(a===false){e.setParams({len:t.length});e.pass((0,n._)`${u} <= ${t.length}`)}else if(typeof a=="object"&&!(0,s.alwaysValidSchema)(c,a)){const s=r.var("valid",(0,n._)`${u} <= ${t.length}`);r.if((0,n.not)(s),(()=>validateItems(s)));e.ok(s)}function validateItems(a){r.forRange("i",t.length,u,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:s.Type.Num},a);if(!c.allErrors)r.if((0,n.not)(a),(()=>r.break()))}))}}t.validateAdditionalItems=validateAdditionalItems;t["default"]=o},6039:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6771);const s=r(3567);const a=r(8736);const o=r(8637);const i={message:"must NOT have additional properties",params:({params:e})=>(0,s._)`{additionalProperty: ${e.additionalProperty}}`};const c={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:true,trackErrors:true,error:i,code(e){const{gen:t,schema:r,parentSchema:i,data:c,errsCount:u,it:l}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:f,opts:d}=l;l.props=true;if(d.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(l,r))return;const p=(0,n.allSchemaProperties)(i.properties);const h=(0,n.allSchemaProperties)(i.patternProperties);checkAdditionalProperties();e.ok((0,s._)`${u} === ${a.default.errors}`);function checkAdditionalProperties(){t.forIn("key",c,(e=>{if(!p.length&&!h.length)additionalPropertyCode(e);else t.if(isAdditional(e),(()=>additionalPropertyCode(e)))}))}function isAdditional(r){let a;if(p.length>8){const e=(0,o.schemaRefOrVal)(l,i.properties,"properties");a=(0,n.isOwnProperty)(t,e,r)}else if(p.length){a=(0,s.or)(...p.map((e=>(0,s._)`${r} === ${e}`)))}else{a=s.nil}if(h.length){a=(0,s.or)(a,...h.map((t=>(0,s._)`${(0,n.usePattern)(e,t)}.test(${r})`)))}return(0,s.not)(a)}function deleteAdditional(e){t.code((0,s._)`delete ${c}[${e}]`)}function additionalPropertyCode(n){if(d.removeAdditional==="all"||d.removeAdditional&&r===false){deleteAdditional(n);return}if(r===false){e.setParams({additionalProperty:n});e.error();if(!f)t.break();return}if(typeof r=="object"&&!(0,o.alwaysValidSchema)(l,r)){const r=t.name("valid");if(d.removeAdditional==="failing"){applyAdditionalSchema(n,r,false);t.if((0,s.not)(r),(()=>{e.reset();deleteAdditional(n)}))}else{applyAdditionalSchema(n,r);if(!f)t.if((0,s.not)(r),(()=>t.break()))}}}function applyAdditionalSchema(t,r,n){const s={keyword:"additionalProperties",dataProp:t,dataPropType:o.Type.Str};if(n===false){Object.assign(s,{compositeRule:true,createErrors:false,allErrors:false})}e.subschema(s,r)}}};t["default"]=c},5186:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8637);const s={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(s,t))return;const o=e.subschema({keyword:"allOf",schemaProp:r},a);e.ok(a);e.mergeEvaluated(o)}))}};t["default"]=s},4479:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6771);const s={keyword:"anyOf",schemaType:"array",trackErrors:true,code:n.validateUnion,error:{message:"must match a schema in anyOf"}};t["default"]=s},2720:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(8637);const a={message:({params:{min:e,max:t}})=>t===undefined?(0,n.str)`must contain at least ${e} valid item(s)`:(0,n.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===undefined?(0,n._)`{minContains: ${e}}`:(0,n._)`{minContains: ${e}, maxContains: ${t}}`};const o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:a,code(e){const{gen:t,schema:r,parentSchema:a,data:o,it:i}=e;let c;let u;const{minContains:l,maxContains:f}=a;if(i.opts.next){c=l===undefined?1:l;u=f}else{c=1}const d=t.const("len",(0,n._)`${o}.length`);e.setParams({min:c,max:u});if(u===undefined&&c===0){(0,s.checkStrictMode)(i,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(u!==undefined&&c>u){(0,s.checkStrictMode)(i,`"minContains" > "maxContains" is always invalid`);e.fail();return}if((0,s.alwaysValidSchema)(i,r)){let t=(0,n._)`${d} >= ${c}`;if(u!==undefined)t=(0,n._)`${t} && ${d} <= ${u}`;e.pass(t);return}i.items=true;const p=t.name("valid");if(u===undefined&&c===1){validateItems(p,(()=>t.if(p,(()=>t.break()))))}else if(c===0){t.let(p,true);if(u!==undefined)t.if((0,n._)`${o}.length > 0`,validateItemsWithCount)}else{t.let(p,false);validateItemsWithCount()}e.result(p,(()=>e.reset()));function validateItemsWithCount(){const e=t.name("_valid");const r=t.let("count",0);validateItems(e,(()=>t.if(e,(()=>checkLimits(r)))))}function validateItems(r,n){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:s.Type.Num,compositeRule:true},r);n()}))}function checkLimits(e){t.code((0,n._)`${e}++`);if(u===undefined){t.if((0,n._)`${e} >= ${c}`,(()=>t.assign(p,true).break()))}else{t.if((0,n._)`${e} > ${u}`,(()=>t.assign(p,false).break()));if(c===1)t.assign(p,true);else t.if((0,n._)`${e} >= ${c}`,(()=>t.assign(p,true)))}}}};t["default"]=o},9543:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=r(3567);const s=r(8637);const a=r(6771);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const s=t===1?"property":"properties";return(0,n.str)`must have ${s} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:s}})=>(0,n._)`{property: ${e},
4
+ || ${i} === "boolean" || ${s} === null`).assign(c,(0,o._)`[${s}]`)}}}function assignParentData({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,o._)`${t} !== undefined`,(()=>e.assign((0,o._)`${t}[${r}]`,n)))}function checkDataType(e,t,r,n=c.Correct){const s=n===c.Correct?o.operators.EQ:o.operators.NEQ;let a;switch(e){case"null":return(0,o._)`${t} ${s} null`;case"array":a=(0,o._)`Array.isArray(${t})`;break;case"object":a=(0,o._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=numCond((0,o._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=numCond();break;default:return(0,o._)`typeof ${t} ${s} ${e}`}return n===c.Correct?a:(0,o.not)(a);function numCond(e=o.nil){return(0,o.and)((0,o._)`typeof ${t} == "number"`,e,r?(0,o._)`isFinite(${t})`:o.nil)}}t.checkDataType=checkDataType;function checkDataTypes(e,t,r,n){if(e.length===1){return checkDataType(e[0],t,r,n)}let s;const a=(0,i.toHash)(e);if(a.array&&a.object){const e=(0,o._)`typeof ${t} != "object"`;s=a.null?e:(0,o._)`!${t} || ${e}`;delete a.null;delete a.array;delete a.object}else{s=o.nil}if(a.number)delete a.integer;for(const e in a)s=(0,o.and)(s,checkDataType(e,t,r,n));return s}t.checkDataTypes=checkDataTypes;const l={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,o._)`{type: ${e}}`:(0,o._)`{type: ${t}}`};function reportTypeError(e){const t=getTypeErrorContext(e);(0,a.reportError)(t,l)}t.reportTypeError=reportTypeError;function getTypeErrorContext(e){const{gen:t,data:r,schema:n}=e;const s=(0,i.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:e}}},9055:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assignDefaults=void 0;const n=r(3123);const s=r(4802);function assignDefaults(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r){for(const t in r){assignDefault(e,t,r[t].default)}}else if(t==="array"&&Array.isArray(n)){n.forEach(((t,r)=>assignDefault(e,r,t.default)))}}t.assignDefaults=assignDefaults;function assignDefault(e,t,r){const{gen:a,compositeRule:o,data:i,opts:c}=e;if(r===undefined)return;const u=(0,n._)`${i}${(0,n.getProperty)(t)}`;if(o){(0,s.checkStrictMode)(e,`default is ignored for: ${u}`);return}let l=(0,n._)`${u} === undefined`;if(c.useDefaults==="empty"){l=(0,n._)`${l} || ${u} === null || ${u} === ""`}a.if(l,(0,n._)`${u} = ${(0,n.stringify)(r)}`)}},9850:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=r(8586);const s=r(2404);const a=r(7278);const o=r(2404);const i=r(9055);const c=r(6854);const u=r(3676);const l=r(3123);const f=r(2491);const d=r(1034);const p=r(4802);const h=r(5560);function validateFunctionCode(e){if(isSchemaObj(e)){checkKeywords(e);if(schemaCxtHasRules(e)){topSchemaObjCode(e);return}}validateFunction(e,(()=>(0,n.topBoolOrEmptySchema)(e)))}t.validateFunctionCode=validateFunctionCode;function validateFunction({gen:e,validateName:t,schema:r,schemaEnv:n,opts:s},a){if(s.code.es5){e.func(t,(0,l._)`${f.default.data}, ${f.default.valCxt}`,n.$async,(()=>{e.code((0,l._)`"use strict"; ${funcSourceUrl(r,s)}`);destructureValCxtES5(e,s);e.code(a)}))}else{e.func(t,(0,l._)`${f.default.data}, ${destructureValCxt(s)}`,n.$async,(()=>e.code(funcSourceUrl(r,s)).code(a)))}}function destructureValCxt(e){return(0,l._)`{${f.default.instancePath}="", ${f.default.parentData}, ${f.default.parentDataProperty}, ${f.default.rootData}=${f.default.data}${e.dynamicRef?(0,l._)`, ${f.default.dynamicAnchors}={}`:l.nil}}={}`}function destructureValCxtES5(e,t){e.if(f.default.valCxt,(()=>{e.var(f.default.instancePath,(0,l._)`${f.default.valCxt}.${f.default.instancePath}`);e.var(f.default.parentData,(0,l._)`${f.default.valCxt}.${f.default.parentData}`);e.var(f.default.parentDataProperty,(0,l._)`${f.default.valCxt}.${f.default.parentDataProperty}`);e.var(f.default.rootData,(0,l._)`${f.default.valCxt}.${f.default.rootData}`);if(t.dynamicRef)e.var(f.default.dynamicAnchors,(0,l._)`${f.default.valCxt}.${f.default.dynamicAnchors}`)}),(()=>{e.var(f.default.instancePath,(0,l._)`""`);e.var(f.default.parentData,(0,l._)`undefined`);e.var(f.default.parentDataProperty,(0,l._)`undefined`);e.var(f.default.rootData,f.default.data);if(t.dynamicRef)e.var(f.default.dynamicAnchors,(0,l._)`{}`)}))}function topSchemaObjCode(e){const{schema:t,opts:r,gen:n}=e;validateFunction(e,(()=>{if(r.$comment&&t.$comment)commentKeyword(e);checkNoDefault(e);n.let(f.default.vErrors,null);n.let(f.default.errors,0);if(r.unevaluated)resetEvaluated(e);typeAndKeywords(e);returnResults(e)}));return}function resetEvaluated(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,l._)`${r}.evaluated`);t.if((0,l._)`${e.evaluated}.dynamicProps`,(()=>t.assign((0,l._)`${e.evaluated}.props`,(0,l._)`undefined`)));t.if((0,l._)`${e.evaluated}.dynamicItems`,(()=>t.assign((0,l._)`${e.evaluated}.items`,(0,l._)`undefined`)))}function funcSourceUrl(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,l._)`/*# sourceURL=${r} */`:l.nil}function subschemaCode(e,t){if(isSchemaObj(e)){checkKeywords(e);if(schemaCxtHasRules(e)){subSchemaObjCode(e,t);return}}(0,n.boolOrEmptySchema)(e,t)}function schemaCxtHasRules({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return true;return false}function isSchemaObj(e){return typeof e.schema!="boolean"}function subSchemaObjCode(e,t){const{schema:r,gen:n,opts:s}=e;if(s.$comment&&r.$comment)commentKeyword(e);updateContext(e);checkAsyncSchema(e);const a=n.const("_errs",f.default.errors);typeAndKeywords(e,a);n.var(t,(0,l._)`${a} === ${f.default.errors}`)}function checkKeywords(e){(0,p.checkUnknownRules)(e);checkRefsAndKeywords(e)}function typeAndKeywords(e,t){if(e.opts.jtd)return schemaKeywords(e,[],false,t);const r=(0,s.getSchemaTypes)(e.schema);const n=(0,s.coerceAndCheckDataType)(e,r);schemaKeywords(e,r,!n,t)}function checkRefsAndKeywords(e){const{schema:t,errSchemaPath:r,opts:n,self:s}=e;if(t.$ref&&n.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(t,s.RULES)){s.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}}function checkNoDefault(e){const{schema:t,opts:r}=e;if(t.default!==undefined&&r.useDefaults&&r.strictSchema){(0,p.checkStrictMode)(e,"default is ignored in the schema root")}}function updateContext(e){const t=e.schema[e.opts.schemaId];if(t)e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t)}function checkAsyncSchema(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:s}){const a=r.$comment;if(s.$comment===true){e.code((0,l._)`${f.default.self}.logger.log(${a})`)}else if(typeof s.$comment=="function"){const r=(0,l.str)`${n}/$comment`;const s=e.scopeValue("root",{ref:t.root});e.code((0,l._)`${f.default.self}.opts.$comment(${a}, ${r}, ${s}.schema)`)}}function returnResults(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:s,opts:a}=e;if(r.$async){t.if((0,l._)`${f.default.errors} === 0`,(()=>t.return(f.default.data)),(()=>t.throw((0,l._)`new ${s}(${f.default.vErrors})`)))}else{t.assign((0,l._)`${n}.errors`,f.default.vErrors);if(a.unevaluated)assignEvaluated(e);t.return((0,l._)`${f.default.errors} === 0`)}}function assignEvaluated({gen:e,evaluated:t,props:r,items:n}){if(r instanceof l.Name)e.assign((0,l._)`${t}.props`,r);if(n instanceof l.Name)e.assign((0,l._)`${t}.items`,n)}function schemaKeywords(e,t,r,n){const{gen:s,schema:i,data:c,allErrors:u,opts:d,self:h}=e;const{RULES:m}=h;if(i.$ref&&(d.ignoreKeywordsWithRef||!(0,p.schemaHasRulesButRef)(i,m))){s.block((()=>keywordCode(e,"$ref",m.all.$ref.definition)));return}if(!d.jtd)checkStrictTypes(e,t);s.block((()=>{for(const e of m.rules)groupKeywords(e);groupKeywords(m.post)}));function groupKeywords(p){if(!(0,a.shouldUseGroup)(i,p))return;if(p.type){s.if((0,o.checkDataType)(p.type,c,d.strictNumbers));iterateKeywords(e,p);if(t.length===1&&t[0]===p.type&&r){s.else();(0,o.reportTypeError)(e)}s.endIf()}else{iterateKeywords(e,p)}if(!u)s.if((0,l._)`${f.default.errors} === ${n||0}`)}}function iterateKeywords(e,t){const{gen:r,schema:n,opts:{useDefaults:s}}=e;if(s)(0,i.assignDefaults)(e,t.type);r.block((()=>{for(const r of t.rules){if((0,a.shouldUseRule)(n,r)){keywordCode(e,r.keyword,r.definition,t.type)}}}))}function checkStrictTypes(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;checkContextTypes(e,t);if(!e.opts.allowUnionTypes)checkMultipleTypes(e,t);checkKeywordTypes(e,e.dataTypes)}function checkContextTypes(e,t){if(!t.length)return;if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach((t=>{if(!includesType(e.dataTypes,t)){strictTypesError(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}}));e.dataTypes=e.dataTypes.filter((e=>includesType(t,e)))}function checkMultipleTypes(e,t){if(t.length>1&&!(t.length===2&&t.includes("null"))){strictTypesError(e,"use allowUnionTypes to allow union type keyword")}}function checkKeywordTypes(e,t){const r=e.self.RULES.all;for(const n in r){const s=r[n];if(typeof s=="object"&&(0,a.shouldUseRule)(e.schema,s)){const{type:r}=s.definition;if(r.length&&!r.some((e=>hasApplicableType(t,e)))){strictTypesError(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}}function hasApplicableType(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function includesType(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function strictTypesError(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`;(0,p.checkStrictMode)(e,t,e.opts.strictTypes)}class KeywordCxt{constructor(e,t,r){(0,c.validateKeywordUsage)(e,t,r);this.gen=e.gen;this.allErrors=e.allErrors;this.keyword=r;this.data=e.data;this.schema=e.schema[r];this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,p.schemaRefOrVal)(e,this.schema,r,this.$data);this.schemaType=t.schemaType;this.parentSchema=e.schema;this.params={};this.it=e;this.def=t;if(this.$data){this.schemaCode=e.gen.const("vSchema",getData(this.$data,e))}else{this.schemaCode=this.schemaValue;if(!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined)){throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`)}}if("code"in t?t.trackErrors:t.errors!==false){this.errsCount=e.gen.const("_errs",f.default.errors)}}result(e,t,r){this.failResult((0,l.not)(e),t,r)}failResult(e,t,r){this.gen.if(e);if(r)r();else this.error();if(t){this.gen.else();t();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(e,t){this.failResult((0,l.not)(e),undefined,t)}fail(e){if(e===undefined){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(e);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,l._)`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t);this._error(e,r);this.setParams({});return}this._error(e,r)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===undefined)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){if(!this.allErrors)this.gen.if(e)}setParams(e,t){if(t)Object.assign(this.params,e);else this.params=e}block$data(e,t,r=l.nil){this.gen.block((()=>{this.check$data(e,r);t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:s,def:a}=this;r.if((0,l.or)((0,l._)`${n} === undefined`,t));if(e!==l.nil)r.assign(e,true);if(s.length||a.validateSchema){r.elseIf(this.invalid$data());this.$dataError();if(e!==l.nil)r.assign(e,false)}r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:s}=this;return(0,l.or)(wrong$DataType(),invalid$DataSchema());function wrong$DataType(){if(r.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return(0,l._)`${(0,o.checkDataTypes)(e,t,s.opts.strictNumbers,o.DataType.Wrong)}`}return l.nil}function invalid$DataSchema(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,l._)`!${r}(${t})`}return l.nil}}subschema(e,t){const r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e);(0,u.extendSubschemaMode)(r,e);const n={...this.it,...r,items:undefined,props:undefined};subschemaCode(n,t);return n}mergeEvaluated(e,t){const{it:r,gen:n}=this;if(!r.opts.unevaluated)return;if(r.props!==true&&e.props!==undefined){r.props=p.mergeEvaluated.props(n,e.props,r.props,t)}if(r.items!==true&&e.items!==undefined){r.items=p.mergeEvaluated.items(n,e.items,r.items,t)}}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(r.props!==true||r.items!==true)){n.if(t,(()=>this.mergeEvaluated(e,l.Name)));return true}}}t.KeywordCxt=KeywordCxt;function keywordCode(e,t,r,n){const s=new KeywordCxt(e,r,t);if("code"in r){r.code(s,n)}else if(s.$data&&r.validate){(0,c.funcKeywordCode)(s,r)}else if("macro"in r){(0,c.macroKeywordCode)(s,r)}else if(r.compile||r.validate){(0,c.funcKeywordCode)(s,r)}}const m=/^\/(?:[^~]|~0|~1)*$/;const y=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let s;let a;if(e==="")return f.default.rootData;if(e[0]==="/"){if(!m.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);s=e;a=f.default.rootData}else{const o=y.exec(e);if(!o)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+o[1];s=o[2];if(s==="#"){if(i>=t)throw new Error(errorMsg("property/index",i));return n[t-i]}if(i>t)throw new Error(errorMsg("data",i));a=r[t-i];if(!s)return a}let o=a;const i=s.split("/");for(const e of i){if(e){a=(0,l._)`${a}${(0,l.getProperty)((0,p.unescapeJsonPointer)(e))}`;o=(0,l._)`${o} && ${a}`}}return o;function errorMsg(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=getData},6854:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=r(3123);const s=r(2491);const a=r(8529);const o=r(5560);function macroKeywordCode(e,t){const{gen:r,keyword:s,schema:a,parentSchema:o,it:i}=e;const c=t.macro.call(i.self,a,o,i);const u=useKeyword(r,s,c);if(i.opts.validateSchema!==false)i.self.validateSchema(c,true);const l=r.name("valid");e.subschema({schema:c,schemaPath:n.nil,errSchemaPath:`${i.errSchemaPath}/${s}`,topSchemaRef:u,compositeRule:true},l);e.pass(l,(()=>e.error(true)))}t.macroKeywordCode=macroKeywordCode;function funcKeywordCode(e,t){var r;const{gen:o,keyword:i,schema:c,parentSchema:u,$data:l,it:f}=e;checkAsyncKeyword(f,t);const d=!l&&t.compile?t.compile.call(f.self,c,u,f):t.validate;const p=useKeyword(o,i,d);const h=o.let("valid");e.block$data(h,validateKeyword);e.ok((r=t.valid)!==null&&r!==void 0?r:h);function validateKeyword(){if(t.errors===false){assignValid();if(t.modifying)modifyData(e);reportErrs((()=>e.error()))}else{const r=t.async?validateAsync():validateSync();if(t.modifying)modifyData(e);reportErrs((()=>addErrs(e,r)))}}function validateAsync(){const e=o.let("ruleErrs",null);o.try((()=>assignValid((0,n._)`await `)),(t=>o.assign(h,false).if((0,n._)`${t} instanceof ${f.ValidationError}`,(()=>o.assign(e,(0,n._)`${t}.errors`)),(()=>o.throw(t)))));return e}function validateSync(){const e=(0,n._)`${p}.errors`;o.assign(e,null);assignValid(n.nil);return e}function assignValid(r=(t.async?(0,n._)`await `:n.nil)){const i=f.opts.passContext?s.default.this:s.default.self;const c=!("compile"in t&&!l||t.schema===false);o.assign(h,(0,n._)`${r}${(0,a.callValidateCode)(e,p,i,c)}`,t.modifying)}function reportErrs(e){var r;o.if((0,n.not)((r=t.valid)!==null&&r!==void 0?r:h),e)}}t.funcKeywordCode=funcKeywordCode;function modifyData(e){const{gen:t,data:r,it:s}=e;t.if(s.parentData,(()=>t.assign(r,(0,n._)`${s.parentData}[${s.parentDataProperty}]`)))}function addErrs(e,t){const{gen:r}=e;r.if((0,n._)`Array.isArray(${t})`,(()=>{r.assign(s.default.vErrors,(0,n._)`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`).assign(s.default.errors,(0,n._)`${s.default.vErrors}.length`);(0,o.extendErrors)(e)}),(()=>e.error()))}function checkAsyncKeyword({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function useKeyword(e,t,r){if(r===undefined)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}function validSchemaType(e,t,r=false){return!t.length||t.some((t=>t==="array"?Array.isArray(e):t==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==t||r&&typeof e=="undefined"))}t.validSchemaType=validSchemaType;function validateKeywordUsage({schema:e,opts:t,self:r,errSchemaPath:n},s,a){if(Array.isArray(s.keyword)?!s.keyword.includes(a):s.keyword!==a){throw new Error("ajv implementation error")}const o=s.dependencies;if(o===null||o===void 0?void 0:o.some((t=>!Object.prototype.hasOwnProperty.call(e,t)))){throw new Error(`parent schema must have dependencies of ${a}: ${o.join(",")}`)}if(s.validateSchema){const o=s.validateSchema(e[a]);if(!o){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(s.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(e);else throw new Error(e)}}}t.validateKeywordUsage=validateKeywordUsage},3676:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=r(3123);const s=r(4802);function getSubschema(e,{keyword:t,schemaProp:r,schema:a,schemaPath:o,errSchemaPath:i,topSchemaRef:c}){if(t!==undefined&&a!==undefined){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(t!==undefined){const a=e.schema[t];return r===undefined?{schema:a,schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,s.escapeFragment)(r)}`}}if(a!==undefined){if(o===undefined||i===undefined||c===undefined){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema:a,schemaPath:o,topSchemaRef:c,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}t.getSubschema=getSubschema;function extendSubschemaData(e,t,{dataProp:r,dataPropType:a,data:o,dataTypes:i,propertyName:c}){if(o!==undefined&&r!==undefined){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen:u}=t;if(r!==undefined){const{errorPath:o,dataPathArr:i,opts:c}=t;const l=u.let("data",(0,n._)`${t.data}${(0,n.getProperty)(r)}`,true);dataContextProps(l);e.errorPath=(0,n.str)`${o}${(0,s.getErrorPath)(r,a,c.jsPropertySyntax)}`;e.parentDataProperty=(0,n._)`${r}`;e.dataPathArr=[...i,e.parentDataProperty]}if(o!==undefined){const t=o instanceof n.Name?o:u.let("data",o,true);dataContextProps(t);if(c!==undefined)e.propertyName=c}if(i)e.dataTypes=i;function dataContextProps(r){e.data=r;e.dataLevel=t.dataLevel+1;e.dataTypes=[];t.definedProperties=new Set;e.parentData=t.data;e.dataNames=[...t.dataNames,r]}}t.extendSubschemaData=extendSubschemaData;function extendSubschemaMode(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:s,allErrors:a}){if(n!==undefined)e.compositeRule=n;if(s!==undefined)e.createErrors=s;if(a!==undefined)e.allErrors=a;e.jtdDiscriminator=t;e.jtdMetadata=r}t.extendSubschemaMode=extendSubschemaMode},3710:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(9850);Object.defineProperty(t,"KeywordCxt",{enumerable:true,get:function(){return n.KeywordCxt}});var s=r(3123);Object.defineProperty(t,"_",{enumerable:true,get:function(){return s._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return s.str}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return s.stringify}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return s.nil}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return s.Name}});Object.defineProperty(t,"CodeGen",{enumerable:true,get:function(){return s.CodeGen}});const a=r(5911);const o=r(5477);const i=r(2199);const c=r(4852);const u=r(3123);const l=r(1034);const f=r(2404);const d=r(4802);const p=r(9235);const h=r(7995);const defaultRegExp=(e,t)=>new RegExp(e,t);defaultRegExp.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"];const y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);const g={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};const v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};const b=200;function requiredOptions(e){var t,r,n,s,a,o,i,c,u,l,f,d,p,m,y,g,v,$,S,w,E,P,x,k,R;const C=e.strict;const A=(t=e.code)===null||t===void 0?void 0:t.optimize;const O=A===true||A===undefined?1:A||0;const T=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:defaultRegExp;const N=(s=e.uriResolver)!==null&&s!==void 0?s:h.default;return{strictSchema:(o=(a=e.strictSchema)!==null&&a!==void 0?a:C)!==null&&o!==void 0?o:true,strictNumbers:(c=(i=e.strictNumbers)!==null&&i!==void 0?i:C)!==null&&c!==void 0?c:true,strictTypes:(l=(u=e.strictTypes)!==null&&u!==void 0?u:C)!==null&&l!==void 0?l:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:C)!==null&&d!==void 0?d:"log",strictRequired:(m=(p=e.strictRequired)!==null&&p!==void 0?p:C)!==null&&m!==void 0?m:false,code:e.code?{...e.code,optimize:O,regExp:T}:{optimize:O,regExp:T},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:b,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:b,meta:(v=e.meta)!==null&&v!==void 0?v:true,messages:($=e.messages)!==null&&$!==void 0?$:true,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:true,schemaId:(w=e.schemaId)!==null&&w!==void 0?w:"$id",addUsedSchema:(E=e.addUsedSchema)!==null&&E!==void 0?E:true,validateSchema:(P=e.validateSchema)!==null&&P!==void 0?P:true,validateFormats:(x=e.validateFormats)!==null&&x!==void 0?x:true,unicodeRegExp:(k=e.unicodeRegExp)!==null&&k!==void 0?k:true,int32range:(R=e.int32range)!==null&&R!==void 0?R:true,uriResolver:N}}class Ajv{constructor(e={}){this.schemas={};this.refs={};this.formats={};this._compilations=new Set;this._loading={};this._cache=new Map;e=this.opts={...e,...requiredOptions(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:y,es5:t,lines:r});this.logger=getLogger(e.logger);const n=e.validateFormats;e.validateFormats=false;this.RULES=(0,i.getRules)();checkOptions.call(this,g,e,"NOT SUPPORTED");checkOptions.call(this,v,e,"DEPRECATED","warn");this._metaOpts=getMetaSchemaOptions.call(this);if(e.formats)addInitialFormats.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(e.keywords)addInitialKeywords.call(this,e.keywords);if(typeof e.meta=="object")this.addMetaSchema(e.meta);addInitialSchemas.call(this);e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=p;if(r==="id"){n={...p};n.id=n.$id;delete n.$id}if(t&&e)this.addMetaSchema(n,n[r],false)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[t]||e:undefined}validate(e,t){let r;if(typeof e=="string"){r=this.getSchema(e);if(!r)throw new Error(`no schema with key or ref "${e}"`)}else{r=this.compile(e)}const n=r(t);if(!("$async"in r))this.errors=r.errors;return n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema:r}=this.opts;return runCompileAsync.call(this,e,t);async function runCompileAsync(e,t){await loadMetaSchema.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||_compileAsync.call(this,r)}async function loadMetaSchema(e){if(e&&!this.getSchema(e)){await runCompileAsync.call(this,{$ref:e},true)}}async function _compileAsync(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;checkLoaded.call(this,t);await loadMissingSchema.call(this,t.missingSchema);return _compileAsync.call(this,e)}}function checkLoaded({missingSchema:e,missingRef:t}){if(this.refs[e]){throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}}async function loadMissingSchema(e){const r=await _loadSchema.call(this,e);if(!this.refs[e])await loadMetaSchema.call(this,r.$schema);if(!this.refs[e])this.addSchema(r,e,t)}async function _loadSchema(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,undefined,r,n);return this}let s;if(typeof e==="object"){const{schemaId:t}=this.opts;s=e[t];if(s!==undefined&&typeof s!="string"){throw new Error(`schema ${t} must be string`)}}t=(0,l.normalizeId)(t||s);this._checkUnique(t);this.schemas[t]=this._addSchema(e,r,t,n,true);return this}addMetaSchema(e,t,r=this.opts.validateSchema){this.addSchema(e,t,true,r);return this}validateSchema(e,t){if(typeof e=="boolean")return true;let r;r=e.$schema;if(r!==undefined&&typeof r!="string"){throw new Error("$schema must be a string")}r=r||this.opts.defaultMeta||this.defaultMeta();if(!r){this.logger.warn("meta-schema not available");this.errors=null;return true}const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(e);else throw new Error(e)}return n}getSchema(e){let t;while(typeof(t=getSchEnv.call(this,e))=="string")e=t;if(t===undefined){const{schemaId:r}=this.opts;const n=new c.SchemaEnv({schema:{},schemaId:r});t=c.resolveSchema.call(this,n,e);if(!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp){this._removeAllSchemas(this.schemas,e);this._removeAllSchemas(this.refs,e);return this}switch(typeof e){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const t=getSchEnv.call(this,e);if(typeof t=="object")this._cache.delete(t.schema);delete this.schemas[e];delete this.refs[e];return this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];if(r){r=(0,l.normalizeId)(r);delete this.schemas[r];delete this.refs[r]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if(typeof e=="string"){r=e;if(typeof t=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");t.keyword=r}}else if(typeof e=="object"&&t===undefined){t=e;r=t.keyword;if(Array.isArray(r)&&!r.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}checkKeyword.call(this,r,t);if(!t){(0,d.eachItem)(r,(e=>addRule.call(this,e)));return this}keywordMetaschema.call(this,t);const n={...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)};(0,d.eachItem)(r,n.type.length===0?e=>addRule.call(this,e,n):e=>n.type.forEach((t=>addRule.call(this,e,n,t))));return this}getKeyword(e){const t=this.RULES.all[e];return typeof t=="object"?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e];delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));if(t>=0)r.rules.splice(t,1)}return this}addFormat(e,t){if(typeof t=="string")t=new RegExp(t);this.formats[e]=t;return this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){if(!e||e.length===0)return"No errors";return e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r))}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let s=e;for(const e of t)s=s[e];for(const e in r){const t=r[e];if(typeof t!="object")continue;const{$data:n}=t.definition;const a=s[e];if(n&&a)s[e]=schemaOrData(a)}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];if(!t||t.test(r)){if(typeof n=="string"){delete e[r]}else if(n&&!n.meta){this._cache.delete(n.schema);delete e[r]}}}}_addSchema(e,t,r,n=this.opts.validateSchema,s=this.opts.addUsedSchema){let a;const{schemaId:o}=this.opts;if(typeof e=="object"){a=e[o]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let i=this._cache.get(e);if(i!==undefined)return i;r=(0,l.normalizeId)(a||r);const u=l.getSchemaRefs.call(this,e,r);i=new c.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:r,localRefs:u});this._cache.set(i.schema,i);if(s&&!r.startsWith("#")){if(r)this._checkUnique(r);this.refs[r]=i}if(n)this.validateSchema(e,true);return i}_checkUnique(e){if(this.schemas[e]||this.refs[e]){throw new Error(`schema with key or id "${e}" already exists`)}}_compileSchemaEnv(e){if(e.meta)this._compileMetaSchema(e);else c.compileSchema.call(this,e);if(!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}t["default"]=Ajv;Ajv.ValidationError=a.default;Ajv.MissingRefError=o.default;function checkOptions(e,t,r,n="error"){for(const s in e){const a=s;if(a in t)this.logger[n](`${r}: option ${s}. ${e[a]}`)}}function getSchEnv(e){e=(0,l.normalizeId)(e);return this.schemas[e]||this.refs[e]}function addInitialSchemas(){const e=this.opts.schemas;if(!e)return;if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function addInitialFormats(){for(const e in this.opts.formats){const t=this.opts.formats[e];if(t)this.addFormat(e,t)}}function addInitialKeywords(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];if(!r.keyword)r.keyword=t;this.addKeyword(r)}}function getMetaSchemaOptions(){const e={...this.opts};for(const t of m)delete e[t];return e}const $={log(){},warn(){},error(){}};function getLogger(e){if(e===false)return $;if(e===undefined)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}const S=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(e,t){const{RULES:r}=this;(0,d.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!S.test(e))throw new Error(`Keyword ${e} has invalid name`)}));if(!t)return;if(t.$data&&!("code"in t||"validate"in t)){throw new Error('$data keyword must have "code" or "validate" function')}}function addRule(e,t,r){var n;const s=t===null||t===void 0?void 0:t.post;if(r&&s)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let o=s?a.post:a.rules.find((({type:e})=>e===r));if(!o){o={type:r,rules:[]};a.rules.push(o)}a.keywords[e]=true;if(!t)return;const i={keyword:e,definition:{...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)}};if(t.before)addBeforeRule.call(this,o,i,t.before);else o.rules.push(i);a.all[e]=i;(n=t.implements)===null||n===void 0?void 0:n.forEach((e=>this.addKeyword(e)))}function addBeforeRule(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));if(n>=0){e.rules.splice(n,0,t)}else{e.rules.push(t);this.logger.warn(`rule ${r} is not defined`)}}function keywordMetaschema(e){let{metaSchema:t}=e;if(t===undefined)return;if(e.$data&&this.opts.$data)t=schemaOrData(t);e.validateSchema=this.compile(t,true)}const w={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(e){return{anyOf:[e,w]}}},6109:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7447);n.code='require("ajv/dist/runtime/equal").default';t["default"]=n},3882:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function ucs2length(e){const t=e.length;let r=0;let n=0;let s;while(n<t){r++;s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<t){s=e.charCodeAt(n);if((s&64512)===56320)n++}}return r}t["default"]=ucs2length;ucs2length.code='require("ajv/dist/runtime/ucs2length").default'},7995:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(199);n.code='require("ajv/dist/runtime/uri").default';t["default"]=n},5911:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class ValidationError extends Error{constructor(e){super("validation failed");this.errors=e;this.ajv=this.validation=true}}t["default"]=ValidationError},9772:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateAdditionalItems=void 0;const n=r(3123);const s=r(4802);const a={message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`};const o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:a,code(e){const{parentSchema:t,it:r}=e;const{items:n}=t;if(!Array.isArray(n)){(0,s.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}validateAdditionalItems(e,n)}};function validateAdditionalItems(e,t){const{gen:r,schema:a,data:o,keyword:i,it:c}=e;c.items=true;const u=r.const("len",(0,n._)`${o}.length`);if(a===false){e.setParams({len:t.length});e.pass((0,n._)`${u} <= ${t.length}`)}else if(typeof a=="object"&&!(0,s.alwaysValidSchema)(c,a)){const s=r.var("valid",(0,n._)`${u} <= ${t.length}`);r.if((0,n.not)(s),(()=>validateItems(s)));e.ok(s)}function validateItems(a){r.forRange("i",t.length,u,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:s.Type.Num},a);if(!c.allErrors)r.if((0,n.not)(a),(()=>r.break()))}))}}t.validateAdditionalItems=validateAdditionalItems;t["default"]=o},7947:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8529);const s=r(3123);const a=r(2491);const o=r(4802);const i={message:"must NOT have additional properties",params:({params:e})=>(0,s._)`{additionalProperty: ${e.additionalProperty}}`};const c={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:true,trackErrors:true,error:i,code(e){const{gen:t,schema:r,parentSchema:i,data:c,errsCount:u,it:l}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:f,opts:d}=l;l.props=true;if(d.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(l,r))return;const p=(0,n.allSchemaProperties)(i.properties);const h=(0,n.allSchemaProperties)(i.patternProperties);checkAdditionalProperties();e.ok((0,s._)`${u} === ${a.default.errors}`);function checkAdditionalProperties(){t.forIn("key",c,(e=>{if(!p.length&&!h.length)additionalPropertyCode(e);else t.if(isAdditional(e),(()=>additionalPropertyCode(e)))}))}function isAdditional(r){let a;if(p.length>8){const e=(0,o.schemaRefOrVal)(l,i.properties,"properties");a=(0,n.isOwnProperty)(t,e,r)}else if(p.length){a=(0,s.or)(...p.map((e=>(0,s._)`${r} === ${e}`)))}else{a=s.nil}if(h.length){a=(0,s.or)(a,...h.map((t=>(0,s._)`${(0,n.usePattern)(e,t)}.test(${r})`)))}return(0,s.not)(a)}function deleteAdditional(e){t.code((0,s._)`delete ${c}[${e}]`)}function additionalPropertyCode(n){if(d.removeAdditional==="all"||d.removeAdditional&&r===false){deleteAdditional(n);return}if(r===false){e.setParams({additionalProperty:n});e.error();if(!f)t.break();return}if(typeof r=="object"&&!(0,o.alwaysValidSchema)(l,r)){const r=t.name("valid");if(d.removeAdditional==="failing"){applyAdditionalSchema(n,r,false);t.if((0,s.not)(r),(()=>{e.reset();deleteAdditional(n)}))}else{applyAdditionalSchema(n,r);if(!f)t.if((0,s.not)(r),(()=>t.break()))}}}function applyAdditionalSchema(t,r,n){const s={keyword:"additionalProperties",dataProp:t,dataPropType:o.Type.Str};if(n===false){Object.assign(s,{compositeRule:true,createErrors:false,allErrors:false})}e.subschema(s,r)}}};t["default"]=c},813:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4802);const s={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(s,t))return;const o=e.subschema({keyword:"allOf",schemaProp:r},a);e.ok(a);e.mergeEvaluated(o)}))}};t["default"]=s},7806:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8529);const s={keyword:"anyOf",schemaType:"array",trackErrors:true,code:n.validateUnion,error:{message:"must match a schema in anyOf"}};t["default"]=s},4251:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=r(4802);const a={message:({params:{min:e,max:t}})=>t===undefined?(0,n.str)`must contain at least ${e} valid item(s)`:(0,n.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===undefined?(0,n._)`{minContains: ${e}}`:(0,n._)`{minContains: ${e}, maxContains: ${t}}`};const o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:a,code(e){const{gen:t,schema:r,parentSchema:a,data:o,it:i}=e;let c;let u;const{minContains:l,maxContains:f}=a;if(i.opts.next){c=l===undefined?1:l;u=f}else{c=1}const d=t.const("len",(0,n._)`${o}.length`);e.setParams({min:c,max:u});if(u===undefined&&c===0){(0,s.checkStrictMode)(i,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(u!==undefined&&c>u){(0,s.checkStrictMode)(i,`"minContains" > "maxContains" is always invalid`);e.fail();return}if((0,s.alwaysValidSchema)(i,r)){let t=(0,n._)`${d} >= ${c}`;if(u!==undefined)t=(0,n._)`${t} && ${d} <= ${u}`;e.pass(t);return}i.items=true;const p=t.name("valid");if(u===undefined&&c===1){validateItems(p,(()=>t.if(p,(()=>t.break()))))}else if(c===0){t.let(p,true);if(u!==undefined)t.if((0,n._)`${o}.length > 0`,validateItemsWithCount)}else{t.let(p,false);validateItemsWithCount()}e.result(p,(()=>e.reset()));function validateItemsWithCount(){const e=t.name("_valid");const r=t.let("count",0);validateItems(e,(()=>t.if(e,(()=>checkLimits(r)))))}function validateItems(r,n){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:s.Type.Num,compositeRule:true},r);n()}))}function checkLimits(e){t.code((0,n._)`${e}++`);if(u===undefined){t.if((0,n._)`${e} >= ${c}`,(()=>t.assign(p,true).break()))}else{t.if((0,n._)`${e} > ${u}`,(()=>t.assign(p,false).break()));if(c===1)t.assign(p,true);else t.if((0,n._)`${e} >= ${c}`,(()=>t.assign(p,true)))}}}};t["default"]=o},3612:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=r(3123);const s=r(4802);const a=r(8529);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const s=t===1?"property":"properties";return(0,n.str)`must have ${s} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:s}})=>(0,n._)`{property: ${e},
5
5
  missingProperty: ${s},
6
6
  depsCount: ${t},
7
- deps: ${r}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=splitDependencies(e);validatePropertyDeps(e,t);validateSchemaDeps(e,r)}};function splitDependencies({schema:e}){const t={};const r={};for(const n in e){if(n==="__proto__")continue;const s=Array.isArray(e[n])?t:r;s[n]=e[n]}return[t,r]}function validatePropertyDeps(e,t=e.schema){const{gen:r,data:s,it:o}=e;if(Object.keys(t).length===0)return;const i=r.let("missing");for(const c in t){const u=t[c];if(u.length===0)continue;const l=(0,a.propertyInData)(r,s,c,o.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")});if(o.allErrors){r.if(l,(()=>{for(const t of u){(0,a.checkReportMissingProp)(e,t)}}))}else{r.if((0,n._)`${l} && (${(0,a.checkMissingProp)(e,u,i)})`);(0,a.reportMissingProp)(e,i);r.else()}}}t.validatePropertyDeps=validatePropertyDeps;function validateSchemaDeps(e,t=e.schema){const{gen:r,data:n,keyword:o,it:i}=e;const c=r.name("valid");for(const u in t){if((0,s.alwaysValidSchema)(i,t[u]))continue;r.if((0,a.propertyInData)(r,n,u,i.opts.ownProperties),(()=>{const t=e.subschema({keyword:o,schemaProp:u},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,true)));e.ok(c)}}t.validateSchemaDeps=validateSchemaDeps;t["default"]=o},9252:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(8637);const a={message:({params:e})=>(0,n.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,n._)`{failingKeyword: ${e.ifClause}}`};const o={keyword:"if",schemaType:["object","boolean"],trackErrors:true,error:a,code(e){const{gen:t,parentSchema:r,it:a}=e;if(r.then===undefined&&r.else===undefined){(0,s.checkStrictMode)(a,'"if" without "then" and "else" is ignored')}const o=hasSchema(a,"then");const i=hasSchema(a,"else");if(!o&&!i)return;const c=t.let("valid",true);const u=t.name("_valid");validateIf();e.reset();if(o&&i){const r=t.let("ifClause");e.setParams({ifClause:r});t.if(u,validateClause("then",r),validateClause("else",r))}else if(o){t.if(u,validateClause("then"))}else{t.if((0,n.not)(u),validateClause("else"))}e.pass(c,(()=>e.error(true)));function validateIf(){const t=e.subschema({keyword:"if",compositeRule:true,createErrors:false,allErrors:false},u);e.mergeEvaluated(t)}function validateClause(r,s){return()=>{const a=e.subschema({keyword:r},u);t.assign(c,u);e.mergeValidEvaluated(a,c);if(s)t.assign(s,(0,n._)`${r}`);else e.setParams({ifClause:r})}}}};function hasSchema(e,t){const r=e.schema[t];return r!==undefined&&!(0,s.alwaysValidSchema)(e,r)}t["default"]=o},5981:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6284);const s=r(8635);const a=r(2400);const o=r(6049);const i=r(2720);const c=r(9543);const u=r(7324);const l=r(6039);const f=r(1897);const d=r(8383);const p=r(6376);const h=r(4479);const m=r(1114);const y=r(5186);const g=r(9252);const v=r(2330);function getApplicator(e=false){const t=[p.default,h.default,m.default,y.default,g.default,v.default,u.default,l.default,c.default,f.default,d.default];if(e)t.push(s.default,o.default);else t.push(n.default,a.default);t.push(i.default);return t}t["default"]=getApplicator},2400:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateTuple=void 0;const n=r(3567);const s=r(8637);const a=r(6771);const o={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return validateTuple(e,"additionalItems",t);r.items=true;if((0,s.alwaysValidSchema)(r,t))return;e.ok((0,a.validateArray)(e))}};function validateTuple(e,t,r=e.schema){const{gen:a,parentSchema:o,data:i,keyword:c,it:u}=e;checkStrictTuple(o);if(u.opts.unevaluated&&r.length&&u.items!==true){u.items=s.mergeEvaluated.items(a,r.length,u.items)}const l=a.name("valid");const f=a.const("len",(0,n._)`${i}.length`);r.forEach(((t,r)=>{if((0,s.alwaysValidSchema)(u,t))return;a.if((0,n._)`${f} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},l)));e.ok(l)}));function checkStrictTuple(e){const{opts:n,errSchemaPath:a}=u;const o=r.length;const i=o===e.minItems&&(o===e.maxItems||e[t]===false);if(n.strictTuples&&!i){const e=`"${c}" is ${o}-tuple, but minItems or maxItems/${t} are not specified or different at path "${a}"`;(0,s.checkStrictMode)(u,e,n.strictTuples)}}}t.validateTuple=validateTuple;t["default"]=o},6049:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(8637);const a=r(6771);const o=r(6284);const i={message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`};const c={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:i,code(e){const{schema:t,parentSchema:r,it:n}=e;const{prefixItems:i}=r;n.items=true;if((0,s.alwaysValidSchema)(n,t))return;if(i)(0,o.validateAdditionalItems)(e,i);else e.ok((0,a.validateArray)(e))}};t["default"]=c},6376:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8637);const s={keyword:"not",schemaType:["object","boolean"],trackErrors:true,code(e){const{gen:t,schema:r,it:s}=e;if((0,n.alwaysValidSchema)(s,r)){e.fail();return}const a=t.name("valid");e.subschema({keyword:"not",compositeRule:true,createErrors:false,allErrors:false},a);e.failResult(a,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t["default"]=s},1114:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(8637);const a={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,n._)`{passingSchemas: ${e.passing}}`};const o={keyword:"oneOf",schemaType:"array",trackErrors:true,error:a,code(e){const{gen:t,schema:r,parentSchema:a,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&a.discriminator)return;const i=r;const c=t.let("valid",false);const u=t.let("passing",null);const l=t.name("_valid");e.setParams({passing:u});t.block(validateOneOf);e.result(c,(()=>e.reset()),(()=>e.error(true)));function validateOneOf(){i.forEach(((r,a)=>{let i;if((0,s.alwaysValidSchema)(o,r)){t.var(l,true)}else{i=e.subschema({keyword:"oneOf",schemaProp:a,compositeRule:true},l)}if(a>0){t.if((0,n._)`${l} && ${c}`).assign(c,false).assign(u,(0,n._)`[${u}, ${a}]`).else()}t.if(l,(()=>{t.assign(c,true);t.assign(u,a);if(i)e.mergeEvaluated(i,n.Name)}))}))}}};t["default"]=o},8383:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6771);const s=r(3567);const a=r(8637);const o=r(8637);const i={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:i,parentSchema:c,it:u}=e;const{opts:l}=u;const f=(0,n.allSchemaProperties)(r);const d=f.filter((e=>(0,a.alwaysValidSchema)(u,r[e])));if(f.length===0||d.length===f.length&&(!u.opts.unevaluated||u.props===true)){return}const p=l.strictSchema&&!l.allowMatchingProperties&&c.properties;const h=t.name("valid");if(u.props!==true&&!(u.props instanceof s.Name)){u.props=(0,o.evaluatedPropsToName)(t,u.props)}const{props:m}=u;validatePatternProperties();function validatePatternProperties(){for(const e of f){if(p)checkMatchingProperties(e);if(u.allErrors){validateProperties(e)}else{t.var(h,true);validateProperties(e);t.if(h)}}}function checkMatchingProperties(e){for(const t in p){if(new RegExp(e).test(t)){(0,a.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}}}function validateProperties(r){t.forIn("key",i,(a=>{t.if((0,s._)`${(0,n.usePattern)(e,r)}.test(${a})`,(()=>{const n=d.includes(r);if(!n){e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:a,dataPropType:o.Type.Str},h)}if(u.opts.unevaluated&&m!==true){t.assign((0,s._)`${m}[${a}]`,true)}else if(!n&&!u.allErrors){t.if((0,s.not)(h),(()=>t.break()))}}))}))}}};t["default"]=i},8635:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2400);const s={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t["default"]=s},1897:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6513);const s=r(6771);const a=r(8637);const o=r(6039);const i={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:i,data:c,it:u}=e;if(u.opts.removeAdditional==="all"&&i.additionalProperties===undefined){o.default.code(new n.KeywordCxt(u,o.default,"additionalProperties"))}const l=(0,s.allSchemaProperties)(r);for(const e of l){u.definedProperties.add(e)}if(u.opts.unevaluated&&l.length&&u.props!==true){u.props=a.mergeEvaluated.props(t,(0,a.toHash)(l),u.props)}const f=l.filter((e=>!(0,a.alwaysValidSchema)(u,r[e])));if(f.length===0)return;const d=t.name("valid");for(const r of f){if(hasDefault(r)){applyPropertySchema(r)}else{t.if((0,s.propertyInData)(t,c,r,u.opts.ownProperties));applyPropertySchema(r);if(!u.allErrors)t.else().var(d,true);t.endIf()}e.it.definedProperties.add(r);e.ok(d)}function hasDefault(e){return u.opts.useDefaults&&!u.compositeRule&&r[e].default!==undefined}function applyPropertySchema(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t["default"]=i},7324:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(8637);const a={message:"property name must be valid",params:({params:e})=>(0,n._)`{propertyName: ${e.propertyName}}`};const o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:a,code(e){const{gen:t,schema:r,data:a,it:o}=e;if((0,s.alwaysValidSchema)(o,r))return;const i=t.name("valid");t.forIn("key",a,(r=>{e.setParams({propertyName:r});e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:true},i);t.if((0,n.not)(i),(()=>{e.error(true);if(!o.allErrors)t.break()}))}));e.ok(i)}};t["default"]=o},2330:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8637);const s={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){if(t.if===undefined)(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t["default"]=s},6771:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=r(3567);const s=r(8637);const a=r(8736);const o=r(8637);function checkReportMissingProp(e,t){const{gen:r,data:s,it:a}=e;r.if(noPropertyInData(r,s,t,a.opts.ownProperties),(()=>{e.setParams({missingProperty:(0,n._)`${t}`},true);e.error()}))}t.checkReportMissingProp=checkReportMissingProp;function checkMissingProp({gen:e,data:t,it:{opts:r}},s,a){return(0,n.or)(...s.map((s=>(0,n.and)(noPropertyInData(e,t,s,r.ownProperties),(0,n._)`${a} = ${s}`))))}t.checkMissingProp=checkMissingProp;function reportMissingProp(e,t){e.setParams({missingProperty:t},true);e.error()}t.reportMissingProp=reportMissingProp;function hasPropFunc(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,n._)`Object.prototype.hasOwnProperty`})}t.hasPropFunc=hasPropFunc;function isOwnProperty(e,t,r){return(0,n._)`${hasPropFunc(e)}.call(${t}, ${r})`}t.isOwnProperty=isOwnProperty;function propertyInData(e,t,r,s){const a=(0,n._)`${t}${(0,n.getProperty)(r)} !== undefined`;return s?(0,n._)`${a} && ${isOwnProperty(e,t,r)}`:a}t.propertyInData=propertyInData;function noPropertyInData(e,t,r,s){const a=(0,n._)`${t}${(0,n.getProperty)(r)} === undefined`;return s?(0,n.or)(a,(0,n.not)(isOwnProperty(e,t,r))):a}t.noPropertyInData=noPropertyInData;function allSchemaProperties(e){return e?Object.keys(e).filter((e=>e!=="__proto__")):[]}t.allSchemaProperties=allSchemaProperties;function schemaProperties(e,t){return allSchemaProperties(t).filter((r=>!(0,s.alwaysValidSchema)(e,t[r])))}t.schemaProperties=schemaProperties;function callValidateCode({schemaCode:e,data:t,it:{gen:r,topSchemaRef:s,schemaPath:o,errorPath:i},it:c},u,l,f){const d=f?(0,n._)`${e}, ${t}, ${s}${o}`:t;const p=[[a.default.instancePath,(0,n.strConcat)(a.default.instancePath,i)],[a.default.parentData,c.parentData],[a.default.parentDataProperty,c.parentDataProperty],[a.default.rootData,a.default.rootData]];if(c.opts.dynamicRef)p.push([a.default.dynamicAnchors,a.default.dynamicAnchors]);const h=(0,n._)`${d}, ${r.object(...p)}`;return l!==n.nil?(0,n._)`${u}.call(${l}, ${h})`:(0,n._)`${u}(${h})`}t.callValidateCode=callValidateCode;const i=(0,n._)`new RegExp`;function usePattern({gen:e,it:{opts:t}},r){const s=t.unicodeRegExp?"u":"";const{regExp:a}=t.code;const c=a(r,s);return e.scopeValue("pattern",{key:c.toString(),ref:c,code:(0,n._)`${a.code==="new RegExp"?i:(0,o.useFunc)(e,a)}(${r}, ${s})`})}t.usePattern=usePattern;function validateArray(e){const{gen:t,data:r,keyword:a,it:o}=e;const i=t.name("valid");if(o.allErrors){const e=t.let("valid",true);validateItems((()=>t.assign(e,false)));return e}t.var(i,true);validateItems((()=>t.break()));return i;function validateItems(o){const c=t.const("len",(0,n._)`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:a,dataProp:r,dataPropType:s.Type.Num},i);t.if((0,n.not)(i),o)}))}}t.validateArray=validateArray;function validateUnion(e){const{gen:t,schema:r,keyword:a,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=r.some((e=>(0,s.alwaysValidSchema)(o,e)));if(i&&!o.opts.unevaluated)return;const c=t.let("valid",false);const u=t.name("_valid");t.block((()=>r.forEach(((r,s)=>{const o=e.subschema({keyword:a,schemaProp:s,compositeRule:true},u);t.assign(c,(0,n._)`${c} || ${u}`);const i=e.mergeValidEvaluated(o,u);if(!i)t.if((0,n.not)(c))}))));e.result(c,(()=>e.reset()),(()=>e.error(true)))}t.validateUnion=validateUnion},5911:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t["default"]=r},5484:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5911);const s=r(4822);const a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,s.default];t["default"]=a},4822:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.callRef=t.getValidate=void 0;const n=r(6138);const s=r(6771);const a=r(3567);const o=r(8736);const i=r(7945);const c=r(8637);const u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:s}=e;const{baseId:o,schemaEnv:c,validateName:u,opts:l,self:f}=s;const{root:d}=c;if((r==="#"||r==="#/")&&o===d.baseId)return callRootRef();const p=i.resolveRef.call(f,d,o,r);if(p===undefined)throw new n.default(o,r);if(p instanceof i.SchemaEnv)return callValidate(p);return inlineRefSchema(p);function callRootRef(){if(c===d)return callRef(e,u,c,c.$async);const r=t.scopeValue("root",{ref:d});return callRef(e,(0,a._)`${r}.validate`,d,d.$async)}function callValidate(t){const r=getValidate(e,t);callRef(e,r,t,t.$async)}function inlineRefSchema(n){const s=t.scopeValue("schema",l.code.source===true?{ref:n,code:(0,a.stringify)(n)}:{ref:n});const o=t.name("valid");const i=e.subschema({schema:n,dataTypes:[],schemaPath:a.nil,topSchemaRef:s,errSchemaPath:r},o);e.mergeEvaluated(i);e.ok(o)}}};function getValidate(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,a._)`${r.scopeValue("wrapper",{ref:t})}.validate`}t.getValidate=getValidate;function callRef(e,t,r,n){const{gen:i,it:u}=e;const{allErrors:l,schemaEnv:f,opts:d}=u;const p=d.passContext?o.default.this:a.nil;if(n)callAsyncRef();else callSyncRef();function callAsyncRef(){if(!f.$async)throw new Error("async schema referenced by sync schema");const r=i.let("valid");i.try((()=>{i.code((0,a._)`await ${(0,s.callValidateCode)(e,t,p)}`);addEvaluatedFrom(t);if(!l)i.assign(r,true)}),(e=>{i.if((0,a._)`!(${e} instanceof ${u.ValidationError})`,(()=>i.throw(e)));addErrorsFrom(e);if(!l)i.assign(r,false)}));e.ok(r)}function callSyncRef(){e.result((0,s.callValidateCode)(e,t,p),(()=>addEvaluatedFrom(t)),(()=>addErrorsFrom(t)))}function addErrorsFrom(e){const t=(0,a._)`${e}.errors`;i.assign(o.default.vErrors,(0,a._)`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`);i.assign(o.default.errors,(0,a._)`${o.default.vErrors}.length`)}function addEvaluatedFrom(e){var t;if(!u.opts.unevaluated)return;const n=(t=r===null||r===void 0?void 0:r.validate)===null||t===void 0?void 0:t.evaluated;if(u.props!==true){if(n&&!n.dynamicProps){if(n.props!==undefined){u.props=c.mergeEvaluated.props(i,n.props,u.props)}}else{const t=i.var("props",(0,a._)`${e}.evaluated.props`);u.props=c.mergeEvaluated.props(i,t,u.props,a.Name)}}if(u.items!==true){if(n&&!n.dynamicItems){if(n.items!==undefined){u.items=c.mergeEvaluated.items(i,n.items,u.items)}}else{const t=i.var("items",(0,a._)`${e}.evaluated.items`);u.items=c.mergeEvaluated.items(i,t,u.items,a.Name)}}}}t.callRef=callRef;t["default"]=u},7939:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(7410);const a={message:({params:{discrError:e,tagName:t}})=>e===s.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,n._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};const o={keyword:"discriminator",type:"object",schemaType:"object",error:a,code(e){const{gen:t,data:r,schema:a,parentSchema:o,it:i}=e;const{oneOf:c}=o;if(!i.opts.discriminator){throw new Error("discriminator: requires discriminator option")}const u=a.propertyName;if(typeof u!="string")throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!c)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",false);const f=t.const("tag",(0,n._)`${r}${(0,n.getProperty)(u)}`);t.if((0,n._)`typeof ${f} == "string"`,(()=>validateMapping()),(()=>e.error(false,{discrError:s.DiscrError.Tag,tag:f,tagName:u})));e.ok(l);function validateMapping(){const r=getMapping();t.if(false);for(const e in r){t.elseIf((0,n._)`${f} === ${e}`);t.assign(l,applyTagSchema(r[e]))}t.else();e.error(false,{discrError:s.DiscrError.Mapping,tag:f,tagName:u});t.endIf()}function applyTagSchema(r){const s=t.name("valid");const a=e.subschema({keyword:"oneOf",schemaProp:r},s);e.mergeEvaluated(a,n.Name);return s}function getMapping(){var e;const t={};const r=hasRequired(o);let n=true;for(let t=0;t<c.length;t++){const s=c[t];const a=(e=s.properties)===null||e===void 0?void 0:e[u];if(typeof a!="object"){throw new Error(`discriminator: oneOf schemas must have "properties/${u}"`)}n=n&&(r||hasRequired(s));addMappings(a,t)}if(!n)throw new Error(`discriminator: "${u}" must be required`);return t;function hasRequired({required:e}){return Array.isArray(e)&&e.includes(u)}function addMappings(e,t){if(e.const){addMapping(e.const,t)}else if(e.enum){for(const r of e.enum){addMapping(r,t)}}else{throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`)}}function addMapping(e,r){if(typeof e!="string"||e in t){throw new Error(`discriminator: "${u}" values must be unique strings`)}t[e]=r}}}};t["default"]=o},7410:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiscrError=void 0;var r;(function(e){e["Tag"]="tag";e["Mapping"]="mapping"})(r=t.DiscrError||(t.DiscrError={}))},7522:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5484);const s=r(7756);const a=r(5981);const o=r(5710);const i=r(3302);const c=[n.default,s.default,(0,a.default)(),o.default,i.metadataVocabulary,i.contentVocabulary];t["default"]=c},7053:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s={message:({schemaCode:e})=>(0,n.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,n._)`{format: ${e}}`};const a={keyword:"format",type:["number","string"],schemaType:"string",$data:true,error:s,code(e,t){const{gen:r,data:s,$data:a,schema:o,schemaCode:i,it:c}=e;const{opts:u,errSchemaPath:l,schemaEnv:f,self:d}=c;if(!u.validateFormats)return;if(a)validate$DataFormat();else validateFormat();function validate$DataFormat(){const a=r.scopeValue("formats",{ref:d.formats,code:u.code.formats});const o=r.const("fDef",(0,n._)`${a}[${i}]`);const c=r.let("fType");const l=r.let("format");r.if((0,n._)`typeof ${o} == "object" && !(${o} instanceof RegExp)`,(()=>r.assign(c,(0,n._)`${o}.type || "string"`).assign(l,(0,n._)`${o}.validate`)),(()=>r.assign(c,(0,n._)`"string"`).assign(l,o)));e.fail$data((0,n.or)(unknownFmt(),invalidFmt()));function unknownFmt(){if(u.strictSchema===false)return n.nil;return(0,n._)`${i} && !${l}`}function invalidFmt(){const e=f.$async?(0,n._)`(${o}.async ? await ${l}(${s}) : ${l}(${s}))`:(0,n._)`${l}(${s})`;const r=(0,n._)`(typeof ${l} == "function" ? ${e} : ${l}.test(${s}))`;return(0,n._)`${l} && ${l} !== true && ${c} === ${t} && !${r}`}}function validateFormat(){const a=d.formats[o];if(!a){unknownFormat();return}if(a===true)return;const[i,c,p]=getFormat(a);if(i===t)e.pass(validCondition());function unknownFormat(){if(u.strictSchema===false){d.logger.warn(unknownMsg());return}throw new Error(unknownMsg());function unknownMsg(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function getFormat(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):u.code.formats?(0,n._)`${u.code.formats}${(0,n.getProperty)(o)}`:undefined;const s=r.scopeValue("formats",{key:o,ref:e,code:t});if(typeof e=="object"&&!(e instanceof RegExp)){return[e.type||"string",e.validate,(0,n._)`${s}.validate`]}return["string",e,s]}function validCondition(){if(typeof a=="object"&&!(a instanceof RegExp)&&a.async){if(!f.$async)throw new Error("async format in sync schema");return(0,n._)`await ${p}(${s})`}return typeof c=="function"?(0,n._)`${p}(${s})`:(0,n._)`${p}.test(${s})`}}}};t["default"]=a},5710:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7053);const s=[n.default];t["default"]=s},3302:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.contentVocabulary=t.metadataVocabulary=void 0;t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},7249:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(8637);const a=r(4982);const o={message:"must be equal to constant",params:({schemaCode:e})=>(0,n._)`{allowedValue: ${e}}`};const i={keyword:"const",$data:true,error:o,code(e){const{gen:t,data:r,$data:o,schemaCode:i,schema:c}=e;if(o||c&&typeof c=="object"){e.fail$data((0,n._)`!${(0,s.useFunc)(t,a.default)}(${r}, ${i})`)}else{e.fail((0,n._)`${c} !== ${r}`)}}};t["default"]=i},2664:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(8637);const a=r(4982);const o={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,n._)`{allowedValues: ${e}}`};const i={keyword:"enum",schemaType:"array",$data:true,error:o,code(e){const{gen:t,data:r,$data:o,schema:i,schemaCode:c,it:u}=e;if(!o&&i.length===0)throw new Error("enum must have non-empty array");const l=i.length>=u.opts.loopEnum;const f=(0,s.useFunc)(t,a.default);let d;if(l||o){d=t.let("valid");e.block$data(d,loopEnum)}else{if(!Array.isArray(i))throw new Error("ajv implementation error");const e=t.const("vSchema",c);d=(0,n.or)(...i.map(((t,r)=>equalCode(e,r))))}e.pass(d);function loopEnum(){t.assign(d,false);t.forOf("v",c,(e=>t.if((0,n._)`${f}(${r}, ${e})`,(()=>t.assign(d,true).break()))))}function equalCode(e,t){const s=i[t];return typeof s==="object"&&s!==null?(0,n._)`${f}(${r}, ${e}[${t}])`:(0,n._)`${r} === ${s}`}}};t["default"]=i},7756:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8813);const s=r(526);const a=r(5103);const o=r(2507);const i=r(742);const c=r(9915);const u=r(3418);const l=r(2626);const f=r(7249);const d=r(2664);const p=[n.default,s.default,a.default,o.default,i.default,c.default,u.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,d.default];t["default"]=p},3418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,n.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`};const a={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:s,code(e){const{keyword:t,data:r,schemaCode:s}=e;const a=t==="maxItems"?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`${r}.length ${a} ${s}`)}};t["default"]=a},5103:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=r(8637);const a=r(6683);const o={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,n.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`};const i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:o,code(e){const{keyword:t,data:r,schemaCode:o,it:i}=e;const c=t==="maxLength"?n.operators.GT:n.operators.LT;const u=i.opts.unicode===false?(0,n._)`${r}.length`:(0,n._)`${(0,s.useFunc)(e.gen,a.default)}(${r})`;e.fail$data((0,n._)`${u} ${c} ${o}`)}};t["default"]=i},8813:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s=n.operators;const a={maximum:{okStr:"<=",ok:s.LTE,fail:s.GT},minimum:{okStr:">=",ok:s.GTE,fail:s.LT},exclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},exclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}};const o={message:({keyword:e,schemaCode:t})=>(0,n.str)`must be ${a[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,n._)`{comparison: ${a[e].okStr}, limit: ${t}}`};const i={keyword:Object.keys(a),type:"number",schemaType:"number",$data:true,error:o,code(e){const{keyword:t,data:r,schemaCode:s}=e;e.fail$data((0,n._)`${r} ${a[t].fail} ${s} || isNaN(${r})`)}};t["default"]=i},742:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,n.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`};const a={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:s,code(e){const{keyword:t,data:r,schemaCode:s}=e;const a=t==="maxProperties"?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`Object.keys(${r}).length ${a} ${s}`)}};t["default"]=a},526:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3567);const s={message:({schemaCode:e})=>(0,n.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,n._)`{multipleOf: ${e}}`};const a={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:s,code(e){const{gen:t,data:r,schemaCode:s,it:a}=e;const o=a.opts.multipleOfPrecision;const i=t.let("res");const c=o?(0,n._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${o}`:(0,n._)`${i} !== parseInt(${i})`;e.fail$data((0,n._)`(${s} === 0 || (${i} = ${r}/${s}, ${c}))`)}};t["default"]=a},2507:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6771);const s=r(3567);const a={message:({schemaCode:e})=>(0,s.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,s._)`{pattern: ${e}}`};const o={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:a,code(e){const{data:t,$data:r,schema:a,schemaCode:o,it:i}=e;const c=i.opts.unicodeRegExp?"u":"";const u=r?(0,s._)`(new RegExp(${o}, ${c}))`:(0,n.usePattern)(e,a);e.fail$data((0,s._)`!${u}.test(${t})`)}};t["default"]=o},9915:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6771);const s=r(3567);const a=r(8637);const o={message:({params:{missingProperty:e}})=>(0,s.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,s._)`{missingProperty: ${e}}`};const i={keyword:"required",type:"object",schemaType:"array",$data:true,error:o,code(e){const{gen:t,schema:r,schemaCode:o,data:i,$data:c,it:u}=e;const{opts:l}=u;if(!c&&r.length===0)return;const f=r.length>=l.loopRequired;if(u.allErrors)allErrorsMode();else exitOnErrorMode();if(l.strictRequired){const t=e.parentSchema.properties;const{definedProperties:n}=e.it;for(const e of r){if((t===null||t===void 0?void 0:t[e])===undefined&&!n.has(e)){const t=u.schemaEnv.baseId+u.errSchemaPath;const r=`required property "${e}" is not defined at "${t}" (strictRequired)`;(0,a.checkStrictMode)(u,r,u.opts.strictRequired)}}}function allErrorsMode(){if(f||c){e.block$data(s.nil,loopAllRequired)}else{for(const t of r){(0,n.checkReportMissingProp)(e,t)}}}function exitOnErrorMode(){const s=t.let("missing");if(f||c){const r=t.let("valid",true);e.block$data(r,(()=>loopUntilMissing(s,r)));e.ok(r)}else{t.if((0,n.checkMissingProp)(e,r,s));(0,n.reportMissingProp)(e,s);t.else()}}function loopAllRequired(){t.forOf("prop",o,(r=>{e.setParams({missingProperty:r});t.if((0,n.noPropertyInData)(t,i,r,l.ownProperties),(()=>e.error()))}))}function loopUntilMissing(r,a){e.setParams({missingProperty:r});t.forOf(r,o,(()=>{t.assign(a,(0,n.propertyInData)(t,i,r,l.ownProperties));t.if((0,s.not)(a),(()=>{e.error();t.break()}))}),s.nil)}}};t["default"]=i},2626:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4554);const s=r(3567);const a=r(8637);const o=r(4982);const i={message:({params:{i:e,j:t}})=>(0,s.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,s._)`{i: ${e}, j: ${t}}`};const c={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:i,code(e){const{gen:t,data:r,$data:i,schema:c,parentSchema:u,schemaCode:l,it:f}=e;if(!i&&!c)return;const d=t.let("valid");const p=u.items?(0,n.getSchemaTypes)(u.items):[];e.block$data(d,validateUniqueItems,(0,s._)`${l} === false`);e.ok(d);function validateUniqueItems(){const n=t.let("i",(0,s._)`${r}.length`);const a=t.let("j");e.setParams({i:n,j:a});t.assign(d,true);t.if((0,s._)`${n} > 1`,(()=>(canOptimize()?loopN:loopN2)(n,a)))}function canOptimize(){return p.length>0&&!p.some((e=>e==="object"||e==="array"))}function loopN(a,o){const i=t.name("item");const c=(0,n.checkDataTypes)(p,i,f.opts.strictNumbers,n.DataType.Wrong);const u=t.const("indices",(0,s._)`{}`);t.for((0,s._)`;${a}--;`,(()=>{t.let(i,(0,s._)`${r}[${a}]`);t.if(c,(0,s._)`continue`);if(p.length>1)t.if((0,s._)`typeof ${i} == "string"`,(0,s._)`${i} += "_"`);t.if((0,s._)`typeof ${u}[${i}] == "number"`,(()=>{t.assign(o,(0,s._)`${u}[${i}]`);e.error();t.assign(d,false).break()})).code((0,s._)`${u}[${i}] = ${a}`)}))}function loopN2(n,i){const c=(0,a.useFunc)(t,o.default);const u=t.name("outer");t.label(u).for((0,s._)`;${n}--;`,(()=>t.for((0,s._)`${i} = ${n}; ${i}--;`,(()=>t.if((0,s._)`${c}(${r}[${n}], ${r}[${i}])`,(()=>{e.error();t.assign(d,false).break(u)}))))))}}};t["default"]=c},2670:function(e,t,r){"use strict";const n=r(7134);const s=r(5529);const a=r(2900);const o=r(8149);const braces=(e,t={})=>{let r=[];if(Array.isArray(e)){for(let n of e){let e=braces.create(n,t);if(Array.isArray(e)){r.push(...e)}else{r.push(e)}}}else{r=[].concat(braces.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){r=[...new Set(r)]}return r};braces.parse=(e,t={})=>o(e,t);braces.stringify=(e,t={})=>{if(typeof e==="string"){return n(braces.parse(e,t),t)}return n(e,t)};braces.compile=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}return s(e,t)};braces.expand=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}let r=a(e,t);if(t.noempty===true){r=r.filter(Boolean)}if(t.nodupes===true){r=[...new Set(r)]}return r};braces.create=(e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?braces.compile(e,t):braces.expand(e,t)};e.exports=braces},5529:function(e,t,r){"use strict";const n=r(3926);const s=r(4114);const compile=(e,t={})=>{let walk=(e,r={})=>{let a=s.isInvalidBrace(r);let o=e.invalid===true&&t.escapeInvalid===true;let i=a===true||o===true;let c=t.escapeInvalid===true?"\\":"";let u="";if(e.isOpen===true){return c+e.value}if(e.isClose===true){return c+e.value}if(e.type==="open"){return i?c+e.value:"("}if(e.type==="close"){return i?c+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":i?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){let r=s.reduce(e.nodes);let a=n(...r,{...t,wrap:false,toRegex:true});if(a.length!==0){return r.length>1&&a.length>1?`(${a})`:a}}if(e.nodes){for(let t of e.nodes){u+=walk(t,e)}}return u};return walk(e)};e.exports=compile},6252:function(e){"use strict";e.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},2900:function(e,t,r){"use strict";const n=r(3926);const s=r(7134);const a=r(4114);const append=(e="",t="",r=false)=>{let n=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return r?a.flatten(t).map((e=>`{${e}}`)):t}for(let s of e){if(Array.isArray(s)){for(let e of s){n.push(append(e,t,r))}}else{for(let e of t){if(r===true&&typeof e==="string")e=`{${e}}`;n.push(Array.isArray(e)?append(s,e,r):s+e)}}}return a.flatten(n)};const expand=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit;let walk=(e,o={})=>{e.queue=[];let i=o;let c=o.queue;while(i.type!=="brace"&&i.type!=="root"&&i.parent){i=i.parent;c=i.queue}if(e.invalid||e.dollar){c.push(append(c.pop(),s(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){c.push(append(c.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){let o=a.reduce(e.nodes);if(a.exceedsLimit(...o,t.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let i=n(...o,t);if(i.length===0){i=s(e,t)}c.push(append(c.pop(),i));e.nodes=[];return}let u=a.encloseBrace(e);let l=e.queue;let f=e;while(f.type!=="brace"&&f.type!=="root"&&f.parent){f=f.parent;l=f.queue}for(let t=0;t<e.nodes.length;t++){let r=e.nodes[t];if(r.type==="comma"&&e.type==="brace"){if(t===1)l.push("");l.push("");continue}if(r.type==="close"){c.push(append(c.pop(),l,u));continue}if(r.value&&r.type!=="open"){l.push(append(l.pop(),r.value));continue}if(r.nodes){walk(r,e)}}return l};return a.flatten(walk(e))};e.exports=expand},8149:function(e,t,r){"use strict";const n=r(7134);const{MAX_LENGTH:s,CHAR_BACKSLASH:a,CHAR_BACKTICK:o,CHAR_COMMA:i,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:u,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:v}=r(6252);const parse=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}let r=t||{};let b=typeof r.maxLength==="number"?Math.min(s,r.maxLength):s;if(e.length>b){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${b})`)}let $={type:"root",input:e,nodes:[]};let S=[$];let w=$;let E=$;let P=0;let x=e.length;let k=0;let C=0;let A;let R={};const advance=()=>e[k++];const push=e=>{if(e.type==="text"&&E.type==="dot"){E.type="text"}if(E&&E.type==="text"&&e.type==="text"){E.value+=e.value;return}w.nodes.push(e);e.parent=w;e.prev=E;E=e;return e};push({type:"bos"});while(k<x){w=S[S.length-1];A=advance();if(A===v||A===g){continue}if(A===a){push({type:"text",value:(t.keepEscaping?A:"")+advance()});continue}if(A===h){push({type:"text",value:"\\"+A});continue}if(A===p){P++;let e=true;let t;while(k<x&&(t=advance())){A+=t;if(t===p){P++;continue}if(t===a){A+=advance();continue}if(t===h){P--;if(P===0){break}}}push({type:"text",value:A});continue}if(A===u){w=push({type:"paren",nodes:[]});S.push(w);push({type:"text",value:A});continue}if(A===l){if(w.type!=="paren"){push({type:"text",value:A});continue}w=S.pop();push({type:"text",value:A});w=S[S.length-1];continue}if(A===m||A===y||A===o){let e=A;let r;if(t.keepQuotes!==true){A=""}while(k<x&&(r=advance())){if(r===a){A+=r+advance();continue}if(r===e){if(t.keepQuotes===true)A+=r;break}A+=r}push({type:"text",value:A});continue}if(A===f){C++;let e=E.value&&E.value.slice(-1)==="$"||w.dollar===true;let t={type:"brace",open:true,close:false,dollar:e,depth:C,commas:0,ranges:0,nodes:[]};w=push(t);S.push(w);push({type:"open",value:A});continue}if(A===d){if(w.type!=="brace"){push({type:"text",value:A});continue}let e="close";w=S.pop();w.close=true;push({type:e,value:A});C--;w=S[S.length-1];continue}if(A===i&&C>0){if(w.ranges>0){w.ranges=0;let e=w.nodes.shift();w.nodes=[e,{type:"text",value:n(w)}]}push({type:"comma",value:A});w.commas++;continue}if(A===c&&C>0&&w.commas===0){let e=w.nodes;if(C===0||e.length===0){push({type:"text",value:A});continue}if(E.type==="dot"){w.range=[];E.value+=A;E.type="range";if(w.nodes.length!==3&&w.nodes.length!==5){w.invalid=true;w.ranges=0;E.type="text";continue}w.ranges++;w.args=[];continue}if(E.type==="range"){e.pop();let t=e[e.length-1];t.value+=E.value+A;E=t;w.ranges--;continue}push({type:"dot",value:A});continue}push({type:"text",value:A})}do{w=S.pop();if(w.type!=="root"){w.nodes.forEach((e=>{if(!e.nodes){if(e.type==="open")e.isOpen=true;if(e.type==="close")e.isClose=true;if(!e.nodes)e.type="text";e.invalid=true}}));let e=S[S.length-1];let t=e.nodes.indexOf(w);e.nodes.splice(t,1,...w.nodes)}}while(S.length>0);push({type:"eos"});return $};e.exports=parse},7134:function(e,t,r){"use strict";const n=r(4114);e.exports=(e,t={})=>{let stringify=(e,r={})=>{let s=t.escapeInvalid&&n.isInvalidBrace(r);let a=e.invalid===true&&t.escapeInvalid===true;let o="";if(e.value){if((s||a)&&n.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(let t of e.nodes){o+=stringify(t)}}return o};return stringify(e)}},4114:function(e,t){"use strict";t.isInteger=e=>{if(typeof e==="number"){return Number.isInteger(e)}if(typeof e==="string"&&e.trim()!==""){return Number.isInteger(Number(e))}return false};t.find=(e,t)=>e.nodes.find((e=>e.type===t));t.exceedsLimit=(e,r,n=1,s)=>{if(s===false)return false;if(!t.isInteger(e)||!t.isInteger(r))return false;return(Number(r)-Number(e))/Number(n)>=s};t.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];if(!n)return;if(r&&n.type===r||n.type==="open"||n.type==="close"){if(n.escaped!==true){n.value="\\"+n.value;n.escaped=true}}};t.encloseBrace=e=>{if(e.type!=="brace")return false;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}return false};t.isInvalidBrace=e=>{if(e.type!=="brace")return false;if(e.invalid===true||e.dollar)return true;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}if(e.open!==true||e.close!==true){e.invalid=true;return true}return false};t.isOpenOrClose=e=>{if(e.type==="open"||e.type==="close"){return true}return e.open===true||e.close===true};t.reduce=e=>e.reduce(((e,t)=>{if(t.type==="text")e.push(t.value);if(t.type==="range")t.type="text";return e}),[]);t.flatten=(...e)=>{const t=[];const flat=e=>{for(let r=0;r<e.length;r++){let n=e[r];Array.isArray(n)?flat(n,t):n!==void 0&&t.push(n)}return t};flat(e);return t}},3151:function(e,t,r){"use strict";const n=r(1017);const{validate:s}=r(299);const a=r(2661);const o=r(2422);const i=r(8900);const c=r(9918);const{version:u}=r(8371);const l=r(6202);const{readFile:f,stat:d,throttleAll:p}=r(628);const h=/\[\\*([\w:]+)\\*\]/i;class CopyPlugin{constructor(e={patterns:[]}){s(l,e,{name:"Copy Plugin",baseDataPath:"options"});this.patterns=e.patterns;this.options=e.options||{}}static async createSnapshot(e,t,r){return new Promise(((n,s)=>{e.fileSystemInfo.createSnapshot(t,[r],undefined,undefined,null,((e,t)=>{if(e){s(e);return}n(t)}))}))}static async checkSnapshotValid(e,t){return new Promise(((r,n)=>{e.fileSystemInfo.checkSnapshotValid(t,((e,t)=>{if(e){n(e);return}r(t)}))}))}static getContentHash(e,t,r){const{outputOptions:n}=t;const{hashDigest:s,hashDigestLength:a,hashFunction:o,hashSalt:i}=n;const c=e.webpack.util.createHash(o);if(i){c.update(i)}c.update(r);const u=c.digest(s);return u.toString().slice(0,a)}static async runPattern(e,t,s,l,p,m,y){const{RawSource:g}=t.webpack.sources;const v={...m};const b=v.from;const $=n.normalize(b);l.log(`starting to process a pattern from '${$}' using '${v.context}' context`);let S;if(n.isAbsolute($)){S=$}else{S=n.resolve(v.context,$)}l.debug(`getting stats for '${S}'...`);const{inputFileSystem:w}=t;let E;try{E=await d(w,S)}catch(e){}let P;if(E){if(E.isDirectory()){P="dir";l.debug(`determined '${S}' is a directory`)}else if(E.isFile()){P="file";l.debug(`determined '${S}' is a file`)}else{P="glob";l.debug(`determined '${S}' is unknown`)}}else{P="glob";l.debug(`determined '${S}' is a glob`)}const x={...{followSymbolicLinks:true},...v.globOptions||{},...{cwd:v.context,objectMode:true}};x.fs=w;let k;switch(P){case"dir":s.contextDependencies.add(S);l.debug(`added '${S}' as a context dependency`);v.context=S;k=n.posix.join(c.escapePath(o(n.resolve(S))),"**/*");S=n.join(S,"**/*");if(typeof x.dot==="undefined"){x.dot=true}break;case"file":s.fileDependencies.add(S);l.debug(`added '${S}' as a file dependency`);v.context=n.dirname(S);k=c.escapePath(o(n.resolve(S)));if(typeof x.dot==="undefined"){x.dot=true}break;case"glob":default:{const e=n.normalize(i(S));s.contextDependencies.add(e);l.debug(`added '${e}' as a context dependency`);k=n.isAbsolute(b)?b:n.posix.join(c.escapePath(o(n.resolve(v.context))),b)}}l.log(`begin globbing '${k}'...`);let C;try{C=await e(k,x)}catch(e){s.errors.push(e);return}if(C.length===0){if(v.noErrorOnMissing){l.log(`finished to process a pattern from '${$}' using '${v.context}' context to '${v.to}'`);return}const e=new Error(`unable to locate '${k}' glob`);s.errors.push(e);return}let A;try{A=await Promise.all(C.map((async e=>{if(!e.dirent.isFile()){return}if(v.filter){let t;try{t=await v.filter(e.path)}catch(e){s.errors.push(e);return}if(!t){l.log(`skip '${e.path}', because it was filtered`);return}}const i=e.path;l.debug(`found '${i}'`);const c=n.resolve(v.context,i);const d=typeof v.to==="function"?await v.to({context:v.context,absoluteFilename:c}):n.normalize(typeof v.to!=="undefined"?v.to:"");const m=v.toType?v.toType:h.test(d)?"template":n.extname(d)===""||d.slice(-1)===n.sep?"dir":"file";l.log(`'to' option '${d}' determinated as '${m}'`);const b=n.relative(v.context,c);let $=m==="dir"?n.join(d,b):d;if(n.isAbsolute($)){$=n.relative(t.options.output.path,$)}l.log(`determined that '${i}' should write to '${$}'`);const S=o(n.relative(t.context,c));if(P==="dir"||P==="glob"){s.fileDependencies.add(c);l.debug(`added '${c}' as a file dependency`)}let E;l.debug(`getting cache for '${c}'...`);try{E=await p.getPromise(`${S}|${y}`,null)}catch(e){s.errors.push(e);return}let x;if(E){l.debug(`found cache for '${c}'...`);let e;l.debug(`checking snapshot on valid for '${c}'...`);try{e=await CopyPlugin.checkSnapshotValid(s,E.snapshot)}catch(e){s.errors.push(e);return}if(e){l.debug(`snapshot for '${c}' is valid`);({source:x}=E)}else{l.debug(`snapshot for '${c}' is invalid`)}}else{l.debug(`missed cache for '${c}'`)}if(!x){const e=Date.now();l.debug(`reading '${c}'...`);let t;try{t=await f(w,c)}catch(e){s.errors.push(e);return}l.debug(`read '${c}'`);x=new g(t);let r;l.debug(`creating snapshot for '${c}'...`);try{r=await CopyPlugin.createSnapshot(s,e,c)}catch(e){s.errors.push(e);return}if(r){l.debug(`created snapshot for '${c}'`);l.debug(`storing cache for '${c}'...`);try{await p.storePromise(`${S}|${y}`,null,{source:x,snapshot:r})}catch(e){s.errors.push(e);return}l.debug(`stored cache for '${c}'`)}}if(v.transform){const e=typeof v.transform==="function"?{transformer:v.transform}:v.transform;if(e.transformer){l.log(`transforming content for '${c}'...`);const n=x.buffer();if(e.cache){const s=t.webpack&&t.webpack.util&&t.webpack.util.createHash?t.webpack.util.createHash("xxhash64"):r(6113).createHash("md4");const o={version:u,sourceFilename:S,transform:e.transformer,contentHash:s.update(n).digest("hex"),index:y};const i=`transform|${a(typeof e.cache==="boolean"?o:typeof e.cache.keys==="function"?await e.cache.keys(o,c):{...o,...e.cache.keys})}`;l.debug(`getting transformation cache for '${c}'...`);const f=p.getItemCache(i,p.getLazyHashedEtag(x));x=await f.getPromise();l.debug(x?`found transformation cache for '${c}'`:`no transformation cache for '${c}'`);if(!x){const t=await e.transformer(n,c);x=new g(t);l.debug(`caching transformation for '${c}'...`);await f.storePromise(x);l.debug(`cached transformation for '${c}'`)}}else{x=new g(await e.transformer(n,c))}}}let k=typeof v.info==="undefined"?{}:typeof v.info==="function"?v.info({absoluteFilename:c,sourceFilename:S,filename:$,toType:m})||{}:v.info||{};if(m==="template"){l.log(`interpolating template '${$}' for '${S}'...`);const e=CopyPlugin.getContentHash(t,s,x.buffer());const r=n.extname(S);const a=n.basename(S);const i=a.slice(0,a.length-r.length);const u={filename:o(n.relative(v.context,c)),contentHash:e,chunk:{name:i,id:S,hash:e}};const{path:f,info:d}=s.getPathWithInfo(o($),u);k={...k,...d};$=f;l.log(`interpolated template '${$}' for '${S}'`)}else{$=o($)}return{sourceFilename:S,absoluteFilename:c,filename:$,source:x,info:k,force:v.force}})))}catch(e){s.errors.push(e);return}if(A.length===0){if(v.noErrorOnMissing){l.log(`finished to process a pattern from '${$}' using '${v.context}' context to '${v.to}'`);return}const e=new Error(`unable to locate '${k}' glob after filtering paths`);s.errors.push(e);return}l.log(`finished to process a pattern from '${$}' using '${v.context}' context`);return A}apply(e){const t=this.constructor.name;e.hooks.thisCompilation.tap(t,(s=>{const i=s.getLogger("copy-webpack-plugin");const c=s.getCache("CopyWebpackPlugin");let l;s.hooks.processAssets.tapAsync({name:"copy-webpack-plugin",stage:e.webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL},(async(t,f)=>{if(typeof l==="undefined"){try{({globby:l}=await r.e(576).then(r.bind(r,3576)))}catch(e){f(e);return}}i.log("starting to add additional assets...");const d=new Map;const m=[];this.patterns.map(((t,r)=>m.push((async()=>{const f=typeof t==="string"?{from:t}:{...t};const p=typeof f.context==="undefined"?e.context:n.isAbsolute(f.context)?f.context:n.join(e.context,f.context);f.context=p;let m;try{m=await CopyPlugin.runPattern(l,e,s,i,c,f,r)}catch(e){s.errors.push(e);return}if(!m){return}let y=m.filter((e=>Boolean(e)));if(typeof f.transformAll!=="undefined"){if(typeof f.to==="undefined"){s.errors.push(new Error(`Invalid "pattern.to" for the "pattern.from": "${f.from}" and "pattern.transformAll" function. The "to" option must be specified.`));return}y.sort(((e,t)=>e.absoluteFilename>t.absoluteFilename?1:e.absoluteFilename<t.absoluteFilename?-1:0));const t=y.length===1?c.getLazyHashedEtag(y[0].source):y.reduce(((e,t,r)=>{e=c.mergeEtags(r===1?c.getLazyHashedEtag(e.source):e,c.getLazyHashedEtag(t.source));return e}));const r=c.getItemCache(`transformAll|${a({version:u,from:f.from,to:f.to,transformAll:f.transformAll})}`,t);let n=await r.getPromise();if(!n){n={filename:f.to};try{n.data=await f.transformAll(y.map((e=>({data:e.source.buffer(),sourceFilename:e.sourceFilename,absoluteFilename:e.absoluteFilename}))))}catch(e){s.errors.push(e);return}const t=typeof f.to==="function"?await f.to({context:p}):f.to;if(h.test(t)){const r=CopyPlugin.getContentHash(e,s,n.data);const{path:a,info:i}=s.getPathWithInfo(o(t),{contentHash:r,chunk:{id:"unknown-copied-asset",hash:r}});n.filename=a;n.info=i}const{RawSource:a}=e.webpack.sources;n.source=new a(n.data);n.force=f.force;await r.storePromise(n)}y=[n]}const g=f.priority||0;if(!d.has(g)){d.set(g,[])}d.get(g).push(...y)}))));await p(this.options.concurrency||100,m);const y=[...d.entries()].sort(((e,t)=>e[0]-t[0]));y.reduce(((e,t)=>e.concat(t[1])),[]).filter(Boolean).forEach((e=>{const{absoluteFilename:t,sourceFilename:r,filename:n,source:a,force:o}=e;const c=s.getAsset(n);if(c){if(o){const o={copied:true,sourceFilename:r};i.log(`force updating '${n}' from '${t}' to compilation assets, because it already exists...`);s.updateAsset(n,a,{...o,...e.info});i.log(`force updated '${n}' from '${t}' to compilation assets, because it already exists`);return}i.log(`skip adding '${n}' from '${t}' to compilation assets, because it already exists`);return}const u={copied:true,sourceFilename:r};i.log(`writing '${n}' from '${t}' to compilation assets...`);s.emitAsset(n,a,{...u,...e.info});i.log(`written '${n}' from '${t}' to compilation assets`)}));i.log("finished to adding additional assets");f()}));if(s.hooks.statsPrinter){s.hooks.statsPrinter.tap(t,(e=>{e.hooks.print.for("asset.info.copied").tap("copy-webpack-plugin",((e,{green:t,formatFlag:r})=>e?t(r("copied")):""))}))}}))}}e.exports=CopyPlugin},628:function(e){"use strict";function stat(e,t){return new Promise(((r,n)=>{e.stat(t,((e,t)=>{if(e){n(e);return}r(t)}))}))}function readFile(e,t){return new Promise(((r,n)=>{e.readFile(t,((e,t)=>{if(e){n(e);return}r(t)}))}))}const t=Symbol(`not-settled`);function throttleAll(e,r){if(!Number.isInteger(e)||e<1){throw new TypeError(`Expected \`limit\` to be a finite number > 0, got \`${e}\` (${typeof e})`)}if(!Array.isArray(r)||!r.every((e=>typeof e===`function`))){throw new TypeError(`Expected \`tasks\` to be a list of functions returning a promise`)}return new Promise(((n,s)=>{const a=Array(r.length).fill(t);const o=r.entries();const next=()=>{const{done:e,value:r}=o.next();if(e){const e=!a.includes(t);if(e){n(a)}return}const[i,c]=r;const onFulfilled=e=>{a[i]=e;next()};c().then(onFulfilled,s)};Array(e).fill(0).forEach(next)}))}e.exports={stat:stat,readFile:readFile,throttleAll:throttleAll}},1424:function(e){"use strict";e.exports=function equal(e,t){if(e===t)return true;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return false;var r,n,s;if(Array.isArray(e)){r=e.length;if(r!=t.length)return false;for(n=r;n--!==0;)if(!equal(e[n],t[n]))return false;return true}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();s=Object.keys(e);r=s.length;if(r!==Object.keys(t).length)return false;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return false;for(n=r;n--!==0;){var a=s[n];if(!equal(e[a],t[a]))return false}return true}return e!==e&&t!==t}},9918:function(e,t,r){"use strict";const n=r(885);const s=r(2282);const a=r(1598);const o=r(3514);const i=r(6535);const c=r(4809);const u=r(5950);async function FastGlob(e,t){assertPatternsInput(e);const r=getWorks(e,a.default,t);const n=await Promise.all(r);return u.array.flatten(n)}(function(e){function sync(e,t){assertPatternsInput(e);const r=getWorks(e,i.default,t);return u.array.flatten(r)}e.sync=sync;function stream(e,t){assertPatternsInput(e);const r=getWorks(e,o.default,t);return u.stream.merge(r)}e.stream=stream;function generateTasks(e,t){assertPatternsInput(e);const r=s.transform([].concat(e));const a=new c.default(t);return n.generate(r,a)}e.generateTasks=generateTasks;function isDynamicPattern(e,t){assertPatternsInput(e);const r=new c.default(t);return u.pattern.isDynamicPattern(e,r)}e.isDynamicPattern=isDynamicPattern;function escapePath(e){assertPatternsInput(e);return u.path.escape(e)}e.escapePath=escapePath})(FastGlob||(FastGlob={}));function getWorks(e,t,r){const a=s.transform([].concat(e));const o=new c.default(r);const i=n.generate(a,o);const u=new t(o);return i.map(u.read,u)}function assertPatternsInput(e){const t=[].concat(e);const r=t.every((e=>u.string.isString(e)&&!u.string.isEmpty(e)));if(!r){throw new TypeError("Patterns must be a string (non empty) or an array of strings")}}e.exports=FastGlob},2282:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.removeDuplicateSlashes=t.transform=void 0;const r=/(?!^)\/{2,}/g;function transform(e){return e.map((e=>removeDuplicateSlashes(e)))}t.transform=transform;function removeDuplicateSlashes(e){return e.replace(r,"/")}t.removeDuplicateSlashes=removeDuplicateSlashes},885:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;const n=r(5950);function generate(e,t){const r=getPositivePatterns(e);const s=getNegativePatternsAsPositive(e,t.ignore);const a=r.filter((e=>n.pattern.isStaticPattern(e,t)));const o=r.filter((e=>n.pattern.isDynamicPattern(e,t)));const i=convertPatternsToTasks(a,s,false);const c=convertPatternsToTasks(o,s,true);return i.concat(c)}t.generate=generate;function convertPatternsToTasks(e,t,r){const s=[];const a=n.pattern.getPatternsOutsideCurrentDirectory(e);const o=n.pattern.getPatternsInsideCurrentDirectory(e);const i=groupPatternsByBaseDirectory(a);const c=groupPatternsByBaseDirectory(o);s.push(...convertPatternGroupsToTasks(i,t,r));if("."in c){s.push(convertPatternGroupToTask(".",o,t,r))}else{s.push(...convertPatternGroupsToTasks(c,t,r))}return s}t.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(e){return n.pattern.getPositivePatterns(e)}t.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(e,t){const r=n.pattern.getNegativePatterns(e).concat(t);const s=r.map(n.pattern.convertToPositivePattern);return s}t.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(e){const t={};return e.reduce(((e,t)=>{const r=n.pattern.getBaseDirectory(t);if(r in e){e[r].push(t)}else{e[r]=[t]}return e}),t)}t.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(e,t,r){return Object.keys(e).map((n=>convertPatternGroupToTask(n,e[n],t,r)))}t.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(e,t,r,s){return{dynamic:s,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(n.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=convertPatternGroupToTask},1598:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5704);const s=r(7599);class ProviderAsync extends s.default{constructor(){super(...arguments);this._reader=new n.default(this._settings)}read(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const n=[];return new Promise(((s,a)=>{const o=this.api(t,e,r);o.once("error",a);o.on("data",(e=>n.push(r.transform(e))));o.once("end",(()=>s(n)))}))}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t["default"]=ProviderAsync},1409:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5950);const s=r(1562);class DeepFilter{constructor(e,t){this._settings=e;this._micromatchOptions=t}getFilter(e,t,r){const n=this._getMatcher(t);const s=this._getNegativePatternsRe(r);return t=>this._filter(e,t,n,s)}_getMatcher(e){return new s.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){const t=e.filter(n.pattern.isAffectDepthOfReadingPattern);return n.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,r,s){if(this._isSkippedByDeep(e,t.path)){return false}if(this._isSkippedSymbolicLink(t)){return false}const a=n.path.removeLeadingDotSegment(t.path);if(this._isSkippedByPositivePatterns(a,r)){return false}return this._isSkippedByNegativePatterns(a,s)}_isSkippedByDeep(e,t){if(this._settings.deep===Infinity){return false}return this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){const r=t.split("/").length;if(e===""){return r}const n=e.split("/").length;return r-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!n.pattern.matchAny(e,t)}}t["default"]=DeepFilter},143:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5950);class EntryFilter{constructor(e,t){this._settings=e;this._micromatchOptions=t;this.index=new Map}getFilter(e,t){const r=n.pattern.convertPatternsToRe(e,this._micromatchOptions);const s=n.pattern.convertPatternsToRe(t,this._micromatchOptions);return e=>this._filter(e,r,s)}_filter(e,t,r){if(this._settings.unique&&this._isDuplicateEntry(e)){return false}if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)){return false}if(this._isSkippedByAbsoluteNegativePatterns(e.path,r)){return false}const n=this._settings.baseNameMatch?e.name:e.path;const s=this._isMatchToPatterns(n,t)&&!this._isMatchToPatterns(e.path,r);if(this._settings.unique&&s){this._createIndexRecord(e)}return s}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,undefined)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,t){if(!this._settings.absolute){return false}const r=n.path.makeAbsolute(this._settings.cwd,e);return n.pattern.matchAny(r,t)}_isMatchToPatterns(e,t){const r=n.path.removeLeadingDotSegment(e);return n.pattern.matchAny(r,t)||n.pattern.matchAny(r+"/",t)}}t["default"]=EntryFilter},7625:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5950);class ErrorFilter{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return n.errno.isEnoentCodeError(e)||this._settings.suppressErrors}}t["default"]=ErrorFilter},9705:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5950);class Matcher{constructor(e,t,r){this._patterns=e;this._settings=t;this._micromatchOptions=r;this._storage=[];this._fillStorage()}_fillStorage(){const e=n.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const t of e){const e=this._getPatternSegments(t);const r=this._splitSegmentsIntoSections(e);this._storage.push({complete:r.length<=1,pattern:t,segments:e,sections:r})}}_getPatternSegments(e){const t=n.pattern.getPatternParts(e,this._micromatchOptions);return t.map((e=>{const t=n.pattern.isDynamicPattern(e,this._settings);if(!t){return{dynamic:false,pattern:e}}return{dynamic:true,pattern:e,patternRe:n.pattern.makeRe(e,this._micromatchOptions)}}))}_splitSegmentsIntoSections(e){return n.array.splitWhen(e,(e=>e.dynamic&&n.pattern.hasGlobStar(e.pattern)))}}t["default"]=Matcher},1562:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(9705);class PartialMatcher extends n.default{match(e){const t=e.split("/");const r=t.length;const n=this._storage.filter((e=>!e.complete||e.segments.length>r));for(const e of n){const n=e.sections[0];if(!e.complete&&r>n.length){return true}const s=t.every(((t,r)=>{const n=e.segments[r];if(n.dynamic&&n.patternRe.test(t)){return true}if(!n.dynamic&&n.pattern===t){return true}return false}));if(s){return true}}return false}}t["default"]=PartialMatcher},7599:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1017);const s=r(1409);const a=r(143);const o=r(7625);const i=r(3923);class Provider{constructor(e){this._settings=e;this.errorFilter=new o.default(this._settings);this.entryFilter=new a.default(this._settings,this._getMicromatchOptions());this.deepFilter=new s.default(this._settings,this._getMicromatchOptions());this.entryTransformer=new i.default(this._settings)}_getRootDirectory(e){return n.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){const t=e.base==="."?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:true,strictSlashes:false}}}t["default"]=Provider},3514:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2781);const s=r(5704);const a=r(7599);class ProviderStream extends a.default{constructor(){super(...arguments);this._reader=new s.default(this._settings)}read(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const s=this.api(t,e,r);const a=new n.Readable({objectMode:true,read:()=>{}});s.once("error",(e=>a.emit("error",e))).on("data",(e=>a.emit("data",r.transform(e)))).once("end",(()=>a.emit("end")));a.once("close",(()=>s.destroy()));return a}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t["default"]=ProviderStream},6535:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2326);const s=r(7599);class ProviderSync extends s.default{constructor(){super(...arguments);this._reader=new n.default(this._settings)}read(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const n=this.api(t,e,r);return n.map(r.transform)}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t["default"]=ProviderSync},3923:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5950);class EntryTransformer{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let t=e.path;if(this._settings.absolute){t=n.path.makeAbsolute(this._settings.cwd,t);t=n.path.unixify(t)}if(this._settings.markDirectories&&e.dirent.isDirectory()){t+="/"}if(!this._settings.objectMode){return t}return Object.assign(Object.assign({},e),{path:t})}}t["default"]=EntryTransformer},7116:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1017);const s=r(8857);const a=r(5950);class Reader{constructor(e){this._settings=e;this._fsStatSettings=new s.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return n.resolve(this._settings.cwd,e)}_makeEntry(e,t){const r={name:t,path:t,dirent:a.fs.createDirentFromStats(t,e)};if(this._settings.stats){r.stats=e}return r}_isFatalError(e){return!a.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}}t["default"]=Reader},5704:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2781);const s=r(8857);const a=r(4826);const o=r(7116);class ReaderStream extends o.default{constructor(){super(...arguments);this._walkStream=a.walkStream;this._stat=s.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){const r=e.map(this._getFullEntryPath,this);const s=new n.PassThrough({objectMode:true});s._write=(n,a,o)=>this._getEntry(r[n],e[n],t).then((e=>{if(e!==null&&t.entryFilter(e)){s.push(e)}if(n===r.length-1){s.end()}o()})).catch(o);for(let e=0;e<r.length;e++){s.write(e)}return s}_getEntry(e,t,r){return this._getStat(e).then((e=>this._makeEntry(e,t))).catch((e=>{if(r.errorFilter(e)){return null}throw e}))}_getStat(e){return new Promise(((t,r)=>{this._stat(e,this._fsStatSettings,((e,n)=>e===null?t(n):r(e)))}))}}t["default"]=ReaderStream},2326:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8857);const s=r(4826);const a=r(7116);class ReaderSync extends a.default{constructor(){super(...arguments);this._walkSync=s.walkSync;this._statSync=n.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){const r=[];for(const n of e){const e=this._getFullEntryPath(n);const s=this._getEntry(e,n,t);if(s===null||!t.entryFilter(s)){continue}r.push(s)}return r}_getEntry(e,t,r){try{const r=this._getStat(e);return this._makeEntry(r,t)}catch(e){if(r.errorFilter(e)){return null}throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}t["default"]=ReaderSync},4809:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const n=r(7147);const s=r(2037);const a=Math.max(s.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:n.lstat,lstatSync:n.lstatSync,stat:n.stat,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync};class Settings{constructor(e={}){this._options=e;this.absolute=this._getValue(this._options.absolute,false);this.baseNameMatch=this._getValue(this._options.baseNameMatch,false);this.braceExpansion=this._getValue(this._options.braceExpansion,true);this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,true);this.concurrency=this._getValue(this._options.concurrency,a);this.cwd=this._getValue(this._options.cwd,process.cwd());this.deep=this._getValue(this._options.deep,Infinity);this.dot=this._getValue(this._options.dot,false);this.extglob=this._getValue(this._options.extglob,true);this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,true);this.fs=this._getFileSystemMethods(this._options.fs);this.globstar=this._getValue(this._options.globstar,true);this.ignore=this._getValue(this._options.ignore,[]);this.markDirectories=this._getValue(this._options.markDirectories,false);this.objectMode=this._getValue(this._options.objectMode,false);this.onlyDirectories=this._getValue(this._options.onlyDirectories,false);this.onlyFiles=this._getValue(this._options.onlyFiles,true);this.stats=this._getValue(this._options.stats,false);this.suppressErrors=this._getValue(this._options.suppressErrors,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,false);this.unique=this._getValue(this._options.unique,true);if(this.onlyDirectories){this.onlyFiles=false}if(this.stats){this.objectMode=true}}_getValue(e,t){return e===undefined?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),e)}}t["default"]=Settings},1645:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitWhen=t.flatten=void 0;function flatten(e){return e.reduce(((e,t)=>[].concat(e,t)),[])}t.flatten=flatten;function splitWhen(e,t){const r=[[]];let n=0;for(const s of e){if(t(s)){n++;r[n]=[]}else{r[n].push(s)}}return r}t.splitWhen=splitWhen},145:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEnoentCodeError=void 0;function isEnoentCodeError(e){return e.code==="ENOENT"}t.isEnoentCodeError=isEnoentCodeError},4147:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDirentFromStats=void 0;class DirentFromStats{constructor(e,t){this.name=e;this.isBlockDevice=t.isBlockDevice.bind(t);this.isCharacterDevice=t.isCharacterDevice.bind(t);this.isDirectory=t.isDirectory.bind(t);this.isFIFO=t.isFIFO.bind(t);this.isFile=t.isFile.bind(t);this.isSocket=t.isSocket.bind(t);this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function createDirentFromStats(e,t){return new DirentFromStats(e,t)}t.createDirentFromStats=createDirentFromStats},5950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;const n=r(1645);t.array=n;const s=r(145);t.errno=s;const a=r(4147);t.fs=a;const o=r(4569);t.path=o;const i=r(4305);t.pattern=i;const c=r(9054);t.stream=c;const u=r(7578);t.string=u},4569:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;const n=r(1017);const s=2;const a=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function unixify(e){return e.replace(/\\/g,"/")}t.unixify=unixify;function makeAbsolute(e,t){return n.resolve(e,t)}t.makeAbsolute=makeAbsolute;function escape(e){return e.replace(a,"\\$2")}t.escape=escape;function removeLeadingDotSegment(e){if(e.charAt(0)==="."){const t=e.charAt(1);if(t==="/"||t==="\\"){return e.slice(s)}}return e}t.removeLeadingDotSegment=removeLeadingDotSegment},4305:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;const n=r(1017);const s=r(3584);const a=r(3705);const o="**";const i="\\";const c=/[*?]|^!/;const u=/\[[^[]*]/;const l=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;const f=/[!*+?@]\([^(]*\)/;const d=/,|\.\./;function isStaticPattern(e,t={}){return!isDynamicPattern(e,t)}t.isStaticPattern=isStaticPattern;function isDynamicPattern(e,t={}){if(e===""){return false}if(t.caseSensitiveMatch===false||e.includes(i)){return true}if(c.test(e)||u.test(e)||l.test(e)){return true}if(t.extglob!==false&&f.test(e)){return true}if(t.braceExpansion!==false&&hasBraceExpansion(e)){return true}return false}t.isDynamicPattern=isDynamicPattern;function hasBraceExpansion(e){const t=e.indexOf("{");if(t===-1){return false}const r=e.indexOf("}",t+1);if(r===-1){return false}const n=e.slice(t,r);return d.test(n)}function convertToPositivePattern(e){return isNegativePattern(e)?e.slice(1):e}t.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(e){return"!"+e}t.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(e){return e.startsWith("!")&&e[1]!=="("}t.isNegativePattern=isNegativePattern;function isPositivePattern(e){return!isNegativePattern(e)}t.isPositivePattern=isPositivePattern;function getNegativePatterns(e){return e.filter(isNegativePattern)}t.getNegativePatterns=getNegativePatterns;function getPositivePatterns(e){return e.filter(isPositivePattern)}t.getPositivePatterns=getPositivePatterns;function getPatternsInsideCurrentDirectory(e){return e.filter((e=>!isPatternRelatedToParentDirectory(e)))}t.getPatternsInsideCurrentDirectory=getPatternsInsideCurrentDirectory;function getPatternsOutsideCurrentDirectory(e){return e.filter(isPatternRelatedToParentDirectory)}t.getPatternsOutsideCurrentDirectory=getPatternsOutsideCurrentDirectory;function isPatternRelatedToParentDirectory(e){return e.startsWith("..")||e.startsWith("./..")}t.isPatternRelatedToParentDirectory=isPatternRelatedToParentDirectory;function getBaseDirectory(e){return s(e,{flipBackslashes:false})}t.getBaseDirectory=getBaseDirectory;function hasGlobStar(e){return e.includes(o)}t.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(e){return e.endsWith("/"+o)}t.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(e){const t=n.basename(e);return endsWithSlashGlobStar(e)||isStaticPattern(t)}t.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function expandPatternsWithBraceExpansion(e){return e.reduce(((e,t)=>e.concat(expandBraceExpansion(t))),[])}t.expandPatternsWithBraceExpansion=expandPatternsWithBraceExpansion;function expandBraceExpansion(e){return a.braces(e,{expand:true,nodupes:true})}t.expandBraceExpansion=expandBraceExpansion;function getPatternParts(e,t){let{parts:r}=a.scan(e,Object.assign(Object.assign({},t),{parts:true}));if(r.length===0){r=[e]}if(r[0].startsWith("/")){r[0]=r[0].slice(1);r.unshift("")}return r}t.getPatternParts=getPatternParts;function makeRe(e,t){return a.makeRe(e,t)}t.makeRe=makeRe;function convertPatternsToRe(e,t){return e.map((e=>makeRe(e,t)))}t.convertPatternsToRe=convertPatternsToRe;function matchAny(e,t){return t.some((t=>t.test(e)))}t.matchAny=matchAny},9054:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.merge=void 0;const n=r(3891);function merge(e){const t=n(e);e.forEach((e=>{e.once("error",(e=>t.emit("error",e)))}));t.once("close",(()=>propagateCloseEventToSources(e)));t.once("end",(()=>propagateCloseEventToSources(e)));return t}t.merge=merge;function propagateCloseEventToSources(e){e.forEach((e=>e.emit("close")))}},7578:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmpty=t.isString=void 0;function isString(e){return typeof e==="string"}t.isString=isString;function isEmpty(e){return e===""}t.isEmpty=isEmpty},8495:function(e,t,r){"use strict";var n=r(3501);function fastqueue(e,t,r){if(typeof e==="function"){r=t;t=e;e=null}if(r<1){throw new Error("fastqueue concurrency must be greater than 1")}var s=n(Task);var a=null;var o=null;var i=0;var c=null;var u={push:push,drain:noop,saturated:noop,pause:pause,paused:false,concurrency:r,running:running,resume:resume,idle:idle,length:length,getQueue:getQueue,unshift:unshift,empty:noop,kill:kill,killAndDrain:killAndDrain,error:error};return u;function running(){return i}function pause(){u.paused=true}function length(){var e=a;var t=0;while(e){e=e.next;t++}return t}function getQueue(){var e=a;var t=[];while(e){t.push(e.value);e=e.next}return t}function resume(){if(!u.paused)return;u.paused=false;for(var e=0;e<u.concurrency;e++){i++;release()}}function idle(){return i===0&&u.length()===0}function push(r,n){var l=s.get();l.context=e;l.release=release;l.value=r;l.callback=n||noop;l.errorHandler=c;if(i===u.concurrency||u.paused){if(o){o.next=l;o=l}else{a=l;o=l;u.saturated()}}else{i++;t.call(e,l.value,l.worked)}}function unshift(r,n){var c=s.get();c.context=e;c.release=release;c.value=r;c.callback=n||noop;if(i===u.concurrency||u.paused){if(a){c.next=a;a=c}else{a=c;o=c;u.saturated()}}else{i++;t.call(e,c.value,c.worked)}}function release(r){if(r){s.release(r)}var n=a;if(n){if(!u.paused){if(o===a){o=null}a=n.next;n.next=null;t.call(e,n.value,n.worked);if(o===null){u.empty()}}else{i--}}else if(--i===0){u.drain()}}function kill(){a=null;o=null;u.drain=noop}function killAndDrain(){a=null;o=null;u.drain();u.drain=noop}function error(e){c=e}}function noop(){}function Task(){this.value=null;this.callback=noop;this.next=null;this.release=noop;this.context=null;this.errorHandler=null;var e=this;this.worked=function worked(t,r){var n=e.callback;var s=e.errorHandler;var a=e.value;e.value=null;e.callback=noop;if(e.errorHandler){s(t,a)}n.call(e.context,t,r);e.release(e)}}function queueAsPromised(e,t,r){if(typeof e==="function"){r=t;t=e;e=null}function asyncWrapper(e,r){t.call(this,e).then((function(e){r(null,e)}),r)}var n=fastqueue(e,asyncWrapper,r);var s=n.push;var a=n.unshift;n.push=push;n.unshift=unshift;n.drained=drained;return n;function push(e){var t=new Promise((function(t,r){s(e,(function(e,n){if(e){r(e);return}t(n)}))}));t.catch(noop);return t}function unshift(e){var t=new Promise((function(t,r){a(e,(function(e,n){if(e){r(e);return}t(n)}))}));t.catch(noop);return t}function drained(){var e=n.drain;var t=new Promise((function(t){n.drain=function(){e();t()}}));return t}}e.exports=fastqueue;e.exports.promise=queueAsPromised},3926:function(e,t,r){"use strict";
7
+ deps: ${r}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=splitDependencies(e);validatePropertyDeps(e,t);validateSchemaDeps(e,r)}};function splitDependencies({schema:e}){const t={};const r={};for(const n in e){if(n==="__proto__")continue;const s=Array.isArray(e[n])?t:r;s[n]=e[n]}return[t,r]}function validatePropertyDeps(e,t=e.schema){const{gen:r,data:s,it:o}=e;if(Object.keys(t).length===0)return;const i=r.let("missing");for(const c in t){const u=t[c];if(u.length===0)continue;const l=(0,a.propertyInData)(r,s,c,o.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")});if(o.allErrors){r.if(l,(()=>{for(const t of u){(0,a.checkReportMissingProp)(e,t)}}))}else{r.if((0,n._)`${l} && (${(0,a.checkMissingProp)(e,u,i)})`);(0,a.reportMissingProp)(e,i);r.else()}}}t.validatePropertyDeps=validatePropertyDeps;function validateSchemaDeps(e,t=e.schema){const{gen:r,data:n,keyword:o,it:i}=e;const c=r.name("valid");for(const u in t){if((0,s.alwaysValidSchema)(i,t[u]))continue;r.if((0,a.propertyInData)(r,n,u,i.opts.ownProperties),(()=>{const t=e.subschema({keyword:o,schemaProp:u},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,true)));e.ok(c)}}t.validateSchemaDeps=validateSchemaDeps;t["default"]=o},765:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=r(4802);const a={message:({params:e})=>(0,n.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,n._)`{failingKeyword: ${e.ifClause}}`};const o={keyword:"if",schemaType:["object","boolean"],trackErrors:true,error:a,code(e){const{gen:t,parentSchema:r,it:a}=e;if(r.then===undefined&&r.else===undefined){(0,s.checkStrictMode)(a,'"if" without "then" and "else" is ignored')}const o=hasSchema(a,"then");const i=hasSchema(a,"else");if(!o&&!i)return;const c=t.let("valid",true);const u=t.name("_valid");validateIf();e.reset();if(o&&i){const r=t.let("ifClause");e.setParams({ifClause:r});t.if(u,validateClause("then",r),validateClause("else",r))}else if(o){t.if(u,validateClause("then"))}else{t.if((0,n.not)(u),validateClause("else"))}e.pass(c,(()=>e.error(true)));function validateIf(){const t=e.subschema({keyword:"if",compositeRule:true,createErrors:false,allErrors:false},u);e.mergeEvaluated(t)}function validateClause(r,s){return()=>{const a=e.subschema({keyword:r},u);t.assign(c,u);e.mergeValidEvaluated(a,c);if(s)t.assign(s,(0,n._)`${r}`);else e.setParams({ifClause:r})}}}};function hasSchema(e,t){const r=e.schema[t];return r!==undefined&&!(0,s.alwaysValidSchema)(e,r)}t["default"]=o},3614:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(9772);const s=r(5082);const a=r(9851);const o=r(9976);const i=r(4251);const c=r(3612);const u=r(4452);const l=r(7947);const f=r(5469);const d=r(4566);const p=r(6388);const h=r(7806);const m=r(7639);const y=r(813);const g=r(765);const v=r(4721);function getApplicator(e=false){const t=[p.default,h.default,m.default,y.default,g.default,v.default,u.default,l.default,c.default,f.default,d.default];if(e)t.push(s.default,o.default);else t.push(n.default,a.default);t.push(i.default);return t}t["default"]=getApplicator},9851:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateTuple=void 0;const n=r(3123);const s=r(4802);const a=r(8529);const o={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return validateTuple(e,"additionalItems",t);r.items=true;if((0,s.alwaysValidSchema)(r,t))return;e.ok((0,a.validateArray)(e))}};function validateTuple(e,t,r=e.schema){const{gen:a,parentSchema:o,data:i,keyword:c,it:u}=e;checkStrictTuple(o);if(u.opts.unevaluated&&r.length&&u.items!==true){u.items=s.mergeEvaluated.items(a,r.length,u.items)}const l=a.name("valid");const f=a.const("len",(0,n._)`${i}.length`);r.forEach(((t,r)=>{if((0,s.alwaysValidSchema)(u,t))return;a.if((0,n._)`${f} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},l)));e.ok(l)}));function checkStrictTuple(e){const{opts:n,errSchemaPath:a}=u;const o=r.length;const i=o===e.minItems&&(o===e.maxItems||e[t]===false);if(n.strictTuples&&!i){const e=`"${c}" is ${o}-tuple, but minItems or maxItems/${t} are not specified or different at path "${a}"`;(0,s.checkStrictMode)(u,e,n.strictTuples)}}}t.validateTuple=validateTuple;t["default"]=o},9976:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=r(4802);const a=r(8529);const o=r(9772);const i={message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`};const c={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:i,code(e){const{schema:t,parentSchema:r,it:n}=e;const{prefixItems:i}=r;n.items=true;if((0,s.alwaysValidSchema)(n,t))return;if(i)(0,o.validateAdditionalItems)(e,i);else e.ok((0,a.validateArray)(e))}};t["default"]=c},6388:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4802);const s={keyword:"not",schemaType:["object","boolean"],trackErrors:true,code(e){const{gen:t,schema:r,it:s}=e;if((0,n.alwaysValidSchema)(s,r)){e.fail();return}const a=t.name("valid");e.subschema({keyword:"not",compositeRule:true,createErrors:false,allErrors:false},a);e.failResult(a,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t["default"]=s},7639:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=r(4802);const a={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,n._)`{passingSchemas: ${e.passing}}`};const o={keyword:"oneOf",schemaType:"array",trackErrors:true,error:a,code(e){const{gen:t,schema:r,parentSchema:a,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&a.discriminator)return;const i=r;const c=t.let("valid",false);const u=t.let("passing",null);const l=t.name("_valid");e.setParams({passing:u});t.block(validateOneOf);e.result(c,(()=>e.reset()),(()=>e.error(true)));function validateOneOf(){i.forEach(((r,a)=>{let i;if((0,s.alwaysValidSchema)(o,r)){t.var(l,true)}else{i=e.subschema({keyword:"oneOf",schemaProp:a,compositeRule:true},l)}if(a>0){t.if((0,n._)`${l} && ${c}`).assign(c,false).assign(u,(0,n._)`[${u}, ${a}]`).else()}t.if(l,(()=>{t.assign(c,true);t.assign(u,a);if(i)e.mergeEvaluated(i,n.Name)}))}))}}};t["default"]=o},4566:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8529);const s=r(3123);const a=r(4802);const o=r(4802);const i={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:i,parentSchema:c,it:u}=e;const{opts:l}=u;const f=(0,n.allSchemaProperties)(r);const d=f.filter((e=>(0,a.alwaysValidSchema)(u,r[e])));if(f.length===0||d.length===f.length&&(!u.opts.unevaluated||u.props===true)){return}const p=l.strictSchema&&!l.allowMatchingProperties&&c.properties;const h=t.name("valid");if(u.props!==true&&!(u.props instanceof s.Name)){u.props=(0,o.evaluatedPropsToName)(t,u.props)}const{props:m}=u;validatePatternProperties();function validatePatternProperties(){for(const e of f){if(p)checkMatchingProperties(e);if(u.allErrors){validateProperties(e)}else{t.var(h,true);validateProperties(e);t.if(h)}}}function checkMatchingProperties(e){for(const t in p){if(new RegExp(e).test(t)){(0,a.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}}}function validateProperties(r){t.forIn("key",i,(a=>{t.if((0,s._)`${(0,n.usePattern)(e,r)}.test(${a})`,(()=>{const n=d.includes(r);if(!n){e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:a,dataPropType:o.Type.Str},h)}if(u.opts.unevaluated&&m!==true){t.assign((0,s._)`${m}[${a}]`,true)}else if(!n&&!u.allErrors){t.if((0,s.not)(h),(()=>t.break()))}}))}))}}};t["default"]=i},5082:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(9851);const s={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t["default"]=s},5469:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(9850);const s=r(8529);const a=r(4802);const o=r(7947);const i={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:i,data:c,it:u}=e;if(u.opts.removeAdditional==="all"&&i.additionalProperties===undefined){o.default.code(new n.KeywordCxt(u,o.default,"additionalProperties"))}const l=(0,s.allSchemaProperties)(r);for(const e of l){u.definedProperties.add(e)}if(u.opts.unevaluated&&l.length&&u.props!==true){u.props=a.mergeEvaluated.props(t,(0,a.toHash)(l),u.props)}const f=l.filter((e=>!(0,a.alwaysValidSchema)(u,r[e])));if(f.length===0)return;const d=t.name("valid");for(const r of f){if(hasDefault(r)){applyPropertySchema(r)}else{t.if((0,s.propertyInData)(t,c,r,u.opts.ownProperties));applyPropertySchema(r);if(!u.allErrors)t.else().var(d,true);t.endIf()}e.it.definedProperties.add(r);e.ok(d)}function hasDefault(e){return u.opts.useDefaults&&!u.compositeRule&&r[e].default!==undefined}function applyPropertySchema(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t["default"]=i},4452:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=r(4802);const a={message:"property name must be valid",params:({params:e})=>(0,n._)`{propertyName: ${e.propertyName}}`};const o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:a,code(e){const{gen:t,schema:r,data:a,it:o}=e;if((0,s.alwaysValidSchema)(o,r))return;const i=t.name("valid");t.forIn("key",a,(r=>{e.setParams({propertyName:r});e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:true},i);t.if((0,n.not)(i),(()=>{e.error(true);if(!o.allErrors)t.break()}))}));e.ok(i)}};t["default"]=o},4721:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4802);const s={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){if(t.if===undefined)(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t["default"]=s},8529:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=r(3123);const s=r(4802);const a=r(2491);const o=r(4802);function checkReportMissingProp(e,t){const{gen:r,data:s,it:a}=e;r.if(noPropertyInData(r,s,t,a.opts.ownProperties),(()=>{e.setParams({missingProperty:(0,n._)`${t}`},true);e.error()}))}t.checkReportMissingProp=checkReportMissingProp;function checkMissingProp({gen:e,data:t,it:{opts:r}},s,a){return(0,n.or)(...s.map((s=>(0,n.and)(noPropertyInData(e,t,s,r.ownProperties),(0,n._)`${a} = ${s}`))))}t.checkMissingProp=checkMissingProp;function reportMissingProp(e,t){e.setParams({missingProperty:t},true);e.error()}t.reportMissingProp=reportMissingProp;function hasPropFunc(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,n._)`Object.prototype.hasOwnProperty`})}t.hasPropFunc=hasPropFunc;function isOwnProperty(e,t,r){return(0,n._)`${hasPropFunc(e)}.call(${t}, ${r})`}t.isOwnProperty=isOwnProperty;function propertyInData(e,t,r,s){const a=(0,n._)`${t}${(0,n.getProperty)(r)} !== undefined`;return s?(0,n._)`${a} && ${isOwnProperty(e,t,r)}`:a}t.propertyInData=propertyInData;function noPropertyInData(e,t,r,s){const a=(0,n._)`${t}${(0,n.getProperty)(r)} === undefined`;return s?(0,n.or)(a,(0,n.not)(isOwnProperty(e,t,r))):a}t.noPropertyInData=noPropertyInData;function allSchemaProperties(e){return e?Object.keys(e).filter((e=>e!=="__proto__")):[]}t.allSchemaProperties=allSchemaProperties;function schemaProperties(e,t){return allSchemaProperties(t).filter((r=>!(0,s.alwaysValidSchema)(e,t[r])))}t.schemaProperties=schemaProperties;function callValidateCode({schemaCode:e,data:t,it:{gen:r,topSchemaRef:s,schemaPath:o,errorPath:i},it:c},u,l,f){const d=f?(0,n._)`${e}, ${t}, ${s}${o}`:t;const p=[[a.default.instancePath,(0,n.strConcat)(a.default.instancePath,i)],[a.default.parentData,c.parentData],[a.default.parentDataProperty,c.parentDataProperty],[a.default.rootData,a.default.rootData]];if(c.opts.dynamicRef)p.push([a.default.dynamicAnchors,a.default.dynamicAnchors]);const h=(0,n._)`${d}, ${r.object(...p)}`;return l!==n.nil?(0,n._)`${u}.call(${l}, ${h})`:(0,n._)`${u}(${h})`}t.callValidateCode=callValidateCode;const i=(0,n._)`new RegExp`;function usePattern({gen:e,it:{opts:t}},r){const s=t.unicodeRegExp?"u":"";const{regExp:a}=t.code;const c=a(r,s);return e.scopeValue("pattern",{key:c.toString(),ref:c,code:(0,n._)`${a.code==="new RegExp"?i:(0,o.useFunc)(e,a)}(${r}, ${s})`})}t.usePattern=usePattern;function validateArray(e){const{gen:t,data:r,keyword:a,it:o}=e;const i=t.name("valid");if(o.allErrors){const e=t.let("valid",true);validateItems((()=>t.assign(e,false)));return e}t.var(i,true);validateItems((()=>t.break()));return i;function validateItems(o){const c=t.const("len",(0,n._)`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:a,dataProp:r,dataPropType:s.Type.Num},i);t.if((0,n.not)(i),o)}))}}t.validateArray=validateArray;function validateUnion(e){const{gen:t,schema:r,keyword:a,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=r.some((e=>(0,s.alwaysValidSchema)(o,e)));if(i&&!o.opts.unevaluated)return;const c=t.let("valid",false);const u=t.name("_valid");t.block((()=>r.forEach(((r,s)=>{const o=e.subschema({keyword:a,schemaProp:s,compositeRule:true},u);t.assign(c,(0,n._)`${c} || ${u}`);const i=e.mergeValidEvaluated(o,u);if(!i)t.if((0,n.not)(c))}))));e.result(c,(()=>e.reset()),(()=>e.error(true)))}t.validateUnion=validateUnion},91:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t["default"]=r},597:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(91);const s=r(5473);const a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,s.default];t["default"]=a},5473:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.callRef=t.getValidate=void 0;const n=r(5477);const s=r(8529);const a=r(3123);const o=r(2491);const i=r(4852);const c=r(4802);const u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:s}=e;const{baseId:o,schemaEnv:c,validateName:u,opts:l,self:f}=s;const{root:d}=c;if((r==="#"||r==="#/")&&o===d.baseId)return callRootRef();const p=i.resolveRef.call(f,d,o,r);if(p===undefined)throw new n.default(s.opts.uriResolver,o,r);if(p instanceof i.SchemaEnv)return callValidate(p);return inlineRefSchema(p);function callRootRef(){if(c===d)return callRef(e,u,c,c.$async);const r=t.scopeValue("root",{ref:d});return callRef(e,(0,a._)`${r}.validate`,d,d.$async)}function callValidate(t){const r=getValidate(e,t);callRef(e,r,t,t.$async)}function inlineRefSchema(n){const s=t.scopeValue("schema",l.code.source===true?{ref:n,code:(0,a.stringify)(n)}:{ref:n});const o=t.name("valid");const i=e.subschema({schema:n,dataTypes:[],schemaPath:a.nil,topSchemaRef:s,errSchemaPath:r},o);e.mergeEvaluated(i);e.ok(o)}}};function getValidate(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,a._)`${r.scopeValue("wrapper",{ref:t})}.validate`}t.getValidate=getValidate;function callRef(e,t,r,n){const{gen:i,it:u}=e;const{allErrors:l,schemaEnv:f,opts:d}=u;const p=d.passContext?o.default.this:a.nil;if(n)callAsyncRef();else callSyncRef();function callAsyncRef(){if(!f.$async)throw new Error("async schema referenced by sync schema");const r=i.let("valid");i.try((()=>{i.code((0,a._)`await ${(0,s.callValidateCode)(e,t,p)}`);addEvaluatedFrom(t);if(!l)i.assign(r,true)}),(e=>{i.if((0,a._)`!(${e} instanceof ${u.ValidationError})`,(()=>i.throw(e)));addErrorsFrom(e);if(!l)i.assign(r,false)}));e.ok(r)}function callSyncRef(){e.result((0,s.callValidateCode)(e,t,p),(()=>addEvaluatedFrom(t)),(()=>addErrorsFrom(t)))}function addErrorsFrom(e){const t=(0,a._)`${e}.errors`;i.assign(o.default.vErrors,(0,a._)`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`);i.assign(o.default.errors,(0,a._)`${o.default.vErrors}.length`)}function addEvaluatedFrom(e){var t;if(!u.opts.unevaluated)return;const n=(t=r===null||r===void 0?void 0:r.validate)===null||t===void 0?void 0:t.evaluated;if(u.props!==true){if(n&&!n.dynamicProps){if(n.props!==undefined){u.props=c.mergeEvaluated.props(i,n.props,u.props)}}else{const t=i.var("props",(0,a._)`${e}.evaluated.props`);u.props=c.mergeEvaluated.props(i,t,u.props,a.Name)}}if(u.items!==true){if(n&&!n.dynamicItems){if(n.items!==undefined){u.items=c.mergeEvaluated.items(i,n.items,u.items)}}else{const t=i.var("items",(0,a._)`${e}.evaluated.items`);u.items=c.mergeEvaluated.items(i,t,u.items,a.Name)}}}}t.callRef=callRef;t["default"]=u},3626:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=r(4061);const a=r(4852);const o=r(4802);const i={message:({params:{discrError:e,tagName:t}})=>e===s.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,n._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};const c={keyword:"discriminator",type:"object",schemaType:"object",error:i,code(e){const{gen:t,data:r,schema:i,parentSchema:c,it:u}=e;const{oneOf:l}=c;if(!u.opts.discriminator){throw new Error("discriminator: requires discriminator option")}const f=i.propertyName;if(typeof f!="string")throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const d=t.let("valid",false);const p=t.const("tag",(0,n._)`${r}${(0,n.getProperty)(f)}`);t.if((0,n._)`typeof ${p} == "string"`,(()=>validateMapping()),(()=>e.error(false,{discrError:s.DiscrError.Tag,tag:p,tagName:f})));e.ok(d);function validateMapping(){const r=getMapping();t.if(false);for(const e in r){t.elseIf((0,n._)`${p} === ${e}`);t.assign(d,applyTagSchema(r[e]))}t.else();e.error(false,{discrError:s.DiscrError.Mapping,tag:p,tagName:f});t.endIf()}function applyTagSchema(r){const s=t.name("valid");const a=e.subschema({keyword:"oneOf",schemaProp:r},s);e.mergeEvaluated(a,n.Name);return s}function getMapping(){var e;const t={};const r=hasRequired(c);let n=true;for(let t=0;t<l.length;t++){let s=l[t];if((s===null||s===void 0?void 0:s.$ref)&&!(0,o.schemaHasRulesButRef)(s,u.self.RULES)){s=a.resolveRef.call(u.self,u.schemaEnv,u.baseId,s===null||s===void 0?void 0:s.$ref);if(s instanceof a.SchemaEnv)s=s.schema}const i=(e=s===null||s===void 0?void 0:s.properties)===null||e===void 0?void 0:e[f];if(typeof i!="object"){throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`)}n=n&&(r||hasRequired(s));addMappings(i,t)}if(!n)throw new Error(`discriminator: "${f}" must be required`);return t;function hasRequired({required:e}){return Array.isArray(e)&&e.includes(f)}function addMappings(e,t){if(e.const){addMapping(e.const,t)}else if(e.enum){for(const r of e.enum){addMapping(r,t)}}else{throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}}function addMapping(e,r){if(typeof e!="string"||e in t){throw new Error(`discriminator: "${f}" values must be unique strings`)}t[e]=r}}}};t["default"]=c},4061:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiscrError=void 0;var r;(function(e){e["Tag"]="tag";e["Mapping"]="mapping"})(r=t.DiscrError||(t.DiscrError={}))},6218:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(597);const s=r(1556);const a=r(3614);const o=r(5706);const i=r(342);const c=[n.default,s.default,(0,a.default)(),o.default,i.metadataVocabulary,i.contentVocabulary];t["default"]=c},4371:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s={message:({schemaCode:e})=>(0,n.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,n._)`{format: ${e}}`};const a={keyword:"format",type:["number","string"],schemaType:"string",$data:true,error:s,code(e,t){const{gen:r,data:s,$data:a,schema:o,schemaCode:i,it:c}=e;const{opts:u,errSchemaPath:l,schemaEnv:f,self:d}=c;if(!u.validateFormats)return;if(a)validate$DataFormat();else validateFormat();function validate$DataFormat(){const a=r.scopeValue("formats",{ref:d.formats,code:u.code.formats});const o=r.const("fDef",(0,n._)`${a}[${i}]`);const c=r.let("fType");const l=r.let("format");r.if((0,n._)`typeof ${o} == "object" && !(${o} instanceof RegExp)`,(()=>r.assign(c,(0,n._)`${o}.type || "string"`).assign(l,(0,n._)`${o}.validate`)),(()=>r.assign(c,(0,n._)`"string"`).assign(l,o)));e.fail$data((0,n.or)(unknownFmt(),invalidFmt()));function unknownFmt(){if(u.strictSchema===false)return n.nil;return(0,n._)`${i} && !${l}`}function invalidFmt(){const e=f.$async?(0,n._)`(${o}.async ? await ${l}(${s}) : ${l}(${s}))`:(0,n._)`${l}(${s})`;const r=(0,n._)`(typeof ${l} == "function" ? ${e} : ${l}.test(${s}))`;return(0,n._)`${l} && ${l} !== true && ${c} === ${t} && !${r}`}}function validateFormat(){const a=d.formats[o];if(!a){unknownFormat();return}if(a===true)return;const[i,c,p]=getFormat(a);if(i===t)e.pass(validCondition());function unknownFormat(){if(u.strictSchema===false){d.logger.warn(unknownMsg());return}throw new Error(unknownMsg());function unknownMsg(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function getFormat(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):u.code.formats?(0,n._)`${u.code.formats}${(0,n.getProperty)(o)}`:undefined;const s=r.scopeValue("formats",{key:o,ref:e,code:t});if(typeof e=="object"&&!(e instanceof RegExp)){return[e.type||"string",e.validate,(0,n._)`${s}.validate`]}return["string",e,s]}function validCondition(){if(typeof a=="object"&&!(a instanceof RegExp)&&a.async){if(!f.$async)throw new Error("async format in sync schema");return(0,n._)`await ${p}(${s})`}return typeof c=="function"?(0,n._)`${p}(${s})`:(0,n._)`${p}.test(${s})`}}}};t["default"]=a},5706:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4371);const s=[n.default];t["default"]=s},342:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.contentVocabulary=t.metadataVocabulary=void 0;t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},9314:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=r(4802);const a=r(6109);const o={message:"must be equal to constant",params:({schemaCode:e})=>(0,n._)`{allowedValue: ${e}}`};const i={keyword:"const",$data:true,error:o,code(e){const{gen:t,data:r,$data:o,schemaCode:i,schema:c}=e;if(o||c&&typeof c=="object"){e.fail$data((0,n._)`!${(0,s.useFunc)(t,a.default)}(${r}, ${i})`)}else{e.fail((0,n._)`${c} !== ${r}`)}}};t["default"]=i},7167:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=r(4802);const a=r(6109);const o={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,n._)`{allowedValues: ${e}}`};const i={keyword:"enum",schemaType:"array",$data:true,error:o,code(e){const{gen:t,data:r,$data:o,schema:i,schemaCode:c,it:u}=e;if(!o&&i.length===0)throw new Error("enum must have non-empty array");const l=i.length>=u.opts.loopEnum;const f=(0,s.useFunc)(t,a.default);let d;if(l||o){d=t.let("valid");e.block$data(d,loopEnum)}else{if(!Array.isArray(i))throw new Error("ajv implementation error");const e=t.const("vSchema",c);d=(0,n.or)(...i.map(((t,r)=>equalCode(e,r))))}e.pass(d);function loopEnum(){t.assign(d,false);t.forOf("v",c,(e=>t.if((0,n._)`${f}(${r}, ${e})`,(()=>t.assign(d,true).break()))))}function equalCode(e,t){const s=i[t];return typeof s==="object"&&s!==null?(0,n._)`${f}(${r}, ${e}[${t}])`:(0,n._)`${r} === ${s}`}}};t["default"]=i},1556:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5188);const s=r(6488);const a=r(5176);const o=r(5146);const i=r(9327);const c=r(6646);const u=r(4545);const l=r(3735);const f=r(9314);const d=r(7167);const p=[n.default,s.default,a.default,o.default,i.default,c.default,u.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,d.default];t["default"]=p},4545:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,n.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`};const a={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:s,code(e){const{keyword:t,data:r,schemaCode:s}=e;const a=t==="maxItems"?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`${r}.length ${a} ${s}`)}};t["default"]=a},5176:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=r(4802);const a=r(3882);const o={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,n.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`};const i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:o,code(e){const{keyword:t,data:r,schemaCode:o,it:i}=e;const c=t==="maxLength"?n.operators.GT:n.operators.LT;const u=i.opts.unicode===false?(0,n._)`${r}.length`:(0,n._)`${(0,s.useFunc)(e.gen,a.default)}(${r})`;e.fail$data((0,n._)`${u} ${c} ${o}`)}};t["default"]=i},5188:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s=n.operators;const a={maximum:{okStr:"<=",ok:s.LTE,fail:s.GT},minimum:{okStr:">=",ok:s.GTE,fail:s.LT},exclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},exclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}};const o={message:({keyword:e,schemaCode:t})=>(0,n.str)`must be ${a[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,n._)`{comparison: ${a[e].okStr}, limit: ${t}}`};const i={keyword:Object.keys(a),type:"number",schemaType:"number",$data:true,error:o,code(e){const{keyword:t,data:r,schemaCode:s}=e;e.fail$data((0,n._)`${r} ${a[t].fail} ${s} || isNaN(${r})`)}};t["default"]=i},9327:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,n.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`};const a={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:s,code(e){const{keyword:t,data:r,schemaCode:s}=e;const a=t==="maxProperties"?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`Object.keys(${r}).length ${a} ${s}`)}};t["default"]=a},6488:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3123);const s={message:({schemaCode:e})=>(0,n.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,n._)`{multipleOf: ${e}}`};const a={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:s,code(e){const{gen:t,data:r,schemaCode:s,it:a}=e;const o=a.opts.multipleOfPrecision;const i=t.let("res");const c=o?(0,n._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${o}`:(0,n._)`${i} !== parseInt(${i})`;e.fail$data((0,n._)`(${s} === 0 || (${i} = ${r}/${s}, ${c}))`)}};t["default"]=a},5146:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8529);const s=r(3123);const a={message:({schemaCode:e})=>(0,s.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,s._)`{pattern: ${e}}`};const o={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:a,code(e){const{data:t,$data:r,schema:a,schemaCode:o,it:i}=e;const c=i.opts.unicodeRegExp?"u":"";const u=r?(0,s._)`(new RegExp(${o}, ${c}))`:(0,n.usePattern)(e,a);e.fail$data((0,s._)`!${u}.test(${t})`)}};t["default"]=o},6646:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8529);const s=r(3123);const a=r(4802);const o={message:({params:{missingProperty:e}})=>(0,s.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,s._)`{missingProperty: ${e}}`};const i={keyword:"required",type:"object",schemaType:"array",$data:true,error:o,code(e){const{gen:t,schema:r,schemaCode:o,data:i,$data:c,it:u}=e;const{opts:l}=u;if(!c&&r.length===0)return;const f=r.length>=l.loopRequired;if(u.allErrors)allErrorsMode();else exitOnErrorMode();if(l.strictRequired){const t=e.parentSchema.properties;const{definedProperties:n}=e.it;for(const e of r){if((t===null||t===void 0?void 0:t[e])===undefined&&!n.has(e)){const t=u.schemaEnv.baseId+u.errSchemaPath;const r=`required property "${e}" is not defined at "${t}" (strictRequired)`;(0,a.checkStrictMode)(u,r,u.opts.strictRequired)}}}function allErrorsMode(){if(f||c){e.block$data(s.nil,loopAllRequired)}else{for(const t of r){(0,n.checkReportMissingProp)(e,t)}}}function exitOnErrorMode(){const s=t.let("missing");if(f||c){const r=t.let("valid",true);e.block$data(r,(()=>loopUntilMissing(s,r)));e.ok(r)}else{t.if((0,n.checkMissingProp)(e,r,s));(0,n.reportMissingProp)(e,s);t.else()}}function loopAllRequired(){t.forOf("prop",o,(r=>{e.setParams({missingProperty:r});t.if((0,n.noPropertyInData)(t,i,r,l.ownProperties),(()=>e.error()))}))}function loopUntilMissing(r,a){e.setParams({missingProperty:r});t.forOf(r,o,(()=>{t.assign(a,(0,n.propertyInData)(t,i,r,l.ownProperties));t.if((0,s.not)(a),(()=>{e.error();t.break()}))}),s.nil)}}};t["default"]=i},3735:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2404);const s=r(3123);const a=r(4802);const o=r(6109);const i={message:({params:{i:e,j:t}})=>(0,s.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,s._)`{i: ${e}, j: ${t}}`};const c={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:i,code(e){const{gen:t,data:r,$data:i,schema:c,parentSchema:u,schemaCode:l,it:f}=e;if(!i&&!c)return;const d=t.let("valid");const p=u.items?(0,n.getSchemaTypes)(u.items):[];e.block$data(d,validateUniqueItems,(0,s._)`${l} === false`);e.ok(d);function validateUniqueItems(){const n=t.let("i",(0,s._)`${r}.length`);const a=t.let("j");e.setParams({i:n,j:a});t.assign(d,true);t.if((0,s._)`${n} > 1`,(()=>(canOptimize()?loopN:loopN2)(n,a)))}function canOptimize(){return p.length>0&&!p.some((e=>e==="object"||e==="array"))}function loopN(a,o){const i=t.name("item");const c=(0,n.checkDataTypes)(p,i,f.opts.strictNumbers,n.DataType.Wrong);const u=t.const("indices",(0,s._)`{}`);t.for((0,s._)`;${a}--;`,(()=>{t.let(i,(0,s._)`${r}[${a}]`);t.if(c,(0,s._)`continue`);if(p.length>1)t.if((0,s._)`typeof ${i} == "string"`,(0,s._)`${i} += "_"`);t.if((0,s._)`typeof ${u}[${i}] == "number"`,(()=>{t.assign(o,(0,s._)`${u}[${i}]`);e.error();t.assign(d,false).break()})).code((0,s._)`${u}[${i}] = ${a}`)}))}function loopN2(n,i){const c=(0,a.useFunc)(t,o.default);const u=t.name("outer");t.label(u).for((0,s._)`;${n}--;`,(()=>t.for((0,s._)`${i} = ${n}; ${i}--;`,(()=>t.if((0,s._)`${c}(${r}[${n}], ${r}[${i}])`,(()=>{e.error();t.assign(d,false).break(u)}))))))}}};t["default"]=c},1570:function(e,t,r){"use strict";const n=r(3625);const s=r(4666);const a=r(6183);const o=r(2467);const braces=(e,t={})=>{let r=[];if(Array.isArray(e)){for(let n of e){let e=braces.create(n,t);if(Array.isArray(e)){r.push(...e)}else{r.push(e)}}}else{r=[].concat(braces.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){r=[...new Set(r)]}return r};braces.parse=(e,t={})=>o(e,t);braces.stringify=(e,t={})=>{if(typeof e==="string"){return n(braces.parse(e,t),t)}return n(e,t)};braces.compile=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}return s(e,t)};braces.expand=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}let r=a(e,t);if(t.noempty===true){r=r.filter(Boolean)}if(t.nodupes===true){r=[...new Set(r)]}return r};braces.create=(e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?braces.compile(e,t):braces.expand(e,t)};e.exports=braces},4666:function(e,t,r){"use strict";const n=r(442);const s=r(2456);const compile=(e,t={})=>{let walk=(e,r={})=>{let a=s.isInvalidBrace(r);let o=e.invalid===true&&t.escapeInvalid===true;let i=a===true||o===true;let c=t.escapeInvalid===true?"\\":"";let u="";if(e.isOpen===true){return c+e.value}if(e.isClose===true){return c+e.value}if(e.type==="open"){return i?c+e.value:"("}if(e.type==="close"){return i?c+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":i?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){let r=s.reduce(e.nodes);let a=n(...r,{...t,wrap:false,toRegex:true});if(a.length!==0){return r.length>1&&a.length>1?`(${a})`:a}}if(e.nodes){for(let t of e.nodes){u+=walk(t,e)}}return u};return walk(e)};e.exports=compile},487:function(e){"use strict";e.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},6183:function(e,t,r){"use strict";const n=r(442);const s=r(3625);const a=r(2456);const append=(e="",t="",r=false)=>{let n=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return r?a.flatten(t).map((e=>`{${e}}`)):t}for(let s of e){if(Array.isArray(s)){for(let e of s){n.push(append(e,t,r))}}else{for(let e of t){if(r===true&&typeof e==="string")e=`{${e}}`;n.push(Array.isArray(e)?append(s,e,r):s+e)}}}return a.flatten(n)};const expand=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit;let walk=(e,o={})=>{e.queue=[];let i=o;let c=o.queue;while(i.type!=="brace"&&i.type!=="root"&&i.parent){i=i.parent;c=i.queue}if(e.invalid||e.dollar){c.push(append(c.pop(),s(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){c.push(append(c.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){let o=a.reduce(e.nodes);if(a.exceedsLimit(...o,t.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let i=n(...o,t);if(i.length===0){i=s(e,t)}c.push(append(c.pop(),i));e.nodes=[];return}let u=a.encloseBrace(e);let l=e.queue;let f=e;while(f.type!=="brace"&&f.type!=="root"&&f.parent){f=f.parent;l=f.queue}for(let t=0;t<e.nodes.length;t++){let r=e.nodes[t];if(r.type==="comma"&&e.type==="brace"){if(t===1)l.push("");l.push("");continue}if(r.type==="close"){c.push(append(c.pop(),l,u));continue}if(r.value&&r.type!=="open"){l.push(append(l.pop(),r.value));continue}if(r.nodes){walk(r,e)}}return l};return a.flatten(walk(e))};e.exports=expand},2467:function(e,t,r){"use strict";const n=r(3625);const{MAX_LENGTH:s,CHAR_BACKSLASH:a,CHAR_BACKTICK:o,CHAR_COMMA:i,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:u,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_RIGHT_SQUARE_BRACKET:h,CHAR_DOUBLE_QUOTE:m,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:v}=r(487);const parse=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}let r=t||{};let b=typeof r.maxLength==="number"?Math.min(s,r.maxLength):s;if(e.length>b){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${b})`)}let $={type:"root",input:e,nodes:[]};let S=[$];let w=$;let E=$;let P=0;let x=e.length;let k=0;let R=0;let C;let A={};const advance=()=>e[k++];const push=e=>{if(e.type==="text"&&E.type==="dot"){E.type="text"}if(E&&E.type==="text"&&e.type==="text"){E.value+=e.value;return}w.nodes.push(e);e.parent=w;e.prev=E;E=e;return e};push({type:"bos"});while(k<x){w=S[S.length-1];C=advance();if(C===v||C===g){continue}if(C===a){push({type:"text",value:(t.keepEscaping?C:"")+advance()});continue}if(C===h){push({type:"text",value:"\\"+C});continue}if(C===p){P++;let e=true;let t;while(k<x&&(t=advance())){C+=t;if(t===p){P++;continue}if(t===a){C+=advance();continue}if(t===h){P--;if(P===0){break}}}push({type:"text",value:C});continue}if(C===u){w=push({type:"paren",nodes:[]});S.push(w);push({type:"text",value:C});continue}if(C===l){if(w.type!=="paren"){push({type:"text",value:C});continue}w=S.pop();push({type:"text",value:C});w=S[S.length-1];continue}if(C===m||C===y||C===o){let e=C;let r;if(t.keepQuotes!==true){C=""}while(k<x&&(r=advance())){if(r===a){C+=r+advance();continue}if(r===e){if(t.keepQuotes===true)C+=r;break}C+=r}push({type:"text",value:C});continue}if(C===f){R++;let e=E.value&&E.value.slice(-1)==="$"||w.dollar===true;let t={type:"brace",open:true,close:false,dollar:e,depth:R,commas:0,ranges:0,nodes:[]};w=push(t);S.push(w);push({type:"open",value:C});continue}if(C===d){if(w.type!=="brace"){push({type:"text",value:C});continue}let e="close";w=S.pop();w.close=true;push({type:e,value:C});R--;w=S[S.length-1];continue}if(C===i&&R>0){if(w.ranges>0){w.ranges=0;let e=w.nodes.shift();w.nodes=[e,{type:"text",value:n(w)}]}push({type:"comma",value:C});w.commas++;continue}if(C===c&&R>0&&w.commas===0){let e=w.nodes;if(R===0||e.length===0){push({type:"text",value:C});continue}if(E.type==="dot"){w.range=[];E.value+=C;E.type="range";if(w.nodes.length!==3&&w.nodes.length!==5){w.invalid=true;w.ranges=0;E.type="text";continue}w.ranges++;w.args=[];continue}if(E.type==="range"){e.pop();let t=e[e.length-1];t.value+=E.value+C;E=t;w.ranges--;continue}push({type:"dot",value:C});continue}push({type:"text",value:C})}do{w=S.pop();if(w.type!=="root"){w.nodes.forEach((e=>{if(!e.nodes){if(e.type==="open")e.isOpen=true;if(e.type==="close")e.isClose=true;if(!e.nodes)e.type="text";e.invalid=true}}));let e=S[S.length-1];let t=e.nodes.indexOf(w);e.nodes.splice(t,1,...w.nodes)}}while(S.length>0);push({type:"eos"});return $};e.exports=parse},3625:function(e,t,r){"use strict";const n=r(2456);e.exports=(e,t={})=>{let stringify=(e,r={})=>{let s=t.escapeInvalid&&n.isInvalidBrace(r);let a=e.invalid===true&&t.escapeInvalid===true;let o="";if(e.value){if((s||a)&&n.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(let t of e.nodes){o+=stringify(t)}}return o};return stringify(e)}},2456:function(e,t){"use strict";t.isInteger=e=>{if(typeof e==="number"){return Number.isInteger(e)}if(typeof e==="string"&&e.trim()!==""){return Number.isInteger(Number(e))}return false};t.find=(e,t)=>e.nodes.find((e=>e.type===t));t.exceedsLimit=(e,r,n=1,s)=>{if(s===false)return false;if(!t.isInteger(e)||!t.isInteger(r))return false;return(Number(r)-Number(e))/Number(n)>=s};t.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];if(!n)return;if(r&&n.type===r||n.type==="open"||n.type==="close"){if(n.escaped!==true){n.value="\\"+n.value;n.escaped=true}}};t.encloseBrace=e=>{if(e.type!=="brace")return false;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}return false};t.isInvalidBrace=e=>{if(e.type!=="brace")return false;if(e.invalid===true||e.dollar)return true;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}if(e.open!==true||e.close!==true){e.invalid=true;return true}return false};t.isOpenOrClose=e=>{if(e.type==="open"||e.type==="close"){return true}return e.open===true||e.close===true};t.reduce=e=>e.reduce(((e,t)=>{if(t.type==="text")e.push(t.value);if(t.type==="range")t.type="text";return e}),[]);t.flatten=(...e)=>{const t=[];const flat=e=>{for(let r=0;r<e.length;r++){let n=e[r];Array.isArray(n)?flat(n,t):n!==void 0&&t.push(n)}return t};flat(e);return t}},8056:function(e,t,r){"use strict";const n=r(1017);const{validate:s}=r(9048);const a=r(4421);const o=r(498);const i=r(5677);const c=r(3924);const{version:u}=r(5087);const l=r(8974);const{readFile:f,stat:d,throttleAll:p}=r(2129);const h=/\[\\*([\w:]+)\\*\]/i;class CopyPlugin{constructor(e={patterns:[]}){s(l,e,{name:"Copy Plugin",baseDataPath:"options"});this.patterns=e.patterns;this.options=e.options||{}}static async createSnapshot(e,t,r){return new Promise(((n,s)=>{e.fileSystemInfo.createSnapshot(t,[r],undefined,undefined,null,((e,t)=>{if(e){s(e);return}n(t)}))}))}static async checkSnapshotValid(e,t){return new Promise(((r,n)=>{e.fileSystemInfo.checkSnapshotValid(t,((e,t)=>{if(e){n(e);return}r(t)}))}))}static getContentHash(e,t,r){const{outputOptions:n}=t;const{hashDigest:s,hashDigestLength:a,hashFunction:o,hashSalt:i}=n;const c=e.webpack.util.createHash(o);if(i){c.update(i)}c.update(r);const u=c.digest(s);return u.toString().slice(0,a)}static async runPattern(e,t,s,l,p,m,y){const{RawSource:g}=t.webpack.sources;const v={...m};const b=v.from;const $=n.normalize(b);l.log(`starting to process a pattern from '${$}' using '${v.context}' context`);let S;if(n.isAbsolute($)){S=$}else{S=n.resolve(v.context,$)}l.debug(`getting stats for '${S}'...`);const{inputFileSystem:w}=t;let E;try{E=await d(w,S)}catch(e){}let P;if(E){if(E.isDirectory()){P="dir";l.debug(`determined '${S}' is a directory`)}else if(E.isFile()){P="file";l.debug(`determined '${S}' is a file`)}else{P="glob";l.debug(`determined '${S}' is unknown`)}}else{P="glob";l.debug(`determined '${S}' is a glob`)}const x={...{followSymbolicLinks:true},...v.globOptions||{},...{cwd:v.context,objectMode:true}};x.fs=w;let k;switch(P){case"dir":s.contextDependencies.add(S);l.debug(`added '${S}' as a context dependency`);v.context=S;k=n.posix.join(c.escapePath(o(n.resolve(S))),"**/*");S=n.join(S,"**/*");if(typeof x.dot==="undefined"){x.dot=true}break;case"file":s.fileDependencies.add(S);l.debug(`added '${S}' as a file dependency`);v.context=n.dirname(S);k=c.escapePath(o(n.resolve(S)));if(typeof x.dot==="undefined"){x.dot=true}break;case"glob":default:{const e=n.normalize(i(S));s.contextDependencies.add(e);l.debug(`added '${e}' as a context dependency`);k=n.isAbsolute(b)?b:n.posix.join(c.escapePath(o(n.resolve(v.context))),b)}}l.log(`begin globbing '${k}'...`);let R;try{R=await e(k,x)}catch(e){s.errors.push(e);return}if(R.length===0){if(v.noErrorOnMissing){l.log(`finished to process a pattern from '${$}' using '${v.context}' context to '${v.to}'`);return}const e=new Error(`unable to locate '${k}' glob`);s.errors.push(e);return}let C;try{C=await Promise.all(R.map((async e=>{if(!e.dirent.isFile()){return}if(v.filter){let t;try{t=await v.filter(e.path)}catch(e){s.errors.push(e);return}if(!t){l.log(`skip '${e.path}', because it was filtered`);return}}const i=e.path;l.debug(`found '${i}'`);const c=n.resolve(v.context,i);const d=typeof v.to==="function"?await v.to({context:v.context,absoluteFilename:c}):n.normalize(typeof v.to!=="undefined"?v.to:"");const m=v.toType?v.toType:h.test(d)?"template":n.extname(d)===""||d.slice(-1)===n.sep?"dir":"file";l.log(`'to' option '${d}' determinated as '${m}'`);const b=n.relative(v.context,c);let $=m==="dir"?n.join(d,b):d;if(n.isAbsolute($)){$=n.relative(t.options.output.path,$)}l.log(`determined that '${i}' should write to '${$}'`);const S=o(n.relative(t.context,c));if(P==="dir"||P==="glob"){s.fileDependencies.add(c);l.debug(`added '${c}' as a file dependency`)}let E;l.debug(`getting cache for '${c}'...`);try{E=await p.getPromise(`${S}|${y}`,null)}catch(e){s.errors.push(e);return}let x;if(E){l.debug(`found cache for '${c}'...`);let e;l.debug(`checking snapshot on valid for '${c}'...`);try{e=await CopyPlugin.checkSnapshotValid(s,E.snapshot)}catch(e){s.errors.push(e);return}if(e){l.debug(`snapshot for '${c}' is valid`);({source:x}=E)}else{l.debug(`snapshot for '${c}' is invalid`)}}else{l.debug(`missed cache for '${c}'`)}if(!x){const e=Date.now();l.debug(`reading '${c}'...`);let t;try{t=await f(w,c)}catch(e){s.errors.push(e);return}l.debug(`read '${c}'`);x=new g(t);let r;l.debug(`creating snapshot for '${c}'...`);try{r=await CopyPlugin.createSnapshot(s,e,c)}catch(e){s.errors.push(e);return}if(r){l.debug(`created snapshot for '${c}'`);l.debug(`storing cache for '${c}'...`);try{await p.storePromise(`${S}|${y}`,null,{source:x,snapshot:r})}catch(e){s.errors.push(e);return}l.debug(`stored cache for '${c}'`)}}if(v.transform){const e=typeof v.transform==="function"?{transformer:v.transform}:v.transform;if(e.transformer){l.log(`transforming content for '${c}'...`);const n=x.buffer();if(e.cache){const s=t.webpack&&t.webpack.util&&t.webpack.util.createHash?t.webpack.util.createHash("xxhash64"):r(6113).createHash("md4");const o={version:u,sourceFilename:S,transform:e.transformer,contentHash:s.update(n).digest("hex"),index:y};const i=`transform|${a(typeof e.cache==="boolean"?o:typeof e.cache.keys==="function"?await e.cache.keys(o,c):{...o,...e.cache.keys})}`;l.debug(`getting transformation cache for '${c}'...`);const f=p.getItemCache(i,p.getLazyHashedEtag(x));x=await f.getPromise();l.debug(x?`found transformation cache for '${c}'`:`no transformation cache for '${c}'`);if(!x){const t=await e.transformer(n,c);x=new g(t);l.debug(`caching transformation for '${c}'...`);await f.storePromise(x);l.debug(`cached transformation for '${c}'`)}}else{x=new g(await e.transformer(n,c))}}}let k=typeof v.info==="undefined"?{}:typeof v.info==="function"?v.info({absoluteFilename:c,sourceFilename:S,filename:$,toType:m})||{}:v.info||{};if(m==="template"){l.log(`interpolating template '${$}' for '${S}'...`);const e=CopyPlugin.getContentHash(t,s,x.buffer());const r=n.extname(S);const a=n.basename(S);const i=a.slice(0,a.length-r.length);const u={filename:o(n.relative(v.context,c)),contentHash:e,chunk:{name:i,id:S,hash:e}};const{path:f,info:d}=s.getPathWithInfo(o($),u);k={...k,...d};$=f;l.log(`interpolated template '${$}' for '${S}'`)}else{$=o($)}return{sourceFilename:S,absoluteFilename:c,filename:$,source:x,info:k,force:v.force}})))}catch(e){s.errors.push(e);return}if(C.length===0){if(v.noErrorOnMissing){l.log(`finished to process a pattern from '${$}' using '${v.context}' context to '${v.to}'`);return}const e=new Error(`unable to locate '${k}' glob after filtering paths`);s.errors.push(e);return}l.log(`finished to process a pattern from '${$}' using '${v.context}' context`);return C}apply(e){const t=this.constructor.name;e.hooks.thisCompilation.tap(t,(s=>{const i=s.getLogger("copy-webpack-plugin");const c=s.getCache("CopyWebpackPlugin");let l;s.hooks.processAssets.tapAsync({name:"copy-webpack-plugin",stage:e.webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL},(async(t,f)=>{if(typeof l==="undefined"){try{({globby:l}=await r.e(939).then(r.bind(r,1939)))}catch(e){f(e);return}}i.log("starting to add additional assets...");const d=new Map;const m=[];this.patterns.map(((t,r)=>m.push((async()=>{const f=typeof t==="string"?{from:t}:{...t};const p=typeof f.context==="undefined"?e.context:n.isAbsolute(f.context)?f.context:n.join(e.context,f.context);f.context=p;let m;try{m=await CopyPlugin.runPattern(l,e,s,i,c,f,r)}catch(e){s.errors.push(e);return}if(!m){return}let y=m.filter((e=>Boolean(e)));if(typeof f.transformAll!=="undefined"){if(typeof f.to==="undefined"){s.errors.push(new Error(`Invalid "pattern.to" for the "pattern.from": "${f.from}" and "pattern.transformAll" function. The "to" option must be specified.`));return}y.sort(((e,t)=>e.absoluteFilename>t.absoluteFilename?1:e.absoluteFilename<t.absoluteFilename?-1:0));const t=y.length===1?c.getLazyHashedEtag(y[0].source):y.reduce(((e,t,r)=>{e=c.mergeEtags(r===1?c.getLazyHashedEtag(e.source):e,c.getLazyHashedEtag(t.source));return e}));const r=c.getItemCache(`transformAll|${a({version:u,from:f.from,to:f.to,transformAll:f.transformAll})}`,t);let n=await r.getPromise();if(!n){n={filename:f.to};try{n.data=await f.transformAll(y.map((e=>({data:e.source.buffer(),sourceFilename:e.sourceFilename,absoluteFilename:e.absoluteFilename}))))}catch(e){s.errors.push(e);return}const t=typeof f.to==="function"?await f.to({context:p}):f.to;if(h.test(t)){const r=CopyPlugin.getContentHash(e,s,n.data);const{path:a,info:i}=s.getPathWithInfo(o(t),{contentHash:r,chunk:{id:"unknown-copied-asset",hash:r}});n.filename=a;n.info=i}const{RawSource:a}=e.webpack.sources;n.source=new a(n.data);n.force=f.force;await r.storePromise(n)}y=[n]}const g=f.priority||0;if(!d.has(g)){d.set(g,[])}d.get(g).push(...y)}))));await p(this.options.concurrency||100,m);const y=[...d.entries()].sort(((e,t)=>e[0]-t[0]));y.reduce(((e,t)=>e.concat(t[1])),[]).filter(Boolean).forEach((e=>{const{absoluteFilename:t,sourceFilename:r,filename:n,source:a,force:o}=e;const c=s.getAsset(n);if(c){if(o){const o={copied:true,sourceFilename:r};i.log(`force updating '${n}' from '${t}' to compilation assets, because it already exists...`);s.updateAsset(n,a,{...o,...e.info});i.log(`force updated '${n}' from '${t}' to compilation assets, because it already exists`);return}i.log(`skip adding '${n}' from '${t}' to compilation assets, because it already exists`);return}const u={copied:true,sourceFilename:r};i.log(`writing '${n}' from '${t}' to compilation assets...`);s.emitAsset(n,a,{...u,...e.info});i.log(`written '${n}' from '${t}' to compilation assets`)}));i.log("finished to adding additional assets");f()}));if(s.hooks.statsPrinter){s.hooks.statsPrinter.tap(t,(e=>{e.hooks.print.for("asset.info.copied").tap("copy-webpack-plugin",((e,{green:t,formatFlag:r})=>e?t(r("copied")):""))}))}}))}}e.exports=CopyPlugin},2129:function(e){"use strict";function stat(e,t){return new Promise(((r,n)=>{e.stat(t,((e,t)=>{if(e){n(e);return}r(t)}))}))}function readFile(e,t){return new Promise(((r,n)=>{e.readFile(t,((e,t)=>{if(e){n(e);return}r(t)}))}))}const t=Symbol(`not-settled`);function throttleAll(e,r){if(!Number.isInteger(e)||e<1){throw new TypeError(`Expected \`limit\` to be a finite number > 0, got \`${e}\` (${typeof e})`)}if(!Array.isArray(r)||!r.every((e=>typeof e===`function`))){throw new TypeError(`Expected \`tasks\` to be a list of functions returning a promise`)}return new Promise(((n,s)=>{const a=Array(r.length).fill(t);const o=r.entries();const next=()=>{const{done:e,value:r}=o.next();if(e){const e=!a.includes(t);if(e){n(a)}return}const[i,c]=r;const onFulfilled=e=>{a[i]=e;next()};c().then(onFulfilled,s)};Array(e).fill(0).forEach(next)}))}e.exports={stat:stat,readFile:readFile,throttleAll:throttleAll}},7447:function(e){"use strict";e.exports=function equal(e,t){if(e===t)return true;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return false;var r,n,s;if(Array.isArray(e)){r=e.length;if(r!=t.length)return false;for(n=r;n--!==0;)if(!equal(e[n],t[n]))return false;return true}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();s=Object.keys(e);r=s.length;if(r!==Object.keys(t).length)return false;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return false;for(n=r;n--!==0;){var a=s[n];if(!equal(e[a],t[a]))return false}return true}return e!==e&&t!==t}},3924:function(e,t,r){"use strict";const n=r(2291);const s=r(8620);const a=r(7900);const o=r(5407);const i=r(1066);const c=r(7190);const u=r(3828);async function FastGlob(e,t){assertPatternsInput(e);const r=getWorks(e,a.default,t);const n=await Promise.all(r);return u.array.flatten(n)}(function(e){function sync(e,t){assertPatternsInput(e);const r=getWorks(e,i.default,t);return u.array.flatten(r)}e.sync=sync;function stream(e,t){assertPatternsInput(e);const r=getWorks(e,o.default,t);return u.stream.merge(r)}e.stream=stream;function generateTasks(e,t){assertPatternsInput(e);const r=s.transform([].concat(e));const a=new c.default(t);return n.generate(r,a)}e.generateTasks=generateTasks;function isDynamicPattern(e,t){assertPatternsInput(e);const r=new c.default(t);return u.pattern.isDynamicPattern(e,r)}e.isDynamicPattern=isDynamicPattern;function escapePath(e){assertPatternsInput(e);return u.path.escape(e)}e.escapePath=escapePath})(FastGlob||(FastGlob={}));function getWorks(e,t,r){const a=s.transform([].concat(e));const o=new c.default(r);const i=n.generate(a,o);const u=new t(o);return i.map(u.read,u)}function assertPatternsInput(e){const t=[].concat(e);const r=t.every((e=>u.string.isString(e)&&!u.string.isEmpty(e)));if(!r){throw new TypeError("Patterns must be a string (non empty) or an array of strings")}}e.exports=FastGlob},8620:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.removeDuplicateSlashes=t.transform=void 0;const r=/(?!^)\/{2,}/g;function transform(e){return e.map((e=>removeDuplicateSlashes(e)))}t.transform=transform;function removeDuplicateSlashes(e){return e.replace(r,"/")}t.removeDuplicateSlashes=removeDuplicateSlashes},2291:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;const n=r(3828);function generate(e,t){const r=getPositivePatterns(e);const s=getNegativePatternsAsPositive(e,t.ignore);const a=r.filter((e=>n.pattern.isStaticPattern(e,t)));const o=r.filter((e=>n.pattern.isDynamicPattern(e,t)));const i=convertPatternsToTasks(a,s,false);const c=convertPatternsToTasks(o,s,true);return i.concat(c)}t.generate=generate;function convertPatternsToTasks(e,t,r){const s=[];const a=n.pattern.getPatternsOutsideCurrentDirectory(e);const o=n.pattern.getPatternsInsideCurrentDirectory(e);const i=groupPatternsByBaseDirectory(a);const c=groupPatternsByBaseDirectory(o);s.push(...convertPatternGroupsToTasks(i,t,r));if("."in c){s.push(convertPatternGroupToTask(".",o,t,r))}else{s.push(...convertPatternGroupsToTasks(c,t,r))}return s}t.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(e){return n.pattern.getPositivePatterns(e)}t.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(e,t){const r=n.pattern.getNegativePatterns(e).concat(t);const s=r.map(n.pattern.convertToPositivePattern);return s}t.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(e){const t={};return e.reduce(((e,t)=>{const r=n.pattern.getBaseDirectory(t);if(r in e){e[r].push(t)}else{e[r]=[t]}return e}),t)}t.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(e,t,r){return Object.keys(e).map((n=>convertPatternGroupToTask(n,e[n],t,r)))}t.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(e,t,r,s){return{dynamic:s,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(n.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=convertPatternGroupToTask},7900:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8075);const s=r(8845);class ProviderAsync extends s.default{constructor(){super(...arguments);this._reader=new n.default(this._settings)}read(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const n=[];return new Promise(((s,a)=>{const o=this.api(t,e,r);o.once("error",a);o.on("data",(e=>n.push(r.transform(e))));o.once("end",(()=>s(n)))}))}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t["default"]=ProviderAsync},4292:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3828);const s=r(5995);class DeepFilter{constructor(e,t){this._settings=e;this._micromatchOptions=t}getFilter(e,t,r){const n=this._getMatcher(t);const s=this._getNegativePatternsRe(r);return t=>this._filter(e,t,n,s)}_getMatcher(e){return new s.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){const t=e.filter(n.pattern.isAffectDepthOfReadingPattern);return n.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,r,s){if(this._isSkippedByDeep(e,t.path)){return false}if(this._isSkippedSymbolicLink(t)){return false}const a=n.path.removeLeadingDotSegment(t.path);if(this._isSkippedByPositivePatterns(a,r)){return false}return this._isSkippedByNegativePatterns(a,s)}_isSkippedByDeep(e,t){if(this._settings.deep===Infinity){return false}return this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){const r=t.split("/").length;if(e===""){return r}const n=e.split("/").length;return r-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!n.pattern.matchAny(e,t)}}t["default"]=DeepFilter},659:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3828);class EntryFilter{constructor(e,t){this._settings=e;this._micromatchOptions=t;this.index=new Map}getFilter(e,t){const r=n.pattern.convertPatternsToRe(e,this._micromatchOptions);const s=n.pattern.convertPatternsToRe(t,this._micromatchOptions);return e=>this._filter(e,r,s)}_filter(e,t,r){if(this._settings.unique&&this._isDuplicateEntry(e)){return false}if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)){return false}if(this._isSkippedByAbsoluteNegativePatterns(e.path,r)){return false}const n=this._settings.baseNameMatch?e.name:e.path;const s=this._isMatchToPatterns(n,t)&&!this._isMatchToPatterns(e.path,r);if(this._settings.unique&&s){this._createIndexRecord(e)}return s}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,undefined)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,t){if(!this._settings.absolute){return false}const r=n.path.makeAbsolute(this._settings.cwd,e);return n.pattern.matchAny(r,t)}_isMatchToPatterns(e,t){const r=n.path.removeLeadingDotSegment(e);return n.pattern.matchAny(r,t)||n.pattern.matchAny(r+"/",t)}}t["default"]=EntryFilter},9558:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3828);class ErrorFilter{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return n.errno.isEnoentCodeError(e)||this._settings.suppressErrors}}t["default"]=ErrorFilter},8302:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3828);class Matcher{constructor(e,t,r){this._patterns=e;this._settings=t;this._micromatchOptions=r;this._storage=[];this._fillStorage()}_fillStorage(){const e=n.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const t of e){const e=this._getPatternSegments(t);const r=this._splitSegmentsIntoSections(e);this._storage.push({complete:r.length<=1,pattern:t,segments:e,sections:r})}}_getPatternSegments(e){const t=n.pattern.getPatternParts(e,this._micromatchOptions);return t.map((e=>{const t=n.pattern.isDynamicPattern(e,this._settings);if(!t){return{dynamic:false,pattern:e}}return{dynamic:true,pattern:e,patternRe:n.pattern.makeRe(e,this._micromatchOptions)}}))}_splitSegmentsIntoSections(e){return n.array.splitWhen(e,(e=>e.dynamic&&n.pattern.hasGlobStar(e.pattern)))}}t["default"]=Matcher},5995:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8302);class PartialMatcher extends n.default{match(e){const t=e.split("/");const r=t.length;const n=this._storage.filter((e=>!e.complete||e.segments.length>r));for(const e of n){const n=e.sections[0];if(!e.complete&&r>n.length){return true}const s=t.every(((t,r)=>{const n=e.segments[r];if(n.dynamic&&n.patternRe.test(t)){return true}if(!n.dynamic&&n.pattern===t){return true}return false}));if(s){return true}}return false}}t["default"]=PartialMatcher},8845:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1017);const s=r(4292);const a=r(659);const o=r(9558);const i=r(8460);class Provider{constructor(e){this._settings=e;this.errorFilter=new o.default(this._settings);this.entryFilter=new a.default(this._settings,this._getMicromatchOptions());this.deepFilter=new s.default(this._settings,this._getMicromatchOptions());this.entryTransformer=new i.default(this._settings)}_getRootDirectory(e){return n.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){const t=e.base==="."?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:true,strictSlashes:false}}}t["default"]=Provider},5407:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2781);const s=r(8075);const a=r(8845);class ProviderStream extends a.default{constructor(){super(...arguments);this._reader=new s.default(this._settings)}read(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const s=this.api(t,e,r);const a=new n.Readable({objectMode:true,read:()=>{}});s.once("error",(e=>a.emit("error",e))).on("data",(e=>a.emit("data",r.transform(e)))).once("end",(()=>a.emit("end")));a.once("close",(()=>s.destroy()));return a}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t["default"]=ProviderStream},1066:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8110);const s=r(8845);class ProviderSync extends s.default{constructor(){super(...arguments);this._reader=new n.default(this._settings)}read(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const n=this.api(t,e,r);return n.map(r.transform)}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t["default"]=ProviderSync},8460:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3828);class EntryTransformer{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let t=e.path;if(this._settings.absolute){t=n.path.makeAbsolute(this._settings.cwd,t);t=n.path.unixify(t)}if(this._settings.markDirectories&&e.dirent.isDirectory()){t+="/"}if(!this._settings.objectMode){return t}return Object.assign(Object.assign({},e),{path:t})}}t["default"]=EntryTransformer},5906:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1017);const s=r(3645);const a=r(3828);class Reader{constructor(e){this._settings=e;this._fsStatSettings=new s.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return n.resolve(this._settings.cwd,e)}_makeEntry(e,t){const r={name:t,path:t,dirent:a.fs.createDirentFromStats(t,e)};if(this._settings.stats){r.stats=e}return r}_isFatalError(e){return!a.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}}t["default"]=Reader},8075:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2781);const s=r(3645);const a=r(4328);const o=r(5906);class ReaderStream extends o.default{constructor(){super(...arguments);this._walkStream=a.walkStream;this._stat=s.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){const r=e.map(this._getFullEntryPath,this);const s=new n.PassThrough({objectMode:true});s._write=(n,a,o)=>this._getEntry(r[n],e[n],t).then((e=>{if(e!==null&&t.entryFilter(e)){s.push(e)}if(n===r.length-1){s.end()}o()})).catch(o);for(let e=0;e<r.length;e++){s.write(e)}return s}_getEntry(e,t,r){return this._getStat(e).then((e=>this._makeEntry(e,t))).catch((e=>{if(r.errorFilter(e)){return null}throw e}))}_getStat(e){return new Promise(((t,r)=>{this._stat(e,this._fsStatSettings,((e,n)=>e===null?t(n):r(e)))}))}}t["default"]=ReaderStream},8110:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3645);const s=r(4328);const a=r(5906);class ReaderSync extends a.default{constructor(){super(...arguments);this._walkSync=s.walkSync;this._statSync=n.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){const r=[];for(const n of e){const e=this._getFullEntryPath(n);const s=this._getEntry(e,n,t);if(s===null||!t.entryFilter(s)){continue}r.push(s)}return r}_getEntry(e,t,r){try{const r=this._getStat(e);return this._makeEntry(r,t)}catch(e){if(r.errorFilter(e)){return null}throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}t["default"]=ReaderSync},7190:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const n=r(7147);const s=r(2037);const a=Math.max(s.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:n.lstat,lstatSync:n.lstatSync,stat:n.stat,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync};class Settings{constructor(e={}){this._options=e;this.absolute=this._getValue(this._options.absolute,false);this.baseNameMatch=this._getValue(this._options.baseNameMatch,false);this.braceExpansion=this._getValue(this._options.braceExpansion,true);this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,true);this.concurrency=this._getValue(this._options.concurrency,a);this.cwd=this._getValue(this._options.cwd,process.cwd());this.deep=this._getValue(this._options.deep,Infinity);this.dot=this._getValue(this._options.dot,false);this.extglob=this._getValue(this._options.extglob,true);this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,true);this.fs=this._getFileSystemMethods(this._options.fs);this.globstar=this._getValue(this._options.globstar,true);this.ignore=this._getValue(this._options.ignore,[]);this.markDirectories=this._getValue(this._options.markDirectories,false);this.objectMode=this._getValue(this._options.objectMode,false);this.onlyDirectories=this._getValue(this._options.onlyDirectories,false);this.onlyFiles=this._getValue(this._options.onlyFiles,true);this.stats=this._getValue(this._options.stats,false);this.suppressErrors=this._getValue(this._options.suppressErrors,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,false);this.unique=this._getValue(this._options.unique,true);if(this.onlyDirectories){this.onlyFiles=false}if(this.stats){this.objectMode=true}}_getValue(e,t){return e===undefined?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),e)}}t["default"]=Settings},5789:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitWhen=t.flatten=void 0;function flatten(e){return e.reduce(((e,t)=>[].concat(e,t)),[])}t.flatten=flatten;function splitWhen(e,t){const r=[[]];let n=0;for(const s of e){if(t(s)){n++;r[n]=[]}else{r[n].push(s)}}return r}t.splitWhen=splitWhen},886:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEnoentCodeError=void 0;function isEnoentCodeError(e){return e.code==="ENOENT"}t.isEnoentCodeError=isEnoentCodeError},9102:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDirentFromStats=void 0;class DirentFromStats{constructor(e,t){this.name=e;this.isBlockDevice=t.isBlockDevice.bind(t);this.isCharacterDevice=t.isCharacterDevice.bind(t);this.isDirectory=t.isDirectory.bind(t);this.isFIFO=t.isFIFO.bind(t);this.isFile=t.isFile.bind(t);this.isSocket=t.isSocket.bind(t);this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function createDirentFromStats(e,t){return new DirentFromStats(e,t)}t.createDirentFromStats=createDirentFromStats},3828:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;const n=r(5789);t.array=n;const s=r(886);t.errno=s;const a=r(9102);t.fs=a;const o=r(6462);t.path=o;const i=r(2256);t.pattern=i;const c=r(9941);t.stream=c;const u=r(5121);t.string=u},6462:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;const n=r(1017);const s=2;const a=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function unixify(e){return e.replace(/\\/g,"/")}t.unixify=unixify;function makeAbsolute(e,t){return n.resolve(e,t)}t.makeAbsolute=makeAbsolute;function escape(e){return e.replace(a,"\\$2")}t.escape=escape;function removeLeadingDotSegment(e){if(e.charAt(0)==="."){const t=e.charAt(1);if(t==="/"||t==="\\"){return e.slice(s)}}return e}t.removeLeadingDotSegment=removeLeadingDotSegment},2256:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;const n=r(1017);const s=r(5976);const a=r(1224);const o="**";const i="\\";const c=/[*?]|^!/;const u=/\[[^[]*]/;const l=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;const f=/[!*+?@]\([^(]*\)/;const d=/,|\.\./;function isStaticPattern(e,t={}){return!isDynamicPattern(e,t)}t.isStaticPattern=isStaticPattern;function isDynamicPattern(e,t={}){if(e===""){return false}if(t.caseSensitiveMatch===false||e.includes(i)){return true}if(c.test(e)||u.test(e)||l.test(e)){return true}if(t.extglob!==false&&f.test(e)){return true}if(t.braceExpansion!==false&&hasBraceExpansion(e)){return true}return false}t.isDynamicPattern=isDynamicPattern;function hasBraceExpansion(e){const t=e.indexOf("{");if(t===-1){return false}const r=e.indexOf("}",t+1);if(r===-1){return false}const n=e.slice(t,r);return d.test(n)}function convertToPositivePattern(e){return isNegativePattern(e)?e.slice(1):e}t.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(e){return"!"+e}t.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(e){return e.startsWith("!")&&e[1]!=="("}t.isNegativePattern=isNegativePattern;function isPositivePattern(e){return!isNegativePattern(e)}t.isPositivePattern=isPositivePattern;function getNegativePatterns(e){return e.filter(isNegativePattern)}t.getNegativePatterns=getNegativePatterns;function getPositivePatterns(e){return e.filter(isPositivePattern)}t.getPositivePatterns=getPositivePatterns;function getPatternsInsideCurrentDirectory(e){return e.filter((e=>!isPatternRelatedToParentDirectory(e)))}t.getPatternsInsideCurrentDirectory=getPatternsInsideCurrentDirectory;function getPatternsOutsideCurrentDirectory(e){return e.filter(isPatternRelatedToParentDirectory)}t.getPatternsOutsideCurrentDirectory=getPatternsOutsideCurrentDirectory;function isPatternRelatedToParentDirectory(e){return e.startsWith("..")||e.startsWith("./..")}t.isPatternRelatedToParentDirectory=isPatternRelatedToParentDirectory;function getBaseDirectory(e){return s(e,{flipBackslashes:false})}t.getBaseDirectory=getBaseDirectory;function hasGlobStar(e){return e.includes(o)}t.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(e){return e.endsWith("/"+o)}t.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(e){const t=n.basename(e);return endsWithSlashGlobStar(e)||isStaticPattern(t)}t.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function expandPatternsWithBraceExpansion(e){return e.reduce(((e,t)=>e.concat(expandBraceExpansion(t))),[])}t.expandPatternsWithBraceExpansion=expandPatternsWithBraceExpansion;function expandBraceExpansion(e){return a.braces(e,{expand:true,nodupes:true})}t.expandBraceExpansion=expandBraceExpansion;function getPatternParts(e,t){let{parts:r}=a.scan(e,Object.assign(Object.assign({},t),{parts:true}));if(r.length===0){r=[e]}if(r[0].startsWith("/")){r[0]=r[0].slice(1);r.unshift("")}return r}t.getPatternParts=getPatternParts;function makeRe(e,t){return a.makeRe(e,t)}t.makeRe=makeRe;function convertPatternsToRe(e,t){return e.map((e=>makeRe(e,t)))}t.convertPatternsToRe=convertPatternsToRe;function matchAny(e,t){return t.some((t=>t.test(e)))}t.matchAny=matchAny},9941:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.merge=void 0;const n=r(1382);function merge(e){const t=n(e);e.forEach((e=>{e.once("error",(e=>t.emit("error",e)))}));t.once("close",(()=>propagateCloseEventToSources(e)));t.once("end",(()=>propagateCloseEventToSources(e)));return t}t.merge=merge;function propagateCloseEventToSources(e){e.forEach((e=>e.emit("close")))}},5121:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmpty=t.isString=void 0;function isString(e){return typeof e==="string"}t.isString=isString;function isEmpty(e){return e===""}t.isEmpty=isEmpty},4241:function(e,t,r){"use strict";var n=r(1816);function fastqueue(e,t,r){if(typeof e==="function"){r=t;t=e;e=null}if(r<1){throw new Error("fastqueue concurrency must be greater than 1")}var s=n(Task);var a=null;var o=null;var i=0;var c=null;var u={push:push,drain:noop,saturated:noop,pause:pause,paused:false,concurrency:r,running:running,resume:resume,idle:idle,length:length,getQueue:getQueue,unshift:unshift,empty:noop,kill:kill,killAndDrain:killAndDrain,error:error};return u;function running(){return i}function pause(){u.paused=true}function length(){var e=a;var t=0;while(e){e=e.next;t++}return t}function getQueue(){var e=a;var t=[];while(e){t.push(e.value);e=e.next}return t}function resume(){if(!u.paused)return;u.paused=false;for(var e=0;e<u.concurrency;e++){i++;release()}}function idle(){return i===0&&u.length()===0}function push(r,n){var l=s.get();l.context=e;l.release=release;l.value=r;l.callback=n||noop;l.errorHandler=c;if(i===u.concurrency||u.paused){if(o){o.next=l;o=l}else{a=l;o=l;u.saturated()}}else{i++;t.call(e,l.value,l.worked)}}function unshift(r,n){var c=s.get();c.context=e;c.release=release;c.value=r;c.callback=n||noop;if(i===u.concurrency||u.paused){if(a){c.next=a;a=c}else{a=c;o=c;u.saturated()}}else{i++;t.call(e,c.value,c.worked)}}function release(r){if(r){s.release(r)}var n=a;if(n){if(!u.paused){if(o===a){o=null}a=n.next;n.next=null;t.call(e,n.value,n.worked);if(o===null){u.empty()}}else{i--}}else if(--i===0){u.drain()}}function kill(){a=null;o=null;u.drain=noop}function killAndDrain(){a=null;o=null;u.drain();u.drain=noop}function error(e){c=e}}function noop(){}function Task(){this.value=null;this.callback=noop;this.next=null;this.release=noop;this.context=null;this.errorHandler=null;var e=this;this.worked=function worked(t,r){var n=e.callback;var s=e.errorHandler;var a=e.value;e.value=null;e.callback=noop;if(e.errorHandler){s(t,a)}n.call(e.context,t,r);e.release(e)}}function queueAsPromised(e,t,r){if(typeof e==="function"){r=t;t=e;e=null}function asyncWrapper(e,r){t.call(this,e).then((function(e){r(null,e)}),r)}var n=fastqueue(e,asyncWrapper,r);var s=n.push;var a=n.unshift;n.push=push;n.unshift=unshift;n.drained=drained;return n;function push(e){var t=new Promise((function(t,r){s(e,(function(e,n){if(e){r(e);return}t(n)}))}));t.catch(noop);return t}function unshift(e){var t=new Promise((function(t,r){a(e,(function(e,n){if(e){r(e);return}t(n)}))}));t.catch(noop);return t}function drained(){var e=n.drain;var t=new Promise((function(t){n.drain=function(){e();t()}}));return t}}e.exports=fastqueue;e.exports.promise=queueAsPromised},442:function(e,t,r){"use strict";
8
8
  /*!
9
9
  * fill-range <https://github.com/jonschlinkert/fill-range>
10
10
  *
11
11
  * Copyright (c) 2014-present, Jon Schlinkert.
12
12
  * Licensed under the MIT License.
13
- */const n=r(3837);const s=r(954);const isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const transform=e=>t=>e===true?Number(t):String(t);const isValidValue=e=>typeof e==="number"||typeof e==="string"&&e!=="";const isNumber=e=>Number.isInteger(+e);const zeros=e=>{let t=`${e}`;let r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++r]==="0");return r>0};const stringify=(e,t,r)=>{if(typeof e==="string"||typeof t==="string"){return true}return r.stringify===true};const pad=(e,t,r)=>{if(t>0){let r=e[0]==="-"?"-":"";if(r)e=e.slice(1);e=r+e.padStart(r?t-1:t,"0")}if(r===false){return String(e)}return e};const toMaxLen=(e,t)=>{let r=e[0]==="-"?"-":"";if(r){e=e.slice(1);t--}while(e.length<t)e="0"+e;return r?"-"+e:e};const toSequence=(e,t)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0));e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let r=t.capture?"":"?:";let n="";let s="";let a;if(e.positives.length){n=e.positives.join("|")}if(e.negatives.length){s=`-(${r}${e.negatives.join("|")})`}if(n&&s){a=`${n}|${s}`}else{a=n||s}if(t.wrap){return`(${r}${a})`}return a};const toRange=(e,t,r,n)=>{if(r){return s(e,t,{wrap:false,...n})}let a=String.fromCharCode(e);if(e===t)return a;let o=String.fromCharCode(t);return`[${a}-${o}]`};const toRegex=(e,t,r)=>{if(Array.isArray(e)){let t=r.wrap===true;let n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return s(e,t,r)};const rangeError=(...e)=>new RangeError("Invalid range arguments: "+n.inspect(...e));const invalidRange=(e,t,r)=>{if(r.strictRanges===true)throw rangeError([e,t]);return[]};const invalidStep=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const fillNumbers=(e,t,r=1,n={})=>{let s=Number(e);let a=Number(t);if(!Number.isInteger(s)||!Number.isInteger(a)){if(n.strictRanges===true)throw rangeError([e,t]);return[]}if(s===0)s=0;if(a===0)a=0;let o=s>a;let i=String(e);let c=String(t);let u=String(r);r=Math.max(Math.abs(r),1);let l=zeros(i)||zeros(c)||zeros(u);let f=l?Math.max(i.length,c.length,u.length):0;let d=l===false&&stringify(e,t,n)===false;let p=n.transform||transform(d);if(n.toRegex&&r===1){return toRange(toMaxLen(e,f),toMaxLen(t,f),true,n)}let h={negatives:[],positives:[]};let push=e=>h[e<0?"negatives":"positives"].push(Math.abs(e));let m=[];let y=0;while(o?s>=a:s<=a){if(n.toRegex===true&&r>1){push(s)}else{m.push(pad(p(s,y),f,d))}s=o?s-r:s+r;y++}if(n.toRegex===true){return r>1?toSequence(h,n):toRegex(m,null,{wrap:false,...n})}return m};const fillLetters=(e,t,r=1,n={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1){return invalidRange(e,t,n)}let s=n.transform||(e=>String.fromCharCode(e));let a=`${e}`.charCodeAt(0);let o=`${t}`.charCodeAt(0);let i=a>o;let c=Math.min(a,o);let u=Math.max(a,o);if(n.toRegex&&r===1){return toRange(c,u,false,n)}let l=[];let f=0;while(i?a>=o:a<=o){l.push(s(a,f));a=i?a-r:a+r;f++}if(n.toRegex===true){return toRegex(l,null,{wrap:false,options:n})}return l};const fill=(e,t,r,n={})=>{if(t==null&&isValidValue(e)){return[e]}if(!isValidValue(e)||!isValidValue(t)){return invalidRange(e,t,n)}if(typeof r==="function"){return fill(e,t,1,{transform:r})}if(isObject(r)){return fill(e,t,0,r)}let s={...n};if(s.capture===true)s.wrap=true;r=r||s.step||1;if(!isNumber(r)){if(r!=null&&!isObject(r))return invalidStep(r,s);return fill(e,t,1,r)}if(isNumber(e)&&isNumber(t)){return fillNumbers(e,t,r,s)}return fillLetters(e,t,Math.max(Math.abs(r),1),s)};e.exports=fill},3584:function(e,t,r){"use strict";var n=r(6600);var s=r(1017).posix.dirname;var a=r(2037).platform()==="win32";var o="/";var i=/\\/g;var c=/[\{\[].*[\}\]]$/;var u=/(^|[^\\])([\{\[]|\([^\)]+$)/;var l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function globParent(e,t){var r=Object.assign({flipBackslashes:true},t);if(r.flipBackslashes&&a&&e.indexOf(o)<0){e=e.replace(i,o)}if(c.test(e)){e+=o}e+="a";do{e=s(e)}while(n(e)||u.test(e));return e.replace(l,"$1")}},8900:function(e,t,r){"use strict";var n=r(6600);var s=r(1017).posix.dirname;var a=r(2037).platform()==="win32";var o="/";var i=/\\/g;var c=/\\([!*?|[\](){}])/g;e.exports=function globParent(e,t){var r=Object.assign({flipBackslashes:true},t);if(r.flipBackslashes&&a&&e.indexOf(o)<0){e=e.replace(i,o)}if(isEnclosure(e)){e+=o}e+="a";do{e=s(e)}while(isGlobby(e));return e.replace(c,"$1")};function isEnclosure(e){var t=e.slice(-1);var r;switch(t){case"}":r="{";break;case"]":r="[";break;default:return false}var n=e.indexOf(r);if(n<0){return false}return e.slice(n+1,-1).includes(o)}function isGlobby(e){if(/\([^()]+$/.test(e)){return true}if(e[0]==="{"||e[0]==="["){return true}if(/[^\\][{[]/.test(e)){return true}return n(e)}},9138:function(e){
13
+ */const n=r(3837);const s=r(211);const isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const transform=e=>t=>e===true?Number(t):String(t);const isValidValue=e=>typeof e==="number"||typeof e==="string"&&e!=="";const isNumber=e=>Number.isInteger(+e);const zeros=e=>{let t=`${e}`;let r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++r]==="0");return r>0};const stringify=(e,t,r)=>{if(typeof e==="string"||typeof t==="string"){return true}return r.stringify===true};const pad=(e,t,r)=>{if(t>0){let r=e[0]==="-"?"-":"";if(r)e=e.slice(1);e=r+e.padStart(r?t-1:t,"0")}if(r===false){return String(e)}return e};const toMaxLen=(e,t)=>{let r=e[0]==="-"?"-":"";if(r){e=e.slice(1);t--}while(e.length<t)e="0"+e;return r?"-"+e:e};const toSequence=(e,t)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0));e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let r=t.capture?"":"?:";let n="";let s="";let a;if(e.positives.length){n=e.positives.join("|")}if(e.negatives.length){s=`-(${r}${e.negatives.join("|")})`}if(n&&s){a=`${n}|${s}`}else{a=n||s}if(t.wrap){return`(${r}${a})`}return a};const toRange=(e,t,r,n)=>{if(r){return s(e,t,{wrap:false,...n})}let a=String.fromCharCode(e);if(e===t)return a;let o=String.fromCharCode(t);return`[${a}-${o}]`};const toRegex=(e,t,r)=>{if(Array.isArray(e)){let t=r.wrap===true;let n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return s(e,t,r)};const rangeError=(...e)=>new RangeError("Invalid range arguments: "+n.inspect(...e));const invalidRange=(e,t,r)=>{if(r.strictRanges===true)throw rangeError([e,t]);return[]};const invalidStep=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const fillNumbers=(e,t,r=1,n={})=>{let s=Number(e);let a=Number(t);if(!Number.isInteger(s)||!Number.isInteger(a)){if(n.strictRanges===true)throw rangeError([e,t]);return[]}if(s===0)s=0;if(a===0)a=0;let o=s>a;let i=String(e);let c=String(t);let u=String(r);r=Math.max(Math.abs(r),1);let l=zeros(i)||zeros(c)||zeros(u);let f=l?Math.max(i.length,c.length,u.length):0;let d=l===false&&stringify(e,t,n)===false;let p=n.transform||transform(d);if(n.toRegex&&r===1){return toRange(toMaxLen(e,f),toMaxLen(t,f),true,n)}let h={negatives:[],positives:[]};let push=e=>h[e<0?"negatives":"positives"].push(Math.abs(e));let m=[];let y=0;while(o?s>=a:s<=a){if(n.toRegex===true&&r>1){push(s)}else{m.push(pad(p(s,y),f,d))}s=o?s-r:s+r;y++}if(n.toRegex===true){return r>1?toSequence(h,n):toRegex(m,null,{wrap:false,...n})}return m};const fillLetters=(e,t,r=1,n={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1){return invalidRange(e,t,n)}let s=n.transform||(e=>String.fromCharCode(e));let a=`${e}`.charCodeAt(0);let o=`${t}`.charCodeAt(0);let i=a>o;let c=Math.min(a,o);let u=Math.max(a,o);if(n.toRegex&&r===1){return toRange(c,u,false,n)}let l=[];let f=0;while(i?a>=o:a<=o){l.push(s(a,f));a=i?a-r:a+r;f++}if(n.toRegex===true){return toRegex(l,null,{wrap:false,options:n})}return l};const fill=(e,t,r,n={})=>{if(t==null&&isValidValue(e)){return[e]}if(!isValidValue(e)||!isValidValue(t)){return invalidRange(e,t,n)}if(typeof r==="function"){return fill(e,t,1,{transform:r})}if(isObject(r)){return fill(e,t,0,r)}let s={...n};if(s.capture===true)s.wrap=true;r=r||s.step||1;if(!isNumber(r)){if(r!=null&&!isObject(r))return invalidStep(r,s);return fill(e,t,1,r)}if(isNumber(e)&&isNumber(t)){return fillNumbers(e,t,r,s)}return fillLetters(e,t,Math.max(Math.abs(r),1),s)};e.exports=fill},5976:function(e,t,r){"use strict";var n=r(6654);var s=r(1017).posix.dirname;var a=r(2037).platform()==="win32";var o="/";var i=/\\/g;var c=/[\{\[].*[\}\]]$/;var u=/(^|[^\\])([\{\[]|\([^\)]+$)/;var l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function globParent(e,t){var r=Object.assign({flipBackslashes:true},t);if(r.flipBackslashes&&a&&e.indexOf(o)<0){e=e.replace(i,o)}if(c.test(e)){e+=o}e+="a";do{e=s(e)}while(n(e)||u.test(e));return e.replace(l,"$1")}},5677:function(e,t,r){"use strict";var n=r(6654);var s=r(1017).posix.dirname;var a=r(2037).platform()==="win32";var o="/";var i=/\\/g;var c=/\\([!*?|[\](){}])/g;e.exports=function globParent(e,t){var r=Object.assign({flipBackslashes:true},t);if(r.flipBackslashes&&a&&e.indexOf(o)<0){e=e.replace(i,o)}if(isEnclosure(e)){e+=o}e+="a";do{e=s(e)}while(isGlobby(e));return e.replace(c,"$1")};function isEnclosure(e){var t=e.slice(-1);var r;switch(t){case"}":r="{";break;case"]":r="[";break;default:return false}var n=e.indexOf(r);if(n<0){return false}return e.slice(n+1,-1).includes(o)}function isGlobby(e){if(/\([^()]+$/.test(e)){return true}if(e[0]==="{"||e[0]==="["){return true}if(/[^\\][{[]/.test(e)){return true}return n(e)}},3071:function(e){
14
14
  /*!
15
15
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
16
16
  *
17
17
  * Copyright (c) 2014-2016, Jon Schlinkert.
18
18
  * Licensed under the MIT License.
19
19
  */
20
- e.exports=function isExtglob(e){if(typeof e!=="string"||e===""){return false}var t;while(t=/(\\).|([@?!+*]\(.*\))/g.exec(e)){if(t[2])return true;e=e.slice(t.index+t[0].length)}return false}},6600:function(e,t,r){
20
+ e.exports=function isExtglob(e){if(typeof e!=="string"||e===""){return false}var t;while(t=/(\\).|([@?!+*]\(.*\))/g.exec(e)){if(t[2])return true;e=e.slice(t.index+t[0].length)}return false}},6654:function(e,t,r){
21
21
  /*!
22
22
  * is-glob <https://github.com/jonschlinkert/is-glob>
23
23
  *
24
24
  * Copyright (c) 2014-2017, Jon Schlinkert.
25
25
  * Released under the MIT License.
26
26
  */
27
- var n=r(9138);var s={"{":"}","(":")","[":"]"};var strictCheck=function(e){if(e[0]==="!"){return true}var t=0;var r=-2;var n=-2;var a=-2;var o=-2;var i=-2;while(t<e.length){if(e[t]==="*"){return true}if(e[t+1]==="?"&&/[\].+)]/.test(e[t])){return true}if(n!==-1&&e[t]==="["&&e[t+1]!=="]"){if(n<t){n=e.indexOf("]",t)}if(n>t){if(i===-1||i>n){return true}i=e.indexOf("\\",t);if(i===-1||i>n){return true}}}if(a!==-1&&e[t]==="{"&&e[t+1]!=="}"){a=e.indexOf("}",t);if(a>t){i=e.indexOf("\\",t);if(i===-1||i>a){return true}}}if(o!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"){o=e.indexOf(")",t);if(o>t){i=e.indexOf("\\",t);if(i===-1||i>o){return true}}}if(r!==-1&&e[t]==="("&&e[t+1]!=="|"){if(r<t){r=e.indexOf("|",t)}if(r!==-1&&e[r+1]!==")"){o=e.indexOf(")",r);if(o>r){i=e.indexOf("\\",r);if(i===-1||i>o){return true}}}}if(e[t]==="\\"){var c=e[t+1];t+=2;var u=s[c];if(u){var l=e.indexOf(u,t);if(l!==-1){t=l+1}}if(e[t]==="!"){return true}}else{t++}}return false};var relaxedCheck=function(e){if(e[0]==="!"){return true}var t=0;while(t<e.length){if(/[*?{}()[\]]/.test(e[t])){return true}if(e[t]==="\\"){var r=e[t+1];t+=2;var n=s[r];if(n){var a=e.indexOf(n,t);if(a!==-1){t=a+1}}if(e[t]==="!"){return true}}else{t++}}return false};e.exports=function isGlob(e,t){if(typeof e!=="string"||e===""){return false}if(n(e)){return true}var r=strictCheck;if(t&&t.strict===false){r=relaxedCheck}return r(e)}},8224:function(e){"use strict";
27
+ var n=r(3071);var s={"{":"}","(":")","[":"]"};var strictCheck=function(e){if(e[0]==="!"){return true}var t=0;var r=-2;var n=-2;var a=-2;var o=-2;var i=-2;while(t<e.length){if(e[t]==="*"){return true}if(e[t+1]==="?"&&/[\].+)]/.test(e[t])){return true}if(n!==-1&&e[t]==="["&&e[t+1]!=="]"){if(n<t){n=e.indexOf("]",t)}if(n>t){if(i===-1||i>n){return true}i=e.indexOf("\\",t);if(i===-1||i>n){return true}}}if(a!==-1&&e[t]==="{"&&e[t+1]!=="}"){a=e.indexOf("}",t);if(a>t){i=e.indexOf("\\",t);if(i===-1||i>a){return true}}}if(o!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"){o=e.indexOf(")",t);if(o>t){i=e.indexOf("\\",t);if(i===-1||i>o){return true}}}if(r!==-1&&e[t]==="("&&e[t+1]!=="|"){if(r<t){r=e.indexOf("|",t)}if(r!==-1&&e[r+1]!==")"){o=e.indexOf(")",r);if(o>r){i=e.indexOf("\\",r);if(i===-1||i>o){return true}}}}if(e[t]==="\\"){var c=e[t+1];t+=2;var u=s[c];if(u){var l=e.indexOf(u,t);if(l!==-1){t=l+1}}if(e[t]==="!"){return true}}else{t++}}return false};var relaxedCheck=function(e){if(e[0]==="!"){return true}var t=0;while(t<e.length){if(/[*?{}()[\]]/.test(e[t])){return true}if(e[t]==="\\"){var r=e[t+1];t+=2;var n=s[r];if(n){var a=e.indexOf(n,t);if(a!==-1){t=a+1}}if(e[t]==="!"){return true}}else{t++}}return false};e.exports=function isGlob(e,t){if(typeof e!=="string"||e===""){return false}if(n(e)){return true}var r=strictCheck;if(t&&t.strict===false){r=relaxedCheck}return r(e)}},8387:function(e){"use strict";
28
28
  /*!
29
29
  * is-number <https://github.com/jonschlinkert/is-number>
30
30
  *
31
31
  * Copyright (c) 2014-present, Jon Schlinkert.
32
32
  * Released under the MIT License.
33
- */e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},8117:function(e){"use strict";var t=e.exports=function(e,t,r){if(typeof t=="function"){r=t;t={}}r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){};var s=r.post||function(){};_traverse(t,n,s,e,"",e)};t.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true,if:true,then:true,else:true};t.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};t.propsKeywords={$defs:true,definitions:true,properties:true,patternProperties:true,dependencies:true};t.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,r,n,s,a,o,i,c,u,l){if(s&&typeof s=="object"&&!Array.isArray(s)){r(s,a,o,i,c,u,l);for(var f in s){var d=s[f];if(Array.isArray(d)){if(f in t.arrayKeywords){for(var p=0;p<d.length;p++)_traverse(e,r,n,d[p],a+"/"+f+"/"+p,o,a,f,s,p)}}else if(f in t.propsKeywords){if(d&&typeof d=="object"){for(var h in d)_traverse(e,r,n,d[h],a+"/"+f+"/"+escapeJsonPtr(h),o,a,f,s,h)}}else if(f in t.keywords||e.allKeys&&!(f in t.skipKeywords)){_traverse(e,r,n,d,a+"/"+f,o,a,f,s)}}n(s,a,o,i,c,u,l)}}function escapeJsonPtr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}},3891:function(e,t,r){"use strict";const n=r(2781);const s=n.PassThrough;const a=Array.prototype.slice;e.exports=merge2;function merge2(){const e=[];const t=a.call(arguments);let r=false;let n=t[t.length-1];if(n&&!Array.isArray(n)&&n.pipe==null){t.pop()}else{n={}}const o=n.end!==false;const i=n.pipeError===true;if(n.objectMode==null){n.objectMode=true}if(n.highWaterMark==null){n.highWaterMark=64*1024}const c=s(n);function addStream(){for(let t=0,r=arguments.length;t<r;t++){e.push(pauseStreams(arguments[t],n))}mergeStream();return this}function mergeStream(){if(r){return}r=true;let t=e.shift();if(!t){process.nextTick(endStream);return}if(!Array.isArray(t)){t=[t]}let n=t.length+1;function next(){if(--n>0){return}r=false;mergeStream()}function pipe(e){function onend(){e.removeListener("merge2UnpipeEnd",onend);e.removeListener("end",onend);if(i){e.removeListener("error",onerror)}next()}function onerror(e){c.emit("error",e)}if(e._readableState.endEmitted){return next()}e.on("merge2UnpipeEnd",onend);e.on("end",onend);if(i){e.on("error",onerror)}e.pipe(c,{end:false});e.resume()}for(let e=0;e<t.length;e++){pipe(t[e])}next()}function endStream(){r=false;c.emit("queueDrain");if(o){c.end()}}c.setMaxListeners(0);c.add=addStream;c.on("unpipe",(function(e){e.emit("merge2UnpipeEnd")}));if(t.length){addStream.apply(null,t)}return c}function pauseStreams(e,t){if(!Array.isArray(e)){if(!e._readableState&&e.pipe){e=e.pipe(s(t))}if(!e._readableState||!e.pause||!e.pipe){throw new Error("Only readable stream can be merged.")}e.pause()}else{for(let r=0,n=e.length;r<n;r++){e[r]=pauseStreams(e[r],t)}}return e}},3705:function(e,t,r){"use strict";const n=r(3837);const s=r(2670);const a=r(7721);const o=r(5218);const isEmptyString=e=>e===""||e==="./";const micromatch=(e,t,r)=>{t=[].concat(t);e=[].concat(e);let n=new Set;let s=new Set;let o=new Set;let i=0;let onResult=e=>{o.add(e.output);if(r&&r.onResult){r.onResult(e)}};for(let o=0;o<t.length;o++){let c=a(String(t[o]),{...r,onResult:onResult},true);let u=c.state.negated||c.state.negatedExtglob;if(u)i++;for(let t of e){let e=c(t,true);let r=u?!e.isMatch:e.isMatch;if(!r)continue;if(u){n.add(e.output)}else{n.delete(e.output);s.add(e.output)}}}let c=i===t.length?[...o]:[...s];let u=c.filter((e=>!n.has(e)));if(r&&u.length===0){if(r.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return u};micromatch.match=micromatch;micromatch.matcher=(e,t)=>a(e,t);micromatch.isMatch=(e,t,r)=>a(t,r)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set;let s=[];let onResult=e=>{if(r.onResult)r.onResult(e);s.push(e.output)};let a=micromatch(e,t,{...r,onResult:onResult});for(let e of s){if(!a.includes(e)){n.add(e)}}return[...n]};micromatch.contains=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,r)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...r,contains:true})};micromatch.matchKeys=(e,t,r)=>{if(!o.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let n=micromatch(Object.keys(e),t,r);let s={};for(let t of n)s[t]=e[t];return s};micromatch.some=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),r);if(n.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),r);if(!n.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.inspect(e)}"`)}return[].concat(t).every((t=>a(t,r)(e)))};micromatch.capture=(e,t,r)=>{let n=o.isWindows(r);let s=a.makeRe(String(e),{...r,capture:true});let i=s.exec(n?o.toPosixSlashes(t):t);if(i){return i.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>a.makeRe(...e);micromatch.scan=(...e)=>a.scan(...e);micromatch.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[])){for(let e of s(String(n),t)){r.push(a.parse(e,t))}}return r};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return s(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},2422:function(e){
33
+ */e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},7243:function(e){"use strict";var t=e.exports=function(e,t,r){if(typeof t=="function"){r=t;t={}}r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){};var s=r.post||function(){};_traverse(t,n,s,e,"",e)};t.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true,if:true,then:true,else:true};t.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};t.propsKeywords={$defs:true,definitions:true,properties:true,patternProperties:true,dependencies:true};t.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,r,n,s,a,o,i,c,u,l){if(s&&typeof s=="object"&&!Array.isArray(s)){r(s,a,o,i,c,u,l);for(var f in s){var d=s[f];if(Array.isArray(d)){if(f in t.arrayKeywords){for(var p=0;p<d.length;p++)_traverse(e,r,n,d[p],a+"/"+f+"/"+p,o,a,f,s,p)}}else if(f in t.propsKeywords){if(d&&typeof d=="object"){for(var h in d)_traverse(e,r,n,d[h],a+"/"+f+"/"+escapeJsonPtr(h),o,a,f,s,h)}}else if(f in t.keywords||e.allKeys&&!(f in t.skipKeywords)){_traverse(e,r,n,d,a+"/"+f,o,a,f,s)}}n(s,a,o,i,c,u,l)}}function escapeJsonPtr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}},1382:function(e,t,r){"use strict";const n=r(2781);const s=n.PassThrough;const a=Array.prototype.slice;e.exports=merge2;function merge2(){const e=[];const t=a.call(arguments);let r=false;let n=t[t.length-1];if(n&&!Array.isArray(n)&&n.pipe==null){t.pop()}else{n={}}const o=n.end!==false;const i=n.pipeError===true;if(n.objectMode==null){n.objectMode=true}if(n.highWaterMark==null){n.highWaterMark=64*1024}const c=s(n);function addStream(){for(let t=0,r=arguments.length;t<r;t++){e.push(pauseStreams(arguments[t],n))}mergeStream();return this}function mergeStream(){if(r){return}r=true;let t=e.shift();if(!t){process.nextTick(endStream);return}if(!Array.isArray(t)){t=[t]}let n=t.length+1;function next(){if(--n>0){return}r=false;mergeStream()}function pipe(e){function onend(){e.removeListener("merge2UnpipeEnd",onend);e.removeListener("end",onend);if(i){e.removeListener("error",onerror)}next()}function onerror(e){c.emit("error",e)}if(e._readableState.endEmitted){return next()}e.on("merge2UnpipeEnd",onend);e.on("end",onend);if(i){e.on("error",onerror)}e.pipe(c,{end:false});e.resume()}for(let e=0;e<t.length;e++){pipe(t[e])}next()}function endStream(){r=false;c.emit("queueDrain");if(o){c.end()}}c.setMaxListeners(0);c.add=addStream;c.on("unpipe",(function(e){e.emit("merge2UnpipeEnd")}));if(t.length){addStream.apply(null,t)}return c}function pauseStreams(e,t){if(!Array.isArray(e)){if(!e._readableState&&e.pipe){e=e.pipe(s(t))}if(!e._readableState||!e.pause||!e.pipe){throw new Error("Only readable stream can be merged.")}e.pause()}else{for(let r=0,n=e.length;r<n;r++){e[r]=pauseStreams(e[r],t)}}return e}},1224:function(e,t,r){"use strict";const n=r(3837);const s=r(1570);const a=r(376);const o=r(8658);const isEmptyString=e=>e===""||e==="./";const micromatch=(e,t,r)=>{t=[].concat(t);e=[].concat(e);let n=new Set;let s=new Set;let o=new Set;let i=0;let onResult=e=>{o.add(e.output);if(r&&r.onResult){r.onResult(e)}};for(let o=0;o<t.length;o++){let c=a(String(t[o]),{...r,onResult:onResult},true);let u=c.state.negated||c.state.negatedExtglob;if(u)i++;for(let t of e){let e=c(t,true);let r=u?!e.isMatch:e.isMatch;if(!r)continue;if(u){n.add(e.output)}else{n.delete(e.output);s.add(e.output)}}}let c=i===t.length?[...o]:[...s];let u=c.filter((e=>!n.has(e)));if(r&&u.length===0){if(r.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return u};micromatch.match=micromatch;micromatch.matcher=(e,t)=>a(e,t);micromatch.isMatch=(e,t,r)=>a(t,r)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set;let s=[];let onResult=e=>{if(r.onResult)r.onResult(e);s.push(e.output)};let a=micromatch(e,t,{...r,onResult:onResult});for(let e of s){if(!a.includes(e)){n.add(e)}}return[...n]};micromatch.contains=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,r)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...r,contains:true})};micromatch.matchKeys=(e,t,r)=>{if(!o.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let n=micromatch(Object.keys(e),t,r);let s={};for(let t of n)s[t]=e[t];return s};micromatch.some=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),r);if(n.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=a(String(e),r);if(!n.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.inspect(e)}"`)}return[].concat(t).every((t=>a(t,r)(e)))};micromatch.capture=(e,t,r)=>{let n=o.isWindows(r);let s=a.makeRe(String(e),{...r,capture:true});let i=s.exec(n?o.toPosixSlashes(t):t);if(i){return i.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>a.makeRe(...e);micromatch.scan=(...e)=>a.scan(...e);micromatch.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[])){for(let e of s(String(n),t)){r.push(a.parse(e,t))}}return r};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return s(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},498:function(e){
34
34
  /*!
35
35
  * normalize-path <https://github.com/jonschlinkert/normalize-path>
36
36
  *
37
37
  * Copyright (c) 2014-2018, Jon Schlinkert.
38
38
  * Released under the MIT License.
39
39
  */
40
- e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("expected path to be a string")}if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&e[3]==="\\"){var s=e[2];if((s==="?"||s===".")&&e.slice(0,2)==="\\\\"){e=e.slice(2);n="//"}}var a=e.split(/[/\\]+/);if(t!==false&&a[a.length-1]===""){a.pop()}return n+a.join("/")}},7721:function(e,t,r){"use strict";e.exports=r(1153)},3638:function(e,t,r){"use strict";const n=r(1017);const s="\\\\/";const a=`[^${s}]`;const o="\\.";const i="\\+";const c="\\?";const u="\\/";const l="(?=.)";const f="[^/]";const d=`(?:${u}|$)`;const p=`(?:^|${u})`;const h=`${o}{1,2}${d}`;const m=`(?!${o})`;const y=`(?!${p}${h})`;const g=`(?!${o}{0,1}${d})`;const v=`(?!${h})`;const b=`[^.${u}]`;const $=`${f}*?`;const S={DOT_LITERAL:o,PLUS_LITERAL:i,QMARK_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:l,QMARK:f,END_ANCHOR:d,DOTS_SLASH:h,NO_DOT:m,NO_DOTS:y,NO_DOT_SLASH:g,NO_DOTS_SLASH:v,QMARK_NO_DOT:b,STAR:$,START_ANCHOR:p};const w={...S,SLASH_LITERAL:`[${s}]`,QMARK:a,STAR:`${a}*?`,DOTS_SLASH:`${o}{1,2}(?:[${s}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${s}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${s}]|$))`,QMARK_NO_DOT:`[^.${s}]`,START_ANCHOR:`(?:^|[${s}])`,END_ANCHOR:`(?:[${s}]|$)`};const E={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:E,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:n.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?w:S}}},646:function(e,t,r){"use strict";const n=r(3638);const s=r(5218);const{MAX_LENGTH:a,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:u}=n;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>s.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=u[e]||e;const r={...t};const l=typeof r.maxLength==="number"?Math.min(a,r.maxLength):a;let f=e.length;if(f>l){throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${l}`)}const d={type:"bos",value:"",output:r.prepend||""};const p=[d];const h=r.capture?"":"?:";const m=s.isWindows(t);const y=n.globChars(m);const g=n.extglobChars(y);const{DOT_LITERAL:v,PLUS_LITERAL:b,SLASH_LITERAL:$,ONE_CHAR:S,DOTS_SLASH:w,NO_DOT:E,NO_DOT_SLASH:P,NO_DOTS_SLASH:x,QMARK:k,QMARK_NO_DOT:C,STAR:A,START_ANCHOR:R}=y;const globstar=e=>`(${h}(?:(?!${R}${e.dot?w:v}).)*?)`;const O=r.dot?"":E;const T=r.dot?k:C;let N=r.bash===true?globstar(r):A;if(r.capture){N=`(${N})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const D={input:e,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:p};e=s.removePrefix(e,D);f=e.length;const j=[];const I=[];const M=[];let F=d;let L;const eos=()=>D.index===f-1;const H=D.peek=(t=1)=>e[D.index+t];const V=D.advance=()=>e[++D.index]||"";const remaining=()=>e.slice(D.index+1);const consume=(e="",t=0)=>{D.consumed+=e;D.index+=t};const append=e=>{D.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(H()==="!"&&(H(2)!=="("||H(3)==="?")){V();D.start++;e++}if(e%2===0){return false}D.negated=true;D.start++;return true};const increment=e=>{D[e]++;M.push(e)};const decrement=e=>{D[e]--;M.pop()};const push=e=>{if(F.type==="globstar"){const t=D.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||j.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){D.output=D.output.slice(0,-F.output.length);F.type="star";F.value="*";F.output=N;D.output+=F.output}}if(j.length&&e.type!=="paren"){j[j.length-1].inner+=e.value}if(e.value||e.output)append(e);if(F&&F.type==="text"&&e.type==="text"){F.value+=e.value;F.output=(F.output||"")+e.value;return}e.prev=F;p.push(e);F=e};const extglobOpen=(e,t)=>{const n={...g[t],conditions:1,inner:""};n.prev=F;n.parens=D.parens;n.output=D.output;const s=(r.capture?"(":"")+n.open;increment("parens");push({type:e,value:t,output:D.output?"":S});push({type:"paren",extglob:true,value:V(),output:s});j.push(n)};const extglobClose=e=>{let n=e.close+(r.capture?")":"");let s;if(e.type==="negate"){let a=N;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){a=globstar(r)}if(a!==N||eos()||/^\)+$/.test(remaining())){n=e.close=`)$))${a}`}if(e.inner.includes("*")&&(s=remaining())&&/^\.[^\\/.]+$/.test(s)){const r=parse(s,{...t,fastpaths:false}).output;n=e.close=`)${r})${a})`}if(e.prev.type==="bos"){D.negatedExtglob=true}}push({type:"paren",extglob:true,value:L,output:n});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=false;let a=e.replace(c,((e,t,r,s,a,o)=>{if(s==="\\"){n=true;return e}if(s==="?"){if(t){return t+s+(a?k.repeat(a.length):"")}if(o===0){return T+(a?k.repeat(a.length):"")}return k.repeat(r.length)}if(s==="."){return v.repeat(r.length)}if(s==="*"){if(t){return t+s+(a?N:"")}return N}return t?e:`\\${e}`}));if(n===true){if(r.unescape===true){a=a.replace(/\\/g,"")}else{a=a.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(a===e&&r.contains===true){D.output=e;return D}D.output=s.wrapOutput(a,D,t);return D}while(!eos()){L=V();if(L==="\0"){continue}if(L==="\\"){const e=H();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){L+="\\";push({type:"text",value:L});continue}const t=/^\\+/.exec(remaining());let n=0;if(t&&t[0].length>2){n=t[0].length;D.index+=n;if(n%2!==0){L+="\\"}}if(r.unescape===true){L=V()}else{L+=V()}if(D.brackets===0){push({type:"text",value:L});continue}}if(D.brackets>0&&(L!=="]"||F.value==="["||F.value==="[^")){if(r.posix!==false&&L===":"){const e=F.value.slice(1);if(e.includes("[")){F.posix=true;if(e.includes(":")){const e=F.value.lastIndexOf("[");const t=F.value.slice(0,e);const r=F.value.slice(e+2);const n=o[r];if(n){F.value=t+n;D.backtrack=true;V();if(!d.output&&p.indexOf(F)===1){d.output=S}continue}}}}if(L==="["&&H()!==":"||L==="-"&&H()==="]"){L=`\\${L}`}if(L==="]"&&(F.value==="["||F.value==="[^")){L=`\\${L}`}if(r.posix===true&&L==="!"&&F.value==="["){L="^"}F.value+=L;append({value:L});continue}if(D.quotes===1&&L!=='"'){L=s.escapeRegex(L);F.value+=L;append({value:L});continue}if(L==='"'){D.quotes=D.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:L})}continue}if(L==="("){increment("parens");push({type:"paren",value:L});continue}if(L===")"){if(D.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=j[j.length-1];if(e&&D.parens===e.parens+1){extglobClose(j.pop());continue}push({type:"paren",value:L,output:D.parens?")":"\\)"});decrement("parens");continue}if(L==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}L=`\\${L}`}else{increment("brackets")}push({type:"bracket",value:L});continue}if(L==="]"){if(r.nobracket===true||F&&F.type==="bracket"&&F.value.length===1){push({type:"text",value:L,output:`\\${L}`});continue}if(D.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:L,output:`\\${L}`});continue}decrement("brackets");const e=F.value.slice(1);if(F.posix!==true&&e[0]==="^"&&!e.includes("/")){L=`/${L}`}F.value+=L;append({value:L});if(r.literalBrackets===false||s.hasRegexChars(e)){continue}const t=s.escapeRegex(F.value);D.output=D.output.slice(0,-F.value.length);if(r.literalBrackets===true){D.output+=t;F.value=t;continue}F.value=`(${h}${t}|${F.value})`;D.output+=F.value;continue}if(L==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:L,output:"(",outputIndex:D.output.length,tokensIndex:D.tokens.length};I.push(e);push(e);continue}if(L==="}"){const e=I[I.length-1];if(r.nobrace===true||!e){push({type:"text",value:L,output:L});continue}let t=")";if(e.dots===true){const e=p.slice();const n=[];for(let t=e.length-1;t>=0;t--){p.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){n.unshift(e[t].value)}}t=expandRange(n,r);D.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=D.output.slice(0,e.outputIndex);const n=D.tokens.slice(e.tokensIndex);e.value=e.output="\\{";L=t="\\}";D.output=r;for(const e of n){D.output+=e.output||e.value}}push({type:"brace",value:L,output:t});decrement("braces");I.pop();continue}if(L==="|"){if(j.length>0){j[j.length-1].conditions++}push({type:"text",value:L});continue}if(L===","){let e=L;const t=I[I.length-1];if(t&&M[M.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:L,output:e});continue}if(L==="/"){if(F.type==="dot"&&D.index===D.start+1){D.start=D.index+1;D.consumed="";D.output="";p.pop();F=d;continue}push({type:"slash",value:L,output:$});continue}if(L==="."){if(D.braces>0&&F.type==="dot"){if(F.value===".")F.output=v;const e=I[I.length-1];F.type="dots";F.output+=L;F.value+=L;e.dots=true;continue}if(D.braces+D.parens===0&&F.type!=="bos"&&F.type!=="slash"){push({type:"text",value:L,output:v});continue}push({type:"dot",value:L,output:v});continue}if(L==="?"){const e=F&&F.value==="(";if(!e&&r.noextglob!==true&&H()==="("&&H(2)!=="?"){extglobOpen("qmark",L);continue}if(F&&F.type==="paren"){const e=H();let t=L;if(e==="<"&&!s.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(F.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${L}`}push({type:"text",value:L,output:t});continue}if(r.dot!==true&&(F.type==="slash"||F.type==="bos")){push({type:"qmark",value:L,output:C});continue}push({type:"qmark",value:L,output:k});continue}if(L==="!"){if(r.noextglob!==true&&H()==="("){if(H(2)!=="?"||!/[!=<:]/.test(H(3))){extglobOpen("negate",L);continue}}if(r.nonegate!==true&&D.index===0){negate();continue}}if(L==="+"){if(r.noextglob!==true&&H()==="("&&H(2)!=="?"){extglobOpen("plus",L);continue}if(F&&F.value==="("||r.regex===false){push({type:"plus",value:L,output:b});continue}if(F&&(F.type==="bracket"||F.type==="paren"||F.type==="brace")||D.parens>0){push({type:"plus",value:L});continue}push({type:"plus",value:b});continue}if(L==="@"){if(r.noextglob!==true&&H()==="("&&H(2)!=="?"){push({type:"at",extglob:true,value:L,output:""});continue}push({type:"text",value:L});continue}if(L!=="*"){if(L==="$"||L==="^"){L=`\\${L}`}const e=i.exec(remaining());if(e){L+=e[0];D.index+=e[0].length}push({type:"text",value:L});continue}if(F&&(F.type==="globstar"||F.star===true)){F.type="star";F.star=true;F.value+=L;F.output=N;D.backtrack=true;D.globstar=true;consume(L);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",L);continue}if(F.type==="star"){if(r.noglobstar===true){consume(L);continue}const n=F.prev;const s=n.prev;const a=n.type==="slash"||n.type==="bos";const o=s&&(s.type==="star"||s.type==="globstar");if(r.bash===true&&(!a||t[0]&&t[0]!=="/")){push({type:"star",value:L,output:""});continue}const i=D.braces>0&&(n.type==="comma"||n.type==="brace");const c=j.length&&(n.type==="pipe"||n.type==="paren");if(!a&&n.type!=="paren"&&!i&&!c){push({type:"star",value:L,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[D.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(n.type==="bos"&&eos()){F.type="globstar";F.value+=L;F.output=globstar(r);D.output=F.output;D.globstar=true;consume(L);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&!o&&eos()){D.output=D.output.slice(0,-(n.output+F.output).length);n.output=`(?:${n.output}`;F.type="globstar";F.output=globstar(r)+(r.strictSlashes?")":"|$)");F.value+=L;D.globstar=true;D.output+=n.output+F.output;consume(L);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";D.output=D.output.slice(0,-(n.output+F.output).length);n.output=`(?:${n.output}`;F.type="globstar";F.output=`${globstar(r)}${$}|${$}${e})`;F.value+=L;D.output+=n.output+F.output;D.globstar=true;consume(L+V());push({type:"slash",value:"/",output:""});continue}if(n.type==="bos"&&t[0]==="/"){F.type="globstar";F.value+=L;F.output=`(?:^|${$}|${globstar(r)}${$})`;D.output=F.output;D.globstar=true;consume(L+V());push({type:"slash",value:"/",output:""});continue}D.output=D.output.slice(0,-F.output.length);F.type="globstar";F.output=globstar(r);F.value+=L;D.output+=F.output;D.globstar=true;consume(L);continue}const n={type:"star",value:L,output:N};if(r.bash===true){n.output=".*?";if(F.type==="bos"||F.type==="slash"){n.output=O+n.output}push(n);continue}if(F&&(F.type==="bracket"||F.type==="paren")&&r.regex===true){n.output=L;push(n);continue}if(D.index===D.start||F.type==="slash"||F.type==="dot"){if(F.type==="dot"){D.output+=P;F.output+=P}else if(r.dot===true){D.output+=x;F.output+=x}else{D.output+=O;F.output+=O}if(H()!=="*"){D.output+=S;F.output+=S}}push(n)}while(D.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));D.output=s.escapeLast(D.output,"[");decrement("brackets")}while(D.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));D.output=s.escapeLast(D.output,"(");decrement("parens")}while(D.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));D.output=s.escapeLast(D.output,"{");decrement("braces")}if(r.strictSlashes!==true&&(F.type==="star"||F.type==="bracket")){push({type:"maybe_slash",value:"",output:`${$}?`})}if(D.backtrack===true){D.output="";for(const e of D.tokens){D.output+=e.output!=null?e.output:e.value;if(e.suffix){D.output+=e.suffix}}}return D};parse.fastpaths=(e,t)=>{const r={...t};const o=typeof r.maxLength==="number"?Math.min(a,r.maxLength):a;const i=e.length;if(i>o){throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${o}`)}e=u[e]||e;const c=s.isWindows(t);const{DOT_LITERAL:l,SLASH_LITERAL:f,ONE_CHAR:d,DOTS_SLASH:p,NO_DOT:h,NO_DOTS:m,NO_DOTS_SLASH:y,STAR:g,START_ANCHOR:v}=n.globChars(c);const b=r.dot?m:h;const $=r.dot?y:h;const S=r.capture?"":"?:";const w={negated:false,prefix:""};let E=r.bash===true?".*?":g;if(r.capture){E=`(${E})`}const globstar=e=>{if(e.noglobstar===true)return E;return`(${S}(?:(?!${v}${e.dot?p:l}).)*?)`};const create=e=>{switch(e){case"*":return`${b}${d}${E}`;case".*":return`${l}${d}${E}`;case"*.*":return`${b}${E}${l}${d}${E}`;case"*/*":return`${b}${E}${f}${d}${$}${E}`;case"**":return b+globstar(r);case"**/*":return`(?:${b}${globstar(r)}${f})?${$}${d}${E}`;case"**/*.*":return`(?:${b}${globstar(r)}${f})?${$}${E}${l}${d}${E}`;case"**/.*":return`(?:${b}${globstar(r)}${f})?${l}${d}${E}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+l+t[2]}}};const P=s.removePrefix(e,w);let x=create(P);if(x&&r.strictSlashes!==true){x+=`${f}?`}return x};e.exports=parse},1153:function(e,t,r){"use strict";const n=r(1017);const s=r(1489);const a=r(646);const o=r(5218);const i=r(3638);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const n=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of n){const r=t(e);if(r)return r}return false};return arrayMatcher}const n=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!n){throw new TypeError("Expected pattern to be a non-empty string")}const s=t||{};const a=o.isWindows(t);const i=n?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const c=i.state;delete i.state;let isIgnored=()=>false;if(s.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(s.ignore,e,r)}const matcher=(r,n=false)=>{const{isMatch:o,match:u,output:l}=picomatch.test(r,i,t,{glob:e,posix:a});const f={glob:e,state:c,regex:i,posix:a,input:r,output:l,match:u,isMatch:o};if(typeof s.onResult==="function"){s.onResult(f)}if(o===false){f.isMatch=false;return n?f:false}if(isIgnored(r)){if(typeof s.onIgnore==="function"){s.onIgnore(f)}f.isMatch=false;return n?f:false}if(typeof s.onMatch==="function"){s.onMatch(f)}return n?f:true};if(r){matcher.state=c}return matcher};picomatch.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const a=r||{};const i=a.format||(s?o.toPosixSlashes:null);let c=e===n;let u=c&&i?i(e):e;if(c===false){u=i?i(e):e;c=u===n}if(c===false||a.capture===true){if(a.matchBase===true||a.basename===true){c=picomatch.matchBase(e,t,r,s)}else{c=t.exec(u)}}return{isMatch:Boolean(c),match:c,output:u}};picomatch.matchBase=(e,t,r,s=o.isWindows(r))=>{const a=t instanceof RegExp?t:picomatch.makeRe(t,r);return a.test(n.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return a(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>s(e,t);picomatch.compileRe=(e,t,r=false,n=false)=>{if(r===true){return e.output}const s=t||{};const a=s.contains?"":"^";const o=s.contains?"":"$";let i=`${a}(?:${e.output})${o}`;if(e&&e.negated===true){i=`^(?!${i}).*$`}const c=picomatch.toRegex(i,t);if(n===true){c.state=e}return c};picomatch.makeRe=(e,t={},r=false,n=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let s={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){s.output=a.fastpaths(e,t)}if(!s.output){s=a(e,t)}return picomatch.compileRe(s,t,r,n)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=i;e.exports=picomatch},1489:function(e,t,r){"use strict";const n=r(5218);const{CHAR_ASTERISK:s,CHAR_AT:a,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:i,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:h,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:v}=r(3638);const isPathSeparator=e=>e===l||e===o;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const b=e.length-1;const $=r.parts===true||r.scanToEnd===true;const S=[];const w=[];const E=[];let P=e;let x=-1;let k=0;let C=0;let A=false;let R=false;let O=false;let T=false;let N=false;let D=false;let j=false;let I=false;let M=false;let F=false;let L=0;let H;let V;let z={value:"",depth:0,isGlob:false};const eos=()=>x>=b;const peek=()=>P.charCodeAt(x+1);const advance=()=>{H=V;return P.charCodeAt(++x)};while(x<b){V=advance();let e;if(V===o){j=z.backslashes=true;V=advance();if(V===f){D=true}continue}if(D===true||V===f){L++;while(eos()!==true&&(V=advance())){if(V===o){j=z.backslashes=true;advance();continue}if(V===f){L++;continue}if(D!==true&&V===c&&(V=advance())===c){A=z.isBrace=true;O=z.isGlob=true;F=true;if($===true){continue}break}if(D!==true&&V===i){A=z.isBrace=true;O=z.isGlob=true;F=true;if($===true){continue}break}if(V===y){L--;if(L===0){D=false;A=z.isBrace=true;F=true;break}}}if($===true){continue}break}if(V===l){S.push(x);w.push(z);z={value:"",depth:0,isGlob:false};if(F===true)continue;if(H===c&&x===k+1){k+=2;continue}C=x+1;continue}if(r.noext!==true){const e=V===h||V===a||V===s||V===m||V===u;if(e===true&&peek()===d){O=z.isGlob=true;T=z.isExtglob=true;F=true;if(V===u&&x===k){M=true}if($===true){while(eos()!==true&&(V=advance())){if(V===o){j=z.backslashes=true;V=advance();continue}if(V===g){O=z.isGlob=true;F=true;break}}continue}break}}if(V===s){if(H===s)N=z.isGlobstar=true;O=z.isGlob=true;F=true;if($===true){continue}break}if(V===m){O=z.isGlob=true;F=true;if($===true){continue}break}if(V===p){while(eos()!==true&&(e=advance())){if(e===o){j=z.backslashes=true;advance();continue}if(e===v){R=z.isBracket=true;O=z.isGlob=true;F=true;break}}if($===true){continue}break}if(r.nonegate!==true&&V===u&&x===k){I=z.negated=true;k++;continue}if(r.noparen!==true&&V===d){O=z.isGlob=true;if($===true){while(eos()!==true&&(V=advance())){if(V===d){j=z.backslashes=true;V=advance();continue}if(V===g){F=true;break}}continue}break}if(O===true){F=true;if($===true){continue}break}}if(r.noext===true){T=false;O=false}let q=P;let U="";let K="";if(k>0){U=P.slice(0,k);P=P.slice(k);C-=k}if(q&&O===true&&C>0){q=P.slice(0,C);K=P.slice(C)}else if(O===true){q="";K=P}else{q=P}if(q&&q!==""&&q!=="/"&&q!==P){if(isPathSeparator(q.charCodeAt(q.length-1))){q=q.slice(0,-1)}}if(r.unescape===true){if(K)K=n.removeBackslashes(K);if(q&&j===true){q=n.removeBackslashes(q)}}const B={prefix:U,input:e,start:k,base:q,glob:K,isBrace:A,isBracket:R,isGlob:O,isExtglob:T,isGlobstar:N,negated:I,negatedExtglob:M};if(r.tokens===true){B.maxDepth=0;if(!isPathSeparator(V)){w.push(z)}B.tokens=w}if(r.parts===true||r.tokens===true){let t;for(let n=0;n<S.length;n++){const s=t?t+1:k;const a=S[n];const o=e.slice(s,a);if(r.tokens){if(n===0&&k!==0){w[n].isPrefix=true;w[n].value=U}else{w[n].value=o}depth(w[n]);B.maxDepth+=w[n].depth}if(n!==0||o!==""){E.push(o)}t=a}if(t&&t+1<e.length){const n=e.slice(t+1);E.push(n);if(r.tokens){w[w.length-1].value=n;depth(w[w.length-1]);B.maxDepth+=w[w.length-1].depth}}B.slashes=S;B.parts=E}return B};e.exports=scan},5218:function(e,t,r){"use strict";const n=r(1017);const s=process.platform==="win32";const{REGEX_BACKSLASH:a,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:c}=r(3638);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>i.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(c,"\\$1");t.toPosixSlashes=e=>e.replace(a,"/");t.removeBackslashes=e=>e.replace(o,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return s===true||n.sep==="\\"};t.escapeLast=(e,r,n)=>{const s=e.lastIndexOf(r,n);if(s===-1)return e;if(e[s-1]==="\\")return t.escapeLast(e,r,s-1);return`${e.slice(0,s)}\\${e.slice(s)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const n=r.contains?"":"^";const s=r.contains?"":"$";let a=`${n}(?:${e})${s}`;if(t.negated===true){a=`(?:^(?!${a}).*$)`}return a}},5613:function(e){
40
+ e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("expected path to be a string")}if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&e[3]==="\\"){var s=e[2];if((s==="?"||s===".")&&e.slice(0,2)==="\\\\"){e=e.slice(2);n="//"}}var a=e.split(/[/\\]+/);if(t!==false&&a[a.length-1]===""){a.pop()}return n+a.join("/")}},376:function(e,t,r){"use strict";e.exports=r(7631)},7820:function(e,t,r){"use strict";const n=r(1017);const s="\\\\/";const a=`[^${s}]`;const o="\\.";const i="\\+";const c="\\?";const u="\\/";const l="(?=.)";const f="[^/]";const d=`(?:${u}|$)`;const p=`(?:^|${u})`;const h=`${o}{1,2}${d}`;const m=`(?!${o})`;const y=`(?!${p}${h})`;const g=`(?!${o}{0,1}${d})`;const v=`(?!${h})`;const b=`[^.${u}]`;const $=`${f}*?`;const S={DOT_LITERAL:o,PLUS_LITERAL:i,QMARK_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:l,QMARK:f,END_ANCHOR:d,DOTS_SLASH:h,NO_DOT:m,NO_DOTS:y,NO_DOT_SLASH:g,NO_DOTS_SLASH:v,QMARK_NO_DOT:b,STAR:$,START_ANCHOR:p};const w={...S,SLASH_LITERAL:`[${s}]`,QMARK:a,STAR:`${a}*?`,DOTS_SLASH:`${o}{1,2}(?:[${s}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${s}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${s}]|$))`,QMARK_NO_DOT:`[^.${s}]`,START_ANCHOR:`(?:^|[${s}])`,END_ANCHOR:`(?:[${s}]|$)`};const E={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:E,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:n.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?w:S}}},6986:function(e,t,r){"use strict";const n=r(7820);const s=r(8658);const{MAX_LENGTH:a,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:u}=n;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>s.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=u[e]||e;const r={...t};const l=typeof r.maxLength==="number"?Math.min(a,r.maxLength):a;let f=e.length;if(f>l){throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${l}`)}const d={type:"bos",value:"",output:r.prepend||""};const p=[d];const h=r.capture?"":"?:";const m=s.isWindows(t);const y=n.globChars(m);const g=n.extglobChars(y);const{DOT_LITERAL:v,PLUS_LITERAL:b,SLASH_LITERAL:$,ONE_CHAR:S,DOTS_SLASH:w,NO_DOT:E,NO_DOT_SLASH:P,NO_DOTS_SLASH:x,QMARK:k,QMARK_NO_DOT:R,STAR:C,START_ANCHOR:A}=y;const globstar=e=>`(${h}(?:(?!${A}${e.dot?w:v}).)*?)`;const O=r.dot?"":E;const T=r.dot?k:R;let N=r.bash===true?globstar(r):C;if(r.capture){N=`(${N})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const D={input:e,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:p};e=s.removePrefix(e,D);f=e.length;const j=[];const I=[];const M=[];let F=d;let L;const eos=()=>D.index===f-1;const H=D.peek=(t=1)=>e[D.index+t];const V=D.advance=()=>e[++D.index]||"";const remaining=()=>e.slice(D.index+1);const consume=(e="",t=0)=>{D.consumed+=e;D.index+=t};const append=e=>{D.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(H()==="!"&&(H(2)!=="("||H(3)==="?")){V();D.start++;e++}if(e%2===0){return false}D.negated=true;D.start++;return true};const increment=e=>{D[e]++;M.push(e)};const decrement=e=>{D[e]--;M.pop()};const push=e=>{if(F.type==="globstar"){const t=D.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||j.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){D.output=D.output.slice(0,-F.output.length);F.type="star";F.value="*";F.output=N;D.output+=F.output}}if(j.length&&e.type!=="paren"){j[j.length-1].inner+=e.value}if(e.value||e.output)append(e);if(F&&F.type==="text"&&e.type==="text"){F.value+=e.value;F.output=(F.output||"")+e.value;return}e.prev=F;p.push(e);F=e};const extglobOpen=(e,t)=>{const n={...g[t],conditions:1,inner:""};n.prev=F;n.parens=D.parens;n.output=D.output;const s=(r.capture?"(":"")+n.open;increment("parens");push({type:e,value:t,output:D.output?"":S});push({type:"paren",extglob:true,value:V(),output:s});j.push(n)};const extglobClose=e=>{let n=e.close+(r.capture?")":"");let s;if(e.type==="negate"){let a=N;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){a=globstar(r)}if(a!==N||eos()||/^\)+$/.test(remaining())){n=e.close=`)$))${a}`}if(e.inner.includes("*")&&(s=remaining())&&/^\.[^\\/.]+$/.test(s)){const r=parse(s,{...t,fastpaths:false}).output;n=e.close=`)${r})${a})`}if(e.prev.type==="bos"){D.negatedExtglob=true}}push({type:"paren",extglob:true,value:L,output:n});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=false;let a=e.replace(c,((e,t,r,s,a,o)=>{if(s==="\\"){n=true;return e}if(s==="?"){if(t){return t+s+(a?k.repeat(a.length):"")}if(o===0){return T+(a?k.repeat(a.length):"")}return k.repeat(r.length)}if(s==="."){return v.repeat(r.length)}if(s==="*"){if(t){return t+s+(a?N:"")}return N}return t?e:`\\${e}`}));if(n===true){if(r.unescape===true){a=a.replace(/\\/g,"")}else{a=a.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(a===e&&r.contains===true){D.output=e;return D}D.output=s.wrapOutput(a,D,t);return D}while(!eos()){L=V();if(L==="\0"){continue}if(L==="\\"){const e=H();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){L+="\\";push({type:"text",value:L});continue}const t=/^\\+/.exec(remaining());let n=0;if(t&&t[0].length>2){n=t[0].length;D.index+=n;if(n%2!==0){L+="\\"}}if(r.unescape===true){L=V()}else{L+=V()}if(D.brackets===0){push({type:"text",value:L});continue}}if(D.brackets>0&&(L!=="]"||F.value==="["||F.value==="[^")){if(r.posix!==false&&L===":"){const e=F.value.slice(1);if(e.includes("[")){F.posix=true;if(e.includes(":")){const e=F.value.lastIndexOf("[");const t=F.value.slice(0,e);const r=F.value.slice(e+2);const n=o[r];if(n){F.value=t+n;D.backtrack=true;V();if(!d.output&&p.indexOf(F)===1){d.output=S}continue}}}}if(L==="["&&H()!==":"||L==="-"&&H()==="]"){L=`\\${L}`}if(L==="]"&&(F.value==="["||F.value==="[^")){L=`\\${L}`}if(r.posix===true&&L==="!"&&F.value==="["){L="^"}F.value+=L;append({value:L});continue}if(D.quotes===1&&L!=='"'){L=s.escapeRegex(L);F.value+=L;append({value:L});continue}if(L==='"'){D.quotes=D.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:L})}continue}if(L==="("){increment("parens");push({type:"paren",value:L});continue}if(L===")"){if(D.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=j[j.length-1];if(e&&D.parens===e.parens+1){extglobClose(j.pop());continue}push({type:"paren",value:L,output:D.parens?")":"\\)"});decrement("parens");continue}if(L==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}L=`\\${L}`}else{increment("brackets")}push({type:"bracket",value:L});continue}if(L==="]"){if(r.nobracket===true||F&&F.type==="bracket"&&F.value.length===1){push({type:"text",value:L,output:`\\${L}`});continue}if(D.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:L,output:`\\${L}`});continue}decrement("brackets");const e=F.value.slice(1);if(F.posix!==true&&e[0]==="^"&&!e.includes("/")){L=`/${L}`}F.value+=L;append({value:L});if(r.literalBrackets===false||s.hasRegexChars(e)){continue}const t=s.escapeRegex(F.value);D.output=D.output.slice(0,-F.value.length);if(r.literalBrackets===true){D.output+=t;F.value=t;continue}F.value=`(${h}${t}|${F.value})`;D.output+=F.value;continue}if(L==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:L,output:"(",outputIndex:D.output.length,tokensIndex:D.tokens.length};I.push(e);push(e);continue}if(L==="}"){const e=I[I.length-1];if(r.nobrace===true||!e){push({type:"text",value:L,output:L});continue}let t=")";if(e.dots===true){const e=p.slice();const n=[];for(let t=e.length-1;t>=0;t--){p.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){n.unshift(e[t].value)}}t=expandRange(n,r);D.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=D.output.slice(0,e.outputIndex);const n=D.tokens.slice(e.tokensIndex);e.value=e.output="\\{";L=t="\\}";D.output=r;for(const e of n){D.output+=e.output||e.value}}push({type:"brace",value:L,output:t});decrement("braces");I.pop();continue}if(L==="|"){if(j.length>0){j[j.length-1].conditions++}push({type:"text",value:L});continue}if(L===","){let e=L;const t=I[I.length-1];if(t&&M[M.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:L,output:e});continue}if(L==="/"){if(F.type==="dot"&&D.index===D.start+1){D.start=D.index+1;D.consumed="";D.output="";p.pop();F=d;continue}push({type:"slash",value:L,output:$});continue}if(L==="."){if(D.braces>0&&F.type==="dot"){if(F.value===".")F.output=v;const e=I[I.length-1];F.type="dots";F.output+=L;F.value+=L;e.dots=true;continue}if(D.braces+D.parens===0&&F.type!=="bos"&&F.type!=="slash"){push({type:"text",value:L,output:v});continue}push({type:"dot",value:L,output:v});continue}if(L==="?"){const e=F&&F.value==="(";if(!e&&r.noextglob!==true&&H()==="("&&H(2)!=="?"){extglobOpen("qmark",L);continue}if(F&&F.type==="paren"){const e=H();let t=L;if(e==="<"&&!s.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(F.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${L}`}push({type:"text",value:L,output:t});continue}if(r.dot!==true&&(F.type==="slash"||F.type==="bos")){push({type:"qmark",value:L,output:R});continue}push({type:"qmark",value:L,output:k});continue}if(L==="!"){if(r.noextglob!==true&&H()==="("){if(H(2)!=="?"||!/[!=<:]/.test(H(3))){extglobOpen("negate",L);continue}}if(r.nonegate!==true&&D.index===0){negate();continue}}if(L==="+"){if(r.noextglob!==true&&H()==="("&&H(2)!=="?"){extglobOpen("plus",L);continue}if(F&&F.value==="("||r.regex===false){push({type:"plus",value:L,output:b});continue}if(F&&(F.type==="bracket"||F.type==="paren"||F.type==="brace")||D.parens>0){push({type:"plus",value:L});continue}push({type:"plus",value:b});continue}if(L==="@"){if(r.noextglob!==true&&H()==="("&&H(2)!=="?"){push({type:"at",extglob:true,value:L,output:""});continue}push({type:"text",value:L});continue}if(L!=="*"){if(L==="$"||L==="^"){L=`\\${L}`}const e=i.exec(remaining());if(e){L+=e[0];D.index+=e[0].length}push({type:"text",value:L});continue}if(F&&(F.type==="globstar"||F.star===true)){F.type="star";F.star=true;F.value+=L;F.output=N;D.backtrack=true;D.globstar=true;consume(L);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",L);continue}if(F.type==="star"){if(r.noglobstar===true){consume(L);continue}const n=F.prev;const s=n.prev;const a=n.type==="slash"||n.type==="bos";const o=s&&(s.type==="star"||s.type==="globstar");if(r.bash===true&&(!a||t[0]&&t[0]!=="/")){push({type:"star",value:L,output:""});continue}const i=D.braces>0&&(n.type==="comma"||n.type==="brace");const c=j.length&&(n.type==="pipe"||n.type==="paren");if(!a&&n.type!=="paren"&&!i&&!c){push({type:"star",value:L,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[D.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(n.type==="bos"&&eos()){F.type="globstar";F.value+=L;F.output=globstar(r);D.output=F.output;D.globstar=true;consume(L);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&!o&&eos()){D.output=D.output.slice(0,-(n.output+F.output).length);n.output=`(?:${n.output}`;F.type="globstar";F.output=globstar(r)+(r.strictSlashes?")":"|$)");F.value+=L;D.globstar=true;D.output+=n.output+F.output;consume(L);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";D.output=D.output.slice(0,-(n.output+F.output).length);n.output=`(?:${n.output}`;F.type="globstar";F.output=`${globstar(r)}${$}|${$}${e})`;F.value+=L;D.output+=n.output+F.output;D.globstar=true;consume(L+V());push({type:"slash",value:"/",output:""});continue}if(n.type==="bos"&&t[0]==="/"){F.type="globstar";F.value+=L;F.output=`(?:^|${$}|${globstar(r)}${$})`;D.output=F.output;D.globstar=true;consume(L+V());push({type:"slash",value:"/",output:""});continue}D.output=D.output.slice(0,-F.output.length);F.type="globstar";F.output=globstar(r);F.value+=L;D.output+=F.output;D.globstar=true;consume(L);continue}const n={type:"star",value:L,output:N};if(r.bash===true){n.output=".*?";if(F.type==="bos"||F.type==="slash"){n.output=O+n.output}push(n);continue}if(F&&(F.type==="bracket"||F.type==="paren")&&r.regex===true){n.output=L;push(n);continue}if(D.index===D.start||F.type==="slash"||F.type==="dot"){if(F.type==="dot"){D.output+=P;F.output+=P}else if(r.dot===true){D.output+=x;F.output+=x}else{D.output+=O;F.output+=O}if(H()!=="*"){D.output+=S;F.output+=S}}push(n)}while(D.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));D.output=s.escapeLast(D.output,"[");decrement("brackets")}while(D.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));D.output=s.escapeLast(D.output,"(");decrement("parens")}while(D.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));D.output=s.escapeLast(D.output,"{");decrement("braces")}if(r.strictSlashes!==true&&(F.type==="star"||F.type==="bracket")){push({type:"maybe_slash",value:"",output:`${$}?`})}if(D.backtrack===true){D.output="";for(const e of D.tokens){D.output+=e.output!=null?e.output:e.value;if(e.suffix){D.output+=e.suffix}}}return D};parse.fastpaths=(e,t)=>{const r={...t};const o=typeof r.maxLength==="number"?Math.min(a,r.maxLength):a;const i=e.length;if(i>o){throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${o}`)}e=u[e]||e;const c=s.isWindows(t);const{DOT_LITERAL:l,SLASH_LITERAL:f,ONE_CHAR:d,DOTS_SLASH:p,NO_DOT:h,NO_DOTS:m,NO_DOTS_SLASH:y,STAR:g,START_ANCHOR:v}=n.globChars(c);const b=r.dot?m:h;const $=r.dot?y:h;const S=r.capture?"":"?:";const w={negated:false,prefix:""};let E=r.bash===true?".*?":g;if(r.capture){E=`(${E})`}const globstar=e=>{if(e.noglobstar===true)return E;return`(${S}(?:(?!${v}${e.dot?p:l}).)*?)`};const create=e=>{switch(e){case"*":return`${b}${d}${E}`;case".*":return`${l}${d}${E}`;case"*.*":return`${b}${E}${l}${d}${E}`;case"*/*":return`${b}${E}${f}${d}${$}${E}`;case"**":return b+globstar(r);case"**/*":return`(?:${b}${globstar(r)}${f})?${$}${d}${E}`;case"**/*.*":return`(?:${b}${globstar(r)}${f})?${$}${E}${l}${d}${E}`;case"**/.*":return`(?:${b}${globstar(r)}${f})?${l}${d}${E}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+l+t[2]}}};const P=s.removePrefix(e,w);let x=create(P);if(x&&r.strictSlashes!==true){x+=`${f}?`}return x};e.exports=parse},7631:function(e,t,r){"use strict";const n=r(1017);const s=r(8640);const a=r(6986);const o=r(8658);const i=r(7820);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const n=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of n){const r=t(e);if(r)return r}return false};return arrayMatcher}const n=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!n){throw new TypeError("Expected pattern to be a non-empty string")}const s=t||{};const a=o.isWindows(t);const i=n?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const c=i.state;delete i.state;let isIgnored=()=>false;if(s.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(s.ignore,e,r)}const matcher=(r,n=false)=>{const{isMatch:o,match:u,output:l}=picomatch.test(r,i,t,{glob:e,posix:a});const f={glob:e,state:c,regex:i,posix:a,input:r,output:l,match:u,isMatch:o};if(typeof s.onResult==="function"){s.onResult(f)}if(o===false){f.isMatch=false;return n?f:false}if(isIgnored(r)){if(typeof s.onIgnore==="function"){s.onIgnore(f)}f.isMatch=false;return n?f:false}if(typeof s.onMatch==="function"){s.onMatch(f)}return n?f:true};if(r){matcher.state=c}return matcher};picomatch.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const a=r||{};const i=a.format||(s?o.toPosixSlashes:null);let c=e===n;let u=c&&i?i(e):e;if(c===false){u=i?i(e):e;c=u===n}if(c===false||a.capture===true){if(a.matchBase===true||a.basename===true){c=picomatch.matchBase(e,t,r,s)}else{c=t.exec(u)}}return{isMatch:Boolean(c),match:c,output:u}};picomatch.matchBase=(e,t,r,s=o.isWindows(r))=>{const a=t instanceof RegExp?t:picomatch.makeRe(t,r);return a.test(n.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return a(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>s(e,t);picomatch.compileRe=(e,t,r=false,n=false)=>{if(r===true){return e.output}const s=t||{};const a=s.contains?"":"^";const o=s.contains?"":"$";let i=`${a}(?:${e.output})${o}`;if(e&&e.negated===true){i=`^(?!${i}).*$`}const c=picomatch.toRegex(i,t);if(n===true){c.state=e}return c};picomatch.makeRe=(e,t={},r=false,n=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let s={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){s.output=a.fastpaths(e,t)}if(!s.output){s=a(e,t)}return picomatch.compileRe(s,t,r,n)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=i;e.exports=picomatch},8640:function(e,t,r){"use strict";const n=r(8658);const{CHAR_ASTERISK:s,CHAR_AT:a,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:i,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:p,CHAR_PLUS:h,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:v}=r(7820);const isPathSeparator=e=>e===l||e===o;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const b=e.length-1;const $=r.parts===true||r.scanToEnd===true;const S=[];const w=[];const E=[];let P=e;let x=-1;let k=0;let R=0;let C=false;let A=false;let O=false;let T=false;let N=false;let D=false;let j=false;let I=false;let M=false;let F=false;let L=0;let H;let V;let z={value:"",depth:0,isGlob:false};const eos=()=>x>=b;const peek=()=>P.charCodeAt(x+1);const advance=()=>{H=V;return P.charCodeAt(++x)};while(x<b){V=advance();let e;if(V===o){j=z.backslashes=true;V=advance();if(V===f){D=true}continue}if(D===true||V===f){L++;while(eos()!==true&&(V=advance())){if(V===o){j=z.backslashes=true;advance();continue}if(V===f){L++;continue}if(D!==true&&V===c&&(V=advance())===c){C=z.isBrace=true;O=z.isGlob=true;F=true;if($===true){continue}break}if(D!==true&&V===i){C=z.isBrace=true;O=z.isGlob=true;F=true;if($===true){continue}break}if(V===y){L--;if(L===0){D=false;C=z.isBrace=true;F=true;break}}}if($===true){continue}break}if(V===l){S.push(x);w.push(z);z={value:"",depth:0,isGlob:false};if(F===true)continue;if(H===c&&x===k+1){k+=2;continue}R=x+1;continue}if(r.noext!==true){const e=V===h||V===a||V===s||V===m||V===u;if(e===true&&peek()===d){O=z.isGlob=true;T=z.isExtglob=true;F=true;if(V===u&&x===k){M=true}if($===true){while(eos()!==true&&(V=advance())){if(V===o){j=z.backslashes=true;V=advance();continue}if(V===g){O=z.isGlob=true;F=true;break}}continue}break}}if(V===s){if(H===s)N=z.isGlobstar=true;O=z.isGlob=true;F=true;if($===true){continue}break}if(V===m){O=z.isGlob=true;F=true;if($===true){continue}break}if(V===p){while(eos()!==true&&(e=advance())){if(e===o){j=z.backslashes=true;advance();continue}if(e===v){A=z.isBracket=true;O=z.isGlob=true;F=true;break}}if($===true){continue}break}if(r.nonegate!==true&&V===u&&x===k){I=z.negated=true;k++;continue}if(r.noparen!==true&&V===d){O=z.isGlob=true;if($===true){while(eos()!==true&&(V=advance())){if(V===d){j=z.backslashes=true;V=advance();continue}if(V===g){F=true;break}}continue}break}if(O===true){F=true;if($===true){continue}break}}if(r.noext===true){T=false;O=false}let q=P;let U="";let K="";if(k>0){U=P.slice(0,k);P=P.slice(k);R-=k}if(q&&O===true&&R>0){q=P.slice(0,R);K=P.slice(R)}else if(O===true){q="";K=P}else{q=P}if(q&&q!==""&&q!=="/"&&q!==P){if(isPathSeparator(q.charCodeAt(q.length-1))){q=q.slice(0,-1)}}if(r.unescape===true){if(K)K=n.removeBackslashes(K);if(q&&j===true){q=n.removeBackslashes(q)}}const B={prefix:U,input:e,start:k,base:q,glob:K,isBrace:C,isBracket:A,isGlob:O,isExtglob:T,isGlobstar:N,negated:I,negatedExtglob:M};if(r.tokens===true){B.maxDepth=0;if(!isPathSeparator(V)){w.push(z)}B.tokens=w}if(r.parts===true||r.tokens===true){let t;for(let n=0;n<S.length;n++){const s=t?t+1:k;const a=S[n];const o=e.slice(s,a);if(r.tokens){if(n===0&&k!==0){w[n].isPrefix=true;w[n].value=U}else{w[n].value=o}depth(w[n]);B.maxDepth+=w[n].depth}if(n!==0||o!==""){E.push(o)}t=a}if(t&&t+1<e.length){const n=e.slice(t+1);E.push(n);if(r.tokens){w[w.length-1].value=n;depth(w[w.length-1]);B.maxDepth+=w[w.length-1].depth}}B.slashes=S;B.parts=E}return B};e.exports=scan},8658:function(e,t,r){"use strict";const n=r(1017);const s=process.platform==="win32";const{REGEX_BACKSLASH:a,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:c}=r(7820);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>i.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(c,"\\$1");t.toPosixSlashes=e=>e.replace(a,"/");t.removeBackslashes=e=>e.replace(o,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return s===true||n.sep==="\\"};t.escapeLast=(e,r,n)=>{const s=e.lastIndexOf(r,n);if(s===-1)return e;if(e[s-1]==="\\")return t.escapeLast(e,r,s-1);return`${e.slice(0,s)}\\${e.slice(s)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const n=r.contains?"":"^";const s=r.contains?"":"$";let a=`${n}(?:${e})${s}`;if(t.negated===true){a=`(?:^(?!${a}).*$)`}return a}},8453:function(e){
41
41
  /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
42
- let t;e.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window!=="undefined"?window:global):e=>(t||(t=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},1285:function(e,t,r){e.exports=r(6113).randomBytes},3501:function(e){"use strict";function reusify(e){var t=new e;var r=t;function get(){var n=t;if(n.next){t=n.next}else{t=new e;r=t}n.next=null;return n}function release(e){r.next=e;r=e}return{get:get,release:release}}e.exports=reusify},8179:function(e,t,r){
42
+ let t;e.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window!=="undefined"?window:global):e=>(t||(t=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},2856:function(e,t,r){e.exports=r(6113).randomBytes},1816:function(e){"use strict";function reusify(e){var t=new e;var r=t;function get(){var n=t;if(n.next){t=n.next}else{t=new e;r=t}n.next=null;return n}function release(e){r.next=e;r=e}return{get:get,release:release}}e.exports=reusify},5341:function(e,t,r){
43
43
  /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
44
- e.exports=runParallel;const n=r(5613);function runParallel(e,t){let r,s,a;let o=true;if(Array.isArray(e)){r=[];s=e.length}else{a=Object.keys(e);r={};s=a.length}function done(e){function end(){if(t)t(e,r);t=null}if(o)n(end);else end()}function each(e,t,n){r[e]=n;if(--s===0||t){done(t)}}if(!s){done(null)}else if(a){a.forEach((function(t){e[t]((function(e,r){each(t,e,r)}))}))}else{e.forEach((function(e,t){e((function(e,r){each(t,e,r)}))}))}o=false}},7677:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;const{stringHints:n,numberHints:s}=r(1485);const a={type:1,not:1,oneOf:1,anyOf:1,if:1,enum:1,const:1,instanceof:1,required:2,pattern:2,patternRequired:2,format:2,formatMinimum:2,formatMaximum:2,minimum:2,exclusiveMinimum:2,maximum:2,exclusiveMaximum:2,multipleOf:2,uniqueItems:2,contains:2,minLength:2,maxLength:2,minItems:2,maxItems:2,minProperties:2,maxProperties:2,dependencies:2,propertyNames:2,additionalItems:2,additionalProperties:2,absolutePath:2};function isNumeric(e){return/^-?\d+$/.test(e)}function filterMax(e,t){const r=e.reduce(((e,r)=>Math.max(e,t(r))),0);return e.filter((e=>t(e)===r))}function filterChildren(e){let t=e;t=filterMax(t,(e=>e.instancePath?e.instancePath.length:0));t=filterMax(t,(e=>a[e.keyword]||2));return t}function findAllChildren(e,t){let r=e.length-1;const predicate=t=>e[r].schemaPath.indexOf(t)!==0;while(r>-1&&!t.every(predicate)){if(e[r].keyword==="anyOf"||e[r].keyword==="oneOf"){const t=extractRefs(e[r]);const n=findAllChildren(e.slice(0,r),t.concat(e[r].schemaPath));r=n-1}else{r-=1}}return r+1}function extractRefs(e){const{schema:t}=e;if(!Array.isArray(t)){return[]}return t.map((({$ref:e})=>e)).filter((e=>e))}function groupChildrenByFirstChild(e){const t=[];let r=e.length-1;while(r>0){const n=e[r];if(n.keyword==="anyOf"||n.keyword==="oneOf"){const s=extractRefs(n);const a=findAllChildren(e.slice(0,r),s.concat(n.schemaPath));if(a!==r){t.push(Object.assign({},n,{children:e.slice(a,r)}));r=a}else{t.push(n)}}else{t.push(n)}r-=1}if(r===0){t.push(e[r])}return t.reverse()}function indent(e,t){return e.replace(/\n(?!$)/g,`\n${t}`)}function hasNotInSchema(e){return!!e.not}function findFirstTypedSchema(e){if(hasNotInSchema(e)){return findFirstTypedSchema(e.not)}return e}function canApplyNot(e){const t=findFirstTypedSchema(e);return likeNumber(t)||likeInteger(t)||likeString(t)||likeNull(t)||likeBoolean(t)}function isObject(e){return typeof e==="object"&&e!==null}function likeNumber(e){return e.type==="number"||typeof e.minimum!=="undefined"||typeof e.exclusiveMinimum!=="undefined"||typeof e.maximum!=="undefined"||typeof e.exclusiveMaximum!=="undefined"||typeof e.multipleOf!=="undefined"}function likeInteger(e){return e.type==="integer"||typeof e.minimum!=="undefined"||typeof e.exclusiveMinimum!=="undefined"||typeof e.maximum!=="undefined"||typeof e.exclusiveMaximum!=="undefined"||typeof e.multipleOf!=="undefined"}function likeString(e){return e.type==="string"||typeof e.minLength!=="undefined"||typeof e.maxLength!=="undefined"||typeof e.pattern!=="undefined"||typeof e.format!=="undefined"||typeof e.formatMinimum!=="undefined"||typeof e.formatMaximum!=="undefined"}function likeBoolean(e){return e.type==="boolean"}function likeArray(e){return e.type==="array"||typeof e.minItems==="number"||typeof e.maxItems==="number"||typeof e.uniqueItems!=="undefined"||typeof e.items!=="undefined"||typeof e.additionalItems!=="undefined"||typeof e.contains!=="undefined"}function likeObject(e){return e.type==="object"||typeof e.minProperties!=="undefined"||typeof e.maxProperties!=="undefined"||typeof e.required!=="undefined"||typeof e.properties!=="undefined"||typeof e.patternProperties!=="undefined"||typeof e.additionalProperties!=="undefined"||typeof e.dependencies!=="undefined"||typeof e.propertyNames!=="undefined"||typeof e.patternRequired!=="undefined"}function likeNull(e){return e.type==="null"}function getArticle(e){if(/^[aeiou]/i.test(e)){return"an"}return"a"}function getSchemaNonTypes(e){if(!e){return""}if(!e.type){if(likeNumber(e)||likeInteger(e)){return" | should be any non-number"}if(likeString(e)){return" | should be any non-string"}if(likeArray(e)){return" | should be any non-array"}if(likeObject(e)){return" | should be any non-object"}}return""}function formatHints(e){return e.length>0?`(${e.join(", ")})`:""}function getHints(e,t){if(likeNumber(e)||likeInteger(e)){return s(e,t)}else if(likeString(e)){return n(e,t)}return[]}class ValidationError extends Error{constructor(e,t,r={}){super();this.name="ValidationError";this.errors=e;this.schema=t;let n;let s;if(t.title&&(!r.name||!r.baseDataPath)){const e=t.title.match(/^(.+) (.+)$/);if(e){if(!r.name){[,n]=e}if(!r.baseDataPath){[,,s]=e}}}this.headerName=r.name||n||"Object";this.baseDataPath=r.baseDataPath||s||"configuration";this.postFormatter=r.postFormatter||null;const a=`Invalid ${this.baseDataPath} object. ${this.headerName} has been initialized using ${getArticle(this.baseDataPath)} ${this.baseDataPath} object that does not match the API schema.\n`;this.message=`${a}${this.formatValidationErrors(e)}`;Error.captureStackTrace(this,this.constructor)}getSchemaPart(e){const t=e.split("/");let r=this.schema;for(let e=1;e<t.length;e++){const n=r[t[e]];if(!n){break}r=n}return r}formatSchema(e,t=true,r=[]){let n=t;const formatInnerSchema=(t,s)=>{if(!s){return this.formatSchema(t,n,r)}if(r.includes(t)){return"(recursive)"}return this.formatSchema(t,n,r.concat(e))};if(hasNotInSchema(e)&&!likeObject(e)){if(canApplyNot(e.not)){n=!t;return formatInnerSchema(e.not)}const r=!e.not.not;const s=t?"":"non ";n=!t;return r?s+formatInnerSchema(e.not):formatInnerSchema(e.not)}if(e.instanceof){const{instanceof:t}=e;const r=!Array.isArray(t)?[t]:t;return r.map((e=>e==="Function"?"function":e)).join(" | ")}if(e.enum){return e.enum.map((e=>JSON.stringify(e))).join(" | ")}if(typeof e.const!=="undefined"){return JSON.stringify(e.const)}if(e.oneOf){return e.oneOf.map((e=>formatInnerSchema(e,true))).join(" | ")}if(e.anyOf){return e.anyOf.map((e=>formatInnerSchema(e,true))).join(" | ")}if(e.allOf){return e.allOf.map((e=>formatInnerSchema(e,true))).join(" & ")}if(e.if){const{if:t,then:r,else:n}=e;return`${t?`if ${formatInnerSchema(t)}`:""}${r?` then ${formatInnerSchema(r)}`:""}${n?` else ${formatInnerSchema(n)}`:""}`}if(e.$ref){return formatInnerSchema(this.getSchemaPart(e.$ref),true)}if(likeNumber(e)||likeInteger(e)){const[r,...n]=getHints(e,t);const s=`${r}${n.length>0?` ${formatHints(n)}`:""}`;return t?s:n.length>0?`non-${r} | ${s}`:`non-${r}`}if(likeString(e)){const[r,...n]=getHints(e,t);const s=`${r}${n.length>0?` ${formatHints(n)}`:""}`;return t?s:s==="string"?"non-string":`non-string | ${s}`}if(likeBoolean(e)){return`${t?"":"non-"}boolean`}if(likeArray(e)){n=true;const t=[];if(typeof e.minItems==="number"){t.push(`should not have fewer than ${e.minItems} item${e.minItems>1?"s":""}`)}if(typeof e.maxItems==="number"){t.push(`should not have more than ${e.maxItems} item${e.maxItems>1?"s":""}`)}if(e.uniqueItems){t.push("should not have duplicate items")}const r=typeof e.additionalItems==="undefined"||Boolean(e.additionalItems);let s="";if(e.items){if(Array.isArray(e.items)&&e.items.length>0){s=`${e.items.map((e=>formatInnerSchema(e))).join(", ")}`;if(r){if(e.additionalItems&&isObject(e.additionalItems)&&Object.keys(e.additionalItems).length>0){t.push(`additional items should be ${formatInnerSchema(e.additionalItems)}`)}}}else if(e.items&&Object.keys(e.items).length>0){s=`${formatInnerSchema(e.items)}`}else{s="any"}}else{s="any"}if(e.contains&&Object.keys(e.contains).length>0){t.push(`should contains at least one ${this.formatSchema(e.contains)} item`)}return`[${s}${r?", ...":""}]${t.length>0?` (${t.join(", ")})`:""}`}if(likeObject(e)){n=true;const t=[];if(typeof e.minProperties==="number"){t.push(`should not have fewer than ${e.minProperties} ${e.minProperties>1?"properties":"property"}`)}if(typeof e.maxProperties==="number"){t.push(`should not have more than ${e.maxProperties} ${e.minProperties&&e.minProperties>1?"properties":"property"}`)}if(e.patternProperties&&Object.keys(e.patternProperties).length>0){const r=Object.keys(e.patternProperties);t.push(`additional property names should match pattern${r.length>1?"s":""} ${r.map((e=>JSON.stringify(e))).join(" | ")}`)}const r=e.properties?Object.keys(e.properties):[];const s=e.required?e.required:[];const a=[...new Set([].concat(s).concat(r))];const o=a.map((e=>{const t=s.includes(e);return`${e}${t?"":"?"}`})).concat(typeof e.additionalProperties==="undefined"||Boolean(e.additionalProperties)?e.additionalProperties&&isObject(e.additionalProperties)?[`<key>: ${formatInnerSchema(e.additionalProperties)}`]:["…"]:[]).join(", ");const{dependencies:i,propertyNames:c,patternRequired:u}=e;if(i){Object.keys(i).forEach((e=>{const r=i[e];if(Array.isArray(r)){t.push(`should have ${r.length>1?"properties":"property"} ${r.map((e=>`'${e}'`)).join(", ")} when property '${e}' is present`)}else{t.push(`should be valid according to the schema ${formatInnerSchema(r)} when property '${e}' is present`)}}))}if(c&&Object.keys(c).length>0){t.push(`each property name should match format ${JSON.stringify(e.propertyNames.format)}`)}if(u&&u.length>0){t.push(`should have property matching pattern ${u.map((e=>JSON.stringify(e)))}`)}return`object {${o?` ${o} `:""}}${t.length>0?` (${t.join(", ")})`:""}`}if(likeNull(e)){return`${t?"":"non-"}null`}if(Array.isArray(e.type)){return`${e.type.join(" | ")}`}return JSON.stringify(e,null,2)}getSchemaPartText(e,t,r=false,n=true){if(!e){return""}if(Array.isArray(t)){for(let r=0;r<t.length;r++){const n=e[t[r]];if(n){e=n}else{break}}}while(e.$ref){e=this.getSchemaPart(e.$ref)}let s=`${this.formatSchema(e,n)}${r?".":""}`;if(e.description){s+=`\n-> ${e.description}`}if(e.link){s+=`\n-> Read more at ${e.link}`}return s}getSchemaPartDescription(e){if(!e){return""}while(e.$ref){e=this.getSchemaPart(e.$ref)}let t="";if(e.description){t+=`\n-> ${e.description}`}if(e.link){t+=`\n-> Read more at ${e.link}`}return t}formatValidationError(e){const{keyword:t,instancePath:r}=e;const n=r.split("/");const s=[];const a=n.reduce(((e,t)=>{if(t.length>0){if(isNumeric(t)){e.push(`[${t}]`)}else if(/^\[/.test(t)){e.push(t)}else{e.push(`.${t}`)}}return e}),s).join("");const o=`${this.baseDataPath}${a}`;switch(t){case"type":{const{parentSchema:t,params:r}=e;switch(r.type){case"number":return`${o} should be a ${this.getSchemaPartText(t,false,true)}`;case"integer":return`${o} should be an ${this.getSchemaPartText(t,false,true)}`;case"string":return`${o} should be a ${this.getSchemaPartText(t,false,true)}`;case"boolean":return`${o} should be a ${this.getSchemaPartText(t,false,true)}`;case"array":return`${o} should be an array:\n${this.getSchemaPartText(t)}`;case"object":return`${o} should be an object:\n${this.getSchemaPartText(t)}`;case"null":return`${o} should be a ${this.getSchemaPartText(t,false,true)}`;default:return`${o} should be:\n${this.getSchemaPartText(t)}`}}case"instanceof":{const{parentSchema:t}=e;return`${o} should be an instance of ${this.getSchemaPartText(t,false,true)}`}case"pattern":{const{params:t,parentSchema:r}=e;const{pattern:n}=t;return`${o} should match pattern ${JSON.stringify(n)}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"format":{const{params:t,parentSchema:r}=e;const{format:n}=t;return`${o} should match format ${JSON.stringify(n)}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"formatMinimum":case"formatExclusiveMinimum":case"formatMaximum":case"formatExclusiveMaximum":{const{params:t,parentSchema:r}=e;const{comparison:n,limit:s}=t;return`${o} should be ${n} ${JSON.stringify(s)}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"minimum":case"maximum":case"exclusiveMinimum":case"exclusiveMaximum":{const{parentSchema:t,params:r}=e;const{comparison:n,limit:s}=r;const[,...a]=getHints(t,true);if(a.length===0){a.push(`should be ${n} ${s}`)}return`${o} ${a.join(" ")}${getSchemaNonTypes(t)}.${this.getSchemaPartDescription(t)}`}case"multipleOf":{const{params:t,parentSchema:r}=e;const{multipleOf:n}=t;return`${o} should be multiple of ${n}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"patternRequired":{const{params:t,parentSchema:r}=e;const{missingPattern:n}=t;return`${o} should have property matching pattern ${JSON.stringify(n)}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"minLength":{const{params:t,parentSchema:r}=e;const{limit:n}=t;if(n===1){return`${o} should be a non-empty string${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}const s=n-1;return`${o} should be longer than ${s} character${s>1?"s":""}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"minItems":{const{params:t,parentSchema:r}=e;const{limit:n}=t;if(n===1){return`${o} should be a non-empty array${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}return`${o} should not have fewer than ${n} items${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"minProperties":{const{params:t,parentSchema:r}=e;const{limit:n}=t;if(n===1){return`${o} should be a non-empty object${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}return`${o} should not have fewer than ${n} properties${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"maxLength":{const{params:t,parentSchema:r}=e;const{limit:n}=t;const s=n+1;return`${o} should be shorter than ${s} character${s>1?"s":""}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"maxItems":{const{params:t,parentSchema:r}=e;const{limit:n}=t;return`${o} should not have more than ${n} items${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"maxProperties":{const{params:t,parentSchema:r}=e;const{limit:n}=t;return`${o} should not have more than ${n} properties${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"uniqueItems":{const{params:t,parentSchema:r}=e;const{i:n}=t;return`${o} should not contain the item '${e.data[n]}' twice${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"additionalItems":{const{params:t,parentSchema:r}=e;const{limit:n}=t;return`${o} should not have more than ${n} items${getSchemaNonTypes(r)}. These items are valid:\n${this.getSchemaPartText(r)}`}case"contains":{const{parentSchema:t}=e;return`${o} should contains at least one ${this.getSchemaPartText(t,["contains"])} item${getSchemaNonTypes(t)}.`}case"required":{const{parentSchema:t,params:r}=e;const n=r.missingProperty.replace(/^\./,"");const s=t&&Boolean(t.properties&&t.properties[n]);return`${o} misses the property '${n}'${getSchemaNonTypes(t)}.${s?` Should be:\n${this.getSchemaPartText(t,["properties",n])}`:this.getSchemaPartDescription(t)}`}case"additionalProperties":{const{params:t,parentSchema:r}=e;const{additionalProperty:n}=t;return`${o} has an unknown property '${n}'${getSchemaNonTypes(r)}. These properties are valid:\n${this.getSchemaPartText(r)}`}case"dependencies":{const{params:t,parentSchema:r}=e;const{property:n,deps:s}=t;const a=s.split(",").map((e=>`'${e.trim()}'`)).join(", ");return`${o} should have properties ${a} when property '${n}' is present${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"propertyNames":{const{params:t,parentSchema:r,schema:n}=e;const{propertyName:s}=t;return`${o} property name '${s}' is invalid${getSchemaNonTypes(r)}. Property names should be match format ${JSON.stringify(n.format)}.${this.getSchemaPartDescription(r)}`}case"enum":{const{parentSchema:t}=e;if(t&&t.enum&&t.enum.length===1){return`${o} should be ${this.getSchemaPartText(t,false,true)}`}return`${o} should be one of these:\n${this.getSchemaPartText(t)}`}case"const":{const{parentSchema:t}=e;return`${o} should be equal to constant ${this.getSchemaPartText(t,false,true)}`}case"not":{const t=likeObject(e.parentSchema)?`\n${this.getSchemaPartText(e.parentSchema)}`:"";const r=this.getSchemaPartText(e.schema,false,false,false);if(canApplyNot(e.schema)){return`${o} should be any ${r}${t}.`}const{schema:n,parentSchema:s}=e;return`${o} should not be ${this.getSchemaPartText(n,false,true)}${s&&likeObject(s)?`\n${this.getSchemaPartText(s)}`:""}`}case"oneOf":case"anyOf":{const{parentSchema:t,children:r}=e;if(r&&r.length>0){if(e.schema.length===1){const e=r[r.length-1];const n=r.slice(0,r.length-1);return this.formatValidationError(Object.assign({},e,{children:n,parentSchema:Object.assign({},t,e.parentSchema)}))}let n=filterChildren(r);if(n.length===1){return this.formatValidationError(n[0])}n=groupChildrenByFirstChild(n);return`${o} should be one of these:\n${this.getSchemaPartText(t)}\nDetails:\n${n.map((e=>` * ${indent(this.formatValidationError(e)," ")}`)).join("\n")}`}return`${o} should be one of these:\n${this.getSchemaPartText(t)}`}case"if":{const{params:t,parentSchema:r}=e;const{failingKeyword:n}=t;return`${o} should match "${n}" schema:\n${this.getSchemaPartText(r,[n])}`}case"absolutePath":{const{message:t,parentSchema:r}=e;return`${o}: ${t}${this.getSchemaPartDescription(r)}`}default:{const{message:t,parentSchema:r}=e;const n=JSON.stringify(e,null,2);return`${o} ${t} (${n}).\n${this.getSchemaPartText(r,false)}`}}}formatValidationErrors(e){return e.map((e=>{let t=this.formatValidationError(e);if(this.postFormatter){t=this.postFormatter(t,e)}return` - ${indent(t," ")}`})).join("\n")}}var o=ValidationError;t["default"]=o},299:function(e,t,r){"use strict";const{validate:n,ValidationError:s}=r(4954);e.exports={validate:n,ValidationError:s}},8766:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;function errorMessage(e,t,r){return{dataPath:undefined,schemaPath:undefined,keyword:"absolutePath",params:{absolutePath:r},message:e,parentSchema:t}}function getErrorFor(e,t,r){const n=e?`The provided value ${JSON.stringify(r)} is not an absolute path!`:`A relative path is expected. However, the provided value ${JSON.stringify(r)} is an absolute path!`;return errorMessage(n,t,r)}function addAbsolutePathKeyword(e){e.addKeyword({keyword:"absolutePath",type:"string",errors:true,compile(e,t){const callback=r=>{let n=true;const s=r.includes("!");if(s){callback.errors=[errorMessage(`The provided value ${JSON.stringify(r)} contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.`,t,r)];n=false}const a=e===/^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(r);if(!a){callback.errors=[getErrorFor(e,t,r)];n=false}return n};callback.errors=[];return callback}});return e}var r=addAbsolutePathKeyword;t["default"]=r},2393:function(e){"use strict";class Range{static getOperator(e,t){if(e==="left"){return t?">":">="}return t?"<":"<="}static formatRight(e,t,r){if(t===false){return Range.formatLeft(e,!t,!r)}return`should be ${Range.getOperator("right",r)} ${e}`}static formatLeft(e,t,r){if(t===false){return Range.formatRight(e,!t,!r)}return`should be ${Range.getOperator("left",r)} ${e}`}static formatRange(e,t,r,n,s){let a="should be";a+=` ${Range.getOperator(s?"left":"right",s?r:!r)} ${e} `;a+=s?"and":"or";a+=` ${Range.getOperator(s?"right":"left",s?n:!n)} ${t}`;return a}static getRangeValue(e,t){let r=t?Infinity:-Infinity;let n=-1;const s=t?([e])=>e<=r:([e])=>e>=r;for(let t=0;t<e.length;t++){if(s(e[t])){[r]=e[t];n=t}}if(n>-1){return e[n]}return[Infinity,true]}constructor(){this._left=[];this._right=[]}left(e,t=false){this._left.push([e,t])}right(e,t=false){this._right.push([e,t])}format(e=true){const[t,r]=Range.getRangeValue(this._left,e);const[n,s]=Range.getRangeValue(this._right,!e);if(!Number.isFinite(t)&&!Number.isFinite(n)){return""}const a=r?t+1:t;const o=s?n-1:n;if(a===o){return`should be ${e?"":"!"}= ${a}`}if(Number.isFinite(t)&&!Number.isFinite(n)){return Range.formatLeft(t,e,r)}if(!Number.isFinite(t)&&Number.isFinite(n)){return Range.formatRight(n,e,s)}return Range.formatRange(t,n,r,s,e)}}e.exports=Range},1485:function(e,t,r){"use strict";const n=r(2393);e.exports.stringHints=function stringHints(e,t){const r=[];let n="string";const s={...e};if(!t){const e=s.minLength;const t=s.formatMinimum;s.minLength=s.maxLength;s.maxLength=e;s.formatMinimum=s.formatMaximum;s.formatMaximum=t}if(typeof s.minLength==="number"){if(s.minLength===1){n="non-empty string"}else{const e=Math.max(s.minLength-1,0);r.push(`should be longer than ${e} character${e>1?"s":""}`)}}if(typeof s.maxLength==="number"){if(s.maxLength===0){n="empty string"}else{const e=s.maxLength+1;r.push(`should be shorter than ${e} character${e>1?"s":""}`)}}if(s.pattern){r.push(`should${t?"":" not"} match pattern ${JSON.stringify(s.pattern)}`)}if(s.format){r.push(`should${t?"":" not"} match format ${JSON.stringify(s.format)}`)}if(s.formatMinimum){r.push(`should be ${s.formatExclusiveMinimum?">":">="} ${JSON.stringify(s.formatMinimum)}`)}if(s.formatMaximum){r.push(`should be ${s.formatExclusiveMaximum?"<":"<="} ${JSON.stringify(s.formatMaximum)}`)}return[n].concat(r)};e.exports.numberHints=function numberHints(e,t){const r=[e.type==="integer"?"integer":"number"];const s=new n;if(typeof e.minimum==="number"){s.left(e.minimum)}if(typeof e.exclusiveMinimum==="number"){s.left(e.exclusiveMinimum,true)}if(typeof e.maximum==="number"){s.right(e.maximum)}if(typeof e.exclusiveMaximum==="number"){s.right(e.exclusiveMaximum,true)}const a=s.format(t);if(a){r.push(a)}if(typeof e.multipleOf==="number"){r.push(`should${t?"":" not"} be multiple of ${e.multipleOf}`)}return r}},4954:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ValidationError",{enumerable:true,get:function(){return s.default}});t.validate=validate;var n=_interopRequireDefault(r(8766));var s=_interopRequireDefault(r(7677));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=r(7100)["default"];const o=r(7320)["default"];const i=r(1878)["default"];const c=new a({strict:false,allErrors:true,verbose:true,$data:true});o(c,["instanceof","patternRequired"]);i(c,{keywords:true});(0,n.default)(c);function validate(e,t,r){let n=[];if(Array.isArray(t)){n=Array.from(t,(t=>validateObject(e,t)));n.forEach(((e,t)=>{const applyPrefix=e=>{e.instancePath=`[${t}]${e.instancePath}`;if(e.children){e.children.forEach(applyPrefix)}};e.forEach(applyPrefix)}));n=n.reduce(((e,t)=>{e.push(...t);return e}),[])}else{n=validateObject(e,t)}if(n.length>0){throw new s.default(n,e,r)}}function validateObject(e,t){const r=c.compile(e);const n=r(t);if(n)return[];return r.errors?filterErrors(r.errors):[]}function filterErrors(e){let t=[];for(const r of e){const{instancePath:e}=r;let n=[];t=t.filter((t=>{if(t.instancePath.includes(e)){if(t.children){n=n.concat(t.children.slice(0))}t.children=undefined;n.push(t);return false}return true}));if(n.length){r.children=n}t.push(r)}return t}},2661:function(e,t,r){"use strict";var n=r(1285);var s=16;var a=generateUID();var o=new RegExp('(\\\\)?"@__(F|R|D|M|S|A|U|I|B|L)-'+a+'-(\\d+)__@"',"g");var i=/\{\s*\[native code\]\s*\}/g;var c=/function.*?\(/;var u=/.*?=>.*?/;var l=/[<>\/\u2028\u2029]/g;var f=["*","async"];var d={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function escapeUnsafeChars(e){return d[e]}function generateUID(){var e=n(s);var t="";for(var r=0;r<s;++r){t+=e[r].toString(16)}return t}function deleteFunctions(e){var t=[];for(var r in e){if(typeof e[r]==="function"){t.push(r)}}for(var n=0;n<t.length;n++){delete e[t[n]]}}e.exports=function serialize(e,t){t||(t={});if(typeof t==="number"||typeof t==="string"){t={space:t}}var r=[];var n=[];var s=[];var d=[];var p=[];var h=[];var m=[];var y=[];var g=[];var v=[];function replacer(e,o){if(t.ignoreFunction){deleteFunctions(o)}if(!o&&o!==undefined){return o}var i=this[e];var c=typeof i;if(c==="object"){if(i instanceof RegExp){return"@__R-"+a+"-"+(n.push(i)-1)+"__@"}if(i instanceof Date){return"@__D-"+a+"-"+(s.push(i)-1)+"__@"}if(i instanceof Map){return"@__M-"+a+"-"+(d.push(i)-1)+"__@"}if(i instanceof Set){return"@__S-"+a+"-"+(p.push(i)-1)+"__@"}if(i instanceof Array){var u=i.filter((function(){return true})).length!==i.length;if(u){return"@__A-"+a+"-"+(h.push(i)-1)+"__@"}}if(i instanceof URL){return"@__L-"+a+"-"+(v.push(i)-1)+"__@"}}if(c==="function"){return"@__F-"+a+"-"+(r.push(i)-1)+"__@"}if(c==="undefined"){return"@__U-"+a+"-"+(m.push(i)-1)+"__@"}if(c==="number"&&!isNaN(i)&&!isFinite(i)){return"@__I-"+a+"-"+(y.push(i)-1)+"__@"}if(c==="bigint"){return"@__B-"+a+"-"+(g.push(i)-1)+"__@"}return o}function serializeFunc(e){var t=e.toString();if(i.test(t)){throw new TypeError("Serializing native function: "+e.name)}if(c.test(t)){return t}if(u.test(t)){return t}var r=t.indexOf("(");var n=t.substr(0,r).trim().split(" ").filter((function(e){return e.length>0}));var s=n.filter((function(e){return f.indexOf(e)===-1}));if(s.length>0){return(n.indexOf("async")>-1?"async ":"")+"function"+(n.join("").indexOf("*")>-1?"*":"")+t.substr(r)}return t}if(t.ignoreFunction&&typeof e==="function"){e=undefined}if(e===undefined){return String(e)}var b;if(t.isJSON&&!t.space){b=JSON.stringify(e)}else{b=JSON.stringify(e,t.isJSON?null:replacer,t.space)}if(typeof b!=="string"){return String(b)}if(t.unsafe!==true){b=b.replace(l,escapeUnsafeChars)}if(r.length===0&&n.length===0&&s.length===0&&d.length===0&&p.length===0&&h.length===0&&m.length===0&&y.length===0&&g.length===0&&v.length===0){return b}return b.replace(o,(function(e,a,o,i){if(a){return e}if(o==="D"){return'new Date("'+s[i].toISOString()+'")'}if(o==="R"){return"new RegExp("+serialize(n[i].source)+', "'+n[i].flags+'")'}if(o==="M"){return"new Map("+serialize(Array.from(d[i].entries()),t)+")"}if(o==="S"){return"new Set("+serialize(Array.from(p[i].values()),t)+")"}if(o==="A"){return"Array.prototype.slice.call("+serialize(Object.assign({length:h[i].length},h[i]),t)+")"}if(o==="U"){return"undefined"}if(o==="I"){return y[i]}if(o==="B"){return'BigInt("'+g[i]+'")'}if(o==="L"){return'new URL("'+v[i].toString()+'")'}var c=r[i];return serializeFunc(c)}))}},954:function(e,t,r){"use strict";
44
+ e.exports=runParallel;const n=r(8453);function runParallel(e,t){let r,s,a;let o=true;if(Array.isArray(e)){r=[];s=e.length}else{a=Object.keys(e);r={};s=a.length}function done(e){function end(){if(t)t(e,r);t=null}if(o)n(end);else end()}function each(e,t,n){r[e]=n;if(--s===0||t){done(t)}}if(!s){done(null)}else if(a){a.forEach((function(t){e[t]((function(e,r){each(t,e,r)}))}))}else{e.forEach((function(e,t){e((function(e,r){each(t,e,r)}))}))}o=false}},1983:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;const{stringHints:n,numberHints:s}=r(1605);const a={type:1,not:1,oneOf:1,anyOf:1,if:1,enum:1,const:1,instanceof:1,required:2,pattern:2,patternRequired:2,format:2,formatMinimum:2,formatMaximum:2,minimum:2,exclusiveMinimum:2,maximum:2,exclusiveMaximum:2,multipleOf:2,uniqueItems:2,contains:2,minLength:2,maxLength:2,minItems:2,maxItems:2,minProperties:2,maxProperties:2,dependencies:2,propertyNames:2,additionalItems:2,additionalProperties:2,absolutePath:2};function isNumeric(e){return/^-?\d+$/.test(e)}function filterMax(e,t){const r=e.reduce(((e,r)=>Math.max(e,t(r))),0);return e.filter((e=>t(e)===r))}function filterChildren(e){let t=e;t=filterMax(t,(e=>e.instancePath?e.instancePath.length:0));t=filterMax(t,(e=>a[e.keyword]||2));return t}function findAllChildren(e,t){let r=e.length-1;const predicate=t=>e[r].schemaPath.indexOf(t)!==0;while(r>-1&&!t.every(predicate)){if(e[r].keyword==="anyOf"||e[r].keyword==="oneOf"){const t=extractRefs(e[r]);const n=findAllChildren(e.slice(0,r),t.concat(e[r].schemaPath));r=n-1}else{r-=1}}return r+1}function extractRefs(e){const{schema:t}=e;if(!Array.isArray(t)){return[]}return t.map((({$ref:e})=>e)).filter((e=>e))}function groupChildrenByFirstChild(e){const t=[];let r=e.length-1;while(r>0){const n=e[r];if(n.keyword==="anyOf"||n.keyword==="oneOf"){const s=extractRefs(n);const a=findAllChildren(e.slice(0,r),s.concat(n.schemaPath));if(a!==r){t.push(Object.assign({},n,{children:e.slice(a,r)}));r=a}else{t.push(n)}}else{t.push(n)}r-=1}if(r===0){t.push(e[r])}return t.reverse()}function indent(e,t){return e.replace(/\n(?!$)/g,`\n${t}`)}function hasNotInSchema(e){return!!e.not}function findFirstTypedSchema(e){if(hasNotInSchema(e)){return findFirstTypedSchema(e.not)}return e}function canApplyNot(e){const t=findFirstTypedSchema(e);return likeNumber(t)||likeInteger(t)||likeString(t)||likeNull(t)||likeBoolean(t)}function isObject(e){return typeof e==="object"&&e!==null}function likeNumber(e){return e.type==="number"||typeof e.minimum!=="undefined"||typeof e.exclusiveMinimum!=="undefined"||typeof e.maximum!=="undefined"||typeof e.exclusiveMaximum!=="undefined"||typeof e.multipleOf!=="undefined"}function likeInteger(e){return e.type==="integer"||typeof e.minimum!=="undefined"||typeof e.exclusiveMinimum!=="undefined"||typeof e.maximum!=="undefined"||typeof e.exclusiveMaximum!=="undefined"||typeof e.multipleOf!=="undefined"}function likeString(e){return e.type==="string"||typeof e.minLength!=="undefined"||typeof e.maxLength!=="undefined"||typeof e.pattern!=="undefined"||typeof e.format!=="undefined"||typeof e.formatMinimum!=="undefined"||typeof e.formatMaximum!=="undefined"}function likeBoolean(e){return e.type==="boolean"}function likeArray(e){return e.type==="array"||typeof e.minItems==="number"||typeof e.maxItems==="number"||typeof e.uniqueItems!=="undefined"||typeof e.items!=="undefined"||typeof e.additionalItems!=="undefined"||typeof e.contains!=="undefined"}function likeObject(e){return e.type==="object"||typeof e.minProperties!=="undefined"||typeof e.maxProperties!=="undefined"||typeof e.required!=="undefined"||typeof e.properties!=="undefined"||typeof e.patternProperties!=="undefined"||typeof e.additionalProperties!=="undefined"||typeof e.dependencies!=="undefined"||typeof e.propertyNames!=="undefined"||typeof e.patternRequired!=="undefined"}function likeNull(e){return e.type==="null"}function getArticle(e){if(/^[aeiou]/i.test(e)){return"an"}return"a"}function getSchemaNonTypes(e){if(!e){return""}if(!e.type){if(likeNumber(e)||likeInteger(e)){return" | should be any non-number"}if(likeString(e)){return" | should be any non-string"}if(likeArray(e)){return" | should be any non-array"}if(likeObject(e)){return" | should be any non-object"}}return""}function formatHints(e){return e.length>0?`(${e.join(", ")})`:""}function getHints(e,t){if(likeNumber(e)||likeInteger(e)){return s(e,t)}else if(likeString(e)){return n(e,t)}return[]}class ValidationError extends Error{constructor(e,t,r={}){super();this.name="ValidationError";this.errors=e;this.schema=t;let n;let s;if(t.title&&(!r.name||!r.baseDataPath)){const e=t.title.match(/^(.+) (.+)$/);if(e){if(!r.name){[,n]=e}if(!r.baseDataPath){[,,s]=e}}}this.headerName=r.name||n||"Object";this.baseDataPath=r.baseDataPath||s||"configuration";this.postFormatter=r.postFormatter||null;const a=`Invalid ${this.baseDataPath} object. ${this.headerName} has been initialized using ${getArticle(this.baseDataPath)} ${this.baseDataPath} object that does not match the API schema.\n`;this.message=`${a}${this.formatValidationErrors(e)}`;Error.captureStackTrace(this,this.constructor)}getSchemaPart(e){const t=e.split("/");let r=this.schema;for(let e=1;e<t.length;e++){const n=r[t[e]];if(!n){break}r=n}return r}formatSchema(e,t=true,r=[]){let n=t;const formatInnerSchema=(t,s)=>{if(!s){return this.formatSchema(t,n,r)}if(r.includes(t)){return"(recursive)"}return this.formatSchema(t,n,r.concat(e))};if(hasNotInSchema(e)&&!likeObject(e)){if(canApplyNot(e.not)){n=!t;return formatInnerSchema(e.not)}const r=!e.not.not;const s=t?"":"non ";n=!t;return r?s+formatInnerSchema(e.not):formatInnerSchema(e.not)}if(e.instanceof){const{instanceof:t}=e;const r=!Array.isArray(t)?[t]:t;return r.map((e=>e==="Function"?"function":e)).join(" | ")}if(e.enum){return e.enum.map((e=>JSON.stringify(e))).join(" | ")}if(typeof e.const!=="undefined"){return JSON.stringify(e.const)}if(e.oneOf){return e.oneOf.map((e=>formatInnerSchema(e,true))).join(" | ")}if(e.anyOf){return e.anyOf.map((e=>formatInnerSchema(e,true))).join(" | ")}if(e.allOf){return e.allOf.map((e=>formatInnerSchema(e,true))).join(" & ")}if(e.if){const{if:t,then:r,else:n}=e;return`${t?`if ${formatInnerSchema(t)}`:""}${r?` then ${formatInnerSchema(r)}`:""}${n?` else ${formatInnerSchema(n)}`:""}`}if(e.$ref){return formatInnerSchema(this.getSchemaPart(e.$ref),true)}if(likeNumber(e)||likeInteger(e)){const[r,...n]=getHints(e,t);const s=`${r}${n.length>0?` ${formatHints(n)}`:""}`;return t?s:n.length>0?`non-${r} | ${s}`:`non-${r}`}if(likeString(e)){const[r,...n]=getHints(e,t);const s=`${r}${n.length>0?` ${formatHints(n)}`:""}`;return t?s:s==="string"?"non-string":`non-string | ${s}`}if(likeBoolean(e)){return`${t?"":"non-"}boolean`}if(likeArray(e)){n=true;const t=[];if(typeof e.minItems==="number"){t.push(`should not have fewer than ${e.minItems} item${e.minItems>1?"s":""}`)}if(typeof e.maxItems==="number"){t.push(`should not have more than ${e.maxItems} item${e.maxItems>1?"s":""}`)}if(e.uniqueItems){t.push("should not have duplicate items")}const r=typeof e.additionalItems==="undefined"||Boolean(e.additionalItems);let s="";if(e.items){if(Array.isArray(e.items)&&e.items.length>0){s=`${e.items.map((e=>formatInnerSchema(e))).join(", ")}`;if(r){if(e.additionalItems&&isObject(e.additionalItems)&&Object.keys(e.additionalItems).length>0){t.push(`additional items should be ${formatInnerSchema(e.additionalItems)}`)}}}else if(e.items&&Object.keys(e.items).length>0){s=`${formatInnerSchema(e.items)}`}else{s="any"}}else{s="any"}if(e.contains&&Object.keys(e.contains).length>0){t.push(`should contains at least one ${this.formatSchema(e.contains)} item`)}return`[${s}${r?", ...":""}]${t.length>0?` (${t.join(", ")})`:""}`}if(likeObject(e)){n=true;const t=[];if(typeof e.minProperties==="number"){t.push(`should not have fewer than ${e.minProperties} ${e.minProperties>1?"properties":"property"}`)}if(typeof e.maxProperties==="number"){t.push(`should not have more than ${e.maxProperties} ${e.minProperties&&e.minProperties>1?"properties":"property"}`)}if(e.patternProperties&&Object.keys(e.patternProperties).length>0){const r=Object.keys(e.patternProperties);t.push(`additional property names should match pattern${r.length>1?"s":""} ${r.map((e=>JSON.stringify(e))).join(" | ")}`)}const r=e.properties?Object.keys(e.properties):[];const s=e.required?e.required:[];const a=[...new Set([].concat(s).concat(r))];const o=a.map((e=>{const t=s.includes(e);return`${e}${t?"":"?"}`})).concat(typeof e.additionalProperties==="undefined"||Boolean(e.additionalProperties)?e.additionalProperties&&isObject(e.additionalProperties)?[`<key>: ${formatInnerSchema(e.additionalProperties)}`]:["…"]:[]).join(", ");const{dependencies:i,propertyNames:c,patternRequired:u}=e;if(i){Object.keys(i).forEach((e=>{const r=i[e];if(Array.isArray(r)){t.push(`should have ${r.length>1?"properties":"property"} ${r.map((e=>`'${e}'`)).join(", ")} when property '${e}' is present`)}else{t.push(`should be valid according to the schema ${formatInnerSchema(r)} when property '${e}' is present`)}}))}if(c&&Object.keys(c).length>0){t.push(`each property name should match format ${JSON.stringify(e.propertyNames.format)}`)}if(u&&u.length>0){t.push(`should have property matching pattern ${u.map((e=>JSON.stringify(e)))}`)}return`object {${o?` ${o} `:""}}${t.length>0?` (${t.join(", ")})`:""}`}if(likeNull(e)){return`${t?"":"non-"}null`}if(Array.isArray(e.type)){return`${e.type.join(" | ")}`}return JSON.stringify(e,null,2)}getSchemaPartText(e,t,r=false,n=true){if(!e){return""}if(Array.isArray(t)){for(let r=0;r<t.length;r++){const n=e[t[r]];if(n){e=n}else{break}}}while(e.$ref){e=this.getSchemaPart(e.$ref)}let s=`${this.formatSchema(e,n)}${r?".":""}`;if(e.description){s+=`\n-> ${e.description}`}if(e.link){s+=`\n-> Read more at ${e.link}`}return s}getSchemaPartDescription(e){if(!e){return""}while(e.$ref){e=this.getSchemaPart(e.$ref)}let t="";if(e.description){t+=`\n-> ${e.description}`}if(e.link){t+=`\n-> Read more at ${e.link}`}return t}formatValidationError(e){const{keyword:t,instancePath:r}=e;const n=r.split("/");const s=[];const a=n.reduce(((e,t)=>{if(t.length>0){if(isNumeric(t)){e.push(`[${t}]`)}else if(/^\[/.test(t)){e.push(t)}else{e.push(`.${t}`)}}return e}),s).join("");const o=`${this.baseDataPath}${a}`;switch(t){case"type":{const{parentSchema:t,params:r}=e;switch(r.type){case"number":return`${o} should be a ${this.getSchemaPartText(t,false,true)}`;case"integer":return`${o} should be an ${this.getSchemaPartText(t,false,true)}`;case"string":return`${o} should be a ${this.getSchemaPartText(t,false,true)}`;case"boolean":return`${o} should be a ${this.getSchemaPartText(t,false,true)}`;case"array":return`${o} should be an array:\n${this.getSchemaPartText(t)}`;case"object":return`${o} should be an object:\n${this.getSchemaPartText(t)}`;case"null":return`${o} should be a ${this.getSchemaPartText(t,false,true)}`;default:return`${o} should be:\n${this.getSchemaPartText(t)}`}}case"instanceof":{const{parentSchema:t}=e;return`${o} should be an instance of ${this.getSchemaPartText(t,false,true)}`}case"pattern":{const{params:t,parentSchema:r}=e;const{pattern:n}=t;return`${o} should match pattern ${JSON.stringify(n)}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"format":{const{params:t,parentSchema:r}=e;const{format:n}=t;return`${o} should match format ${JSON.stringify(n)}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"formatMinimum":case"formatExclusiveMinimum":case"formatMaximum":case"formatExclusiveMaximum":{const{params:t,parentSchema:r}=e;const{comparison:n,limit:s}=t;return`${o} should be ${n} ${JSON.stringify(s)}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"minimum":case"maximum":case"exclusiveMinimum":case"exclusiveMaximum":{const{parentSchema:t,params:r}=e;const{comparison:n,limit:s}=r;const[,...a]=getHints(t,true);if(a.length===0){a.push(`should be ${n} ${s}`)}return`${o} ${a.join(" ")}${getSchemaNonTypes(t)}.${this.getSchemaPartDescription(t)}`}case"multipleOf":{const{params:t,parentSchema:r}=e;const{multipleOf:n}=t;return`${o} should be multiple of ${n}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"patternRequired":{const{params:t,parentSchema:r}=e;const{missingPattern:n}=t;return`${o} should have property matching pattern ${JSON.stringify(n)}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"minLength":{const{params:t,parentSchema:r}=e;const{limit:n}=t;if(n===1){return`${o} should be a non-empty string${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}const s=n-1;return`${o} should be longer than ${s} character${s>1?"s":""}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"minItems":{const{params:t,parentSchema:r}=e;const{limit:n}=t;if(n===1){return`${o} should be a non-empty array${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}return`${o} should not have fewer than ${n} items${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"minProperties":{const{params:t,parentSchema:r}=e;const{limit:n}=t;if(n===1){return`${o} should be a non-empty object${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}return`${o} should not have fewer than ${n} properties${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"maxLength":{const{params:t,parentSchema:r}=e;const{limit:n}=t;const s=n+1;return`${o} should be shorter than ${s} character${s>1?"s":""}${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"maxItems":{const{params:t,parentSchema:r}=e;const{limit:n}=t;return`${o} should not have more than ${n} items${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"maxProperties":{const{params:t,parentSchema:r}=e;const{limit:n}=t;return`${o} should not have more than ${n} properties${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"uniqueItems":{const{params:t,parentSchema:r}=e;const{i:n}=t;return`${o} should not contain the item '${e.data[n]}' twice${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"additionalItems":{const{params:t,parentSchema:r}=e;const{limit:n}=t;return`${o} should not have more than ${n} items${getSchemaNonTypes(r)}. These items are valid:\n${this.getSchemaPartText(r)}`}case"contains":{const{parentSchema:t}=e;return`${o} should contains at least one ${this.getSchemaPartText(t,["contains"])} item${getSchemaNonTypes(t)}.`}case"required":{const{parentSchema:t,params:r}=e;const n=r.missingProperty.replace(/^\./,"");const s=t&&Boolean(t.properties&&t.properties[n]);return`${o} misses the property '${n}'${getSchemaNonTypes(t)}.${s?` Should be:\n${this.getSchemaPartText(t,["properties",n])}`:this.getSchemaPartDescription(t)}`}case"additionalProperties":{const{params:t,parentSchema:r}=e;const{additionalProperty:n}=t;return`${o} has an unknown property '${n}'${getSchemaNonTypes(r)}. These properties are valid:\n${this.getSchemaPartText(r)}`}case"dependencies":{const{params:t,parentSchema:r}=e;const{property:n,deps:s}=t;const a=s.split(",").map((e=>`'${e.trim()}'`)).join(", ");return`${o} should have properties ${a} when property '${n}' is present${getSchemaNonTypes(r)}.${this.getSchemaPartDescription(r)}`}case"propertyNames":{const{params:t,parentSchema:r,schema:n}=e;const{propertyName:s}=t;return`${o} property name '${s}' is invalid${getSchemaNonTypes(r)}. Property names should be match format ${JSON.stringify(n.format)}.${this.getSchemaPartDescription(r)}`}case"enum":{const{parentSchema:t}=e;if(t&&t.enum&&t.enum.length===1){return`${o} should be ${this.getSchemaPartText(t,false,true)}`}return`${o} should be one of these:\n${this.getSchemaPartText(t)}`}case"const":{const{parentSchema:t}=e;return`${o} should be equal to constant ${this.getSchemaPartText(t,false,true)}`}case"not":{const t=likeObject(e.parentSchema)?`\n${this.getSchemaPartText(e.parentSchema)}`:"";const r=this.getSchemaPartText(e.schema,false,false,false);if(canApplyNot(e.schema)){return`${o} should be any ${r}${t}.`}const{schema:n,parentSchema:s}=e;return`${o} should not be ${this.getSchemaPartText(n,false,true)}${s&&likeObject(s)?`\n${this.getSchemaPartText(s)}`:""}`}case"oneOf":case"anyOf":{const{parentSchema:t,children:r}=e;if(r&&r.length>0){if(e.schema.length===1){const e=r[r.length-1];const n=r.slice(0,r.length-1);return this.formatValidationError(Object.assign({},e,{children:n,parentSchema:Object.assign({},t,e.parentSchema)}))}let n=filterChildren(r);if(n.length===1){return this.formatValidationError(n[0])}n=groupChildrenByFirstChild(n);return`${o} should be one of these:\n${this.getSchemaPartText(t)}\nDetails:\n${n.map((e=>` * ${indent(this.formatValidationError(e)," ")}`)).join("\n")}`}return`${o} should be one of these:\n${this.getSchemaPartText(t)}`}case"if":{const{params:t,parentSchema:r}=e;const{failingKeyword:n}=t;return`${o} should match "${n}" schema:\n${this.getSchemaPartText(r,[n])}`}case"absolutePath":{const{message:t,parentSchema:r}=e;return`${o}: ${t}${this.getSchemaPartDescription(r)}`}default:{const{message:t,parentSchema:r}=e;const n=JSON.stringify(e,null,2);return`${o} ${t} (${n}).\n${this.getSchemaPartText(r,false)}`}}}formatValidationErrors(e){return e.map((e=>{let t=this.formatValidationError(e);if(this.postFormatter){t=this.postFormatter(t,e)}return` - ${indent(t," ")}`})).join("\n")}}var o=ValidationError;t["default"]=o},9048:function(e,t,r){"use strict";const{validate:n,ValidationError:s}=r(8711);e.exports={validate:n,ValidationError:s}},706:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;function errorMessage(e,t,r){return{dataPath:undefined,schemaPath:undefined,keyword:"absolutePath",params:{absolutePath:r},message:e,parentSchema:t}}function getErrorFor(e,t,r){const n=e?`The provided value ${JSON.stringify(r)} is not an absolute path!`:`A relative path is expected. However, the provided value ${JSON.stringify(r)} is an absolute path!`;return errorMessage(n,t,r)}function addAbsolutePathKeyword(e){e.addKeyword({keyword:"absolutePath",type:"string",errors:true,compile(e,t){const callback=r=>{let n=true;const s=r.includes("!");if(s){callback.errors=[errorMessage(`The provided value ${JSON.stringify(r)} contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.`,t,r)];n=false}const a=e===/^(?:[A-Za-z]:(\\|\/)|\\\\|\/)/.test(r);if(!a){callback.errors=[getErrorFor(e,t,r)];n=false}return n};callback.errors=[];return callback}});return e}var r=addAbsolutePathKeyword;t["default"]=r},3249:function(e){"use strict";class Range{static getOperator(e,t){if(e==="left"){return t?">":">="}return t?"<":"<="}static formatRight(e,t,r){if(t===false){return Range.formatLeft(e,!t,!r)}return`should be ${Range.getOperator("right",r)} ${e}`}static formatLeft(e,t,r){if(t===false){return Range.formatRight(e,!t,!r)}return`should be ${Range.getOperator("left",r)} ${e}`}static formatRange(e,t,r,n,s){let a="should be";a+=` ${Range.getOperator(s?"left":"right",s?r:!r)} ${e} `;a+=s?"and":"or";a+=` ${Range.getOperator(s?"right":"left",s?n:!n)} ${t}`;return a}static getRangeValue(e,t){let r=t?Infinity:-Infinity;let n=-1;const s=t?([e])=>e<=r:([e])=>e>=r;for(let t=0;t<e.length;t++){if(s(e[t])){[r]=e[t];n=t}}if(n>-1){return e[n]}return[Infinity,true]}constructor(){this._left=[];this._right=[]}left(e,t=false){this._left.push([e,t])}right(e,t=false){this._right.push([e,t])}format(e=true){const[t,r]=Range.getRangeValue(this._left,e);const[n,s]=Range.getRangeValue(this._right,!e);if(!Number.isFinite(t)&&!Number.isFinite(n)){return""}const a=r?t+1:t;const o=s?n-1:n;if(a===o){return`should be ${e?"":"!"}= ${a}`}if(Number.isFinite(t)&&!Number.isFinite(n)){return Range.formatLeft(t,e,r)}if(!Number.isFinite(t)&&Number.isFinite(n)){return Range.formatRight(n,e,s)}return Range.formatRange(t,n,r,s,e)}}e.exports=Range},1605:function(e,t,r){"use strict";const n=r(3249);e.exports.stringHints=function stringHints(e,t){const r=[];let n="string";const s={...e};if(!t){const e=s.minLength;const t=s.formatMinimum;s.minLength=s.maxLength;s.maxLength=e;s.formatMinimum=s.formatMaximum;s.formatMaximum=t}if(typeof s.minLength==="number"){if(s.minLength===1){n="non-empty string"}else{const e=Math.max(s.minLength-1,0);r.push(`should be longer than ${e} character${e>1?"s":""}`)}}if(typeof s.maxLength==="number"){if(s.maxLength===0){n="empty string"}else{const e=s.maxLength+1;r.push(`should be shorter than ${e} character${e>1?"s":""}`)}}if(s.pattern){r.push(`should${t?"":" not"} match pattern ${JSON.stringify(s.pattern)}`)}if(s.format){r.push(`should${t?"":" not"} match format ${JSON.stringify(s.format)}`)}if(s.formatMinimum){r.push(`should be ${s.formatExclusiveMinimum?">":">="} ${JSON.stringify(s.formatMinimum)}`)}if(s.formatMaximum){r.push(`should be ${s.formatExclusiveMaximum?"<":"<="} ${JSON.stringify(s.formatMaximum)}`)}return[n].concat(r)};e.exports.numberHints=function numberHints(e,t){const r=[e.type==="integer"?"integer":"number"];const s=new n;if(typeof e.minimum==="number"){s.left(e.minimum)}if(typeof e.exclusiveMinimum==="number"){s.left(e.exclusiveMinimum,true)}if(typeof e.maximum==="number"){s.right(e.maximum)}if(typeof e.exclusiveMaximum==="number"){s.right(e.exclusiveMaximum,true)}const a=s.format(t);if(a){r.push(a)}if(typeof e.multipleOf==="number"){r.push(`should${t?"":" not"} be multiple of ${e.multipleOf}`)}return r}},8711:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ValidationError",{enumerable:true,get:function(){return s.default}});t.validate=validate;var n=_interopRequireDefault(r(706));var s=_interopRequireDefault(r(1983));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=r(309)["default"];const o=r(6809)["default"];const i=r(5679)["default"];const c=new a({strict:false,allErrors:true,verbose:true,$data:true});o(c,["instanceof","patternRequired"]);i(c,{keywords:true});(0,n.default)(c);function validate(e,t,r){let n=[];if(Array.isArray(t)){n=Array.from(t,(t=>validateObject(e,t)));n.forEach(((e,t)=>{const applyPrefix=e=>{e.instancePath=`[${t}]${e.instancePath}`;if(e.children){e.children.forEach(applyPrefix)}};e.forEach(applyPrefix)}));n=n.reduce(((e,t)=>{e.push(...t);return e}),[])}else{n=validateObject(e,t)}if(n.length>0){throw new s.default(n,e,r)}}function validateObject(e,t){const r=c.compile(e);const n=r(t);if(n)return[];return r.errors?filterErrors(r.errors):[]}function filterErrors(e){let t=[];for(const r of e){const{instancePath:e}=r;let n=[];t=t.filter((t=>{if(t.instancePath.includes(e)){if(t.children){n=n.concat(t.children.slice(0))}t.children=undefined;n.push(t);return false}return true}));if(n.length){r.children=n}t.push(r)}return t}},4421:function(e,t,r){"use strict";var n=r(2856);var s=16;var a=generateUID();var o=new RegExp('(\\\\)?"@__(F|R|D|M|S|A|U|I|B|L)-'+a+'-(\\d+)__@"',"g");var i=/\{\s*\[native code\]\s*\}/g;var c=/function.*?\(/;var u=/.*?=>.*?/;var l=/[<>\/\u2028\u2029]/g;var f=["*","async"];var d={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function escapeUnsafeChars(e){return d[e]}function generateUID(){var e=n(s);var t="";for(var r=0;r<s;++r){t+=e[r].toString(16)}return t}function deleteFunctions(e){var t=[];for(var r in e){if(typeof e[r]==="function"){t.push(r)}}for(var n=0;n<t.length;n++){delete e[t[n]]}}e.exports=function serialize(e,t){t||(t={});if(typeof t==="number"||typeof t==="string"){t={space:t}}var r=[];var n=[];var s=[];var d=[];var p=[];var h=[];var m=[];var y=[];var g=[];var v=[];function replacer(e,o){if(t.ignoreFunction){deleteFunctions(o)}if(!o&&o!==undefined){return o}var i=this[e];var c=typeof i;if(c==="object"){if(i instanceof RegExp){return"@__R-"+a+"-"+(n.push(i)-1)+"__@"}if(i instanceof Date){return"@__D-"+a+"-"+(s.push(i)-1)+"__@"}if(i instanceof Map){return"@__M-"+a+"-"+(d.push(i)-1)+"__@"}if(i instanceof Set){return"@__S-"+a+"-"+(p.push(i)-1)+"__@"}if(i instanceof Array){var u=i.filter((function(){return true})).length!==i.length;if(u){return"@__A-"+a+"-"+(h.push(i)-1)+"__@"}}if(i instanceof URL){return"@__L-"+a+"-"+(v.push(i)-1)+"__@"}}if(c==="function"){return"@__F-"+a+"-"+(r.push(i)-1)+"__@"}if(c==="undefined"){return"@__U-"+a+"-"+(m.push(i)-1)+"__@"}if(c==="number"&&!isNaN(i)&&!isFinite(i)){return"@__I-"+a+"-"+(y.push(i)-1)+"__@"}if(c==="bigint"){return"@__B-"+a+"-"+(g.push(i)-1)+"__@"}return o}function serializeFunc(e){var t=e.toString();if(i.test(t)){throw new TypeError("Serializing native function: "+e.name)}if(c.test(t)){return t}if(u.test(t)){return t}var r=t.indexOf("(");var n=t.substr(0,r).trim().split(" ").filter((function(e){return e.length>0}));var s=n.filter((function(e){return f.indexOf(e)===-1}));if(s.length>0){return(n.indexOf("async")>-1?"async ":"")+"function"+(n.join("").indexOf("*")>-1?"*":"")+t.substr(r)}return t}if(t.ignoreFunction&&typeof e==="function"){e=undefined}if(e===undefined){return String(e)}var b;if(t.isJSON&&!t.space){b=JSON.stringify(e)}else{b=JSON.stringify(e,t.isJSON?null:replacer,t.space)}if(typeof b!=="string"){return String(b)}if(t.unsafe!==true){b=b.replace(l,escapeUnsafeChars)}if(r.length===0&&n.length===0&&s.length===0&&d.length===0&&p.length===0&&h.length===0&&m.length===0&&y.length===0&&g.length===0&&v.length===0){return b}return b.replace(o,(function(e,a,o,i){if(a){return e}if(o==="D"){return'new Date("'+s[i].toISOString()+'")'}if(o==="R"){return"new RegExp("+serialize(n[i].source)+', "'+n[i].flags+'")'}if(o==="M"){return"new Map("+serialize(Array.from(d[i].entries()),t)+")"}if(o==="S"){return"new Set("+serialize(Array.from(p[i].values()),t)+")"}if(o==="A"){return"Array.prototype.slice.call("+serialize(Object.assign({length:h[i].length},h[i]),t)+")"}if(o==="U"){return"undefined"}if(o==="I"){return y[i]}if(o==="B"){return'BigInt("'+g[i]+'")'}if(o==="L"){return'new URL("'+v[i].toString()+'")'}var c=r[i];return serializeFunc(c)}))}},211:function(e,t,r){"use strict";
45
45
  /*!
46
46
  * to-regex-range <https://github.com/micromatch/to-regex-range>
47
47
  *
48
48
  * Copyright (c) 2015-present, Jon Schlinkert.
49
49
  * Released under the MIT License.
50
- */const n=r(8224);const toRegexRange=(e,t,r)=>{if(n(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(n(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let s={relaxZeros:true,...r};if(typeof s.strictZeros==="boolean"){s.relaxZeros=s.strictZeros===false}let a=String(s.relaxZeros);let o=String(s.shorthand);let i=String(s.capture);let c=String(s.wrap);let u=e+":"+t+"="+a+o+i+c;if(toRegexRange.cache.hasOwnProperty(u)){return toRegexRange.cache[u].result}let l=Math.min(e,t);let f=Math.max(e,t);if(Math.abs(l-f)===1){let r=e+"|"+t;if(s.capture){return`(${r})`}if(s.wrap===false){return r}return`(?:${r})`}let d=hasPadding(e)||hasPadding(t);let p={min:e,max:t,a:l,b:f};let h=[];let m=[];if(d){p.isPadded=d;p.maxLen=String(p.max).length}if(l<0){let e=f<0?Math.abs(f):1;m=splitToPatterns(e,Math.abs(l),p,s);l=p.a=0}if(f>=0){h=splitToPatterns(l,f,p,s)}p.negatives=m;p.positives=h;p.result=collatePatterns(m,h,s);if(s.capture===true){p.result=`(${p.result})`}else if(s.wrap!==false&&h.length+m.length>1){p.result=`(?:${p.result})`}toRegexRange.cache[u]=p;return p.result};function collatePatterns(e,t,r){let n=filterPatterns(e,t,"-",false,r)||[];let s=filterPatterns(t,e,"",false,r)||[];let a=filterPatterns(e,t,"-?",true,r)||[];let o=n.concat(a).concat(s);return o.join("|")}function splitToRanges(e,t){let r=1;let n=1;let s=countNines(e,r);let a=new Set([t]);while(e<=s&&s<=t){a.add(s);r+=1;s=countNines(e,r)}s=countZeros(t+1,n)-1;while(e<s&&s<=t){a.add(s);n+=1;s=countZeros(t+1,n)-1}a=[...a];a.sort(compare);return a}function rangeToPattern(e,t,r){if(e===t){return{pattern:e,count:[],digits:0}}let n=zip(e,t);let s=n.length;let a="";let o=0;for(let e=0;e<s;e++){let[t,s]=n[e];if(t===s){a+=t}else if(t!=="0"||s!=="9"){a+=toCharacterClass(t,s,r)}else{o++}}if(o){a+=r.shorthand===true?"\\d":"[0-9]"}return{pattern:a,count:[o],digits:s}}function splitToPatterns(e,t,r,n){let s=splitToRanges(e,t);let a=[];let o=e;let i;for(let e=0;e<s.length;e++){let t=s[e];let c=rangeToPattern(String(o),String(t),n);let u="";if(!r.isPadded&&i&&i.pattern===c.pattern){if(i.count.length>1){i.count.pop()}i.count.push(c.count[0]);i.string=i.pattern+toQuantifier(i.count);o=t+1;continue}if(r.isPadded){u=padZeros(t,r,n)}c.string=u+c.pattern+toQuantifier(c.count);a.push(c);o=t+1;i=c}return a}function filterPatterns(e,t,r,n,s){let a=[];for(let s of e){let{string:e}=s;if(!n&&!contains(t,"string",e)){a.push(r+e)}if(n&&contains(t,"string",e)){a.push(r+e)}}return a}function zip(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function compare(e,t){return e>t?1:t>e?-1:0}function contains(e,t,r){return e.some((e=>e[t]===r))}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,r=""]=e;if(r||t>1){return`{${t+(r?","+r:"")}}`}return""}function toCharacterClass(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,r){if(!t.isPadded){return e}let n=Math.abs(t.maxLen-String(e).length);let s=r.relaxZeros!==false;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:{return s?`0{0,${n}}`:`0{${n}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};e.exports=toRegexRange},6890:function(e,t){
50
+ */const n=r(8387);const toRegexRange=(e,t,r)=>{if(n(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(n(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let s={relaxZeros:true,...r};if(typeof s.strictZeros==="boolean"){s.relaxZeros=s.strictZeros===false}let a=String(s.relaxZeros);let o=String(s.shorthand);let i=String(s.capture);let c=String(s.wrap);let u=e+":"+t+"="+a+o+i+c;if(toRegexRange.cache.hasOwnProperty(u)){return toRegexRange.cache[u].result}let l=Math.min(e,t);let f=Math.max(e,t);if(Math.abs(l-f)===1){let r=e+"|"+t;if(s.capture){return`(${r})`}if(s.wrap===false){return r}return`(?:${r})`}let d=hasPadding(e)||hasPadding(t);let p={min:e,max:t,a:l,b:f};let h=[];let m=[];if(d){p.isPadded=d;p.maxLen=String(p.max).length}if(l<0){let e=f<0?Math.abs(f):1;m=splitToPatterns(e,Math.abs(l),p,s);l=p.a=0}if(f>=0){h=splitToPatterns(l,f,p,s)}p.negatives=m;p.positives=h;p.result=collatePatterns(m,h,s);if(s.capture===true){p.result=`(${p.result})`}else if(s.wrap!==false&&h.length+m.length>1){p.result=`(?:${p.result})`}toRegexRange.cache[u]=p;return p.result};function collatePatterns(e,t,r){let n=filterPatterns(e,t,"-",false,r)||[];let s=filterPatterns(t,e,"",false,r)||[];let a=filterPatterns(e,t,"-?",true,r)||[];let o=n.concat(a).concat(s);return o.join("|")}function splitToRanges(e,t){let r=1;let n=1;let s=countNines(e,r);let a=new Set([t]);while(e<=s&&s<=t){a.add(s);r+=1;s=countNines(e,r)}s=countZeros(t+1,n)-1;while(e<s&&s<=t){a.add(s);n+=1;s=countZeros(t+1,n)-1}a=[...a];a.sort(compare);return a}function rangeToPattern(e,t,r){if(e===t){return{pattern:e,count:[],digits:0}}let n=zip(e,t);let s=n.length;let a="";let o=0;for(let e=0;e<s;e++){let[t,s]=n[e];if(t===s){a+=t}else if(t!=="0"||s!=="9"){a+=toCharacterClass(t,s,r)}else{o++}}if(o){a+=r.shorthand===true?"\\d":"[0-9]"}return{pattern:a,count:[o],digits:s}}function splitToPatterns(e,t,r,n){let s=splitToRanges(e,t);let a=[];let o=e;let i;for(let e=0;e<s.length;e++){let t=s[e];let c=rangeToPattern(String(o),String(t),n);let u="";if(!r.isPadded&&i&&i.pattern===c.pattern){if(i.count.length>1){i.count.pop()}i.count.push(c.count[0]);i.string=i.pattern+toQuantifier(i.count);o=t+1;continue}if(r.isPadded){u=padZeros(t,r,n)}c.string=u+c.pattern+toQuantifier(c.count);a.push(c);o=t+1;i=c}return a}function filterPatterns(e,t,r,n,s){let a=[];for(let s of e){let{string:e}=s;if(!n&&!contains(t,"string",e)){a.push(r+e)}if(n&&contains(t,"string",e)){a.push(r+e)}}return a}function zip(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function compare(e,t){return e>t?1:t>e?-1:0}function contains(e,t,r){return e.some((e=>e[t]===r))}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,r=""]=e;if(r||t>1){return`{${t+(r?","+r:"")}}`}return""}function toCharacterClass(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,r){if(!t.isPadded){return e}let n=Math.abs(t.maxLen-String(e).length);let s=r.relaxZeros!==false;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:{return s?`0{0,${n}}`:`0{${n}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};e.exports=toRegexRange},199:function(e,t){
51
51
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
52
- (function(e,r){true?r(t):0})(this,(function(e){"use strict";function merge(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(t.length>1){t[0]=t[0].slice(0,-1);var n=t.length-1;for(var s=1;s<n;++s){t[s]=t[s].slice(1,-1)}t[n]=t[n].slice(1);return t.join("")}else{return t[0]}}function subexp(e){return"(?:"+e+")"}function typeOf(e){return e===undefined?"undefined":e===null?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function toUpperCase(e){return e.toUpperCase()}function toArray(e){return e!==undefined&&e!==null?e instanceof Array?e:typeof e.length!=="number"||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function assign(e,t){var r=e;if(t){for(var n in t){r[n]=t[n]}}return r}function buildExps(e){var t="[A-Za-z]",r="[\\x0D]",n="[0-9]",s="[\\x22]",a=merge(n,"[A-Fa-f]"),o="[\\x0A]",i="[\\x20]",c=subexp(subexp("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+subexp("%[89A-Fa-f]"+a+"%"+a+a)+"|"+subexp("%"+a+a)),u="[\\:\\/\\?\\#\\[\\]\\@]",l="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",f=merge(u,l),d=e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",p=e?"[\\uE000-\\uF8FF]":"[]",h=merge(t,n,"[\\-\\.\\_\\~]",d),m=subexp(t+merge(t,n,"[\\+\\-\\.]")+"*"),y=subexp(subexp(c+"|"+merge(h,l,"[\\:]"))+"*"),g=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+n)+"|"+subexp("1"+n+n)+"|"+subexp("[1-9]"+n)+"|"+n),v=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+n)+"|"+subexp("1"+n+n)+"|"+subexp("0?[1-9]"+n)+"|0?0?"+n),b=subexp(v+"\\."+v+"\\."+v+"\\."+v),$=subexp(a+"{1,4}"),S=subexp(subexp($+"\\:"+$)+"|"+b),w=subexp(subexp($+"\\:")+"{6}"+S),E=subexp("\\:\\:"+subexp($+"\\:")+"{5}"+S),P=subexp(subexp($)+"?\\:\\:"+subexp($+"\\:")+"{4}"+S),x=subexp(subexp(subexp($+"\\:")+"{0,1}"+$)+"?\\:\\:"+subexp($+"\\:")+"{3}"+S),k=subexp(subexp(subexp($+"\\:")+"{0,2}"+$)+"?\\:\\:"+subexp($+"\\:")+"{2}"+S),C=subexp(subexp(subexp($+"\\:")+"{0,3}"+$)+"?\\:\\:"+$+"\\:"+S),A=subexp(subexp(subexp($+"\\:")+"{0,4}"+$)+"?\\:\\:"+S),R=subexp(subexp(subexp($+"\\:")+"{0,5}"+$)+"?\\:\\:"+$),O=subexp(subexp(subexp($+"\\:")+"{0,6}"+$)+"?\\:\\:"),T=subexp([w,E,P,x,k,C,A,R,O].join("|")),N=subexp(subexp(h+"|"+c)+"+"),D=subexp(T+"\\%25"+N),j=subexp(T+subexp("\\%25|\\%(?!"+a+"{2})")+N),I=subexp("[vV]"+a+"+\\."+merge(h,l,"[\\:]")+"+"),M=subexp("\\["+subexp(j+"|"+T+"|"+I)+"\\]"),F=subexp(subexp(c+"|"+merge(h,l))+"*"),L=subexp(M+"|"+b+"(?!"+F+")"+"|"+F),H=subexp(n+"*"),V=subexp(subexp(y+"@")+"?"+L+subexp("\\:"+H)+"?"),z=subexp(c+"|"+merge(h,l,"[\\:\\@]")),q=subexp(z+"*"),U=subexp(z+"+"),K=subexp(subexp(c+"|"+merge(h,l,"[\\@]"))+"+"),B=subexp(subexp("\\/"+q)+"*"),G=subexp("\\/"+subexp(U+B)+"?"),W=subexp(K+B),J=subexp(U+B),Q="(?!"+z+")",Z=subexp(B+"|"+G+"|"+W+"|"+J+"|"+Q),Y=subexp(subexp(z+"|"+merge("[\\/\\?]",p))+"*"),X=subexp(subexp(z+"|[\\/\\?]")+"*"),ee=subexp(subexp("\\/\\/"+V+B)+"|"+G+"|"+J+"|"+Q),te=subexp(m+"\\:"+ee+subexp("\\?"+Y)+"?"+subexp("\\#"+X)+"?"),re=subexp(subexp("\\/\\/"+V+B)+"|"+G+"|"+W+"|"+Q),ne=subexp(re+subexp("\\?"+Y)+"?"+subexp("\\#"+X)+"?"),se=subexp(te+"|"+ne),ae=subexp(m+"\\:"+ee+subexp("\\?"+Y)+"?"),oe="^("+m+")\\:"+subexp(subexp("\\/\\/("+subexp("("+y+")@")+"?("+L+")"+subexp("\\:("+H+")")+"?)")+"?("+B+"|"+G+"|"+J+"|"+Q+")")+subexp("\\?("+Y+")")+"?"+subexp("\\#("+X+")")+"?$",ie="^(){0}"+subexp(subexp("\\/\\/("+subexp("("+y+")@")+"?("+L+")"+subexp("\\:("+H+")")+"?)")+"?("+B+"|"+G+"|"+W+"|"+Q+")")+subexp("\\?("+Y+")")+"?"+subexp("\\#("+X+")")+"?$",ce="^("+m+")\\:"+subexp(subexp("\\/\\/("+subexp("("+y+")@")+"?("+L+")"+subexp("\\:("+H+")")+"?)")+"?("+B+"|"+G+"|"+J+"|"+Q+")")+subexp("\\?("+Y+")")+"?$",ue="^"+subexp("\\#("+X+")")+"?$",le="^"+subexp("("+y+")@")+"?("+L+")"+subexp("\\:("+H+")")+"?$";return{NOT_SCHEME:new RegExp(merge("[^]",t,n,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(merge("[^\\%\\:]",h,l),"g"),NOT_HOST:new RegExp(merge("[^\\%\\[\\]\\:]",h,l),"g"),NOT_PATH:new RegExp(merge("[^\\%\\/\\:\\@]",h,l),"g"),NOT_PATH_NOSCHEME:new RegExp(merge("[^\\%\\/\\@]",h,l),"g"),NOT_QUERY:new RegExp(merge("[^\\%]",h,l,"[\\:\\@\\/\\?]",p),"g"),NOT_FRAGMENT:new RegExp(merge("[^\\%]",h,l,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(merge("[^]",h,l),"g"),UNRESERVED:new RegExp(h,"g"),OTHER_CHARS:new RegExp(merge("[^\\%]",h,f),"g"),PCT_ENCODED:new RegExp(c,"g"),IPV4ADDRESS:new RegExp("^("+b+")$"),IPV6ADDRESS:new RegExp("^\\[?("+T+")"+subexp(subexp("\\%25|\\%(?!"+a+"{2})")+"("+N+")")+"?\\]?$")}}var t=buildExps(false);var r=buildExps(true);var n=function(){function sliceIterator(e,t){var r=[];var n=true;var s=false;var a=undefined;try{for(var o=e[Symbol.iterator](),i;!(n=(i=o.next()).done);n=true){r.push(i.value);if(t&&r.length===t)break}}catch(e){s=true;a=e}finally{try{if(!n&&o["return"])o["return"]()}finally{if(s)throw a}}return r}return function(e,t){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,t)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var toConsumableArray=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else{return Array.from(e)}};var s=2147483647;var a=36;var o=1;var i=26;var c=38;var u=700;var l=72;var f=128;var d="-";var p=/^xn--/;var h=/[^\0-\x7E]/;var m=/[\x2E\u3002\uFF0E\uFF61]/g;var y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var g=a-o;var v=Math.floor;var b=String.fromCharCode;function error$1(e){throw new RangeError(y[e])}function map(e,t){var r=[];var n=e.length;while(n--){r[n]=t(e[n])}return r}function mapDomain(e,t){var r=e.split("@");var n="";if(r.length>1){n=r[0]+"@";e=r[1]}e=e.replace(m,".");var s=e.split(".");var a=map(s,t).join(".");return n+a}function ucs2decode(e){var t=[];var r=0;var n=e.length;while(r<n){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<n){var a=e.charCodeAt(r++);if((a&64512)==56320){t.push(((s&1023)<<10)+(a&1023)+65536)}else{t.push(s);r--}}else{t.push(s)}}return t}var $=function ucs2encode(e){return String.fromCodePoint.apply(String,toConsumableArray(e))};var S=function basicToDigit(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return a};var w=function digitToBasic(e,t){return e+22+75*(e<26)-((t!=0)<<5)};var E=function adapt(e,t,r){var n=0;e=r?v(e/u):e>>1;e+=v(e/t);for(;e>g*i>>1;n+=a){e=v(e/g)}return v(n+(g+1)*e/(e+c))};var P=function decode(e){var t=[];var r=e.length;var n=0;var c=f;var u=l;var p=e.lastIndexOf(d);if(p<0){p=0}for(var h=0;h<p;++h){if(e.charCodeAt(h)>=128){error$1("not-basic")}t.push(e.charCodeAt(h))}for(var m=p>0?p+1:0;m<r;){var y=n;for(var g=1,b=a;;b+=a){if(m>=r){error$1("invalid-input")}var $=S(e.charCodeAt(m++));if($>=a||$>v((s-n)/g)){error$1("overflow")}n+=$*g;var w=b<=u?o:b>=u+i?i:b-u;if($<w){break}var P=a-w;if(g>v(s/P)){error$1("overflow")}g*=P}var x=t.length+1;u=E(n-y,x,y==0);if(v(n/x)>s-c){error$1("overflow")}c+=v(n/x);n%=x;t.splice(n++,0,c)}return String.fromCodePoint.apply(String,t)};var x=function encode(e){var t=[];e=ucs2decode(e);var r=e.length;var n=f;var c=0;var u=l;var p=true;var h=false;var m=undefined;try{for(var y=e[Symbol.iterator](),g;!(p=(g=y.next()).done);p=true){var $=g.value;if($<128){t.push(b($))}}}catch(e){h=true;m=e}finally{try{if(!p&&y.return){y.return()}}finally{if(h){throw m}}}var S=t.length;var P=S;if(S){t.push(d)}while(P<r){var x=s;var k=true;var C=false;var A=undefined;try{for(var R=e[Symbol.iterator](),O;!(k=(O=R.next()).done);k=true){var T=O.value;if(T>=n&&T<x){x=T}}}catch(e){C=true;A=e}finally{try{if(!k&&R.return){R.return()}}finally{if(C){throw A}}}var N=P+1;if(x-n>v((s-c)/N)){error$1("overflow")}c+=(x-n)*N;n=x;var D=true;var j=false;var I=undefined;try{for(var M=e[Symbol.iterator](),F;!(D=(F=M.next()).done);D=true){var L=F.value;if(L<n&&++c>s){error$1("overflow")}if(L==n){var H=c;for(var V=a;;V+=a){var z=V<=u?o:V>=u+i?i:V-u;if(H<z){break}var q=H-z;var U=a-z;t.push(b(w(z+q%U,0)));H=v(q/U)}t.push(b(w(H,0)));u=E(c,N,P==S);c=0;++P}}}catch(e){j=true;I=e}finally{try{if(!D&&M.return){M.return()}}finally{if(j){throw I}}}++c;++n}return t.join("")};var k=function toUnicode(e){return mapDomain(e,(function(e){return p.test(e)?P(e.slice(4).toLowerCase()):e}))};var C=function toASCII(e){return mapDomain(e,(function(e){return h.test(e)?"xn--"+x(e):e}))};var A={version:"2.1.0",ucs2:{decode:ucs2decode,encode:$},decode:P,encode:x,toASCII:C,toUnicode:k};var R={};function pctEncChar(e){var t=e.charCodeAt(0);var r=void 0;if(t<16)r="%0"+t.toString(16).toUpperCase();else if(t<128)r="%"+t.toString(16).toUpperCase();else if(t<2048)r="%"+(t>>6|192).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();else r="%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();return r}function pctDecChars(e){var t="";var r=0;var n=e.length;while(r<n){var s=parseInt(e.substr(r+1,2),16);if(s<128){t+=String.fromCharCode(s);r+=3}else if(s>=194&&s<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((s&31)<<6|a&63)}else{t+=e.substr(r,6)}r+=6}else if(s>=224){if(n-r>=9){var o=parseInt(e.substr(r+4,2),16);var i=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((s&15)<<12|(o&63)<<6|i&63)}else{t+=e.substr(r,9)}r+=9}else{t+=e.substr(r,3);r+=3}}return t}function _normalizeComponentEncoding(e,t){function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(t.UNRESERVED)?e:r}if(e.scheme)e.scheme=String(e.scheme).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_USERINFO,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_HOST,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(t.PCT_ENCODED,decodeUnreserved).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_QUERY,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_FRAGMENT,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,t){var r=e.match(t.IPV4ADDRESS)||[];var s=n(r,2),a=s[1];if(a){return a.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,t){var r=e.match(t.IPV6ADDRESS)||[];var s=n(r,3),a=s[1],o=s[2];if(a){var i=a.toLowerCase().split("::").reverse(),c=n(i,2),u=c[0],l=c[1];var f=l?l.split(":").map(_stripLeadingZeros):[];var d=u.split(":").map(_stripLeadingZeros);var p=t.IPV4ADDRESS.test(d[d.length-1]);var h=p?7:8;var m=d.length-h;var y=Array(h);for(var g=0;g<h;++g){y[g]=f[g]||d[m+g]||""}if(p){y[h-1]=_normalizeIPv4(y[h-1],t)}var v=y.reduce((function(e,t,r){if(!t||t==="0"){var n=e[e.length-1];if(n&&n.index+n.length===r){n.length++}else{e.push({index:r,length:1})}}return e}),[]);var b=v.sort((function(e,t){return t.length-e.length}))[0];var $=void 0;if(b&&b.length>1){var S=y.slice(0,b.index);var w=y.slice(b.index+b.length);$=S.join(":")+"::"+w.join(":")}else{$=y.join(":")}if(o){$+="%"+o}return $}else{return e}}var O=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var T="".match(/(){0}/)[1]===undefined;function parse(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var s={};var a=n.iri!==false?r:t;if(n.reference==="suffix")e=(n.scheme?n.scheme+":":"")+"//"+e;var o=e.match(O);if(o){if(T){s.scheme=o[1];s.userinfo=o[3];s.host=o[4];s.port=parseInt(o[5],10);s.path=o[6]||"";s.query=o[7];s.fragment=o[8];if(isNaN(s.port)){s.port=o[5]}}else{s.scheme=o[1]||undefined;s.userinfo=e.indexOf("@")!==-1?o[3]:undefined;s.host=e.indexOf("//")!==-1?o[4]:undefined;s.port=parseInt(o[5],10);s.path=o[6]||"";s.query=e.indexOf("?")!==-1?o[7]:undefined;s.fragment=e.indexOf("#")!==-1?o[8]:undefined;if(isNaN(s.port)){s.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:undefined}}if(s.host){s.host=_normalizeIPv6(_normalizeIPv4(s.host,a),a)}if(s.scheme===undefined&&s.userinfo===undefined&&s.host===undefined&&s.port===undefined&&!s.path&&s.query===undefined){s.reference="same-document"}else if(s.scheme===undefined){s.reference="relative"}else if(s.fragment===undefined){s.reference="absolute"}else{s.reference="uri"}if(n.reference&&n.reference!=="suffix"&&n.reference!==s.reference){s.error=s.error||"URI is not a "+n.reference+" reference."}var i=R[(n.scheme||s.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!i||!i.unicodeSupport)){if(s.host&&(n.domainHost||i&&i.domainHost)){try{s.host=A.toASCII(s.host.replace(a.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){s.error=s.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(s,t)}else{_normalizeComponentEncoding(s,a)}if(i&&i.parse){i.parse(s,n)}}else{s.error=s.error||"URI can not be parsed."}return s}function _recomposeAuthority(e,n){var s=n.iri!==false?r:t;var a=[];if(e.userinfo!==undefined){a.push(e.userinfo);a.push("@")}if(e.host!==undefined){a.push(_normalizeIPv6(_normalizeIPv4(String(e.host),s),s).replace(s.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"})))}if(typeof e.port==="number"||typeof e.port==="string"){a.push(":");a.push(String(e.port))}return a.length?a.join(""):undefined}var N=/^\.\.?\//;var D=/^\/\.(\/|$)/;var j=/^\/\.\.(\/|$)/;var I=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var t=[];while(e.length){if(e.match(N)){e=e.replace(N,"")}else if(e.match(D)){e=e.replace(D,"/")}else if(e.match(j)){e=e.replace(j,"/");t.pop()}else if(e==="."||e===".."){e=""}else{var r=e.match(I);if(r){var n=r[0];e=e.slice(n.length);t.push(n)}else{throw new Error("Unexpected dot segment condition")}}}return t.join("")}function serialize(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var s=n.iri?r:t;var a=[];var o=R[(n.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize)o.serialize(e,n);if(e.host){if(s.IPV6ADDRESS.test(e.host)){}else if(n.domainHost||o&&o.domainHost){try{e.host=!n.iri?A.toASCII(e.host.replace(s.PCT_ENCODED,pctDecChars).toLowerCase()):A.toUnicode(e.host)}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(!n.iri?"ASCII":"Unicode")+" via punycode: "+t}}}_normalizeComponentEncoding(e,s);if(n.reference!=="suffix"&&e.scheme){a.push(e.scheme);a.push(":")}var i=_recomposeAuthority(e,n);if(i!==undefined){if(n.reference!=="suffix"){a.push("//")}a.push(i);if(e.path&&e.path.charAt(0)!=="/"){a.push("/")}}if(e.path!==undefined){var c=e.path;if(!n.absolutePath&&(!o||!o.absolutePath)){c=removeDotSegments(c)}if(i===undefined){c=c.replace(/^\/\//,"/%2F")}a.push(c)}if(e.query!==undefined){a.push("?");a.push(e.query)}if(e.fragment!==undefined){a.push("#");a.push(e.fragment)}return a.join("")}function resolveComponents(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments[3];var s={};if(!n){e=parse(serialize(e,r),r);t=parse(serialize(t,r),r)}r=r||{};if(!r.tolerant&&t.scheme){s.scheme=t.scheme;s.userinfo=t.userinfo;s.host=t.host;s.port=t.port;s.path=removeDotSegments(t.path||"");s.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){s.userinfo=t.userinfo;s.host=t.host;s.port=t.port;s.path=removeDotSegments(t.path||"");s.query=t.query}else{if(!t.path){s.path=e.path;if(t.query!==undefined){s.query=t.query}else{s.query=e.query}}else{if(t.path.charAt(0)==="/"){s.path=removeDotSegments(t.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){s.path="/"+t.path}else if(!e.path){s.path=t.path}else{s.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path}s.path=removeDotSegments(s.path)}s.query=t.query}s.userinfo=e.userinfo;s.host=e.host;s.port=e.port}s.scheme=e.scheme}s.fragment=t.fragment;return s}function resolve(e,t,r){var n=assign({scheme:"null"},r);return serialize(resolveComponents(parse(e,n),parse(t,n),n,true),n)}function normalize(e,t){if(typeof e==="string"){e=serialize(parse(e,t),t)}else if(typeOf(e)==="object"){e=parse(serialize(e,t),t)}return e}function equal(e,t,r){if(typeof e==="string"){e=serialize(parse(e,r),r)}else if(typeOf(e)==="object"){e=serialize(e,r)}if(typeof t==="string"){t=serialize(parse(t,r),r)}else if(typeOf(t)==="object"){t=serialize(t,r)}return e===t}function escapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.ESCAPE:r.ESCAPE,pctEncChar)}function unescapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.PCT_ENCODED:r.PCT_ENCODED,pctDecChars)}var M={scheme:"http",domainHost:true,parse:function parse(e,t){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,t){var r=String(e.scheme).toLowerCase()==="https";if(e.port===(r?443:80)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var F={scheme:"https",domainHost:M.domainHost,parse:M.parse,serialize:M.serialize};function isSecure(e){return typeof e.secure==="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}var L={scheme:"ws",domainHost:true,parse:function parse(e,t){var r=e;r.secure=isSecure(r);r.resourceName=(r.path||"/")+(r.query?"?"+r.query:"");r.path=undefined;r.query=undefined;return r},serialize:function serialize(e,t){if(e.port===(isSecure(e)?443:80)||e.port===""){e.port=undefined}if(typeof e.secure==="boolean"){e.scheme=e.secure?"wss":"ws";e.secure=undefined}if(e.resourceName){var r=e.resourceName.split("?"),s=n(r,2),a=s[0],o=s[1];e.path=a&&a!=="/"?a:undefined;e.query=o;e.resourceName=undefined}e.fragment=undefined;return e}};var H={scheme:"wss",domainHost:L.domainHost,parse:L.parse,serialize:L.serialize};var V={};var z=true;var q="[A-Za-z0-9\\-\\.\\_\\~"+(z?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var U="[0-9A-Fa-f]";var K=subexp(subexp("%[EFef]"+U+"%"+U+U+"%"+U+U)+"|"+subexp("%[89A-Fa-f]"+U+"%"+U+U)+"|"+subexp("%"+U+U));var B="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var G="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var W=merge(G,'[\\"\\\\]');var J="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var Q=new RegExp(q,"g");var Z=new RegExp(K,"g");var Y=new RegExp(merge("[^]",B,"[\\.]",'[\\"]',W),"g");var X=new RegExp(merge("[^]",q,J),"g");var ee=X;function decodeUnreserved(e){var t=pctDecChars(e);return!t.match(Q)?e:t}var te={scheme:"mailto",parse:function parse$$1(e,t){var r=e;var n=r.to=r.path?r.path.split(","):[];r.path=undefined;if(r.query){var s=false;var a={};var o=r.query.split("&");for(var i=0,c=o.length;i<c;++i){var u=o[i].split("=");switch(u[0]){case"to":var l=u[1].split(",");for(var f=0,d=l.length;f<d;++f){n.push(l[f])}break;case"subject":r.subject=unescapeComponent(u[1],t);break;case"body":r.body=unescapeComponent(u[1],t);break;default:s=true;a[unescapeComponent(u[0],t)]=unescapeComponent(u[1],t);break}}if(s)r.headers=a}r.query=undefined;for(var p=0,h=n.length;p<h;++p){var m=n[p].split("@");m[0]=unescapeComponent(m[0]);if(!t.unicodeSupport){try{m[1]=A.toASCII(unescapeComponent(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}}else{m[1]=unescapeComponent(m[1],t).toLowerCase()}n[p]=m.join("@")}return r},serialize:function serialize$$1(e,t){var r=e;var n=toArray(e.to);if(n){for(var s=0,a=n.length;s<a;++s){var o=String(n[s]);var i=o.lastIndexOf("@");var c=o.slice(0,i).replace(Z,decodeUnreserved).replace(Z,toUpperCase).replace(Y,pctEncChar);var u=o.slice(i+1);try{u=!t.iri?A.toASCII(unescapeComponent(u,t).toLowerCase()):A.toUnicode(u)}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(!t.iri?"ASCII":"Unicode")+" via punycode: "+e}n[s]=c+"@"+u}r.path=n.join(",")}var l=e.headers=e.headers||{};if(e.subject)l["subject"]=e.subject;if(e.body)l["body"]=e.body;var f=[];for(var d in l){if(l[d]!==V[d]){f.push(d.replace(Z,decodeUnreserved).replace(Z,toUpperCase).replace(X,pctEncChar)+"="+l[d].replace(Z,decodeUnreserved).replace(Z,toUpperCase).replace(ee,pctEncChar))}}if(f.length){r.query=f.join("&")}return r}};var re=/^([^\:]+)\:(.*)/;var ne={scheme:"urn",parse:function parse$$1(e,t){var r=e.path&&e.path.match(re);var n=e;if(r){var s=t.scheme||n.scheme||"urn";var a=r[1].toLowerCase();var o=r[2];var i=s+":"+(t.nid||a);var c=R[i];n.nid=a;n.nss=o;n.path=undefined;if(c){n=c.parse(n,t)}}else{n.error=n.error||"URN can not be parsed."}return n},serialize:function serialize$$1(e,t){var r=t.scheme||e.scheme||"urn";var n=e.nid;var s=r+":"+(t.nid||n);var a=R[s];if(a){e=a.serialize(e,t)}var o=e;var i=e.nss;o.path=(n||t.nid)+":"+i;return o}};var se=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;var ae={scheme:"urn:uuid",parse:function parse(e,t){var r=e;r.uuid=r.nss;r.nss=undefined;if(!t.tolerant&&(!r.uuid||!r.uuid.match(se))){r.error=r.error||"UUID is not valid."}return r},serialize:function serialize(e,t){var r=e;r.nss=(e.uuid||"").toLowerCase();return r}};R[M.scheme]=M;R[F.scheme]=F;R[L.scheme]=L;R[H.scheme]=H;R[te.scheme]=te;R[ne.scheme]=ne;R[ae.scheme]=ae;e.SCHEMES=R;e.pctEncChar=pctEncChar;e.pctDecChars=pctDecChars;e.parse=parse;e.removeDotSegments=removeDotSegments;e.serialize=serialize;e.resolveComponents=resolveComponents;e.resolve=resolve;e.normalize=normalize;e.equal=equal;e.escapeComponent=escapeComponent;e.unescapeComponent=unescapeComponent;Object.defineProperty(e,"__esModule",{value:true})}))},6113:function(e){"use strict";e.exports=require("crypto")},2361:function(e){"use strict";e.exports=require("events")},7147:function(e){"use strict";e.exports=require("fs")},7561:function(e){"use strict";e.exports=require("node:fs")},9411:function(e){"use strict";e.exports=require("node:path")},7742:function(e){"use strict";e.exports=require("node:process")},4492:function(e){"use strict";e.exports=require("node:stream")},1041:function(e){"use strict";e.exports=require("node:url")},2037:function(e){"use strict";e.exports=require("os")},1017:function(e){"use strict";e.exports=require("path")},2781:function(e){"use strict";e.exports=require("stream")},3837:function(e){"use strict";e.exports=require("util")},1147:function(e){"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},1062:function(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},6202:function(e){"use strict";e.exports=JSON.parse('{"definitions":{"ObjectPattern":{"type":"object","additionalProperties":false,"properties":{"from":{"type":"string","description":"Glob or path from where we copy files.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#from","minLength":1},"to":{"anyOf":[{"type":"string"},{"instanceof":"Function"}],"description":"Output path.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#to"},"context":{"type":"string","description":"A path that determines how to interpret the \'from\' path.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#context"},"globOptions":{"type":"object","description":"Allows to configute the glob pattern matching library used by the plugin.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#globoptions"},"filter":{"instanceof":"Function","description":"Allows to filter copied assets.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#filter"},"transformAll":{"instanceof":"Function","description":"Allows you to modify the contents of multiple files and save the result to one file.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#transformall"},"toType":{"enum":["dir","file","template"],"description":"Determinate what is to option - directory, file or template.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#totype"},"force":{"type":"boolean","description":"Overwrites files already in \'compilation.assets\' (usually added by other plugins/loaders).","link":"https://github.com/webpack-contrib/copy-webpack-plugin#force"},"priority":{"type":"number","description":"Allows to specify the priority of copying files with the same destination name.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#priority"},"info":{"anyOf":[{"type":"object"},{"instanceof":"Function"}],"description":"Allows to add assets info.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#info"},"transform":{"description":"Allows to modify the file contents.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#transform","anyOf":[{"instanceof":"Function"},{"type":"object","additionalProperties":false,"properties":{"transformer":{"instanceof":"Function","description":"Allows to modify the file contents.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#transformer"},"cache":{"description":"Enables/disables and configure caching.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#cache","anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":false,"properties":{"keys":{"anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]}}}]}}}]},"noErrorOnMissing":{"type":"boolean","description":"Doesn\'t generate an error on missing file(s).","link":"https://github.com/webpack-contrib/copy-webpack-plugin#noerroronmissing"}},"required":["from"]},"StringPattern":{"type":"string","minLength":1}},"type":"object","additionalProperties":false,"properties":{"patterns":{"type":"array","minItems":1,"items":{"anyOf":[{"$ref":"#/definitions/StringPattern"},{"$ref":"#/definitions/ObjectPattern"}]}},"options":{"type":"object","additionalProperties":false,"properties":{"concurrency":{"type":"number","description":"Limits the number of simultaneous requests to fs.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#concurrency"}}}},"required":["patterns"]}')},8371:function(e){"use strict";e.exports=JSON.parse('{"name":"copy-webpack-plugin","version":"10.2.4","description":"Copy files && directories with webpack","license":"MIT","repository":"webpack-contrib/copy-webpack-plugin","author":"Len Boyette","homepage":"https://github.com/webpack-contrib/copy-webpack-plugin","bugs":"https://github.com/webpack-contrib/copy-webpack-plugin/issues","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"main":"dist/index.js","types":"types/index.d.ts","engines":{"node":">= 12.20.0"},"scripts":{"start":"npm run build -- -w","clean":"del-cli dist types","prebuild":"npm run clean","build:types":"tsc --declaration --emitDeclarationOnly --outDir types --rootDir src && prettier \\"types/**/*.ts\\" --write","build:code":"cross-env NODE_ENV=production babel src -d dist --copy-files","build":"npm-run-all -p \\"build:**\\"","commitlint":"commitlint --from=master","security":"npm audit --production","lint:prettier":"prettier --list-different .","lint:js":"eslint --cache .","lint:types":"tsc --pretty --noEmit","lint":"npm-run-all -l -p \\"lint:**\\"","test:only":"cross-env NODE_ENV=test jest","test:watch":"npm run test:only -- --watch","test:coverage":"npm run test:only -- --collectCoverageFrom=\\"src/**/*.js\\" --coverage","pretest":"npm run lint","test":"npm run test:coverage","prepare":"husky install && npm run build","release":"standard-version"},"files":["dist","types"],"peerDependencies":{"webpack":"^5.1.0"},"dependencies":{"fast-glob":"^3.2.7","glob-parent":"^6.0.1","globby":"^12.0.2","normalize-path":"^3.0.0","schema-utils":"^4.0.0","serialize-javascript":"^6.0.0"},"devDependencies":{"@babel/cli":"^7.16.7","@babel/core":"^7.16.7","@babel/eslint-parser":"^7.16.5","@babel/preset-env":"^7.16.7","@commitlint/cli":"^15.0.0","@commitlint/config-conventional":"^15.0.0","@types/glob-parent":"^5.1.1","@types/normalize-path":"^3.0.0","@types/serialize-javascript":"^5.0.2","@webpack-contrib/eslint-config-webpack":"^3.0.0","babel-jest":"^27.4.5","cross-env":"^7.0.3","del":"^6.0.0","del-cli":"^4.0.1","eslint":"^8.6.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.4","file-loader":"^6.2.0","husky":"^7.0.1","is-gzip":"^2.0.0","jest":"^27.4.5","lint-staged":"^12.1.5","memfs":"^3.4.1","mkdirp":"^1.0.4","npm-run-all":"^4.1.5","prettier":"^2.3.2","standard-version":"^9.3.1","typescript":"^4.5.4","webpack":"^5.64.1"},"keywords":["webpack","plugin","transfer","move","copy"]}')}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={exports:{}};var a=true;try{e[r].call(s.exports,s,s.exports,__nccwpck_require__);a=false}finally{if(a)delete t[r]}return s.exports}__nccwpck_require__.m=e;!function(){__nccwpck_require__.d=function(e,t){for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}}();!function(){__nccwpck_require__.f={};__nccwpck_require__.e=function(e){return Promise.all(Object.keys(__nccwpck_require__.f).reduce((function(t,r){__nccwpck_require__.f[r](e,t);return t}),[]))}}();!function(){__nccwpck_require__.u=function(e){return""+e+".index.js"}}();!function(){__nccwpck_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();!function(){__nccwpck_require__.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";!function(){var e={179:1};var installChunk=function(t){var r=t.modules,n=t.ids,s=t.runtime;for(var a in r){if(__nccwpck_require__.o(r,a)){__nccwpck_require__.m[a]=r[a]}}if(s)s(__nccwpck_require__);for(var o=0;o<n.length;o++)e[n[o]]=1};__nccwpck_require__.f.require=function(t,r){if(!e[t]){if(true){installChunk(require("./"+__nccwpck_require__.u(t)))}else e[t]=1}}}();var r=__nccwpck_require__(3151);module.exports=r})();
52
+ (function(e,r){true?r(t):0})(this,(function(e){"use strict";function merge(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++){t[r]=arguments[r]}if(t.length>1){t[0]=t[0].slice(0,-1);var n=t.length-1;for(var s=1;s<n;++s){t[s]=t[s].slice(1,-1)}t[n]=t[n].slice(1);return t.join("")}else{return t[0]}}function subexp(e){return"(?:"+e+")"}function typeOf(e){return e===undefined?"undefined":e===null?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function toUpperCase(e){return e.toUpperCase()}function toArray(e){return e!==undefined&&e!==null?e instanceof Array?e:typeof e.length!=="number"||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function assign(e,t){var r=e;if(t){for(var n in t){r[n]=t[n]}}return r}function buildExps(e){var t="[A-Za-z]",r="[\\x0D]",n="[0-9]",s="[\\x22]",a=merge(n,"[A-Fa-f]"),o="[\\x0A]",i="[\\x20]",c=subexp(subexp("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+subexp("%[89A-Fa-f]"+a+"%"+a+a)+"|"+subexp("%"+a+a)),u="[\\:\\/\\?\\#\\[\\]\\@]",l="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",f=merge(u,l),d=e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",p=e?"[\\uE000-\\uF8FF]":"[]",h=merge(t,n,"[\\-\\.\\_\\~]",d),m=subexp(t+merge(t,n,"[\\+\\-\\.]")+"*"),y=subexp(subexp(c+"|"+merge(h,l,"[\\:]"))+"*"),g=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+n)+"|"+subexp("1"+n+n)+"|"+subexp("[1-9]"+n)+"|"+n),v=subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+n)+"|"+subexp("1"+n+n)+"|"+subexp("0?[1-9]"+n)+"|0?0?"+n),b=subexp(v+"\\."+v+"\\."+v+"\\."+v),$=subexp(a+"{1,4}"),S=subexp(subexp($+"\\:"+$)+"|"+b),w=subexp(subexp($+"\\:")+"{6}"+S),E=subexp("\\:\\:"+subexp($+"\\:")+"{5}"+S),P=subexp(subexp($)+"?\\:\\:"+subexp($+"\\:")+"{4}"+S),x=subexp(subexp(subexp($+"\\:")+"{0,1}"+$)+"?\\:\\:"+subexp($+"\\:")+"{3}"+S),k=subexp(subexp(subexp($+"\\:")+"{0,2}"+$)+"?\\:\\:"+subexp($+"\\:")+"{2}"+S),R=subexp(subexp(subexp($+"\\:")+"{0,3}"+$)+"?\\:\\:"+$+"\\:"+S),C=subexp(subexp(subexp($+"\\:")+"{0,4}"+$)+"?\\:\\:"+S),A=subexp(subexp(subexp($+"\\:")+"{0,5}"+$)+"?\\:\\:"+$),O=subexp(subexp(subexp($+"\\:")+"{0,6}"+$)+"?\\:\\:"),T=subexp([w,E,P,x,k,R,C,A,O].join("|")),N=subexp(subexp(h+"|"+c)+"+"),D=subexp(T+"\\%25"+N),j=subexp(T+subexp("\\%25|\\%(?!"+a+"{2})")+N),I=subexp("[vV]"+a+"+\\."+merge(h,l,"[\\:]")+"+"),M=subexp("\\["+subexp(j+"|"+T+"|"+I)+"\\]"),F=subexp(subexp(c+"|"+merge(h,l))+"*"),L=subexp(M+"|"+b+"(?!"+F+")"+"|"+F),H=subexp(n+"*"),V=subexp(subexp(y+"@")+"?"+L+subexp("\\:"+H)+"?"),z=subexp(c+"|"+merge(h,l,"[\\:\\@]")),q=subexp(z+"*"),U=subexp(z+"+"),K=subexp(subexp(c+"|"+merge(h,l,"[\\@]"))+"+"),B=subexp(subexp("\\/"+q)+"*"),G=subexp("\\/"+subexp(U+B)+"?"),W=subexp(K+B),J=subexp(U+B),Q="(?!"+z+")",Z=subexp(B+"|"+G+"|"+W+"|"+J+"|"+Q),Y=subexp(subexp(z+"|"+merge("[\\/\\?]",p))+"*"),X=subexp(subexp(z+"|[\\/\\?]")+"*"),ee=subexp(subexp("\\/\\/"+V+B)+"|"+G+"|"+J+"|"+Q),te=subexp(m+"\\:"+ee+subexp("\\?"+Y)+"?"+subexp("\\#"+X)+"?"),re=subexp(subexp("\\/\\/"+V+B)+"|"+G+"|"+W+"|"+Q),ne=subexp(re+subexp("\\?"+Y)+"?"+subexp("\\#"+X)+"?"),se=subexp(te+"|"+ne),ae=subexp(m+"\\:"+ee+subexp("\\?"+Y)+"?"),oe="^("+m+")\\:"+subexp(subexp("\\/\\/("+subexp("("+y+")@")+"?("+L+")"+subexp("\\:("+H+")")+"?)")+"?("+B+"|"+G+"|"+J+"|"+Q+")")+subexp("\\?("+Y+")")+"?"+subexp("\\#("+X+")")+"?$",ie="^(){0}"+subexp(subexp("\\/\\/("+subexp("("+y+")@")+"?("+L+")"+subexp("\\:("+H+")")+"?)")+"?("+B+"|"+G+"|"+W+"|"+Q+")")+subexp("\\?("+Y+")")+"?"+subexp("\\#("+X+")")+"?$",ce="^("+m+")\\:"+subexp(subexp("\\/\\/("+subexp("("+y+")@")+"?("+L+")"+subexp("\\:("+H+")")+"?)")+"?("+B+"|"+G+"|"+J+"|"+Q+")")+subexp("\\?("+Y+")")+"?$",ue="^"+subexp("\\#("+X+")")+"?$",le="^"+subexp("("+y+")@")+"?("+L+")"+subexp("\\:("+H+")")+"?$";return{NOT_SCHEME:new RegExp(merge("[^]",t,n,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(merge("[^\\%\\:]",h,l),"g"),NOT_HOST:new RegExp(merge("[^\\%\\[\\]\\:]",h,l),"g"),NOT_PATH:new RegExp(merge("[^\\%\\/\\:\\@]",h,l),"g"),NOT_PATH_NOSCHEME:new RegExp(merge("[^\\%\\/\\@]",h,l),"g"),NOT_QUERY:new RegExp(merge("[^\\%]",h,l,"[\\:\\@\\/\\?]",p),"g"),NOT_FRAGMENT:new RegExp(merge("[^\\%]",h,l,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(merge("[^]",h,l),"g"),UNRESERVED:new RegExp(h,"g"),OTHER_CHARS:new RegExp(merge("[^\\%]",h,f),"g"),PCT_ENCODED:new RegExp(c,"g"),IPV4ADDRESS:new RegExp("^("+b+")$"),IPV6ADDRESS:new RegExp("^\\[?("+T+")"+subexp(subexp("\\%25|\\%(?!"+a+"{2})")+"("+N+")")+"?\\]?$")}}var t=buildExps(false);var r=buildExps(true);var n=function(){function sliceIterator(e,t){var r=[];var n=true;var s=false;var a=undefined;try{for(var o=e[Symbol.iterator](),i;!(n=(i=o.next()).done);n=true){r.push(i.value);if(t&&r.length===t)break}}catch(e){s=true;a=e}finally{try{if(!n&&o["return"])o["return"]()}finally{if(s)throw a}}return r}return function(e,t){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,t)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var toConsumableArray=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else{return Array.from(e)}};var s=2147483647;var a=36;var o=1;var i=26;var c=38;var u=700;var l=72;var f=128;var d="-";var p=/^xn--/;var h=/[^\0-\x7E]/;var m=/[\x2E\u3002\uFF0E\uFF61]/g;var y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var g=a-o;var v=Math.floor;var b=String.fromCharCode;function error$1(e){throw new RangeError(y[e])}function map(e,t){var r=[];var n=e.length;while(n--){r[n]=t(e[n])}return r}function mapDomain(e,t){var r=e.split("@");var n="";if(r.length>1){n=r[0]+"@";e=r[1]}e=e.replace(m,".");var s=e.split(".");var a=map(s,t).join(".");return n+a}function ucs2decode(e){var t=[];var r=0;var n=e.length;while(r<n){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<n){var a=e.charCodeAt(r++);if((a&64512)==56320){t.push(((s&1023)<<10)+(a&1023)+65536)}else{t.push(s);r--}}else{t.push(s)}}return t}var $=function ucs2encode(e){return String.fromCodePoint.apply(String,toConsumableArray(e))};var S=function basicToDigit(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return a};var w=function digitToBasic(e,t){return e+22+75*(e<26)-((t!=0)<<5)};var E=function adapt(e,t,r){var n=0;e=r?v(e/u):e>>1;e+=v(e/t);for(;e>g*i>>1;n+=a){e=v(e/g)}return v(n+(g+1)*e/(e+c))};var P=function decode(e){var t=[];var r=e.length;var n=0;var c=f;var u=l;var p=e.lastIndexOf(d);if(p<0){p=0}for(var h=0;h<p;++h){if(e.charCodeAt(h)>=128){error$1("not-basic")}t.push(e.charCodeAt(h))}for(var m=p>0?p+1:0;m<r;){var y=n;for(var g=1,b=a;;b+=a){if(m>=r){error$1("invalid-input")}var $=S(e.charCodeAt(m++));if($>=a||$>v((s-n)/g)){error$1("overflow")}n+=$*g;var w=b<=u?o:b>=u+i?i:b-u;if($<w){break}var P=a-w;if(g>v(s/P)){error$1("overflow")}g*=P}var x=t.length+1;u=E(n-y,x,y==0);if(v(n/x)>s-c){error$1("overflow")}c+=v(n/x);n%=x;t.splice(n++,0,c)}return String.fromCodePoint.apply(String,t)};var x=function encode(e){var t=[];e=ucs2decode(e);var r=e.length;var n=f;var c=0;var u=l;var p=true;var h=false;var m=undefined;try{for(var y=e[Symbol.iterator](),g;!(p=(g=y.next()).done);p=true){var $=g.value;if($<128){t.push(b($))}}}catch(e){h=true;m=e}finally{try{if(!p&&y.return){y.return()}}finally{if(h){throw m}}}var S=t.length;var P=S;if(S){t.push(d)}while(P<r){var x=s;var k=true;var R=false;var C=undefined;try{for(var A=e[Symbol.iterator](),O;!(k=(O=A.next()).done);k=true){var T=O.value;if(T>=n&&T<x){x=T}}}catch(e){R=true;C=e}finally{try{if(!k&&A.return){A.return()}}finally{if(R){throw C}}}var N=P+1;if(x-n>v((s-c)/N)){error$1("overflow")}c+=(x-n)*N;n=x;var D=true;var j=false;var I=undefined;try{for(var M=e[Symbol.iterator](),F;!(D=(F=M.next()).done);D=true){var L=F.value;if(L<n&&++c>s){error$1("overflow")}if(L==n){var H=c;for(var V=a;;V+=a){var z=V<=u?o:V>=u+i?i:V-u;if(H<z){break}var q=H-z;var U=a-z;t.push(b(w(z+q%U,0)));H=v(q/U)}t.push(b(w(H,0)));u=E(c,N,P==S);c=0;++P}}}catch(e){j=true;I=e}finally{try{if(!D&&M.return){M.return()}}finally{if(j){throw I}}}++c;++n}return t.join("")};var k=function toUnicode(e){return mapDomain(e,(function(e){return p.test(e)?P(e.slice(4).toLowerCase()):e}))};var R=function toASCII(e){return mapDomain(e,(function(e){return h.test(e)?"xn--"+x(e):e}))};var C={version:"2.1.0",ucs2:{decode:ucs2decode,encode:$},decode:P,encode:x,toASCII:R,toUnicode:k};var A={};function pctEncChar(e){var t=e.charCodeAt(0);var r=void 0;if(t<16)r="%0"+t.toString(16).toUpperCase();else if(t<128)r="%"+t.toString(16).toUpperCase();else if(t<2048)r="%"+(t>>6|192).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();else r="%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();return r}function pctDecChars(e){var t="";var r=0;var n=e.length;while(r<n){var s=parseInt(e.substr(r+1,2),16);if(s<128){t+=String.fromCharCode(s);r+=3}else if(s>=194&&s<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((s&31)<<6|a&63)}else{t+=e.substr(r,6)}r+=6}else if(s>=224){if(n-r>=9){var o=parseInt(e.substr(r+4,2),16);var i=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((s&15)<<12|(o&63)<<6|i&63)}else{t+=e.substr(r,9)}r+=9}else{t+=e.substr(r,3);r+=3}}return t}function _normalizeComponentEncoding(e,t){function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(t.UNRESERVED)?e:r}if(e.scheme)e.scheme=String(e.scheme).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_USERINFO,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_HOST,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(t.PCT_ENCODED,decodeUnreserved).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_QUERY,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_FRAGMENT,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,t){var r=e.match(t.IPV4ADDRESS)||[];var s=n(r,2),a=s[1];if(a){return a.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,t){var r=e.match(t.IPV6ADDRESS)||[];var s=n(r,3),a=s[1],o=s[2];if(a){var i=a.toLowerCase().split("::").reverse(),c=n(i,2),u=c[0],l=c[1];var f=l?l.split(":").map(_stripLeadingZeros):[];var d=u.split(":").map(_stripLeadingZeros);var p=t.IPV4ADDRESS.test(d[d.length-1]);var h=p?7:8;var m=d.length-h;var y=Array(h);for(var g=0;g<h;++g){y[g]=f[g]||d[m+g]||""}if(p){y[h-1]=_normalizeIPv4(y[h-1],t)}var v=y.reduce((function(e,t,r){if(!t||t==="0"){var n=e[e.length-1];if(n&&n.index+n.length===r){n.length++}else{e.push({index:r,length:1})}}return e}),[]);var b=v.sort((function(e,t){return t.length-e.length}))[0];var $=void 0;if(b&&b.length>1){var S=y.slice(0,b.index);var w=y.slice(b.index+b.length);$=S.join(":")+"::"+w.join(":")}else{$=y.join(":")}if(o){$+="%"+o}return $}else{return e}}var O=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var T="".match(/(){0}/)[1]===undefined;function parse(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var s={};var a=n.iri!==false?r:t;if(n.reference==="suffix")e=(n.scheme?n.scheme+":":"")+"//"+e;var o=e.match(O);if(o){if(T){s.scheme=o[1];s.userinfo=o[3];s.host=o[4];s.port=parseInt(o[5],10);s.path=o[6]||"";s.query=o[7];s.fragment=o[8];if(isNaN(s.port)){s.port=o[5]}}else{s.scheme=o[1]||undefined;s.userinfo=e.indexOf("@")!==-1?o[3]:undefined;s.host=e.indexOf("//")!==-1?o[4]:undefined;s.port=parseInt(o[5],10);s.path=o[6]||"";s.query=e.indexOf("?")!==-1?o[7]:undefined;s.fragment=e.indexOf("#")!==-1?o[8]:undefined;if(isNaN(s.port)){s.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:undefined}}if(s.host){s.host=_normalizeIPv6(_normalizeIPv4(s.host,a),a)}if(s.scheme===undefined&&s.userinfo===undefined&&s.host===undefined&&s.port===undefined&&!s.path&&s.query===undefined){s.reference="same-document"}else if(s.scheme===undefined){s.reference="relative"}else if(s.fragment===undefined){s.reference="absolute"}else{s.reference="uri"}if(n.reference&&n.reference!=="suffix"&&n.reference!==s.reference){s.error=s.error||"URI is not a "+n.reference+" reference."}var i=A[(n.scheme||s.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!i||!i.unicodeSupport)){if(s.host&&(n.domainHost||i&&i.domainHost)){try{s.host=C.toASCII(s.host.replace(a.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){s.error=s.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(s,t)}else{_normalizeComponentEncoding(s,a)}if(i&&i.parse){i.parse(s,n)}}else{s.error=s.error||"URI can not be parsed."}return s}function _recomposeAuthority(e,n){var s=n.iri!==false?r:t;var a=[];if(e.userinfo!==undefined){a.push(e.userinfo);a.push("@")}if(e.host!==undefined){a.push(_normalizeIPv6(_normalizeIPv4(String(e.host),s),s).replace(s.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"})))}if(typeof e.port==="number"||typeof e.port==="string"){a.push(":");a.push(String(e.port))}return a.length?a.join(""):undefined}var N=/^\.\.?\//;var D=/^\/\.(\/|$)/;var j=/^\/\.\.(\/|$)/;var I=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var t=[];while(e.length){if(e.match(N)){e=e.replace(N,"")}else if(e.match(D)){e=e.replace(D,"/")}else if(e.match(j)){e=e.replace(j,"/");t.pop()}else if(e==="."||e===".."){e=""}else{var r=e.match(I);if(r){var n=r[0];e=e.slice(n.length);t.push(n)}else{throw new Error("Unexpected dot segment condition")}}}return t.join("")}function serialize(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var s=n.iri?r:t;var a=[];var o=A[(n.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize)o.serialize(e,n);if(e.host){if(s.IPV6ADDRESS.test(e.host)){}else if(n.domainHost||o&&o.domainHost){try{e.host=!n.iri?C.toASCII(e.host.replace(s.PCT_ENCODED,pctDecChars).toLowerCase()):C.toUnicode(e.host)}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(!n.iri?"ASCII":"Unicode")+" via punycode: "+t}}}_normalizeComponentEncoding(e,s);if(n.reference!=="suffix"&&e.scheme){a.push(e.scheme);a.push(":")}var i=_recomposeAuthority(e,n);if(i!==undefined){if(n.reference!=="suffix"){a.push("//")}a.push(i);if(e.path&&e.path.charAt(0)!=="/"){a.push("/")}}if(e.path!==undefined){var c=e.path;if(!n.absolutePath&&(!o||!o.absolutePath)){c=removeDotSegments(c)}if(i===undefined){c=c.replace(/^\/\//,"/%2F")}a.push(c)}if(e.query!==undefined){a.push("?");a.push(e.query)}if(e.fragment!==undefined){a.push("#");a.push(e.fragment)}return a.join("")}function resolveComponents(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments[3];var s={};if(!n){e=parse(serialize(e,r),r);t=parse(serialize(t,r),r)}r=r||{};if(!r.tolerant&&t.scheme){s.scheme=t.scheme;s.userinfo=t.userinfo;s.host=t.host;s.port=t.port;s.path=removeDotSegments(t.path||"");s.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){s.userinfo=t.userinfo;s.host=t.host;s.port=t.port;s.path=removeDotSegments(t.path||"");s.query=t.query}else{if(!t.path){s.path=e.path;if(t.query!==undefined){s.query=t.query}else{s.query=e.query}}else{if(t.path.charAt(0)==="/"){s.path=removeDotSegments(t.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){s.path="/"+t.path}else if(!e.path){s.path=t.path}else{s.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path}s.path=removeDotSegments(s.path)}s.query=t.query}s.userinfo=e.userinfo;s.host=e.host;s.port=e.port}s.scheme=e.scheme}s.fragment=t.fragment;return s}function resolve(e,t,r){var n=assign({scheme:"null"},r);return serialize(resolveComponents(parse(e,n),parse(t,n),n,true),n)}function normalize(e,t){if(typeof e==="string"){e=serialize(parse(e,t),t)}else if(typeOf(e)==="object"){e=parse(serialize(e,t),t)}return e}function equal(e,t,r){if(typeof e==="string"){e=serialize(parse(e,r),r)}else if(typeOf(e)==="object"){e=serialize(e,r)}if(typeof t==="string"){t=serialize(parse(t,r),r)}else if(typeOf(t)==="object"){t=serialize(t,r)}return e===t}function escapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.ESCAPE:r.ESCAPE,pctEncChar)}function unescapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.PCT_ENCODED:r.PCT_ENCODED,pctDecChars)}var M={scheme:"http",domainHost:true,parse:function parse(e,t){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,t){var r=String(e.scheme).toLowerCase()==="https";if(e.port===(r?443:80)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var F={scheme:"https",domainHost:M.domainHost,parse:M.parse,serialize:M.serialize};function isSecure(e){return typeof e.secure==="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}var L={scheme:"ws",domainHost:true,parse:function parse(e,t){var r=e;r.secure=isSecure(r);r.resourceName=(r.path||"/")+(r.query?"?"+r.query:"");r.path=undefined;r.query=undefined;return r},serialize:function serialize(e,t){if(e.port===(isSecure(e)?443:80)||e.port===""){e.port=undefined}if(typeof e.secure==="boolean"){e.scheme=e.secure?"wss":"ws";e.secure=undefined}if(e.resourceName){var r=e.resourceName.split("?"),s=n(r,2),a=s[0],o=s[1];e.path=a&&a!=="/"?a:undefined;e.query=o;e.resourceName=undefined}e.fragment=undefined;return e}};var H={scheme:"wss",domainHost:L.domainHost,parse:L.parse,serialize:L.serialize};var V={};var z=true;var q="[A-Za-z0-9\\-\\.\\_\\~"+(z?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var U="[0-9A-Fa-f]";var K=subexp(subexp("%[EFef]"+U+"%"+U+U+"%"+U+U)+"|"+subexp("%[89A-Fa-f]"+U+"%"+U+U)+"|"+subexp("%"+U+U));var B="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var G="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var W=merge(G,'[\\"\\\\]');var J="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var Q=new RegExp(q,"g");var Z=new RegExp(K,"g");var Y=new RegExp(merge("[^]",B,"[\\.]",'[\\"]',W),"g");var X=new RegExp(merge("[^]",q,J),"g");var ee=X;function decodeUnreserved(e){var t=pctDecChars(e);return!t.match(Q)?e:t}var te={scheme:"mailto",parse:function parse$$1(e,t){var r=e;var n=r.to=r.path?r.path.split(","):[];r.path=undefined;if(r.query){var s=false;var a={};var o=r.query.split("&");for(var i=0,c=o.length;i<c;++i){var u=o[i].split("=");switch(u[0]){case"to":var l=u[1].split(",");for(var f=0,d=l.length;f<d;++f){n.push(l[f])}break;case"subject":r.subject=unescapeComponent(u[1],t);break;case"body":r.body=unescapeComponent(u[1],t);break;default:s=true;a[unescapeComponent(u[0],t)]=unescapeComponent(u[1],t);break}}if(s)r.headers=a}r.query=undefined;for(var p=0,h=n.length;p<h;++p){var m=n[p].split("@");m[0]=unescapeComponent(m[0]);if(!t.unicodeSupport){try{m[1]=C.toASCII(unescapeComponent(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}}else{m[1]=unescapeComponent(m[1],t).toLowerCase()}n[p]=m.join("@")}return r},serialize:function serialize$$1(e,t){var r=e;var n=toArray(e.to);if(n){for(var s=0,a=n.length;s<a;++s){var o=String(n[s]);var i=o.lastIndexOf("@");var c=o.slice(0,i).replace(Z,decodeUnreserved).replace(Z,toUpperCase).replace(Y,pctEncChar);var u=o.slice(i+1);try{u=!t.iri?C.toASCII(unescapeComponent(u,t).toLowerCase()):C.toUnicode(u)}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(!t.iri?"ASCII":"Unicode")+" via punycode: "+e}n[s]=c+"@"+u}r.path=n.join(",")}var l=e.headers=e.headers||{};if(e.subject)l["subject"]=e.subject;if(e.body)l["body"]=e.body;var f=[];for(var d in l){if(l[d]!==V[d]){f.push(d.replace(Z,decodeUnreserved).replace(Z,toUpperCase).replace(X,pctEncChar)+"="+l[d].replace(Z,decodeUnreserved).replace(Z,toUpperCase).replace(ee,pctEncChar))}}if(f.length){r.query=f.join("&")}return r}};var re=/^([^\:]+)\:(.*)/;var ne={scheme:"urn",parse:function parse$$1(e,t){var r=e.path&&e.path.match(re);var n=e;if(r){var s=t.scheme||n.scheme||"urn";var a=r[1].toLowerCase();var o=r[2];var i=s+":"+(t.nid||a);var c=A[i];n.nid=a;n.nss=o;n.path=undefined;if(c){n=c.parse(n,t)}}else{n.error=n.error||"URN can not be parsed."}return n},serialize:function serialize$$1(e,t){var r=t.scheme||e.scheme||"urn";var n=e.nid;var s=r+":"+(t.nid||n);var a=A[s];if(a){e=a.serialize(e,t)}var o=e;var i=e.nss;o.path=(n||t.nid)+":"+i;return o}};var se=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;var ae={scheme:"urn:uuid",parse:function parse(e,t){var r=e;r.uuid=r.nss;r.nss=undefined;if(!t.tolerant&&(!r.uuid||!r.uuid.match(se))){r.error=r.error||"UUID is not valid."}return r},serialize:function serialize(e,t){var r=e;r.nss=(e.uuid||"").toLowerCase();return r}};A[M.scheme]=M;A[F.scheme]=F;A[L.scheme]=L;A[H.scheme]=H;A[te.scheme]=te;A[ne.scheme]=ne;A[ae.scheme]=ae;e.SCHEMES=A;e.pctEncChar=pctEncChar;e.pctDecChars=pctDecChars;e.parse=parse;e.removeDotSegments=removeDotSegments;e.serialize=serialize;e.resolveComponents=resolveComponents;e.resolve=resolve;e.normalize=normalize;e.equal=equal;e.escapeComponent=escapeComponent;e.unescapeComponent=unescapeComponent;Object.defineProperty(e,"__esModule",{value:true})}))},6113:function(e){"use strict";e.exports=require("crypto")},2361:function(e){"use strict";e.exports=require("events")},7147:function(e){"use strict";e.exports=require("fs")},7561:function(e){"use strict";e.exports=require("fs")},9411:function(e){"use strict";e.exports=require("path")},7742:function(e){"use strict";e.exports=require("process")},4492:function(e){"use strict";e.exports=require("stream")},1041:function(e){"use strict";e.exports=require("url")},2037:function(e){"use strict";e.exports=require("os")},1017:function(e){"use strict";e.exports=require("path")},2781:function(e){"use strict";e.exports=require("stream")},3837:function(e){"use strict";e.exports=require("util")},9235:function(e){"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},6828:function(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},8974:function(e){"use strict";e.exports=JSON.parse('{"definitions":{"ObjectPattern":{"type":"object","additionalProperties":false,"properties":{"from":{"type":"string","description":"Glob or path from where we copy files.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#from","minLength":1},"to":{"anyOf":[{"type":"string"},{"instanceof":"Function"}],"description":"Output path.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#to"},"context":{"type":"string","description":"A path that determines how to interpret the \'from\' path.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#context"},"globOptions":{"type":"object","description":"Allows to configute the glob pattern matching library used by the plugin.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#globoptions"},"filter":{"instanceof":"Function","description":"Allows to filter copied assets.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#filter"},"transformAll":{"instanceof":"Function","description":"Allows you to modify the contents of multiple files and save the result to one file.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#transformall"},"toType":{"enum":["dir","file","template"],"description":"Determinate what is to option - directory, file or template.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#totype"},"force":{"type":"boolean","description":"Overwrites files already in \'compilation.assets\' (usually added by other plugins/loaders).","link":"https://github.com/webpack-contrib/copy-webpack-plugin#force"},"priority":{"type":"number","description":"Allows to specify the priority of copying files with the same destination name.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#priority"},"info":{"anyOf":[{"type":"object"},{"instanceof":"Function"}],"description":"Allows to add assets info.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#info"},"transform":{"description":"Allows to modify the file contents.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#transform","anyOf":[{"instanceof":"Function"},{"type":"object","additionalProperties":false,"properties":{"transformer":{"instanceof":"Function","description":"Allows to modify the file contents.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#transformer"},"cache":{"description":"Enables/disables and configure caching.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#cache","anyOf":[{"type":"boolean"},{"type":"object","additionalProperties":false,"properties":{"keys":{"anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]}}}]}}}]},"noErrorOnMissing":{"type":"boolean","description":"Doesn\'t generate an error on missing file(s).","link":"https://github.com/webpack-contrib/copy-webpack-plugin#noerroronmissing"}},"required":["from"]},"StringPattern":{"type":"string","minLength":1}},"type":"object","additionalProperties":false,"properties":{"patterns":{"type":"array","minItems":1,"items":{"anyOf":[{"$ref":"#/definitions/StringPattern"},{"$ref":"#/definitions/ObjectPattern"}]}},"options":{"type":"object","additionalProperties":false,"properties":{"concurrency":{"type":"number","description":"Limits the number of simultaneous requests to fs.","link":"https://github.com/webpack-contrib/copy-webpack-plugin#concurrency"}}}},"required":["patterns"]}')},5087:function(e){"use strict";e.exports=JSON.parse('{"name":"copy-webpack-plugin","version":"10.2.4","description":"Copy files && directories with webpack","license":"MIT","repository":"webpack-contrib/copy-webpack-plugin","author":"Len Boyette","homepage":"https://github.com/webpack-contrib/copy-webpack-plugin","bugs":"https://github.com/webpack-contrib/copy-webpack-plugin/issues","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"main":"dist/index.js","types":"types/index.d.ts","engines":{"node":">= 12.20.0"},"scripts":{"start":"npm run build -- -w","clean":"del-cli dist types","prebuild":"npm run clean","build:types":"tsc --declaration --emitDeclarationOnly --outDir types --rootDir src && prettier \\"types/**/*.ts\\" --write","build:code":"cross-env NODE_ENV=production babel src -d dist --copy-files","build":"npm-run-all -p \\"build:**\\"","commitlint":"commitlint --from=master","security":"npm audit --production","lint:prettier":"prettier --list-different .","lint:js":"eslint --cache .","lint:types":"tsc --pretty --noEmit","lint":"npm-run-all -l -p \\"lint:**\\"","test:only":"cross-env NODE_ENV=test jest","test:watch":"npm run test:only -- --watch","test:coverage":"npm run test:only -- --collectCoverageFrom=\\"src/**/*.js\\" --coverage","pretest":"npm run lint","test":"npm run test:coverage","prepare":"husky install && npm run build","release":"standard-version"},"files":["dist","types"],"peerDependencies":{"webpack":"^5.1.0"},"dependencies":{"fast-glob":"^3.2.7","glob-parent":"^6.0.1","globby":"^12.0.2","normalize-path":"^3.0.0","schema-utils":"^4.0.0","serialize-javascript":"^6.0.0"},"devDependencies":{"@babel/cli":"^7.16.7","@babel/core":"^7.16.7","@babel/eslint-parser":"^7.16.5","@babel/preset-env":"^7.16.7","@commitlint/cli":"^15.0.0","@commitlint/config-conventional":"^15.0.0","@types/glob-parent":"^5.1.1","@types/normalize-path":"^3.0.0","@types/serialize-javascript":"^5.0.2","@webpack-contrib/eslint-config-webpack":"^3.0.0","babel-jest":"^27.4.5","cross-env":"^7.0.3","del":"^6.0.0","del-cli":"^4.0.1","eslint":"^8.6.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.4","file-loader":"^6.2.0","husky":"^7.0.1","is-gzip":"^2.0.0","jest":"^27.4.5","lint-staged":"^12.1.5","memfs":"^3.4.1","mkdirp":"^1.0.4","npm-run-all":"^4.1.5","prettier":"^2.3.2","standard-version":"^9.3.1","typescript":"^4.5.4","webpack":"^5.64.1"},"keywords":["webpack","plugin","transfer","move","copy"]}')}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={exports:{}};var a=true;try{e[r].call(s.exports,s,s.exports,__nccwpck_require__);a=false}finally{if(a)delete t[r]}return s.exports}__nccwpck_require__.m=e;!function(){__nccwpck_require__.d=function(e,t){for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}}();!function(){__nccwpck_require__.f={};__nccwpck_require__.e=function(e){return Promise.all(Object.keys(__nccwpck_require__.f).reduce((function(t,r){__nccwpck_require__.f[r](e,t);return t}),[]))}}();!function(){__nccwpck_require__.u=function(e){return""+e+".index.js"}}();!function(){__nccwpck_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();!function(){__nccwpck_require__.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";!function(){var e={179:1};var installChunk=function(t){var r=t.modules,n=t.ids,s=t.runtime;for(var a in r){if(__nccwpck_require__.o(r,a)){__nccwpck_require__.m[a]=r[a]}}if(s)s(__nccwpck_require__);for(var o=0;o<n.length;o++)e[n[o]]=1};__nccwpck_require__.f.require=function(t,r){if(!e[t]){if(true){installChunk(require("./"+__nccwpck_require__.u(t)))}else e[t]=1}}}();var r=__nccwpck_require__(8056);module.exports=r})();